Commit Graph

328 Commits

Author SHA1 Message Date
James Yeung
50cb65956a fix(module: table): mistaken sortable (#1058) 2021-01-30 22:21:26 +08:00
Andrzej Bakun
e7b01d509c fix(module: table): table exception on refresh (#1040)
* 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 (#1038)
* feat(module: image): add image

* add image preview

* add locale
2021-01-25 02:05:18 +08:00
matt
e40f93127d feat(module: table): add RowClassName (#1031)
* feat(module: table): add row styling

* docs: add RowClassName to docs

* docs: add custom row style subtext

* feat(module: table): add ExpandedRowClassName

* remove RowClassName for expand row

* add chinese doc

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-24 13:56:27 +08:00
cqgis
080d4dda43 feat(module: table): add sort directions and default sort order (#778)
* 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
James Yeung
f4b8e51e1e feat(module: card): add a separate action component and demos for click event (#1030) 2021-01-23 01:18:05 +08:00
Zonciu Liang
75f01993b1 chore: fix SolutionDir for building (#1011) 2021-01-23 01:15:23 +08:00
Porkopek
93b58cbb42 feat(module: icon): Added Static class IconType for intellisense (#987)
* Added Static class IconType for intellisense

* Added: Static Class Generator

* move the generator file to cli

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-22 15:07:28 +08:00
James Yeung
8d50b1cb1a fix(module: table): selection was broken with scroll y (#1020) 2021-01-22 09:56:51 +08:00
Andrzej Bakun
ea46422738 feat(module: menu): Add Menu divider (#1017)
* feat(module:menudivider): new component

* docs(module:dropdown): dropdown with tooltip and menudivider

* docs(module:menu): menudivider for horizontal demo

* feat(module:menudivider): remove unnecessary method
2021-01-22 08:59:05 +08:00
James Yeung
bbc69f25af feat(module: table): support multiple sorter (#1019) 2021-01-22 00:45:15 +08:00
Andrzej Bakun
152a574577 feat(module: overlay): OverlayTrigger not bound to a div (#937)
* 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 (#999)
* 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
James Yeung
187dd045ac docs: scroll to hash anchor after pages are rendered (#1006) 2021-01-20 15:53:32 +08:00
James Yeung
ddb09a9aa8 fix(module: upload): style of file list and picture card (#1001)
* fix(module: upload): file list style

* refactor upload button to fix ref conflict
2021-01-19 21:18:50 +08:00
James Yeung
2e727d9f47 fix(module: date-picker): prevent the year out of range (#973)
* 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
Zonciu Liang
9d9506bb5c feat(module: table): add SorterCompare parameter for sorter (#969)
* feat(module: table): add custom comparer

* docs: keep the DataSource of Table's blazor demo unchanged

* Update custom-sort.md

* refactor(module: table): change Comparer to SorterCompare

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-12 00:39:40 +08:00
James Yeung
d24c7a5325 fix(module: table): sorter works incorrectly (#962)
* fix(module: table): sorter works incorrectly

* docs: delete the jsx block
2021-01-11 13:39:02 +08:00
James Yeung
1a2866cf9d feat(module: table): add ellipsis column (#957) 2021-01-10 21:44:25 +08:00
Andrzej Bakun
2a05064c25 fix(module:date-picker): OneOf to TValue, default value for picker, optimizations (#933)
* fix(module:DatePicker): input OnClick has new event handler

* fix(module:DateTime): remove misleading reliance on picker index

* fix(module: DatePicker & RangePicker): DefaultValue type change

DefaultValue type change to align with Value type

* fix(module:rangepicker): add default values helper with tests

* fix(module:datepicker): ChangePickerValue action declaration fix

Picker value is served based on input index (start/end)

* fix(module:DatePicker): optimization

ViewStartDate, MaxRow & MaxCol do not cause refresh if not changed

* fix(module:DatePicker): min date fix

ArgumentOutOfRangeException fix for dates before DateTime.MinValue

* fix(module:RangePicker): sorted values

Values get ordered on set

* fix(module:DatePicker): OneOf switch to TValue

* fix(module:DatePicker): code optimization and PickerValue fix

PickerValue fix gets first panel value and evaluates second panel value

* fix(module:DatePicker): default values evaluation

* fix(module:RangePicker): default picker value fix

* docs(module:DatePicker): switch to TValue for DefaultValue

* fix(module:RangePicker): other value picker fix

* fix(module:RangePicker): on value init include DefaultValue

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-10 13:19:07 +08:00
James Yeung
43664736f7 feat(module: table): fixed header & columns (#954)
* 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
imhmao
f904676578 feat(module: tree): add expandAll and collapseAll method (#941)
* Tree:
1.add new node action
2.fixed data sort selection issue
3.add Expand() Collapse() Toggle()

* fixed Tree.OnRendered summary

* remove the `Is` prefix

* refactor(tree): renaming

Co-authored-by: 王的强 <wdq@sinotex.cn>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-07 00:41:26 +08:00
TimChen
f388ca4fc0 feat(module: tree): support generic type (#777)
* feat: tree update

* feat: support generics

* feat: normal operation

* fix: review question
2020-12-30 18:38:35 +08:00
笨木头
2d0d1a7473 docs: overlayStyle should not change menu's width (#939) 2020-12-30 08:58:03 +08:00
James Yeung
2e668e1b54 docs: fix header breakpoint (#938) 2020-12-29 23:35:03 +08:00
zxyao
1bdece0ea8 feat(module: modal): add locale for Modal and Confirm (#932)
* feat(module: modal): add Modal locale

* feat(module: confirm): locale support for zh-cn, en-us

* docs: add the demo of override locale's custom text

* feat: locale's json files add confirm configuration

* fix: custom ButtonProps override Button[1,2,3]Text or OK(Cancel)Text

* docs: using InvokeAsync to invoke StateHasChanged

* docs(module: modal): add override locale de
2020-12-29 23:34:18 +08:00
James Yeung
dc208f6491 fix(module: table): tree data doesn't work in asynchrony (#929) 2020-12-26 22:06:16 +08:00
zxyao
ef4701b6ed refactor(module: modal): refactor the code of Modal, Confirm (#914)
* 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
TimChen
75d0d4c569 feat(module: form): add ValidateOnChange parameter (#920)
* feat: autoValidate

* refactor

* fix comments

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-25 12:51:55 +08:00
James Yeung
a04231277a docs: make the site menu responsive (#901) 2020-12-18 16:00:51 +08:00
Argo Zhang
ab14d62ef2 docs: update the link for BootstrapBlazor (#893) 2020-12-16 13:55:32 +08:00
szmalec
74e7b8a2a2 fix(module: alert): make description element visible if passed in ChildContent (#881)
* fix(module: alert): make description element visible if passed in ChildContent (#875)

* docs(module: alert): modified example - instead of Description parameter ChildContent is used (#875)
2020-12-12 22:01:27 +08:00
ElDiddi
00059fe84e refactor(module: icon): embed icons in the assembly (#810)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-08 10:01:43 +08:00
Zonciu Liang
23fc9b0ed3 refactor(module: input-number): support all numeric types (#850) 2020-12-07 22:43:43 +08:00
Elliot
4ba4a301fb feat(module: table): add TitleTemplate for column title (#857)
* feat(module: table): add TitleTemplate for column title

* fix: action column templated title and add a demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-05 18:44:38 +08:00
ElderJames
52bebaab3f docs: update news 2020-12-02 15:29:48 +08:00
Zonciu Liang
d11dad8a45 feat(module: form): make the form validator customizable (#841)
* feat(module: form): make the form validator customizable

* docs: simplify form custom validators demo

* modify the demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-01 19:07:14 +08:00
James Yeung
a7c8835087 refactor(module: tabs): separate the TabPane component (#839)
* refactor(module: tabs): separate the TabPane component

* test: fix button to div
2020-11-30 10:53:41 +08:00
James Yeung
09fcbc8e3d feat(module: select): add a simple select with string type (#836) 2020-11-28 10:02:35 +08:00
TimChen
7ae4c559be feat(module: form): simplify ColLayout (#830) 2020-11-27 16:41:26 +08:00
ElDiddi
41077bc2fb refactor(module: select): completely new (#800)
* select-rewritten

select-rewritten

* modul: select - update 1

* select-update2

* select-update3

* select-update 4

* feat: append label tag & auto tokenization

* fix: conflict in drpdown demo

Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-27 13:13:26 +08:00
Nino Padrutt
5809c80011 feat(module: date-picker): support localization (#803)
* start trying to add a different first day of the week based on localization.

* add first day of week parameter and get weekday local  from .net

* fix some issues

* extend demo

* remove no longed needed Locale parameter

* fix range for selection

* add german localization

* add entry for API section

* remove obsolet things from the react ant documentation

* add description to chart documentation

* translate general configuration to english.

* code cleanup

* use LocalProvider to get first day of week.

* use localeprovider instead of date picker localization

* remove no longer used parameter

* delete no longer used interface

* change from enum to string due to parsing issue.

* add missing formats and use culture info from localprovider

* correct locales

* us Sunday as a default

* remove no longer used culture info parameter

* adjust locales

* add parameter for Locale instead of directly accessing it.

* add inheritance to access locale

* typo

* readd culture info parameter

* fixes for locale jsons

* adjust demo and api

* small adjustments on docs, set monday in chinese as first day of the week.

* use locale in calendar as well.

* adjust docs

* use enum

* adjust demo

* adjust for different starting date.

* add defaults for DatePickerLocale

* add short week days to locale files

* use days from locale file

* code cleanup

use consts instead of magic numbers, add code comment and use dayOfWeek As param instead of the whole locale object. Remove no longed used method.

* not sure about the chinese translation so I remove them

* Revert "not sure about the chinese translation so I remove them"

This reverts commit 54017513c7b684494cf06184b4051a4dcfc43850.
2020-11-25 11:08:12 +08:00
Diego Frata
cd7ff7d9f8 fix(module: tabs): stops tabs buttons from flickering when icons are present (#822) 2020-11-24 18:47:52 +08:00
笨木头
82a5326df1 docs(module: drawer): add dropdown in drawer demo (#819) 2020-11-24 12:19:55 +08:00
笨木头
405f4b153e fix(module: date-picker): ExtraFooter disappear in month mode (#820) 2020-11-23 23:09:04 +08:00
笨木头
2d28ca9cb6 feat(module: dropdown): support context menu in net5 (#815)
* feat(module: dropdown): ContextMenu support offsetX/offsetY in net5

* fix: demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-23 13:34:27 +08:00
ElDiddi
ca35485370 fix(module: avatar): code cleaning, doc update (#808)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-19 23:05:38 +08:00
ElDiddi
221ff173c2 fix(module: alert): code cleaning, doc update (#806)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-19 18:39:14 +08:00
CYTings
e7ace7ab1e Origin/doc/api (#796)
* Affix、AlertAPI文档

完善Affix、Alert的API文档

* anchor、autocomplete api

Complete the anchor component and autoconplete component api document

* Attribute initials capitalized

Completed Attribute initials capitalized

* avatar api

conpleted avatar api document

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-19 18:22:09 +08:00
Nino Padrutt
7c433d7b08 docs: translate for chart doc (#804)
* add description to chart documentation

* translate general configuration to English.

* delete empty files

* delete default description line.

* translate description to English

* translate Chinese texts to English

* correct and add translations

* add documentation to change data at runtime.
2020-11-19 17:15:47 +08:00