lew-ui 2.7.70 → 2.7.76

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 (98) hide show
  1. package/LICENSE +21 -21
  2. package/dist/_components/CloseButton.vue.d.ts +20 -0
  3. package/dist/_components/CloseIcon.vue.d.ts +18 -0
  4. package/dist/_components/CommonInput.vue.d.ts +12 -49
  5. package/dist/components/data/collapse/index.d.ts +1 -0
  6. package/dist/components/data/collapse/src/model.d.ts +14 -0
  7. package/dist/components/data/collapse/src/props.d.ts +0 -11
  8. package/dist/components/data/expand/src/LewExpand.vue.d.ts +8 -2
  9. package/dist/components/data/pagination/index.d.ts +1 -0
  10. package/dist/components/data/pagination/src/model.d.ts +16 -0
  11. package/dist/components/data/pagination/src/props.d.ts +0 -18
  12. package/dist/components/data/table/src/LewTable.vue.d.ts +11 -2
  13. package/dist/components/data/table/src/props.d.ts +5 -0
  14. package/dist/components/feedback/alert/src/LewAlert.vue.d.ts +2 -6
  15. package/dist/components/feedback/alert/src/emits.d.ts +1 -3
  16. package/dist/components/feedback/drawer/index.d.ts +1 -0
  17. package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +9 -10
  18. package/dist/components/feedback/drawer/src/model.d.ts +8 -0
  19. package/dist/components/feedback/drawer/src/props.d.ts +0 -7
  20. package/dist/components/feedback/modal/index.d.ts +1 -0
  21. package/dist/components/feedback/modal/src/LewModal.vue.d.ts +4 -4
  22. package/dist/components/feedback/modal/src/model.d.ts +8 -0
  23. package/dist/components/feedback/modal/src/props.d.ts +0 -6
  24. package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +20 -10
  25. package/dist/components/form/cascader/src/LewCascader.vue.d.ts +100 -100
  26. package/dist/components/form/cascader/src/emits.d.ts +4 -3
  27. package/dist/components/form/cascader/src/model.d.ts +2 -1
  28. package/dist/components/form/cascader/src/props.d.ts +80 -80
  29. package/dist/components/form/checkbox/src/LewCheckbox.vue.d.ts +54 -54
  30. package/dist/components/form/checkbox/src/LewCheckboxGroup.vue.d.ts +52 -52
  31. package/dist/components/form/checkbox/src/props.d.ts +83 -83
  32. package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +32 -32
  33. package/dist/components/form/color-picker/src/props.d.ts +21 -21
  34. package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +4 -4
  35. package/dist/components/form/input/src/LewInput.vue.d.ts +4 -35
  36. package/dist/components/form/input/src/props.d.ts +0 -17
  37. package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +6 -10
  38. package/dist/components/form/input-number/src/emits.d.ts +1 -1
  39. package/dist/components/form/input-number/src/props.d.ts +0 -4
  40. package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -53
  41. package/dist/components/form/input-tag/src/props.d.ts +0 -5
  42. package/dist/components/form/select/src/LewSelect.vue.d.ts +33 -88
  43. package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +12 -88
  44. package/dist/components/general/avatar/index.d.ts +6 -2
  45. package/dist/components/general/button/index.d.ts +7 -2
  46. package/dist/components/general/button/src/LewButton.vue.d.ts +8 -8
  47. package/dist/components/general/button/src/emits.d.ts +10 -0
  48. package/dist/components/general/flex/src/LewFlex.vue.d.ts +15 -16
  49. package/dist/components/general/image/index.d.ts +6 -2
  50. package/dist/components/general/tag/src/LewTag.vue.d.ts +52 -14
  51. package/dist/components/general/tag/src/emits.d.ts +3 -0
  52. package/dist/components/general/tag/src/props.d.ts +9 -0
  53. package/dist/components/general/text-trim/index.d.ts +7 -2
  54. package/dist/components/general/text-trim/src/emits.d.ts +2 -0
  55. package/dist/components/general/text-trim/src/text-trim.d.ts +1 -1
  56. package/dist/components/navigation/action-box/index.d.ts +7 -3
  57. package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +6 -2
  58. package/dist/components/navigation/action-box/src/emits.d.ts +1 -0
  59. package/dist/components/navigation/back-top/index.d.ts +7 -2
  60. package/dist/components/navigation/back-top/src/emits.d.ts +2 -0
  61. package/dist/components/navigation/breadcrumb/index.d.ts +7 -3
  62. package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +2 -2
  63. package/dist/components/navigation/breadcrumb/src/emits.d.ts +3 -1
  64. package/dist/components/navigation/dropdown/index.d.ts +8 -3
  65. package/dist/components/navigation/dropdown/src/emits.d.ts +1 -0
  66. package/dist/components/navigation/dropdown/src/model.d.ts +8 -0
  67. package/dist/components/navigation/dropdown/src/props.d.ts +0 -6
  68. package/dist/components/navigation/menu/index.d.ts +8 -3
  69. package/dist/components/navigation/menu/src/LewMenu.vue.d.ts +4 -4
  70. package/dist/components/navigation/menu/src/emits.d.ts +1 -0
  71. package/dist/components/navigation/menu/src/model.d.ts +7 -0
  72. package/dist/components/navigation/menu/src/props.d.ts +0 -5
  73. package/dist/components/navigation/menu-tree/index.d.ts +9 -4
  74. package/dist/components/navigation/menu-tree/src/emits.d.ts +1 -0
  75. package/dist/components/navigation/menu-tree/src/model.d.ts +16 -0
  76. package/dist/components/navigation/menu-tree/src/props.d.ts +0 -13
  77. package/dist/components/navigation/steps/index.d.ts +8 -3
  78. package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +10 -6
  79. package/dist/components/navigation/steps/src/emits.d.ts +1 -0
  80. package/dist/components/navigation/steps/src/model.d.ts +7 -0
  81. package/dist/components/navigation/steps/src/props.d.ts +3 -6
  82. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -2
  83. package/dist/directives/context-menu/src/emits.d.ts +3 -1
  84. package/dist/index.css +1 -1
  85. package/dist/index.js +3206 -2580
  86. package/dist/index.umd.cjs +1 -47
  87. package/dist/locals/de.d.ts +25 -0
  88. package/dist/locals/en.d.ts +32 -7
  89. package/dist/locals/es.d.ts +25 -0
  90. package/dist/locals/fr.d.ts +25 -0
  91. package/dist/locals/it.d.ts +25 -0
  92. package/dist/locals/ja.d.ts +25 -0
  93. package/dist/locals/ko.d.ts +25 -0
  94. package/dist/locals/pt.d.ts +25 -0
  95. package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -5
  96. package/dist/methods/notification/src/NotificationContainer.vue.d.ts +6 -0
  97. package/dist/methods/notification/src/index.d.ts +4 -0
  98. package/package.json +8 -4
@@ -1,5 +1,3 @@
1
- import { LewSize } from '../../../..';
2
- import { LewTagType } from '../../../../types';
3
1
  declare function __VLS_template(): {
4
2
  attrs: Partial<{}>;
5
3
  slots: {
@@ -7,7 +5,10 @@ declare function __VLS_template(): {
7
5
  default?(_: {}): any;
8
6
  right?(_: {}): any;
9
7
  };
10
- refs: {};
8
+ refs: {
9
+ tagRef: HTMLDivElement;
10
+ inputRef: HTMLInputElement;
11
+ };
11
12
  rootEl: HTMLDivElement;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -16,9 +17,18 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
16
17
  type: StringConstructor;
17
18
  validator: (value: any) => boolean;
18
19
  };
20
+ editable: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ validator: (value: any) => boolean;
24
+ };
25
+ placeholder: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
19
29
  type: {
20
- type: PropType<LewTagType>;
21
- typeValues: LewTagType[];
30
+ type: PropType<import('../../../..').LewTagType>;
31
+ typeValues: import('../../../..').LewTagType[];
22
32
  default: string;
23
33
  validator: (value: any) => boolean;
24
34
  };
@@ -29,8 +39,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
29
39
  validator: (value: any) => boolean;
30
40
  };
31
41
  size: {
32
- type: PropType<LewSize>;
33
- typeValues: LewSize[];
42
+ type: PropType<import('../../../..').LewSize>;
43
+ typeValues: import('../../../..').LewSize[];
34
44
  default: string;
35
45
  validator: (value: any) => boolean;
36
46
  };
@@ -59,16 +69,32 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
59
69
  default: undefined;
60
70
  validator: (value: any) => boolean;
61
71
  };
72
+ modelValue: {
73
+ type: globalThis.PropType<string>;
74
+ };
62
75
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
76
  close: () => void;
77
+ blur: () => void;
78
+ change: (_value: string) => void;
79
+ focus: () => void;
80
+ "update:modelValue": (value: string) => void;
64
81
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
65
82
  text: {
66
83
  type: StringConstructor;
67
84
  validator: (value: any) => boolean;
68
85
  };
86
+ editable: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ validator: (value: any) => boolean;
90
+ };
91
+ placeholder: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
69
95
  type: {
70
- type: PropType<LewTagType>;
71
- typeValues: LewTagType[];
96
+ type: PropType<import('../../../..').LewTagType>;
97
+ typeValues: import('../../../..').LewTagType[];
72
98
  default: string;
73
99
  validator: (value: any) => boolean;
74
100
  };
@@ -79,8 +105,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
79
105
  validator: (value: any) => boolean;
80
106
  };
81
107
  size: {
82
- type: PropType<LewSize>;
83
- typeValues: LewSize[];
108
+ type: PropType<import('../../../..').LewSize>;
109
+ typeValues: import('../../../..').LewSize[];
84
110
  default: string;
85
111
  validator: (value: any) => boolean;
86
112
  };
@@ -109,18 +135,30 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
109
135
  default: undefined;
110
136
  validator: (value: any) => boolean;
111
137
  };
138
+ modelValue: {
139
+ type: globalThis.PropType<string>;
140
+ };
112
141
  }>> & Readonly<{
113
142
  onClose?: (() => any) | undefined;
143
+ onBlur?: (() => any) | undefined;
144
+ onChange?: ((_value: string) => any) | undefined;
145
+ onFocus?: (() => any) | undefined;
146
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
114
147
  }>, {
115
- type: LewTagType;
148
+ editable: boolean;
149
+ type: import('../../../..').LewTagType;
116
150
  color: string;
117
- size: LewSize;
151
+ size: import('../../../..').LewSize;
118
152
  round: boolean;
119
153
  oversize: boolean;
120
154
  disabled: boolean;
121
155
  closeable: boolean;
122
156
  close: () => Promise<boolean>;
123
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
157
+ placeholder: string;
158
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
159
+ tagRef: HTMLDivElement;
160
+ inputRef: HTMLInputElement;
161
+ }, HTMLDivElement>;
124
162
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
125
163
  export default _default;
126
164
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,6 @@
1
1
  export declare const tagEmits: {
2
2
  readonly close: () => boolean;
3
+ readonly change: (_value: string) => boolean;
4
+ readonly blur: () => boolean;
5
+ readonly focus: () => boolean;
3
6
  };
@@ -6,6 +6,15 @@ export declare const tagProps: {
6
6
  type: StringConstructor;
7
7
  validator: (value: any) => boolean;
8
8
  };
9
+ editable: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ validator: (value: any) => boolean;
13
+ };
14
+ placeholder: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
9
18
  type: {
10
19
  type: PropType<LewTagType>;
11
20
  typeValues: LewTagType[];
@@ -1,2 +1,7 @@
1
- export { default as LewTextTrim } from './src/LewTextTrim.vue';
2
- export * from './src/props';
1
+ import { LewTextTrimEmits, textTrimEmits } from './src/emits';
2
+ import { LewTextTrimProps, textTrimProps } from './src/props';
3
+ import { default as LewTextTrim } from './src/LewTextTrim.vue';
4
+ export { LewTextTrim };
5
+ export type { LewTextTrimEmits, LewTextTrimProps };
6
+ export { textTrimEmits, textTrimProps };
7
+ export default LewTextTrim;
@@ -0,0 +1,2 @@
1
+ export declare const textTrimEmits: {};
2
+ export type LewTextTrimEmits = typeof textTrimEmits;
@@ -14,7 +14,7 @@ interface GetDisplayTextParams {
14
14
  */
15
15
  export declare function getDisplayText(params: GetDisplayTextParams): DisplayTextResult;
16
16
  /**
17
- * Clear measurement cache and cleanup resources
17
+ * Clear measurement cache
18
18
  */
19
19
  export declare function clearMeasureCache(): void;
20
20
  export {};
@@ -1,3 +1,7 @@
1
- export * from './src/emits';
2
- export { default as LewActionBox } from './src/LewActionBox.vue';
3
- export * from './src/props';
1
+ import { LewActionBoxEmits, actionBoxEmits } from './src/emits';
2
+ import { LewActionBoxProps, actionBoxProps } from './src/props';
3
+ import { default as LewActionBox } from './src/LewActionBox.vue';
4
+ export { LewActionBox };
5
+ export type { LewActionBoxEmits, LewActionBoxProps };
6
+ export { actionBoxEmits, actionBoxProps };
7
+ export default LewActionBox;
@@ -35,7 +35,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
35
35
  default: boolean;
36
36
  validator: (value: any) => boolean;
37
37
  };
38
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
+ click: (option: LewActionBoxOption, event: MouseEvent) => void;
40
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
39
41
  options: {
40
42
  type: PropType<LewActionBoxOption[]>;
41
43
  typePopKeys: string[];
@@ -71,7 +73,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
71
73
  default: boolean;
72
74
  validator: (value: any) => boolean;
73
75
  };
74
- }>> & Readonly<{}>, {
76
+ }>> & Readonly<{
77
+ onClick?: ((option: LewActionBoxOption, event: MouseEvent) => any) | undefined;
78
+ }>, {
75
79
  x: import('../../../..').LewXAlignment;
76
80
  divider: boolean;
77
81
  iconOnly: boolean;
@@ -5,3 +5,4 @@ export declare const actionBoxEmits: {
5
5
  event: MouseEvent;
6
6
  };
7
7
  };
8
+ export type LewActionBoxEmits = typeof actionBoxEmits;
@@ -1,2 +1,7 @@
1
- export { default as LewBackTop } from './src/LewBackTop.vue';
2
- export * from './src/props';
1
+ import { LewBackTopEmits, backTopEmits } from './src/emits';
2
+ import { LewBackTopProps, backTopProps } from './src/props';
3
+ import { default as LewBackTop } from './src/LewBackTop.vue';
4
+ export { LewBackTop };
5
+ export type { LewBackTopEmits, LewBackTopProps };
6
+ export { backTopEmits, backTopProps };
7
+ export default LewBackTop;
@@ -0,0 +1,2 @@
1
+ export declare const backTopEmits: {};
2
+ export type LewBackTopEmits = typeof backTopEmits;
@@ -1,3 +1,7 @@
1
- export * from './src/emits';
2
- export { default as LewBreadcrumb } from './src/LewBreadcrumb.vue';
3
- export * from './src/props';
1
+ import { LewBreadcrumbEmits, breadcrumbEmits } from './src/emits';
2
+ import { LewBreadcrumbProps, breadcrumbProps } from './src/props';
3
+ import { default as LewBreadcrumb } from './src/LewBreadcrumb.vue';
4
+ export { LewBreadcrumb };
5
+ export type { LewBreadcrumbEmits, LewBreadcrumbProps };
6
+ export { breadcrumbEmits, breadcrumbProps };
7
+ export default LewBreadcrumb;
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
13
13
  validator: (value: any) => boolean;
14
14
  };
15
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- change: (item: any, index: number) => void;
16
+ change: (item: LewBreadcrumbOption, index: number) => void;
17
17
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
18
  options: {
19
19
  type: PropType<LewBreadcrumbOption[]>;
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
28
28
  validator: (value: any) => boolean;
29
29
  };
30
30
  }>> & Readonly<{
31
- onChange?: ((item: any, index: number) => any) | undefined;
31
+ onChange?: ((item: LewBreadcrumbOption, index: number) => any) | undefined;
32
32
  }>, {
33
33
  separator: import('../../../../types').LewBreadcrumbSeparator;
34
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -1,3 +1,5 @@
1
+ import { LewBreadcrumbOption } from '../../../../types';
1
2
  export declare const breadcrumbEmits: {
2
- readonly change: (item: any, index: number) => any[];
3
+ readonly change: (item: LewBreadcrumbOption, index: number) => (number | LewBreadcrumbOption)[];
3
4
  };
5
+ export type LewBreadcrumbEmits = typeof breadcrumbEmits;
@@ -1,3 +1,8 @@
1
- export * from './src/emits';
2
- export { default as LewDropdown } from './src/LewDropdown.vue';
3
- export * from './src/props';
1
+ import { LewDropdownEmits, dropdownEmits } from './src/emits';
2
+ import { DropdownModel, dropdownModel } from './src/model';
3
+ import { LewDropdownProps, dropdownProps } from './src/props';
4
+ import { default as LewDropdown } from './src/LewDropdown.vue';
5
+ export { LewDropdown };
6
+ export type { DropdownModel, LewDropdownEmits, LewDropdownProps };
7
+ export { dropdownEmits, dropdownModel, dropdownProps };
8
+ export default LewDropdown;
@@ -2,3 +2,4 @@ import { LewContextMenusOption } from '../../../..';
2
2
  export declare const dropdownEmits: {
3
3
  readonly change: (item: LewContextMenusOption) => LewContextMenusOption;
4
4
  };
5
+ export type LewDropdownEmits = typeof dropdownEmits;
@@ -0,0 +1,8 @@
1
+ import { PropType } from 'vue';
2
+ export declare const dropdownModel: {
3
+ selectedKeys: {
4
+ type: PropType<string[]>;
5
+ default: () => never[];
6
+ };
7
+ };
8
+ export type DropdownModel = typeof dropdownModel;
@@ -1,12 +1,6 @@
1
1
  import { LewContextMenusOption } from '../../../..';
2
2
  import { LewPlacement, LewTrigger } from '../../../../types';
3
3
  import { ExtractPublicPropTypes, PropType } from 'vue';
4
- export declare const dropdownModel: {
5
- selectedKeys: {
6
- type: PropType<string[]>;
7
- default: () => never[];
8
- };
9
- };
10
4
  export declare const dropdownProps: {
11
5
  trigger: {
12
6
  type: PropType<LewTrigger>;
@@ -1,3 +1,8 @@
1
- export * from './src/emits';
2
- export { default as LewMenu } from './src/LewMenu.vue';
3
- export * from './src/props';
1
+ import { LewMenuEmits, menuEmits } from './src/emits';
2
+ import { MenuModel, menuModel } from './src/model';
3
+ import { LewMenuProps, menuProps } from './src/props';
4
+ import { default as LewMenu } from './src/LewMenu.vue';
5
+ export { LewMenu };
6
+ export type { LewMenuEmits, LewMenuProps, MenuModel };
7
+ export { menuEmits, menuModel, menuProps };
8
+ export default LewMenu;
@@ -7,11 +7,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
7
7
  validator: (value: any[] | undefined) => boolean;
8
8
  };
9
9
  modelValue: {
10
- type: globalThis.PropType<any>;
10
+ type: globalThis.PropType<string>;
11
11
  };
12
12
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
13
  change: (item: LewMenuOption) => void;
14
- "update:modelValue": (value: any) => void;
14
+ "update:modelValue": (value: string) => void;
15
15
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
16
16
  options: {
17
17
  type: PropType<LewMenuOption[]>;
@@ -20,10 +20,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
20
20
  validator: (value: any[] | undefined) => boolean;
21
21
  };
22
22
  modelValue: {
23
- type: globalThis.PropType<any>;
23
+ type: globalThis.PropType<string>;
24
24
  };
25
25
  }>> & Readonly<{
26
26
  onChange?: ((item: LewMenuOption) => any) | undefined;
27
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
28
28
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
29
29
  export default _default;
@@ -2,3 +2,4 @@ import { LewMenuOption } from '../../../..';
2
2
  export declare const menuEmits: {
3
3
  readonly change: (item: LewMenuOption) => LewMenuOption;
4
4
  };
5
+ export type LewMenuEmits = typeof menuEmits;
@@ -0,0 +1,7 @@
1
+ export declare const menuModel: {
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: undefined;
5
+ };
6
+ };
7
+ export type MenuModel = typeof menuModel;
@@ -1,10 +1,5 @@
1
1
  import { LewMenuOption } from '../../../../types';
2
2
  import { ExtractPublicPropTypes, PropType } from 'vue';
3
- export declare const menuModel: {
4
- modelValue: {
5
- type: StringConstructor;
6
- };
7
- };
8
3
  export declare const menuProps: {
9
4
  options: {
10
5
  type: PropType<LewMenuOption[]>;
@@ -1,4 +1,9 @@
1
- export * from './src/emits';
2
- export { default as LewMenuTree } from './src/LewMenuTree.vue';
3
- export { default as LewMenuTreeItem } from './src/LewMenuTreeItem.vue';
4
- export * from './src/props';
1
+ import { LewMenuTreeEmits, menuTreeEmits } from './src/emits';
2
+ import { MenuTreeModel, menuTreeModel } from './src/model';
3
+ import { LewMenuTreeItemProps, LewMenuTreeProps, menuTreeItemProps, menuTreeProps } from './src/props';
4
+ import { default as LewMenuTree } from './src/LewMenuTree.vue';
5
+ import { default as LewMenuTreeItem } from './src/LewMenuTreeItem.vue';
6
+ export { LewMenuTree, LewMenuTreeItem };
7
+ export type { LewMenuTreeEmits, LewMenuTreeItemProps, LewMenuTreeProps, MenuTreeModel };
8
+ export { menuTreeEmits, menuTreeItemProps, menuTreeModel, menuTreeProps };
9
+ export default LewMenuTree;
@@ -4,3 +4,4 @@ export declare const menuTreeEmits: {
4
4
  readonly expand: (expandKeys: string[]) => string[];
5
5
  readonly collapse: (expandKeys: string[]) => string[];
6
6
  };
7
+ export type LewMenuTreeEmits = typeof menuTreeEmits;
@@ -0,0 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ export declare const menuTreeModel: {
3
+ modelValue: {
4
+ type: StringConstructor;
5
+ default: undefined;
6
+ };
7
+ expandKeys: {
8
+ type: PropType<string[]>;
9
+ default: () => never[];
10
+ };
11
+ collapsed: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ };
16
+ export type MenuTreeModel = typeof menuTreeModel;
@@ -2,19 +2,6 @@ import { Property } from 'csstype';
2
2
  import { LewTagProps } from '../../../..';
3
3
  import { LewMenuTreeOption } from '../../../../types';
4
4
  import { ExtractPublicPropTypes, PropType } from 'vue';
5
- export declare const menuTreeModel: {
6
- modelValue: {
7
- type: StringConstructor;
8
- };
9
- expandKeys: {
10
- type: PropType<string[]>;
11
- default: () => never[];
12
- };
13
- collapsed: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- };
18
5
  export declare const menuTreeProps: {
19
6
  options: {
20
7
  type: PropType<LewMenuTreeOption[]>;
@@ -1,3 +1,8 @@
1
- export * from './src/emits';
2
- export { default as LewSteps } from './src/LewSteps.vue';
3
- export * from './src/props';
1
+ import { LewStepsEmits, stepsEmits } from './src/emits';
2
+ import { StepsModel, stepsModel } from './src/model';
3
+ import { LewStepsProps, stepsProps } from './src/props';
4
+ import { default as LewSteps } from './src/LewSteps.vue';
5
+ export { LewSteps };
6
+ export type { LewStepsEmits, LewStepsProps, StepsModel };
7
+ export { stepsEmits, stepsModel, stepsProps };
8
+ export default LewSteps;
@@ -19,17 +19,19 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
19
19
  canClickItem: {
20
20
  type: BooleanConstructor;
21
21
  default: boolean;
22
+ validator: (value: any) => boolean;
22
23
  };
23
24
  canCrossSteps: {
24
25
  type: BooleanConstructor;
25
26
  default: boolean;
27
+ validator: (value: any) => boolean;
26
28
  };
27
29
  modelValue: {
28
- type: globalThis.PropType<any>;
30
+ type: globalThis.PropType<number>;
29
31
  };
30
32
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
- change: (...args: any[]) => void;
32
- "update:modelValue": (value: any) => void;
33
+ change: (value: number) => void;
34
+ "update:modelValue": (value: number | undefined) => void;
33
35
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
34
36
  options: {
35
37
  type: PropType<import('../../../..').LewStepsOption[]>;
@@ -51,17 +53,19 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
51
53
  canClickItem: {
52
54
  type: BooleanConstructor;
53
55
  default: boolean;
56
+ validator: (value: any) => boolean;
54
57
  };
55
58
  canCrossSteps: {
56
59
  type: BooleanConstructor;
57
60
  default: boolean;
61
+ validator: (value: any) => boolean;
58
62
  };
59
63
  modelValue: {
60
- type: globalThis.PropType<any>;
64
+ type: globalThis.PropType<number>;
61
65
  };
62
66
  }>> & Readonly<{
63
- onChange?: ((...args: any[]) => any) | undefined;
64
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
67
+ onChange?: ((value: number) => any) | undefined;
68
+ "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
65
69
  }>, {
66
70
  minWidth: import("csstype").Property.Width<0 | (string & {})>;
67
71
  status: import('../../../..').LewStepsStatus;
@@ -1,3 +1,4 @@
1
1
  export declare const stepsEmits: {
2
2
  readonly change: (value: number) => number;
3
3
  };
4
+ export type LewStepsEmits = typeof stepsEmits;
@@ -0,0 +1,7 @@
1
+ export declare const stepsModel: {
2
+ modelValue: {
3
+ type: NumberConstructor;
4
+ default: undefined;
5
+ };
6
+ };
7
+ export type StepsModel = typeof stepsModel;
@@ -1,11 +1,6 @@
1
1
  import { Property } from 'csstype';
2
2
  import { LewStepsOption, LewStepsStatus } from '../../../../types';
3
- import { ExtractPublicPropTypes } from 'vue';
4
- export declare const stepsModel: {
5
- modelValue: {
6
- type: NumberConstructor;
7
- };
8
- };
3
+ import { ExtractPublicPropTypes, PropType } from 'vue';
9
4
  export declare const stepsProps: {
10
5
  options: {
11
6
  type: PropType<LewStepsOption[]>;
@@ -27,10 +22,12 @@ export declare const stepsProps: {
27
22
  canClickItem: {
28
23
  type: BooleanConstructor;
29
24
  default: boolean;
25
+ validator: (value: any) => boolean;
30
26
  };
31
27
  canCrossSteps: {
32
28
  type: BooleanConstructor;
33
29
  default: boolean;
30
+ validator: (value: any) => boolean;
34
31
  };
35
32
  };
36
33
  export type LewStepsProps = ExtractPublicPropTypes<typeof stepsProps>;
@@ -23,7 +23,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
23
23
  validator: (value: any) => boolean;
24
24
  };
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
- change: (item: any) => void;
26
+ change: (item: LewContextMenusOption) => void;
27
27
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
28
28
  options: {
29
29
  type: PropType<LewContextMenusOption[]>;
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
48
48
  validator: (value: any) => boolean;
49
49
  };
50
50
  }>> & Readonly<{
51
- onChange?: ((item: any) => any) | undefined;
51
+ onChange?: ((item: LewContextMenusOption) => any) | undefined;
52
52
  }>, {
53
53
  disabled: boolean;
54
54
  options: LewContextMenusOption[];
@@ -1,3 +1,5 @@
1
+ import { LewContextMenusOption } from '../../../types';
1
2
  export declare const contextMenuEmits: {
2
- readonly change: (item: any) => any;
3
+ readonly change: (item: LewContextMenusOption) => LewContextMenusOption;
3
4
  };
5
+ export type LewContextMenuEmits = typeof contextMenuEmits;