maz-ui 3.44.4-beta.8 → 3.45.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.
- package/components/MazAccordion.mjs +5 -3
- package/components/MazBackdrop.d.ts +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +1 -0
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazCheckbox.d.ts +45 -65
- package/components/MazCheckbox.mjs +107 -79
- package/components/MazCircularProgressBar.mjs +22 -20
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +105 -29
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +4 -4
- package/components/MazDropdown.mjs +7 -16
- package/components/MazDropzone.d.ts +3 -3
- package/components/MazInput.d.ts +3 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +17 -67
- package/components/MazInputCode.mjs +109 -93
- package/components/MazInputNumber.d.ts +9 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +23 -6
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +6 -4
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +16 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.d.ts +41 -87
- package/components/MazRadio.mjs +88 -58
- package/components/MazRadioButtons.d.ts +40 -67
- package/components/MazRadioButtons.mjs +157 -122
- package/components/MazReadingProgressBar.mjs +29 -28
- package/components/MazSelect.d.ts +3 -3
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +15 -1
- package/components/MazSwitch.mjs +82 -37
- package/components/MazTable.d.ts +6 -34
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.d.ts +7 -5
- package/components/MazTextarea.mjs +26 -19
- 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/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.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/MazPagination.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/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBottomSheet-DpI8wFgc.mjs → MazBottomSheet-CH2HERnA.mjs} +1 -1
- package/components/chunks/MazBtn-25C5Rxq8.mjs +150 -0
- package/components/chunks/{MazBtn-B6TXxFme.mjs → MazBtn-Am8V9GhQ.mjs} +4 -4
- package/components/chunks/{MazBtn-BIVlttu0.mjs → MazBtn-BY3WK1_J.mjs} +4 -4
- package/components/chunks/MazBtn-CHiPgDBd.mjs +150 -0
- package/components/chunks/MazBtn-Cljl5o-I.mjs +150 -0
- package/components/chunks/MazBtn-Ctia-461.mjs +150 -0
- package/components/chunks/MazBtn-DODywrLx.mjs +150 -0
- package/components/chunks/{MazBtn-BQ7aH6Qe.mjs → MazBtn-DUxqd_DK.mjs} +3 -3
- package/components/chunks/{MazBtn-BURByjBO.mjs → MazBtn-DaGlZoUy.mjs} +4 -4
- package/components/chunks/{MazBtn-Dfz-5FeI.mjs → MazBtn-Db9bWwr8.mjs} +3 -3
- package/components/chunks/{MazBtn-C7RDTnn-.mjs → MazBtn-DtBz7Sra.mjs} +4 -4
- package/components/chunks/{MazCard-BiDXoNWK.mjs → MazCard-BOVaL2TX.mjs} +3 -3
- package/components/chunks/{MazCarousel-DJ_nQfy4.mjs → MazCarousel-abKXCTQA.mjs} +1 -1
- package/components/chunks/MazCheckbox-DJUwF9Ic.mjs +145 -0
- package/components/chunks/MazCheckbox-cCi1trWo.mjs +145 -0
- package/components/chunks/{MazDialog-DXaeCp-b.mjs → MazDialog-DvwYzTxG.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-Bgxjg9ss.mjs → MazDialogPromise-LtvHsHIp.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-ChSSdQAq.mjs → MazExpandAnimation-KC7-CJjE.mjs} +1 -1
- package/components/chunks/{MazGallery-SSMQ_JIA.mjs → MazGallery-CPYyQmRZ.mjs} +2 -2
- package/components/chunks/{MazIcon-x_aGvHlZ.mjs → MazIcon-Cj1BW9sd.mjs} +1 -1
- package/components/chunks/{MazIcon-CwITLbPL.mjs → MazIcon-RoOmzDJT.mjs} +1 -1
- package/components/chunks/{MazInput-DtXDTEbn.mjs → MazInput-Bh4h0r_b.mjs} +7 -5
- package/components/chunks/{MazInputNumber-Bbo6UwHG.mjs → MazInputNumber-C6X8wPcR.mjs} +64 -54
- package/components/chunks/{MazInputPrice-CSft00gJ.mjs → MazInputPrice-C8JPpUqb.mjs} +176 -154
- package/components/chunks/{MazInputTags-CMLyznXG.mjs → MazInputTags-B7CtC8ES.mjs} +50 -43
- package/components/chunks/{MazPagination-NbHR41CQ.mjs → MazPagination-nBtlECFm.mjs} +3 -3
- package/components/chunks/{MazPhoneNumberInput-fo2MtuWB.mjs → MazPhoneNumberInput-D9jYdzsz.mjs} +192 -186
- package/components/chunks/{MazPicker-Df-LRtwz.mjs → MazPicker-DyZrLgfS.mjs} +829 -829
- package/components/chunks/{MazPickerMonthSwitcher-CrrfUDPA.mjs → MazPickerMonthSwitcher-DuCmmEkc.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Dpm1ra_Y.mjs → MazPickerShortcuts-ByXlLUrf.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-BIeGuXI7.mjs → MazPickerYearSwitcher-C4lu0v5Z.mjs} +1 -1
- package/components/chunks/{MazSelect-xBiD7HuJ.mjs → MazSelect-YzzlcNEB.mjs} +201 -195
- package/components/chunks/{MazSpinner-CvucKhXp.mjs → MazSpinner--8_8u8F8.mjs} +1 -1
- package/components/chunks/{MazSpinner-CrDTibNk.mjs → MazSpinner-B6CCWjsr.mjs} +1 -1
- package/components/chunks/{MazSpinner-C5MXwcx7.mjs → MazSpinner-BB7RmZDm.mjs} +1 -1
- package/components/chunks/MazSpinner-BJN_jbhh.mjs +37 -0
- package/components/chunks/{MazSpinner-C6T_enKo.mjs → MazSpinner-BaF0DUe_.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cytz0rab.mjs → MazSpinner-BkThjKrN.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bj5hXQuh.mjs → MazSpinner-C26AbFPs.mjs} +1 -1
- package/components/chunks/{MazSpinner-C8x7LsHq.mjs → MazSpinner-CeqhaMHQ.mjs} +1 -1
- package/components/chunks/MazSpinner-ClVjU4gS.mjs +37 -0
- package/components/chunks/MazSpinner-CrfX4MuO.mjs +37 -0
- package/components/chunks/{MazSpinner-BzQ5Fn3J.mjs → MazSpinner-CxE3Az_C.mjs} +1 -1
- package/components/chunks/{MazSpinner-rAqBu92m.mjs → MazSpinner-DH5fMQ2V.mjs} +1 -1
- package/components/chunks/MazSpinner-DRDcCM66.mjs +37 -0
- package/components/chunks/MazSpinner-aOtXYirZ.mjs +37 -0
- package/components/chunks/{MazSpinner-CLz4ccD0.mjs → MazSpinner-vlqbojbC.mjs} +1 -1
- package/components/chunks/MazSpinner-xXJol44G.mjs +37 -0
- package/components/chunks/{MazStepper-DxrzKz06.mjs → MazStepper-yS_V0Blo.mjs} +11 -11
- package/components/chunks/{MazTable-1D7GRSpa.mjs → MazTable-IHEexOjS.mjs} +731 -699
- package/components/chunks/{MazTransitionExpand-BLFZPAt_.mjs → MazTransitionExpand-5BehexAr.mjs} +1 -1
- package/css/main.css +1 -1
- package/icons/star-solid.svg +3 -0
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-BFQY0H-i.mjs +150 -0
- package/modules/chunks/{MazBtn-ubyxuJuX.cjs → MazBtn-I7JqHQTq.cjs} +2 -2
- package/modules/chunks/{MazIcon-CBb0nZ3j.cjs → MazIcon-CsxV_mO2.cjs} +1 -1
- package/modules/chunks/{MazIcon-DgtEHf2O.mjs → MazIcon-p3FoIAP_.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DT1vzfwj.cjs → MazSpinner-BpSg3Y-2.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BgwaoBcS.mjs → MazSpinner-Ci05iNOI.mjs} +1 -1
- package/modules/chunks/index--QQ7NnV6.cjs +1 -0
- package/modules/chunks/{index-BRPyIVYZ.mjs → index-BB6bju-X.mjs} +1195 -1011
- package/modules/chunks/index-DKf8K15k.cjs +124 -0
- package/modules/chunks/{index-IH_7hv2n.mjs → index-DLSZ-jVW.mjs} +654 -618
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +44 -43
- package/nuxt/index.d.mts +5 -0
- package/nuxt/index.d.ts +5 -0
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +16 -4
- package/package.json +32 -27
- package/resolvers/index.cjs +1 -1
- package/resolvers/index.d.ts +1 -0
- package/resolvers/index.mjs +50 -10
- package/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/resolvers/unplugin-modules-resolver.d.ts +2 -0
- package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/types/components/MazBackdrop.vue.d.ts +1 -1
- package/types/components/MazBtn.vue.d.ts +1 -0
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazCheckbox.vue.d.ts +45 -65
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +105 -29
- package/types/components/MazDropdown.vue.d.ts +4 -4
- package/types/components/MazDropzone.vue.d.ts +3 -3
- package/types/components/MazInput.vue.d.ts +3 -3
- package/types/components/MazInputCode.vue.d.ts +17 -67
- package/types/components/MazInputNumber.vue.d.ts +9 -1
- package/types/components/MazInputPrice.vue.d.ts +23 -6
- package/types/components/MazInputTags.vue.d.ts +6 -4
- package/types/components/MazPicker.vue.d.ts +16 -0
- package/types/components/MazRadio.vue.d.ts +41 -87
- package/types/components/MazRadioButtons.vue.d.ts +40 -67
- package/types/components/MazSelect.vue.d.ts +3 -3
- package/types/components/MazSwitch.vue.d.ts +15 -1
- package/types/components/MazTable.vue.d.ts +6 -34
- package/types/components/MazTextarea.vue.d.ts +7 -5
- package/types/modules/composables/index.d.ts +14 -14
- package/types/modules/composables/{use-breakpoints.d.ts → useBreakpoints.d.ts} +2 -2
- package/types/modules/composables/useFormValidator/config.d.ts +7 -0
- package/types/modules/composables/useFormValidator/index.d.ts +3 -0
- package/types/modules/composables/{use-form-validator → useFormValidator}/types.d.ts +22 -18
- package/types/modules/composables/useFormValidator/useFormField.d.ts +16 -0
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +17 -0
- package/types/modules/composables/useFormValidator/utils.d.ts +114 -0
- package/types/modules/composables/useSwipe.d.ts +11 -0
- package/types/modules/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +2 -2
- package/types/modules/composables/{use-timer.d.ts → useTimer.d.ts} +1 -1
- package/types/modules/composables/{use-window-size.d.ts → useWindowSize.d.ts} +2 -2
- package/types/modules/helpers/check-availability.d.ts +5 -0
- package/types/modules/helpers/debounce-id.d.ts +6 -0
- package/types/modules/helpers/index.d.ts +1 -0
- package/types/modules/helpers/{throttle-async.d.ts → throttle-id.d.ts} +2 -2
- package/types/modules/helpers/throttle.d.ts +1 -1
- package/types/resolvers/index.d.ts +1 -0
- package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/types/resolvers/unplugin-modules-resolver.d.ts +2 -0
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/components/chunks/MazBtn-D1TNsXIe.mjs +0 -150
- package/components/chunks/MazBtn-D2tIsob2.mjs +0 -150
- package/components/chunks/MazBtn-DeLJCP2D.mjs +0 -150
- package/components/chunks/MazBtn-Vas62hFD.mjs +0 -150
- package/components/chunks/MazBtn-YtY4PeyZ.mjs +0 -150
- package/components/chunks/MazCheckbox-BMzMZ-_l.mjs +0 -119
- package/components/chunks/MazCheckbox-B_Rx3ZCe.mjs +0 -119
- package/components/chunks/MazSpinner-CmJlBqgH.mjs +0 -37
- package/components/chunks/MazSpinner-DDmCKWOx.mjs +0 -37
- package/components/chunks/MazSpinner-DIa-qXiV.mjs +0 -37
- package/components/chunks/MazSpinner-QIX5R4Hk.mjs +0 -37
- package/components/chunks/MazSpinner-dFnsq52G.mjs +0 -37
- package/components/chunks/MazSpinner-iA4Rz7K5.mjs +0 -37
- package/modules/chunks/MazBtn-DKX3gZbQ.mjs +0 -150
- package/modules/chunks/index-V9QBN08z.cjs +0 -124
- package/modules/chunks/index-bVxwbrqO.cjs +0 -1
- package/types/modules/composables/use-form-validator/index.d.ts +0 -53
- package/types/modules/composables/use-form-validator/utils.d.ts +0 -45
- package/types/modules/composables/use-swipe.d.ts +0 -11
- package/types/modules/helpers/debounce-async.d.ts +0 -6
- /package/nuxt/runtime/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-aos.js → useAos.js} +0 -0
- /package/nuxt/runtime/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-theme-handler.js → useThemeHandler.js} +0 -0
- /package/nuxt/runtime/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-toast.js → useToast.js} +0 -0
- /package/nuxt/runtime/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
- /package/nuxt/runtime/composables/{use-wait.js → useWait.js} +0 -0
- /package/types/modules/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
- /package/types/modules/composables/{use-idle-timeout.d.ts → useIdleTimeout.d.ts} +0 -0
- /package/types/modules/composables/{use-instance-uniq-id.d.ts → useInstanceUniqId.d.ts} +0 -0
- /package/types/modules/composables/{use-reading-time.d.ts → useReadingTime.d.ts} +0 -0
- /package/types/modules/composables/{use-string-matching.d.ts → useStringMatching.d.ts} +0 -0
- /package/types/modules/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
- /package/types/modules/composables/{use-user-visibilty.d.ts → useUserVisibilty.d.ts} +0 -0
- /package/types/modules/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
|
@@ -175,8 +175,10 @@ function Y({
|
|
|
175
175
|
componentName: r,
|
|
176
176
|
providedId: a
|
|
177
177
|
}) {
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
return $(() => {
|
|
179
|
+
var t;
|
|
180
|
+
return a ?? `${r}-${(t = N()) == null ? void 0 : t.uid}`;
|
|
181
|
+
});
|
|
180
182
|
}
|
|
181
183
|
const Z = {
|
|
182
184
|
class: "m-accordion",
|
|
@@ -272,7 +274,7 @@ const Z = {
|
|
|
272
274
|
))
|
|
273
275
|
]));
|
|
274
276
|
}
|
|
275
|
-
}), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-
|
|
277
|
+
}), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-45a9432f"]]);
|
|
276
278
|
export {
|
|
277
279
|
ae as default
|
|
278
280
|
};
|
|
@@ -34,7 +34,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
34
34
|
onBackdropAnimationLeave: typeof onBackdropAnimationLeave;
|
|
35
35
|
onBackdropClicked: typeof onBackdropClicked;
|
|
36
36
|
close: typeof close;
|
|
37
|
-
present: import("vue").Ref<boolean>;
|
|
37
|
+
present: import("vue").Ref<boolean, boolean>;
|
|
38
38
|
toggleModal: typeof toggleModal;
|
|
39
39
|
onKeyPress: typeof onKeyPress;
|
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
package/components/MazBtn.d.ts
CHANGED
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
package/components/MazChart.d.ts
CHANGED
|
@@ -97,8 +97,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
};
|
|
98
98
|
}>>, {
|
|
99
99
|
options: Record<string, any>;
|
|
100
|
+
updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
|
|
100
101
|
plugins: unknown[];
|
|
101
102
|
datasetIdKey: string;
|
|
102
|
-
updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
|
|
103
103
|
}, {}>;
|
|
104
104
|
export default _default;
|
|
@@ -1,82 +1,62 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'vue';
|
|
2
2
|
import type { Color, Size } from './types';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface Props<T = boolean | (string | number)[]> {
|
|
4
|
+
/** Style attribut of the component root element */
|
|
5
5
|
style?: HTMLAttributes['style'];
|
|
6
|
+
/** Class attribut of the component root element */
|
|
6
7
|
class?: HTMLAttributes['class'];
|
|
7
|
-
|
|
8
|
+
/** The model value of the checkbox */
|
|
9
|
+
modelValue?: T;
|
|
10
|
+
/** The id of the checkbox */
|
|
8
11
|
id?: string;
|
|
12
|
+
/** The color of the checkbox */
|
|
9
13
|
color?: Color;
|
|
14
|
+
/** The value of the checkbox when selected */
|
|
10
15
|
value?: string | number | boolean;
|
|
16
|
+
/** The name of the checkbox */
|
|
11
17
|
name?: string;
|
|
18
|
+
/** The size of the checkbox */
|
|
12
19
|
size?: Size;
|
|
20
|
+
/** Text label */
|
|
13
21
|
label?: string;
|
|
22
|
+
/** If the checkbox is disabled */
|
|
14
23
|
disabled?: boolean;
|
|
24
|
+
/** Whether there is an error with the input. */
|
|
25
|
+
error?: boolean;
|
|
26
|
+
/** Whether the input is successful. */
|
|
27
|
+
success?: boolean;
|
|
28
|
+
/** Whether there is a warning with the input. */
|
|
29
|
+
warning?: boolean;
|
|
30
|
+
/** The hint text to display below the input. */
|
|
31
|
+
hint?: string;
|
|
15
32
|
}
|
|
16
|
-
|
|
17
|
-
|
|
33
|
+
export type { Color, Size } from './types';
|
|
34
|
+
declare const _default: <T extends boolean | (string | number)[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
35
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
36
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
37
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
38
|
+
onChange?: ((value: T) => any) | undefined;
|
|
39
|
+
"onUpdate:model-value"?: ((value: T) => any) | undefined;
|
|
40
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
41
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
42
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
43
|
+
onChange?: ((value: T) => any) | undefined;
|
|
44
|
+
"onUpdate:model-value"?: ((value: T) => any) | undefined;
|
|
45
|
+
}, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & Props<T>> & import("vue").PublicProps;
|
|
46
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: ReturnType<() => {
|
|
49
|
+
default?(_: {
|
|
50
|
+
value: string | number | boolean | undefined;
|
|
51
|
+
}): any;
|
|
52
|
+
}>;
|
|
53
|
+
emit: (((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: T) => void)) & {};
|
|
54
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}> & {
|
|
57
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
58
|
};
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
20
|
-
style: undefined;
|
|
21
|
-
class: undefined;
|
|
22
|
-
modelValue: undefined;
|
|
23
|
-
label: undefined;
|
|
24
|
-
id: undefined;
|
|
25
|
-
color: string;
|
|
26
|
-
value: undefined;
|
|
27
|
-
name: string;
|
|
28
|
-
size: string;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
change: (...args: any[]) => void;
|
|
32
|
-
"update:model-value": (...args: any[]) => void;
|
|
33
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
34
|
-
style: undefined;
|
|
35
|
-
class: undefined;
|
|
36
|
-
modelValue: undefined;
|
|
37
|
-
label: undefined;
|
|
38
|
-
id: undefined;
|
|
39
|
-
color: string;
|
|
40
|
-
value: undefined;
|
|
41
|
-
name: string;
|
|
42
|
-
size: string;
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
}>>> & {
|
|
45
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
size: Size;
|
|
49
|
-
label: string;
|
|
50
|
-
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
51
|
-
name: string;
|
|
52
|
-
id: string;
|
|
53
|
-
value: string | number | boolean;
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
color: Color;
|
|
56
|
-
class: HTMLAttributes["class"];
|
|
57
|
-
modelValue: boolean | (string | number)[];
|
|
58
|
-
}, {}>;
|
|
59
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
60
59
|
export default _default;
|
|
61
|
-
type __VLS_WithDefaults<P, D> = {
|
|
62
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
|
-
default: D[K];
|
|
64
|
-
}> : P[K];
|
|
65
|
-
};
|
|
66
60
|
type __VLS_Prettify<T> = {
|
|
67
61
|
[K in keyof T]: T[K];
|
|
68
62
|
} & {};
|
|
69
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
-
new (): {
|
|
71
|
-
$slots: S;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
75
|
-
type __VLS_TypePropsToOption<T> = {
|
|
76
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
77
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
78
|
-
} : {
|
|
79
|
-
type: import('vue').PropType<T[K]>;
|
|
80
|
-
required: true;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './assets/MazCheckbox.css';function
|
|
3
|
-
componentName:
|
|
4
|
-
providedId:
|
|
1
|
+
import { computed as n, getCurrentInstance as I, openBlock as f, createElementBlock as h, createElementVNode as c, defineComponent as S, useCssVars as N, ref as E, unref as i, normalizeClass as m, normalizeStyle as $, mergeProps as A, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as k, createCommentVNode as j } from "vue";
|
|
2
|
+
import './assets/MazCheckbox.css';function q({
|
|
3
|
+
componentName: r,
|
|
4
|
+
providedId: t
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return n(() => {
|
|
7
|
+
var o;
|
|
8
|
+
return t ?? `${r}-${(o = I()) == null ? void 0 : o.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
|
-
const
|
|
11
|
+
const F = {
|
|
10
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
13
|
width: "1em",
|
|
12
14
|
height: "1em",
|
|
13
15
|
fill: "none",
|
|
14
16
|
viewBox: "0 0 24 24"
|
|
15
|
-
},
|
|
17
|
+
}, H = /* @__PURE__ */ c(
|
|
16
18
|
"path",
|
|
17
19
|
{
|
|
18
20
|
stroke: "currentColor",
|
|
@@ -24,47 +26,46 @@ const D = {
|
|
|
24
26
|
null,
|
|
25
27
|
-1
|
|
26
28
|
/* HOISTED */
|
|
27
|
-
),
|
|
28
|
-
|
|
29
|
+
), K = [
|
|
30
|
+
H
|
|
29
31
|
];
|
|
30
|
-
function
|
|
31
|
-
return
|
|
32
|
+
function O(r, t) {
|
|
33
|
+
return f(), h("svg", F, [...K]);
|
|
32
34
|
}
|
|
33
|
-
const
|
|
35
|
+
const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "disabled", "name"], G = { class: "m-checkbox__text" }, J = /* @__PURE__ */ S({
|
|
34
36
|
inheritAttrs: !1,
|
|
35
37
|
__name: "MazCheckbox",
|
|
36
38
|
props: {
|
|
37
39
|
style: { default: void 0 },
|
|
38
40
|
class: { default: void 0 },
|
|
39
|
-
modelValue: {
|
|
41
|
+
modelValue: { default: void 0 },
|
|
40
42
|
id: { default: void 0 },
|
|
41
43
|
color: { default: "primary" },
|
|
42
44
|
value: { type: [String, Number, Boolean], default: void 0 },
|
|
43
45
|
name: { default: "m-checkbox" },
|
|
44
46
|
size: { default: "md" },
|
|
45
47
|
label: { default: void 0 },
|
|
46
|
-
disabled: { type: Boolean, default: !1 }
|
|
48
|
+
disabled: { type: Boolean, default: !1 },
|
|
49
|
+
error: { type: Boolean },
|
|
50
|
+
success: { type: Boolean },
|
|
51
|
+
warning: { type: Boolean },
|
|
52
|
+
hint: {}
|
|
47
53
|
},
|
|
48
|
-
emits: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
C((o) => ({
|
|
56
|
-
"30ad0e00": v.value,
|
|
57
|
-
"46bd1cbc": k.value,
|
|
58
|
-
"7c7c6907": y.value,
|
|
59
|
-
"47a52c6c": V.value
|
|
54
|
+
emits: ["update:model-value", "change", "blur", "focus"],
|
|
55
|
+
setup(r, { emit: t }) {
|
|
56
|
+
N((e) => ({
|
|
57
|
+
"637b9682": z.value,
|
|
58
|
+
"7a7f3c21": y.value,
|
|
59
|
+
"4af0fd68": w.value,
|
|
60
|
+
"27d552aa": V.value
|
|
60
61
|
}));
|
|
61
|
-
const
|
|
62
|
+
const o = r, l = t, s = q({
|
|
62
63
|
componentName: "MazCheckbox",
|
|
63
|
-
providedId:
|
|
64
|
-
}),
|
|
65
|
-
() => typeof
|
|
66
|
-
),
|
|
67
|
-
switch (
|
|
64
|
+
providedId: o.id
|
|
65
|
+
}), p = n(
|
|
66
|
+
() => typeof o.value != "boolean" && Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : typeof o.modelValue == "boolean" ? o.modelValue : !1
|
|
67
|
+
), y = n(() => {
|
|
68
|
+
switch (o.size) {
|
|
68
69
|
case "xl":
|
|
69
70
|
return "2.25rem";
|
|
70
71
|
case "lg":
|
|
@@ -78,8 +79,8 @@ const H = { render: q }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
|
|
|
78
79
|
default:
|
|
79
80
|
return "1.625rem";
|
|
80
81
|
}
|
|
81
|
-
}),
|
|
82
|
-
switch (
|
|
82
|
+
}), g = n(() => {
|
|
83
|
+
switch (o.size) {
|
|
83
84
|
case "xl":
|
|
84
85
|
return "maz-text-2xl";
|
|
85
86
|
case "lg":
|
|
@@ -93,61 +94,88 @@ const H = { render: q }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
|
|
|
93
94
|
default:
|
|
94
95
|
return "maz-text-lg";
|
|
95
96
|
}
|
|
96
|
-
}),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
function z(o) {
|
|
100
|
-
["Space"].includes(o.code) && (o.preventDefault(), m(e.value ?? !e.modelValue));
|
|
97
|
+
}), z = n(() => `var(--maz-color-${o.color}-contrast)`), w = n(() => `var(--maz-color-${o.color})`), V = n(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
|
|
98
|
+
function x(e) {
|
|
99
|
+
["Space"].includes(e.code) && (e.preventDefault(), b(o.value ?? !o.modelValue));
|
|
101
100
|
}
|
|
102
|
-
function
|
|
103
|
-
return typeof
|
|
101
|
+
function C(e) {
|
|
102
|
+
return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
|
|
104
103
|
}
|
|
105
|
-
function
|
|
106
|
-
const
|
|
107
|
-
|
|
104
|
+
function b(e) {
|
|
105
|
+
const a = C(e);
|
|
106
|
+
l("update:model-value", a), l("change", a);
|
|
108
107
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
const u = E();
|
|
109
|
+
function _(e) {
|
|
110
|
+
var a;
|
|
111
|
+
(a = u.value) == null || a.dispatchEvent(new Event("blur")), l("blur", e);
|
|
112
|
+
}
|
|
113
|
+
function B(e) {
|
|
114
|
+
var a;
|
|
115
|
+
(a = u.value) == null || a.dispatchEvent(new Event("focus")), l("focus", e);
|
|
116
|
+
}
|
|
117
|
+
return (e, a) => (f(), h("label", {
|
|
118
|
+
for: i(s),
|
|
119
|
+
class: m(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
112
120
|
tabindex: "0",
|
|
113
|
-
style:
|
|
121
|
+
style: $(e.style),
|
|
114
122
|
role: "checkbox",
|
|
115
|
-
"aria-checked":
|
|
116
|
-
onKeydown:
|
|
123
|
+
"aria-checked": p.value,
|
|
124
|
+
onKeydown: x,
|
|
125
|
+
onBlur: _,
|
|
126
|
+
onFocus: B
|
|
117
127
|
}, [
|
|
118
|
-
|
|
119
|
-
id:
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
c("input", A({
|
|
129
|
+
id: i(s),
|
|
130
|
+
ref_key: "inputRef",
|
|
131
|
+
ref: u,
|
|
132
|
+
checked: p.value
|
|
133
|
+
}, e.$attrs, {
|
|
122
134
|
tabindex: "-1",
|
|
123
|
-
disabled:
|
|
124
|
-
name:
|
|
135
|
+
disabled: e.disabled,
|
|
136
|
+
name: e.name,
|
|
125
137
|
type: "checkbox",
|
|
126
|
-
onChange:
|
|
127
|
-
var
|
|
128
|
-
return
|
|
138
|
+
onChange: a[0] || (a[0] = (d) => {
|
|
139
|
+
var v;
|
|
140
|
+
return b(e.value ?? ((v = d == null ? void 0 : d.target) == null ? void 0 : v.checked));
|
|
129
141
|
})
|
|
130
|
-
}), null, 16,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
class:
|
|
142
|
+
}), null, 16, U),
|
|
143
|
+
c("span", null, [
|
|
144
|
+
M(i(P), {
|
|
145
|
+
class: m(["check-icon", g.value])
|
|
134
146
|
}, null, 8, ["class"])
|
|
135
147
|
]),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
c("div", G, [
|
|
149
|
+
D(e.$slots, "default", { value: e.value }, () => [
|
|
150
|
+
R(
|
|
151
|
+
k(e.label),
|
|
152
|
+
1
|
|
153
|
+
/* TEXT */
|
|
154
|
+
)
|
|
155
|
+
], !0),
|
|
156
|
+
e.hint ? (f(), h(
|
|
157
|
+
"span",
|
|
158
|
+
{
|
|
159
|
+
key: 0,
|
|
160
|
+
class: m(["m-checkbox__hint", {
|
|
161
|
+
"--error": e.error,
|
|
162
|
+
"--success": e.success,
|
|
163
|
+
"--warning": e.warning
|
|
164
|
+
}])
|
|
165
|
+
},
|
|
166
|
+
k(e.hint),
|
|
167
|
+
3
|
|
168
|
+
/* TEXT, CLASS */
|
|
169
|
+
)) : j("v-if", !0)
|
|
170
|
+
])
|
|
171
|
+
], 46, T));
|
|
144
172
|
}
|
|
145
|
-
}),
|
|
146
|
-
const
|
|
147
|
-
for (const [
|
|
148
|
-
|
|
149
|
-
return
|
|
150
|
-
},
|
|
173
|
+
}), L = (r, t) => {
|
|
174
|
+
const o = r.__vccOpts || r;
|
|
175
|
+
for (const [l, s] of t)
|
|
176
|
+
o[l] = s;
|
|
177
|
+
return o;
|
|
178
|
+
}, W = /* @__PURE__ */ L(J, [["__scopeId", "data-v-a2b23999"]]);
|
|
151
179
|
export {
|
|
152
|
-
|
|
180
|
+
W as default
|
|
153
181
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as r, getCurrentInstance as S, defineComponent as _, useCssVars as $, useSlots as y, ref as b, watch as B, openBlock as p, createElementBlock as v, normalizeClass as P, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as m, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as k } from "vue";
|
|
2
2
|
import './assets/MazCircularProgressBar.css';function N({
|
|
3
3
|
componentName: a,
|
|
4
4
|
providedId: e
|
|
5
5
|
}) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return r(() => {
|
|
7
|
+
var s;
|
|
8
|
+
return e ?? `${a}-${(s = S()) == null ? void 0 : s.uid}`;
|
|
9
|
+
});
|
|
8
10
|
}
|
|
9
11
|
const V = { class: "maz-sr-only" }, D = {
|
|
10
12
|
key: 0,
|
|
@@ -44,20 +46,20 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
44
46
|
[
|
|
45
47
|
n("span", V, [
|
|
46
48
|
l(t.$slots, "prefix", {}, () => [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
i(
|
|
50
|
+
u(t.prefix),
|
|
49
51
|
1
|
|
50
52
|
/* TEXT */
|
|
51
53
|
)
|
|
52
54
|
], !0),
|
|
53
|
-
|
|
54
|
-
" " +
|
|
55
|
+
i(
|
|
56
|
+
" " + u(t.count) + " ",
|
|
55
57
|
1
|
|
56
58
|
/* TEXT */
|
|
57
59
|
),
|
|
58
60
|
l(t.$slots, "suffix", {}, () => [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
i(
|
|
62
|
+
u(t.suffix),
|
|
61
63
|
1
|
|
62
64
|
/* TEXT */
|
|
63
65
|
)
|
|
@@ -66,16 +68,16 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
66
68
|
f.value || d.value ? (p(), v("span", D, [
|
|
67
69
|
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
68
70
|
l(t.$slots, "prefix", {}, () => [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
i(
|
|
72
|
+
u(t.prefix),
|
|
71
73
|
1
|
|
72
74
|
/* TEXT */
|
|
73
75
|
)
|
|
74
76
|
], !0),
|
|
75
77
|
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
76
78
|
l(t.$slots, "suffix", {}, () => [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
i(
|
|
80
|
+
u(t.suffix),
|
|
79
81
|
1
|
|
80
82
|
/* TEXT */
|
|
81
83
|
)
|
|
@@ -112,8 +114,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
112
114
|
},
|
|
113
115
|
setup(a) {
|
|
114
116
|
$((o) => ({
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
+
"266a8742": C.value,
|
|
118
|
+
"1f7e595e": w.value
|
|
117
119
|
}));
|
|
118
120
|
const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = N({
|
|
119
121
|
componentName: "MazCircularProgressBar"
|
|
@@ -153,8 +155,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
153
155
|
fn: k(() => [
|
|
154
156
|
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
155
157
|
l(o.$slots, "prefix", {}, () => [
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
i(
|
|
159
|
+
u(o.prefix),
|
|
158
160
|
1
|
|
159
161
|
/* TEXT */
|
|
160
162
|
)
|
|
@@ -167,8 +169,8 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
167
169
|
fn: k(() => [
|
|
168
170
|
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
169
171
|
l(o.$slots, "suffix", {}, () => [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
i(
|
|
173
|
+
u(o.suffix),
|
|
172
174
|
1
|
|
173
175
|
/* TEXT */
|
|
174
176
|
)
|
|
@@ -215,7 +217,7 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
215
217
|
/* STYLE */
|
|
216
218
|
));
|
|
217
219
|
}
|
|
218
|
-
}), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-
|
|
220
|
+
}), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-5505af81"]]);
|
|
219
221
|
export {
|
|
220
222
|
K as default
|
|
221
223
|
};
|
package/components/MazDialog.mjs
CHANGED