funda-ui 4.7.624 → 4.7.625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -116
- package/package.json +1 -591
- package/.gitattributes +0 -2
- package/README_PUBLISH.md +0 -328
- package/logo.png +0 -0
- package/preview.png +0 -0
- package/publish/LICENSE +0 -21
- package/publish/README.md +0 -328
- package/publish/lib/cjs/Accordion/index.d.ts +0 -2
- package/publish/lib/cjs/Accordion/index.js +0 -667
- package/publish/lib/cjs/BackToTop/index.d.ts +0 -17
- package/publish/lib/cjs/BackToTop/index.js +0 -904
- package/publish/lib/cjs/CascadingSelect/index.d.ts +0 -80
- package/publish/lib/cjs/CascadingSelect/index.js +0 -3383
- package/publish/lib/cjs/CascadingSelectE2E/index.d.ts +0 -91
- package/publish/lib/cjs/CascadingSelectE2E/index.js +0 -3988
- package/publish/lib/cjs/Chatbox/index.d.ts +0 -101
- package/publish/lib/cjs/Chatbox/index.js +0 -7037
- package/publish/lib/cjs/Checkbox/index.d.ts +0 -28
- package/publish/lib/cjs/Checkbox/index.js +0 -673
- package/publish/lib/cjs/ColorPicker/index.d.ts +0 -27
- package/publish/lib/cjs/ColorPicker/index.js +0 -662
- package/publish/lib/cjs/Date/index.d.ts +0 -70
- package/publish/lib/cjs/Date/index.js +0 -6368
- package/publish/lib/cjs/DigitalClock/index.d.ts +0 -7
- package/publish/lib/cjs/DigitalClock/index.js +0 -402
- package/publish/lib/cjs/DragDropList/index.d.ts +0 -45
- package/publish/lib/cjs/DragDropList/index.js +0 -1586
- package/publish/lib/cjs/DropdownMenu/index.d.ts +0 -38
- package/publish/lib/cjs/DropdownMenu/index.js +0 -1507
- package/publish/lib/cjs/DynamicFields/index.d.ts +0 -40
- package/publish/lib/cjs/DynamicFields/index.js +0 -818
- package/publish/lib/cjs/EventCalendar/index.d.ts +0 -61
- package/publish/lib/cjs/EventCalendar/index.js +0 -3789
- package/publish/lib/cjs/EventCalendarTimeline/index.d.ts +0 -100
- package/publish/lib/cjs/EventCalendarTimeline/index.js +0 -6141
- package/publish/lib/cjs/File/index.d.ts +0 -40
- package/publish/lib/cjs/File/index.js +0 -1751
- package/publish/lib/cjs/HorizontalScrollContent/index.d.ts +0 -14
- package/publish/lib/cjs/HorizontalScrollContent/index.js +0 -426
- package/publish/lib/cjs/Input/index.d.ts +0 -59
- package/publish/lib/cjs/Input/index.js +0 -1486
- package/publish/lib/cjs/LiveSearch/index.d.ts +0 -70
- package/publish/lib/cjs/LiveSearch/index.js +0 -4180
- package/publish/lib/cjs/MasonryLayout/index.d.ts +0 -14
- package/publish/lib/cjs/MasonryLayout/index.js +0 -689
- package/publish/lib/cjs/ModalDialog/index.d.ts +0 -83
- package/publish/lib/cjs/ModalDialog/index.js +0 -1719
- package/publish/lib/cjs/ModeSwitch/index.d.ts +0 -17
- package/publish/lib/cjs/ModeSwitch/index.js +0 -202
- package/publish/lib/cjs/MultilevelDropdownMenu/index.d.ts +0 -20
- package/publish/lib/cjs/MultilevelDropdownMenu/index.js +0 -930
- package/publish/lib/cjs/MultipleCheckboxes/index.d.ts +0 -66
- package/publish/lib/cjs/MultipleCheckboxes/index.js +0 -2337
- package/publish/lib/cjs/MultipleSelect/index.d.ts +0 -65
- package/publish/lib/cjs/MultipleSelect/index.js +0 -4197
- package/publish/lib/cjs/NativeSelect/index.d.ts +0 -37
- package/publish/lib/cjs/NativeSelect/index.js +0 -2052
- package/publish/lib/cjs/NumberInput/index.d.ts +0 -40
- package/publish/lib/cjs/NumberInput/index.js +0 -1191
- package/publish/lib/cjs/Pagination/index.d.ts +0 -51
- package/publish/lib/cjs/Pagination/index.js +0 -612
- package/publish/lib/cjs/Radio/index.d.ts +0 -45
- package/publish/lib/cjs/Radio/index.js +0 -1838
- package/publish/lib/cjs/RangeSlider/index.d.ts +0 -22
- package/publish/lib/cjs/RangeSlider/index.js +0 -2696
- package/publish/lib/cjs/Refresher/index.d.ts +0 -22
- package/publish/lib/cjs/Refresher/index.js +0 -564
- package/publish/lib/cjs/RootPortal/index.d.ts +0 -9
- package/publish/lib/cjs/RootPortal/index.js +0 -148
- package/publish/lib/cjs/ScrollReveal/index.d.ts +0 -21
- package/publish/lib/cjs/ScrollReveal/index.js +0 -401
- package/publish/lib/cjs/Scrollbar/index.d.ts +0 -17
- package/publish/lib/cjs/Scrollbar/index.js +0 -1107
- package/publish/lib/cjs/SearchBar/index.d.ts +0 -41
- package/publish/lib/cjs/SearchBar/index.js +0 -701
- package/publish/lib/cjs/Select/index.d.ts +0 -107
- package/publish/lib/cjs/Select/index.js +0 -6540
- package/publish/lib/cjs/ShowMoreLess/index.d.ts +0 -36
- package/publish/lib/cjs/ShowMoreLess/index.js +0 -387
- package/publish/lib/cjs/SplitterPanel/index.d.ts +0 -20
- package/publish/lib/cjs/SplitterPanel/index.js +0 -800
- package/publish/lib/cjs/Stepper/index.d.ts +0 -26
- package/publish/lib/cjs/Stepper/index.js +0 -568
- package/publish/lib/cjs/Switch/index.d.ts +0 -25
- package/publish/lib/cjs/Switch/index.js +0 -630
- package/publish/lib/cjs/Table/index.d.ts +0 -12
- package/publish/lib/cjs/Table/index.js +0 -2311
- package/publish/lib/cjs/Tabs/index.d.ts +0 -3
- package/publish/lib/cjs/Tabs/index.js +0 -771
- package/publish/lib/cjs/TagInput/index.d.ts +0 -37
- package/publish/lib/cjs/TagInput/index.js +0 -1227
- package/publish/lib/cjs/Textarea/index.d.ts +0 -50
- package/publish/lib/cjs/Textarea/index.js +0 -1795
- package/publish/lib/cjs/Toast/index.d.ts +0 -3
- package/publish/lib/cjs/Toast/index.js +0 -1345
- package/publish/lib/cjs/Tooltip/index.d.ts +0 -38
- package/publish/lib/cjs/Tooltip/index.js +0 -1778
- package/publish/lib/cjs/Tree/index.d.ts +0 -78
- package/publish/lib/cjs/Tree/index.js +0 -2330
- package/publish/lib/cjs/Utils/anim.d.ts +0 -11
- package/publish/lib/cjs/Utils/anim.js +0 -846
- package/publish/lib/cjs/Utils/bodyScrollLock.d.ts +0 -8
- package/publish/lib/cjs/Utils/bodyScrollLock.js +0 -311
- package/publish/lib/cjs/Utils/buffer.d.ts +0 -67
- package/publish/lib/cjs/Utils/buffer.js +0 -343
- package/publish/lib/cjs/Utils/cls.d.ts +0 -15
- package/publish/lib/cjs/Utils/cls.js +0 -124
- package/publish/lib/cjs/Utils/convert.d.ts +0 -25
- package/publish/lib/cjs/Utils/convert.js +0 -109
- package/publish/lib/cjs/Utils/date.d.ts +0 -227
- package/publish/lib/cjs/Utils/date.js +0 -587
- package/publish/lib/cjs/Utils/dom.d.ts +0 -13
- package/publish/lib/cjs/Utils/dom.js +0 -215
- package/publish/lib/cjs/Utils/easing.d.ts +0 -29
- package/publish/lib/cjs/Utils/easing.js +0 -221
- package/publish/lib/cjs/Utils/extract.d.ts +0 -66
- package/publish/lib/cjs/Utils/extract.js +0 -195
- package/publish/lib/cjs/Utils/format-string.d.ts +0 -65
- package/publish/lib/cjs/Utils/format-string.js +0 -167
- package/publish/lib/cjs/Utils/formdata.d.ts +0 -13
- package/publish/lib/cjs/Utils/formdata.js +0 -131
- package/publish/lib/cjs/Utils/getElementProperty.d.ts +0 -52
- package/publish/lib/cjs/Utils/getElementProperty.js +0 -189
- package/publish/lib/cjs/Utils/guid.d.ts +0 -7
- package/publish/lib/cjs/Utils/guid.js +0 -67
- package/publish/lib/cjs/Utils/initDefaultOptions.d.ts +0 -10
- package/publish/lib/cjs/Utils/initDefaultOptions.js +0 -607
- package/publish/lib/cjs/Utils/inputsCalculation.d.ts +0 -28
- package/publish/lib/cjs/Utils/inputsCalculation.js +0 -188
- package/publish/lib/cjs/Utils/math.d.ts +0 -77
- package/publish/lib/cjs/Utils/math.js +0 -305
- package/publish/lib/cjs/Utils/object.d.ts +0 -18
- package/publish/lib/cjs/Utils/object.js +0 -120
- package/publish/lib/cjs/Utils/os.d.ts +0 -2
- package/publish/lib/cjs/Utils/os.js +0 -104
- package/publish/lib/cjs/Utils/performance.d.ts +0 -3
- package/publish/lib/cjs/Utils/performance.js +0 -94
- package/publish/lib/cjs/Utils/sanitize.d.ts +0 -14
- package/publish/lib/cjs/Utils/sanitize.js +0 -87
- package/publish/lib/cjs/Utils/time.d.ts +0 -40
- package/publish/lib/cjs/Utils/time.js +0 -177
- package/publish/lib/cjs/Utils/tree.d.ts +0 -40
- package/publish/lib/cjs/Utils/tree.js +0 -195
- package/publish/lib/cjs/Utils/useAutosizeTextArea.d.ts +0 -10
- package/publish/lib/cjs/Utils/useAutosizeTextArea.js +0 -231
- package/publish/lib/cjs/Utils/useBoundedDrag.d.ts +0 -125
- package/publish/lib/cjs/Utils/useBoundedDrag.js +0 -380
- package/publish/lib/cjs/Utils/useClickOutside.d.ts +0 -33
- package/publish/lib/cjs/Utils/useClickOutside.js +0 -166
- package/publish/lib/cjs/Utils/useComId.d.ts +0 -6
- package/publish/lib/cjs/Utils/useComId.js +0 -114
- package/publish/lib/cjs/Utils/useDebounce.d.ts +0 -20
- package/publish/lib/cjs/Utils/useDebounce.js +0 -138
- package/publish/lib/cjs/Utils/useDragDropPosition.d.ts +0 -166
- package/publish/lib/cjs/Utils/useDragDropPosition.js +0 -453
- package/publish/lib/cjs/Utils/useDraggable.d.ts +0 -62
- package/publish/lib/cjs/Utils/useDraggable.js +0 -348
- package/publish/lib/cjs/Utils/useHistoryTracker.d.ts +0 -166
- package/publish/lib/cjs/Utils/useHistoryTracker.js +0 -649
- package/publish/lib/cjs/Utils/useInterval.d.ts +0 -5
- package/publish/lib/cjs/Utils/useInterval.js +0 -168
- package/publish/lib/cjs/Utils/useIsMobile.d.ts +0 -2
- package/publish/lib/cjs/Utils/useIsMobile.js +0 -232
- package/publish/lib/cjs/Utils/useKeyPress.d.ts +0 -44
- package/publish/lib/cjs/Utils/useKeyPress.js +0 -200
- package/publish/lib/cjs/Utils/useSessionStorageListener.d.ts +0 -2
- package/publish/lib/cjs/Utils/useSessionStorageListener.js +0 -157
- package/publish/lib/cjs/Utils/useStreamController.d.ts +0 -71
- package/publish/lib/cjs/Utils/useStreamController.js +0 -494
- package/publish/lib/cjs/Utils/useThrottle.d.ts +0 -2
- package/publish/lib/cjs/Utils/useThrottle.js +0 -136
- package/publish/lib/cjs/Utils/useWindowScroll.d.ts +0 -12
- package/publish/lib/cjs/Utils/useWindowScroll.js +0 -217
- package/publish/lib/cjs/Utils/validate.d.ts +0 -53
- package/publish/lib/cjs/Utils/validate.js +0 -536
- package/publish/lib/cjs/Utils/viewport.d.ts +0 -7
- package/publish/lib/cjs/Utils/viewport.js +0 -64
- package/publish/lib/cjs/index.d.ts +0 -49
- package/publish/lib/cjs/index.js +0 -50
- package/publish/lib/css/BackToTop/index.css +0 -34
- package/publish/lib/css/CascadingSelect/index.css +0 -245
- package/publish/lib/css/CascadingSelectE2E/index.css +0 -245
- package/publish/lib/css/Chatbox/index.css +0 -774
- package/publish/lib/css/ColorPicker/index.css +0 -58
- package/publish/lib/css/Date/index.css +0 -434
- package/publish/lib/css/DragDropList/index.css +0 -188
- package/publish/lib/css/DropdownMenu/index.css +0 -151
- package/publish/lib/css/EventCalendar/index.css +0 -300
- package/publish/lib/css/EventCalendarTimeline/index.css +0 -694
- package/publish/lib/css/HorizontalScrollContent/index.css +0 -70
- package/publish/lib/css/LiveSearch/index.css +0 -88
- package/publish/lib/css/MultilevelDropdownMenu/index.css +0 -38
- package/publish/lib/css/MultipleSelect/index.css +0 -313
- package/publish/lib/css/RangeSlider/index.css +0 -150
- package/publish/lib/css/Scrollbar/index.css +0 -176
- package/publish/lib/css/Select/index.css +0 -434
- package/publish/lib/css/ShowMoreLess/index.css +0 -23
- package/publish/lib/css/SplitterPanel/index.css +0 -63
- package/publish/lib/css/Stepper/index.css +0 -250
- package/publish/lib/css/Table/index.css +0 -584
- package/publish/lib/css/TagInput/index.css +0 -91
- package/publish/lib/css/Toast/index.css +0 -149
- package/publish/lib/css/Tooltip/index.css +0 -198
- package/publish/lib/css/Tree/index.css +0 -237
- package/publish/lib/esm/Accordion/Accordion.tsx +0 -185
- package/publish/lib/esm/Accordion/AccordionItem.tsx +0 -248
- package/publish/lib/esm/Accordion/index.tsx +0 -2
- package/publish/lib/esm/BackToTop/index.scss +0 -47
- package/publish/lib/esm/BackToTop/index.tsx +0 -177
- package/publish/lib/esm/CascadingSelect/Group.tsx +0 -83
- package/publish/lib/esm/CascadingSelect/index.scss +0 -330
- package/publish/lib/esm/CascadingSelect/index.tsx +0 -1397
- package/publish/lib/esm/CascadingSelectE2E/Group.tsx +0 -87
- package/publish/lib/esm/CascadingSelectE2E/index.scss +0 -333
- package/publish/lib/esm/CascadingSelectE2E/index.tsx +0 -1684
- package/publish/lib/esm/Chatbox/PureLoader.tsx +0 -47
- package/publish/lib/esm/Chatbox/TypingEffect.tsx +0 -56
- package/publish/lib/esm/Chatbox/index.scss +0 -966
- package/publish/lib/esm/Chatbox/index.tsx +0 -1742
- package/publish/lib/esm/Chatbox/utils/func.ts +0 -180
- package/publish/lib/esm/Checkbox/index.tsx +0 -206
- package/publish/lib/esm/ColorPicker/index.scss +0 -91
- package/publish/lib/esm/ColorPicker/index.tsx +0 -204
- package/publish/lib/esm/Date/Calendar.tsx +0 -723
- package/publish/lib/esm/Date/index.scss +0 -567
- package/publish/lib/esm/Date/index.tsx +0 -1797
- package/publish/lib/esm/Date/localization/en_US.js +0 -13
- package/publish/lib/esm/Date/localization/zh_CN.js +0 -12
- package/publish/lib/esm/DigitalClock/index.tsx +0 -74
- package/publish/lib/esm/DragDropList/index.scss +0 -245
- package/publish/lib/esm/DragDropList/index.tsx +0 -504
- package/publish/lib/esm/DropdownMenu/Option.tsx +0 -55
- package/publish/lib/esm/DropdownMenu/index.scss +0 -205
- package/publish/lib/esm/DropdownMenu/index.tsx +0 -378
- package/publish/lib/esm/DynamicFields/index.tsx +0 -409
- package/publish/lib/esm/EventCalendar/index.scss +0 -407
- package/publish/lib/esm/EventCalendar/index.tsx +0 -1005
- package/publish/lib/esm/EventCalendarTimeline/index.scss +0 -926
- package/publish/lib/esm/EventCalendarTimeline/index.tsx +0 -2686
- package/publish/lib/esm/File/index.tsx +0 -477
- package/publish/lib/esm/HorizontalScrollContent/index.scss +0 -87
- package/publish/lib/esm/HorizontalScrollContent/index.tsx +0 -171
- package/publish/lib/esm/Input/index.tsx +0 -641
- package/publish/lib/esm/LiveSearch/index.scss +0 -129
- package/publish/lib/esm/LiveSearch/index.tsx +0 -1058
- package/publish/lib/esm/MasonryLayout/index.tsx +0 -326
- package/publish/lib/esm/ModalDialog/index.tsx +0 -572
- package/publish/lib/esm/ModeSwitch/index.tsx +0 -82
- package/publish/lib/esm/MultilevelDropdownMenu/ItemList.tsx +0 -265
- package/publish/lib/esm/MultilevelDropdownMenu/index.scss +0 -79
- package/publish/lib/esm/MultilevelDropdownMenu/index.tsx +0 -77
- package/publish/lib/esm/MultipleCheckboxes/index.tsx +0 -849
- package/publish/lib/esm/MultipleSelect/index.scss +0 -398
- package/publish/lib/esm/MultipleSelect/index.tsx +0 -769
- package/publish/lib/esm/MultipleSelect/utils/func.ts +0 -63
- package/publish/lib/esm/NativeSelect/index.tsx +0 -396
- package/publish/lib/esm/NativeSelect/utils/func.ts +0 -51
- package/publish/lib/esm/NumberInput/index.tsx +0 -425
- package/publish/lib/esm/Pagination/index.tsx +0 -286
- package/publish/lib/esm/Pagination/pagination-navigators.tsx +0 -60
- package/publish/lib/esm/Radio/index.tsx +0 -694
- package/publish/lib/esm/RangeSlider/index.scss +0 -186
- package/publish/lib/esm/RangeSlider/index.tsx +0 -241
- package/publish/lib/esm/Refresher/index.tsx +0 -121
- package/publish/lib/esm/RootPortal/index.tsx +0 -59
- package/publish/lib/esm/ScrollReveal/index.tsx +0 -148
- package/publish/lib/esm/Scrollbar/index.scss +0 -221
- package/publish/lib/esm/Scrollbar/index.tsx +0 -561
- package/publish/lib/esm/SearchBar/index.tsx +0 -252
- package/publish/lib/esm/Select/index.scss +0 -639
- package/publish/lib/esm/Select/index.tsx +0 -3104
- package/publish/lib/esm/Select/utils/func.ts +0 -98
- package/publish/lib/esm/ShowMoreLess/index.scss +0 -27
- package/publish/lib/esm/ShowMoreLess/index.tsx +0 -145
- package/publish/lib/esm/SplitterPanel/index.scss +0 -82
- package/publish/lib/esm/SplitterPanel/index.tsx +0 -174
- package/publish/lib/esm/Stepper/index.scss +0 -315
- package/publish/lib/esm/Stepper/index.tsx +0 -325
- package/publish/lib/esm/Switch/index.tsx +0 -149
- package/publish/lib/esm/Table/Table.tsx +0 -351
- package/publish/lib/esm/Table/TableBody.tsx +0 -41
- package/publish/lib/esm/Table/TableCaption.tsx +0 -34
- package/publish/lib/esm/Table/TableCell.tsx +0 -126
- package/publish/lib/esm/Table/TableColgroup.tsx +0 -38
- package/publish/lib/esm/Table/TableContext.tsx +0 -26
- package/publish/lib/esm/Table/TableFoot.tsx +0 -28
- package/publish/lib/esm/Table/TableHead.tsx +0 -28
- package/publish/lib/esm/Table/TableRow.tsx +0 -76
- package/publish/lib/esm/Table/index.scss +0 -418
- package/publish/lib/esm/Table/index.tsx +0 -14
- package/publish/lib/esm/Table/utils/DragHandleSprite.tsx +0 -46
- package/publish/lib/esm/Table/utils/SortSprite.tsx +0 -63
- package/publish/lib/esm/Table/utils/TableFilter.tsx +0 -56
- package/publish/lib/esm/Table/utils/ToggleSelection.tsx +0 -255
- package/publish/lib/esm/Table/utils/func.ts +0 -182
- package/publish/lib/esm/Table/utils/hooks/useTableDraggable.tsx +0 -342
- package/publish/lib/esm/Table/utils/hooks/useTableKeyPress.tsx +0 -255
- package/publish/lib/esm/Table/utils/hooks/useTableResponsive.tsx +0 -92
- package/publish/lib/esm/Table/utils/hooks/useTableSort.tsx +0 -187
- package/publish/lib/esm/Tabs/TabList.tsx +0 -50
- package/publish/lib/esm/Tabs/TabPanel.tsx +0 -44
- package/publish/lib/esm/Tabs/Tabs.tsx +0 -282
- package/publish/lib/esm/Tabs/index.tsx +0 -3
- package/publish/lib/esm/TagInput/index.scss +0 -126
- package/publish/lib/esm/TagInput/index.tsx +0 -379
- package/publish/lib/esm/Textarea/index.tsx +0 -621
- package/publish/lib/esm/Toast/Item.tsx +0 -165
- package/publish/lib/esm/Toast/Toast.tsx +0 -391
- package/publish/lib/esm/Toast/ToastContext.tsx +0 -104
- package/publish/lib/esm/Toast/__toast.vanilla.js +0 -422
- package/publish/lib/esm/Toast/index.scss +0 -197
- package/publish/lib/esm/Toast/index.tsx +0 -3
- package/publish/lib/esm/Toast/types.ts +0 -60
- package/publish/lib/esm/Toast/useToast.tsx +0 -72
- package/publish/lib/esm/Tooltip/index.scss +0 -272
- package/publish/lib/esm/Tooltip/index.tsx +0 -416
- package/publish/lib/esm/Tree/TreeList.tsx +0 -600
- package/publish/lib/esm/Tree/index.scss +0 -384
- package/publish/lib/esm/Tree/index.tsx +0 -661
- package/publish/lib/esm/Tree/init-height.tsx +0 -40
- package/publish/lib/esm/Tree/utils/func.ts +0 -15
- package/publish/lib/esm/Utils/hooks/useAutosizeTextArea.tsx +0 -131
- package/publish/lib/esm/Utils/hooks/useBoundedDrag.tsx +0 -301
- package/publish/lib/esm/Utils/hooks/useClickOutside.tsx +0 -69
- package/publish/lib/esm/Utils/hooks/useComId.tsx +0 -13
- package/publish/lib/esm/Utils/hooks/useDebounce.tsx +0 -40
- package/publish/lib/esm/Utils/hooks/useDragDropPosition.tsx +0 -417
- package/publish/lib/esm/Utils/hooks/useDraggable.tsx +0 -265
- package/publish/lib/esm/Utils/hooks/useHistoryTracker.tsx +0 -554
- package/publish/lib/esm/Utils/hooks/useInterval.tsx +0 -74
- package/publish/lib/esm/Utils/hooks/useIsMobile.tsx +0 -139
- package/publish/lib/esm/Utils/hooks/useKeyPress.tsx +0 -104
- package/publish/lib/esm/Utils/hooks/useSessionStorageListener.tsx +0 -45
- package/publish/lib/esm/Utils/hooks/useStreamController.tsx +0 -277
- package/publish/lib/esm/Utils/hooks/useThrottle.tsx +0 -39
- package/publish/lib/esm/Utils/hooks/useWindowScroll.tsx +0 -83
- package/publish/lib/esm/Utils/libs/anim.ts +0 -96
- package/publish/lib/esm/Utils/libs/buffer.ts +0 -262
- package/publish/lib/esm/Utils/libs/cls.ts +0 -64
- package/publish/lib/esm/Utils/libs/convert.ts +0 -59
- package/publish/lib/esm/Utils/libs/date.ts +0 -598
- package/publish/lib/esm/Utils/libs/dom.ts +0 -150
- package/publish/lib/esm/Utils/libs/easing.ts +0 -201
- package/publish/lib/esm/Utils/libs/extract.ts +0 -160
- package/publish/lib/esm/Utils/libs/format-string.ts +0 -116
- package/publish/lib/esm/Utils/libs/formdata.ts +0 -93
- package/publish/lib/esm/Utils/libs/getElementProperty.ts +0 -150
- package/publish/lib/esm/Utils/libs/guid.ts +0 -16
- package/publish/lib/esm/Utils/libs/initDefaultOptions.ts +0 -43
- package/publish/lib/esm/Utils/libs/inputsCalculation.ts +0 -160
- package/publish/lib/esm/Utils/libs/math.ts +0 -276
- package/publish/lib/esm/Utils/libs/object.ts +0 -68
- package/publish/lib/esm/Utils/libs/os.ts +0 -63
- package/publish/lib/esm/Utils/libs/performance.ts +0 -47
- package/publish/lib/esm/Utils/libs/sanitize.ts +0 -55
- package/publish/lib/esm/Utils/libs/time.ts +0 -139
- package/publish/lib/esm/Utils/libs/tree.ts +0 -119
- package/publish/lib/esm/Utils/libs/validate.ts +0 -434
- package/publish/lib/esm/Utils/libs/viewport.ts +0 -20
- package/publish/lib/esm/Utils/plugins/bodyScrollLock.ts +0 -286
- package/publish/lib/esm/index.js +0 -47
- package/publish/package.json +0 -1
- /package/{publish/Accordion → Accordion}/index.d.ts +0 -0
- /package/{publish/Accordion → Accordion}/index.js +0 -0
- /package/{publish/BackToTop → BackToTop}/index.css +0 -0
- /package/{publish/BackToTop → BackToTop}/index.d.ts +0 -0
- /package/{publish/BackToTop → BackToTop}/index.js +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.css +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.d.ts +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.js +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.css +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.d.ts +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.js +0 -0
- /package/{publish/Chatbox → Chatbox}/index.css +0 -0
- /package/{publish/Chatbox → Chatbox}/index.d.ts +0 -0
- /package/{publish/Chatbox → Chatbox}/index.js +0 -0
- /package/{publish/Checkbox → Checkbox}/index.d.ts +0 -0
- /package/{publish/Checkbox → Checkbox}/index.js +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.css +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.d.ts +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.js +0 -0
- /package/{publish/Date → Date}/index.css +0 -0
- /package/{publish/Date → Date}/index.d.ts +0 -0
- /package/{publish/Date → Date}/index.js +0 -0
- /package/{publish/DigitalClock → DigitalClock}/index.d.ts +0 -0
- /package/{publish/DigitalClock → DigitalClock}/index.js +0 -0
- /package/{publish/DragDropList → DragDropList}/index.css +0 -0
- /package/{publish/DragDropList → DragDropList}/index.d.ts +0 -0
- /package/{publish/DragDropList → DragDropList}/index.js +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.css +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.js +0 -0
- /package/{publish/DynamicFields → DynamicFields}/index.d.ts +0 -0
- /package/{publish/DynamicFields → DynamicFields}/index.js +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.css +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.d.ts +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.js +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.css +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.d.ts +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.js +0 -0
- /package/{publish/File → File}/index.d.ts +0 -0
- /package/{publish/File → File}/index.js +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.css +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.d.ts +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.js +0 -0
- /package/{publish/Input → Input}/index.d.ts +0 -0
- /package/{publish/Input → Input}/index.js +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.css +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.d.ts +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.js +0 -0
- /package/{publish/MasonryLayout → MasonryLayout}/index.d.ts +0 -0
- /package/{publish/MasonryLayout → MasonryLayout}/index.js +0 -0
- /package/{publish/ModalDialog → ModalDialog}/index.d.ts +0 -0
- /package/{publish/ModalDialog → ModalDialog}/index.js +0 -0
- /package/{publish/ModeSwitch → ModeSwitch}/index.d.ts +0 -0
- /package/{publish/ModeSwitch → ModeSwitch}/index.js +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.css +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.d.ts +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.js +0 -0
- /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.d.ts +0 -0
- /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.js +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.css +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.d.ts +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.js +0 -0
- /package/{publish/NativeSelect → NativeSelect}/index.d.ts +0 -0
- /package/{publish/NativeSelect → NativeSelect}/index.js +0 -0
- /package/{publish/NumberInput → NumberInput}/index.d.ts +0 -0
- /package/{publish/NumberInput → NumberInput}/index.js +0 -0
- /package/{publish/Pagination → Pagination}/index.d.ts +0 -0
- /package/{publish/Pagination → Pagination}/index.js +0 -0
- /package/{publish/Radio → Radio}/index.d.ts +0 -0
- /package/{publish/Radio → Radio}/index.js +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.css +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.d.ts +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.js +0 -0
- /package/{publish/Refresher → Refresher}/index.d.ts +0 -0
- /package/{publish/Refresher → Refresher}/index.js +0 -0
- /package/{publish/RootPortal → RootPortal}/index.d.ts +0 -0
- /package/{publish/RootPortal → RootPortal}/index.js +0 -0
- /package/{publish/ScrollReveal → ScrollReveal}/index.d.ts +0 -0
- /package/{publish/ScrollReveal → ScrollReveal}/index.js +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.css +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.d.ts +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.js +0 -0
- /package/{publish/SearchBar → SearchBar}/index.d.ts +0 -0
- /package/{publish/SearchBar → SearchBar}/index.js +0 -0
- /package/{publish/Select → Select}/index.css +0 -0
- /package/{publish/Select → Select}/index.d.ts +0 -0
- /package/{publish/Select → Select}/index.js +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.css +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.d.ts +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.js +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.css +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.d.ts +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.js +0 -0
- /package/{publish/Stepper → Stepper}/index.css +0 -0
- /package/{publish/Stepper → Stepper}/index.d.ts +0 -0
- /package/{publish/Stepper → Stepper}/index.js +0 -0
- /package/{publish/Switch → Switch}/index.d.ts +0 -0
- /package/{publish/Switch → Switch}/index.js +0 -0
- /package/{publish/Table → Table}/index.css +0 -0
- /package/{publish/Table → Table}/index.d.ts +0 -0
- /package/{publish/Table → Table}/index.js +0 -0
- /package/{publish/Tabs → Tabs}/index.d.ts +0 -0
- /package/{publish/Tabs → Tabs}/index.js +0 -0
- /package/{publish/TagInput → TagInput}/index.css +0 -0
- /package/{publish/TagInput → TagInput}/index.d.ts +0 -0
- /package/{publish/TagInput → TagInput}/index.js +0 -0
- /package/{publish/Textarea → Textarea}/index.d.ts +0 -0
- /package/{publish/Textarea → Textarea}/index.js +0 -0
- /package/{publish/Toast → Toast}/index.css +0 -0
- /package/{publish/Toast → Toast}/index.d.ts +0 -0
- /package/{publish/Toast → Toast}/index.js +0 -0
- /package/{publish/Tooltip → Tooltip}/index.css +0 -0
- /package/{publish/Tooltip → Tooltip}/index.d.ts +0 -0
- /package/{publish/Tooltip → Tooltip}/index.js +0 -0
- /package/{publish/Tree → Tree}/index.css +0 -0
- /package/{publish/Tree → Tree}/index.d.ts +0 -0
- /package/{publish/Tree → Tree}/index.js +0 -0
- /package/{publish/Utils → Utils}/anim.d.ts +0 -0
- /package/{publish/Utils → Utils}/anim.js +0 -0
- /package/{publish/Utils → Utils}/bodyScrollLock.d.ts +0 -0
- /package/{publish/Utils → Utils}/bodyScrollLock.js +0 -0
- /package/{publish/Utils → Utils}/buffer.d.ts +0 -0
- /package/{publish/Utils → Utils}/buffer.js +0 -0
- /package/{publish/Utils → Utils}/cls.d.ts +0 -0
- /package/{publish/Utils → Utils}/cls.js +0 -0
- /package/{publish/Utils → Utils}/convert.d.ts +0 -0
- /package/{publish/Utils → Utils}/convert.js +0 -0
- /package/{publish/Utils → Utils}/date.d.ts +0 -0
- /package/{publish/Utils → Utils}/date.js +0 -0
- /package/{publish/Utils → Utils}/dom.d.ts +0 -0
- /package/{publish/Utils → Utils}/dom.js +0 -0
- /package/{publish/Utils → Utils}/easing.d.ts +0 -0
- /package/{publish/Utils → Utils}/easing.js +0 -0
- /package/{publish/Utils → Utils}/extract.d.ts +0 -0
- /package/{publish/Utils → Utils}/extract.js +0 -0
- /package/{publish/Utils → Utils}/format-string.d.ts +0 -0
- /package/{publish/Utils → Utils}/format-string.js +0 -0
- /package/{publish/Utils → Utils}/formdata.d.ts +0 -0
- /package/{publish/Utils → Utils}/formdata.js +0 -0
- /package/{publish/Utils → Utils}/getElementProperty.d.ts +0 -0
- /package/{publish/Utils → Utils}/getElementProperty.js +0 -0
- /package/{publish/Utils → Utils}/guid.d.ts +0 -0
- /package/{publish/Utils → Utils}/guid.js +0 -0
- /package/{publish/Utils → Utils}/initDefaultOptions.d.ts +0 -0
- /package/{publish/Utils → Utils}/initDefaultOptions.js +0 -0
- /package/{publish/Utils → Utils}/inputsCalculation.d.ts +0 -0
- /package/{publish/Utils → Utils}/inputsCalculation.js +0 -0
- /package/{publish/Utils → Utils}/math.d.ts +0 -0
- /package/{publish/Utils → Utils}/math.js +0 -0
- /package/{publish/Utils → Utils}/object.d.ts +0 -0
- /package/{publish/Utils → Utils}/object.js +0 -0
- /package/{publish/Utils → Utils}/os.d.ts +0 -0
- /package/{publish/Utils → Utils}/os.js +0 -0
- /package/{publish/Utils → Utils}/performance.d.ts +0 -0
- /package/{publish/Utils → Utils}/performance.js +0 -0
- /package/{publish/Utils → Utils}/sanitize.d.ts +0 -0
- /package/{publish/Utils → Utils}/sanitize.js +0 -0
- /package/{publish/Utils → Utils}/time.d.ts +0 -0
- /package/{publish/Utils → Utils}/time.js +0 -0
- /package/{publish/Utils → Utils}/tree.d.ts +0 -0
- /package/{publish/Utils → Utils}/tree.js +0 -0
- /package/{publish/Utils → Utils}/useAutosizeTextArea.d.ts +0 -0
- /package/{publish/Utils → Utils}/useAutosizeTextArea.js +0 -0
- /package/{publish/Utils → Utils}/useBoundedDrag.d.ts +0 -0
- /package/{publish/Utils → Utils}/useBoundedDrag.js +0 -0
- /package/{publish/Utils → Utils}/useClickOutside.d.ts +0 -0
- /package/{publish/Utils → Utils}/useClickOutside.js +0 -0
- /package/{publish/Utils → Utils}/useComId.d.ts +0 -0
- /package/{publish/Utils → Utils}/useComId.js +0 -0
- /package/{publish/Utils → Utils}/useDebounce.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDebounce.js +0 -0
- /package/{publish/Utils → Utils}/useDragDropPosition.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDragDropPosition.js +0 -0
- /package/{publish/Utils → Utils}/useDraggable.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDraggable.js +0 -0
- /package/{publish/Utils → Utils}/useHistoryTracker.d.ts +0 -0
- /package/{publish/Utils → Utils}/useHistoryTracker.js +0 -0
- /package/{publish/Utils → Utils}/useInterval.d.ts +0 -0
- /package/{publish/Utils → Utils}/useInterval.js +0 -0
- /package/{publish/Utils → Utils}/useIsMobile.d.ts +0 -0
- /package/{publish/Utils → Utils}/useIsMobile.js +0 -0
- /package/{publish/Utils → Utils}/useKeyPress.d.ts +0 -0
- /package/{publish/Utils → Utils}/useKeyPress.js +0 -0
- /package/{publish/Utils → Utils}/useSessionStorageListener.d.ts +0 -0
- /package/{publish/Utils → Utils}/useSessionStorageListener.js +0 -0
- /package/{publish/Utils → Utils}/useStreamController.d.ts +0 -0
- /package/{publish/Utils → Utils}/useStreamController.js +0 -0
- /package/{publish/Utils → Utils}/useThrottle.d.ts +0 -0
- /package/{publish/Utils → Utils}/useThrottle.js +0 -0
- /package/{publish/Utils → Utils}/useWindowScroll.d.ts +0 -0
- /package/{publish/Utils → Utils}/useWindowScroll.js +0 -0
- /package/{publish/Utils → Utils}/validate.d.ts +0 -0
- /package/{publish/Utils → Utils}/validate.js +0 -0
- /package/{publish/Utils → Utils}/viewport.d.ts +0 -0
- /package/{publish/Utils → Utils}/viewport.js +0 -0
- /package/{publish/all.d.ts → all.d.ts} +0 -0
- /package/{publish/all.js → all.js} +0 -0
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handles the event of sortable table
|
|
3
|
-
*
|
|
4
|
-
* @usage:
|
|
5
|
-
|
|
6
|
-
const App = () => {
|
|
7
|
-
|
|
8
|
-
const sortableTable = true;
|
|
9
|
-
const rootRef = useRef<any>(null);
|
|
10
|
-
|
|
11
|
-
useTableSort({
|
|
12
|
-
enabled: sortableTable && rootRef.current,
|
|
13
|
-
spyElement: rootRef.current,
|
|
14
|
-
sortBy: (handleProcess: Function, filterType: string, inverse: boolean) => (a: Element, b: Element) => {
|
|
15
|
-
|
|
16
|
-
// Custom comparison logic
|
|
17
|
-
let v1 = a.textContent, v2 = b.textContent;
|
|
18
|
-
if (filterType === 'number') {
|
|
19
|
-
v1 = parseFloat(v1);
|
|
20
|
-
v2 = parseFloat(v2);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
let result = 0;
|
|
24
|
-
if (filterType === 'text') {
|
|
25
|
-
result = v1.localeCompare(v2);
|
|
26
|
-
} else {
|
|
27
|
-
result = v1 - v2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Apply display animation and status updates
|
|
31
|
-
handleProcess();
|
|
32
|
-
|
|
33
|
-
return inverse ? -result : result;
|
|
34
|
-
}
|
|
35
|
-
}, [rootRef]);
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<div
|
|
39
|
-
ref={rootRef}
|
|
40
|
-
>Test</div>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
*/
|
|
45
|
-
import { useEffect, useState } from 'react';
|
|
46
|
-
|
|
47
|
-
import { getTbody, allRows, sortDataByIndex, initOrderProps, initRowColProps } from '../func';
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export interface UseTableSortProps {
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
data?: any[];
|
|
53
|
-
spyElement?: any;
|
|
54
|
-
fieldType: 'text' | 'number' | 'date';
|
|
55
|
-
isReverse?: boolean;
|
|
56
|
-
onColSort?: (fetchData: any) => void;
|
|
57
|
-
onClick?: (e: any) => void;
|
|
58
|
-
sortBy?: (handleProcess: Function, filterType: string, inverse: boolean) => ((a: Element, b: Element) => number); // A function that determines the order of the elements.
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function useTableSort({
|
|
62
|
-
enabled,
|
|
63
|
-
data,
|
|
64
|
-
spyElement,
|
|
65
|
-
fieldType,
|
|
66
|
-
isReverse = false,
|
|
67
|
-
onColSort,
|
|
68
|
-
onClick,
|
|
69
|
-
sortBy
|
|
70
|
-
}: UseTableSortProps, deps: any[]) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const [inverse, setInverse] = useState<boolean>(false);
|
|
74
|
-
|
|
75
|
-
function handleSortList(e: any) {
|
|
76
|
-
if (typeof enabled === 'undefined' || enabled === false) return;
|
|
77
|
-
|
|
78
|
-
const tbodyRef: any = getTbody(spyElement);
|
|
79
|
-
if (tbodyRef === null) return;
|
|
80
|
-
|
|
81
|
-
const el = e.currentTarget.closest('[data-table-col]');
|
|
82
|
-
if (el === null) return;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const filterType = fieldType || 'text';
|
|
86
|
-
const curIndex = el.dataset.tableCol;
|
|
87
|
-
const targetComparator = [].slice.call(tbodyRef.querySelectorAll(`[data-table-col="${curIndex}"]`));
|
|
88
|
-
|
|
89
|
-
const handleProcess = function () {
|
|
90
|
-
allRows(spyElement).forEach((node: any) => {
|
|
91
|
-
node.classList.add('newsort');
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
setInverse(!inverse);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
//
|
|
98
|
-
const defaultSortBy = function (a: Element, b: Element) {
|
|
99
|
-
|
|
100
|
-
let txt1: any = a.innerHTML.replace(/(<([^>]+)>)/ig, '').toLowerCase(),
|
|
101
|
-
txt2: any = b.innerHTML.replace(/(<([^>]+)>)/ig, '').toLowerCase();
|
|
102
|
-
|
|
103
|
-
//type of number
|
|
104
|
-
if (filterType == 'number') {
|
|
105
|
-
txt1 = parseFloat(txt1.replace(/[^0-9.+-]+/g, ''));
|
|
106
|
-
txt2 = parseFloat(txt2.replace(/[^0-9.+-]+/g, ''));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
//type of date
|
|
110
|
-
if (filterType == 'date') {
|
|
111
|
-
txt1 = new Date(txt1);
|
|
112
|
-
txt2 = new Date(txt2);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
//add filter class
|
|
117
|
-
handleProcess();
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// result
|
|
121
|
-
if (filterType == 'text') {
|
|
122
|
-
return isReverse
|
|
123
|
-
? txt1.localeCompare(txt2, 'zh-CN', { sensitivity: 'base' })
|
|
124
|
-
: txt2.localeCompare(txt1, 'zh-CN', { sensitivity: 'base' });
|
|
125
|
-
} else {
|
|
126
|
-
return isReverse
|
|
127
|
-
? (txt1 < txt2 ? -1 : txt1 > txt2 ? 1 : 0)
|
|
128
|
-
: (txt2 < txt1 ? -1 : txt2 > txt1 ? 1 : 0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Use a custom sort method if available, otherwise default is used
|
|
134
|
-
const sortFn = typeof sortBy === 'function' ? sortBy(handleProcess, filterType, inverse) : defaultSortBy;
|
|
135
|
-
|
|
136
|
-
targetComparator.sort(sortFn);
|
|
137
|
-
|
|
138
|
-
//console.log( 'targetComparator:', targetComparator );
|
|
139
|
-
//console.log( 'inverse:', inverse );
|
|
140
|
-
|
|
141
|
-
if (inverse) targetComparator.reverse();
|
|
142
|
-
|
|
143
|
-
allRows(spyElement).forEach((node: any) => {
|
|
144
|
-
node.remove();
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
for (let i = 0; i < targetComparator.length; i++) {
|
|
148
|
-
const curRow = (targetComparator[i] as any).parentNode;
|
|
149
|
-
tbodyRef.appendChild(curRow);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// get latest order
|
|
153
|
-
const sortData: number[] = [];
|
|
154
|
-
allRows(spyElement).forEach((node: any) => {
|
|
155
|
-
sortData.push(Number(node.dataset.order));
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
// callback
|
|
159
|
-
onColSort?.(sortDataByIndex(sortData as never, data as never));
|
|
160
|
-
onClick?.(e);
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
useEffect(() => {
|
|
165
|
-
if (enabled) {
|
|
166
|
-
if (Array.isArray(data)) {
|
|
167
|
-
data.forEach((item: any, i: number) => {
|
|
168
|
-
item.order = i;
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
// Initialize custom props of table elements
|
|
173
|
-
initOrderProps(spyElement);
|
|
174
|
-
initRowColProps(spyElement);
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}, [data, enabled, spyElement, ...deps]);
|
|
179
|
-
|
|
180
|
-
return {
|
|
181
|
-
handleSortList
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
export default useTableSort;
|
|
187
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface TabListProps extends React.ComponentPropsWithoutRef<any> {
|
|
5
|
-
defaultActive?: string | boolean | undefined;
|
|
6
|
-
expandedActiveClassNameForNav?: string;
|
|
7
|
-
targetId?: string;
|
|
8
|
-
index?: number;
|
|
9
|
-
/** Handling events for collapsing item */
|
|
10
|
-
switchEv?: React.MouseEventHandler<HTMLElement>;
|
|
11
|
-
/** -- */
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const TabList = (props: TabListProps) => {
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
defaultActive,
|
|
20
|
-
expandedActiveClassNameForNav,
|
|
21
|
-
targetId,
|
|
22
|
-
index,
|
|
23
|
-
switchEv,
|
|
24
|
-
children
|
|
25
|
-
} = props;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const _expandClassName = typeof(expandedActiveClassNameForNav) !== 'undefined' ? expandedActiveClassNameForNav : '';
|
|
29
|
-
const activedClassName = typeof(defaultActive) !== 'undefined' && defaultActive !== false ? ` active ${_expandClassName}` : ` ${_expandClassName}`;
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<>
|
|
33
|
-
|
|
34
|
-
<li
|
|
35
|
-
data-index={index}
|
|
36
|
-
data-tablist-index={index}
|
|
37
|
-
className={`position-relative nav-item ${activedClassName}`}
|
|
38
|
-
role="presentation"
|
|
39
|
-
onClick={switchEv}
|
|
40
|
-
data-tab={targetId}
|
|
41
|
-
>
|
|
42
|
-
{children}
|
|
43
|
-
</li>
|
|
44
|
-
|
|
45
|
-
</>
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export default TabList;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface TabPanelProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
5
|
-
defaultActive?: string | boolean | undefined;
|
|
6
|
-
expandedActiveClassNameForPanel?: string;
|
|
7
|
-
tabpanelClass?: string;
|
|
8
|
-
targetId?: string;
|
|
9
|
-
index?: number;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const TabPanel = (props: TabPanelProps) => {
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
defaultActive,
|
|
16
|
-
expandedActiveClassNameForPanel,
|
|
17
|
-
tabpanelClass,
|
|
18
|
-
targetId,
|
|
19
|
-
index,
|
|
20
|
-
...attributes
|
|
21
|
-
} = props;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const _expandClassName = typeof(expandedActiveClassNameForPanel) !== 'undefined' ? expandedActiveClassNameForPanel : '';
|
|
25
|
-
const activedClassName = typeof(defaultActive) !== 'undefined' && defaultActive !== false ? ` active ${_expandClassName}` : ` ${_expandClassName}`;
|
|
26
|
-
const activedStyles = typeof(defaultActive) !== 'undefined' && defaultActive !== false ? {} : {height: '0', overflow: 'hidden'};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<>
|
|
30
|
-
|
|
31
|
-
<div
|
|
32
|
-
data-index={index}
|
|
33
|
-
data-tabpanel-index={index}
|
|
34
|
-
role="tabpanel" id={targetId}
|
|
35
|
-
className={ tabpanelClass ? `tab-pane d-block ${tabpanelClass} ${activedClassName}` : `tab-pane d-block ${activedClassName}`}
|
|
36
|
-
style={activedStyles}
|
|
37
|
-
{...attributes}
|
|
38
|
-
></div>
|
|
39
|
-
|
|
40
|
-
</>
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export default TabPanel;
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useEffect, useRef, useImperativeHandle } from 'react';
|
|
2
|
-
|
|
3
|
-
import useComId from 'funda-utils/dist/cjs/useComId';
|
|
4
|
-
import { clsWrite, combinedCls } from 'funda-utils/dist/cjs/cls';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
import TabList from './TabList';
|
|
9
|
-
import TabPanel from './TabPanel';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type TabsProps = {
|
|
13
|
-
wrapperClassName?: string;
|
|
14
|
-
navClassName?: string;
|
|
15
|
-
panelClassName?: string;
|
|
16
|
-
expandedActiveClassNameForNav?: string;
|
|
17
|
-
expandedActiveClassNameForPanel?: string;
|
|
18
|
-
animTransitionDuration?: number;
|
|
19
|
-
/** -- */
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
onChange?: (nav: HTMLElement, targetId: string, index: number, persistentIndex: number) => void;
|
|
22
|
-
onLoad?: (func: Function) => void;
|
|
23
|
-
children: React.ReactNode | React.ReactNode[];
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const Tabs = forwardRef((props: TabsProps, externalRef: any) => {
|
|
28
|
-
|
|
29
|
-
const {
|
|
30
|
-
wrapperClassName,
|
|
31
|
-
navClassName,
|
|
32
|
-
panelClassName,
|
|
33
|
-
expandedActiveClassNameForNav,
|
|
34
|
-
expandedActiveClassNameForPanel,
|
|
35
|
-
animTransitionDuration,
|
|
36
|
-
style,
|
|
37
|
-
onChange,
|
|
38
|
-
onLoad,
|
|
39
|
-
children // the contents of the TabList and TabPanel in a loop
|
|
40
|
-
} = props;
|
|
41
|
-
|
|
42
|
-
const uniqueID = useComId();
|
|
43
|
-
const rootRef = useRef<any>(null);
|
|
44
|
-
const speed = animTransitionDuration ? animTransitionDuration : 150;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// exposes the following methods
|
|
48
|
-
useImperativeHandle(
|
|
49
|
-
externalRef,
|
|
50
|
-
() => ({
|
|
51
|
-
go: (index: number) => {
|
|
52
|
-
const reactDomWrapperEl: any = rootRef.current;
|
|
53
|
-
const $li = [].slice.call(reactDomWrapperEl.querySelectorAll('ul > li'));
|
|
54
|
-
itemInit($li[index], false);
|
|
55
|
-
}
|
|
56
|
-
}),
|
|
57
|
-
[externalRef],
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const elDisplay = (type: string, node: HTMLElement) => {
|
|
63
|
-
if (node === null) return;
|
|
64
|
-
|
|
65
|
-
// !!!Special note:
|
|
66
|
-
// If you want to hide the tab in advance, please use `{ height: 0; overflow: hidden; }`, do not use `{ display: none }`
|
|
67
|
-
// Otherwise it will cause the scrollHeight of the element inside the child node to be 0
|
|
68
|
-
if (type === 'hide') {
|
|
69
|
-
node.style.setProperty('height', '0', 'important');
|
|
70
|
-
node.style.setProperty('overflow', 'hidden', 'important');
|
|
71
|
-
} else {
|
|
72
|
-
node.style.removeProperty('height');
|
|
73
|
-
node.style.removeProperty('overflow');
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
function handleClickItem(e: any) {
|
|
80
|
-
e.preventDefault();
|
|
81
|
-
|
|
82
|
-
const el = e.currentTarget;
|
|
83
|
-
const currentIndex = Array.prototype.slice.call(el.parentElement.children).indexOf(el);
|
|
84
|
-
|
|
85
|
-
itemInit(el, false);
|
|
86
|
-
|
|
87
|
-
//
|
|
88
|
-
if (typeof (onChange) === 'function') {
|
|
89
|
-
onChange(el, el.dataset.tab, currentIndex, Number(el.dataset.index));
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
function itemInit(targetEl: any, itemsInit: boolean) {
|
|
96
|
-
|
|
97
|
-
const reactDomWrapperEl: any = rootRef.current;
|
|
98
|
-
const $li = targetEl.parentElement.children;
|
|
99
|
-
let $allContent: HTMLElement[] = [];
|
|
100
|
-
const tabID = targetEl.dataset.tab;
|
|
101
|
-
const _classNameNav = expandedActiveClassNameForNav ? expandedActiveClassNameForNav : '';
|
|
102
|
-
const _classNamePanel = expandedActiveClassNameForPanel ? expandedActiveClassNameForPanel : '';
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const runExClassName = (node: HTMLElement, str: string, type: string) => {
|
|
106
|
-
if (str && node !== null) {
|
|
107
|
-
const _c = str.replace(/\s+(\W)/g, ' ').split(' ');
|
|
108
|
-
_c.forEach( (classname: any) => {
|
|
109
|
-
if ( type === 'remove' ) node.classList.remove(classname);
|
|
110
|
-
if ( type === 'add' ) node.classList.add(classname);
|
|
111
|
-
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
//get all panels of this wrapper
|
|
117
|
-
Array.prototype.forEach.call($li, (node) => {
|
|
118
|
-
const panelId = node.dataset.tab;
|
|
119
|
-
$allContent.push(reactDomWrapperEl.querySelector('#' + panelId) as never);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
//
|
|
124
|
-
Array.prototype.forEach.call($li, (node) => {
|
|
125
|
-
if (node !== null) {
|
|
126
|
-
node.classList.remove('active');
|
|
127
|
-
node.firstChild.classList.remove('active');
|
|
128
|
-
|
|
129
|
-
runExClassName(node, _classNameNav, 'remove');
|
|
130
|
-
runExClassName(node.firstChild, _classNameNav, 'remove');
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
$allContent.forEach((node) => {
|
|
137
|
-
if (node !== null) {
|
|
138
|
-
//
|
|
139
|
-
elDisplay('hide', node);
|
|
140
|
-
|
|
141
|
-
setTimeout(() => {
|
|
142
|
-
node.classList.remove('active');
|
|
143
|
-
runExClassName(node, _classNamePanel, 'remove');
|
|
144
|
-
}, speed);
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
// currently active
|
|
149
|
-
targetEl.classList.add('active');
|
|
150
|
-
targetEl.firstChild.classList.add('active');
|
|
151
|
-
|
|
152
|
-
runExClassName(targetEl, _classNameNav, 'add');
|
|
153
|
-
runExClassName(targetEl.firstChild, _classNameNav, 'add');
|
|
154
|
-
|
|
155
|
-
if (tabID !== undefined) {
|
|
156
|
-
setTimeout(() => {
|
|
157
|
-
const _panel = document.getElementById(tabID) as HTMLElement;
|
|
158
|
-
if ( _panel !== null ) {
|
|
159
|
-
|
|
160
|
-
elDisplay('show', _panel);
|
|
161
|
-
|
|
162
|
-
_panel.classList.add('active');
|
|
163
|
-
runExClassName(_panel, _classNamePanel, 'add');
|
|
164
|
-
}
|
|
165
|
-
}, speed);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
|
|
173
|
-
// Initialize tabs
|
|
174
|
-
//--------------
|
|
175
|
-
const reactDomWrapperEl: any = rootRef.current;
|
|
176
|
-
const $li = [].slice.call(reactDomWrapperEl.querySelectorAll('ul > li'));
|
|
177
|
-
$li.forEach((el: any, i: number) => {
|
|
178
|
-
if (el.classList.contains('active')) {
|
|
179
|
-
itemInit($li[i], true);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
onLoad?.(() => itemInit);
|
|
184
|
-
|
|
185
|
-
}, []);
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
return (
|
|
191
|
-
<>
|
|
192
|
-
|
|
193
|
-
<div className={clsWrite(wrapperClassName, 'mb-3 position-relative')} ref={rootRef} style={style}>
|
|
194
|
-
<ul className={clsWrite(navClassName, 'nav nav-tabs mb-3')} role="tablist">
|
|
195
|
-
|
|
196
|
-
{(() => {
|
|
197
|
-
if (children != null) {
|
|
198
|
-
let tabListIndex = 0;
|
|
199
|
-
|
|
200
|
-
// If <TabList /> uses map to return, it will be wrapped into an array
|
|
201
|
-
/*
|
|
202
|
-
Such as:
|
|
203
|
-
|
|
204
|
-
{[1,2,3].map((item: any, i: number) =>{
|
|
205
|
-
return <TabList key={`tab-list-${i}`} defaultActive={i === 0 ? true : false}>{item}</TabList>
|
|
206
|
-
})}
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
const elements: React.ReactNode | React.ReactNode[] = Array.isArray((children as any[])[0]) ? (children as any[])[0] : children;
|
|
210
|
-
|
|
211
|
-
return (elements as any[]).map((item, i) => {
|
|
212
|
-
const childProps = { ...item.props };
|
|
213
|
-
delete childProps.key;
|
|
214
|
-
|
|
215
|
-
if (item.key.indexOf('tab-list') >= 0) {
|
|
216
|
-
tabListIndex++;
|
|
217
|
-
return <TabList
|
|
218
|
-
key={item.key}
|
|
219
|
-
index={tabListIndex}
|
|
220
|
-
expandedActiveClassNameForNav={expandedActiveClassNameForNav}
|
|
221
|
-
switchEv={handleClickItem}
|
|
222
|
-
targetId={`tabs-show-${uniqueID}-${tabListIndex}`}
|
|
223
|
-
{...childProps} />;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
})()}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
</ul>
|
|
233
|
-
|
|
234
|
-
<div className={clsWrite(panelClassName, 'tab-content')}>
|
|
235
|
-
{(() => {
|
|
236
|
-
if (children != null) {
|
|
237
|
-
let tabPanelIndex = 0;
|
|
238
|
-
|
|
239
|
-
// If <TabPanel /> uses map to return, it will be wrapped into an array
|
|
240
|
-
/*
|
|
241
|
-
Such as:
|
|
242
|
-
|
|
243
|
-
{[1,2,3].map((item: any, i: number) =>{
|
|
244
|
-
return <TabPanel key={`tab-panel-${i}`} tabpanelClass="fs-6" defaultActive={i === 0 ? true : false}>{item}</TabPanel>
|
|
245
|
-
})}
|
|
246
|
-
*/
|
|
247
|
-
const elements: React.ReactNode | React.ReactNode[] = Array.isArray((children as any[])[1]) ? (children as any[])[1] : children;
|
|
248
|
-
|
|
249
|
-
return (elements as any[]).map((item, i) => {
|
|
250
|
-
const childProps = { ...item.props };
|
|
251
|
-
delete childProps.key;
|
|
252
|
-
|
|
253
|
-
if (item.key.indexOf('tab-panel') >= 0) {
|
|
254
|
-
tabPanelIndex++;
|
|
255
|
-
return <TabPanel
|
|
256
|
-
key={item.key}
|
|
257
|
-
index={tabPanelIndex}
|
|
258
|
-
expandedActiveClassNameForPanel={expandedActiveClassNameForPanel}
|
|
259
|
-
targetId={`tabs-show-${uniqueID}-${tabPanelIndex}`}
|
|
260
|
-
{...childProps} />;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
})()}
|
|
268
|
-
</div>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
</div>
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
</>
|
|
275
|
-
)
|
|
276
|
-
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
export default Tabs;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/* ======================================================
|
|
2
|
-
<!-- Tag Input -->
|
|
3
|
-
/* ====================================================== */
|
|
4
|
-
|
|
5
|
-
.tag-input__wrapper {
|
|
6
|
-
|
|
7
|
-
--tag-input-control-border-radius: 0.375rem;
|
|
8
|
-
--tag-input-control-wrapper-bg: #fff;
|
|
9
|
-
--tag-input-control-wrapper-border-color: #dee2e6;
|
|
10
|
-
--tag-input-control-color: #adb5bd;
|
|
11
|
-
--tag-input-list-bg: #efefef;
|
|
12
|
-
--tag-input-removebtn-fill: #000;
|
|
13
|
-
--tag-input-removebtn-hover-fill: #f00;
|
|
14
|
-
--tag-input-focus-border-color:#86b7fe;
|
|
15
|
-
--tag-input-focus-box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
display: flex;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ul,
|
|
22
|
-
li {
|
|
23
|
-
padding: 0;
|
|
24
|
-
margin: 0;
|
|
25
|
-
list-style: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.tag-input__control-wrapper {
|
|
30
|
-
display: flex;
|
|
31
|
-
|
|
32
|
-
> div {
|
|
33
|
-
position: relative;
|
|
34
|
-
align-items: center;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
|
|
38
|
-
/* bootstrap style that match ".form-control" */
|
|
39
|
-
padding: 0.375rem;
|
|
40
|
-
background-color: var(--tag-input-control-wrapper-bg);
|
|
41
|
-
background-clip: padding-box;
|
|
42
|
-
border: 1px solid var(--tag-input-control-wrapper-border-color);
|
|
43
|
-
appearance: none;
|
|
44
|
-
border-radius: var(--tag-input-control-border-radius);
|
|
45
|
-
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
46
|
-
padding-bottom: 1px;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
.tag-input__control {
|
|
50
|
-
margin-bottom: 0.375rem;
|
|
51
|
-
|
|
52
|
-
input {
|
|
53
|
-
background: transparent;
|
|
54
|
-
border: none;
|
|
55
|
-
outline: none;
|
|
56
|
-
padding: 0;
|
|
57
|
-
margin: 0;
|
|
58
|
-
margin-left: .5rem;
|
|
59
|
-
|
|
60
|
-
/* bootstrap style that match ".form-control" */
|
|
61
|
-
font-size: 0.875rem;
|
|
62
|
-
font-weight: 400;
|
|
63
|
-
line-height: 1.5;
|
|
64
|
-
color: var(--tag-input-control-color);
|
|
65
|
-
|
|
66
|
-
&:focus {
|
|
67
|
-
outline: none;
|
|
68
|
-
box-shadow: none;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
ul.tag-input__list {
|
|
80
|
-
li {
|
|
81
|
-
display: inline-block;
|
|
82
|
-
margin: 5px;
|
|
83
|
-
margin-bottom: 0;
|
|
84
|
-
padding: .1rem 1.5rem .1rem 1rem;
|
|
85
|
-
font-size: 0.875rem;
|
|
86
|
-
background: var(--tag-input-list-bg);
|
|
87
|
-
border-radius: 30px;
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
text-overflow: ellipsis;
|
|
90
|
-
position: relative;
|
|
91
|
-
|
|
92
|
-
> a {
|
|
93
|
-
font-weight: 400;
|
|
94
|
-
opacity: .6;
|
|
95
|
-
font-size: 18px;
|
|
96
|
-
line-height: 20px;
|
|
97
|
-
position: absolute;
|
|
98
|
-
right: 8px;
|
|
99
|
-
top: 50%;
|
|
100
|
-
transform: translateY(-50%);
|
|
101
|
-
|
|
102
|
-
path {
|
|
103
|
-
fill: var(--tag-input-removebtn-fill);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:hover {
|
|
107
|
-
path {
|
|
108
|
-
fill: var(--tag-input-removebtn-hover-fill);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&.focus {
|
|
118
|
-
.tag-input__control-wrapper {
|
|
119
|
-
> div {
|
|
120
|
-
box-shadow: var(--tag-input-focus-box-shadow);
|
|
121
|
-
border-color: var(--tag-input-focus-border-color);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
}
|