@mozaic-ds/vue 2.8.0 → 2.9.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/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +18 -3
- package/dist/mozaic-vue.js +1077 -1046
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +5 -5
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/drawer/MDrawer.spec.ts +81 -9
- package/src/components/drawer/MDrawer.vue +76 -46
- package/src/components/drawer/README.md +1 -0
- package/src/components/field/MField.spec.ts +94 -85
- package/src/components/field/MField.stories.ts +16 -0
- package/src/components/field/MField.vue +8 -1
- package/src/components/field/README.md +1 -0
- package/src/components/loader/MLoader.spec.ts +41 -0
- package/src/components/loader/MLoader.vue +7 -1
- package/src/components/loader/README.md +1 -1
- package/src/components/modal/MModal.spec.ts +34 -9
- package/src/components/modal/MModal.vue +39 -7
- package/src/components/modal/README.md +1 -0
package/dist/mozaic-vue.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare const __VLS_component_11: DefineComponent<__VLS_Props_21, {}, {}, {}, {}
|
|
|
37
37
|
}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{
|
|
38
38
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
|
+
scroll: boolean;
|
|
40
41
|
closable: boolean;
|
|
41
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
42
43
|
|
|
@@ -98,7 +99,9 @@ back: () => any;
|
|
|
98
99
|
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
99
100
|
onBack?: (() => any) | undefined;
|
|
100
101
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
101
|
-
}>, {
|
|
102
|
+
}>, {
|
|
103
|
+
scroll: boolean;
|
|
104
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
102
105
|
titleRef: HTMLHeadingElement;
|
|
103
106
|
}, any>;
|
|
104
107
|
|
|
@@ -168,6 +171,10 @@ declare type __VLS_Props_11 = {
|
|
|
168
171
|
* Title of the content of the drawer.
|
|
169
172
|
*/
|
|
170
173
|
contentTitle?: string;
|
|
174
|
+
/**
|
|
175
|
+
* if `false`, lock the scroll when open.
|
|
176
|
+
*/
|
|
177
|
+
scroll?: boolean;
|
|
171
178
|
/**
|
|
172
179
|
* if `true`, close the drawer when clicking the overlay.
|
|
173
180
|
*/
|
|
@@ -206,6 +213,10 @@ declare type __VLS_Props_12 = {
|
|
|
206
213
|
* If `true`, applies an invalid state to the form field.
|
|
207
214
|
*/
|
|
208
215
|
isInvalid?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* If `true`, applies a loading state to the form field.
|
|
218
|
+
*/
|
|
219
|
+
isLoading?: boolean;
|
|
209
220
|
/**
|
|
210
221
|
* The value of the `id` attribute set on the **validationMessage** element. _This value is mandatory when using a validationMessage in order to guarantee the accessibility of the component._
|
|
211
222
|
*/
|
|
@@ -363,7 +374,7 @@ declare type __VLS_Props_19 = {
|
|
|
363
374
|
/**
|
|
364
375
|
* Defines the size of the loader.
|
|
365
376
|
*/
|
|
366
|
-
size?: 's' | 'm' | 'l';
|
|
377
|
+
size?: 'xs' | 's' | 'm' | 'l';
|
|
367
378
|
/**
|
|
368
379
|
* Text to display alongside the loader when using the loader inside an `Overlay`.
|
|
369
380
|
*/
|
|
@@ -431,6 +442,10 @@ declare type __VLS_Props_21 = {
|
|
|
431
442
|
* if `true`, display the close button.
|
|
432
443
|
*/
|
|
433
444
|
closable?: boolean;
|
|
445
|
+
/**
|
|
446
|
+
* if `false`, lock the scroll when open.
|
|
447
|
+
*/
|
|
448
|
+
scroll?: boolean;
|
|
434
449
|
/**
|
|
435
450
|
* if `true`, close the modal when clicking the overlay.
|
|
436
451
|
*/
|
|
@@ -1884,7 +1899,7 @@ value: number;
|
|
|
1884
1899
|
export declare const MLink: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
1885
1900
|
|
|
1886
1901
|
export declare const MLoader: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {
|
|
1887
|
-
size: "s" | "m" | "l";
|
|
1902
|
+
size: "xs" | "s" | "m" | "l";
|
|
1888
1903
|
appearance: "standard" | "accent" | "inverse";
|
|
1889
1904
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1890
1905
|
|