@mozaic-ds/vue 1.0.0-beta.4 → 1.0.0-beta.5
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 +14 -6
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +349 -67
- package/dist/mozaic-vue.js +670 -327
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +1 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +3 -2
- package/src/components/GettingStarted.mdx +15 -4
- package/src/components/badge/MBadge.stories.ts +1 -1
- package/src/components/breadcrumb/MBreadcrumb.spec.ts +105 -0
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +57 -0
- package/src/components/breadcrumb/MBreadcrumb.vue +70 -0
- package/src/components/button/MButton.stories.ts +1 -1
- package/src/components/checkbox/MCheckbox.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.vue +2 -2
- package/src/components/field/MField.stories.ts +1 -1
- package/src/components/fieldgroup/MFieldGroup.stories.ts +175 -26
- package/src/components/iconbutton/MIconButton.stories.ts +1 -1
- package/src/components/loader/MLoader.stories.ts +1 -1
- package/src/components/passwordinput/MPasswordInput.spec.ts +104 -0
- package/src/components/passwordinput/MPasswordInput.stories.ts +75 -0
- package/src/components/passwordinput/MPasswordInput.vue +149 -0
- package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
- package/src/components/radio/MRadio.stories.ts +1 -1
- package/src/components/radiogroup/MRadioGroup.stories.ts +1 -1
- package/src/components/select/MSelect.stories.ts +1 -1
- package/src/components/statusbadge/MStatusBadge.stories.ts +5 -5
- package/src/components/statusbadge/MStatusBadge.vue +6 -6
- package/src/components/statusdot/MStatusDot.spec.ts +51 -0
- package/src/components/statusdot/MStatusDot.stories.ts +48 -0
- package/src/components/{statusbadge → statusdot}/MStatusDot.vue +8 -4
- package/src/components/statusnotification/MStatusNotification.spec.ts +99 -0
- package/src/components/statusnotification/MStatusNotification.stories.ts +96 -0
- package/src/components/statusnotification/MStatusNotification.vue +106 -0
- package/src/components/textarea/MTextArea.stories.ts +1 -1
- package/src/components/textinput/MTextInput.stories.ts +1 -1
- package/src/components/toggle/MToggle.stories.ts +2 -2
- package/src/components/togglegroup/MToggleGroup.spec.ts +78 -0
- package/src/components/togglegroup/MToggleGroup.stories.ts +61 -0
- package/src/components/togglegroup/MToggleGroup.vue +97 -0
- package/src/main.ts +8 -0
package/dist/mozaic-vue.d.ts
CHANGED
|
@@ -1,43 +1,67 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { ComponentCustomProperties } from 'vue';
|
|
3
|
+
import { ComponentCustomProps } from 'vue';
|
|
4
|
+
import { ComponentInternalInstance } from 'vue';
|
|
5
|
+
import { ComponentOptionsBase } from 'vue';
|
|
1
6
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
7
|
import { ComponentProvideOptions } from 'vue';
|
|
8
|
+
import { ComponentPublicInstance } from 'vue';
|
|
9
|
+
import { DebuggerEvent } from 'vue';
|
|
3
10
|
import { DefineComponent } from 'vue';
|
|
11
|
+
import { GlobalComponents } from 'vue';
|
|
12
|
+
import { GlobalDirectives } from 'vue';
|
|
13
|
+
import { nextTick } from 'vue';
|
|
14
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
15
|
import { PublicProps } from 'vue';
|
|
16
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
17
|
+
import { Slot } from 'vue';
|
|
5
18
|
import { VNode } from 'vue';
|
|
19
|
+
import { VNodeProps } from 'vue';
|
|
20
|
+
import { WatchOptions } from 'vue';
|
|
21
|
+
import { WatchStopHandle } from 'vue';
|
|
6
22
|
|
|
7
|
-
declare const __VLS_component: DefineComponent<
|
|
23
|
+
declare const __VLS_component: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
8
24
|
appearance: "standard" | "accent" | "danger" | "inverse";
|
|
9
25
|
size: "s" | "m" | "l";
|
|
10
26
|
type: "button" | "reset" | "submit";
|
|
11
27
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
12
28
|
|
|
13
|
-
declare const __VLS_component_2: DefineComponent<
|
|
29
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
30
|
|
|
15
|
-
declare const __VLS_component_3: DefineComponent<
|
|
31
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
|
|
16
32
|
|
|
17
|
-
declare const __VLS_component_4: DefineComponent<
|
|
33
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
18
34
|
appearance: "standard" | "accent" | "danger" | "inverse";
|
|
19
35
|
size: "s" | "m" | "l";
|
|
20
36
|
type: "button" | "reset" | "submit";
|
|
21
37
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
22
38
|
|
|
23
|
-
declare const __VLS_component_5: DefineComponent<
|
|
39
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {
|
|
24
40
|
appearance: "secondary" | "accent" | "inverse" | "standard";
|
|
25
41
|
size: "s" | "m";
|
|
26
42
|
iconPosition: "left" | "right";
|
|
27
|
-
target: string;
|
|
28
43
|
href: string;
|
|
44
|
+
target: string;
|
|
29
45
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
46
|
|
|
31
|
-
declare const __VLS_component_6: DefineComponent<
|
|
47
|
+
declare const __VLS_component_6: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
48
|
|
|
33
|
-
declare const __VLS_component_7: DefineComponent<
|
|
49
|
+
declare const __VLS_component_7: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
50
|
+
close: () => any;
|
|
51
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
52
|
+
onClose?: (() => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
status: "info" | "success" | "warning" | "error";
|
|
55
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
56
|
+
|
|
57
|
+
declare const __VLS_component_8: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
34
58
|
"update:modelValue": (value: string | number) => any;
|
|
35
|
-
}, string, PublicProps, Readonly<
|
|
59
|
+
}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
|
|
36
60
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
37
61
|
}>, {
|
|
38
62
|
size: "s" | "m";
|
|
39
|
-
inputType: "date" | "email" | "number" | "password" | "search" | "tel" | "text";
|
|
40
63
|
clearLabel: string;
|
|
64
|
+
inputType: "date" | "email" | "number" | "password" | "search" | "tel" | "text";
|
|
41
65
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
42
66
|
|
|
43
67
|
/**
|
|
@@ -59,9 +83,27 @@ declare type __VLS_Props = {
|
|
|
59
83
|
};
|
|
60
84
|
|
|
61
85
|
/**
|
|
62
|
-
*
|
|
86
|
+
* A loader indicates that content or data is being loaded or processed, providing visual feedback to users during wait times.
|
|
63
87
|
*/
|
|
64
88
|
declare type __VLS_Props_10 = {
|
|
89
|
+
/**
|
|
90
|
+
* Specifies the visual appearance of the loader.
|
|
91
|
+
*/
|
|
92
|
+
appearance?: 'standard' | 'accent' | 'inverse';
|
|
93
|
+
/**
|
|
94
|
+
* Defines the size of the loader.
|
|
95
|
+
*/
|
|
96
|
+
size?: 's' | 'm' | 'l';
|
|
97
|
+
/**
|
|
98
|
+
* Text to display alongside the loader when using the loader inside an `Overlay`.
|
|
99
|
+
*/
|
|
100
|
+
text?: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* An overlay component is a UI element that appears above the main content to display additional information or interactions, often blocking or dimming the background.
|
|
105
|
+
*/
|
|
106
|
+
declare type __VLS_Props_11 = {
|
|
65
107
|
/**
|
|
66
108
|
* Controls the visibility of the overlay.
|
|
67
109
|
*/
|
|
@@ -72,10 +114,59 @@ declare type __VLS_Props_10 = {
|
|
|
72
114
|
dialogLabel?: string;
|
|
73
115
|
};
|
|
74
116
|
|
|
117
|
+
/**
|
|
118
|
+
* A password input is a specialized input field used to securely enter and manage passwords. It typically masks the characters entered to protect sensitive information from being seen. It includes a toggle button to show or hide the password, improving usability while maintaining security. Password inputs are commonly used in login forms, account creation, and authentication flows.
|
|
119
|
+
*/
|
|
120
|
+
declare type __VLS_Props_12 = {
|
|
121
|
+
/**
|
|
122
|
+
* A unique identifier for the password input element, used to associate the label with the form element.
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* The name attribute for the password input element, typically used for form submission.
|
|
127
|
+
*/
|
|
128
|
+
name?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The current value of the password input field.
|
|
131
|
+
*/
|
|
132
|
+
modelValue?: string | number;
|
|
133
|
+
/**
|
|
134
|
+
* A placeholder text to show in the password input when it is empty.
|
|
135
|
+
*/
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
/**
|
|
138
|
+
* If `true`, applies an invalid state to the password input.
|
|
139
|
+
*/
|
|
140
|
+
isInvalid?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* If `true`, disables the password input, making it non-interactive.
|
|
143
|
+
*/
|
|
144
|
+
disabled?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* If `true`, the password input is read-only (cannot be edited).
|
|
147
|
+
*/
|
|
148
|
+
readonly?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* If `true`, a clear button will appear when the password input has a value.
|
|
151
|
+
*/
|
|
152
|
+
isClearable?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The label text for the clear button
|
|
155
|
+
*/
|
|
156
|
+
clearLabel?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Labels of the button displayed when showing or hiding the password
|
|
159
|
+
*/
|
|
160
|
+
buttonLabel?: {
|
|
161
|
+
show: string;
|
|
162
|
+
hide: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
|
|
75
166
|
/**
|
|
76
167
|
* The quantity selector is a form element used to enter or select a number. This type of input is best used when the user needs to choose the quantity of a selected item, like a product before adding to cart for example.
|
|
77
168
|
*/
|
|
78
|
-
declare type
|
|
169
|
+
declare type __VLS_Props_13 = {
|
|
79
170
|
/**
|
|
80
171
|
* A unique identifier for the quantity selector element, used to associate the label with the form element.
|
|
81
172
|
*/
|
|
@@ -129,7 +220,7 @@ declare type __VLS_Props_11 = {
|
|
|
129
220
|
/**
|
|
130
221
|
* A radio button is used to offer a unique choice to your user in a form. Unlike checkboxes, it can not be used alone.
|
|
131
222
|
*/
|
|
132
|
-
declare type
|
|
223
|
+
declare type __VLS_Props_14 = {
|
|
133
224
|
/**
|
|
134
225
|
* A unique identifier for the radio, used to associate the label with the form element.
|
|
135
226
|
*/
|
|
@@ -159,7 +250,7 @@ declare type __VLS_Props_12 = {
|
|
|
159
250
|
/**
|
|
160
251
|
* A radio button is used to offer a unique choice to your user in a form. Unlike checkboxes, it can not be used alone.
|
|
161
252
|
*/
|
|
162
|
-
declare type
|
|
253
|
+
declare type __VLS_Props_15 = {
|
|
163
254
|
/**
|
|
164
255
|
* The name attribute for the radio element, typically used for form submission.
|
|
165
256
|
*/
|
|
@@ -191,7 +282,7 @@ declare type __VLS_Props_13 = {
|
|
|
191
282
|
/**
|
|
192
283
|
* A select is a form element for multi-line text input, ideal for longer content like comments or descriptions.
|
|
193
284
|
*/
|
|
194
|
-
declare type
|
|
285
|
+
declare type __VLS_Props_16 = {
|
|
195
286
|
/**
|
|
196
287
|
* A unique identifier for the select, used to associate the label with the form element.
|
|
197
288
|
*/
|
|
@@ -239,7 +330,7 @@ declare type __VLS_Props_14 = {
|
|
|
239
330
|
/**
|
|
240
331
|
* A status badge indicates the status of an entity and can evolve at any time.
|
|
241
332
|
*/
|
|
242
|
-
declare type
|
|
333
|
+
declare type __VLS_Props_17 = {
|
|
243
334
|
/**
|
|
244
335
|
* Content of the Status Badge
|
|
245
336
|
*/
|
|
@@ -247,13 +338,35 @@ declare type __VLS_Props_15 = {
|
|
|
247
338
|
/**
|
|
248
339
|
* Allows to define the Status Badge style
|
|
249
340
|
*/
|
|
250
|
-
|
|
341
|
+
status?: 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* A Status Notification is used to draw the user’s attention to important information that needs to be acknowledged. It often provides feedback on a process, highlights a status update, or alerts users about an issue. Notifications are typically triggered by user actions or system events and are designed to be easily noticeable while maintaining a non-intrusive experience.
|
|
346
|
+
*/
|
|
347
|
+
declare type __VLS_Props_18 = {
|
|
348
|
+
/**
|
|
349
|
+
* Title of the Status Notification
|
|
350
|
+
*/
|
|
351
|
+
title: string;
|
|
352
|
+
/**
|
|
353
|
+
* Description of the Status Notification
|
|
354
|
+
*/
|
|
355
|
+
description: string;
|
|
356
|
+
/**
|
|
357
|
+
* Allows to define the Status Notification style
|
|
358
|
+
*/
|
|
359
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
360
|
+
/**
|
|
361
|
+
* if `true`, display the close button.
|
|
362
|
+
*/
|
|
363
|
+
closable?: boolean;
|
|
251
364
|
};
|
|
252
365
|
|
|
253
366
|
/**
|
|
254
367
|
* A textarea is a form element for multi-line text input, ideal for longer content like comments or descriptions.
|
|
255
368
|
*/
|
|
256
|
-
declare type
|
|
369
|
+
declare type __VLS_Props_19 = {
|
|
257
370
|
/**
|
|
258
371
|
* A unique identifier for the textarea, used to associate the label with the form element.
|
|
259
372
|
*/
|
|
@@ -296,10 +409,37 @@ declare type __VLS_Props_16 = {
|
|
|
296
409
|
readonly?: boolean;
|
|
297
410
|
};
|
|
298
411
|
|
|
412
|
+
/**
|
|
413
|
+
* A breadcrumb is a navigation help that displays the hierarchical path of the current page within a website or application. It helps users understand their location and allows them to navigate back to previous levels easily. Breadcrumbs improve usability and accessibility, especially in multi-level websites, dashboards, and e-commerce platforms.
|
|
414
|
+
*/
|
|
415
|
+
declare type __VLS_Props_2 = {
|
|
416
|
+
/**
|
|
417
|
+
* Allows to define the breadcrumb style
|
|
418
|
+
*/
|
|
419
|
+
appearance?: 'standard' | 'inverse';
|
|
420
|
+
/**
|
|
421
|
+
* Links of the breadcrumb
|
|
422
|
+
*/
|
|
423
|
+
links?: Array<{
|
|
424
|
+
/**
|
|
425
|
+
* The label displayed for the link.
|
|
426
|
+
*/
|
|
427
|
+
label: string;
|
|
428
|
+
/**
|
|
429
|
+
* URL for the link (for external links or the `to` prop for `router-link`).
|
|
430
|
+
*/
|
|
431
|
+
href: string;
|
|
432
|
+
/**
|
|
433
|
+
* If `true`, the link will be rendered as a `router-link` for internal navigation (Vue Router).
|
|
434
|
+
*/
|
|
435
|
+
router?: boolean;
|
|
436
|
+
}>;
|
|
437
|
+
};
|
|
438
|
+
|
|
299
439
|
/**
|
|
300
440
|
* Inputs are used to create input fields with text on a single line. Their states depends on the user interaction or the context.
|
|
301
441
|
*/
|
|
302
|
-
declare type
|
|
442
|
+
declare type __VLS_Props_20 = {
|
|
303
443
|
/**
|
|
304
444
|
* A unique identifier for the input element, used to associate the label with the form element.
|
|
305
445
|
*/
|
|
@@ -349,7 +489,7 @@ declare type __VLS_Props_17 = {
|
|
|
349
489
|
/**
|
|
350
490
|
* A toggle is used to choose between two possibilities and when the user needs instant feedback. It is common to use toggles when you need to show or hide content and "on/off" switch.
|
|
351
491
|
*/
|
|
352
|
-
declare type
|
|
492
|
+
declare type __VLS_Props_21 = {
|
|
353
493
|
/**
|
|
354
494
|
* A unique identifier for the toggle, used to associate the label with the form element.
|
|
355
495
|
*/
|
|
@@ -376,10 +516,40 @@ declare type __VLS_Props_18 = {
|
|
|
376
516
|
disabled?: boolean;
|
|
377
517
|
};
|
|
378
518
|
|
|
519
|
+
/**
|
|
520
|
+
* A toggle is used to choose between two possibilities and when the user needs instant feedback. It is common to use toggles when you need to show or hide content and "on/off" switch.
|
|
521
|
+
*/
|
|
522
|
+
declare type __VLS_Props_22 = {
|
|
523
|
+
/**
|
|
524
|
+
* The name attribute for the toggle element, typically used for form submission.
|
|
525
|
+
*/
|
|
526
|
+
name: string;
|
|
527
|
+
/**
|
|
528
|
+
* Property used to manage the values checked by v-model
|
|
529
|
+
* (Do not use directly)
|
|
530
|
+
*/
|
|
531
|
+
modelValue?: Array<string>;
|
|
532
|
+
/**
|
|
533
|
+
* list of properties of each toggle of the toggle group
|
|
534
|
+
*/
|
|
535
|
+
options: Array<{
|
|
536
|
+
id: string;
|
|
537
|
+
label: string;
|
|
538
|
+
value: string;
|
|
539
|
+
disabled?: boolean;
|
|
540
|
+
isInvalid?: boolean;
|
|
541
|
+
size?: 's' | 'm';
|
|
542
|
+
}>;
|
|
543
|
+
/**
|
|
544
|
+
* If `true`, make the form element of the group inline.
|
|
545
|
+
*/
|
|
546
|
+
inline?: boolean;
|
|
547
|
+
};
|
|
548
|
+
|
|
379
549
|
/**
|
|
380
550
|
* Buttons are used to trigger actions. Their appearance is depending on the type of action required from the user, or the context.
|
|
381
551
|
*/
|
|
382
|
-
declare type
|
|
552
|
+
declare type __VLS_Props_3 = {
|
|
383
553
|
/**
|
|
384
554
|
* Defines the visual style of the button.
|
|
385
555
|
*/
|
|
@@ -417,7 +587,7 @@ declare type __VLS_Props_2 = {
|
|
|
417
587
|
/**
|
|
418
588
|
* Checkboxes are used to select one or multiple options in a list. They usually find their place in forms and are also used to accept some mentions.
|
|
419
589
|
*/
|
|
420
|
-
declare type
|
|
590
|
+
declare type __VLS_Props_4 = {
|
|
421
591
|
/**
|
|
422
592
|
* A unique identifier for the checkbox, used to associate the label with the form element.
|
|
423
593
|
*/
|
|
@@ -451,9 +621,9 @@ declare type __VLS_Props_3 = {
|
|
|
451
621
|
/**
|
|
452
622
|
* Checkboxes are used to select one or multiple options in a list. They usually find their place in forms and are also used to accept some mentions.
|
|
453
623
|
*/
|
|
454
|
-
declare type
|
|
624
|
+
declare type __VLS_Props_5 = {
|
|
455
625
|
/**
|
|
456
|
-
* The name attribute for the
|
|
626
|
+
* The name attribute for the checkbox element, typically used for form submission.
|
|
457
627
|
*/
|
|
458
628
|
name: string;
|
|
459
629
|
/**
|
|
@@ -462,7 +632,7 @@ declare type __VLS_Props_4 = {
|
|
|
462
632
|
*/
|
|
463
633
|
modelValue?: Array<string>;
|
|
464
634
|
/**
|
|
465
|
-
* list of properties of each
|
|
635
|
+
* list of properties of each checkbox button of the checkbox group
|
|
466
636
|
*/
|
|
467
637
|
options: Array<{
|
|
468
638
|
id: string;
|
|
@@ -480,7 +650,7 @@ declare type __VLS_Props_4 = {
|
|
|
480
650
|
/**
|
|
481
651
|
* This component creates a structured form field with a label, optional help text, error and validation message handling.
|
|
482
652
|
*/
|
|
483
|
-
declare type
|
|
653
|
+
declare type __VLS_Props_6 = {
|
|
484
654
|
/**
|
|
485
655
|
* A unique identifier for the form field, used to associate the label with the form element.
|
|
486
656
|
*/
|
|
@@ -522,7 +692,7 @@ declare type __VLS_Props_5 = {
|
|
|
522
692
|
/**
|
|
523
693
|
* This component creates a structured form field for group field such as Radio Group, Checkbox Group or Toggle Group with a label, optional help text, error and validation message handling.
|
|
524
694
|
*/
|
|
525
|
-
declare type
|
|
695
|
+
declare type __VLS_Props_7 = {
|
|
526
696
|
/**
|
|
527
697
|
* A unique identifier for the form field, used to associate the label with the form element.
|
|
528
698
|
*/
|
|
@@ -556,7 +726,7 @@ declare type __VLS_Props_6 = {
|
|
|
556
726
|
/**
|
|
557
727
|
* Icon Buttons are used to trigger actions. Their appearance is depending on the type of action required from the user, or the context.
|
|
558
728
|
*/
|
|
559
|
-
declare type
|
|
729
|
+
declare type __VLS_Props_8 = {
|
|
560
730
|
/**
|
|
561
731
|
* Defines the visual style of the icon button.
|
|
562
732
|
*/
|
|
@@ -586,7 +756,7 @@ declare type __VLS_Props_7 = {
|
|
|
586
756
|
/**
|
|
587
757
|
* A link is a component used exclusively to navigate to internal or external webpages or to anchors in the current page.
|
|
588
758
|
*/
|
|
589
|
-
declare type
|
|
759
|
+
declare type __VLS_Props_9 = {
|
|
590
760
|
/**
|
|
591
761
|
* Position of the icon relative to the text.
|
|
592
762
|
*/
|
|
@@ -617,24 +787,6 @@ declare type __VLS_Props_8 = {
|
|
|
617
787
|
router?: boolean;
|
|
618
788
|
};
|
|
619
789
|
|
|
620
|
-
/**
|
|
621
|
-
* A loader indicates that content or data is being loaded or processed, providing visual feedback to users during wait times.
|
|
622
|
-
*/
|
|
623
|
-
declare type __VLS_Props_9 = {
|
|
624
|
-
/**
|
|
625
|
-
* Specifies the visual appearance of the loader.
|
|
626
|
-
*/
|
|
627
|
-
appearance?: 'standard' | 'accent' | 'inverse';
|
|
628
|
-
/**
|
|
629
|
-
* Defines the size of the loader.
|
|
630
|
-
*/
|
|
631
|
-
size?: 's' | 'm' | 'l';
|
|
632
|
-
/**
|
|
633
|
-
* Text to display alongside the loader when using the loader inside an `Overlay`.
|
|
634
|
-
*/
|
|
635
|
-
text?: string;
|
|
636
|
-
};
|
|
637
|
-
|
|
638
790
|
declare function __VLS_template(): {
|
|
639
791
|
attrs: Partial<{}>;
|
|
640
792
|
slots: Readonly<{
|
|
@@ -754,6 +906,23 @@ declare function __VLS_template_6(): {
|
|
|
754
906
|
};
|
|
755
907
|
|
|
756
908
|
declare function __VLS_template_7(): {
|
|
909
|
+
attrs: Partial<{}>;
|
|
910
|
+
slots: Readonly<{
|
|
911
|
+
/**
|
|
912
|
+
* Use this slot to insert a button or a link in the footer
|
|
913
|
+
*/
|
|
914
|
+
footer?: VNode;
|
|
915
|
+
}> & {
|
|
916
|
+
/**
|
|
917
|
+
* Use this slot to insert a button or a link in the footer
|
|
918
|
+
*/
|
|
919
|
+
footer?: VNode;
|
|
920
|
+
};
|
|
921
|
+
refs: {};
|
|
922
|
+
rootEl: HTMLElement;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
declare function __VLS_template_8(): {
|
|
757
926
|
attrs: Partial<{}>;
|
|
758
927
|
slots: Readonly<{
|
|
759
928
|
/**
|
|
@@ -784,6 +953,8 @@ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
|
784
953
|
|
|
785
954
|
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
786
955
|
|
|
956
|
+
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
957
|
+
|
|
787
958
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
788
959
|
new (): {
|
|
789
960
|
$slots: S;
|
|
@@ -826,22 +997,30 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
|
826
997
|
};
|
|
827
998
|
};
|
|
828
999
|
|
|
1000
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
1001
|
+
new (): {
|
|
1002
|
+
$slots: S;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
|
|
829
1006
|
export declare const MBadge: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
830
1007
|
appearance: "danger" | "accent" | "inverse" | "standard";
|
|
831
1008
|
size: "s" | "m";
|
|
832
1009
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
833
1010
|
|
|
1011
|
+
export declare const MBreadcrumb: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
1012
|
+
|
|
834
1013
|
export declare const MButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
835
1014
|
|
|
836
|
-
export declare const MCheckbox: DefineComponent<
|
|
1015
|
+
export declare const MCheckbox: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
837
1016
|
"update:modelValue": (value: boolean) => any;
|
|
838
|
-
}, string, PublicProps, Readonly<
|
|
1017
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
839
1018
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
840
1019
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
841
1020
|
|
|
842
|
-
export declare const MCheckboxGroup: DefineComponent<
|
|
1021
|
+
export declare const MCheckboxGroup: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
843
1022
|
"update:modelValue": (value: string[]) => any;
|
|
844
|
-
}, string, PublicProps, Readonly<
|
|
1023
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
845
1024
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
846
1025
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
847
1026
|
|
|
@@ -853,16 +1032,111 @@ export declare const MIconButton: __VLS_WithTemplateSlots_4<typeof __VLS_compone
|
|
|
853
1032
|
|
|
854
1033
|
export declare const MLink: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
855
1034
|
|
|
856
|
-
export declare const MLoader: DefineComponent<
|
|
1035
|
+
export declare const MLoader: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
|
|
857
1036
|
appearance: "standard" | "accent" | "inverse";
|
|
858
1037
|
size: "s" | "m" | "l";
|
|
859
1038
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
860
1039
|
|
|
861
1040
|
export declare const MOverlay: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
862
1041
|
|
|
863
|
-
export declare const
|
|
1042
|
+
export declare const MPasswordInput: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1043
|
+
"update:modelValue": (value: string | number) => any;
|
|
1044
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
1045
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
1046
|
+
}>, {
|
|
1047
|
+
clearLabel: string;
|
|
1048
|
+
buttonLabel: {
|
|
1049
|
+
show: string;
|
|
1050
|
+
hide: string;
|
|
1051
|
+
};
|
|
1052
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1053
|
+
button: ({
|
|
1054
|
+
$: ComponentInternalInstance;
|
|
1055
|
+
$data: {};
|
|
1056
|
+
$props: {
|
|
1057
|
+
readonly appearance?: "standard" | "accent" | "danger" | "inverse" | undefined;
|
|
1058
|
+
readonly size?: "s" | "m" | "l" | undefined;
|
|
1059
|
+
readonly disabled?: boolean | undefined;
|
|
1060
|
+
readonly ghost?: boolean | undefined;
|
|
1061
|
+
readonly outlined?: boolean | undefined;
|
|
1062
|
+
readonly iconPosition?: "left" | "right" | "only" | undefined;
|
|
1063
|
+
readonly type?: "button" | "reset" | "submit" | undefined;
|
|
1064
|
+
readonly isLoading?: boolean | undefined;
|
|
1065
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1066
|
+
$attrs: {
|
|
1067
|
+
[x: string]: unknown;
|
|
1068
|
+
};
|
|
1069
|
+
$refs: {
|
|
1070
|
+
[x: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
$slots: Readonly<{
|
|
1073
|
+
[name: string]: Slot<any> | undefined;
|
|
1074
|
+
}>;
|
|
1075
|
+
$root: ComponentPublicInstance | null;
|
|
1076
|
+
$parent: ComponentPublicInstance | null;
|
|
1077
|
+
$host: Element | null;
|
|
1078
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
1079
|
+
$el: HTMLButtonElement;
|
|
1080
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
1081
|
+
appearance?: "standard" | "accent" | "danger" | "inverse";
|
|
1082
|
+
size?: "s" | "m" | "l";
|
|
1083
|
+
disabled?: boolean;
|
|
1084
|
+
ghost?: boolean;
|
|
1085
|
+
outlined?: boolean;
|
|
1086
|
+
iconPosition?: "left" | "right" | "only";
|
|
1087
|
+
type?: "button" | "reset" | "submit";
|
|
1088
|
+
isLoading?: boolean;
|
|
1089
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1090
|
+
appearance: "standard" | "accent" | "danger" | "inverse";
|
|
1091
|
+
size: "s" | "m" | "l";
|
|
1092
|
+
type: "button" | "reset" | "submit";
|
|
1093
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1094
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1095
|
+
created?: (() => void) | (() => void)[];
|
|
1096
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1097
|
+
mounted?: (() => void) | (() => void)[];
|
|
1098
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1099
|
+
updated?: (() => void) | (() => void)[];
|
|
1100
|
+
activated?: (() => void) | (() => void)[];
|
|
1101
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1102
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1103
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1104
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1105
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1106
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1107
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1108
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1109
|
+
};
|
|
1110
|
+
$forceUpdate: () => void;
|
|
1111
|
+
$nextTick: nextTick;
|
|
1112
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1113
|
+
} & Readonly<{
|
|
1114
|
+
appearance: "standard" | "accent" | "danger" | "inverse";
|
|
1115
|
+
size: "s" | "m" | "l";
|
|
1116
|
+
type: "button" | "reset" | "submit";
|
|
1117
|
+
}> & Omit<Readonly<{
|
|
1118
|
+
appearance?: "standard" | "accent" | "danger" | "inverse";
|
|
1119
|
+
size?: "s" | "m" | "l";
|
|
1120
|
+
disabled?: boolean;
|
|
1121
|
+
ghost?: boolean;
|
|
1122
|
+
outlined?: boolean;
|
|
1123
|
+
iconPosition?: "left" | "right" | "only";
|
|
1124
|
+
type?: "button" | "reset" | "submit";
|
|
1125
|
+
isLoading?: boolean;
|
|
1126
|
+
}> & Readonly<{}>, "appearance" | "size" | "type"> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
1127
|
+
$slots: Readonly<{
|
|
1128
|
+
default: string;
|
|
1129
|
+
icon?: VNode;
|
|
1130
|
+
}> & {
|
|
1131
|
+
default: string;
|
|
1132
|
+
icon?: VNode;
|
|
1133
|
+
};
|
|
1134
|
+
}) | null;
|
|
1135
|
+
}, HTMLDivElement>;
|
|
1136
|
+
|
|
1137
|
+
export declare const MQuantitySelector: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
864
1138
|
"update:modelValue": (value: number) => any;
|
|
865
|
-
}, string, PublicProps, Readonly<
|
|
1139
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
866
1140
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
867
1141
|
}>, {
|
|
868
1142
|
size: "s" | "m";
|
|
@@ -875,46 +1149,54 @@ incrementlabel: string;
|
|
|
875
1149
|
decrementLabel: string;
|
|
876
1150
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
877
1151
|
|
|
878
|
-
export declare const MRadio: DefineComponent<
|
|
1152
|
+
export declare const MRadio: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
879
1153
|
"update:modelValue": (value: boolean) => any;
|
|
880
|
-
}, string, PublicProps, Readonly<
|
|
1154
|
+
}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
|
|
881
1155
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
882
1156
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
883
1157
|
|
|
884
|
-
export declare const MRadioGroup: DefineComponent<
|
|
1158
|
+
export declare const MRadioGroup: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
885
1159
|
"update:modelValue": (value: string) => any;
|
|
886
|
-
}, string, PublicProps, Readonly<
|
|
1160
|
+
}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{
|
|
887
1161
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
888
1162
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
889
1163
|
|
|
890
|
-
export declare const MSelect: DefineComponent<
|
|
1164
|
+
export declare const MSelect: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
891
1165
|
"update:modelValue": (value: string | number) => any;
|
|
892
|
-
}, string, PublicProps, Readonly<
|
|
1166
|
+
}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
|
|
893
1167
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
894
1168
|
}>, {
|
|
895
1169
|
size: "s" | "m";
|
|
896
1170
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSelectElement>;
|
|
897
1171
|
|
|
898
|
-
export declare const MStatusBadge: DefineComponent<
|
|
899
|
-
|
|
1172
|
+
export declare const MStatusBadge: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {
|
|
1173
|
+
status: "info" | "success" | "warning" | "error" | "neutral";
|
|
900
1174
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
901
1175
|
|
|
902
|
-
export declare const
|
|
1176
|
+
export declare const MStatusNotification: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1177
|
+
|
|
1178
|
+
export declare const MTextArea: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
903
1179
|
"update:modelValue": (value: string | number) => any;
|
|
904
|
-
}, string, PublicProps, Readonly<
|
|
1180
|
+
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
905
1181
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
906
1182
|
}>, {
|
|
907
1183
|
rows: number;
|
|
908
1184
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTextAreaElement>;
|
|
909
1185
|
|
|
910
|
-
export declare const MTextInput:
|
|
1186
|
+
export declare const MTextInput: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
911
1187
|
|
|
912
|
-
export declare const MToggle: DefineComponent<
|
|
1188
|
+
export declare const MToggle: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
913
1189
|
"update:modelValue": (value: boolean) => any;
|
|
914
|
-
}, string, PublicProps, Readonly<
|
|
1190
|
+
}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{
|
|
915
1191
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
916
1192
|
}>, {
|
|
917
1193
|
size: "s" | "m";
|
|
918
1194
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
919
1195
|
|
|
1196
|
+
export declare const MToggleGroup: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1197
|
+
"update:modelValue": (value: string[]) => any;
|
|
1198
|
+
}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
|
|
1199
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
1200
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1201
|
+
|
|
920
1202
|
export { }
|