maz-ui 3.47.2-beta.17 → 3.47.2-beta.18
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/MazCircularProgressBar.d.ts +18 -0
- package/components/MazCircularProgressBar.mjs +37 -34
- package/components/MazPhoneNumberInput/types.d.ts +1 -0
- package/components/MazPhoneNumberInput.d.ts +2 -0
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/{MazBtn-Ch1hDPN2.mjs → MazBtn-B5ioqwkK.mjs} +2 -2
- package/components/chunks/{MazBtn-CyFhG2dS.mjs → MazBtn-BrfhtojY.mjs} +2 -2
- package/components/chunks/{MazBtn-Dyd7nrjf.mjs → MazBtn-D4NOcykx.mjs} +2 -2
- package/components/chunks/{MazCheckbox-B52wtlPW.mjs → MazCheckbox-B5ZcWc3y.mjs} +1 -1
- package/components/chunks/{MazCheckbox-qdaBefm5.mjs → MazCheckbox-BDPgDiU3.mjs} +1 -1
- package/components/chunks/{MazCheckbox-rCMDIWsz.mjs → MazCheckbox-BeLByOEa.mjs} +1 -1
- package/components/chunks/{MazIcon-hS5hU9w4.mjs → MazIcon-CaXpmvN2.mjs} +1 -1
- package/components/chunks/{MazInput-BxyuzXco.mjs → MazInput-BTIdtLkD.mjs} +2 -2
- package/components/chunks/{MazLoadingBar-9Aj1kmiA.mjs → MazLoadingBar-D3pDBJSb.mjs} +1 -1
- package/components/chunks/{MazPhoneNumberInput-C0cflJBV.mjs → MazPhoneNumberInput-DibUhBpk.mjs} +407 -407
- package/components/chunks/MazSelect-CbT4tFqV.mjs +550 -0
- package/components/chunks/{MazSelect-BoEdSx_L.mjs → MazSelect-CyWAOXo4.mjs} +312 -316
- package/components/chunks/{MazSpinner-DgvAGKDI.mjs → MazSpinner-DYE8e9xl.mjs} +1 -1
- package/components/chunks/{MazSpinner-D3XO8GyD.mjs → MazSpinner-EAz0nFxC.mjs} +1 -1
- package/components/chunks/{MazSpinner-DQ-R-mx0.mjs → MazSpinner-N-1gjTUE.mjs} +1 -1
- package/components/chunks/{MazTable-CQy44tkb.mjs → MazTable-hA0HicaL.mjs} +1 -1
- package/components/chunks/{MazTableCell-DvTUWirp.mjs → MazTableCell-DkCidYWY.mjs} +1 -1
- package/components/chunks/{MazTableRow-Byhe0xaT.mjs → MazTableRow-BAl6Fzm8.mjs} +1 -1
- package/components/chunks/{MazTableTitle-CEbvvX5U.mjs → MazTableTitle-CY_LNDOk.mjs} +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-lQ32Gcgj.mjs → MazBtn-C2iBdVnK.mjs} +2 -2
- package/modules/chunks/{MazBtn-CrPOzYh7.cjs → MazBtn-DZ5uD4Ie.cjs} +1 -1
- package/modules/chunks/{MazIcon-Cbm35EPG.cjs → MazIcon-BYvF8LQu.cjs} +1 -1
- package/modules/chunks/{MazIcon-BDui-8Fj.mjs → MazIcon-trV1gyry.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BryzC2lk.cjs → MazSpinner-2MEHiA8E.cjs} +1 -1
- package/modules/chunks/{MazSpinner-CFpKGT2w.mjs → MazSpinner-Dxfnhjcc.mjs} +1 -1
- package/modules/chunks/{index-DDjU2oMn.cjs → index-BjpJ5NSX.cjs} +2 -2
- package/modules/chunks/{index-0BVRC-nq.mjs → index-C3k5P1Gx.mjs} +111 -106
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
- package/types/components/MazPhoneNumberInput/types.d.ts +1 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +2 -0
- package/types/components/MazSelect.vue.d.ts +1 -1
- package/types/modules/composables/useFormValidator/types.d.ts +2 -2
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/components/chunks/MazSelect-BL7FY5YH.mjs +0 -553
- /package/components/MazPhoneNumberInput/{use-libphonenumber.d.ts → useLibphonenumber.d.ts} +0 -0
- /package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +0 -0
- /package/types/components/MazPhoneNumberInput/{use-libphonenumber.d.ts → useLibphonenumber.d.ts} +0 -0
- /package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +0 -0
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -49,6 +49,21 @@ type __VLS_Props = {
|
|
|
49
49
|
* You can use a color name or a color code
|
|
50
50
|
*/
|
|
51
51
|
stroke?: SVGAttributes['stroke'];
|
|
52
|
+
/**
|
|
53
|
+
* The percentage value of the success color
|
|
54
|
+
* @default 100
|
|
55
|
+
*/
|
|
56
|
+
successPercentage?: number;
|
|
57
|
+
/**
|
|
58
|
+
* The percentage value of the warning color
|
|
59
|
+
* @default 50
|
|
60
|
+
*/
|
|
61
|
+
warningPercentage?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The percentage value of the danger color
|
|
64
|
+
* @default 25
|
|
65
|
+
*/
|
|
66
|
+
dangerPercentage?: number;
|
|
52
67
|
};
|
|
53
68
|
declare function __VLS_template(): {
|
|
54
69
|
attrs: Partial<{}>;
|
|
@@ -71,6 +86,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
71
86
|
percentage: number;
|
|
72
87
|
strokeLinecap: "inherit" | "round" | "square" | "butt";
|
|
73
88
|
strokeWidth: string | number;
|
|
89
|
+
successPercentage: number;
|
|
90
|
+
warningPercentage: number;
|
|
91
|
+
dangerPercentage: number;
|
|
74
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
75
93
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
76
94
|
export default _default;
|
|
@@ -124,6 +124,7 @@ declare const results: import("vue").Ref<{
|
|
|
124
124
|
uri?: string | undefined;
|
|
125
125
|
e164?: string | undefined;
|
|
126
126
|
rfc3966?: string | undefined;
|
|
127
|
+
possibleCountries?: CountryCode[] | undefined;
|
|
127
128
|
phoneNumber?: string | undefined;
|
|
128
129
|
}, Results | {
|
|
129
130
|
isValid: boolean;
|
|
@@ -137,6 +138,7 @@ declare const results: import("vue").Ref<{
|
|
|
137
138
|
uri?: string | undefined;
|
|
138
139
|
e164?: string | undefined;
|
|
139
140
|
rfc3966?: string | undefined;
|
|
141
|
+
possibleCountries?: CountryCode[] | undefined;
|
|
140
142
|
phoneNumber?: string | undefined;
|
|
141
143
|
}>;
|
|
142
144
|
interface SelectionRange {
|
|
@@ -88,7 +88,7 @@ export interface Props<T extends ModelValueSimple, U extends MazSelectOption> {
|
|
|
88
88
|
autocomplete?: string;
|
|
89
89
|
}
|
|
90
90
|
export type { Color, ModelValueSimple, Position, Size } from './types';
|
|
91
|
-
declare const _default: <T extends ModelValueSimple, U extends MazSelectOption
|
|
91
|
+
declare const _default: <T extends ModelValueSimple, U extends MazSelectOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
92
92
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
93
93
|
readonly onInput?: ((value: Event) => any) | undefined;
|
|
94
94
|
readonly onBlur?: ((value: Event) => any) | undefined;
|
|
@@ -101,8 +101,8 @@ export interface FormFieldOptions<FieldType> {
|
|
|
101
101
|
export type UseFormValidator<Model extends BaseFormPayload = BaseFormPayload> = typeof useFormValidator<Model>;
|
|
102
102
|
export interface UseFormValidatorParams<Model extends BaseFormPayload> {
|
|
103
103
|
schema: MaybeRef<FormSchema<Model>>;
|
|
104
|
-
defaultValues?: MaybeRef<Partial<Model
|
|
105
|
-
model?: Ref<Partial<Model
|
|
104
|
+
defaultValues?: MaybeRef<Partial<Model> | undefined>;
|
|
105
|
+
model?: Ref<Partial<Model> | undefined>;
|
|
106
106
|
options?: FormValidatorOptions<Model>;
|
|
107
107
|
}
|
|
108
108
|
export type UseFormField<FieldType extends Model[ExtractModelKey<FormSchema<Model>>], Model extends BaseFormPayload = BaseFormPayload> = typeof useFormField<FieldType, Model>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DirectiveBinding } from 'vue';
|
|
2
|
-
type vClosableBindingValueHandler = (
|
|
2
|
+
type vClosableBindingValueHandler = (event: Event) => any;
|
|
3
3
|
interface vClosableBindingValueObject {
|
|
4
4
|
handler: vClosableBindingValueHandler;
|
|
5
5
|
exclude?: string[];
|
|
@@ -3,12 +3,33 @@ import type { Color } from '../../../components/types';
|
|
|
3
3
|
import './style.css';
|
|
4
4
|
type vTooltipColor = Exclude<Color, 'transparent'> | 'default' | 'light' | 'dark';
|
|
5
5
|
interface vTooltipOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Position of the tooltip
|
|
8
|
+
* @default 'top'
|
|
9
|
+
*/
|
|
6
10
|
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
/**
|
|
12
|
+
* Color of the tooltip
|
|
13
|
+
* @default 'default'
|
|
14
|
+
*/
|
|
7
15
|
color?: vTooltipColor;
|
|
8
16
|
}
|
|
9
17
|
type vTooltipBindingValue = string | ({
|
|
18
|
+
/**
|
|
19
|
+
* Text to display in the tooltip
|
|
20
|
+
* @default ''
|
|
21
|
+
*/
|
|
10
22
|
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* Open the tooltip
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
11
27
|
open?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Offset of the tooltip
|
|
30
|
+
* @default '1rem'
|
|
31
|
+
*/
|
|
32
|
+
offset?: string;
|
|
12
33
|
} & vTooltipOptions);
|
|
13
34
|
export type TooltipBinding = DirectiveBinding<vTooltipBindingValue>;
|
|
14
35
|
declare const directive: {
|