maz-ui 3.37.3 → 3.37.4
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/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -2
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -0
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +4 -4
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
- package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
- package/components/MazPhoneNumberInput.d.ts +21 -8
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.d.ts +89 -92
- package/components/MazRadio.mjs +67 -73
- package/components/MazRadioButtons.d.ts +84 -62
- package/components/MazRadioButtons.mjs +112 -60
- package/components/MazSelect.d.ts +12 -7
- package/components/MazSelect.mjs +1 -1
- package/components/MazSwitch.d.ts +61 -67
- package/components/MazSwitch.mjs +41 -48
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.d.ts +23 -8
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBottomSheet-DZ1n4bGL.mjs → MazBottomSheet-B9OYmgyx.mjs} +1 -1
- package/components/chunks/{MazBtn-CnZU5zlG.mjs → MazBtn-4stpYG-V.mjs} +8 -8
- package/components/chunks/{MazBtn-BJs3rzUf.mjs → MazBtn-BQZOiUux.mjs} +8 -8
- package/components/chunks/{MazBtn-DLYgzr9e.mjs → MazBtn-Bgt41rUb.mjs} +11 -11
- package/components/chunks/MazBtn-CNyFbl9Y.mjs +151 -0
- package/components/chunks/{MazBtn-BTHDxDz7.mjs → MazBtn-CrNEwd_M.mjs} +8 -8
- package/components/chunks/MazBtn-CyXtFeAh.mjs +151 -0
- package/components/chunks/{MazBtn-CnkBOGKK.mjs → MazBtn-DOtOjQOl.mjs} +11 -11
- package/components/chunks/{MazBtn-IH6bjzah.mjs → MazBtn-DXC8jXNK.mjs} +8 -8
- package/components/chunks/{MazBtn-Dbe098kd.mjs → MazBtn-De3ZeaJJ.mjs} +8 -8
- package/components/chunks/{MazBtn-CDQAW3fg.mjs → MazBtn-g6VJMuer.mjs} +8 -8
- package/components/chunks/MazBtn-v1mwE1O3.mjs +151 -0
- package/components/chunks/{MazBtn-pLRsSxug.mjs → MazBtn-z9IFp0ZS.mjs} +8 -8
- package/components/chunks/{MazCard-CNE9c3L5.mjs → MazCard-E9Eg2VRn.mjs} +10 -8
- package/components/chunks/{MazCarousel-CMJgMJf1.mjs → MazCarousel-CtSpgIm6.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DJBo7Ejt.mjs → MazCheckbox-BE7eLIkK.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CM7mucQa.mjs → MazCheckbox-eSSrvpn9.mjs} +1 -1
- package/components/chunks/{MazDialog-BVqOTysP.mjs → MazDialog-CjsC6fGo.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BjciKAwR.mjs → MazDialogPromise-Blv60XZR.mjs} +2 -2
- package/components/chunks/{MazGallery-BUUq89aM.mjs → MazGallery-DRgvR7K0.mjs} +2 -2
- package/components/chunks/{MazIcon-BKfQ_rkt.mjs → MazIcon-C_IIdjqr.mjs} +1 -1
- package/components/chunks/{MazInput-Caas-0Nk.mjs → MazInput-Dn4JzYhe.mjs} +1 -1
- package/components/chunks/{MazInputNumber-CnoCQQzg.mjs → MazInputNumber-Df31nPnc.mjs} +2 -2
- package/components/chunks/{MazInputPrice---5nCUKm.mjs → MazInputPrice-DATyEiwP.mjs} +1 -1
- package/components/chunks/{MazInputTags-CipoVBP2.mjs → MazInputTags-DBzwE87F.mjs} +3 -3
- package/components/chunks/{MazPagination-CXw3yqbu.mjs → MazPagination-BU6fSHr2.mjs} +2 -2
- package/components/chunks/MazPhoneNumberInput-D8hP4ZzW.mjs +1419 -0
- package/components/chunks/{MazPicker-CfhI75aw.mjs → MazPicker-D71j9m8h.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-DnkNE-Am.mjs → MazPickerCalendar-psuBcTR7.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-Vt86yzXS.mjs → MazPickerHeader-BmqHJE0a.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-zfKhsjW1.mjs → MazPickerMonthSwitcher-DgU0pLkF.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-DUIKfOO8.mjs → MazPickerShortcuts-D9YXi3Ns.mjs} +2 -2
- package/components/chunks/{MazPickerTime-B2znRxr2.mjs → MazPickerTime-8ZqSEb_N.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CB339kof.mjs → MazPickerYearSwitcher-D-zu0tMs.mjs} +3 -3
- package/components/chunks/MazSelect-Cc8JAFML.mjs +731 -0
- package/components/chunks/{MazSpinner-DFseK3o_.mjs → MazSpinner-2-OAJWTi.mjs} +1 -1
- package/components/chunks/MazSpinner-B0xEVmcj.mjs +38 -0
- package/components/chunks/{MazSpinner-2fDI3i5h.mjs → MazSpinner-B3Gt0AEt.mjs} +1 -1
- package/components/chunks/MazSpinner-B6Z6X_KC.mjs +38 -0
- package/components/chunks/{MazSpinner-CORsBFCP.mjs → MazSpinner-BVaJBGw5.mjs} +1 -1
- package/components/chunks/{MazSpinner-CVBVegaS.mjs → MazSpinner-BVflp3wp.mjs} +1 -1
- package/components/chunks/MazSpinner-BmqyUsTZ.mjs +38 -0
- package/components/chunks/{MazSpinner-XMLkiLTL.mjs → MazSpinner-Btk7fYzq.mjs} +1 -1
- package/components/chunks/{MazSpinner-BtFWH26r.mjs → MazSpinner-CAQqdZfW.mjs} +1 -1
- package/components/chunks/MazSpinner-COqX5baD.mjs +38 -0
- package/components/chunks/{MazSpinner-Bky73siD.mjs → MazSpinner-CV3h3CKR.mjs} +1 -1
- package/components/chunks/MazSpinner-Cm5GeVV-.mjs +38 -0
- package/components/chunks/{MazSpinner-CkHAaRhk.mjs → MazSpinner-D9uDPRkX.mjs} +1 -1
- package/components/chunks/MazSpinner-DO1id61e.mjs +38 -0
- package/components/chunks/MazSpinner-K26cuR_A.mjs +38 -0
- package/components/chunks/MazSpinner-LCpiZGMP.mjs +38 -0
- package/components/chunks/MazTable-vcm_SC7e.mjs +1846 -0
- package/components/chunks/{MazTransitionExpand-BWsQP7UF.mjs → MazTransitionExpand-DXKtquVe.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-BxYYeNGe.mjs → MazBtn-CNsgLyRm.mjs} +8 -8
- package/modules/chunks/{MazBtn-CHUwa3fu.cjs → MazBtn-DmXrGuUE.cjs} +2 -2
- package/modules/chunks/{MazIcon-CnOCvJTw.mjs → MazIcon-DwRWkhhR.mjs} +1 -1
- package/modules/chunks/{MazIcon-DcbutTbM.cjs → MazIcon-rh9PwwaQ.cjs} +1 -1
- package/modules/chunks/{MazSpinner-TL9_4BOs.cjs → MazSpinner-BzucVZXm.cjs} +1 -1
- package/modules/chunks/{MazSpinner-ClFhZyF_.mjs → MazSpinner-mCJd14Kq.mjs} +1 -1
- package/modules/chunks/{index-DksGhf51.cjs → index-DHsybBwE.cjs} +1 -1
- package/modules/chunks/{index-_xAQ9uTd.mjs → index-DrSSNP9y.mjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +5 -5
- package/package.json +6 -6
- package/types/components/MazBtn.vue.d.ts +2 -2
- package/types/components/MazCard.vue.d.ts +2 -0
- package/types/components/MazInputTags.vue.d.ts +4 -4
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
- package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +21 -8
- package/types/components/MazRadio.vue.d.ts +89 -92
- package/types/components/MazRadioButtons.vue.d.ts +84 -62
- package/types/components/MazSelect.vue.d.ts +12 -7
- package/types/components/MazSwitch.vue.d.ts +61 -67
- package/types/components/MazTextarea.vue.d.ts +23 -8
- package/components/chunks/MazBtn-Cpnby6Lb.mjs +0 -151
- package/components/chunks/MazBtn-D5q0p_mK.mjs +0 -151
- package/components/chunks/MazBtn-Koayc6g_.mjs +0 -151
- package/components/chunks/MazPhoneNumberInput-BDiyO_6j.mjs +0 -1423
- package/components/chunks/MazSelect-Cr1xT89o.mjs +0 -767
- package/components/chunks/MazSpinner-CdKm_Lcp.mjs +0 -38
- package/components/chunks/MazSpinner-CkdjTE0y.mjs +0 -38
- package/components/chunks/MazSpinner-CtMh7fIX.mjs +0 -38
- package/components/chunks/MazSpinner-DECa8Pby.mjs +0 -38
- package/components/chunks/MazSpinner-DMBy6mx3.mjs +0 -38
- package/components/chunks/MazSpinner-DPmNDRtT.mjs +0 -38
- package/components/chunks/MazSpinner-Dq4o-_GM.mjs +0 -38
- package/components/chunks/MazSpinner-DyE_USVF.mjs +0 -38
- package/components/chunks/MazTable-CIlP0a61.mjs +0 -1882
package/nuxt/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addComponent, addImports, addPlugin } from '@nuxt/kit';
|
|
2
|
-
import
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { readdir } from 'node:fs/promises';
|
|
5
5
|
|
|
@@ -60,7 +60,7 @@ function createDefu(merger) {
|
|
|
60
60
|
const defu = createDefu();
|
|
61
61
|
|
|
62
62
|
const _dirname$1 = fileURLToPath(new URL(".", import.meta.url));
|
|
63
|
-
const INPUT_COMPONENT_DIR = resolve(_dirname$1, "./../components");
|
|
63
|
+
const INPUT_COMPONENT_DIR = path.resolve(_dirname$1, "./../components");
|
|
64
64
|
const getComponentList = async () => {
|
|
65
65
|
try {
|
|
66
66
|
const fileList = await readdir(INPUT_COMPONENT_DIR, { withFileTypes: true });
|
|
@@ -78,7 +78,7 @@ const getComponentList = async () => {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
81
|
+
const _dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
82
82
|
const module = defineNuxtModule({
|
|
83
83
|
meta: {
|
|
84
84
|
name: "maz-ui",
|
|
@@ -99,8 +99,8 @@ const module = defineNuxtModule({
|
|
|
99
99
|
const moduleOptions = defu(nuxt.options.runtimeConfig.public.mazUi, options);
|
|
100
100
|
nuxt.options.runtimeConfig.public.mazUi = moduleOptions;
|
|
101
101
|
if (moduleOptions.injectCss) {
|
|
102
|
-
const
|
|
103
|
-
nuxt.options.css = [
|
|
102
|
+
const path2 = process.env.MAZ_UI_DEV === "true" ? "maz-ui/css/index.css" : "maz-ui/css/main.css";
|
|
103
|
+
nuxt.options.css = [path2, ...nuxt.options.css];
|
|
104
104
|
}
|
|
105
105
|
if (moduleOptions.injectComponents) {
|
|
106
106
|
const componentList = await getComponentList();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.37.
|
|
3
|
+
"version": "3.37.4",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
6
|
"main": "./modules/index.cjs",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"@mazui/cli": "latest"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@babel/core": "^7.24.
|
|
105
|
-
"@babel/preset-env": "^7.24.
|
|
104
|
+
"@babel/core": "^7.24.4",
|
|
105
|
+
"@babel/preset-env": "^7.24.4",
|
|
106
106
|
"@babel/preset-typescript": "^7.24.1",
|
|
107
107
|
"@nuxt/kit": "^3.11.1",
|
|
108
108
|
"@nuxt/schema": "^3.11.1",
|
|
@@ -141,17 +141,17 @@
|
|
|
141
141
|
"prettier-plugin-tailwindcss": "^0.5.13",
|
|
142
142
|
"replace-in-file": "^7.1.0",
|
|
143
143
|
"rimraf": "^5.0.5",
|
|
144
|
-
"sass": "^1.
|
|
144
|
+
"sass": "^1.74.1",
|
|
145
145
|
"semver": "^7.6.0",
|
|
146
146
|
"sirv": "^2.0.4",
|
|
147
147
|
"stylelint": "^16.3.1",
|
|
148
148
|
"stylelint-config-recommended-vue": "^1.5.0",
|
|
149
149
|
"stylelint-config-standard": "^36.0.0",
|
|
150
|
-
"stylelint-config-standard-scss": "^13.
|
|
150
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
151
151
|
"stylelint-config-tailwindcss": "^0.0.7",
|
|
152
152
|
"tailwindcss": "^3.4.3",
|
|
153
153
|
"unplugin-vue-components": "^0.26.0",
|
|
154
|
-
"vite": "^5.2.
|
|
154
|
+
"vite": "^5.2.8",
|
|
155
155
|
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
156
156
|
"vite-plugin-lib-inject-css": "^2.0.1",
|
|
157
157
|
"vite-plugin-static-copy": "^1.0.2",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FunctionalComponent, type SVGAttributes, type ComponentPublicInstance, type Component } from 'vue';
|
|
1
|
+
import { type FunctionalComponent, type SVGAttributes, type ComponentPublicInstance, type Component, type HTMLAttributes } from 'vue';
|
|
2
2
|
import type { Color, Size } from './types';
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
type Icon = FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component;
|
|
@@ -97,7 +97,7 @@ export type Props = {
|
|
|
97
97
|
*/
|
|
98
98
|
noElevation?: boolean;
|
|
99
99
|
/** The class applied to the content wrapper (<span />) of the button */
|
|
100
|
-
contentClass?:
|
|
100
|
+
contentClass?: HTMLAttributes['class'];
|
|
101
101
|
};
|
|
102
102
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
103
103
|
variant: string;
|
|
@@ -45,6 +45,8 @@ export type Props = {
|
|
|
45
45
|
collapseOpen?: boolean;
|
|
46
46
|
/** Title of the card in header */
|
|
47
47
|
header?: string;
|
|
48
|
+
/** The card will be displayed in full width */
|
|
49
|
+
block?: boolean;
|
|
48
50
|
};
|
|
49
51
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
50
52
|
images: undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type HTMLAttributes } from 'vue';
|
|
2
2
|
import type { Color, Size } from './types';
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
export type Props = {
|
|
5
5
|
/** Style attribut of the component root element */
|
|
6
|
-
style?:
|
|
6
|
+
style?: HTMLAttributes['style'];
|
|
7
7
|
/** Class attribut of the component root element */
|
|
8
|
-
class?:
|
|
8
|
+
class?: HTMLAttributes['class'];
|
|
9
9
|
/** @model The modelValue of the input */
|
|
10
10
|
modelValue?: string[] | number[];
|
|
11
11
|
/** The placeholder of the input */
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
58
58
|
}, {
|
|
59
59
|
size: Size;
|
|
60
60
|
label: string;
|
|
61
|
-
style: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
61
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
62
62
|
error: boolean;
|
|
63
63
|
disabled: boolean;
|
|
64
64
|
success: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type StyleValue } from 'vue';
|
|
2
1
|
import type { Color, Size, Position, CountryCode } from '../MazPhoneNumberInput.vue';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
-
|
|
3
|
+
/** Style attribut of the component root element */
|
|
4
|
+
style?: import("vue").StyleValue;
|
|
5
|
+
/** Class attribut of the component root element */
|
|
5
6
|
class?: any;
|
|
6
7
|
modelValue?: CountryCode | undefined;
|
|
7
8
|
id: string;
|
|
@@ -46,7 +47,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
47
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
48
|
"update:model-value": (countryCode?: CountryCode | undefined) => void;
|
|
48
49
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
49
|
-
|
|
50
|
+
/** Style attribut of the component root element */
|
|
51
|
+
style?: import("vue").StyleValue;
|
|
52
|
+
/** Class attribut of the component root element */
|
|
50
53
|
class?: any;
|
|
51
54
|
modelValue?: CountryCode | undefined;
|
|
52
55
|
id: string;
|
|
@@ -91,7 +94,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
91
94
|
}>>> & {
|
|
92
95
|
"onUpdate:model-value"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
|
|
93
96
|
}, {
|
|
94
|
-
style: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
97
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
95
98
|
width: string;
|
|
96
99
|
class: any;
|
|
97
100
|
modelValue: CountryCode;
|
|
@@ -105,6 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
105
108
|
"selector-flag"?(_: {
|
|
106
109
|
countryCode: CountryCode;
|
|
107
110
|
}): any;
|
|
111
|
+
"no-results"?(_: {}): any;
|
|
108
112
|
"country-list-flag"?(_: {
|
|
109
113
|
countryCode: string;
|
|
110
114
|
option: import("../MazSelect.vue").NormalizedOption;
|
|
@@ -42,11 +42,11 @@ export declare function useMazPhoneNumberInput(): {
|
|
|
42
42
|
fetchCountryCode: typeof fetchCountryCode;
|
|
43
43
|
selectedCountry: import("vue").Ref<CountryCode | undefined>;
|
|
44
44
|
phoneNumber: import("vue").Ref<string>;
|
|
45
|
-
selectionRange: {
|
|
45
|
+
selectionRange: import("vue").Ref<{
|
|
46
46
|
start?: number | null | undefined;
|
|
47
47
|
end?: number | null | undefined;
|
|
48
48
|
cursorAtEnd?: boolean | undefined;
|
|
49
|
-
}
|
|
49
|
+
}>;
|
|
50
50
|
saveCursorPosition: typeof saveCursorPosition;
|
|
51
51
|
onPhoneNumberChanged: typeof onPhoneNumberChanged;
|
|
52
52
|
onCountryChanged: typeof onCountryChanged;
|
|
@@ -2,12 +2,12 @@ import { type CountryCode } from 'libphonenumber-js';
|
|
|
2
2
|
import type { Results, Translations } from './MazPhoneNumberInput/types';
|
|
3
3
|
import type { Color, Position, Size } from './types';
|
|
4
4
|
export type { Color, Size, Position, CountryCode, Results, Results as Result, Translations };
|
|
5
|
-
import { type
|
|
5
|
+
import { type HTMLAttributes } from 'vue';
|
|
6
6
|
export type Props = {
|
|
7
7
|
/** Style attribut of the component root element */
|
|
8
|
-
style?:
|
|
8
|
+
style?: HTMLAttributes['style'];
|
|
9
9
|
/** Class attribut of the component root element */
|
|
10
|
-
class?:
|
|
10
|
+
class?: HTMLAttributes['class'];
|
|
11
11
|
/** @model Country calling code + telephone number in international format */
|
|
12
12
|
modelValue?: string;
|
|
13
13
|
/** @deprecated */
|
|
@@ -82,7 +82,7 @@ export type Props = {
|
|
|
82
82
|
/** The input will be displayed in full width */
|
|
83
83
|
block?: boolean;
|
|
84
84
|
};
|
|
85
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
86
86
|
class: undefined;
|
|
87
87
|
style: undefined;
|
|
88
88
|
listPosition: string;
|
|
@@ -103,7 +103,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
103
103
|
customCountriesList: undefined;
|
|
104
104
|
countryLocale: undefined;
|
|
105
105
|
countrySelectorWidth: string;
|
|
106
|
-
data: undefined;
|
|
107
106
|
noFormattingAsYouType: boolean;
|
|
108
107
|
autoFormat: boolean;
|
|
109
108
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -133,7 +132,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
133
132
|
customCountriesList: undefined;
|
|
134
133
|
countryLocale: undefined;
|
|
135
134
|
countrySelectorWidth: string;
|
|
136
|
-
data: undefined;
|
|
137
135
|
noFormattingAsYouType: boolean;
|
|
138
136
|
autoFormat: boolean;
|
|
139
137
|
}>>> & {
|
|
@@ -144,7 +142,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
144
142
|
"onUpdate:country-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
|
|
145
143
|
}, {
|
|
146
144
|
size: Size;
|
|
147
|
-
style: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
145
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
148
146
|
id: string;
|
|
149
147
|
color: Color;
|
|
150
148
|
class: any;
|
|
@@ -173,7 +171,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
173
171
|
customCountriesList: Record<CountryCode, string>;
|
|
174
172
|
countryLocale: string;
|
|
175
173
|
countrySelectorWidth: string;
|
|
176
|
-
}, {}
|
|
174
|
+
}, {}>, {
|
|
175
|
+
"no-results"?(_: {}): any;
|
|
176
|
+
"selector-flag"?(_: {
|
|
177
|
+
countryCode: CountryCode;
|
|
178
|
+
}): any;
|
|
179
|
+
"country-list-flag"?(_: {
|
|
180
|
+
countryCode: import("./types").ModelValueSimple;
|
|
181
|
+
option: import("./MazSelect.vue").NormalizedOption;
|
|
182
|
+
isSelected: boolean;
|
|
183
|
+
}): any;
|
|
184
|
+
}>;
|
|
177
185
|
export default _default;
|
|
178
186
|
type __VLS_WithDefaults<P, D> = {
|
|
179
187
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -183,6 +191,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
183
191
|
type __VLS_Prettify<T> = {
|
|
184
192
|
[K in keyof T]: T[K];
|
|
185
193
|
} & {};
|
|
194
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
195
|
+
new (): {
|
|
196
|
+
$slots: S;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
186
199
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
187
200
|
type __VLS_TypePropsToOption<T> = {
|
|
188
201
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -1,109 +1,106 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
1
|
import type { Color, Size } from './types';
|
|
3
2
|
export type { Color, Size };
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
required: true;
|
|
72
|
-
};
|
|
73
|
-
id: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: undefined;
|
|
76
|
-
};
|
|
77
|
-
color: {
|
|
78
|
-
type: PropType<Color>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
size: {
|
|
82
|
-
type: PropType<Size>;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
disabled: {
|
|
86
|
-
type: BooleanConstructor;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
}>> & {
|
|
90
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
+
/** Style attribut of the component root element */
|
|
5
|
+
style?: import("vue").StyleValue;
|
|
6
|
+
/** Class attribut of the component root element */
|
|
7
|
+
class?: any;
|
|
8
|
+
/** The id of the radio */
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
/** @model The value of the radio */
|
|
11
|
+
modelValue?: string | number | boolean | undefined;
|
|
12
|
+
/** The value of the radio */
|
|
13
|
+
value: string | number | boolean;
|
|
14
|
+
/** The name of the radio */
|
|
15
|
+
name: string;
|
|
16
|
+
/** The label of the radio */
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
/** The color of the radio */
|
|
19
|
+
color?: Color | undefined;
|
|
20
|
+
/** The size of the radio */
|
|
21
|
+
size?: Size | undefined;
|
|
22
|
+
/** The disabled state of the radio */
|
|
23
|
+
disabled?: boolean | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
style: undefined;
|
|
26
|
+
class: undefined;
|
|
27
|
+
id: undefined;
|
|
28
|
+
modelValue: undefined;
|
|
29
|
+
label: undefined;
|
|
30
|
+
color: string;
|
|
31
|
+
size: string;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:model-value": (value: string | number | boolean) => void;
|
|
35
|
+
change: (value: string | number | boolean) => void;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
37
|
+
/** Style attribut of the component root element */
|
|
38
|
+
style?: import("vue").StyleValue;
|
|
39
|
+
/** Class attribut of the component root element */
|
|
40
|
+
class?: any;
|
|
41
|
+
/** The id of the radio */
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
/** @model The value of the radio */
|
|
44
|
+
modelValue?: string | number | boolean | undefined;
|
|
45
|
+
/** The value of the radio */
|
|
46
|
+
value: string | number | boolean;
|
|
47
|
+
/** The name of the radio */
|
|
48
|
+
name: string;
|
|
49
|
+
/** The label of the radio */
|
|
50
|
+
label?: string | undefined;
|
|
51
|
+
/** The color of the radio */
|
|
52
|
+
color?: Color | undefined;
|
|
53
|
+
/** The size of the radio */
|
|
54
|
+
size?: Size | undefined;
|
|
55
|
+
/** The disabled state of the radio */
|
|
56
|
+
disabled?: boolean | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
style: undefined;
|
|
59
|
+
class: undefined;
|
|
60
|
+
id: undefined;
|
|
61
|
+
modelValue: undefined;
|
|
62
|
+
label: undefined;
|
|
63
|
+
color: string;
|
|
64
|
+
size: string;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
}>>> & {
|
|
67
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
68
|
+
"onUpdate:model-value"?: ((value: string | number | boolean) => any) | undefined;
|
|
92
69
|
}, {
|
|
93
70
|
size: Size;
|
|
94
71
|
label: string;
|
|
95
|
-
style: import("vue").StyleValue;
|
|
72
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
96
73
|
id: string;
|
|
97
74
|
disabled: boolean;
|
|
98
75
|
color: Color;
|
|
99
76
|
class: any;
|
|
100
|
-
modelValue: string;
|
|
77
|
+
modelValue: string | number | boolean;
|
|
101
78
|
}, {}>, {
|
|
102
|
-
default?(_: {
|
|
79
|
+
default?(_: {
|
|
80
|
+
isSelected: boolean;
|
|
81
|
+
value: string | number | boolean;
|
|
82
|
+
}): any;
|
|
103
83
|
}>;
|
|
104
84
|
export default _default;
|
|
85
|
+
type __VLS_WithDefaults<P, D> = {
|
|
86
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
87
|
+
default: D[K];
|
|
88
|
+
}> : P[K];
|
|
89
|
+
};
|
|
90
|
+
type __VLS_Prettify<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
105
93
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
106
94
|
new (): {
|
|
107
95
|
$slots: S;
|
|
108
96
|
};
|
|
109
97
|
};
|
|
98
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
99
|
+
type __VLS_TypePropsToOption<T> = {
|
|
100
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
101
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
102
|
+
} : {
|
|
103
|
+
type: import('vue').PropType<T[K]>;
|
|
104
|
+
required: true;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -1,71 +1,76 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
2
|
import type { Color } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type ButtonsRadioOption = {
|
|
4
|
+
/** The label of the option */
|
|
4
5
|
label: string;
|
|
5
|
-
value
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
color
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
onChange?: ((
|
|
62
|
-
"onUpdate:model-value"?: ((
|
|
6
|
+
/** The value of the option */
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
/** The classes to apply to the option */
|
|
9
|
+
classes?: any;
|
|
10
|
+
/** The style to apply to the option */
|
|
11
|
+
style?: StyleValue;
|
|
12
|
+
} & Record<string, unknown>;
|
|
13
|
+
export type Props = {
|
|
14
|
+
/** @model The value of the selected option */
|
|
15
|
+
modelValue?: string | number | boolean;
|
|
16
|
+
/** The options to display */
|
|
17
|
+
options: ButtonsRadioOption[];
|
|
18
|
+
/** The name of the radio group */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** The color of the selected radio buttons */
|
|
21
|
+
color?: Color;
|
|
22
|
+
/** Add elevation to the radio buttons */
|
|
23
|
+
elevation?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The orientation of the radio buttons
|
|
26
|
+
* @values 'row' | 'col'
|
|
27
|
+
*/
|
|
28
|
+
orientation?: 'row' | 'col';
|
|
29
|
+
/** Disable the wrap of the radio buttons */
|
|
30
|
+
noWrap?: boolean;
|
|
31
|
+
/** Make all radio buttons the same size */
|
|
32
|
+
equalSize?: boolean;
|
|
33
|
+
/** Display a selector icon */
|
|
34
|
+
selector?: boolean;
|
|
35
|
+
/** The component will be displayed in full width */
|
|
36
|
+
block?: boolean;
|
|
37
|
+
};
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
39
|
+
modelValue: undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
color: string;
|
|
42
|
+
elevation: boolean;
|
|
43
|
+
orientation: string;
|
|
44
|
+
noWrap: boolean;
|
|
45
|
+
equalSize: boolean;
|
|
46
|
+
selector: boolean;
|
|
47
|
+
block: boolean;
|
|
48
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:model-value": (value: string | number | boolean) => void;
|
|
50
|
+
change: (value: string | number | boolean) => void;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
52
|
+
modelValue: undefined;
|
|
53
|
+
name: string;
|
|
54
|
+
color: string;
|
|
55
|
+
elevation: boolean;
|
|
56
|
+
orientation: string;
|
|
57
|
+
noWrap: boolean;
|
|
58
|
+
equalSize: boolean;
|
|
59
|
+
selector: boolean;
|
|
60
|
+
block: boolean;
|
|
61
|
+
}>>> & {
|
|
62
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
63
|
+
"onUpdate:model-value"?: ((value: string | number | boolean) => any) | undefined;
|
|
63
64
|
}, {
|
|
64
65
|
name: string;
|
|
65
66
|
orientation: "col" | "row";
|
|
66
67
|
color: Color;
|
|
67
|
-
|
|
68
|
-
modelValue: string | number;
|
|
68
|
+
block: boolean;
|
|
69
|
+
modelValue: string | number | boolean;
|
|
70
|
+
elevation: boolean;
|
|
71
|
+
noWrap: boolean;
|
|
72
|
+
equalSize: boolean;
|
|
73
|
+
selector: boolean;
|
|
69
74
|
}, {}>, {
|
|
70
75
|
default?(_: {
|
|
71
76
|
option: ButtonsRadioOption;
|
|
@@ -73,8 +78,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
73
78
|
}): any;
|
|
74
79
|
}>;
|
|
75
80
|
export default _default;
|
|
81
|
+
type __VLS_WithDefaults<P, D> = {
|
|
82
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
83
|
+
default: D[K];
|
|
84
|
+
}> : P[K];
|
|
85
|
+
};
|
|
86
|
+
type __VLS_Prettify<T> = {
|
|
87
|
+
[K in keyof T]: T[K];
|
|
88
|
+
} & {};
|
|
76
89
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
90
|
new (): {
|
|
78
91
|
$slots: S;
|
|
79
92
|
};
|
|
80
93
|
};
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToOption<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|