lew-ui 2.7.55 → 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.
- package/LICENSE +21 -21
- package/dist/_components/CommonInput.vue.d.ts +499 -0
- package/dist/components/data/table/src/LewTable.vue.d.ts +1 -1
- package/dist/components/data/tree/src/LewTree.vue.d.ts +12 -1
- package/dist/components/data/tree/src/props.d.ts +5 -0
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +22 -0
- package/dist/components/feedback/drawer/src/props.d.ts +10 -0
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +40 -31
- package/dist/components/form/cascader/src/cascader.d.ts +15 -0
- package/dist/components/form/cascader/src/emits.d.ts +5 -1
- package/dist/components/form/cascader/src/props.d.ts +15 -10
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/input/src/LewInput.vue.d.ts +2 -2
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +2 -2
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/form/select/src/LewSelect.vue.d.ts +1480 -411
- package/dist/components/form/select/src/emits.d.ts +5 -1
- package/dist/components/form/select/src/props.d.ts +7 -2
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +4 -2
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +40 -23
- package/dist/components/form/tree-select/src/props.d.ts +0 -5
- package/dist/components/form/tree-select-multiple/index.d.ts +3 -0
- package/dist/components/form/{select-multiple/src/LewSelectMultiple.vue.d.ts → tree-select-multiple/src/LewTreeSelectMultiple.vue.d.ts} +492 -930
- package/dist/components/form/tree-select-multiple/src/emits.d.ts +4 -0
- package/dist/components/form/{select-multiple → tree-select-multiple}/src/props.d.ts +63 -55
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/useDOMCreate.d.ts +1 -0
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/hooks/useTreeSelection.d.ts +34 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2067 -1731
- package/dist/index.umd.cjs +7 -7
- package/dist/types/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/form/select-multiple/index.d.ts +0 -3
- package/dist/components/form/select-multiple/src/emits.d.ts +0 -11
|
@@ -240,7 +240,6 @@ declare function __VLS_template(): {
|
|
|
240
240
|
}): any;
|
|
241
241
|
};
|
|
242
242
|
}) | null;
|
|
243
|
-
lewCascaderRef: HTMLDivElement;
|
|
244
243
|
};
|
|
245
244
|
rootEl: HTMLDivElement;
|
|
246
245
|
};
|
|
@@ -271,16 +270,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
271
270
|
default: boolean;
|
|
272
271
|
validator: (value: any) => boolean;
|
|
273
272
|
};
|
|
274
|
-
showAllLevels: {
|
|
275
|
-
type: BooleanConstructor;
|
|
276
|
-
default: boolean;
|
|
277
|
-
validator: (value: any) => boolean;
|
|
278
|
-
};
|
|
279
|
-
multiple: {
|
|
280
|
-
type: BooleanConstructor;
|
|
281
|
-
default: boolean;
|
|
282
|
-
validator: (value: any) => boolean;
|
|
283
|
-
};
|
|
284
273
|
free: {
|
|
285
274
|
type: BooleanConstructor;
|
|
286
275
|
default: boolean;
|
|
@@ -322,17 +311,32 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
322
311
|
default: boolean;
|
|
323
312
|
validator: (value: any) => boolean;
|
|
324
313
|
};
|
|
314
|
+
onlyLeafSelectable: {
|
|
315
|
+
type: BooleanConstructor;
|
|
316
|
+
default: boolean;
|
|
317
|
+
validator: (value: any) => boolean;
|
|
318
|
+
};
|
|
319
|
+
multiple: {
|
|
320
|
+
type: BooleanConstructor;
|
|
321
|
+
default: boolean;
|
|
322
|
+
validator: (value: any) => boolean;
|
|
323
|
+
};
|
|
324
|
+
showAllLevels: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
default: boolean;
|
|
327
|
+
validator: (value: any) => boolean;
|
|
328
|
+
};
|
|
325
329
|
modelValue: {
|
|
326
|
-
type: globalThis.PropType<
|
|
327
|
-
required: true;
|
|
330
|
+
type: globalThis.PropType<string | string[]>;
|
|
328
331
|
};
|
|
329
332
|
}>, {
|
|
330
333
|
show: typeof show;
|
|
331
334
|
hide: typeof hide;
|
|
332
335
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
333
|
-
change: (value
|
|
336
|
+
change: (value: any) => void;
|
|
334
337
|
clear: () => void;
|
|
335
|
-
|
|
338
|
+
delete: (value: string[], deletedItem: string) => void;
|
|
339
|
+
"update:modelValue": (value: string | string[] | undefined) => void;
|
|
336
340
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
337
341
|
options: {
|
|
338
342
|
type: PropType<LewCascaderOption[]>;
|
|
@@ -359,16 +363,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
359
363
|
default: boolean;
|
|
360
364
|
validator: (value: any) => boolean;
|
|
361
365
|
};
|
|
362
|
-
showAllLevels: {
|
|
363
|
-
type: BooleanConstructor;
|
|
364
|
-
default: boolean;
|
|
365
|
-
validator: (value: any) => boolean;
|
|
366
|
-
};
|
|
367
|
-
multiple: {
|
|
368
|
-
type: BooleanConstructor;
|
|
369
|
-
default: boolean;
|
|
370
|
-
validator: (value: any) => boolean;
|
|
371
|
-
};
|
|
372
366
|
free: {
|
|
373
367
|
type: BooleanConstructor;
|
|
374
368
|
default: boolean;
|
|
@@ -410,14 +404,29 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
410
404
|
default: boolean;
|
|
411
405
|
validator: (value: any) => boolean;
|
|
412
406
|
};
|
|
407
|
+
onlyLeafSelectable: {
|
|
408
|
+
type: BooleanConstructor;
|
|
409
|
+
default: boolean;
|
|
410
|
+
validator: (value: any) => boolean;
|
|
411
|
+
};
|
|
412
|
+
multiple: {
|
|
413
|
+
type: BooleanConstructor;
|
|
414
|
+
default: boolean;
|
|
415
|
+
validator: (value: any) => boolean;
|
|
416
|
+
};
|
|
417
|
+
showAllLevels: {
|
|
418
|
+
type: BooleanConstructor;
|
|
419
|
+
default: boolean;
|
|
420
|
+
validator: (value: any) => boolean;
|
|
421
|
+
};
|
|
413
422
|
modelValue: {
|
|
414
|
-
type: globalThis.PropType<
|
|
415
|
-
required: true;
|
|
423
|
+
type: globalThis.PropType<string | string[]>;
|
|
416
424
|
};
|
|
417
425
|
}>> & Readonly<{
|
|
418
|
-
onChange?: ((value
|
|
426
|
+
onChange?: ((value: any) => any) | undefined;
|
|
419
427
|
onClear?: (() => any) | undefined;
|
|
420
|
-
|
|
428
|
+
onDelete?: ((value: string[], deletedItem: string) => any) | undefined;
|
|
429
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
421
430
|
}>, {
|
|
422
431
|
size: import('../../../..').LewSize;
|
|
423
432
|
disabled: boolean;
|
|
@@ -425,10 +434,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
425
434
|
readonly: boolean;
|
|
426
435
|
trigger: import('../../../..').LewTrigger;
|
|
427
436
|
clearable: boolean;
|
|
428
|
-
initMethod: () => Promise<LewCascaderOption[]>;
|
|
429
437
|
multiple: boolean;
|
|
438
|
+
initMethod: () => Promise<LewCascaderOption[]>;
|
|
430
439
|
free: boolean;
|
|
431
440
|
loadMethod: () => Promise<LewCascaderOption[]>;
|
|
441
|
+
onlyLeafSelectable: boolean;
|
|
432
442
|
showAllLevels: boolean;
|
|
433
443
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
434
444
|
lewPopoverRef: ({
|
|
@@ -664,7 +674,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
664
674
|
}): any;
|
|
665
675
|
};
|
|
666
676
|
}) | null;
|
|
667
|
-
lewCascaderRef: HTMLDivElement;
|
|
668
677
|
}, HTMLDivElement>;
|
|
669
678
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
670
679
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LewCascaderOption } from '../../../../types';
|
|
2
|
+
export declare class CascaderNodeCache {
|
|
3
|
+
private nodeCache;
|
|
4
|
+
get(value: string): LewCascaderOption | undefined;
|
|
5
|
+
set(value: string, node: LewCascaderOption): void;
|
|
6
|
+
has(value: string): boolean;
|
|
7
|
+
clear(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare function formatTree(tree: LewCascaderOption[], parentValuePaths?: string[], parentLabelPaths?: string[]): LewCascaderOption[];
|
|
10
|
+
export declare function findObjectByValue(treeList: LewCascaderOption[], value: string, cache?: CascaderNodeCache): LewCascaderOption | null;
|
|
11
|
+
export declare function findAndAddChildrenByValue(tree: LewCascaderOption[], value: string, children: LewCascaderOption[], cache?: CascaderNodeCache): LewCascaderOption[];
|
|
12
|
+
export declare function findChildrenByValue(tree: LewCascaderOption[], value: string, cache?: CascaderNodeCache): LewCascaderOption[];
|
|
13
|
+
export declare function createCascaderCache(): CascaderNodeCache;
|
|
14
|
+
export declare function validateCascaderTree(tree: LewCascaderOption[]): boolean;
|
|
15
|
+
export declare function findAllChildrenByValue(tree: LewCascaderOption[], value: string): LewCascaderOption[];
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const cascaderEmits: {
|
|
2
|
-
readonly change: (value
|
|
2
|
+
readonly change: (value: any) => any;
|
|
3
3
|
readonly clear: () => boolean;
|
|
4
|
+
readonly delete: (value: string[], deletedItem: string) => {
|
|
5
|
+
value: string[];
|
|
6
|
+
deletedItem: string;
|
|
7
|
+
};
|
|
4
8
|
};
|
|
@@ -27,16 +27,6 @@ export declare const cascaderProps: {
|
|
|
27
27
|
default: boolean;
|
|
28
28
|
validator: (value: any) => boolean;
|
|
29
29
|
};
|
|
30
|
-
showAllLevels: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
validator: (value: any) => boolean;
|
|
34
|
-
};
|
|
35
|
-
multiple: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
validator: (value: any) => boolean;
|
|
39
|
-
};
|
|
40
30
|
free: {
|
|
41
31
|
type: BooleanConstructor;
|
|
42
32
|
default: boolean;
|
|
@@ -78,5 +68,20 @@ export declare const cascaderProps: {
|
|
|
78
68
|
default: boolean;
|
|
79
69
|
validator: (value: any) => boolean;
|
|
80
70
|
};
|
|
71
|
+
onlyLeafSelectable: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
validator: (value: any) => boolean;
|
|
75
|
+
};
|
|
76
|
+
multiple: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
validator: (value: any) => boolean;
|
|
80
|
+
};
|
|
81
|
+
showAllLevels: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
validator: (value: any) => boolean;
|
|
85
|
+
};
|
|
81
86
|
};
|
|
82
87
|
export type LewCascaderProps = ExtractPublicPropTypes<typeof cascaderProps>;
|
|
@@ -11,11 +11,11 @@ export * from './input-tag';
|
|
|
11
11
|
export * from './radio';
|
|
12
12
|
export * from './rate';
|
|
13
13
|
export * from './select';
|
|
14
|
-
export * from './select-multiple';
|
|
15
14
|
export * from './slider';
|
|
16
15
|
export * from './slider-range';
|
|
17
16
|
export * from './switch';
|
|
18
17
|
export * from './tabs';
|
|
19
18
|
export * from './textarea';
|
|
20
19
|
export * from './tree-select';
|
|
20
|
+
export * from './tree-select-multiple';
|
|
21
21
|
export * from './upload';
|
|
@@ -126,8 +126,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
126
126
|
type: globalThis.PropType<string>;
|
|
127
127
|
};
|
|
128
128
|
}>, {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
focus: () => any;
|
|
130
|
+
blur: () => any;
|
|
131
131
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
132
132
|
input: (value?: string | undefined) => void;
|
|
133
133
|
blur: (e: FocusEvent) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function focus(): void;
|
|
2
2
|
declare function validCheck(): boolean;
|
|
3
3
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
4
|
min: {
|
|
@@ -56,7 +56,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
58
|
}>, {
|
|
59
|
-
|
|
59
|
+
focus: typeof focus;
|
|
60
60
|
validCheck: typeof validCheck;
|
|
61
61
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
62
|
input: (value?: string | undefined) => void;
|
|
@@ -246,8 +246,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
246
246
|
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
247
247
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
248
248
|
}>, {
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
focus: () => any;
|
|
250
|
+
blur: () => any;
|
|
251
251
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
252
252
|
input: (value?: string | undefined) => void;
|
|
253
253
|
blur: (e: FocusEvent) => void;
|
|
@@ -427,8 +427,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
427
427
|
"onUpdate:suffixValue"?: ((value: string | undefined) => any) | undefined;
|
|
428
428
|
onOk?: ((value?: string | undefined) => any) | undefined;
|
|
429
429
|
}>, {
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
focus: () => any;
|
|
431
|
+
blur: () => any;
|
|
432
432
|
}, {}, {}, {}, {
|
|
433
433
|
maxLength: string | number;
|
|
434
434
|
type: import('../../../..').LewInputType;
|