@uzum-tech/ui 2.0.6 → 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.
Files changed (48) hide show
  1. package/dist/index.js +145 -81
  2. package/dist/index.mjs +145 -81
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icons/index.d.ts +0 -1
  6. package/es/_internal/icons/index.mjs +0 -1
  7. package/es/components.d.ts +67 -30
  8. package/es/tree/src/Tree.d.ts +49 -24
  9. package/es/tree/src/Tree.mjs +18 -13
  10. package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
  11. package/es/tree/src/TreeNodeSwitcher.mjs +24 -26
  12. package/es/tree/src/styles/index.cssr.mjs +11 -8
  13. package/es/tree/styles/light.d.ts +4 -0
  14. package/es/tree/styles/light.mjs +2 -0
  15. package/es/tree-select/index.d.ts +1 -1
  16. package/es/tree-select/src/TreeSelect.d.ts +43 -16
  17. package/es/tree-select/src/TreeSelect.mjs +65 -35
  18. package/es/tree-select/src/interface.d.ts +6 -1
  19. package/es/tree-select/src/scroll-option-end.d.ts +3 -0
  20. package/es/tree-select/src/scroll-option-end.mjs +28 -0
  21. package/es/tree-select/styles/light.d.ts +2 -0
  22. package/es/version.d.ts +1 -1
  23. package/es/version.mjs +1 -1
  24. package/lib/_internal/icons/index.d.ts +0 -1
  25. package/lib/_internal/icons/index.js +1 -3
  26. package/lib/components.d.ts +67 -30
  27. package/lib/tree/src/Tree.d.ts +49 -24
  28. package/lib/tree/src/Tree.js +16 -15
  29. package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
  30. package/lib/tree/src/TreeNodeSwitcher.js +11 -14
  31. package/lib/tree/src/styles/index.cssr.js +11 -8
  32. package/lib/tree/styles/light.d.ts +4 -0
  33. package/lib/tree/styles/light.js +2 -0
  34. package/lib/tree-select/index.d.ts +1 -1
  35. package/lib/tree-select/src/TreeSelect.d.ts +43 -16
  36. package/lib/tree-select/src/TreeSelect.js +66 -40
  37. package/lib/tree-select/src/interface.d.ts +6 -1
  38. package/lib/tree-select/src/scroll-option-end.d.ts +3 -0
  39. package/lib/tree-select/src/scroll-option-end.js +30 -0
  40. package/lib/tree-select/styles/light.d.ts +2 -0
  41. package/lib/version.d.ts +1 -1
  42. package/lib/version.js +1 -1
  43. package/package.json +2 -2
  44. package/web-types.json +21 -1
  45. package/es/_internal/icons/Switcher.d.ts +0 -2
  46. package/es/_internal/icons/Switcher.mjs +0 -12
  47. package/lib/_internal/icons/Switcher.d.ts +0 -2
  48. package/lib/_internal/icons/Switcher.js +0 -10
@@ -106227,7 +106227,7 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106227
106227
  readonly scrollbarProps: import("vue").PropType<import("./scrollbar").ScrollbarProps>;
106228
106228
  readonly indent: {
106229
106229
  readonly type: NumberConstructor;
106230
- readonly default: 24;
106230
+ readonly default: 36;
106231
106231
  };
106232
106232
  readonly allowDrop: {
106233
106233
  readonly type: import("vue").PropType<import("./tree/src/interface").AllowDrop>;
@@ -106253,16 +106253,17 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106253
106253
  readonly default: true;
106254
106254
  };
106255
106255
  readonly getChildren: import("vue").PropType<import("./tree/src/interface").GetChildren>;
106256
- readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
106257
- readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
106258
- readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
106259
- readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
106260
- readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
106261
- readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDropInfo) => void>>;
106256
+ readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
106257
+ readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
106258
+ readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
106259
+ readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
106260
+ readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
106261
+ readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDropInfo) => void>>;
106262
106262
  readonly onUpdateCheckedKeys: import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateCheckedKeys>>;
106263
106263
  readonly 'onUpdate:checkedKeys': import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateCheckedKeys>>;
106264
106264
  readonly onUpdateSelectedKeys: import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateSelectedKeys>>;
106265
106265
  readonly 'onUpdate:selectedKeys': import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateSelectedKeys>>;
106266
+ readonly onScroll: import("vue").PropType<import("./_utils").MaybeArray<(event: Event) => void>>;
106266
106267
  readonly theme: import("vue").PropType<import("./_mixins").Theme<"Tree", {
106267
106268
  fontSize: string;
106268
106269
  lineHeight: string;
@@ -106273,6 +106274,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106273
106274
  nodeColorPressed: string;
106274
106275
  nodeColorActive: string;
106275
106276
  arrowColor: string;
106277
+ switcherColor: string;
106278
+ switcherSize: string;
106276
106279
  nodeTextColor: string;
106277
106280
  nodeTextColorDisabled: string;
106278
106281
  loadingColor: string;
@@ -106372,6 +106375,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106372
106375
  nodeColorPressed: string;
106373
106376
  nodeColorActive: string;
106374
106377
  arrowColor: string;
106378
+ switcherColor: string;
106379
+ switcherSize: string;
106375
106380
  nodeTextColor: string;
106376
106381
  nodeTextColorDisabled: string;
106377
106382
  loadingColor: string;
@@ -106471,6 +106476,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106471
106476
  nodeColorPressed: string;
106472
106477
  nodeColorActive: string;
106473
106478
  arrowColor: string;
106479
+ switcherColor: string;
106480
+ switcherSize: string;
106474
106481
  nodeTextColor: string;
106475
106482
  nodeTextColorDisabled: string;
106476
106483
  loadingColor: string;
@@ -106574,6 +106581,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106574
106581
  nodeColorPressed: string;
106575
106582
  nodeColorActive: string;
106576
106583
  arrowColor: string;
106584
+ switcherColor: string;
106585
+ switcherSize: string;
106577
106586
  nodeTextColor: string;
106578
106587
  nodeTextColorDisabled: string;
106579
106588
  loadingColor: string;
@@ -106963,15 +106972,17 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
106963
106972
  handleMouseEnterWrapper: () => void;
106964
106973
  handleMouseLeaveWrapper: () => void;
106965
106974
  } | null>;
106966
- handleFocusout: (e: FocusEvent) => void;
106967
- handleDragLeaveTree: (e: DragEvent) => void;
106968
- handleScroll: () => void;
106975
+ handleFocusout: (event: FocusEvent) => void;
106976
+ handleDragLeaveTree: (event: DragEvent) => void;
106977
+ handleScroll: (event: Event) => void;
106969
106978
  getScrollContainer: () => HTMLElement | null | undefined;
106970
106979
  getScrollContent: () => HTMLElement | null | undefined;
106971
106980
  handleAfterEnter: () => void;
106972
106981
  handleResize: () => void;
106973
106982
  cssVars: import("vue").ComputedRef<{
106974
106983
  '--u-arrow-color': string;
106984
+ '--u-switcher-color': string;
106985
+ '--u-switcher-size': string;
106975
106986
  '--u-loading-color': string;
106976
106987
  '--u-bezier': string;
106977
106988
  '--u-font-size': string;
@@ -107108,7 +107119,7 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
107108
107119
  readonly scrollbarProps: import("vue").PropType<import("./scrollbar").ScrollbarProps>;
107109
107120
  readonly indent: {
107110
107121
  readonly type: NumberConstructor;
107111
- readonly default: 24;
107122
+ readonly default: 36;
107112
107123
  };
107113
107124
  readonly allowDrop: {
107114
107125
  readonly type: import("vue").PropType<import("./tree/src/interface").AllowDrop>;
@@ -107134,16 +107145,17 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
107134
107145
  readonly default: true;
107135
107146
  };
107136
107147
  readonly getChildren: import("vue").PropType<import("./tree/src/interface").GetChildren>;
107137
- readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
107138
- readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
107139
- readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
107140
- readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
107141
- readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDragInfo) => void>>;
107142
- readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(e: import("./tree").TreeDropInfo) => void>>;
107148
+ readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
107149
+ readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
107150
+ readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
107151
+ readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
107152
+ readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDragInfo) => void>>;
107153
+ readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(event: import("./tree").TreeDropInfo) => void>>;
107143
107154
  readonly onUpdateCheckedKeys: import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateCheckedKeys>>;
107144
107155
  readonly 'onUpdate:checkedKeys': import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateCheckedKeys>>;
107145
107156
  readonly onUpdateSelectedKeys: import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateSelectedKeys>>;
107146
107157
  readonly 'onUpdate:selectedKeys': import("vue").PropType<import("./_utils").MaybeArray<import("./tree/src/Tree").OnUpdateSelectedKeys>>;
107158
+ readonly onScroll: import("vue").PropType<import("./_utils").MaybeArray<(event: Event) => void>>;
107147
107159
  readonly theme: import("vue").PropType<import("./_mixins").Theme<"Tree", {
107148
107160
  fontSize: string;
107149
107161
  lineHeight: string;
@@ -107154,6 +107166,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
107154
107166
  nodeColorPressed: string;
107155
107167
  nodeColorActive: string;
107156
107168
  arrowColor: string;
107169
+ switcherColor: string;
107170
+ switcherSize: string;
107157
107171
  nodeTextColor: string;
107158
107172
  nodeTextColorDisabled: string;
107159
107173
  loadingColor: string;
@@ -107253,6 +107267,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
107253
107267
  nodeColorPressed: string;
107254
107268
  nodeColorActive: string;
107255
107269
  arrowColor: string;
107270
+ switcherColor: string;
107271
+ switcherSize: string;
107256
107272
  nodeTextColor: string;
107257
107273
  nodeTextColorDisabled: string;
107258
107274
  loadingColor: string;
@@ -107352,6 +107368,8 @@ export declare const UTree: import("vue").DefineComponent<import("vue").ExtractP
107352
107368
  nodeColorPressed: string;
107353
107369
  nodeColorActive: string;
107354
107370
  arrowColor: string;
107371
+ switcherColor: string;
107372
+ switcherSize: string;
107355
107373
  nodeTextColor: string;
107356
107374
  nodeTextColorDisabled: string;
107357
107375
  loadingColor: string;
@@ -107490,8 +107508,10 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107490
107508
  readonly renderPrefix: import("vue").PropType<import("./tree-select").TreeSelectRenderPrefix>;
107491
107509
  readonly renderSuffix: import("vue").PropType<import("./tree-select").TreeSelectRenderSuffix>;
107492
107510
  readonly nodeProps: import("vue").PropType<import("./tree-select").TreeSelectNodeProps>;
107493
- readonly onBlur: import("vue").PropType<(e: FocusEvent) => void>;
107494
- readonly onFocus: import("vue").PropType<(e: FocusEvent) => void>;
107511
+ readonly onBlur: import("vue").PropType<(event: FocusEvent) => void>;
107512
+ readonly onFocus: import("vue").PropType<(event: FocusEvent) => void>;
107513
+ readonly onScroll: import("vue").PropType<import("./_utils").MaybeArray<(event: Event) => void>>;
107514
+ readonly onScrollOptionEnd: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select").OnScrollOptionEnd>>;
107495
107515
  readonly onLoad: import("vue").PropType<(node: import("./tree-select").TreeSelectOption) => Promise<void>>;
107496
107516
  readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
107497
107517
  readonly onUpdateValue: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select/src/interface").OnUpdateValue>>;
@@ -107612,6 +107632,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107612
107632
  nodeColorPressed: string;
107613
107633
  nodeColorActive: string;
107614
107634
  arrowColor: string;
107635
+ switcherColor: string;
107636
+ switcherSize: string;
107615
107637
  nodeTextColor: string;
107616
107638
  nodeTextColorDisabled: string;
107617
107639
  loadingColor: string;
@@ -107864,6 +107886,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107864
107886
  nodeColorPressed: string;
107865
107887
  nodeColorActive: string;
107866
107888
  arrowColor: string;
107889
+ switcherColor: string;
107890
+ switcherSize: string;
107867
107891
  nodeTextColor: string;
107868
107892
  nodeTextColorDisabled: string;
107869
107893
  loadingColor: string;
@@ -108116,6 +108140,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108116
108140
  nodeColorPressed: string;
108117
108141
  nodeColorActive: string;
108118
108142
  arrowColor: string;
108143
+ switcherColor: string;
108144
+ switcherSize: string;
108119
108145
  nodeTextColor: string;
108120
108146
  nodeTextColorDisabled: string;
108121
108147
  loadingColor: string;
@@ -108414,22 +108440,23 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108414
108440
  }) => void;
108415
108441
  handleMenuLeave: () => void;
108416
108442
  handleTriggerClick: () => void;
108417
- handleMenuClickoutside: (e: MouseEvent) => void;
108443
+ handleMenuClickoutside: (event: MouseEvent) => void;
108418
108444
  handleUpdateCheckedKeys: (keys: import("./tree/src/interface").Key[], _: unknown, meta: {
108419
108445
  node: import("./tree").TreeOption | null;
108420
108446
  action: "check" | "uncheck";
108421
108447
  }) => void;
108422
108448
  handleUpdateIndeterminateKeys: (keys: import("./tree/src/interface").Key[]) => void;
108423
- handleTriggerFocus: (e: FocusEvent) => void;
108424
- handleTriggerBlur: (e: FocusEvent) => void;
108425
- handleMenuFocusin: (e: FocusEvent) => void;
108426
- handleMenuFocusout: (e: FocusEvent) => void;
108427
- handleClear: (e: MouseEvent) => void;
108449
+ handleTriggerFocus: (event: FocusEvent) => void;
108450
+ handleTriggerBlur: (event: FocusEvent) => void;
108451
+ handleMenuFocusin: (event: FocusEvent) => void;
108452
+ handleMenuFocusout: (event: FocusEvent) => void;
108453
+ handleClear: (event: MouseEvent) => void;
108428
108454
  handleDeleteOption: (option: import("./select/src/interface").SelectBaseOption) => void;
108429
- handlePatternInput: (e: InputEvent) => void;
108430
- handleKeydown: (e: KeyboardEvent) => void;
108455
+ handlePatternInput: (event: InputEvent) => void;
108456
+ handleKeydown: (event: KeyboardEvent) => void;
108431
108457
  handleTabOut: () => void;
108432
- handleMenuMousedown: (e: MouseEvent) => void;
108458
+ handleMenuMousedown: (event: MouseEvent) => void;
108459
+ handleTreeScroll: (event: Event) => void;
108433
108460
  mergedTheme: import("vue").ComputedRef<{
108434
108461
  common: import("./config-provider").ThemeCommonVars;
108435
108462
  self: {
@@ -108453,6 +108480,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108453
108480
  nodeColorPressed: string;
108454
108481
  nodeColorActive: string;
108455
108482
  arrowColor: string;
108483
+ switcherColor: string;
108484
+ switcherSize: string;
108456
108485
  nodeTextColor: string;
108457
108486
  nodeTextColorDisabled: string;
108458
108487
  loadingColor: string;
@@ -108827,8 +108856,10 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108827
108856
  readonly renderPrefix: import("vue").PropType<import("./tree-select").TreeSelectRenderPrefix>;
108828
108857
  readonly renderSuffix: import("vue").PropType<import("./tree-select").TreeSelectRenderSuffix>;
108829
108858
  readonly nodeProps: import("vue").PropType<import("./tree-select").TreeSelectNodeProps>;
108830
- readonly onBlur: import("vue").PropType<(e: FocusEvent) => void>;
108831
- readonly onFocus: import("vue").PropType<(e: FocusEvent) => void>;
108859
+ readonly onBlur: import("vue").PropType<(event: FocusEvent) => void>;
108860
+ readonly onFocus: import("vue").PropType<(event: FocusEvent) => void>;
108861
+ readonly onScroll: import("vue").PropType<import("./_utils").MaybeArray<(event: Event) => void>>;
108862
+ readonly onScrollOptionEnd: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select").OnScrollOptionEnd>>;
108832
108863
  readonly onLoad: import("vue").PropType<(node: import("./tree-select").TreeSelectOption) => Promise<void>>;
108833
108864
  readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
108834
108865
  readonly onUpdateValue: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select/src/interface").OnUpdateValue>>;
@@ -108949,6 +108980,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108949
108980
  nodeColorPressed: string;
108950
108981
  nodeColorActive: string;
108951
108982
  arrowColor: string;
108983
+ switcherColor: string;
108984
+ switcherSize: string;
108952
108985
  nodeTextColor: string;
108953
108986
  nodeTextColorDisabled: string;
108954
108987
  loadingColor: string;
@@ -109201,6 +109234,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
109201
109234
  nodeColorPressed: string;
109202
109235
  nodeColorActive: string;
109203
109236
  arrowColor: string;
109237
+ switcherColor: string;
109238
+ switcherSize: string;
109204
109239
  nodeTextColor: string;
109205
109240
  nodeTextColorDisabled: string;
109206
109241
  loadingColor: string;
@@ -109453,6 +109488,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
109453
109488
  nodeColorPressed: string;
109454
109489
  nodeColorActive: string;
109455
109490
  arrowColor: string;
109491
+ switcherColor: string;
109492
+ switcherSize: string;
109456
109493
  nodeTextColor: string;
109457
109494
  nodeTextColorDisabled: string;
109458
109495
  loadingColor: string;
@@ -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: 24;
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<(e: TreeDragInfo) => void>>;
210
- readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
211
- readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
212
- readonly onDragstart: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
213
- readonly onDragover: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
214
- readonly onDrop: PropType<MaybeArray<(e: TreeDropInfo) => void>>;
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: 24;
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<(e: TreeDragInfo) => void>>;
656
- readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
657
- readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
658
- readonly onDragstart: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
659
- readonly onDragover: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
660
- readonly onDrop: PropType<MaybeArray<(e: TreeDropInfo) => void>>;
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: (e: FocusEvent) => void;
1366
- handleDragLeaveTree: (e: DragEvent) => void;
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: 24;
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<(e: TreeDragInfo) => void>>;
1540
- readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
1541
- readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
1542
- readonly onDragstart: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
1543
- readonly onDragover: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
1544
- readonly onDrop: PropType<MaybeArray<(e: TreeDropInfo) => void>>;
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;
@@ -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: 24
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(e) {
795
- if (e.target !== e.currentTarget)
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 handleScroll() {
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(e) {
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(e.relatedTarget)) {
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(e.relatedTarget))
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;