@uzum-tech/ui 2.0.6 → 2.0.8

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 +159 -87
  2. package/dist/index.mjs +159 -87
  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 +74 -31
  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 +52 -17
  17. package/es/tree-select/src/TreeSelect.mjs +78 -45
  18. package/es/tree-select/src/interface.d.ts +7 -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 +74 -31
  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 +52 -17
  36. package/lib/tree-select/src/TreeSelect.js +79 -49
  37. package/lib/tree-select/src/interface.d.ts +7 -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 +5 -4
  44. package/web-types.json +41 -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
@@ -55,7 +55,6 @@ export { default as SearchIcon } from './Search';
55
55
  export { default as SendFilled } from './SendFilled';
56
56
  export { default as SiderUnionBorder } from './SiderUnionBorder';
57
57
  export { default as SuccessIcon } from './Success';
58
- export { default as SwitcherIcon } from './Switcher';
59
58
  export { default as TimeIcon } from './Time';
60
59
  export { default as ToIcon } from './To';
61
60
  export { default as TrashIcon } from './Trash';
@@ -55,7 +55,6 @@ export { default as SearchIcon } from "./Search.mjs";
55
55
  export { default as SendFilled } from "./SendFilled.mjs";
56
56
  export { default as SiderUnionBorder } from "./SiderUnionBorder.mjs";
57
57
  export { default as SuccessIcon } from "./Success.mjs";
58
- export { default as SwitcherIcon } from "./Switcher.mjs";
59
58
  export { default as TimeIcon } from "./Time.mjs";
60
59
  export { default as ToIcon } from "./To.mjs";
61
60
  export { default as TrashIcon } from "./Trash.mjs";
@@ -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(".").TreeDragInfo) => void>>;
106257
- readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
106258
- readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
106259
- readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
106260
- readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
106261
- readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDropInfo) => void>>;
106256
+ readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
106257
+ readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
106258
+ readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
106259
+ readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
106260
+ readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
106261
+ readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").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(".").TreeDragInfo) => void>>;
107138
- readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
107139
- readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
107140
- readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
107141
- readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDragInfo) => void>>;
107142
- readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(e: import(".").TreeDropInfo) => void>>;
107148
+ readonly onDragenter: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
107149
+ readonly onDragleave: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
107150
+ readonly onDragend: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
107151
+ readonly onDragstart: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
107152
+ readonly onDragover: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").TreeDragInfo) => void>>;
107153
+ readonly onDrop: import("vue").PropType<import("./_utils").MaybeArray<(event: import(".").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,11 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107490
107508
  readonly renderPrefix: import("vue").PropType<import(".").TreeSelectRenderPrefix>;
107491
107509
  readonly renderSuffix: import("vue").PropType<import(".").TreeSelectRenderSuffix>;
107492
107510
  readonly nodeProps: import("vue").PropType<import(".").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(".").OnScrollOptionEnd>>;
107515
+ readonly onSearch: import("vue").PropType<import("./_utils").MaybeArray<(value: string) => void>>;
107495
107516
  readonly onLoad: import("vue").PropType<(node: import(".").TreeSelectOption) => Promise<void>>;
107496
107517
  readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
107497
107518
  readonly onUpdateValue: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select/src/interface").OnUpdateValue>>;
@@ -107561,6 +107582,7 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107561
107582
  readonly loading: BooleanConstructor;
107562
107583
  readonly maxTagCount: import("vue").PropType<number | "responsive">;
107563
107584
  readonly multiple: BooleanConstructor;
107585
+ readonly remote: BooleanConstructor;
107564
107586
  readonly showPath: BooleanConstructor;
107565
107587
  readonly separator: {
107566
107588
  readonly type: StringConstructor;
@@ -107612,6 +107634,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107612
107634
  nodeColorPressed: string;
107613
107635
  nodeColorActive: string;
107614
107636
  arrowColor: string;
107637
+ switcherColor: string;
107638
+ switcherSize: string;
107615
107639
  nodeTextColor: string;
107616
107640
  nodeTextColorDisabled: string;
107617
107641
  loadingColor: string;
@@ -107864,6 +107888,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
107864
107888
  nodeColorPressed: string;
107865
107889
  nodeColorActive: string;
107866
107890
  arrowColor: string;
107891
+ switcherColor: string;
107892
+ switcherSize: string;
107867
107893
  nodeTextColor: string;
107868
107894
  nodeTextColorDisabled: string;
107869
107895
  loadingColor: string;
@@ -108116,6 +108142,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108116
108142
  nodeColorPressed: string;
108117
108143
  nodeColorActive: string;
108118
108144
  arrowColor: string;
108145
+ switcherColor: string;
108146
+ switcherSize: string;
108119
108147
  nodeTextColor: string;
108120
108148
  nodeTextColorDisabled: string;
108121
108149
  loadingColor: string;
@@ -108397,9 +108425,10 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108397
108425
  selectedOption: import("vue").ComputedRef<import("./select/src/interface").SelectBaseOption<string | number, string | ((option: import("./select/src/interface").SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => import("vue").VNodeChild)> | null>;
108398
108426
  selectedOptions: import("vue").ComputedRef<import("./select/src/interface").SelectBaseOption<string | number, string | ((option: import("./select/src/interface").SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => import("vue").VNodeChild)>[] | null>;
108399
108427
  pattern: import("vue").Ref<string, string>;
108428
+ treePattern: import("vue").ComputedRef<string>;
108400
108429
  pendingNodeKey: import("vue").Ref<string | number | null, string | number | null>;
108401
108430
  mergedCascade: import("vue").ComputedRef<boolean>;
108402
- mergedFilter: import("vue").ComputedRef<(pattern: string, node: import(".").TreeOption) => boolean>;
108431
+ mergedFilter: import("vue").ComputedRef<import("./tree-select/src/interface").FilterHandler>;
108403
108432
  selectionRenderTag: import("vue").ComputedRef<(({ option, handleClose }: {
108404
108433
  option: import("./select").SelectOption;
108405
108434
  handleClose: () => void;
@@ -108414,22 +108443,23 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108414
108443
  }) => void;
108415
108444
  handleMenuLeave: () => void;
108416
108445
  handleTriggerClick: () => void;
108417
- handleMenuClickoutside: (e: MouseEvent) => void;
108446
+ handleMenuClickoutside: (event: MouseEvent) => void;
108418
108447
  handleUpdateCheckedKeys: (keys: import("./tree/src/interface").Key[], _: unknown, meta: {
108419
108448
  node: import(".").TreeOption | null;
108420
108449
  action: "check" | "uncheck";
108421
108450
  }) => void;
108422
108451
  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;
108452
+ handleTriggerFocus: (event: FocusEvent) => void;
108453
+ handleTriggerBlur: (event: FocusEvent) => void;
108454
+ handleMenuFocusin: (event: FocusEvent) => void;
108455
+ handleMenuFocusout: (event: FocusEvent) => void;
108456
+ handleClear: (event: MouseEvent) => void;
108428
108457
  handleDeleteOption: (option: import("./select/src/interface").SelectBaseOption) => void;
108429
- handlePatternInput: (e: InputEvent) => void;
108430
- handleKeydown: (e: KeyboardEvent) => void;
108458
+ handlePatternInput: (event: InputEvent) => void;
108459
+ handleKeydown: (event: KeyboardEvent) => void;
108431
108460
  handleTabOut: () => void;
108432
- handleMenuMousedown: (e: MouseEvent) => void;
108461
+ handleMenuMousedown: (event: MouseEvent) => void;
108462
+ handleTreeScroll: (event: Event) => void;
108433
108463
  mergedTheme: import("vue").ComputedRef<{
108434
108464
  common: import("./config-provider").ThemeCommonVars;
108435
108465
  self: {
@@ -108453,6 +108483,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108453
108483
  nodeColorPressed: string;
108454
108484
  nodeColorActive: string;
108455
108485
  arrowColor: string;
108486
+ switcherColor: string;
108487
+ switcherSize: string;
108456
108488
  nodeTextColor: string;
108457
108489
  nodeTextColorDisabled: string;
108458
108490
  loadingColor: string;
@@ -108827,8 +108859,11 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108827
108859
  readonly renderPrefix: import("vue").PropType<import(".").TreeSelectRenderPrefix>;
108828
108860
  readonly renderSuffix: import("vue").PropType<import(".").TreeSelectRenderSuffix>;
108829
108861
  readonly nodeProps: import("vue").PropType<import(".").TreeSelectNodeProps>;
108830
- readonly onBlur: import("vue").PropType<(e: FocusEvent) => void>;
108831
- readonly onFocus: import("vue").PropType<(e: FocusEvent) => void>;
108862
+ readonly onBlur: import("vue").PropType<(event: FocusEvent) => void>;
108863
+ readonly onFocus: import("vue").PropType<(event: FocusEvent) => void>;
108864
+ readonly onScroll: import("vue").PropType<import("./_utils").MaybeArray<(event: Event) => void>>;
108865
+ readonly onScrollOptionEnd: import("vue").PropType<import("./_utils").MaybeArray<import(".").OnScrollOptionEnd>>;
108866
+ readonly onSearch: import("vue").PropType<import("./_utils").MaybeArray<(value: string) => void>>;
108832
108867
  readonly onLoad: import("vue").PropType<(node: import(".").TreeSelectOption) => Promise<void>>;
108833
108868
  readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
108834
108869
  readonly onUpdateValue: import("vue").PropType<import("./_utils").MaybeArray<import("./tree-select/src/interface").OnUpdateValue>>;
@@ -108898,6 +108933,7 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108898
108933
  readonly loading: BooleanConstructor;
108899
108934
  readonly maxTagCount: import("vue").PropType<number | "responsive">;
108900
108935
  readonly multiple: BooleanConstructor;
108936
+ readonly remote: BooleanConstructor;
108901
108937
  readonly showPath: BooleanConstructor;
108902
108938
  readonly separator: {
108903
108939
  readonly type: StringConstructor;
@@ -108949,6 +108985,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
108949
108985
  nodeColorPressed: string;
108950
108986
  nodeColorActive: string;
108951
108987
  arrowColor: string;
108988
+ switcherColor: string;
108989
+ switcherSize: string;
108952
108990
  nodeTextColor: string;
108953
108991
  nodeTextColorDisabled: string;
108954
108992
  loadingColor: string;
@@ -109201,6 +109239,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
109201
109239
  nodeColorPressed: string;
109202
109240
  nodeColorActive: string;
109203
109241
  arrowColor: string;
109242
+ switcherColor: string;
109243
+ switcherSize: string;
109204
109244
  nodeTextColor: string;
109205
109245
  nodeTextColorDisabled: string;
109206
109246
  loadingColor: string;
@@ -109453,6 +109493,8 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
109453
109493
  nodeColorPressed: string;
109454
109494
  nodeColorActive: string;
109455
109495
  arrowColor: string;
109496
+ switcherColor: string;
109497
+ switcherSize: string;
109456
109498
  nodeTextColor: string;
109457
109499
  nodeTextColorDisabled: string;
109458
109500
  loadingColor: string;
@@ -109701,6 +109743,7 @@ export declare const UTreeSelect: import("vue").DefineComponent<import("vue").Ex
109701
109743
  readonly filterable: boolean;
109702
109744
  readonly disabledField: string;
109703
109745
  readonly clearFilterAfterSelect: boolean;
109746
+ readonly remote: boolean;
109704
109747
  readonly cascade: boolean;
109705
109748
  readonly leafOnly: boolean;
109706
109749
  readonly showPath: boolean;
@@ -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;
@@ -146,7 +146,7 @@ export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign
146
146
  scrollbarProps: Object,
147
147
  indent: {
148
148
  type: Number,
149
- default: 24
149
+ default: 36
150
150
  },
151
151
  allowDrop: {
152
152
  type: Function,
@@ -181,7 +181,8 @@ export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign
181
181
  onUpdateCheckedKeys: [Function, Array],
182
182
  'onUpdate:checkedKeys': [Function, Array],
183
183
  onUpdateSelectedKeys: [Function, Array],
184
- 'onUpdate:selectedKeys': [Function, Array]
184
+ 'onUpdate:selectedKeys': [Function, Array],
185
+ onScroll: [Function, Array]
185
186
  }), treeSharedProps), {
186
187
  // internal props for tree-select
187
188
  internalTreeSelect: Boolean,
@@ -657,7 +658,6 @@ export default defineComponent({
657
658
  call(_onUpdateSelectedKeys, value, option, meta);
658
659
  }
659
660
  }
660
- // Drag & Drop
661
661
  function doDragEnter(info) {
662
662
  const {
663
663
  onDragenter
@@ -716,7 +716,6 @@ export default defineComponent({
716
716
  nodeKeyToBeExpanded = null;
717
717
  }
718
718
  function handleCheck(node, checked) {
719
- // We don't guard for leaf only since we have done it in view layer
720
719
  if (props.disabled || isNodeDisabled(node, props.disabledField)) {
721
720
  return;
722
721
  }
@@ -869,12 +868,10 @@ export default defineComponent({
869
868
  }, 1000);
870
869
  }
871
870
  }
872
- // Dnd
873
871
  function handleDragEnter({
874
872
  event,
875
873
  node
876
874
  }) {
877
- // node should be a tmNode
878
875
  if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
879
876
  return;
880
877
  }
@@ -899,11 +896,10 @@ export default defineComponent({
899
896
  node: node.rawNode
900
897
  });
901
898
  }
902
- function handleDragLeaveTree(e) {
903
- if (e.target !== e.currentTarget) return;
899
+ function handleDragLeaveTree(event) {
900
+ if (event.target !== event.currentTarget) return;
904
901
  resetDropState();
905
902
  }
906
- // Dragend is ok, we don't need to add global listener to reset drag status
907
903
  function handleDragEnd({
908
904
  event,
909
905
  node
@@ -1180,19 +1176,23 @@ export default defineComponent({
1180
1176
  });
1181
1177
  resetDndState();
1182
1178
  }
1183
- function handleScroll() {
1179
+ function doScroll(event) {
1180
+ props.onScroll && call(props.onScroll, event);
1181
+ }
1182
+ function handleScroll(event) {
1184
1183
  syncScrollbar();
1184
+ doScroll(event);
1185
1185
  }
1186
1186
  function handleResize() {
1187
1187
  syncScrollbar();
1188
1188
  }
1189
- function handleFocusout(e) {
1189
+ function handleFocusout(event) {
1190
1190
  var _a;
1191
1191
  if (props.virtualScroll || props.internalScrollable) {
1192
1192
  const {
1193
1193
  value: scrollbarInst
1194
1194
  } = scrollbarInstRef;
1195
- if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget)) {
1195
+ if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(event.relatedTarget)) {
1196
1196
  return;
1197
1197
  }
1198
1198
  pendingNodeKeyRef.value = null;
@@ -1200,7 +1200,7 @@ export default defineComponent({
1200
1200
  const {
1201
1201
  value: selfEl
1202
1202
  } = selfElRef;
1203
- if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(e.relatedTarget)) return;
1203
+ if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(event.relatedTarget)) return;
1204
1204
  pendingNodeKeyRef.value = null;
1205
1205
  }
1206
1206
  }
@@ -1320,6 +1320,8 @@ export default defineComponent({
1320
1320
  nodeColorPressed,
1321
1321
  nodeColorActive,
1322
1322
  arrowColor,
1323
+ switcherColor,
1324
+ switcherSize,
1323
1325
  loadingColor,
1324
1326
  nodeTextColor,
1325
1327
  nodeTextColorDisabled,
@@ -1334,6 +1336,8 @@ export default defineComponent({
1334
1336
  const nodeContentHeight = pxfy(depx(nodeHeight) - depx(lineOffsetTop) - depx(lineOffsetBottom));
1335
1337
  return {
1336
1338
  '--u-arrow-color': arrowColor,
1339
+ '--u-switcher-color': switcherColor,
1340
+ '--u-switcher-size': switcherSize,
1337
1341
  '--u-loading-color': loadingColor,
1338
1342
  '--u-bezier': cubicBezierEaseInOut,
1339
1343
  '--u-font-size': fontSize,
@@ -1465,6 +1469,7 @@ export default defineComponent({
1465
1469
  return h(UxScrollbar, Object.assign({}, scrollbarProps, {
1466
1470
  class: treeClass,
1467
1471
  tabindex: tabindex,
1472
+ onScroll: this.handleScroll,
1468
1473
  onKeydown: mergedFocusable ? handleKeydown : undefined,
1469
1474
  onFocusout: mergedFocusable ? handleFocusout : undefined,
1470
1475
  style: this.cssVars,