@uzum-tech/ui 2.0.5 → 2.0.7
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/dist/index.js +1183 -573
- package/dist/index.mjs +1183 -573
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icons/DragHandleRound.mjs +16 -0
- package/es/_internal/icons/index.d.ts +1 -1
- package/es/_internal/icons/index.mjs +1 -1
- package/es/components.d.ts +99 -30
- package/es/data-table/src/DataTable.d.ts +24 -0
- package/es/data-table/src/DataTable.mjs +31 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -0
- package/es/data-table/src/TableParts/Body.d.ts +17 -9
- package/es/data-table/src/TableParts/Body.mjs +81 -274
- package/es/data-table/src/TableParts/BodyEmpty.d.ts +3 -0
- package/es/data-table/src/TableParts/BodyEmpty.mjs +22 -0
- package/es/data-table/src/TableParts/BodyRow.d.ts +3 -0
- package/es/data-table/src/TableParts/BodyRow.mjs +257 -0
- package/es/data-table/src/TableParts/BodySkeleton.mjs +5 -2
- package/es/data-table/src/TableParts/Header.d.ts +6 -0
- package/es/data-table/src/TableParts/Header.mjs +5 -1
- package/es/data-table/src/TableParts/VirtualListItemWrapper.d.ts +36 -0
- package/es/data-table/src/TableParts/VirtualListItemWrapper.mjs +46 -0
- package/es/data-table/src/interface.d.ts +161 -2
- package/es/data-table/src/styles/index.cssr.mjs +26 -3
- package/es/data-table/src/use-group-header.d.ts +3 -3
- package/es/data-table/src/use-row-drag.d.ts +2 -0
- package/es/data-table/src/use-row-drag.mjs +241 -0
- package/es/data-table/src/use-sorter.d.ts +4 -8
- package/es/data-table/src/use-sorter.mjs +14 -2
- package/es/data-table/src/use-table-data.d.ts +11 -14
- package/es/data-table/src/use-table-data.mjs +4 -2
- package/es/data-table/src/use-table-storage.d.ts +2 -2
- package/es/data-table/src/use-table-storage.mjs +1 -1
- package/es/data-table/src/utils/column-utils.d.ts +3 -2
- package/es/data-table/src/utils/column-utils.mjs +9 -1
- package/es/data-table/src/utils/csv-utils.mjs +1 -1
- package/es/data-table/src/utils/flatten-rows.d.ts +2 -0
- package/es/data-table/src/utils/flatten-rows.mjs +33 -0
- package/es/data-table/src/utils/index.d.ts +1 -0
- package/es/data-table/src/utils/index.mjs +1 -0
- package/es/data-table/src/utils/resize-orchestrator-utils.d.ts +3 -5
- package/es/data-table/src/utils/width-utils.d.ts +2 -2
- package/es/data-table/styles/light.d.ts +6 -0
- package/es/data-table/styles/light.mjs +3 -0
- package/es/mapping-card/src/MappingCard.d.ts +8 -0
- package/es/mapping-card/src/MappingCard.mjs +3 -1
- package/es/mapping-card/src/MappingCardParts/Header.mjs +31 -10
- package/es/mapping-card/src/interface.d.ts +8 -0
- package/es/mapping-card/src/interface.mjs +4 -0
- package/es/mapping-card/src/styles/index.cssr.mjs +8 -1
- package/es/tree/src/Tree.d.ts +49 -24
- package/es/tree/src/Tree.mjs +18 -13
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree/src/TreeNodeSwitcher.mjs +24 -26
- package/es/tree/src/styles/index.cssr.mjs +11 -8
- package/es/tree/styles/light.d.ts +4 -0
- package/es/tree/styles/light.mjs +2 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +43 -16
- package/es/tree-select/src/TreeSelect.mjs +65 -35
- package/es/tree-select/src/interface.d.ts +6 -1
- package/es/tree-select/src/scroll-option-end.d.ts +3 -0
- package/es/tree-select/src/scroll-option-end.mjs +28 -0
- package/es/tree-select/styles/light.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icons/DragHandleRound.js +10 -0
- package/lib/_internal/icons/index.d.ts +1 -1
- package/lib/_internal/icons/index.js +4 -4
- package/lib/components.d.ts +99 -30
- package/lib/data-table/src/DataTable.d.ts +24 -0
- package/lib/data-table/src/DataTable.js +19 -1
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -0
- package/lib/data-table/src/TableParts/Body.d.ts +18 -10
- package/lib/data-table/src/TableParts/Body.js +65 -237
- package/lib/data-table/src/TableParts/BodyEmpty.d.ts +3 -0
- package/lib/data-table/src/TableParts/BodyEmpty.js +15 -0
- package/lib/data-table/src/TableParts/BodyRow.d.ts +3 -0
- package/lib/data-table/src/TableParts/BodyRow.js +210 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +8 -2
- package/lib/data-table/src/TableParts/Header.d.ts +6 -0
- package/lib/data-table/src/TableParts/Header.js +6 -0
- package/lib/data-table/src/TableParts/VirtualListItemWrapper.d.ts +36 -0
- package/lib/data-table/src/TableParts/VirtualListItemWrapper.js +29 -0
- package/lib/data-table/src/interface.d.ts +161 -2
- package/lib/data-table/src/styles/index.cssr.js +26 -3
- package/lib/data-table/src/use-group-header.d.ts +3 -3
- package/lib/data-table/src/use-row-drag.d.ts +2 -0
- package/lib/data-table/src/use-row-drag.js +270 -0
- package/lib/data-table/src/use-sorter.d.ts +4 -8
- package/lib/data-table/src/use-sorter.js +14 -0
- package/lib/data-table/src/use-table-data.d.ts +11 -14
- package/lib/data-table/src/use-table-data.js +5 -1
- package/lib/data-table/src/use-table-storage.d.ts +2 -2
- package/lib/data-table/src/use-table-storage.js +1 -0
- package/lib/data-table/src/utils/column-utils.d.ts +3 -2
- package/lib/data-table/src/utils/column-utils.js +11 -2
- package/lib/data-table/src/utils/csv-utils.js +1 -0
- package/lib/data-table/src/utils/flatten-rows.d.ts +2 -0
- package/lib/data-table/src/utils/flatten-rows.js +35 -0
- package/lib/data-table/src/utils/index.d.ts +1 -0
- package/lib/data-table/src/utils/index.js +1 -0
- package/lib/data-table/src/utils/resize-orchestrator-utils.d.ts +3 -5
- package/lib/data-table/src/utils/width-utils.d.ts +2 -2
- package/lib/data-table/styles/light.d.ts +6 -0
- package/lib/data-table/styles/light.js +3 -0
- package/lib/mapping-card/src/MappingCard.d.ts +8 -0
- package/lib/mapping-card/src/MappingCard.js +5 -1
- package/lib/mapping-card/src/MappingCardParts/Header.js +29 -5
- package/lib/mapping-card/src/interface.d.ts +8 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mapping-card/src/styles/index.cssr.js +8 -1
- package/lib/tree/src/Tree.d.ts +49 -24
- package/lib/tree/src/Tree.js +16 -15
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree/src/TreeNodeSwitcher.js +11 -14
- package/lib/tree/src/styles/index.cssr.js +11 -8
- package/lib/tree/styles/light.d.ts +4 -0
- package/lib/tree/styles/light.js +2 -0
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +43 -16
- package/lib/tree-select/src/TreeSelect.js +66 -40
- package/lib/tree-select/src/interface.d.ts +6 -1
- package/lib/tree-select/src/scroll-option-end.d.ts +3 -0
- package/lib/tree-select/src/scroll-option-end.js +30 -0
- package/lib/tree-select/styles/light.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/web-types.json +21 -1
- package/es/_internal/icons/Switcher.mjs +0 -12
- package/lib/_internal/icons/Switcher.js +0 -10
- /package/es/_internal/icons/{Switcher.d.ts → DragHandleRound.d.ts} +0 -0
- /package/lib/_internal/icons/{Switcher.d.ts → DragHandleRound.d.ts} +0 -0
package/lib/tree/src/Tree.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ export declare const treeProps: {
|
|
|
180
180
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
181
181
|
readonly indent: {
|
|
182
182
|
readonly type: NumberConstructor;
|
|
183
|
-
readonly default:
|
|
183
|
+
readonly default: 36;
|
|
184
184
|
};
|
|
185
185
|
readonly allowDrop: {
|
|
186
186
|
readonly type: PropType<AllowDrop>;
|
|
@@ -206,16 +206,17 @@ export declare const treeProps: {
|
|
|
206
206
|
readonly default: true;
|
|
207
207
|
};
|
|
208
208
|
readonly getChildren: PropType<GetChildren>;
|
|
209
|
-
readonly onDragenter: PropType<MaybeArray<(
|
|
210
|
-
readonly onDragleave: PropType<MaybeArray<(
|
|
211
|
-
readonly onDragend: PropType<MaybeArray<(
|
|
212
|
-
readonly onDragstart: PropType<MaybeArray<(
|
|
213
|
-
readonly onDragover: PropType<MaybeArray<(
|
|
214
|
-
readonly onDrop: PropType<MaybeArray<(
|
|
209
|
+
readonly onDragenter: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
210
|
+
readonly onDragleave: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
211
|
+
readonly onDragend: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
212
|
+
readonly onDragstart: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
213
|
+
readonly onDragover: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
214
|
+
readonly onDrop: PropType<MaybeArray<(event: TreeDropInfo) => void>>;
|
|
215
215
|
readonly onUpdateCheckedKeys: PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
216
216
|
readonly 'onUpdate:checkedKeys': PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
217
217
|
readonly onUpdateSelectedKeys: PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
218
218
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
219
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
219
220
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
220
221
|
fontSize: string;
|
|
221
222
|
lineHeight: string;
|
|
@@ -226,6 +227,8 @@ export declare const treeProps: {
|
|
|
226
227
|
nodeColorPressed: string;
|
|
227
228
|
nodeColorActive: string;
|
|
228
229
|
arrowColor: string;
|
|
230
|
+
switcherColor: string;
|
|
231
|
+
switcherSize: string;
|
|
229
232
|
nodeTextColor: string;
|
|
230
233
|
nodeTextColorDisabled: string;
|
|
231
234
|
loadingColor: string;
|
|
@@ -325,6 +328,8 @@ export declare const treeProps: {
|
|
|
325
328
|
nodeColorPressed: string;
|
|
326
329
|
nodeColorActive: string;
|
|
327
330
|
arrowColor: string;
|
|
331
|
+
switcherColor: string;
|
|
332
|
+
switcherSize: string;
|
|
328
333
|
nodeTextColor: string;
|
|
329
334
|
nodeTextColorDisabled: string;
|
|
330
335
|
loadingColor: string;
|
|
@@ -424,6 +429,8 @@ export declare const treeProps: {
|
|
|
424
429
|
nodeColorPressed: string;
|
|
425
430
|
nodeColorActive: string;
|
|
426
431
|
arrowColor: string;
|
|
432
|
+
switcherColor: string;
|
|
433
|
+
switcherSize: string;
|
|
427
434
|
nodeTextColor: string;
|
|
428
435
|
nodeTextColorDisabled: string;
|
|
429
436
|
loadingColor: string;
|
|
@@ -626,7 +633,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
626
633
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
627
634
|
readonly indent: {
|
|
628
635
|
readonly type: NumberConstructor;
|
|
629
|
-
readonly default:
|
|
636
|
+
readonly default: 36;
|
|
630
637
|
};
|
|
631
638
|
readonly allowDrop: {
|
|
632
639
|
readonly type: PropType<AllowDrop>;
|
|
@@ -652,16 +659,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
652
659
|
readonly default: true;
|
|
653
660
|
};
|
|
654
661
|
readonly getChildren: PropType<GetChildren>;
|
|
655
|
-
readonly onDragenter: PropType<MaybeArray<(
|
|
656
|
-
readonly onDragleave: PropType<MaybeArray<(
|
|
657
|
-
readonly onDragend: PropType<MaybeArray<(
|
|
658
|
-
readonly onDragstart: PropType<MaybeArray<(
|
|
659
|
-
readonly onDragover: PropType<MaybeArray<(
|
|
660
|
-
readonly onDrop: PropType<MaybeArray<(
|
|
662
|
+
readonly onDragenter: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
663
|
+
readonly onDragleave: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
664
|
+
readonly onDragend: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
665
|
+
readonly onDragstart: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
666
|
+
readonly onDragover: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
667
|
+
readonly onDrop: PropType<MaybeArray<(event: TreeDropInfo) => void>>;
|
|
661
668
|
readonly onUpdateCheckedKeys: PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
662
669
|
readonly 'onUpdate:checkedKeys': PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
663
670
|
readonly onUpdateSelectedKeys: PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
664
671
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
672
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
665
673
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
666
674
|
fontSize: string;
|
|
667
675
|
lineHeight: string;
|
|
@@ -672,6 +680,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
672
680
|
nodeColorPressed: string;
|
|
673
681
|
nodeColorActive: string;
|
|
674
682
|
arrowColor: string;
|
|
683
|
+
switcherColor: string;
|
|
684
|
+
switcherSize: string;
|
|
675
685
|
nodeTextColor: string;
|
|
676
686
|
nodeTextColorDisabled: string;
|
|
677
687
|
loadingColor: string;
|
|
@@ -771,6 +781,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
771
781
|
nodeColorPressed: string;
|
|
772
782
|
nodeColorActive: string;
|
|
773
783
|
arrowColor: string;
|
|
784
|
+
switcherColor: string;
|
|
785
|
+
switcherSize: string;
|
|
774
786
|
nodeTextColor: string;
|
|
775
787
|
nodeTextColorDisabled: string;
|
|
776
788
|
loadingColor: string;
|
|
@@ -870,6 +882,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
870
882
|
nodeColorPressed: string;
|
|
871
883
|
nodeColorActive: string;
|
|
872
884
|
arrowColor: string;
|
|
885
|
+
switcherColor: string;
|
|
886
|
+
switcherSize: string;
|
|
873
887
|
nodeTextColor: string;
|
|
874
888
|
nodeTextColorDisabled: string;
|
|
875
889
|
loadingColor: string;
|
|
@@ -973,6 +987,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
973
987
|
nodeColorPressed: string;
|
|
974
988
|
nodeColorActive: string;
|
|
975
989
|
arrowColor: string;
|
|
990
|
+
switcherColor: string;
|
|
991
|
+
switcherSize: string;
|
|
976
992
|
nodeTextColor: string;
|
|
977
993
|
nodeTextColorDisabled: string;
|
|
978
994
|
loadingColor: string;
|
|
@@ -1362,15 +1378,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1362
1378
|
handleMouseEnterWrapper: () => void;
|
|
1363
1379
|
handleMouseLeaveWrapper: () => void;
|
|
1364
1380
|
} | null>;
|
|
1365
|
-
handleFocusout: (
|
|
1366
|
-
handleDragLeaveTree: (
|
|
1367
|
-
handleScroll: () => void;
|
|
1381
|
+
handleFocusout: (event: FocusEvent) => void;
|
|
1382
|
+
handleDragLeaveTree: (event: DragEvent) => void;
|
|
1383
|
+
handleScroll: (event: Event) => void;
|
|
1368
1384
|
getScrollContainer: () => HTMLElement | null | undefined;
|
|
1369
1385
|
getScrollContent: () => HTMLElement | null | undefined;
|
|
1370
1386
|
handleAfterEnter: () => void;
|
|
1371
1387
|
handleResize: () => void;
|
|
1372
1388
|
cssVars: import("vue").ComputedRef<{
|
|
1373
1389
|
'--u-arrow-color': string;
|
|
1390
|
+
'--u-switcher-color': string;
|
|
1391
|
+
'--u-switcher-size': string;
|
|
1374
1392
|
'--u-loading-color': string;
|
|
1375
1393
|
'--u-bezier': string;
|
|
1376
1394
|
'--u-font-size': string;
|
|
@@ -1510,7 +1528,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1510
1528
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
1511
1529
|
readonly indent: {
|
|
1512
1530
|
readonly type: NumberConstructor;
|
|
1513
|
-
readonly default:
|
|
1531
|
+
readonly default: 36;
|
|
1514
1532
|
};
|
|
1515
1533
|
readonly allowDrop: {
|
|
1516
1534
|
readonly type: PropType<AllowDrop>;
|
|
@@ -1536,16 +1554,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1536
1554
|
readonly default: true;
|
|
1537
1555
|
};
|
|
1538
1556
|
readonly getChildren: PropType<GetChildren>;
|
|
1539
|
-
readonly onDragenter: PropType<MaybeArray<(
|
|
1540
|
-
readonly onDragleave: PropType<MaybeArray<(
|
|
1541
|
-
readonly onDragend: PropType<MaybeArray<(
|
|
1542
|
-
readonly onDragstart: PropType<MaybeArray<(
|
|
1543
|
-
readonly onDragover: PropType<MaybeArray<(
|
|
1544
|
-
readonly onDrop: PropType<MaybeArray<(
|
|
1557
|
+
readonly onDragenter: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
1558
|
+
readonly onDragleave: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
1559
|
+
readonly onDragend: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
1560
|
+
readonly onDragstart: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
1561
|
+
readonly onDragover: PropType<MaybeArray<(event: TreeDragInfo) => void>>;
|
|
1562
|
+
readonly onDrop: PropType<MaybeArray<(event: TreeDropInfo) => void>>;
|
|
1545
1563
|
readonly onUpdateCheckedKeys: PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
1546
1564
|
readonly 'onUpdate:checkedKeys': PropType<MaybeArray<OnUpdateCheckedKeys>>;
|
|
1547
1565
|
readonly onUpdateSelectedKeys: PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
1548
1566
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
1567
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
1549
1568
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
1550
1569
|
fontSize: string;
|
|
1551
1570
|
lineHeight: string;
|
|
@@ -1556,6 +1575,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1556
1575
|
nodeColorPressed: string;
|
|
1557
1576
|
nodeColorActive: string;
|
|
1558
1577
|
arrowColor: string;
|
|
1578
|
+
switcherColor: string;
|
|
1579
|
+
switcherSize: string;
|
|
1559
1580
|
nodeTextColor: string;
|
|
1560
1581
|
nodeTextColorDisabled: string;
|
|
1561
1582
|
loadingColor: string;
|
|
@@ -1655,6 +1676,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1655
1676
|
nodeColorPressed: string;
|
|
1656
1677
|
nodeColorActive: string;
|
|
1657
1678
|
arrowColor: string;
|
|
1679
|
+
switcherColor: string;
|
|
1680
|
+
switcherSize: string;
|
|
1658
1681
|
nodeTextColor: string;
|
|
1659
1682
|
nodeTextColorDisabled: string;
|
|
1660
1683
|
loadingColor: string;
|
|
@@ -1754,6 +1777,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1754
1777
|
nodeColorPressed: string;
|
|
1755
1778
|
nodeColorActive: string;
|
|
1756
1779
|
arrowColor: string;
|
|
1780
|
+
switcherColor: string;
|
|
1781
|
+
switcherSize: string;
|
|
1757
1782
|
nodeTextColor: string;
|
|
1758
1783
|
nodeTextColorDisabled: string;
|
|
1759
1784
|
loadingColor: string;
|
package/lib/tree/src/Tree.js
CHANGED
|
@@ -109,7 +109,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
109
109
|
default: true
|
|
110
110
|
}, scrollbarProps: Object, indent: {
|
|
111
111
|
type: Number,
|
|
112
|
-
default:
|
|
112
|
+
default: 36
|
|
113
113
|
}, allowDrop: {
|
|
114
114
|
type: Function,
|
|
115
115
|
default: dnd_1.defaultAllowDrop
|
|
@@ -122,7 +122,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
122
122
|
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, nodeProps: Function, keyboard: {
|
|
123
123
|
type: Boolean,
|
|
124
124
|
default: true
|
|
125
|
-
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
125
|
+
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array], onScroll: [Function, Array] }), exports.treeSharedProps), {
|
|
126
126
|
// internal props for tree-select
|
|
127
127
|
internalTreeSelect: Boolean, internalScrollable: Boolean, internalScrollablePadding: String,
|
|
128
128
|
// use it to display
|
|
@@ -568,7 +568,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
568
568
|
(0, _utils_1.call)(_onUpdateSelectedKeys, value, option, meta);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
// Drag & Drop
|
|
572
571
|
function doDragEnter(info) {
|
|
573
572
|
const { onDragenter } = props;
|
|
574
573
|
if (onDragenter)
|
|
@@ -621,7 +620,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
621
620
|
nodeKeyToBeExpanded = null;
|
|
622
621
|
}
|
|
623
622
|
function handleCheck(node, checked) {
|
|
624
|
-
// We don't guard for leaf only since we have done it in view layer
|
|
625
623
|
if (props.disabled || (0, utils_1.isNodeDisabled)(node, props.disabledField)) {
|
|
626
624
|
return;
|
|
627
625
|
}
|
|
@@ -772,9 +770,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
772
770
|
}, 1000);
|
|
773
771
|
}
|
|
774
772
|
}
|
|
775
|
-
// Dnd
|
|
776
773
|
function handleDragEnter({ event, node }) {
|
|
777
|
-
// node should be a tmNode
|
|
778
774
|
if (!props.draggable
|
|
779
775
|
|| props.disabled
|
|
780
776
|
|| (0, utils_1.isNodeDisabled)(node, props.disabledField)) {
|
|
@@ -791,12 +787,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
791
787
|
}
|
|
792
788
|
doDragLeave({ event, node: node.rawNode });
|
|
793
789
|
}
|
|
794
|
-
function handleDragLeaveTree(
|
|
795
|
-
if (
|
|
790
|
+
function handleDragLeaveTree(event) {
|
|
791
|
+
if (event.target !== event.currentTarget)
|
|
796
792
|
return;
|
|
797
793
|
resetDropState();
|
|
798
794
|
}
|
|
799
|
-
// Dragend is ok, we don't need to add global listener to reset drag status
|
|
800
795
|
function handleDragEnd({ event, node }) {
|
|
801
796
|
resetDndState();
|
|
802
797
|
if (!props.draggable
|
|
@@ -1064,24 +1059,28 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1064
1059
|
});
|
|
1065
1060
|
resetDndState();
|
|
1066
1061
|
}
|
|
1067
|
-
function
|
|
1062
|
+
function doScroll(event) {
|
|
1063
|
+
props.onScroll && (0, _utils_1.call)(props.onScroll, event);
|
|
1064
|
+
}
|
|
1065
|
+
function handleScroll(event) {
|
|
1068
1066
|
syncScrollbar();
|
|
1067
|
+
doScroll(event);
|
|
1069
1068
|
}
|
|
1070
1069
|
function handleResize() {
|
|
1071
1070
|
syncScrollbar();
|
|
1072
1071
|
}
|
|
1073
|
-
function handleFocusout(
|
|
1072
|
+
function handleFocusout(event) {
|
|
1074
1073
|
var _a;
|
|
1075
1074
|
if (props.virtualScroll || props.internalScrollable) {
|
|
1076
1075
|
const { value: scrollbarInst } = scrollbarInstRef;
|
|
1077
|
-
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(
|
|
1076
|
+
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(event.relatedTarget)) {
|
|
1078
1077
|
return;
|
|
1079
1078
|
}
|
|
1080
1079
|
pendingNodeKeyRef.value = null;
|
|
1081
1080
|
}
|
|
1082
1081
|
else {
|
|
1083
1082
|
const { value: selfEl } = selfElRef;
|
|
1084
|
-
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(
|
|
1083
|
+
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(event.relatedTarget))
|
|
1085
1084
|
return;
|
|
1086
1085
|
pendingNodeKeyRef.value = null;
|
|
1087
1086
|
}
|
|
@@ -1183,12 +1182,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1183
1182
|
}
|
|
1184
1183
|
};
|
|
1185
1184
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
1186
|
-
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1185
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, switcherColor, switcherSize, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1187
1186
|
const lineOffsetTop = (0, seemly_1.getPadding)(nodeWrapperPadding, 'top');
|
|
1188
1187
|
const lineOffsetBottom = (0, seemly_1.getPadding)(nodeWrapperPadding, 'bottom');
|
|
1189
1188
|
const nodeContentHeight = (0, seemly_1.pxfy)((0, seemly_1.depx)(nodeHeight) - (0, seemly_1.depx)(lineOffsetTop) - (0, seemly_1.depx)(lineOffsetBottom));
|
|
1190
1189
|
return {
|
|
1191
1190
|
'--u-arrow-color': arrowColor,
|
|
1191
|
+
'--u-switcher-color': switcherColor,
|
|
1192
|
+
'--u-switcher-size': switcherSize,
|
|
1192
1193
|
'--u-loading-color': loadingColor,
|
|
1193
1194
|
'--u-bezier': cubicBezierEaseInOut,
|
|
1194
1195
|
'--u-font-size': fontSize,
|
|
@@ -1263,7 +1264,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1263
1264
|
treeClass.push(this.themeClass);
|
|
1264
1265
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1265
1266
|
if (internalScrollable) {
|
|
1266
|
-
return ((0, vue_1.h)(_internal_1.UxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1267
|
+
return ((0, vue_1.h)(_internal_1.UxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onScroll: this.handleScroll, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1267
1268
|
default: () => ((0, vue_1.h)("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
1268
1269
|
}));
|
|
1269
1270
|
}
|
|
@@ -28,6 +28,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
nodeColorPressed: string;
|
|
29
29
|
nodeColorActive: string;
|
|
30
30
|
arrowColor: string;
|
|
31
|
+
switcherColor: string;
|
|
32
|
+
switcherSize: string;
|
|
31
33
|
nodeTextColor: string;
|
|
32
34
|
nodeTextColorDisabled: string;
|
|
33
35
|
loadingColor: string;
|
|
@@ -147,6 +149,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
149
|
nodeColorPressed: string;
|
|
148
150
|
nodeColorActive: string;
|
|
149
151
|
arrowColor: string;
|
|
152
|
+
switcherColor: string;
|
|
153
|
+
switcherSize: string;
|
|
150
154
|
nodeTextColor: string;
|
|
151
155
|
nodeTextColorDisabled: string;
|
|
152
156
|
loadingColor: string;
|
|
@@ -24,6 +24,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
24
24
|
},
|
|
25
25
|
setup(props) {
|
|
26
26
|
const { renderSwitcherIconRef, spinPropsRef } = (0, vue_1.inject)(interface_1.treeInjectionKey, null);
|
|
27
|
+
const renderSwitchIcon = () => {
|
|
28
|
+
const { value: renderSwitcherIcon } = renderSwitcherIconRef;
|
|
29
|
+
return ((0, vue_1.h)(_internal_1.UIconSwitchTransition, null, {
|
|
30
|
+
default: () => renderSwitcherIcon ? (renderSwitcherIcon({
|
|
31
|
+
expanded: props.expanded,
|
|
32
|
+
selected: props.selected,
|
|
33
|
+
option: props.tmNode.rawNode
|
|
34
|
+
})) : ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: props.clsPrefix, key: "switcher" }, { default: () => (0, vue_1.h)(icons_1.ChevronRightIcon, null) }))
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
27
37
|
return () => {
|
|
28
38
|
const { clsPrefix, expanded, hide, indent, onClick } = props;
|
|
29
39
|
return ((0, vue_1.h)("span", { "data-switcher": true, class: [
|
|
@@ -31,20 +41,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
31
41
|
expanded && `${clsPrefix}-tree-node-switcher--expanded`,
|
|
32
42
|
hide && `${clsPrefix}-tree-node-switcher--hide`
|
|
33
43
|
], style: { width: `${indent}px` }, onClick: onClick },
|
|
34
|
-
(0, vue_1.h)("div", { class: `${clsPrefix}-tree-node-switcher__icon` },
|
|
35
|
-
(0, vue_1.h)(_internal_1.UIconSwitchTransition, null, {
|
|
36
|
-
default: () => {
|
|
37
|
-
if (props.loading) {
|
|
38
|
-
return ((0, vue_1.h)(_internal_1.UBaseLoading, Object.assign({ clsPrefix: clsPrefix, key: "loading", radius: 85, strokeWidth: 20 }, spinPropsRef === null || spinPropsRef === void 0 ? void 0 : spinPropsRef.value)));
|
|
39
|
-
}
|
|
40
|
-
const { value: renderSwitcherIcon } = renderSwitcherIconRef;
|
|
41
|
-
return renderSwitcherIcon ? (renderSwitcherIcon({
|
|
42
|
-
expanded: props.expanded,
|
|
43
|
-
selected: props.selected,
|
|
44
|
-
option: props.tmNode.rawNode
|
|
45
|
-
})) : ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: clsPrefix, key: "switcher" }, { default: () => (0, vue_1.h)(icons_1.SwitcherIcon, null) }));
|
|
46
|
-
}
|
|
47
|
-
}))));
|
|
44
|
+
(0, vue_1.h)("div", { class: `${clsPrefix}-tree-node-switcher__icon` }, props.loading ? ((0, vue_1.h)(_internal_1.UBaseLoading, Object.assign({ clsPrefix: clsPrefix, key: "loading", radius: 85, strokeWidth: 20 }, spinPropsRef === null || spinPropsRef === void 0 ? void 0 : spinPropsRef.value))) : (renderSwitchIcon()))));
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
});
|
|
@@ -9,6 +9,8 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
9
9
|
const iconSwitchTransitionNode = (0, icon_switch_cssr_1.iconSwitchTransition)();
|
|
10
10
|
// vars:
|
|
11
11
|
// --u-arrow-color
|
|
12
|
+
// --u-switcher-color
|
|
13
|
+
// --u-switcher-size
|
|
12
14
|
// --u-bezier
|
|
13
15
|
// --u-font-size
|
|
14
16
|
// --u-node-border-radius
|
|
@@ -100,19 +102,20 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
100
102
|
vertical-align: bottom;
|
|
101
103
|
`, [(0, cssr_1.cE)('icon', `
|
|
102
104
|
position: relative;
|
|
103
|
-
height:
|
|
104
|
-
width:
|
|
105
|
+
height: var(--u-switcher-size);
|
|
106
|
+
width: var(--u-switcher-size);
|
|
105
107
|
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
border-radius: 50%;
|
|
106
111
|
color: var(--u-arrow-color);
|
|
107
|
-
|
|
112
|
+
background-color: var(--u-switcher-color);
|
|
113
|
+
transition:
|
|
114
|
+
color .3s var(--u-bezier),
|
|
115
|
+
background-color .3s var(--u-bezier);
|
|
108
116
|
font-size: 14px;
|
|
109
117
|
`, [(0, cssr_1.cB)('icon', [iconSwitchTransitionNode]), (0, cssr_1.cB)('base-loading', `
|
|
110
118
|
color: var(--u-loading-color);
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0;
|
|
113
|
-
top: 0;
|
|
114
|
-
right: 0;
|
|
115
|
-
bottom: 0;
|
|
116
119
|
`, [iconSwitchTransitionNode]), (0, cssr_1.cB)('base-icon', [iconSwitchTransitionNode])]), (0, cssr_1.cM)('hide', 'visibility: hidden;'), (0, cssr_1.cM)('expanded', 'transform: rotate(90deg);')]), (0, cssr_1.cB)('tree-node-checkbox', `
|
|
117
120
|
display: inline-flex;
|
|
118
121
|
height: var(--u-node-content-height);
|
|
@@ -9,6 +9,8 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
9
9
|
nodeColorPressed: string;
|
|
10
10
|
nodeColorActive: string;
|
|
11
11
|
arrowColor: string;
|
|
12
|
+
switcherColor: string;
|
|
13
|
+
switcherSize: string;
|
|
12
14
|
nodeTextColor: string;
|
|
13
15
|
nodeTextColorDisabled: string;
|
|
14
16
|
loadingColor: string;
|
|
@@ -25,6 +27,8 @@ declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
|
25
27
|
nodeColorPressed: string;
|
|
26
28
|
nodeColorActive: string;
|
|
27
29
|
arrowColor: string;
|
|
30
|
+
switcherColor: string;
|
|
31
|
+
switcherSize: string;
|
|
28
32
|
nodeTextColor: string;
|
|
29
33
|
nodeTextColorDisabled: string;
|
|
30
34
|
loadingColor: string;
|
package/lib/tree/styles/light.js
CHANGED
|
@@ -18,6 +18,8 @@ function self(vars) {
|
|
|
18
18
|
nodeColorPressed: elementsQuaternary,
|
|
19
19
|
nodeColorActive: brandPrimary100,
|
|
20
20
|
arrowColor: elementsPrimary,
|
|
21
|
+
switcherColor: elementsTertiary,
|
|
22
|
+
switcherSize: '22px',
|
|
21
23
|
nodeTextColor: textPrimary,
|
|
22
24
|
nodeTextColorDisabled: textSecondary,
|
|
23
25
|
loadingColor: elementsPrimary,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TreeOverrideNodeClickBehavior as TreeSelectOverrideNodeClickBehavior, TreeOverrideNodeClickBehaviorReturn as TreeSelectOverrideNodeClickBehaviorReturn } from '../tree';
|
|
2
|
-
export type { TreeSelectInst, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './src/interface';
|
|
2
|
+
export type { OnScrollOptionEnd, TreeSelectInst, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './src/interface';
|
|
3
3
|
export type * from './src/public-types';
|
|
4
4
|
export { treeSelectProps, default as UTreeSelect } from './src/TreeSelect';
|
|
5
5
|
export type { TreeSelectProps, TreeSelectSlots } from './src/TreeSelect';
|
|
@@ -7,15 +7,17 @@ import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
|
7
7
|
import type { FormValidationStatus } from '../../form/src/interface';
|
|
8
8
|
import type { SelectBaseOption, SelectOption } from '../../select/src/interface';
|
|
9
9
|
import type { InternalTreeInst, Key, TreeOption } from '../../tree/src/interface';
|
|
10
|
-
import type { OnUpdateValue, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './interface';
|
|
10
|
+
import type { OnScrollOptionEnd, OnUpdateValue, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './interface';
|
|
11
11
|
type OnLoad = (node: TreeSelectOption) => Promise<void>;
|
|
12
12
|
export declare const treeSelectProps: {
|
|
13
13
|
readonly renderLabel: PropType<TreeSelectRenderLabel>;
|
|
14
14
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
15
15
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
16
16
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
17
|
-
readonly onBlur: PropType<(
|
|
18
|
-
readonly onFocus: PropType<(
|
|
17
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
18
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
19
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
20
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
19
21
|
readonly onLoad: PropType<OnLoad>;
|
|
20
22
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
21
23
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -139,6 +141,8 @@ export declare const treeSelectProps: {
|
|
|
139
141
|
nodeColorPressed: string;
|
|
140
142
|
nodeColorActive: string;
|
|
141
143
|
arrowColor: string;
|
|
144
|
+
switcherColor: string;
|
|
145
|
+
switcherSize: string;
|
|
142
146
|
nodeTextColor: string;
|
|
143
147
|
nodeTextColorDisabled: string;
|
|
144
148
|
loadingColor: string;
|
|
@@ -391,6 +395,8 @@ export declare const treeSelectProps: {
|
|
|
391
395
|
nodeColorPressed: string;
|
|
392
396
|
nodeColorActive: string;
|
|
393
397
|
arrowColor: string;
|
|
398
|
+
switcherColor: string;
|
|
399
|
+
switcherSize: string;
|
|
394
400
|
nodeTextColor: string;
|
|
395
401
|
nodeTextColorDisabled: string;
|
|
396
402
|
loadingColor: string;
|
|
@@ -643,6 +649,8 @@ export declare const treeSelectProps: {
|
|
|
643
649
|
nodeColorPressed: string;
|
|
644
650
|
nodeColorActive: string;
|
|
645
651
|
arrowColor: string;
|
|
652
|
+
switcherColor: string;
|
|
653
|
+
switcherSize: string;
|
|
646
654
|
nodeTextColor: string;
|
|
647
655
|
nodeTextColorDisabled: string;
|
|
648
656
|
loadingColor: string;
|
|
@@ -888,8 +896,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
888
896
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
889
897
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
890
898
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
891
|
-
readonly onBlur: PropType<(
|
|
892
|
-
readonly onFocus: PropType<(
|
|
899
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
900
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
901
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
902
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
893
903
|
readonly onLoad: PropType<OnLoad>;
|
|
894
904
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
895
905
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -1013,6 +1023,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1013
1023
|
nodeColorPressed: string;
|
|
1014
1024
|
nodeColorActive: string;
|
|
1015
1025
|
arrowColor: string;
|
|
1026
|
+
switcherColor: string;
|
|
1027
|
+
switcherSize: string;
|
|
1016
1028
|
nodeTextColor: string;
|
|
1017
1029
|
nodeTextColorDisabled: string;
|
|
1018
1030
|
loadingColor: string;
|
|
@@ -1265,6 +1277,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1265
1277
|
nodeColorPressed: string;
|
|
1266
1278
|
nodeColorActive: string;
|
|
1267
1279
|
arrowColor: string;
|
|
1280
|
+
switcherColor: string;
|
|
1281
|
+
switcherSize: string;
|
|
1268
1282
|
nodeTextColor: string;
|
|
1269
1283
|
nodeTextColorDisabled: string;
|
|
1270
1284
|
loadingColor: string;
|
|
@@ -1517,6 +1531,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1517
1531
|
nodeColorPressed: string;
|
|
1518
1532
|
nodeColorActive: string;
|
|
1519
1533
|
arrowColor: string;
|
|
1534
|
+
switcherColor: string;
|
|
1535
|
+
switcherSize: string;
|
|
1520
1536
|
nodeTextColor: string;
|
|
1521
1537
|
nodeTextColorDisabled: string;
|
|
1522
1538
|
loadingColor: string;
|
|
@@ -1815,22 +1831,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1815
1831
|
}) => void;
|
|
1816
1832
|
handleMenuLeave: () => void;
|
|
1817
1833
|
handleTriggerClick: () => void;
|
|
1818
|
-
handleMenuClickoutside: (
|
|
1834
|
+
handleMenuClickoutside: (event: MouseEvent) => void;
|
|
1819
1835
|
handleUpdateCheckedKeys: (keys: Key[], _: unknown, meta: {
|
|
1820
1836
|
node: TreeOption | null;
|
|
1821
1837
|
action: "check" | "uncheck";
|
|
1822
1838
|
}) => void;
|
|
1823
1839
|
handleUpdateIndeterminateKeys: (keys: Key[]) => void;
|
|
1824
|
-
handleTriggerFocus: (
|
|
1825
|
-
handleTriggerBlur: (
|
|
1826
|
-
handleMenuFocusin: (
|
|
1827
|
-
handleMenuFocusout: (
|
|
1828
|
-
handleClear: (
|
|
1840
|
+
handleTriggerFocus: (event: FocusEvent) => void;
|
|
1841
|
+
handleTriggerBlur: (event: FocusEvent) => void;
|
|
1842
|
+
handleMenuFocusin: (event: FocusEvent) => void;
|
|
1843
|
+
handleMenuFocusout: (event: FocusEvent) => void;
|
|
1844
|
+
handleClear: (event: MouseEvent) => void;
|
|
1829
1845
|
handleDeleteOption: (option: SelectBaseOption) => void;
|
|
1830
|
-
handlePatternInput: (
|
|
1831
|
-
handleKeydown: (
|
|
1846
|
+
handlePatternInput: (event: InputEvent) => void;
|
|
1847
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
1832
1848
|
handleTabOut: () => void;
|
|
1833
|
-
handleMenuMousedown: (
|
|
1849
|
+
handleMenuMousedown: (event: MouseEvent) => void;
|
|
1850
|
+
handleTreeScroll: (event: Event) => void;
|
|
1834
1851
|
mergedTheme: import("vue").ComputedRef<{
|
|
1835
1852
|
common: import("../..").ThemeCommonVars;
|
|
1836
1853
|
self: {
|
|
@@ -1854,6 +1871,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1854
1871
|
nodeColorPressed: string;
|
|
1855
1872
|
nodeColorActive: string;
|
|
1856
1873
|
arrowColor: string;
|
|
1874
|
+
switcherColor: string;
|
|
1875
|
+
switcherSize: string;
|
|
1857
1876
|
nodeTextColor: string;
|
|
1858
1877
|
nodeTextColorDisabled: string;
|
|
1859
1878
|
loadingColor: string;
|
|
@@ -2228,8 +2247,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2228
2247
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
2229
2248
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
2230
2249
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
2231
|
-
readonly onBlur: PropType<(
|
|
2232
|
-
readonly onFocus: PropType<(
|
|
2250
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
2251
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
2252
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
2253
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
2233
2254
|
readonly onLoad: PropType<OnLoad>;
|
|
2234
2255
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
2235
2256
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -2353,6 +2374,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2353
2374
|
nodeColorPressed: string;
|
|
2354
2375
|
nodeColorActive: string;
|
|
2355
2376
|
arrowColor: string;
|
|
2377
|
+
switcherColor: string;
|
|
2378
|
+
switcherSize: string;
|
|
2356
2379
|
nodeTextColor: string;
|
|
2357
2380
|
nodeTextColorDisabled: string;
|
|
2358
2381
|
loadingColor: string;
|
|
@@ -2605,6 +2628,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2605
2628
|
nodeColorPressed: string;
|
|
2606
2629
|
nodeColorActive: string;
|
|
2607
2630
|
arrowColor: string;
|
|
2631
|
+
switcherColor: string;
|
|
2632
|
+
switcherSize: string;
|
|
2608
2633
|
nodeTextColor: string;
|
|
2609
2634
|
nodeTextColorDisabled: string;
|
|
2610
2635
|
loadingColor: string;
|
|
@@ -2857,6 +2882,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2857
2882
|
nodeColorPressed: string;
|
|
2858
2883
|
nodeColorActive: string;
|
|
2859
2884
|
arrowColor: string;
|
|
2885
|
+
switcherColor: string;
|
|
2886
|
+
switcherSize: string;
|
|
2860
2887
|
nodeTextColor: string;
|
|
2861
2888
|
nodeTextColorDisabled: string;
|
|
2862
2889
|
loadingColor: string;
|