maz-ui 3.28.5 → 3.28.7
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/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.d.ts +3 -3
- package/components/MazDropdown.d.ts +3 -3
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.d.ts +3 -3
- package/components/MazInputNumber.d.ts +3 -3
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputTags.d.ts +3 -3
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +3 -3
- package/components/MazPhoneNumberInput.d.ts +4 -4
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +3 -3
- package/components/MazRadio.d.ts +3 -3
- package/components/MazSelect.d.ts +3 -3
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +3 -3
- package/components/MazTabsBar.d.ts +12 -3
- package/components/MazTabsBar.mjs +62 -57
- package/components/MazTextarea.d.ts +3 -3
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBtn-hDvvJ5wM.mjs → MazBtn-6-KvWOG9.mjs} +2 -2
- package/components/chunks/{MazBtn-hVmJi-uK.mjs → MazBtn-AVguv2N0.mjs} +2 -2
- package/components/chunks/{MazBtn-e7VeHVh0.mjs → MazBtn-oZrkoCig.mjs} +2 -2
- package/components/chunks/{MazCarousel-TalH9tUI.mjs → MazCarousel-xYPtomV-.mjs} +2 -2
- package/components/chunks/{MazCheckbox-UsaGBQwX.mjs → MazCheckbox-LIa1Kkf_.mjs} +1 -1
- package/components/chunks/{MazCheckbox-bIUpH7sU.mjs → MazCheckbox-pXHcef3K.mjs} +1 -1
- package/components/chunks/{MazInputNumber--mfcG21i.mjs → MazInputNumber-m-H5m2ud.mjs} +35 -35
- package/components/chunks/{MazInputTags-c_GGD8Rk.mjs → MazInputTags-kDTfYnsu.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-RJZxI6Ov.mjs → MazPhoneNumberInput-q0hGoLSn.mjs} +3 -3
- package/components/chunks/{MazSelect-uJKJJNB9.mjs → MazSelect-QrKXhl1v.mjs} +3 -3
- package/components/chunks/{MazSpinner-RhkqC4sZ.mjs → MazSpinner-LxBYTKQI.mjs} +1 -1
- package/components/chunks/{MazSpinner-EmXW48S8.mjs → MazSpinner-T1N9rRjX.mjs} +1 -1
- package/components/chunks/{MazSpinner-WyW51HfP.mjs → MazSpinner-h3lv3B1K.mjs} +1 -1
- package/components/chunks/{MazSpinner-1BZJDgh6.mjs → MazSpinner-mURNBzAj.mjs} +1 -1
- package/components/chunks/{MazSpinner-n6W-1Z6P.mjs → MazSpinner-mXSRdmmW.mjs} +1 -1
- package/components/chunks/{MazStepper-qMBecRYN.mjs → MazStepper-NrorpacW.mjs} +13 -13
- package/components/chunks/{MazTransitionExpand-Z94r2E0_.mjs → MazTransitionExpand-53irAK2U.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-zKfVjg-f.mjs → MazBtn-OU9ti0GG.mjs} +2 -2
- package/modules/chunks/{MazIcon-osQoIva8.mjs → MazIcon-mIVA-wm3.mjs} +1 -1
- package/modules/chunks/{MazSpinner-IpRhoOeg.mjs → MazSpinner-Me_ta933.mjs} +1 -1
- package/modules/chunks/{index-f8XjDm3D.mjs → index-AC4Cl2MH.mjs} +3 -3
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +5 -5
- package/types/components/MazCheckbox.vue.d.ts +3 -3
- package/types/components/MazDropdown.vue.d.ts +3 -3
- package/types/components/MazInput.vue.d.ts +3 -3
- package/types/components/MazInputNumber.vue.d.ts +3 -3
- package/types/components/MazInputTags.vue.d.ts +3 -3
- package/types/components/MazLazyImg.vue.d.ts +3 -3
- package/types/components/MazPhoneNumberInput.vue.d.ts +4 -4
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazRadio.vue.d.ts +3 -3
- package/types/components/MazSelect.vue.d.ts +3 -3
- package/types/components/MazSwitch.vue.d.ts +3 -3
- package/types/components/MazTabsBar.vue.d.ts +12 -3
- package/types/components/MazTextarea.vue.d.ts +3 -3
|
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
|
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
"update:model-value": (...args: any[]) => void;
|
|
44
44
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
style: {
|
|
46
|
-
type: PropType<import("vue").StyleValue
|
|
46
|
+
type: PropType<import("vue").StyleValue>;
|
|
47
47
|
default: undefined;
|
|
48
48
|
};
|
|
49
49
|
class: {
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
}, {
|
|
85
85
|
size: Size;
|
|
86
86
|
color: Color;
|
|
87
|
-
style: import("vue").StyleValue
|
|
87
|
+
style: import("vue").StyleValue;
|
|
88
88
|
class: any;
|
|
89
89
|
disabled: boolean;
|
|
90
90
|
name: string;
|
|
@@ -11,7 +11,7 @@ export type MenuItem = {
|
|
|
11
11
|
class?: string;
|
|
12
12
|
} & Record<string, unknown>;
|
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
-
style?: import("vue").StyleValue
|
|
14
|
+
style?: import("vue").StyleValue;
|
|
15
15
|
class?: any;
|
|
16
16
|
/** Menu items */
|
|
17
17
|
items: MenuItem[];
|
|
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
45
|
"menuitem-clicked": (...args: any[]) => void;
|
|
46
46
|
"update:open": (...args: any[]) => void;
|
|
47
47
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
-
style?: import("vue").StyleValue
|
|
48
|
+
style?: import("vue").StyleValue;
|
|
49
49
|
class?: any;
|
|
50
50
|
/** Menu items */
|
|
51
51
|
items: MenuItem[];
|
|
@@ -80,7 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
80
80
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
color: Color;
|
|
83
|
-
style: import("vue").StyleValue;
|
|
83
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
84
84
|
class: any;
|
|
85
85
|
id: string;
|
|
86
86
|
position: Position;
|
package/components/MazInput.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Color, ModelValueSimple, Size } from './types';
|
|
|
3
3
|
export type { Color, Size, ModelValueSimple } from './types';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -125,7 +125,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
125
125
|
"update:model-value": (...args: any[]) => void;
|
|
126
126
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
127
127
|
style: {
|
|
128
|
-
type: PropType<import("vue").StyleValue
|
|
128
|
+
type: PropType<import("vue").StyleValue>;
|
|
129
129
|
default: undefined;
|
|
130
130
|
};
|
|
131
131
|
class: {
|
|
@@ -252,7 +252,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
252
252
|
color: Color;
|
|
253
253
|
type: string;
|
|
254
254
|
label: string;
|
|
255
|
-
style: import("vue").StyleValue
|
|
255
|
+
style: import("vue").StyleValue;
|
|
256
256
|
class: any;
|
|
257
257
|
disabled: boolean;
|
|
258
258
|
name: string;
|
|
@@ -3,7 +3,7 @@ import type { Size } from './types';
|
|
|
3
3
|
export type { Size };
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
"update:model-value": (...args: any[]) => void;
|
|
40
40
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
style: {
|
|
42
|
-
type: PropType<import("vue").StyleValue
|
|
42
|
+
type: PropType<import("vue").StyleValue>;
|
|
43
43
|
default: undefined;
|
|
44
44
|
};
|
|
45
45
|
class: {
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
size: Size;
|
|
78
|
-
style: import("vue").StyleValue
|
|
78
|
+
style: import("vue").StyleValue;
|
|
79
79
|
class: any;
|
|
80
80
|
disabled: boolean;
|
|
81
81
|
max: number;
|
|
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
|
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
"update:model-value": (...args: any[]) => void;
|
|
59
59
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
60
|
style: {
|
|
61
|
-
type: PropType<import("vue").StyleValue
|
|
61
|
+
type: PropType<import("vue").StyleValue>;
|
|
62
62
|
default: undefined;
|
|
63
63
|
};
|
|
64
64
|
class: {
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
117
|
size: Size;
|
|
118
118
|
color: Color;
|
|
119
119
|
label: string;
|
|
120
|
-
style: import("vue").StyleValue
|
|
120
|
+
style: import("vue").StyleValue;
|
|
121
121
|
class: any;
|
|
122
122
|
disabled: boolean;
|
|
123
123
|
placeholder: string;
|
|
@@ -3,7 +3,7 @@ import type { Image } from './types';
|
|
|
3
3
|
export type { Image };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -53,7 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
53
53
|
intersecting: (...args: any[]) => void;
|
|
54
54
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
style: {
|
|
56
|
-
type: PropType<import("vue").StyleValue
|
|
56
|
+
type: PropType<import("vue").StyleValue>;
|
|
57
57
|
default: undefined;
|
|
58
58
|
};
|
|
59
59
|
class: {
|
|
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
102
|
onLoading?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
onIntersecting?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
}, {
|
|
105
|
-
style: import("vue").StyleValue
|
|
105
|
+
style: import("vue").StyleValue;
|
|
106
106
|
image: Image;
|
|
107
107
|
class: any;
|
|
108
108
|
alt: string;
|
|
@@ -5,7 +5,7 @@ export type { Color, Size, Position, CountryCode, Result, Translations };
|
|
|
5
5
|
import { type PropType } from 'vue';
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
7
|
style: {
|
|
8
|
-
type: PropType<import("vue").StyleValue
|
|
8
|
+
type: PropType<import("vue").StyleValue>;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
11
|
class: {
|
|
@@ -186,7 +186,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
186
186
|
"update:country-code": (...args: any[]) => void;
|
|
187
187
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
188
188
|
style: {
|
|
189
|
-
type: PropType<import("vue").StyleValue
|
|
189
|
+
type: PropType<import("vue").StyleValue>;
|
|
190
190
|
default: undefined;
|
|
191
191
|
};
|
|
192
192
|
class: {
|
|
@@ -369,7 +369,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
369
369
|
success: boolean;
|
|
370
370
|
size: Size;
|
|
371
371
|
color: Color;
|
|
372
|
-
style: import("vue").StyleValue
|
|
372
|
+
style: import("vue").StyleValue;
|
|
373
373
|
class: any;
|
|
374
374
|
disabled: boolean;
|
|
375
375
|
placeholder: string;
|
|
@@ -410,7 +410,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
410
410
|
countrySelectorWidth: string;
|
|
411
411
|
}, {}>, {
|
|
412
412
|
"selector-flag"?(_: {
|
|
413
|
-
countryCode:
|
|
413
|
+
countryCode: CountryCode;
|
|
414
414
|
}): any;
|
|
415
415
|
"country-list-flag"?(_: {
|
|
416
416
|
countryCode: string;
|
|
@@ -4,7 +4,7 @@ import type { PickerValue, PickerShortcut } from './MazPicker/types';
|
|
|
4
4
|
export type { PickerValue, PickerShortcut, Color, Position };
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
style: {
|
|
7
|
-
type: PropType<import("vue").StyleValue
|
|
7
|
+
type: PropType<import("vue").StyleValue>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
class: {
|
|
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
145
|
"update:model-value": (...args: any[]) => void;
|
|
146
146
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
147
|
style: {
|
|
148
|
-
type: PropType<import("vue").StyleValue
|
|
148
|
+
type: PropType<import("vue").StyleValue>;
|
|
149
149
|
default: undefined;
|
|
150
150
|
};
|
|
151
151
|
class: {
|
|
@@ -287,7 +287,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
}, {
|
|
288
288
|
color: Color;
|
|
289
289
|
label: string;
|
|
290
|
-
style: import("vue").StyleValue
|
|
290
|
+
style: import("vue").StyleValue;
|
|
291
291
|
time: boolean;
|
|
292
292
|
class: any;
|
|
293
293
|
disabled: boolean;
|
package/components/MazRadio.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
|
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
"update:model-value": (...args: any[]) => void;
|
|
44
44
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
style: {
|
|
46
|
-
type: PropType<import("vue").StyleValue
|
|
46
|
+
type: PropType<import("vue").StyleValue>;
|
|
47
47
|
default: undefined;
|
|
48
48
|
};
|
|
49
49
|
class: {
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
}, {
|
|
85
85
|
size: Size;
|
|
86
86
|
color: Color;
|
|
87
|
-
style: import("vue").StyleValue
|
|
87
|
+
style: import("vue").StyleValue;
|
|
88
88
|
class: any;
|
|
89
89
|
disabled: boolean;
|
|
90
90
|
id: string;
|
|
@@ -4,7 +4,7 @@ export type MazSelectOption = Record<string, ModelValueSimple>;
|
|
|
4
4
|
export type { Color, Size, ModelValueSimple, Position };
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
6
|
style: {
|
|
7
|
-
type: PropType<import("vue").StyleValue
|
|
7
|
+
type: PropType<import("vue").StyleValue>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
class: {
|
|
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
102
|
"selected-option": (...args: any[]) => void;
|
|
103
103
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
104
|
style: {
|
|
105
|
-
type: PropType<import("vue").StyleValue
|
|
105
|
+
type: PropType<import("vue").StyleValue>;
|
|
106
106
|
default: undefined;
|
|
107
107
|
};
|
|
108
108
|
class: {
|
|
@@ -201,7 +201,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
201
201
|
}, {
|
|
202
202
|
size: Size;
|
|
203
203
|
color: Color;
|
|
204
|
-
style: import("vue").StyleValue
|
|
204
|
+
style: import("vue").StyleValue;
|
|
205
205
|
class: any;
|
|
206
206
|
search: boolean;
|
|
207
207
|
disabled: boolean;
|
package/components/MazSelect.mjs
CHANGED
package/components/MazSlider.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import type { Color } from './types';
|
|
|
3
3
|
export type { Color };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
35
|
"update:model-value": (...args: any[]) => void;
|
|
36
36
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
style: {
|
|
38
|
-
type: PropType<import("vue").StyleValue
|
|
38
|
+
type: PropType<import("vue").StyleValue>;
|
|
39
39
|
default: undefined;
|
|
40
40
|
};
|
|
41
41
|
class: {
|
|
@@ -67,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
color: Color;
|
|
70
|
-
style: import("vue").StyleValue
|
|
70
|
+
style: import("vue").StyleValue;
|
|
71
71
|
class: any;
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
name: string;
|
|
@@ -9,10 +9,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
type: PropType<MazTabsBarItem[]>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
persistent: {
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
+
queryParam: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
16
20
|
color: {
|
|
17
21
|
type: PropType<Color>;
|
|
18
22
|
default: string;
|
|
@@ -26,10 +30,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
30
|
type: PropType<MazTabsBarItem[]>;
|
|
27
31
|
required: true;
|
|
28
32
|
};
|
|
29
|
-
|
|
33
|
+
persistent: {
|
|
30
34
|
type: BooleanConstructor;
|
|
31
35
|
default: boolean;
|
|
32
36
|
};
|
|
37
|
+
queryParam: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
33
41
|
color: {
|
|
34
42
|
type: PropType<Color>;
|
|
35
43
|
default: string;
|
|
@@ -40,7 +48,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
48
|
};
|
|
41
49
|
}>>, {
|
|
42
50
|
color: Color;
|
|
51
|
+
persistent: boolean;
|
|
43
52
|
block: boolean;
|
|
44
|
-
|
|
53
|
+
queryParam: string;
|
|
45
54
|
}, {}>;
|
|
46
55
|
export default _default;
|
|
@@ -1,92 +1,97 @@
|
|
|
1
1
|
import "./assets/MazTabsBar.css";
|
|
2
|
-
import { inject as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
if (!
|
|
6
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${
|
|
7
|
-
return
|
|
2
|
+
import { inject as k, defineComponent as $, ref as b, computed as y, onBeforeMount as B, onMounted as M, openBlock as f, createElementBlock as d, normalizeClass as v, createElementVNode as P, normalizeStyle as h, Fragment as C, renderList as q, unref as E, toDisplayString as L } from "vue";
|
|
3
|
+
function R(a, t) {
|
|
4
|
+
const o = k(a, t);
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${a}`);
|
|
7
|
+
return o;
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const j = ["disabled", "onClick"], U = /* @__PURE__ */ $({
|
|
10
10
|
__name: "MazTabsBar",
|
|
11
11
|
props: {
|
|
12
12
|
items: { type: Array, required: !0 },
|
|
13
|
-
|
|
13
|
+
persistent: { type: Boolean, default: !1 },
|
|
14
|
+
queryParam: { type: String, default: "tab" },
|
|
14
15
|
color: { type: String, default: "primary" },
|
|
15
16
|
block: { type: Boolean, default: !1 }
|
|
16
17
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
setup(a) {
|
|
19
|
+
const { currentTab: t, updateCurrentTab: o } = R("maz-tabs");
|
|
20
|
+
function u(e) {
|
|
21
|
+
o(e), n.persistent && z(e);
|
|
20
22
|
}
|
|
21
|
-
const n =
|
|
22
|
-
|
|
23
|
-
return a;
|
|
24
|
-
const c = window.location.hash.replace("#", ""), o = e.findIndex(({ label: l }) => s(l) === c);
|
|
25
|
-
return o === -1 ? 1 : o + 1;
|
|
26
|
-
}, { currentTab: r, updateCurrentTab: u } = A("maz-tabs"), p = t, z = v(), h = v([]);
|
|
27
|
-
function T({
|
|
23
|
+
const n = a, _ = b(), p = b([]);
|
|
24
|
+
function g({
|
|
28
25
|
mazBtn: e,
|
|
29
|
-
index:
|
|
26
|
+
index: r
|
|
30
27
|
}) {
|
|
31
|
-
|
|
28
|
+
p.value[r] = e && "$el" in e ? e.$el : e;
|
|
32
29
|
}
|
|
33
|
-
const
|
|
34
|
-
() =>
|
|
30
|
+
const c = y(
|
|
31
|
+
() => n.items.map((e) => ({
|
|
35
32
|
label: typeof e == "string" ? e : e.label,
|
|
36
33
|
disabled: typeof e == "string" ? !1 : e.disabled ?? !1
|
|
37
34
|
}))
|
|
38
|
-
),
|
|
39
|
-
if (typeof
|
|
35
|
+
), T = y(() => {
|
|
36
|
+
if (typeof t.value != "number")
|
|
40
37
|
return {};
|
|
41
|
-
const e =
|
|
38
|
+
const e = p.value[t.value - 1], r = (e == null ? void 0 : e.offsetWidth) ?? 0, i = (e == null ? void 0 : e.offsetHeight) ?? 0;
|
|
42
39
|
return {
|
|
43
40
|
transform: `translateX(${(e == null ? void 0 : e.offsetLeft) ?? 0}px)`,
|
|
44
|
-
width: `${
|
|
45
|
-
height: `${
|
|
41
|
+
width: `${r}px`,
|
|
42
|
+
height: `${i}px`
|
|
46
43
|
};
|
|
47
44
|
});
|
|
48
|
-
function
|
|
49
|
-
return
|
|
45
|
+
function w(e, r) {
|
|
46
|
+
return r ? {} : t.value === e ? "color: var(--maz-color-text)" : "color: var(--maz-color-muted)";
|
|
50
47
|
}
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
`[maz-ui](MazTabsBar) The model-value should be between 1 and ${
|
|
48
|
+
B(() => {
|
|
49
|
+
(t.value < 1 || t.value > c.value.length) && console.error(
|
|
50
|
+
`[maz-ui](MazTabsBar) The model-value should be between 1 and ${c.value.length}`
|
|
54
51
|
);
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
});
|
|
53
|
+
function S() {
|
|
54
|
+
const e = new URL(window.location.href);
|
|
55
|
+
return Number(e.searchParams.get(n.queryParam));
|
|
56
|
+
}
|
|
57
|
+
function z(e) {
|
|
58
|
+
const r = new URL(window.location.href);
|
|
59
|
+
r.searchParams.set(n.queryParam, String(e)), window.history.replaceState({}, document.title, r.toString());
|
|
60
|
+
}
|
|
61
|
+
return M(async () => {
|
|
62
|
+
n.persistent && o(S() ?? t.value ?? 1);
|
|
63
|
+
}), (e, r) => (f(), d(
|
|
58
64
|
"div",
|
|
59
65
|
{
|
|
60
66
|
ref_key: "MazTabsBar",
|
|
61
|
-
ref:
|
|
62
|
-
class:
|
|
63
|
-
"--block":
|
|
67
|
+
ref: _,
|
|
68
|
+
class: v(["m-tabs-bar", {
|
|
69
|
+
"--block": a.block
|
|
64
70
|
}])
|
|
65
71
|
},
|
|
66
72
|
[
|
|
67
|
-
|
|
73
|
+
P(
|
|
68
74
|
"div",
|
|
69
75
|
{
|
|
70
76
|
class: "m-tabs-bar__indicator",
|
|
71
|
-
style:
|
|
77
|
+
style: h([T.value])
|
|
72
78
|
},
|
|
73
79
|
null,
|
|
74
80
|
4
|
|
75
81
|
/* STYLE */
|
|
76
82
|
),
|
|
77
83
|
(f(!0), d(
|
|
78
|
-
|
|
84
|
+
C,
|
|
79
85
|
null,
|
|
80
|
-
|
|
81
|
-
key:
|
|
86
|
+
q(c.value, ({ label: i, disabled: l }, s) => (f(), d("button", {
|
|
87
|
+
key: s,
|
|
82
88
|
ref_for: !0,
|
|
83
|
-
ref: (m) =>
|
|
84
|
-
class:
|
|
85
|
-
disabled:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}, j(c), 15, L))),
|
|
89
|
+
ref: (m) => g({ mazBtn: m, index: s }),
|
|
90
|
+
class: v([{ "--active": E(t) === s, "--disabled": l }, "m-tabs-bar__item"]),
|
|
91
|
+
disabled: l,
|
|
92
|
+
style: h(w(s + 1, l)),
|
|
93
|
+
onClick: (m) => l ? void 0 : u(s + 1)
|
|
94
|
+
}, L(i), 15, j))),
|
|
90
95
|
128
|
|
91
96
|
/* KEYED_FRAGMENT */
|
|
92
97
|
))
|
|
@@ -95,12 +100,12 @@ const L = ["disabled", "href", "onClick"], V = /* @__PURE__ */ C({
|
|
|
95
100
|
/* CLASS */
|
|
96
101
|
));
|
|
97
102
|
}
|
|
98
|
-
}),
|
|
99
|
-
const
|
|
100
|
-
for (const [
|
|
101
|
-
|
|
102
|
-
return
|
|
103
|
-
},
|
|
103
|
+
}), V = (a, t) => {
|
|
104
|
+
const o = a.__vccOpts || a;
|
|
105
|
+
for (const [u, n] of t)
|
|
106
|
+
o[u] = n;
|
|
107
|
+
return o;
|
|
108
|
+
}, H = /* @__PURE__ */ V(U, [["__scopeId", "data-v-fd49b37e"]]);
|
|
104
109
|
export {
|
|
105
|
-
|
|
110
|
+
H as default
|
|
106
111
|
};
|
|
@@ -3,7 +3,7 @@ import type { Color } from './types';
|
|
|
3
3
|
export type { Color };
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
style: {
|
|
6
|
-
type: PropType<import("vue").StyleValue
|
|
6
|
+
type: PropType<import("vue").StyleValue>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
class: {
|
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
focus: (...args: any[]) => void;
|
|
66
66
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
67
|
style: {
|
|
68
|
-
type: PropType<import("vue").StyleValue
|
|
68
|
+
type: PropType<import("vue").StyleValue>;
|
|
69
69
|
default: undefined;
|
|
70
70
|
};
|
|
71
71
|
class: {
|
|
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
warning: boolean;
|
|
131
131
|
color: Color;
|
|
132
132
|
label: string;
|
|
133
|
-
style: import("vue").StyleValue
|
|
133
|
+
style: import("vue").StyleValue;
|
|
134
134
|
class: any;
|
|
135
135
|
disabled: boolean;
|
|
136
136
|
name: string;
|