lew-ui 2.7.54 → 2.7.56

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 (50) hide show
  1. package/LICENSE +21 -21
  2. package/dist/_components/CommonIcon.vue.d.ts +1 -1
  3. package/dist/_components/CommonInput.vue.d.ts +499 -0
  4. package/dist/components/data/collapse/src/emits.d.ts +1 -1
  5. package/dist/components/data/desc/index.d.ts +0 -1
  6. package/dist/components/data/desc/src/LewDesc.vue.d.ts +2 -6
  7. package/dist/components/data/table/src/LewTable.vue.d.ts +1 -1
  8. package/dist/components/data/tree/src/LewTree.vue.d.ts +12 -1
  9. package/dist/components/data/tree/src/props.d.ts +5 -0
  10. package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +22 -0
  11. package/dist/components/feedback/drawer/src/props.d.ts +10 -0
  12. package/dist/components/feedback/modal/src/LewModal.vue.d.ts +38 -0
  13. package/dist/components/feedback/modal/src/props.d.ts +18 -0
  14. package/dist/components/form/cascader/src/LewCascader.vue.d.ts +40 -31
  15. package/dist/components/form/cascader/src/cascader.d.ts +15 -0
  16. package/dist/components/form/cascader/src/emits.d.ts +5 -1
  17. package/dist/components/form/cascader/src/props.d.ts +15 -10
  18. package/dist/components/form/form/src/LewFormItem.vue.d.ts +9 -15
  19. package/dist/components/form/form/src/emits.d.ts +1 -1
  20. package/dist/components/form/form/src/props.d.ts +3 -6
  21. package/dist/components/form/index.d.ts +1 -1
  22. package/dist/components/form/input/src/LewInput.vue.d.ts +2 -2
  23. package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +2 -2
  24. package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -4
  25. package/dist/components/form/select/src/LewSelect.vue.d.ts +1480 -411
  26. package/dist/components/form/select/src/emits.d.ts +5 -1
  27. package/dist/components/form/select/src/props.d.ts +7 -2
  28. package/dist/components/form/switch/src/emits.d.ts +1 -1
  29. package/dist/components/form/tabs/src/props.d.ts +1 -1
  30. package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +4 -2
  31. package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +40 -25
  32. package/dist/components/form/tree-select/src/props.d.ts +0 -6
  33. package/dist/components/form/tree-select-multiple/index.d.ts +3 -0
  34. package/dist/components/form/{select-multiple/src/LewSelectMultiple.vue.d.ts → tree-select-multiple/src/LewTreeSelectMultiple.vue.d.ts} +492 -930
  35. package/dist/components/form/tree-select-multiple/src/emits.d.ts +4 -0
  36. package/dist/components/form/{select-multiple → tree-select-multiple}/src/props.d.ts +63 -55
  37. package/dist/components/general/tag/src/LewTag.vue.d.ts +0 -2
  38. package/dist/components/general/tag/src/emits.d.ts +0 -1
  39. package/dist/hooks/index.d.ts +4 -2
  40. package/dist/hooks/useDOMCreate.d.ts +1 -0
  41. package/dist/hooks/useEventListener.d.ts +1 -0
  42. package/dist/hooks/useTreeSelection.d.ts +34 -0
  43. package/dist/index.css +1 -1
  44. package/dist/index.js +2119 -1780
  45. package/dist/index.umd.cjs +7 -7
  46. package/dist/types/components.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/dist/components/data/desc/src/emits.d.ts +0 -3
  49. package/dist/components/form/select-multiple/index.d.ts +0 -3
  50. package/dist/components/form/select-multiple/src/emits.d.ts +0 -11
@@ -1,6 +1,10 @@
1
1
  export declare const selectEmits: {
2
- readonly change: (value?: string) => string | undefined;
2
+ readonly change: (value?: string | number | (string | number)[]) => string | number | boolean | (string | number)[];
3
3
  readonly blur: () => boolean;
4
4
  readonly clear: () => boolean;
5
5
  readonly focus: () => boolean;
6
+ readonly delete: (value: (string | number)[], item: string | number) => {
7
+ value: (string | number)[];
8
+ item: string | number;
9
+ };
6
10
  };
@@ -3,13 +3,13 @@ import { LewSelectOption, LewSelectSearchMethodParams, LewSize, LewTrigger } fro
3
3
  import { ExtractPublicPropTypes, PropType } from 'vue';
4
4
  export declare const selectModel: {
5
5
  modelValue: {
6
- type: PropType<string | number | undefined>;
6
+ type: PropType<string | number | (string | number)[] | undefined>;
7
7
  default: string;
8
8
  };
9
9
  };
10
10
  export declare const selectProps: {
11
11
  defaultValue: {
12
- type: StringConstructor;
12
+ type: PropType<string | (string | number)[]>;
13
13
  default: string;
14
14
  validator: (value: any) => boolean;
15
15
  };
@@ -50,6 +50,11 @@ export declare const selectProps: {
50
50
  typeValues: LewSize[];
51
51
  validator: (value: any) => boolean;
52
52
  };
53
+ multiple: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ validator: (value: any) => boolean;
57
+ };
53
58
  itemHeight: {
54
59
  type: NumberConstructor;
55
60
  default: number;
@@ -1,3 +1,3 @@
1
1
  export declare const switchEmits: {
2
- readonly change: (value?: boolean) => boolean | undefined;
2
+ readonly change: (value?: boolean) => boolean;
3
3
  };
@@ -53,4 +53,4 @@ export declare const tabsProps: {
53
53
  validator: (value: any) => boolean;
54
54
  };
55
55
  };
56
- export type TabsProps = ExtractPublicPropTypes<typeof tabsProps>;
56
+ export type LewTabsProps = ExtractPublicPropTypes<typeof tabsProps>;
@@ -1,4 +1,5 @@
1
- declare function toFocus(): void;
1
+ declare function focus(): void;
2
+ declare function blur(): void;
2
3
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
4
  placeholder: {
4
5
  type: StringConstructor;
@@ -85,7 +86,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
85
86
  type: globalThis.PropType<any>;
86
87
  };
87
88
  }>, {
88
- toFocus: typeof toFocus;
89
+ focus: typeof focus;
90
+ blur: typeof blur;
89
91
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
90
92
  input: (value?: string | undefined) => void;
91
93
  change: (value?: string | undefined) => void;
@@ -252,8 +252,8 @@ declare function __VLS_template(): {
252
252
  $props: Partial<{
253
253
  checkable: boolean;
254
254
  height: string;
255
- searchable: boolean;
256
255
  multiple: boolean;
256
+ searchable: boolean;
257
257
  expandAll: boolean;
258
258
  free: boolean;
259
259
  showLine: boolean;
@@ -261,11 +261,12 @@ declare function __VLS_template(): {
261
261
  labelField: string;
262
262
  disabledField: string;
263
263
  isSelect: boolean;
264
+ onlyLeafSelectable: boolean;
264
265
  }> & Omit<{
265
266
  readonly checkable: boolean;
266
267
  readonly height: string;
267
- readonly searchable: boolean;
268
268
  readonly multiple: boolean;
269
+ readonly searchable: boolean;
269
270
  readonly expandAll: boolean;
270
271
  readonly free: boolean;
271
272
  readonly showLine: boolean;
@@ -273,6 +274,7 @@ declare function __VLS_template(): {
273
274
  readonly labelField: string;
274
275
  readonly disabledField: string;
275
276
  readonly isSelect: boolean;
277
+ readonly onlyLeafSelectable: boolean;
276
278
  readonly expandKeys?: never[] | undefined;
277
279
  readonly modelValue?: any;
278
280
  readonly dataSource?: import('../../../..').LewTreeDataSource[] | undefined;
@@ -284,7 +286,7 @@ declare function __VLS_template(): {
284
286
  readonly onLoadStart?: (() => any) | undefined;
285
287
  readonly onLoadEnd?: ((text: string) => any) | undefined;
286
288
  readonly "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
287
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "searchable" | "multiple" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect">;
289
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable">;
288
290
  $attrs: {
289
291
  [x: string]: unknown;
290
292
  };
@@ -369,6 +371,11 @@ declare function __VLS_template(): {
369
371
  hidden: boolean;
370
372
  validator: (value: any) => boolean;
371
373
  };
374
+ onlyLeafSelectable: {
375
+ type: BooleanConstructor;
376
+ default: boolean;
377
+ validator: (value: any) => boolean;
378
+ };
372
379
  modelValue: {
373
380
  type: globalThis.PropType<any>;
374
381
  };
@@ -396,8 +403,8 @@ declare function __VLS_template(): {
396
403
  }, string, {
397
404
  checkable: boolean;
398
405
  height: string;
399
- searchable: boolean;
400
406
  multiple: boolean;
407
+ searchable: boolean;
401
408
  expandAll: boolean;
402
409
  free: boolean;
403
410
  showLine: boolean;
@@ -405,6 +412,7 @@ declare function __VLS_template(): {
405
412
  labelField: string;
406
413
  disabledField: string;
407
414
  isSelect: boolean;
415
+ onlyLeafSelectable: boolean;
408
416
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
409
417
  beforeCreate?: (() => void) | (() => void)[];
410
418
  created?: (() => void) | (() => void)[];
@@ -428,8 +436,8 @@ declare function __VLS_template(): {
428
436
  } & Readonly<{
429
437
  checkable: boolean;
430
438
  height: string;
431
- searchable: boolean;
432
439
  multiple: boolean;
440
+ searchable: boolean;
433
441
  expandAll: boolean;
434
442
  free: boolean;
435
443
  showLine: boolean;
@@ -437,6 +445,7 @@ declare function __VLS_template(): {
437
445
  labelField: string;
438
446
  disabledField: string;
439
447
  isSelect: boolean;
448
+ onlyLeafSelectable: boolean;
440
449
  }> & Omit<Readonly<globalThis.ExtractPropTypes<{
441
450
  dataSource: {
442
451
  type: PropType<import('../../../..').LewTreeDataSource[]>;
@@ -507,6 +516,11 @@ declare function __VLS_template(): {
507
516
  hidden: boolean;
508
517
  validator: (value: any) => boolean;
509
518
  };
519
+ onlyLeafSelectable: {
520
+ type: BooleanConstructor;
521
+ default: boolean;
522
+ validator: (value: any) => boolean;
523
+ };
510
524
  modelValue: {
511
525
  type: globalThis.PropType<any>;
512
526
  };
@@ -520,7 +534,7 @@ declare function __VLS_template(): {
520
534
  onLoadStart?: (() => any) | undefined;
521
535
  onLoadEnd?: ((text: string) => any) | undefined;
522
536
  "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
523
- }>, "search" | "reset" | "getTree" | ("checkable" | "height" | "searchable" | "multiple" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect")> & import('vue').ShallowUnwrapRef<{
537
+ }>, "search" | "reset" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
524
538
  search: (keyword: string) => void;
525
539
  reset: () => void;
526
540
  getTree: () => any;
@@ -537,7 +551,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
537
551
  dataSource: {
538
552
  type: PropType<import('../../../..').LewTreeDataSource[]>;
539
553
  typePopKeys: string[];
540
- required: boolean;
541
554
  validator: (value: any[] | undefined) => boolean;
542
555
  };
543
556
  width: {
@@ -580,11 +593,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
580
593
  default: boolean;
581
594
  validator: (value: any) => boolean;
582
595
  };
583
- showCheckIcon: {
584
- type: BooleanConstructor;
585
- default: boolean;
586
- validator: (value: any) => boolean;
587
- };
588
596
  showLine: {
589
597
  type: BooleanConstructor;
590
598
  default: boolean;
@@ -664,7 +672,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
664
672
  dataSource: {
665
673
  type: PropType<import('../../../..').LewTreeDataSource[]>;
666
674
  typePopKeys: string[];
667
- required: boolean;
668
675
  validator: (value: any[] | undefined) => boolean;
669
676
  };
670
677
  width: {
@@ -707,11 +714,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
707
714
  default: boolean;
708
715
  validator: (value: any) => boolean;
709
716
  };
710
- showCheckIcon: {
711
- type: BooleanConstructor;
712
- default: boolean;
713
- validator: (value: any) => boolean;
714
- };
715
717
  showLine: {
716
718
  type: BooleanConstructor;
717
719
  default: boolean;
@@ -795,7 +797,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
795
797
  searchable: boolean;
796
798
  initMethod: () => void;
797
799
  searchDelay: number;
798
- showCheckIcon: boolean;
799
800
  expandAll: boolean;
800
801
  free: boolean;
801
802
  showLine: boolean;
@@ -1046,8 +1047,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1046
1047
  $props: Partial<{
1047
1048
  checkable: boolean;
1048
1049
  height: string;
1049
- searchable: boolean;
1050
1050
  multiple: boolean;
1051
+ searchable: boolean;
1051
1052
  expandAll: boolean;
1052
1053
  free: boolean;
1053
1054
  showLine: boolean;
@@ -1055,11 +1056,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1055
1056
  labelField: string;
1056
1057
  disabledField: string;
1057
1058
  isSelect: boolean;
1059
+ onlyLeafSelectable: boolean;
1058
1060
  }> & Omit<{
1059
1061
  readonly checkable: boolean;
1060
1062
  readonly height: string;
1061
- readonly searchable: boolean;
1062
1063
  readonly multiple: boolean;
1064
+ readonly searchable: boolean;
1063
1065
  readonly expandAll: boolean;
1064
1066
  readonly free: boolean;
1065
1067
  readonly showLine: boolean;
@@ -1067,6 +1069,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1067
1069
  readonly labelField: string;
1068
1070
  readonly disabledField: string;
1069
1071
  readonly isSelect: boolean;
1072
+ readonly onlyLeafSelectable: boolean;
1070
1073
  readonly expandKeys?: never[] | undefined;
1071
1074
  readonly modelValue?: any;
1072
1075
  readonly dataSource?: import('../../../..').LewTreeDataSource[] | undefined;
@@ -1078,7 +1081,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1078
1081
  readonly onLoadStart?: (() => any) | undefined;
1079
1082
  readonly onLoadEnd?: ((text: string) => any) | undefined;
1080
1083
  readonly "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
1081
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "searchable" | "multiple" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect">;
1084
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable">;
1082
1085
  $attrs: {
1083
1086
  [x: string]: unknown;
1084
1087
  };
@@ -1163,6 +1166,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1163
1166
  hidden: boolean;
1164
1167
  validator: (value: any) => boolean;
1165
1168
  };
1169
+ onlyLeafSelectable: {
1170
+ type: BooleanConstructor;
1171
+ default: boolean;
1172
+ validator: (value: any) => boolean;
1173
+ };
1166
1174
  modelValue: {
1167
1175
  type: globalThis.PropType<any>;
1168
1176
  };
@@ -1190,8 +1198,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1190
1198
  }, string, {
1191
1199
  checkable: boolean;
1192
1200
  height: string;
1193
- searchable: boolean;
1194
1201
  multiple: boolean;
1202
+ searchable: boolean;
1195
1203
  expandAll: boolean;
1196
1204
  free: boolean;
1197
1205
  showLine: boolean;
@@ -1199,6 +1207,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1199
1207
  labelField: string;
1200
1208
  disabledField: string;
1201
1209
  isSelect: boolean;
1210
+ onlyLeafSelectable: boolean;
1202
1211
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1203
1212
  beforeCreate?: (() => void) | (() => void)[];
1204
1213
  created?: (() => void) | (() => void)[];
@@ -1222,8 +1231,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1222
1231
  } & Readonly<{
1223
1232
  checkable: boolean;
1224
1233
  height: string;
1225
- searchable: boolean;
1226
1234
  multiple: boolean;
1235
+ searchable: boolean;
1227
1236
  expandAll: boolean;
1228
1237
  free: boolean;
1229
1238
  showLine: boolean;
@@ -1231,6 +1240,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1231
1240
  labelField: string;
1232
1241
  disabledField: string;
1233
1242
  isSelect: boolean;
1243
+ onlyLeafSelectable: boolean;
1234
1244
  }> & Omit<Readonly<globalThis.ExtractPropTypes<{
1235
1245
  dataSource: {
1236
1246
  type: PropType<import('../../../..').LewTreeDataSource[]>;
@@ -1301,6 +1311,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1301
1311
  hidden: boolean;
1302
1312
  validator: (value: any) => boolean;
1303
1313
  };
1314
+ onlyLeafSelectable: {
1315
+ type: BooleanConstructor;
1316
+ default: boolean;
1317
+ validator: (value: any) => boolean;
1318
+ };
1304
1319
  modelValue: {
1305
1320
  type: globalThis.PropType<any>;
1306
1321
  };
@@ -1314,7 +1329,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
1314
1329
  onLoadStart?: (() => any) | undefined;
1315
1330
  onLoadEnd?: ((text: string) => any) | undefined;
1316
1331
  "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
1317
- }>, "search" | "reset" | "getTree" | ("checkable" | "height" | "searchable" | "multiple" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect")> & import('vue').ShallowUnwrapRef<{
1332
+ }>, "search" | "reset" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
1318
1333
  search: (keyword: string) => void;
1319
1334
  reset: () => void;
1320
1335
  getTree: () => any;
@@ -11,7 +11,6 @@ export declare const treeSelectProps: {
11
11
  dataSource: {
12
12
  type: PropType<LewTreeDataSource[]>;
13
13
  typePopKeys: string[];
14
- required: boolean;
15
14
  validator: (value: any[] | undefined) => boolean;
16
15
  };
17
16
  width: {
@@ -54,11 +53,6 @@ export declare const treeSelectProps: {
54
53
  default: boolean;
55
54
  validator: (value: any) => boolean;
56
55
  };
57
- showCheckIcon: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- validator: (value: any) => boolean;
61
- };
62
56
  showLine: {
63
57
  type: BooleanConstructor;
64
58
  default: boolean;
@@ -0,0 +1,3 @@
1
+ export * from './src/emits';
2
+ export { default as LewTreeSelectMultiple } from './src/LewTreeSelectMultiple.vue';
3
+ export * from './src/props';