maz-ui 4.0.0-beta.3 → 4.0.0-beta.31
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/README.md +1 -1
- package/dist/assets/MazAccordion.DUQCf8vy.css +1 -0
- package/dist/assets/{MazAnimatedCounter.CTG-PC5W.css → MazAnimatedCounter.DkZNPRLp.css} +1 -1
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +1 -0
- package/dist/assets/MazBackdrop.BnhcmjbP.css +1 -0
- package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
- package/dist/assets/MazBtn.BYOKMl_2.css +1 -0
- package/dist/assets/MazCard.D0ksni8A.css +1 -0
- package/dist/assets/{MazCardSpotlight.Dy-wuLQq.css → MazCardSpotlight.IbPp_y0j.css} +1 -1
- package/dist/assets/MazCarousel.D4zTkRsG.css +1 -0
- package/dist/assets/MazCheckbox.aH1IKnrR.css +1 -0
- package/dist/assets/MazChecklist.BzF5KtZ3.css +1 -0
- package/dist/assets/MazDatePicker.BUVI9tfN.css +1 -0
- package/dist/assets/MazDropzone.C2SunLAI.css +1 -0
- package/dist/assets/MazInput.BPhjbYZG.css +1 -0
- package/dist/assets/MazInputCode.FA2z4HQd.css +1 -0
- package/dist/assets/MazInputPhoneNumber.DQKElfIM.css +1 -0
- package/dist/assets/MazInputTags.KNTpDHof.css +1 -0
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +1 -0
- package/dist/assets/MazLink.CFscNMFr.css +1 -0
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.BRoEh_ad.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.CI9Vw1sJ.css} +1 -1
- package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
- package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.C4W93yMD.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.D9lfVzYo.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Dl30Dwor.css → MazPickerYearSwitcher.CFiH13QC.css} +1 -1
- package/dist/assets/MazPopover.B3kR2Gsa.css +1 -0
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +1 -0
- package/dist/assets/MazRadio.aTHM-mpx.css +1 -0
- package/dist/assets/MazRadioButtons.DN_rAzT9.css +1 -0
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +1 -0
- package/dist/assets/MazSelect.DuRAHZGW.css +1 -0
- package/dist/assets/{MazSelectCountry.D2Qudf0K.css → MazSelectCountry.EW8fKXFX.css} +1 -1
- package/dist/assets/{MazSlider.D5SgmZLH.css → MazSlider.y4qpnD0N.css} +1 -1
- package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
- package/dist/assets/MazStepper.BD2gDGAX.css +1 -0
- package/dist/assets/MazSwitch.Bxmh2iFj.css +1 -0
- package/dist/assets/{MazTable.B1tkeUfE.css → MazTable.DMlQdImb.css} +1 -1
- package/dist/assets/MazTableRow.DgBXpK9J.css +1 -0
- package/dist/assets/{MazTabsBar.B9N_jdqU.css → MazTabsBar.gcS2Fc-B.css} +1 -1
- package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
- package/dist/assets/MazTextarea.li9dWBax.css +1 -0
- package/dist/assets/{PhoneInput.CyWO76iq.css → PhoneInput.DCWA_-gC.css} +1 -1
- package/dist/assets/{fullscreen-img.pvt6196l.css → fullscreen-img.Bkuz1GOX.css} +1 -1
- package/dist/assets/{toast.kunueRvo.css → toast.DH9mbkvs.css} +1 -1
- package/dist/chunks/{MazDatePicker.CT5yJhSN.js → MazDatePicker.bKFpslPf.js} +54 -44
- package/dist/chunks/{MazDialogPromise.vue_vue_type_script_setup_true_lang.BQvDEofz.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js} +78 -18
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.abk1IbMX.js → MazDropdown.vue_vue_type_style_index_0_lang.X8ygqBUZ.js} +22 -27
- package/dist/chunks/{MazInputPhoneNumber.Uwhn1Q9j.js → MazInputPhoneNumber.BVHi0OiN.js} +28 -18
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.GMKzSu7R.js → MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js} +31 -1
- package/dist/chunks/{MazPickerCalendar.RS6ZMdDK.js → MazPickerCalendar.lLfvUtrb.js} +8 -8
- package/dist/chunks/{MazPickerCalendarMonth.hQBSVkc9.js → MazPickerCalendarMonth.Djzgo1tF.js} +9 -9
- package/dist/chunks/{MazPickerCalendarSwitcher.Cp2ux3E4.js → MazPickerCalendarSwitcher.Bf24kKw6.js} +3 -3
- package/dist/chunks/{MazPickerContainer.DnfB3Dqg.js → MazPickerContainer.7hYHiOaa.js} +4 -6
- package/dist/chunks/{MazPickerHeader.Dlz2yJ1D.js → MazPickerHeader.B00RAQPS.js} +3 -3
- package/dist/chunks/{MazPickerMonthSwitcher.BpfCGGxQ.js → MazPickerMonthSwitcher.B2ZgNJWy.js} +5 -6
- package/dist/chunks/{MazPickerTime.EuWWNfid.js → MazPickerTime.Bd4khA2e.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.D4aO09D3.js → MazPickerYearSwitcher.BIy9xGIw.js} +8 -27
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.DnCjlD6D.js → MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js} +2 -2
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.bm7ng8fK.js → MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js} +3 -3
- package/dist/chunks/{PhoneInput.CPjyZ8Sq.js → PhoneInput.D9vRIgS6.js} +21 -27
- package/dist/chunks/{utils.BBuYjMbK.js → dom-events.Bbe7wDQl.js} +221 -115
- package/dist/chunks/{en.BzBlrE0C.js → en.Q_4-KljL.js} +12 -0
- package/dist/chunks/{fullscreen-img.directive.CyOHexcO.js → fullscreen-img.directive.Be383en8.js} +2 -2
- package/dist/chunks/{lazy-img.directive.D5zCo3Zi.js → lazy-img.directive.BLFnGqQa.js} +1 -1
- package/dist/chunks/pascalCase.GdDKKQ-O.js +19 -0
- package/dist/chunks/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/useStringMatching.BBezu-6J.js +134 -0
- package/dist/chunks/{useTranslations.BXuww4ux.js → useTranslations.D5aoYwD7.js} +1 -1
- package/dist/chunks/vClickOutside.DIOiluy0.js +107 -0
- package/dist/components/MazAccordion.js +2 -2
- package/dist/components/MazAnimatedCounter.js +3 -3
- package/dist/components/MazAnimatedText.js +2 -2
- package/dist/components/MazBackdrop.js +3 -3
- package/dist/components/MazBadge.js +5 -4
- package/dist/components/MazBtn.js +9 -7
- package/dist/components/MazCard.js +2 -2
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +12 -9
- package/dist/components/MazCheckbox.js +10 -12
- package/dist/components/MazChecklist.js +4 -5
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDialogConfirm.js +6 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropzone.js +5 -5
- package/dist/components/MazGallery.js +2 -2
- package/dist/components/MazInput.js +21 -16
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputTags.js +2 -2
- package/dist/components/MazLazyImg.js +9 -9
- package/dist/components/MazLink.js +9 -5
- package/dist/components/MazPagination.js +1 -1
- package/dist/components/MazPopover.js +124 -162
- package/dist/components/MazPullToRefresh.js +8 -3
- package/dist/components/MazRadio.js +8 -16
- package/dist/components/MazRadioButtons.js +8 -7
- package/dist/components/MazReadingProgressBar.js +10 -3
- package/dist/components/MazSelect.js +31 -18
- package/dist/components/MazSelectCountry.js +18 -11
- package/dist/components/MazSlider.js +2 -2
- package/dist/components/MazSpinner.js +3 -4
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +3 -3
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTabsBar.js +6 -6
- package/dist/components/MazTabsContentItem.js +6 -7
- package/dist/components/MazTextarea.js +24 -3
- package/dist/components/index.js +8 -8
- package/dist/composables/index.js +4 -2
- package/dist/composables/useAos.js +1 -1
- package/dist/composables/useDialog.js +1 -1
- package/dist/composables/useDisplayNames.js +17 -13
- package/dist/composables/useDropzone.js +7 -7
- package/dist/composables/useFormField.js +15 -19
- package/dist/composables/useFormValidator.js +58 -29
- package/dist/composables/useIdleTimeout.js +108 -1
- package/dist/composables/useInjectStrict.js +2 -2
- package/dist/composables/useInstanceUniqId.js +3 -2
- package/dist/composables/useStringMatching.js +3 -40
- package/dist/composables/useSwipe.js +77 -1
- package/dist/composables/useToast.js +1 -1
- package/dist/composables/useUserVisibility.js +47 -1
- package/dist/composables/useWait.js +1 -1
- package/dist/composables/useWindowSize.js +1 -1
- package/dist/css/main.css +1 -1
- package/dist/directives/index.js +7 -7
- package/dist/directives/vClickOutside.js +4 -102
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg.js +2 -2
- package/dist/directives/vTooltip.js +97 -62
- package/dist/index.js +1 -114
- package/dist/plugins/dialog.js +3 -3
- package/dist/plugins/maz-ui.js +235 -195
- package/dist/plugins/toast.js +13 -14
- package/dist/resolvers/MazComponentsResolver.js +1 -1
- package/dist/resolvers/MazDirectivesResolver.js +1 -1
- package/dist/resolvers/MazModulesResolver.js +6 -2
- package/dist/tailwindcss/tailwind.config.js +5 -2
- package/dist/tailwindcss/variables/design-tokens.js +3 -0
- package/dist/types/components/MazAccordion.vue.d.ts +15 -2
- package/dist/types/components/MazBtn.vue.d.ts +1 -0
- package/dist/types/components/MazCard.vue.d.ts +1 -1
- package/dist/types/components/MazCarousel.vue.d.ts +4 -1
- package/dist/types/components/MazCheckbox.vue.d.ts +0 -6
- package/dist/types/components/MazChecklist.vue.d.ts +1 -1
- package/dist/types/components/MazDatePicker/utils.d.ts +5 -4
- package/dist/types/components/MazDatePicker.vue.d.ts +39 -51
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/types/components/{MazDialogPromise.vue.d.ts → MazDialogConfirm.vue.d.ts} +43 -10
- package/dist/types/components/MazDropdown.vue.d.ts +12 -12
- package/dist/types/components/MazInput.vue.d.ts +7 -0
- package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +3 -3
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +8 -2
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +45 -23
- package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
- package/dist/types/components/MazInputTags.vue.d.ts +1 -1
- package/dist/types/components/MazLazyImg.vue.d.ts +8 -8
- package/dist/types/components/MazLink.vue.d.ts +11 -0
- package/dist/types/components/MazPopover.vue.d.ts +26 -20
- package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +11 -4
- package/dist/types/components/MazSelectCountry.vue.d.ts +15 -6
- package/dist/types/components/MazStepper.vue.d.ts +13 -2
- package/dist/types/components/MazTable.vue.d.ts +63 -2
- package/dist/types/components/index.d.ts +4 -4
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/composables/index.d.ts +2 -1
- package/dist/types/composables/useDisplayNames.d.ts +3 -8
- package/dist/types/composables/useDropzone.d.ts +3 -3
- package/dist/types/composables/useFormField.d.ts +16 -56
- package/dist/types/composables/useFormValidator/config.d.ts +2 -2
- package/dist/types/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/types/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/types/composables/useFormValidator/types.d.ts +20 -32
- package/dist/types/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/types/composables/useFormValidator.d.ts +16 -10
- package/dist/types/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useInjectStrict.d.ts +1 -1
- package/dist/types/composables/useSwipe.d.ts +1 -1
- package/dist/types/composables/useUserVisibility.d.ts +1 -1
- package/dist/types/directives/vClickOutside.d.ts +11 -18
- package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
- package/dist/types/directives/vFullscreenImg/fullscreen-img.directive.d.ts +3 -5
- package/dist/types/directives/vFullscreenImg.d.ts +9 -4
- package/dist/types/directives/vLazyImg/lazy-img.directive.d.ts +3 -5
- package/dist/types/directives/vLazyImg.d.ts +11 -6
- package/dist/types/directives/vTooltip.d.ts +14 -14
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +2 -0
- package/dist/types/directives/vZoomImg.d.ts +9 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/aos.d.ts +30 -4
- package/dist/types/plugins/dialog/DialogHandler.d.ts +2 -2
- package/dist/types/plugins/dialog.d.ts +2 -4
- package/dist/types/plugins/maz-ui.d.ts +2 -63
- package/dist/types/plugins/toast.d.ts +2 -4
- package/dist/types/plugins/wait.d.ts +2 -3
- package/dist/types/tailwindcss/tailwind.config.d.ts +5 -0
- package/dist/types/tailwindcss/variables/design-tokens.d.ts +3 -0
- package/package.json +38 -37
- package/dist/assets/MazAccordion.esK3rR4p.css +0 -1
- package/dist/assets/MazAnimatedText.BrOwWuqf.css +0 -1
- package/dist/assets/MazBackdrop.DNpnLh63.css +0 -1
- package/dist/assets/MazBtn.BnRxVlqS.css +0 -1
- package/dist/assets/MazCard.C6nDaeIC.css +0 -1
- package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
- package/dist/assets/MazCheckbox.C_qIngLy.css +0 -1
- package/dist/assets/MazChecklist.CWK_Gl-t.css +0 -1
- package/dist/assets/MazDatePicker.V5JwKPrQ.css +0 -1
- package/dist/assets/MazDropzone.DafxQwbq.css +0 -1
- package/dist/assets/MazInput.DW2KOJHY.css +0 -1
- package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
- package/dist/assets/MazInputPhoneNumber.vpA2mrZn.css +0 -1
- package/dist/assets/MazInputTags.B_s9J3sw.css +0 -1
- package/dist/assets/MazLazyImg.BNaVtpfX.css +0 -1
- package/dist/assets/MazLink.CCfbrUs0.css +0 -1
- package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.zkrPVHDv.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.168v7Hs1.css +0 -1
- package/dist/assets/MazPopover.Bth9NWia.css +0 -1
- package/dist/assets/MazPullToRefresh.DABqbGtK.css +0 -1
- package/dist/assets/MazRadio.DKMFWwy_.css +0 -1
- package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
- package/dist/assets/MazReadingProgressBar.n1Is8_Y3.css +0 -1
- package/dist/assets/MazSelect.DZZpDg8z.css +0 -1
- package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
- package/dist/assets/MazStepper.DYMde9uq.css +0 -1
- package/dist/assets/MazSwitch.Z1ZMm7tx.css +0 -1
- package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
- package/dist/assets/MazTextarea.Dz11mUeK.css +0 -1
- package/dist/chunks/TextareaAutogrow.C22LQx0k.js +0 -25
- package/dist/chunks/debounceCallback.B69vn57Q.js +0 -7
- package/dist/chunks/formatCurrency.C8NzW9Ii.js +0 -34
- package/dist/chunks/formatDate.DZ_OzdnV.js +0 -21
- package/dist/chunks/getCountryFlagUrl.dQjriBXx.js +0 -9
- package/dist/chunks/idleTimeout.-ICpdeGV.js +0 -111
- package/dist/chunks/isServer.BokzeB-Q.js +0 -6
- package/dist/chunks/isStandaloneMode.BpUpOTbA.js +0 -10
- package/dist/chunks/normalizeString.CFe2M8S_.js +0 -69
- package/dist/chunks/pascalCase.D_nuQ66I.js +0 -11
- package/dist/chunks/swipeHandler.8emelhOL.js +0 -80
- package/dist/chunks/throttle.DN8ARw0a.js +0 -11
- package/dist/chunks/throttleId.7PhWZjcS.js +0 -62
- package/dist/chunks/userVisibility.BbQSJASv.js +0 -50
- package/dist/chunks/x-mark.CTalOvvY.js +0 -23
- package/dist/components/MazDialogPromise.js +0 -6
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -54
- package/dist/types/components/MazInputPhoneNumber/types.d.ts +0 -22
- package/dist/types/composables/useFormValidator/utils.d.ts +0 -116
- package/dist/chunks/{pristine.ylgbwjxO.js → pristine.CxBZzgUG.js} +4 -4
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DeepPartial } from '@maz-ui/utils/src/ts-helpers/DeepPartial.js';
|
|
2
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
3
|
+
import { BaseFormPayload, ExtractModelKey, FieldsStates, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator } from './useFormValidator/types';
|
|
4
|
+
import { scrollToError } from './useFormValidator/dom-events';
|
|
5
|
+
export declare function useFormValidator<TSchema extends MaybeRefOrGetter<FormSchema<BaseFormPayload>>>({ schema, defaultValues, model, options }: {
|
|
6
|
+
schema: TSchema;
|
|
7
|
+
defaultValues?: MaybeRefOrGetter<DeepPartial<InferSchemaFormValidator<TSchema>> | undefined | null>;
|
|
8
|
+
model?: Ref<DeepPartial<InferSchemaFormValidator<TSchema>> | undefined | null>;
|
|
9
|
+
options?: FormValidatorOptions<InferSchemaFormValidator<TSchema>>;
|
|
10
|
+
}): {
|
|
5
11
|
identifier: string | symbol;
|
|
6
12
|
isDirty: import('vue').ComputedRef<boolean>;
|
|
7
13
|
isSubmitting: Ref<boolean, boolean>;
|
|
8
14
|
isSubmitted: Ref<boolean, boolean>;
|
|
9
15
|
isValid: import('vue').ComputedRef<boolean>;
|
|
10
|
-
errors: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<
|
|
11
|
-
model: Ref<
|
|
12
|
-
fieldsStates: Ref<FieldsStates<
|
|
13
|
-
validateForm: (
|
|
16
|
+
errors: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>, import('./useFormValidator/types').ValidationIssues>>;
|
|
17
|
+
model: Ref<InferSchemaFormValidator<TSchema>, InferSchemaFormValidator<TSchema>>;
|
|
18
|
+
fieldsStates: Ref<FieldsStates<InferSchemaFormValidator<TSchema>, ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>>, FieldsStates<InferSchemaFormValidator<TSchema>, ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>>>;
|
|
19
|
+
validateForm: (setErrors?: boolean) => Promise<void[]>;
|
|
14
20
|
scrollToError: typeof scrollToError;
|
|
15
|
-
handleSubmit: <Func extends (model:
|
|
16
|
-
errorMessages: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<
|
|
21
|
+
handleSubmit: <Func extends (model: InferOutputSchemaFormValidator<TSchema>) => Promise<Awaited<ReturnType<Func>>> | ReturnType<Func>>(successCallback: Func, enableScrollOrSelector?: FormValidatorOptions["scrollToError"]) => (event?: Event) => Promise<ReturnType<Func> | undefined>;
|
|
22
|
+
errorMessages: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>, string | undefined>>;
|
|
17
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IdleTimeoutCallback, IdleTimeoutOptions, IdleTimeout } from '@maz-ui/utils/src/
|
|
1
|
+
import { IdleTimeoutCallback, IdleTimeoutOptions, IdleTimeout } from '@maz-ui/utils/src/helpers/idleTimeout.js';
|
|
2
2
|
export declare function useIdleTimeout({ callback, options, }: {
|
|
3
3
|
callback: IdleTimeoutCallback;
|
|
4
4
|
options?: IdleTimeoutOptions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
export declare function useInjectStrict<T>(key: string | InjectionKey<T> | symbol, fallback?: T): NonNullable<T>;
|
|
2
|
+
export declare function useInjectStrict<T>(key: string | InjectionKey<T> | symbol, fallback?: T, errorMessage?: string): NonNullable<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwipeOptions } from '@maz-ui/utils/src/
|
|
1
|
+
import { SwipeOptions } from '@maz-ui/utils/src/helpers/swipeHandler.js';
|
|
2
2
|
import { MaybeRef } from 'vue';
|
|
3
3
|
export declare function useSwipe(options: Omit<SwipeOptions, 'onValuesChanged' | 'element'> & {
|
|
4
4
|
element: MaybeRef<HTMLElement> | string | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserVisibilyCallback, UserVisibilyOptions, UserVisibility } from '@maz-ui/utils/src/helpers/userVisibility.js';
|
|
2
2
|
export declare function useUserVisibility({ callback, options, }: {
|
|
3
3
|
callback: UserVisibilyCallback;
|
|
4
4
|
options?: UserVisibilyOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObjectDirective, Plugin } from 'vue';
|
|
2
2
|
interface VClickOutsideOptions {
|
|
3
3
|
/**
|
|
4
4
|
* The callback function to be called when the element is clicked outside.
|
|
@@ -24,20 +24,13 @@ interface VClickOutsideOptions {
|
|
|
24
24
|
/**
|
|
25
25
|
* The value of the v-click-outside directive.
|
|
26
26
|
*/
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
type
|
|
32
|
-
declare
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
updated: typeof onUpdated;
|
|
38
|
-
unmounted: typeof onUnmounted;
|
|
39
|
-
};
|
|
40
|
-
declare const plugin: {
|
|
41
|
-
install: (app: import('vue').App<any>) => void;
|
|
42
|
-
};
|
|
43
|
-
export { directive as vClickOutside, type vClickOutsideBindingValue, plugin as vClickOutsideInstall, type VClickOutsideOptions, };
|
|
27
|
+
type VClickOutsideBindingValue = ((...args: any[]) => any) | VClickOutsideOptions;
|
|
28
|
+
export type VClickOutsideDirective = ObjectDirective<HTMLElement, VClickOutsideBindingValue>;
|
|
29
|
+
declare const directive: VClickOutsideDirective;
|
|
30
|
+
declare const plugin: Plugin;
|
|
31
|
+
export { directive as vClickOutside, type VClickOutsideBindingValue, plugin as vClickOutsideInstall, type VClickOutsideOptions, };
|
|
32
|
+
declare module 'vue' {
|
|
33
|
+
interface GlobalDirectives {
|
|
34
|
+
vClickOutside: VClickOutsideDirective;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -29,13 +29,12 @@ declare const _default: import('vue').DefineComponent<MazFullscreenImgProps, {},
|
|
|
29
29
|
onPrevious?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
destroy: () => void;
|
|
32
|
+
offset: number;
|
|
32
33
|
animation: {
|
|
33
34
|
duration?: number;
|
|
34
35
|
easing?: string;
|
|
35
36
|
};
|
|
36
37
|
alt: string | null;
|
|
37
|
-
offset: number;
|
|
38
|
-
zoom: boolean;
|
|
39
38
|
clickedElementBounds: {
|
|
40
39
|
top: number;
|
|
41
40
|
left: number;
|
|
@@ -43,6 +42,7 @@ declare const _default: import('vue').DefineComponent<MazFullscreenImgProps, {},
|
|
|
43
42
|
width: number;
|
|
44
43
|
};
|
|
45
44
|
openInstanceClass: string;
|
|
45
|
+
zoom: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
47
47
|
FullscreenImgElement: HTMLDivElement;
|
|
48
48
|
ImgElement: HTMLImageElement;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
1
2
|
import { VFullscreenImgBindingValue } from './fullscreen-img.handler';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
updated(el: HTMLElement, binding: import('vue').DirectiveBinding<VFullscreenImgBindingValue, string, string>): void;
|
|
5
|
-
unmounted(el: HTMLElement): void;
|
|
6
|
-
};
|
|
3
|
+
export type VFullscreenImgDirective = ObjectDirective<HTMLElement, VFullscreenImgBindingValue>;
|
|
4
|
+
declare const directive: VFullscreenImgDirective;
|
|
7
5
|
export { directive as vFullscreenImg };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VFullscreenImgDirective } from './vFullscreenImg/fullscreen-img.directive';
|
|
3
|
+
declare const plugin: Plugin;
|
|
4
4
|
export { plugin as vFullscreenImgInstall };
|
|
5
|
-
export { vFullscreenImg } from './vFullscreenImg/fullscreen-img.directive';
|
|
5
|
+
export { vFullscreenImg, type VFullscreenImgDirective } from './vFullscreenImg/fullscreen-img.directive';
|
|
6
6
|
export type { VFullscreenImgBindingValue, VFullscreenImgOptions } from './vFullscreenImg/fullscreen-img.handler';
|
|
7
|
+
declare module 'vue' {
|
|
8
|
+
interface GlobalDirectives {
|
|
9
|
+
vFullscreenImg: VFullscreenImgDirective;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
1
2
|
import { VLazyImgBindingValue } from './lazy-img.handler';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
updated(el: HTMLElement, binding: import('vue').DirectiveBinding<VLazyImgBindingValue, string, string>): void;
|
|
5
|
-
unmounted(el: HTMLElement, binding: import('vue').DirectiveBinding<VLazyImgBindingValue, string, string>): void;
|
|
6
|
-
};
|
|
3
|
+
export type VLazyImgDirective = ObjectDirective<HTMLElement, VLazyImgBindingValue>;
|
|
4
|
+
declare const directive: VLazyImgDirective;
|
|
7
5
|
export { directive as vLazyImg };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { vLazyImg } from './vLazyImg/lazy-img.directive';
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VLazyImgDirective } from './vLazyImg/lazy-img.directive';
|
|
3
|
+
import { VLazyImgOptions } from './vLazyImg/types';
|
|
4
|
+
declare const plugin: Plugin<[VLazyImgOptions?]>;
|
|
5
|
+
export { vLazyImg, type VLazyImgDirective } from './vLazyImg/lazy-img.directive';
|
|
6
6
|
export { plugin as vLazyImgInstall };
|
|
7
|
-
export type { VLazyImgBindingValue, VLazyImgOptions };
|
|
7
|
+
export type { VLazyImgBindingValue, VLazyImgOptions } from './vLazyImg/types';
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalDirectives {
|
|
10
|
+
vLazyImg: VLazyImgDirective;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
import {
|
|
1
|
+
import { DirectiveBinding, ObjectDirective, Plugin } from 'vue';
|
|
2
|
+
import { MazPopoverPosition, MazPopoverProps, MazPopoverTrigger } from '../components/MazPopover.vue';
|
|
3
3
|
interface VTooltipOptions extends Partial<Omit<MazPopoverProps, 'modelValue'>> {
|
|
4
4
|
/**
|
|
5
5
|
* Text to display in the tooltip
|
|
@@ -11,20 +11,20 @@ interface VTooltipOptions extends Partial<Omit<MazPopoverProps, 'modelValue'>> {
|
|
|
11
11
|
html?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Color variant of the tooltip
|
|
14
|
-
* @default
|
|
14
|
+
* @default contrast
|
|
15
15
|
*/
|
|
16
16
|
color?: MazPopoverProps['color'];
|
|
17
17
|
/**
|
|
18
18
|
* Position of the tooltip
|
|
19
19
|
* The preferred position is set to 'top' if no position is provided
|
|
20
|
-
* @default
|
|
20
|
+
* @default top
|
|
21
21
|
*/
|
|
22
|
-
position?:
|
|
22
|
+
position?: MazPopoverPosition;
|
|
23
23
|
/**
|
|
24
24
|
* Trigger of the tooltip
|
|
25
25
|
* @default hover
|
|
26
26
|
*/
|
|
27
|
-
trigger?:
|
|
27
|
+
trigger?: MazPopoverTrigger;
|
|
28
28
|
/**
|
|
29
29
|
* Close on click outside
|
|
30
30
|
* @default false
|
|
@@ -43,12 +43,12 @@ interface VTooltipOptions extends Partial<Omit<MazPopoverProps, 'modelValue'>> {
|
|
|
43
43
|
}
|
|
44
44
|
type VTooltipBindingValue = string | VTooltipOptions;
|
|
45
45
|
export type TooltipBinding = DirectiveBinding<VTooltipBindingValue, NonNullable<MazPopoverProps['position']>>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
unmounted(el: HTMLElement): void;
|
|
50
|
-
};
|
|
51
|
-
declare const plugin: {
|
|
52
|
-
install: (app: import('vue').App<any>, options?: Partial<VTooltipOptions>) => void;
|
|
53
|
-
};
|
|
46
|
+
export type VTooltipDirective = ObjectDirective<HTMLElement, VTooltipBindingValue, NonNullable<MazPopoverProps['position']>>;
|
|
47
|
+
declare const directive: VTooltipDirective;
|
|
48
|
+
declare const plugin: Plugin<[Partial<VTooltipOptions>?]>;
|
|
54
49
|
export { directive as vTooltip, type VTooltipBindingValue, plugin as vTooltipInstall, type VTooltipOptions, };
|
|
50
|
+
declare module 'vue' {
|
|
51
|
+
interface GlobalDirectives {
|
|
52
|
+
vTooltip: VTooltipDirective;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
1
2
|
import { VZoomImgBindingValue } from './zoom-img.handler';
|
|
3
|
+
export type VZoomImgDirective = ObjectDirective<HTMLElement, VZoomImgBindingValue>;
|
|
2
4
|
export declare const vZoomImg: {
|
|
3
5
|
created(el: HTMLElement, binding: import('vue').DirectiveBinding<VZoomImgBindingValue, string, string>): void;
|
|
4
6
|
updated(_el: HTMLElement, binding: import('vue').DirectiveBinding<VZoomImgBindingValue, string, string>): void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export { vZoomImg, plugin as vZoomImgInstall };
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VZoomImgDirective, vZoomImg } from './vZoomImg/zoom-img.directive';
|
|
3
|
+
declare const plugin: Plugin;
|
|
4
|
+
export { vZoomImg, type VZoomImgDirective, plugin as vZoomImgInstall };
|
|
6
5
|
export type { VZoomImgBindingValue } from './vZoomImg/zoom-img.handler';
|
|
6
|
+
declare module 'vue' {
|
|
7
|
+
interface GlobalDirectives {
|
|
8
|
+
vZoomImg: VZoomImgDirective;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@maz-ui/utils
|
|
1
|
+
export * from '@maz-ui/utils';
|
|
@@ -1,13 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
2
|
import { Router } from 'vue-router';
|
|
3
3
|
export interface AosOptions {
|
|
4
4
|
animation?: {
|
|
5
|
+
/**
|
|
6
|
+
* The delay of the animation
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
5
9
|
delay?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The duration of the animation
|
|
12
|
+
* @default 300
|
|
13
|
+
*/
|
|
6
14
|
duration?: number;
|
|
15
|
+
/**
|
|
16
|
+
* If true, the animation will be triggered only once
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
7
19
|
once?: boolean;
|
|
8
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* The delay before the animation starts
|
|
23
|
+
* @default 100
|
|
24
|
+
*/
|
|
9
25
|
delay?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The observer options
|
|
28
|
+
* @default {
|
|
29
|
+
* root: undefined,
|
|
30
|
+
* rootMargin: '0px',
|
|
31
|
+
* threshold: 0.2,
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
10
34
|
observer?: IntersectionObserverInit;
|
|
35
|
+
/**
|
|
36
|
+
* The router instance to trigger the animation on route change
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
11
39
|
router?: Router;
|
|
12
40
|
}
|
|
13
41
|
interface ClassOptions extends Omit<AosOptions, 'router'> {
|
|
@@ -29,9 +57,7 @@ export declare class AosHandler {
|
|
|
29
57
|
private handleObserver;
|
|
30
58
|
runAnimations(): Promise<void> | undefined;
|
|
31
59
|
}
|
|
32
|
-
export declare const AosPlugin:
|
|
33
|
-
install: (app: App, options?: AosOptions) => void;
|
|
34
|
-
};
|
|
60
|
+
export declare const AosPlugin: Plugin<[AosOptions?]>;
|
|
35
61
|
declare module '@vue/runtime-core' {
|
|
36
62
|
interface ComponentCustomProperties {
|
|
37
63
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
export type DialogOptions = Partial<Omit<
|
|
2
|
+
import { MazDialogConfirmProps } from '../../components/MazDialogConfirm.vue';
|
|
3
|
+
export type DialogOptions = Partial<Omit<MazDialogConfirmProps, 'modelValue' | 'variant' | 'justify'>> & {
|
|
4
4
|
onClose?: () => unknown;
|
|
5
5
|
onAccept?: (response: unknown) => unknown;
|
|
6
6
|
onReject?: (response: unknown) => unknown;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
2
|
import { DialogOptions, DialogHandler } from './dialog/DialogHandler';
|
|
3
|
-
export declare const DialogPlugin:
|
|
4
|
-
install(app: App, options?: DialogOptions): void;
|
|
5
|
-
};
|
|
3
|
+
export declare const DialogPlugin: Plugin<[DialogOptions?]>;
|
|
6
4
|
declare module '@vue/runtime-core' {
|
|
7
5
|
interface ComponentCustomProperties {
|
|
8
6
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { VLazyImgOptions, VTooltipOptions } from '../directives';
|
|
2
|
-
import { AosOptions, DialogOptions, ToastOptions } from './index';
|
|
3
1
|
import { MazUiThemeOptions } from '@maz-ui/themes/src/plugin.js';
|
|
4
2
|
import { MazTranslationsOptions } from '@maz-ui/translations/src/index.js';
|
|
3
|
+
import { Plugin } from 'vue';
|
|
5
4
|
export interface MazUiOptions {
|
|
6
5
|
/**
|
|
7
6
|
* The theme configurations
|
|
@@ -13,51 +12,6 @@ export interface MazUiOptions {
|
|
|
13
12
|
* Can not be disabled
|
|
14
13
|
*/
|
|
15
14
|
translations?: MazTranslationsOptions;
|
|
16
|
-
plugins?: {
|
|
17
|
-
/**
|
|
18
|
-
* If true or options are provided, the dialog plugin will be installed
|
|
19
|
-
* The dialog plugin configurations are available in the [dialog plugin documentation](./dialog.md)
|
|
20
|
-
*/
|
|
21
|
-
dialog?: boolean | DialogOptions;
|
|
22
|
-
/**
|
|
23
|
-
* If true or options are provided, the toast plugin will be installed
|
|
24
|
-
* The toast plugin configurations
|
|
25
|
-
*/
|
|
26
|
-
toast?: boolean | ToastOptions;
|
|
27
|
-
/**
|
|
28
|
-
* If true, the wait plugin will be installed
|
|
29
|
-
* No global options are available for this plugin
|
|
30
|
-
*/
|
|
31
|
-
wait?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* If true or options are provided, the aos plugin will be installed
|
|
34
|
-
* The aos plugin configurations
|
|
35
|
-
*/
|
|
36
|
-
aos?: boolean | AosOptions;
|
|
37
|
-
};
|
|
38
|
-
directives?: {
|
|
39
|
-
/**
|
|
40
|
-
* If true, the tooltip directive will be installed globally
|
|
41
|
-
*/
|
|
42
|
-
vTooltip?: boolean | VTooltipOptions;
|
|
43
|
-
/**
|
|
44
|
-
* If true, the lazy-img directive will be installed globally
|
|
45
|
-
*/
|
|
46
|
-
vLazyImg?: boolean | VLazyImgOptions;
|
|
47
|
-
/**
|
|
48
|
-
* If true, the click-outside directive will be installed globally
|
|
49
|
-
*/
|
|
50
|
-
vClickOutside?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* If true, the fullscreen-img directive will be installed globally
|
|
53
|
-
*/
|
|
54
|
-
vFullscreenImg?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* If true, the scroll-lock directive will be installed globally
|
|
57
|
-
* No global options are available for this plugin
|
|
58
|
-
*/
|
|
59
|
-
vZoomImg?: boolean;
|
|
60
|
-
};
|
|
61
15
|
}
|
|
62
16
|
/**
|
|
63
17
|
* @example
|
|
@@ -83,22 +37,7 @@ export interface MazUiOptions {
|
|
|
83
37
|
* },
|
|
84
38
|
* },
|
|
85
39
|
* },
|
|
86
|
-
* plugins: {
|
|
87
|
-
* dialog: true,
|
|
88
|
-
* toast: true,
|
|
89
|
-
* wait: true,
|
|
90
|
-
* aos: true,
|
|
91
|
-
* },
|
|
92
|
-
* directives: {
|
|
93
|
-
* vTooltip: true,
|
|
94
|
-
* vLazyImg: true,
|
|
95
|
-
* vClickOutside: true,
|
|
96
|
-
* vFullscreenImg: true,
|
|
97
|
-
* vZoomImg: true,
|
|
98
|
-
* },
|
|
99
40
|
* })
|
|
100
41
|
* ```
|
|
101
42
|
*/
|
|
102
|
-
export declare const MazUi:
|
|
103
|
-
install(app: import('vue').App<any>, options?: MazUiOptions): Promise<void>;
|
|
104
|
-
};
|
|
43
|
+
export declare const MazUi: Plugin<[MazUiOptions?]>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
2
|
import { ToastOptions } from './toast/types';
|
|
3
3
|
import { ToastHandler } from './toast/ToastHandler';
|
|
4
|
-
export declare const ToastPlugin:
|
|
5
|
-
install(app: App, options?: ToastOptions): void;
|
|
6
|
-
};
|
|
4
|
+
export declare const ToastPlugin: Plugin<[ToastOptions?]>;
|
|
7
5
|
declare module '@vue/runtime-core' {
|
|
8
6
|
interface ComponentCustomProperties {
|
|
9
7
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
1
2
|
type LoaderId = string | symbol | number;
|
|
2
3
|
export declare class WaitHandler {
|
|
3
4
|
private _loaders;
|
|
@@ -8,9 +9,7 @@ export declare class WaitHandler {
|
|
|
8
9
|
get anyLoading(): import('vue').ComputedRef<boolean>;
|
|
9
10
|
}
|
|
10
11
|
export declare const waitInstance: WaitHandler;
|
|
11
|
-
export declare const WaitPlugin:
|
|
12
|
-
install: (app: import('vue').App<any>) => void;
|
|
13
|
-
};
|
|
12
|
+
export declare const WaitPlugin: Plugin;
|
|
14
13
|
declare module '@vue/runtime-core' {
|
|
15
14
|
interface ComponentCustomProperties {
|
|
16
15
|
/**
|
|
@@ -3,6 +3,8 @@ import { getNumericScreensFromTailwind } from './variables/breakpoints';
|
|
|
3
3
|
export { getNumericScreensFromTailwind };
|
|
4
4
|
export declare function defineMazTailwindConfig(config?: Partial<Config> & {
|
|
5
5
|
content: Config['content'];
|
|
6
|
+
}, { utilities }?: {
|
|
7
|
+
utilities?: Record<string, any>;
|
|
6
8
|
}): {
|
|
7
9
|
content: (import('tailwindcss/types/config').ContentConfig | undefined) & import('tailwindcss/types/config').ContentConfig;
|
|
8
10
|
important?: Partial<import('tailwindcss/types/config').ImportantConfig> | undefined;
|
|
@@ -54,6 +56,9 @@ export declare function defineMazTailwindConfig(config?: Partial<Config> & {
|
|
|
54
56
|
lg: string;
|
|
55
57
|
xl: string;
|
|
56
58
|
};
|
|
59
|
+
borderColor: {
|
|
60
|
+
DEFAULT: string;
|
|
61
|
+
};
|
|
57
62
|
borderWidth: {
|
|
58
63
|
DEFAULT: string;
|
|
59
64
|
0: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.31",
|
|
5
5
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,10 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"sideEffects": [
|
|
30
30
|
"*.css",
|
|
31
|
-
"./dist/css/**"
|
|
32
|
-
"./dist/**/plugins/**",
|
|
33
|
-
"./dist/**/directives/**",
|
|
34
|
-
"./dist/**/composables/useToast*"
|
|
31
|
+
"./dist/css/**"
|
|
35
32
|
],
|
|
36
33
|
"exports": {
|
|
37
34
|
".": {
|
|
@@ -139,20 +136,24 @@
|
|
|
139
136
|
"tailwindcss"
|
|
140
137
|
],
|
|
141
138
|
"engines": {
|
|
142
|
-
"node": ">=
|
|
139
|
+
"node": ">= 18.0.0"
|
|
143
140
|
},
|
|
144
141
|
"scripts": {
|
|
145
142
|
"maz": "maz",
|
|
146
143
|
"lint": "pnpm lint:js && pnpm lint:style",
|
|
147
|
-
"lint:
|
|
148
|
-
"lint:js": "
|
|
149
|
-
"lint:
|
|
150
|
-
"lint:
|
|
144
|
+
"lint:fix": "pnpm lint:js:fix && pnpm lint:style:fix",
|
|
145
|
+
"lint:js": "cross-env NODE_ENV=production eslint",
|
|
146
|
+
"lint:js:fix": "pnpm lint:js --fix",
|
|
147
|
+
"lint:oxlint": "oxlint . -D correctness --ignore-path .gitignore",
|
|
148
|
+
"lint:oxlint:fix": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
|
149
|
+
"lint:style": "stylelint \"./**/*.{vue,css,scss,postcss,pcss,html}\"",
|
|
150
|
+
"lint:style:fix": "pnpm lint:style --fix",
|
|
151
151
|
"build": "pnpm typecheck && pnpm build:only",
|
|
152
152
|
"build:only": "vite build",
|
|
153
|
+
"build:watch": "vite build --watch",
|
|
153
154
|
"build:dev": "vite build --watch",
|
|
154
155
|
"build:analyze": "vite-node build/analyze-bundle.ts",
|
|
155
|
-
"test:unit": "vitest",
|
|
156
|
+
"test:unit": "vitest run",
|
|
156
157
|
"test:unit:watch": "vitest watch",
|
|
157
158
|
"test:unit:coverage": "vitest run --coverage",
|
|
158
159
|
"test:unit:coverage:watch": "vitest watch --coverage",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
"typecheck": "vue-tsc --noEmit --skipLibCheck"
|
|
162
163
|
},
|
|
163
164
|
"peerDependencies": {
|
|
164
|
-
"nuxt": "
|
|
165
|
+
"nuxt": ">=3.4.0 <5.0.0",
|
|
165
166
|
"unplugin-auto-import": ">=19.0.0 <20.0.0",
|
|
166
167
|
"unplugin-vue-components": ">=28.0.0 <29.0.0",
|
|
167
168
|
"vue": "^3.5.0",
|
|
@@ -182,60 +183,60 @@
|
|
|
182
183
|
}
|
|
183
184
|
},
|
|
184
185
|
"dependencies": {
|
|
185
|
-
"@
|
|
186
|
-
"@maz-ui/
|
|
187
|
-
"@maz-ui/
|
|
188
|
-
"@maz-ui/
|
|
186
|
+
"@floating-ui/vue": "^1.1.8",
|
|
187
|
+
"@maz-ui/cli": "4.0.0-beta.27",
|
|
188
|
+
"@maz-ui/icons": "4.0.0-beta.27",
|
|
189
|
+
"@maz-ui/themes": "4.0.0-beta.27",
|
|
190
|
+
"@maz-ui/translations": "4.0.0-beta.27",
|
|
191
|
+
"@maz-ui/utils": "4.0.0-beta.27",
|
|
189
192
|
"chart.js": "^4.5.0",
|
|
190
193
|
"dayjs": "^1.11.13",
|
|
191
|
-
"libphonenumber-js": "^1.12.
|
|
194
|
+
"libphonenumber-js": "^1.12.10",
|
|
192
195
|
"valibot": "^1.1.0",
|
|
193
196
|
"vue-chartjs": "^5.3.2"
|
|
194
197
|
},
|
|
195
198
|
"devDependencies": {
|
|
196
|
-
"@maz-ui/eslint-config": "4.0.0-beta.
|
|
197
|
-
"@maz-ui/
|
|
198
|
-
"@vitejs/plugin-vue": "^
|
|
199
|
+
"@maz-ui/eslint-config": "4.0.0-beta.25",
|
|
200
|
+
"@maz-ui/node": "4.0.0-beta.27",
|
|
201
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
199
202
|
"@vitest/coverage-v8": "^3.2.4",
|
|
200
|
-
"@vue/compiler-sfc": "^3.5.
|
|
203
|
+
"@vue/compiler-sfc": "^3.5.18",
|
|
201
204
|
"@vue/test-utils": "^2.4.6",
|
|
202
205
|
"@vue/tsconfig": "^0.7.0",
|
|
203
206
|
"autoprefixer": "^10.4.21",
|
|
204
|
-
"chalk": "5.4.1",
|
|
205
207
|
"glob": "^11.0.3",
|
|
206
208
|
"jsdom": "^26.1.0",
|
|
207
209
|
"lightningcss": "^1.30.1",
|
|
208
|
-
"nuxt": "^
|
|
210
|
+
"nuxt": "^4.0.3",
|
|
209
211
|
"postcss": "^8.5.6",
|
|
210
212
|
"postcss-html": "^1.8.0",
|
|
211
|
-
"postcss-import": "^16.1.
|
|
213
|
+
"postcss-import": "^16.1.1",
|
|
212
214
|
"postcss-nested": "^7.0.2",
|
|
213
215
|
"postcss-replace": "^2.0.1",
|
|
214
216
|
"postcss-url": "^10.1.3",
|
|
215
|
-
"sass": "^1.
|
|
216
|
-
"stylelint": "^16.
|
|
217
|
-
"stylelint-config-recommended-vue": "^1.6.
|
|
218
|
-
"stylelint-config-standard": "^
|
|
217
|
+
"sass": "^1.90.0",
|
|
218
|
+
"stylelint": "^16.23.0",
|
|
219
|
+
"stylelint-config-recommended-vue": "^1.6.1",
|
|
220
|
+
"stylelint-config-standard": "^39.0.0",
|
|
219
221
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
220
222
|
"stylelint-config-tailwindcss": "^1.0.0",
|
|
221
223
|
"stylelint-scss": "^6.12.0",
|
|
222
224
|
"tailwindcss": "^3.4.16",
|
|
223
|
-
"typescript": "~5.
|
|
224
|
-
"unplugin-auto-import": "^
|
|
225
|
-
"unplugin-vue-components": "^28.
|
|
226
|
-
"vite": "^
|
|
225
|
+
"typescript": "~5.9.2",
|
|
226
|
+
"unplugin-auto-import": "^20.0.0",
|
|
227
|
+
"unplugin-vue-components": "^28.8.0",
|
|
228
|
+
"vite": "^7.0.6",
|
|
227
229
|
"vite-plugin-dts": "^4.5.4",
|
|
228
230
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
229
231
|
"vite-svg-loader": "^5.1.0",
|
|
230
232
|
"vitest": "^3.2.4",
|
|
231
|
-
"
|
|
232
|
-
"vue": "^3.5.17",
|
|
233
|
+
"vue": "^3.5.18",
|
|
233
234
|
"vue-router": "^4.5.1",
|
|
234
|
-
"vue-tsc": "^
|
|
235
|
+
"vue-tsc": "^3.0.5"
|
|
235
236
|
},
|
|
236
237
|
"lint-staged": {
|
|
237
|
-
"*.{js,ts,vue,mjs,mts,cjs,md}": "cross-env NODE_ENV=production eslint --fix",
|
|
238
|
+
"*.{js,ts,vue,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix",
|
|
238
239
|
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix --allow-empty-input"
|
|
239
240
|
},
|
|
240
|
-
"gitHead": "
|
|
241
|
+
"gitHead": "1d16660bb8243d5a653fbe1bb1ba4d5d2ba6aec0"
|
|
241
242
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.m-accordion[data-v-3531c128]{vertical-align:top;flex-direction:column;gap:1rem;display:inline-flex;position:relative}.m-accordion__spotlight[data-v-3531c128]{width:100%}.m-accordion__header[data-v-3531c128]{text-align:start;justify-content:space-between;align-items:center;gap:1rem;width:100%;padding:1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex}.m-accordion__header .header-icon[data-v-3531c128]{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-accordion__header .header-icon.--rotate[data-v-3531c128]{transform:rotate(135deg)}.m-accordion__content[data-v-3531c128]{padding:1rem}
|