Commit Graph

174 Commits

Author SHA1 Message Date
Andrzej Bakun
fc5086a3f7 fix(module: avatar): size calculation & CssSizeLength functionality expansion ()
* core: expand CssSizeLength to handle double & decimal (with tests)

* fix(module:avatar): move to CssSizeLength

fix: explicit size calculation

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-16 02:50:31 +00:00
James Yeung
e8965eb369 chore: merge feature into master ()
* feat(module: table): add a method to get query model ()

* feat(module: table): add OnExpand event ()

* feat(module: table): add summary ()

* feat(module: table): add summary row

* feat: add fixed summary cell

* feat(module: InputNumber): Add long-click and keyboard operation ()

* feat(module: InputNumber): Add long click and keyboard event

1. When hold mouse down button will always trigger the increase or decrease
2. Add event listener to "ArrowUp" and "ArrowDown" key

* feat(module: InputNumber): Add long click and keyboard event

1. When hold mouse down button will always trigger the increase or decrease
2. Add event listener to "ArrowUp" and "ArrowDown" key

* fix null reference exception

Co-authored-by: ElderJames <shunjiey@hotmail.com>

* refactor(module: pagination): cover the apis of react ()

* feat(module: config-provider): support RTL ()

* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay

* chore: sync ant-design v4.14.0 ()

* feat(module: tag): add closing event ()

* tag add onclosing
event

* clean code

* translate the comment

* translation

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* chore: sync ant-design v4.15.0 ()

* feat: add built-in themes ()

* feat: add themes

* add docs theming styles

* fix the RTL for FixedWidgets

* fix aliyun theme

* fix docs style

* feat(module: form): Form lable supports left alignment ()

* feat: Form lable supports left alignment

* Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs

* Delete Col.razor.cs

* no message

* PR:1292

* typo LabelAlign

* add the property in Col instead FormItem

* clean code

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* feat(module: upload): missing and new event ()

* feat(module:upload): missing and new event

* docs(module:upload): new events (missing Chinese)

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* refactor: unified use of FeedbackComponent for modal comfirm and drawer  ()

* refactor: support to use the same template for confirm and modal

* refactor: support to use the same template for drawer

* refactor: separate interface IOkCancelRef

* chore: modify EventUtil class summary

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* feat(module: alert): add message template and loop banner demo ()

* feat(Alert): added alert loop component

* fix: move cmp into main

* feat: add parameters for looping text

* feat: add new messages loop

* fix: create new internal looptext cmp

* doc: add demo

* doc: add demo markdown

* doc: update alert api

* doc: update cn docs

* fix: add missing dependency

* fix: update param name

* impleement loop text with css

* fix the document

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* feat(module: table): add support for Display attribute ()

feat(module:table): add support for Display attribute

Display attribute is widely used to specify display text for entity properties.
Table component should get column names from Display attribute instances.

Closes 

* test: add TestKit for public tests ()

* test: change folder structure and add new TestKit csproj for public testing of AntDesign-based applications

* docs: added CN and EN docs about TestKit

* fix doc translate

* change the directory structure

Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
Co-authored-by: James Yeung <shunjiey@hotmail.com>

* feat(module: space): add wrap, split and size array ()

* fix(module: datepicker): incorrect in RTL mode ()

* fix(module: dropdown): default PlacementType is incorrect in RTL mode

* fix(module: datepicker): not correct in RTL mode

* fix(module: datepicker): styles is incorrect when switch to LTR from RTL

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* docs: fix default css link ()

* fix(module: table): bring PR1208 to PR1303 merge master into feature ()

* feat(module: pagination): add TotalBoundaryShowSizeChanger parameter ()

* feat(module: pagination): add TotalBoundaryShowSizeChanger

* docs(module: pagination): update API

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* docs: dynamic primary color changing ()

* feat(docs): change color dynamically

* docs: dynamic primary color changing

* fix file path

* delete the script

* feat(module: table): add build-in filters ()

* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* fix demo and docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: tooltip): wrong popup direction ()

* fix merge conflicts

Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy>
Co-authored-by: LingDev <lingjing0921@live.com>
Co-authored-by: Zonciu Liang <zonciu@zonciu.com>
Co-authored-by: TimChen <TimChen44@users.noreply.github.com>
Co-authored-by: unsung189 <52531536+unsung189@users.noreply.github.com>
Co-authored-by: zxyao <zxyao145@gmail.com>
Co-authored-by: Patrick <42546986+MutatePat@users.noreply.github.com>
Co-authored-by: anranruye <54608128+anranruye@users.noreply.github.com>
Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
Co-authored-by: 笨木头 <musicvs@163.com>
Co-authored-by: Magehernan <magehernan@gmail.com>
Co-authored-by: ldsenow <ldsenow@gmail.com>
Co-authored-by: Leishi <lluo@octet.com>
Co-authored-by: YMohd <31305504+YMohd@users.noreply.github.com>
2021-04-15 14:28:14 +08:00
Andrzej Bakun
242084e774 fix: multiple bugs originating from js ()
* fix: multiple bugs originating from js

* fix(module:input): remove preventScroll from Focus method

fix: keep focus on clear

* fix(module:input): debug info clean-up

* fix(module:select): wait for browser to finish render

* fix(module:select): wait for ElementReference.Id

* fix doc assets

* fix(module:select): increase wait time for ElementRefernece.Id

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-15 14:19:26 +08:00
ElderJames
433d376739 merge master into feature 2021-04-15 12:55:36 +08:00
James Yeung
f4a3b60047 fix(module: tooltip): wrong popup direction () 2021-04-15 12:20:48 +08:00
Andrzej Bakun
d64388c0ab feat(module: select): Select responsive max tag count ()
* feat(module:select): add MaxTagTextLength, MaxTagCount & MaxTagPlaceHolder

* feat(module:select): responsive maxTagCount using window.resize

* docs(module:select): MaxTagCount functionality

* fix docs

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-04-13 13:12:18 +08:00
YMohd
9ff708eb31 feat(module: table): add build-in filters ()
* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* tablefilter-moreoptions

* fix demo and docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-11 01:11:19 +08:00
ElderJames
aaff88adf7 merge master into feature 2021-04-08 22:32:48 +08:00
Andrzej Bakun
851c970f1d fix(module: overlaytrigger): correct method disposal ()
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-08 14:30:53 +00:00
笨木头
d0922fbc50 fix(module: datepicker): incorrect in RTL mode ()
* fix(module: dropdown): default PlacementType is incorrect in RTL mode

* fix(module: datepicker): not correct in RTL mode

* fix(module: datepicker): styles is incorrect when switch to LTR from RTL

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-06 20:02:53 +08:00
James Yeung
6a8036ca57 feat(module: space): add wrap, split and size array () 2021-04-06 14:20:29 +08:00
anranruye
c06e73ba5b feat(module: table): add support for Display attribute ()
feat(module:table): add support for Display attribute

Display attribute is widely used to specify display text for entity properties.
Table component should get column names from Display attribute instances.

Closes 
2021-04-04 20:38:57 +08:00
zxyao
31aac9f914 refactor: unified use of FeedbackComponent for modal comfirm and drawer ()
* refactor: support to use the same template for confirm and modal

* refactor: support to use the same template for drawer

* refactor: separate interface IOkCancelRef

* chore: modify EventUtil class summary

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-04 15:40:54 +08:00
Andrzej Bakun
1d4ea440fa fix(module: textarea): default to empty string ()
* chore: add GitHub Actions for auto preview ()

* chore: add github actions for auto preview

* fix setup job

* chore: add GitHub Actions for auto preview ()

* fix(module:textarea): add parameter DefaultToEmptyString

* fix(module:textarea): occasional crashes of js in firefox

* docs(module:input): added new param DefaultToEmptyString

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-03 15:22:11 +08:00
Andrzej Bakun
19e0f61961 fix(module: upload): Upload list update fix ()
* chore: add GitHub Actions for auto preview ()

* chore: add github actions for auto preview

* fix setup job

* chore: add GitHub Actions for auto preview ()

* fix(module:upload): file list update

* fix(module:upload): typed args for file upload

* fix(module:upload): delete button remove from picture-card

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 16:23:00 +00:00
笨木头
32d1f27708 fix(module: datepicker): DatePicker DisabledDate works incorect ()
* fix(module: datepicker): DatePicker DisabledDate works incorect

* test(module: dateHelperTests): modify test case

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 16:08:36 +00:00
unsung189
b68e70fd76 feat(module: form): Form lable supports left alignment ()
* feat: Form lable supports left alignment

* Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs

* Delete Col.razor.cs

* no message

* PR:1292

* typo LabelAlign

* add the property in Col instead FormItem

* clean code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 23:13:44 +08:00
James Yeung
822ce2dd36 feat: add built-in themes ()
* feat: add themes

* add docs theming styles

* fix the RTL for FixedWidgets

* fix aliyun theme

* fix docs style
2021-03-31 19:23:32 +08:00
TimChen
004777367d feat(module: tag): add closing event ()
* tag add onclosing
event

* clean code

* translate the comment

* translation

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-03-31 19:23:30 +08:00
James Yeung
d2e9c4b247 feat(module: config-provider): support RTL ()
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00
笨木头
93b14fe81d fix(module: dropdown): Animations for down and up are inverse ()
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-03-24 14:11:28 +00:00
Zonciu Liang
da55e9e7e8 fix(animation): missing prefix ()
* fix: add class name prefix for zoom and slide-up animations.

* fix(module: popconfirm): fix animation

* fix(module: popover): correct animation, sync de
2021-03-12 15:46:48 +08:00
笨木头
1a86a88002 fix(module: table): clicking outside couldn't close filter panel () 2021-03-10 20:03:55 +08:00
Patrick
f20d863bc3 test: Add ability to use OverlayTrigger in tests ()
* Add TestDomEventService to TestBase

* chore(tests): update to net5

* feat(testdomeventservice): override eventdomservice to null

* fix(AddEventListener): make AddEventListener virtual

* feat(test): add basic overlay test

* fix(name): make name .cs
2021-03-09 13:54:30 +00:00
Andrzej Bakun
a92a9e4ffc fix(module: select): press enter on form cause validation to fail ()
* fix(module:select): enter behavior on form

* fix(module:select): add DisableSubmitFormOnEnter attribute

* fix(module:select): remove proposed DisableSubmitFormOnEnte
2021-03-04 23:16:24 +08:00
Andrzej Bakun
6ebb1b311a fix(module: TextArea): sizing bug for components outside viewport ()
* fix(module:TextArea): sizing bug for components outside viewport

* fix(module:textarea): single js method to get textarea info

* fix(module:textArea): clean up unnecessary slice

* fix(module:textarea): autosize has proper effect

* chore: adjusting the release cycle and versioning

* fix(module:textarea): resize on type fix

* fix white line

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-03-01 14:50:22 +00:00
James Yeung
4065869806 feat(module: table): add filters ()
* feat: add table filter

* add filter buttons

* fix filter menu

* make filter work

* support multiple filters

* delete the old files

* support single select
2021-02-27 23:55:48 +08:00
James Yeung
0c13eb7198 docs(module: table): add editable cell/row demo ()
* feat(module: table): add editable cell demo

* add editable row de
2021-02-22 11:29:56 +08:00
James Yeung
597133363a fix(module: table): support more generic units for scroll x/y () 2021-02-14 20:15:53 +08:00
Andrzej Bakun
d98c851c70 fix(module: select): new tag item label and value fix ()
* fix(module:select): new tag item label and value fix

* fix: interop firefox "Permission Denied" fix

* fix(module:select): prefixIcon styling and positioning
2021-02-14 17:42:44 +08:00
笨木头
314b07daf9 feat(model: overlay): add boundary detection adjustment ()
* feat(model: overlay): add boundary detection and orientation adjustment

* feat: suport inview and inscroll mode
2021-02-09 10:01:42 +08:00
James Yeung
93310a1d14 docs: fix anchor and improvement ()
* docs: fix anchor and improvement

* fix docsearch

* fix docsearch action
2021-02-06 19:27:48 +08:00
Andrzej Bakun
ea061850ec fix(module: select): multiple fixes and optimizations ()
* fix(module:select): multiple select & tags & tokenization fix

performance optimizations
add PrefixIcon
keep focus on selected item

* fix(module:select): on clear button make first active

* docs(module:select): reflect changes
2021-02-04 23:40:47 +08:00
Zonciu Liang
ea412b24ec feat(core): access object's property by path-based string ()
* fix: DataIndex access maybe null object

* feat: access object's property by path-based string

* doc: update Table DataIndex demo

* doc: correct Table/demo/custom-row-style.md file encoding

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-31 01:25:25 +08:00
Andrzej Bakun
e7b01d509c fix(module: table): table exception on refresh ()
* fix(module:overlay): remove obsolete js call

check for Ref.Id before any js operation on it

* fix(module:table): js interop exceptions on dispose

* docs(module:slider): typo fix

* docs(module:spider): typ
2021-01-25 12:53:19 +08:00
James Yeung
c9656ca227 feat(module: image): add image component ()
* feat(module: image): add image

* add image preview

* add locale
2021-01-25 02:05:18 +08:00
cqgis
080d4dda43 feat(module: table): add sort directions and default sort order ()
* feat: table  column sort add sortway support singleness or mutiple

* fix: error method name

* add sort directions

* delete useless property

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-24 13:52:57 +08:00
Andrzej Bakun
152a574577 feat(module: overlay): OverlayTrigger not bound to a div ()
* feat(module:overlay): OverlayTrigger not bound to a div

* feat(module:overlay): OverlayTrigger not bound to a div

* feat(module:overlay): Logic transfer to single Overlay

* feat(module:overlay): remove obsolete duplication

* feat(module:Tooltip): Add for unbounded oncontextmenu event handler

* feat(module:tooltip): unbound js event listeners remove

* docs(module:tooltip): unbound explanation

* fix(module:button): attach Ref to top level html element @ref

* feat(module:dropdown&tooltip&popconfirm&popover): Overlay not bound to a div

* docs(module:dropdown&tooltip&popconfirm&popover): unbound explanation

* feat(module:OverlayTrigger): common logic relocation

* feat(module:overlaytrigger): Overlay not bound to a div

* feat(module:DatePicker): Overlay not bound to a div

* feat(module:select): Overlay not boud to div

* fix(module:select): onclickarrow event relocation

* fix(module:select): rename Show to OnArrowClick

* feat(module:avatar): Overlay not bound to a div

* docs(module:avatar): demo switch to unbound version

* feat(module:autocomplete): partial OverlayTrigger not bound to a div

* feat(module:slider): tooltip

* docs(module:slider): tooltip

* fix(module:overlay): add SetVisible method

* feat: set Ref where missing, performance

components register Ref when missing
IsFixed flag for CascadeValue changed
hard-code sequence numbers when using RenderTreeBuilder
Rate component use Tooltip Unbound version
Tabs test fix

* fix: revert changes (accidental)

* feat(module:upload): tooltip with unbound usage

* feat(module:table): column use of unbound tooltip

* feat(module:autocomplete):overlay unbound from div

* fix(module:upload): missing div restore

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-21 17:20:10 +08:00
Zonciu Liang
a09a8e6ac3 feat(module: table): add DataIndex support ()
* docs: correct parameter name

* feat(module: table): add data index

* refactor(module: table): make DataIndex expression cached

* refactor(module: core): recursive method for PropertyAccessHelper.GetRootParameterExpression

* refactor(module: table): make DataIndex feature clearer

* feat(module: table): support DataIndex format

* fix: sort column style

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-20 23:35:57 +08:00
Andrzej Bakun
81817ea3db fix(module: overlay): Interop delElementFrom() exception on page refresh ()
* fix(module:overlay): page reload detection

* fix(module:overlaytrigger): event handler on window resize remove on dispose
2021-01-20 19:58:20 +08:00
James Yeung
187dd045ac docs: scroll to hash anchor after pages are rendered () 2021-01-20 15:53:32 +08:00
Andrzej Bakun
dffe33aed4 fix(module: overlay): getFirstChildDomInfo when firstElementChild is null ()
getFirstChildDomInfo returns passed domInfo when dom.firstElementChild is null
fixes 
2021-01-17 15:41:28 +08:00
James Yeung
2e727d9f47 fix(module: date-picker): prevent the year out of range ()
* fix(module: date-picker): year would out of range

* prevent out of range

* add two methods

* fix(module: datepicker): out of range error

* fix: decadePanel is still out of range

Co-authored-by: 钟迪龙 <musicvs@163.com>
2021-01-14 10:40:34 +08:00
James Yeung
43664736f7 feat(module: table): fixed header & columns ()
* feat(module: table): support fixed header & columns

* fix layout of the fixed columns & header

* fix scrollbar hidding

* header and body sync scroll

* fix column width calc

* fix demo pagesize

* fix docs
2021-01-09 23:57:31 +08:00
James Yeung
2e668e1b54 docs: fix header breakpoint () 2020-12-29 23:35:03 +08:00
zxyao
ef4701b6ed refactor(module: modal): refactor the code of Modal, Confirm ()
* refactor(module: modal): refactor the code of Modal, Confirm and Dialog

refactor details:
- Add DialogWrapper compontent to control the logic of dialog removal from DOM
- Add the appropriate folders for Dialog, Modal, and Confirm
- Remove methods with the same logic but different names in ConfirmService
- Split Title into Title (string) and Titletemplate (renderfragment)
- Add comments to code
- Rename ConfirmDialog to Confirm
- Specification of method name in ConfirmService
- Adjust the time of throttle function for draggabe modal
- Extract the common part of ModalOptions, ConfirmOptions and DialogOptions as DialogOptionsBase

* refactor: move DefaultCloseIcon etc. static members to DialogOptionsBase

* docs(module: modal): update docs

* fix: dialog incorrect waiting

* fix: pickup missing pr/7
2020-12-26 21:39:04 +08:00
dblleaf
17989ff980 fix: overlay can be aligned to right when trigger is not button. () 2020-12-25 13:32:54 +08:00
Bintel
bb700cd7cc feat(module: menu): expose SubMenu's Placement ()
* Expose SubMenu's Placement

The Placement of SubMenu can now be changed and it will be set to BottomLeft or RightTop as before if you don't set it.

* Try fix 

I'm not sure if it will bring new problems, but it solved my problem. I hope someone can help me review it to make sure it doesn't break other things.

* Just optimize code style
2020-12-25 13:28:17 +08:00
TimChen
75d0d4c569 feat(module: form): add ValidateOnChange parameter ()
* feat: autoValidate

* refactor

* fix comments

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-25 12:51:55 +08:00
Andrzej Bakun
94a06a8256 fix(module: overlay): overlay will reposition on window resize ()
fixes 
2020-12-24 10:55:08 +08:00