maz-ui 3.38.0 → 3.39.0

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 (55) hide show
  1. package/components/MazInput.d.ts +138 -130
  2. package/components/MazInput.mjs +1 -1
  3. package/components/MazInputNumber.mjs +1 -1
  4. package/components/MazInputPrice.mjs +1 -1
  5. package/components/MazInputTags.mjs +1 -1
  6. package/components/MazPhoneNumberInput.mjs +1 -1
  7. package/components/MazPicker.mjs +1 -1
  8. package/components/MazSelect.d.ts +145 -104
  9. package/components/MazSelect.mjs +1 -1
  10. package/components/MazTable.mjs +1 -1
  11. package/components/assets/MazInput.css +1 -1
  12. package/components/assets/MazInputNumber.css +1 -1
  13. package/components/assets/MazInputPrice.css +1 -1
  14. package/components/assets/MazInputTags.css +1 -1
  15. package/components/assets/MazPhoneNumberInput.css +1 -1
  16. package/components/assets/MazPicker.css +1 -1
  17. package/components/assets/MazSelect.css +1 -1
  18. package/components/assets/MazTable.css +1 -1
  19. package/components/chunks/{MazBtn-syr1eOX-.mjs → MazBtn-3cH5MEpS.mjs} +2 -2
  20. package/components/chunks/{MazBtn-BNhdGojL.mjs → MazBtn-B4JMmXzP.mjs} +2 -2
  21. package/components/chunks/{MazBtn-D6Vv4Fgr.mjs → MazBtn-BB387N_0.mjs} +2 -2
  22. package/components/chunks/{MazBtn-DFVl5KHh.mjs → MazBtn-BfU2ueBo.mjs} +2 -2
  23. package/components/chunks/{MazBtn-Bt_wPH-d.mjs → MazBtn-T9zr2mWs.mjs} +2 -2
  24. package/components/chunks/{MazCheckbox-D7Zj46Fw.mjs → MazCheckbox-CBsENHiL.mjs} +1 -1
  25. package/components/chunks/{MazCheckbox-Bi55GYoK.mjs → MazCheckbox-CPkAiCSM.mjs} +1 -1
  26. package/components/chunks/{MazIcon-DttWw0jy.mjs → MazIcon-CrOMskmM.mjs} +1 -1
  27. package/components/chunks/{MazIcon-BtOFvhU9.mjs → MazIcon-y3hbktPR.mjs} +1 -1
  28. package/components/chunks/{MazInput-CBNvC93i.mjs → MazInput-CoFiEhzJ.mjs} +55 -55
  29. package/components/chunks/{MazInputNumber-D_NscDyC.mjs → MazInputNumber-BqP7Mq-7.mjs} +95 -95
  30. package/components/chunks/{MazInputPrice-BbPIXacI.mjs → MazInputPrice-C8j4fp8M.mjs} +64 -64
  31. package/components/chunks/{MazInputTags-llySTsKd.mjs → MazInputTags-BZ0bMK9O.mjs} +89 -89
  32. package/components/chunks/{MazPhoneNumberInput-BwOcF0Hc.mjs → MazPhoneNumberInput-UPXGnOzh.mjs} +149 -149
  33. package/components/chunks/{MazPicker-jdQfce9c.mjs → MazPicker-B3rfr2_C.mjs} +132 -132
  34. package/components/chunks/{MazPickerCalendar-B0WrNOgZ.mjs → MazPickerCalendar-DyWH7ZxW.mjs} +3 -3
  35. package/components/chunks/{MazPickerHeader-DBb80oEz.mjs → MazPickerHeader-DPWnj2y_.mjs} +1 -1
  36. package/components/chunks/{MazPickerMonthSwitcher-WnKsESAd.mjs → MazPickerMonthSwitcher-04gprnwa.mjs} +2 -2
  37. package/components/chunks/{MazPickerShortcuts-CSy_FMTs.mjs → MazPickerShortcuts-DydRqBYF.mjs} +2 -2
  38. package/components/chunks/{MazPickerTime-BmoJDaIo.mjs → MazPickerTime-IfLBJ9ai.mjs} +2 -2
  39. package/components/chunks/{MazPickerYearSwitcher-DApNlnlk.mjs → MazPickerYearSwitcher-B2xD7co0.mjs} +3 -3
  40. package/components/chunks/{MazSelect-DFO-D4Yq.mjs → MazSelect-DQDSPKPG.mjs} +110 -110
  41. package/components/chunks/{MazSpinner-C45Stmrx.mjs → MazSpinner-284e54XT.mjs} +1 -1
  42. package/components/chunks/{MazSpinner-CWvErvqa.mjs → MazSpinner-BWGWx_2j.mjs} +1 -1
  43. package/components/chunks/MazSpinner-BlWq0bm3.mjs +38 -0
  44. package/components/chunks/{MazSpinner-DwFs2FKt.mjs → MazSpinner-CBPN4ekC.mjs} +1 -1
  45. package/components/chunks/{MazSpinner-CVpGvlrf.mjs → MazSpinner-CXX9h4-T.mjs} +1 -1
  46. package/components/chunks/{MazSpinner-WuFwK1kK.mjs → MazSpinner-Ct_1s65z.mjs} +1 -1
  47. package/components/chunks/MazSpinner-D4zdguzt.mjs +38 -0
  48. package/components/chunks/{MazSpinner-BA0WZpAF.mjs → MazSpinner-Dl2Vrk-7.mjs} +1 -1
  49. package/components/chunks/{MazTable-lPlL9-PT.mjs → MazTable-B9qxeweG.mjs} +172 -172
  50. package/nuxt/index.json +1 -1
  51. package/package.json +1 -1
  52. package/types/components/MazInput.vue.d.ts +138 -130
  53. package/types/components/MazSelect.vue.d.ts +145 -104
  54. package/components/chunks/MazSpinner-DedAGa0f.mjs +0 -38
  55. package/components/chunks/MazSpinner-_yUWuGmi.mjs +0 -38
@@ -1,8 +1,8 @@
1
1
  import { type HTMLAttributes, type FunctionalComponent, type ComponentPublicInstance, type Component, type SVGAttributes } from 'vue';
2
2
  import type { Color, ModelValueSimple, Size } from './types';
3
- export type { Color, Size, ModelValueSimple };
4
3
  export type Icon = FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component;
5
- export type Props = {
4
+ export type { Color, Size, ModelValueSimple } from './types';
5
+ export type Props<T = ModelValueSimple> = {
6
6
  /** The style of the component */
7
7
  style?: HTMLAttributes['style'];
8
8
  /** The class of the component */
@@ -11,7 +11,7 @@ export type Props = {
11
11
  * The value of the input
12
12
  * @model
13
13
  */
14
- modelValue?: ModelValueSimple;
14
+ modelValue?: T | undefined;
15
15
  /** The placeholder of the input */
16
16
  placeholder?: string;
17
17
  /** The label of the component */
@@ -81,138 +81,146 @@ export type Props = {
81
81
  /** The input will be displayed in full width */
82
82
  block?: boolean;
83
83
  };
84
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
85
- style: undefined;
86
- class: undefined;
87
- modelValue: undefined;
88
- placeholder: undefined;
89
- label: undefined;
90
- name: undefined;
91
- id: undefined;
92
- color: string;
93
- type: string;
94
- required: boolean;
95
- disabled: boolean;
96
- readonly: boolean;
97
- error: boolean;
98
- success: boolean;
99
- warning: boolean;
100
- hint: undefined;
101
- inputClasses: undefined;
102
- noBorder: boolean;
103
- noRadius: boolean;
104
- inputmode: string;
105
- size: string;
106
- debounce: boolean;
107
- /** @deprecated use debounce instead */
108
- debounceDelay: number;
109
- validButton: boolean;
110
- validButtonLoading: boolean;
111
- autoFocus: boolean;
112
- borderActive: boolean;
113
- leftIcon: undefined;
114
- rightIcon: undefined;
115
- roundedSize: undefined;
116
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
117
- "update:model-value": (value?: ModelValueSimple) => void;
118
- focus: (event: Event) => void;
119
- blur: (event: Event) => void;
120
- click: (event: Event) => void;
121
- change: (event: Event) => void;
122
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
123
- style: undefined;
124
- class: undefined;
125
- modelValue: undefined;
126
- placeholder: undefined;
127
- label: undefined;
128
- name: undefined;
129
- id: undefined;
130
- color: string;
131
- type: string;
132
- required: boolean;
133
- disabled: boolean;
134
- readonly: boolean;
135
- error: boolean;
136
- success: boolean;
137
- warning: boolean;
138
- hint: undefined;
139
- inputClasses: undefined;
140
- noBorder: boolean;
141
- noRadius: boolean;
142
- inputmode: string;
143
- size: string;
144
- debounce: boolean;
145
- /** @deprecated use debounce instead */
146
- debounceDelay: number;
147
- validButton: boolean;
148
- validButtonLoading: boolean;
149
- autoFocus: boolean;
150
- borderActive: boolean;
151
- leftIcon: undefined;
152
- rightIcon: undefined;
153
- roundedSize: undefined;
154
- }>>> & {
84
+ declare const _default: <T extends ModelValueSimple>(__VLS_props: {
85
+ size?: Size | undefined;
86
+ label?: string | undefined;
87
+ error?: boolean | undefined;
88
+ name?: string | undefined;
89
+ id?: string | undefined;
90
+ type?: "number" | "search" | "time" | "text" | "date" | "email" | "month" | "password" | "tel" | "url" | "week" | undefined;
91
+ disabled?: boolean | undefined;
92
+ success?: boolean | undefined;
93
+ warning?: boolean | undefined;
94
+ color?: Color | undefined;
155
95
  onFocus?: ((event: Event) => any) | undefined;
156
96
  onBlur?: ((event: Event) => any) | undefined;
157
97
  onChange?: ((event: Event) => any) | undefined;
158
98
  onClick?: ((event: Event) => any) | undefined;
159
- "onUpdate:model-value"?: ((value?: ModelValueSimple) => any) | undefined;
160
- }, {
161
- size: Size;
162
- label: string;
163
- style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
164
- error: boolean;
165
- name: string;
166
- id: string;
167
- type: "number" | "search" | "time" | "text" | "date" | "email" | "month" | "password" | "tel" | "url" | "week";
168
- disabled: boolean;
169
- success: boolean;
170
- warning: boolean;
171
- color: Color;
172
- class: any;
173
- required: boolean;
174
- readonly: boolean;
175
- roundedSize: "sm" | "md" | "lg" | "xl" | "none" | "full";
176
- leftIcon: string | Icon;
177
- rightIcon: string | Icon;
178
- modelValue: string | number | boolean | null;
179
- noRadius: boolean;
180
- inputmode: "search" | "text" | "numeric" | "none" | "email" | "tel" | "url" | "decimal";
181
- placeholder: string;
182
- hint: string;
183
- inputClasses: string;
184
- noBorder: boolean;
185
- debounce: number | boolean;
186
- debounceDelay: number;
187
- validButton: boolean;
188
- validButtonLoading: boolean;
189
- autoFocus: boolean;
190
- borderActive: boolean;
191
- }, {}>, {
192
- "left-icon"?(_: {}): any;
193
- "right-icon"?(_: {}): any;
194
- "valid-button"?(_: {}): any;
195
- }>;
196
- export default _default;
197
- type __VLS_WithDefaults<P, D> = {
198
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
199
- default: D[K];
200
- }> : P[K];
99
+ required?: boolean | undefined;
100
+ readonly?: boolean | undefined;
101
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | undefined;
102
+ block?: boolean | undefined;
103
+ leftIcon?: string | Icon | undefined;
104
+ rightIcon?: string | Icon | undefined;
105
+ modelValue?: T | undefined;
106
+ "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
107
+ noRadius?: boolean | undefined;
108
+ inputmode?: "search" | "text" | "numeric" | "none" | "email" | "tel" | "url" | "decimal" | undefined;
109
+ placeholder?: string | undefined;
110
+ hint?: string | undefined;
111
+ inputClasses?: string | undefined;
112
+ noBorder?: boolean | undefined;
113
+ debounce?: number | boolean | undefined;
114
+ debounceDelay?: number | undefined;
115
+ validButton?: boolean | undefined;
116
+ validButtonLoading?: boolean | undefined;
117
+ autoFocus?: boolean | undefined;
118
+ borderActive?: boolean | undefined;
119
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
120
+ attrs: any;
121
+ slots: {
122
+ "left-icon"?(_: {}): any;
123
+ "right-icon"?(_: {}): any;
124
+ "valid-button"?(_: {}): any;
125
+ };
126
+ emit: ((evt: "click", event: Event) => void) & ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: Event) => void) & ((evt: "update:model-value", value?: T | undefined) => void);
127
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
128
+ props: {
129
+ size?: Size | undefined;
130
+ label?: string | undefined;
131
+ error?: boolean | undefined;
132
+ name?: string | undefined;
133
+ id?: string | undefined;
134
+ type?: "number" | "search" | "time" | "text" | "date" | "email" | "month" | "password" | "tel" | "url" | "week" | undefined;
135
+ disabled?: boolean | undefined;
136
+ success?: boolean | undefined;
137
+ warning?: boolean | undefined;
138
+ color?: Color | undefined;
139
+ onFocus?: ((event: Event) => any) | undefined;
140
+ onBlur?: ((event: Event) => any) | undefined;
141
+ onChange?: ((event: Event) => any) | undefined;
142
+ onClick?: ((event: Event) => any) | undefined;
143
+ required?: boolean | undefined;
144
+ readonly?: boolean | undefined;
145
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | undefined;
146
+ block?: boolean | undefined;
147
+ leftIcon?: string | Icon | undefined;
148
+ rightIcon?: string | Icon | undefined;
149
+ modelValue?: T | undefined;
150
+ "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
151
+ noRadius?: boolean | undefined;
152
+ inputmode?: "search" | "text" | "numeric" | "none" | "email" | "tel" | "url" | "decimal" | undefined;
153
+ placeholder?: string | undefined;
154
+ hint?: string | undefined;
155
+ inputClasses?: string | undefined;
156
+ noBorder?: boolean | undefined;
157
+ debounce?: number | boolean | undefined;
158
+ debounceDelay?: number | undefined;
159
+ validButton?: boolean | undefined;
160
+ validButtonLoading?: boolean | undefined;
161
+ autoFocus?: boolean | undefined;
162
+ borderActive?: boolean | undefined;
163
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
164
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
165
+ attrs: any;
166
+ slots: {
167
+ "left-icon"?(_: {}): any;
168
+ "right-icon"?(_: {}): any;
169
+ "valid-button"?(_: {}): any;
170
+ };
171
+ emit: ((evt: "click", event: Event) => void) & ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: Event) => void) & ((evt: "update:model-value", value?: T | undefined) => void);
172
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
173
+ [key: string]: any;
174
+ }> & {
175
+ __ctx?: {
176
+ props: {
177
+ size?: Size | undefined;
178
+ label?: string | undefined;
179
+ error?: boolean | undefined;
180
+ name?: string | undefined;
181
+ id?: string | undefined;
182
+ type?: "number" | "search" | "time" | "text" | "date" | "email" | "month" | "password" | "tel" | "url" | "week" | undefined;
183
+ disabled?: boolean | undefined;
184
+ success?: boolean | undefined;
185
+ warning?: boolean | undefined;
186
+ color?: Color | undefined;
187
+ onFocus?: ((event: Event) => any) | undefined;
188
+ onBlur?: ((event: Event) => any) | undefined;
189
+ onChange?: ((event: Event) => any) | undefined;
190
+ onClick?: ((event: Event) => any) | undefined;
191
+ required?: boolean | undefined;
192
+ readonly?: boolean | undefined;
193
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | undefined;
194
+ block?: boolean | undefined;
195
+ leftIcon?: string | Icon | undefined;
196
+ rightIcon?: string | Icon | undefined;
197
+ modelValue?: T | undefined;
198
+ "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
199
+ noRadius?: boolean | undefined;
200
+ inputmode?: "search" | "text" | "numeric" | "none" | "email" | "tel" | "url" | "decimal" | undefined;
201
+ placeholder?: string | undefined;
202
+ hint?: string | undefined;
203
+ inputClasses?: string | undefined;
204
+ noBorder?: boolean | undefined;
205
+ debounce?: number | boolean | undefined;
206
+ debounceDelay?: number | undefined;
207
+ validButton?: boolean | undefined;
208
+ validButtonLoading?: boolean | undefined;
209
+ autoFocus?: boolean | undefined;
210
+ borderActive?: boolean | undefined;
211
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
212
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
213
+ attrs: any;
214
+ slots: {
215
+ "left-icon"?(_: {}): any;
216
+ "right-icon"?(_: {}): any;
217
+ "valid-button"?(_: {}): any;
218
+ };
219
+ emit: ((evt: "click", event: Event) => void) & ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: Event) => void) & ((evt: "update:model-value", value?: T | undefined) => void);
220
+ } | undefined;
201
221
  };
222
+ export default _default;
223
+ type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
202
224
  type __VLS_Prettify<T> = {
203
225
  [K in keyof T]: T[K];
204
226
  } & {};
205
- type __VLS_WithTemplateSlots<T, S> = T & {
206
- new (): {
207
- $slots: S;
208
- };
209
- };
210
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
211
- type __VLS_TypePropsToOption<T> = {
212
- [K in keyof T]-?: {} extends Pick<T, K> ? {
213
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
214
- } : {
215
- type: import('vue').PropType<T[K]>;
216
- required: true;
217
- };
218
- };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInput-CBNvC93i.mjs";
1
+ import { M as f } from "./chunks/MazInput-CoFiEhzJ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputNumber-D_NscDyC.mjs";
1
+ import { a as f } from "./chunks/MazInputNumber-BqP7Mq-7.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputPrice-BbPIXacI.mjs";
1
+ import { a as f } from "./chunks/MazInputPrice-C8j4fp8M.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInputTags-llySTsKd.mjs";
1
+ import { M as f } from "./chunks/MazInputTags-BZ0bMK9O.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazPhoneNumberInput-BwOcF0Hc.mjs";
1
+ import { M as f } from "./chunks/MazPhoneNumberInput-UPXGnOzh.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazPicker-jdQfce9c.mjs";
1
+ import { M as f } from "./chunks/MazPicker-B3rfr2_C.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
1
  import { type HTMLAttributes } from 'vue';
2
2
  import type { Color, ModelValueSimple, Position, Size } from './types';
3
+ export type { Color, Size, ModelValueSimple, Position } from './types';
3
4
  export type NormalizedOption = Record<string, ModelValueSimple>;
4
5
  export type MazSelectOptionWithOptGroup = {
5
6
  label: string;
6
7
  options: (NormalizedOption | string | number | boolean)[];
7
8
  };
8
9
  export type MazSelectOption = NormalizedOption | string | number | boolean | MazSelectOptionWithOptGroup;
9
- export type { Color, Size, ModelValueSimple, Position };
10
- export type Props = {
10
+ export type Props<T extends ModelValueSimple, U extends MazSelectOption> = {
11
11
  /** Style attribut of the component root element */
12
12
  style?: HTMLAttributes['style'];
13
13
  /** Class attribut of the component root element */
@@ -15,9 +15,9 @@ export type Props = {
15
15
  /** The id of the select */
16
16
  id?: string;
17
17
  /** The value of the select */
18
- modelValue?: ModelValueSimple | ModelValueSimple[];
18
+ modelValue?: T | T[];
19
19
  /** The options of the select */
20
- options?: MazSelectOption[];
20
+ options?: U[];
21
21
  /** The key of the option value */
22
22
  optionValueKey?: string;
23
23
  /** The key of the option label */
@@ -53,108 +53,149 @@ export type Props = {
53
53
  /** The exclude selectors for the v-closable directive - will exclude the elements from the directive */
54
54
  excludeSelectors?: string[];
55
55
  };
56
- declare function closeList(event?: Event): Promise<void>;
57
- declare function openList(event?: Event): Promise<void>;
58
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
59
- id: undefined;
60
- class: undefined;
61
- style: undefined;
62
- modelValue: undefined;
63
- optionValueKey: string;
64
- optionLabelKey: string;
65
- optionInputValueKey: string;
66
- listPosition: string;
67
- itemHeight: undefined;
68
- maxListHeight: number;
69
- maxListWidth: undefined;
70
- size: string;
71
- color: string;
72
- searchPlaceholder: string;
73
- options: undefined;
74
- excludeSelectors: undefined;
75
- }>, {
76
- openList: typeof openList;
77
- closeList: typeof closeList;
78
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
79
- close: (value?: Event | undefined) => void;
80
- open: (value?: boolean | undefined) => void;
81
- blur: (value?: Event | undefined) => void;
82
- focus: (value?: Event | undefined) => void;
83
- change: (value?: Event | undefined) => void;
84
- "update:model-value": (value: ModelValueSimple | ModelValueSimple[]) => void;
85
- "selected-option": (option: MazSelectOption) => void;
86
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
87
- id: undefined;
88
- class: undefined;
89
- style: undefined;
90
- modelValue: undefined;
91
- optionValueKey: string;
92
- optionLabelKey: string;
93
- optionInputValueKey: string;
94
- listPosition: string;
95
- itemHeight: undefined;
96
- maxListHeight: number;
97
- maxListWidth: undefined;
98
- size: string;
99
- color: string;
100
- searchPlaceholder: string;
101
- options: undefined;
102
- excludeSelectors: undefined;
103
- }>>> & {
104
- onFocus?: ((value?: Event | undefined) => any) | undefined;
105
- onBlur?: ((value?: Event | undefined) => any) | undefined;
106
- onChange?: ((value?: Event | undefined) => any) | undefined;
56
+ declare const _default: <T extends ModelValueSimple, U extends MazSelectOption, M = boolean>(__VLS_props: {
57
+ size?: Size | undefined;
58
+ search?: boolean | undefined;
59
+ open?: boolean | undefined;
60
+ id?: string | undefined;
61
+ disabled?: boolean | undefined;
62
+ color?: Color | undefined;
63
+ onFocus?: ((value: Event) => any) | undefined;
64
+ onBlur?: ((value: Event) => any) | undefined;
65
+ onChange?: ((value: Event) => any) | undefined;
107
66
  onClose?: ((value?: Event | undefined) => any) | undefined;
108
- onOpen?: ((value?: boolean | undefined) => any) | undefined;
109
- "onUpdate:model-value"?: ((value: ModelValueSimple | ModelValueSimple[]) => any) | undefined;
110
- "onSelected-option"?: ((option: MazSelectOption) => any) | undefined;
111
- }, {
112
- size: Size;
113
- style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
114
- id: string;
115
- color: Color;
116
- class: any;
117
- options: MazSelectOption[];
118
- modelValue: string | number | boolean | ModelValueSimple[] | null;
119
- optionValueKey: string;
120
- optionLabelKey: string;
121
- optionInputValueKey: string;
122
- listPosition: Position;
123
- itemHeight: number;
124
- maxListHeight: number;
125
- maxListWidth: number;
126
- searchPlaceholder: string;
127
- excludeSelectors: string[];
128
- }, {}>, {
129
- "no-results"?(_: {}): any;
130
- optgroup?(_: {
131
- label: string | number | true;
132
- }): any;
133
- default?(_: {
134
- option: NormalizedOption;
135
- isSelected: boolean;
136
- }): any;
137
- }>;
138
- export default _default;
139
- type __VLS_WithDefaults<P, D> = {
140
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
141
- default: D[K];
142
- }> : P[K];
67
+ required?: boolean | undefined;
68
+ block?: boolean | undefined;
69
+ onOpen?: ((value: boolean) => any) | undefined;
70
+ options?: U[] | undefined;
71
+ modelValue?: T | T[] | undefined;
72
+ "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined;
73
+ "onSelected-option"?: ((value: U) => any) | undefined;
74
+ optionValueKey?: string | undefined;
75
+ optionLabelKey?: string | undefined;
76
+ optionInputValueKey?: string | undefined;
77
+ listPosition?: Position | undefined;
78
+ itemHeight?: number | undefined;
79
+ maxListHeight?: number | undefined;
80
+ maxListWidth?: number | undefined;
81
+ searchPlaceholder?: string | undefined;
82
+ multiple?: boolean | undefined;
83
+ excludeSelectors?: string[] | undefined;
84
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
85
+ attrs: any;
86
+ slots: {
87
+ "no-results"?(_: {}): any;
88
+ optgroup?(_: {
89
+ label: string | number | true;
90
+ }): any;
91
+ default?(_: {
92
+ option: NormalizedOption;
93
+ isSelected: boolean;
94
+ }): any;
95
+ };
96
+ emit: ((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close", value?: Event | undefined) => void) & ((evt: "focus", value: Event) => void) & ((evt: "open", value: boolean) => void) & ((evt: "update:model-value", value: T | T[]) => void) & ((evt: "selected-option", value: U) => void);
97
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
98
+ openList: (event: Event) => Promise<void>;
99
+ closeList: (event?: Event) => Promise<void>;
100
+ }>) => void) | undefined, __VLS_setup?: Promise<{
101
+ props: {
102
+ size?: Size | undefined;
103
+ search?: boolean | undefined;
104
+ open?: boolean | undefined;
105
+ id?: string | undefined;
106
+ disabled?: boolean | undefined;
107
+ color?: Color | undefined;
108
+ onFocus?: ((value: Event) => any) | undefined;
109
+ onBlur?: ((value: Event) => any) | undefined;
110
+ onChange?: ((value: Event) => any) | undefined;
111
+ onClose?: ((value?: Event | undefined) => any) | undefined;
112
+ required?: boolean | undefined;
113
+ block?: boolean | undefined;
114
+ onOpen?: ((value: boolean) => any) | undefined;
115
+ options?: U[] | undefined;
116
+ modelValue?: T | T[] | undefined;
117
+ "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined;
118
+ "onSelected-option"?: ((value: U) => any) | undefined;
119
+ optionValueKey?: string | undefined;
120
+ optionLabelKey?: string | undefined;
121
+ optionInputValueKey?: string | undefined;
122
+ listPosition?: Position | undefined;
123
+ itemHeight?: number | undefined;
124
+ maxListHeight?: number | undefined;
125
+ maxListWidth?: number | undefined;
126
+ searchPlaceholder?: string | undefined;
127
+ multiple?: boolean | undefined;
128
+ excludeSelectors?: string[] | undefined;
129
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
130
+ expose(exposed: import("vue").ShallowUnwrapRef<{
131
+ openList: (event: Event) => Promise<void>;
132
+ closeList: (event?: Event) => Promise<void>;
133
+ }>): void;
134
+ attrs: any;
135
+ slots: {
136
+ "no-results"?(_: {}): any;
137
+ optgroup?(_: {
138
+ label: string | number | true;
139
+ }): any;
140
+ default?(_: {
141
+ option: NormalizedOption;
142
+ isSelected: boolean;
143
+ }): any;
144
+ };
145
+ emit: ((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close", value?: Event | undefined) => void) & ((evt: "focus", value: Event) => void) & ((evt: "open", value: boolean) => void) & ((evt: "update:model-value", value: T | T[]) => void) & ((evt: "selected-option", value: U) => void);
146
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
147
+ [key: string]: any;
148
+ }> & {
149
+ __ctx?: {
150
+ props: {
151
+ size?: Size | undefined;
152
+ search?: boolean | undefined;
153
+ open?: boolean | undefined;
154
+ id?: string | undefined;
155
+ disabled?: boolean | undefined;
156
+ color?: Color | undefined;
157
+ onFocus?: ((value: Event) => any) | undefined;
158
+ onBlur?: ((value: Event) => any) | undefined;
159
+ onChange?: ((value: Event) => any) | undefined;
160
+ onClose?: ((value?: Event | undefined) => any) | undefined;
161
+ required?: boolean | undefined;
162
+ block?: boolean | undefined;
163
+ onOpen?: ((value: boolean) => any) | undefined;
164
+ options?: U[] | undefined;
165
+ modelValue?: T | T[] | undefined;
166
+ "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined;
167
+ "onSelected-option"?: ((value: U) => any) | undefined;
168
+ optionValueKey?: string | undefined;
169
+ optionLabelKey?: string | undefined;
170
+ optionInputValueKey?: string | undefined;
171
+ listPosition?: Position | undefined;
172
+ itemHeight?: number | undefined;
173
+ maxListHeight?: number | undefined;
174
+ maxListWidth?: number | undefined;
175
+ searchPlaceholder?: string | undefined;
176
+ multiple?: boolean | undefined;
177
+ excludeSelectors?: string[] | undefined;
178
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
179
+ expose(exposed: import("vue").ShallowUnwrapRef<{
180
+ openList: (event: Event) => Promise<void>;
181
+ closeList: (event?: Event) => Promise<void>;
182
+ }>): void;
183
+ attrs: any;
184
+ slots: {
185
+ "no-results"?(_: {}): any;
186
+ optgroup?(_: {
187
+ label: string | number | true;
188
+ }): any;
189
+ default?(_: {
190
+ option: NormalizedOption;
191
+ isSelected: boolean;
192
+ }): any;
193
+ };
194
+ emit: ((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close", value?: Event | undefined) => void) & ((evt: "focus", value: Event) => void) & ((evt: "open", value: boolean) => void) & ((evt: "update:model-value", value: T | T[]) => void) & ((evt: "selected-option", value: U) => void);
195
+ } | undefined;
143
196
  };
197
+ export default _default;
198
+ type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
144
199
  type __VLS_Prettify<T> = {
145
200
  [K in keyof T]: T[K];
146
201
  } & {};
147
- type __VLS_WithTemplateSlots<T, S> = T & {
148
- new (): {
149
- $slots: S;
150
- };
151
- };
152
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
153
- type __VLS_TypePropsToOption<T> = {
154
- [K in keyof T]-?: {} extends Pick<T, K> ? {
155
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
156
- } : {
157
- type: import('vue').PropType<T[K]>;
158
- required: true;
159
- };
160
- };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazSelect-DFO-D4Yq.mjs";
1
+ import { M as f } from "./chunks/MazSelect-DQDSPKPG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazTable-lPlL9-PT.mjs";
1
+ import { M as f } from "./chunks/MazTable-B9qxeweG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };