@mozaic-ds/vue 2.7.0 → 2.8.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 +165 -97
- package/dist/mozaic-vue.js +2920 -1011
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +5 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +3 -2
- package/src/components/drawer/MDrawer.spec.ts +68 -1
- package/src/components/drawer/MDrawer.vue +30 -6
- package/src/components/drawer/README.md +1 -0
- package/src/components/iconbutton/MIconButton.vue +5 -0
- package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
- package/src/components/modal/MModal.spec.ts +36 -1
- package/src/components/modal/MModal.vue +11 -1
- package/src/components/modal/README.md +1 -0
- package/src/components/phonenumber/MPhoneNumber.spec.ts +294 -0
- package/src/components/phonenumber/MPhoneNumber.stories.ts +88 -0
- package/src/components/phonenumber/MPhoneNumber.vue +271 -0
- package/src/components/phonenumber/README.md +26 -0
- package/src/components/pincode/README.md +1 -1
- package/src/components/quantityselector/MQuantitySelector.stories.ts +0 -7
- package/src/components/togglegroup/MToggleGroup.vue +0 -2
- package/src/components/togglegroup/README.md +1 -1
- package/src/main.ts +1 -0
package/dist/mozaic-vue.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
7
7
|
import { ComponentOptionsMixin } from 'vue';
|
|
8
8
|
import { ComponentProvideOptions } from 'vue';
|
|
9
9
|
import { ComponentPublicInstance } from 'vue';
|
|
10
|
+
import { CountryCode } from 'libphonenumber-js';
|
|
10
11
|
import { DebuggerEvent } from 'vue';
|
|
11
12
|
import { DefineComponent } from 'vue';
|
|
12
13
|
import { GlobalComponents } from 'vue';
|
|
@@ -41,17 +42,17 @@ closable: boolean;
|
|
|
41
42
|
|
|
42
43
|
declare const __VLS_component_12: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
43
44
|
|
|
44
|
-
declare const __VLS_component_13: DefineComponent<
|
|
45
|
+
declare const __VLS_component_13: DefineComponent<__VLS_Props_35, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
45
46
|
close: () => any;
|
|
46
|
-
}, string, PublicProps, Readonly<
|
|
47
|
+
}, string, PublicProps, Readonly<__VLS_Props_35> & Readonly<{
|
|
47
48
|
onClose?: (() => any) | undefined;
|
|
48
49
|
}>, {
|
|
49
50
|
status: "info" | "success" | "warning" | "error";
|
|
50
51
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
51
52
|
|
|
52
|
-
declare const __VLS_component_14: DefineComponent<
|
|
53
|
+
declare const __VLS_component_14: DefineComponent<__VLS_Props_39, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
53
54
|
"update:modelValue": (value: string | number) => any;
|
|
54
|
-
}, string, PublicProps, Readonly<
|
|
55
|
+
}, string, PublicProps, Readonly<__VLS_Props_39> & Readonly<{
|
|
55
56
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
56
57
|
}>, {
|
|
57
58
|
size: "s" | "m";
|
|
@@ -59,16 +60,16 @@ clearLabel: string;
|
|
|
59
60
|
inputType: "date" | "email" | "number" | "password" | "search" | "tel" | "text";
|
|
60
61
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
61
62
|
|
|
62
|
-
declare const __VLS_component_15: DefineComponent<
|
|
63
|
+
declare const __VLS_component_15: DefineComponent<__VLS_Props_40, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
63
64
|
"update:open": (value: boolean) => any;
|
|
64
|
-
}, string, PublicProps, Readonly<
|
|
65
|
+
}, string, PublicProps, Readonly<__VLS_Props_40> & Readonly<{
|
|
65
66
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
66
67
|
}>, {
|
|
67
68
|
status: "info" | "success" | "warning" | "error";
|
|
68
69
|
closable: boolean;
|
|
69
70
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
70
71
|
|
|
71
|
-
declare const __VLS_component_16: DefineComponent<
|
|
72
|
+
declare const __VLS_component_16: DefineComponent<__VLS_Props_43, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_43> & Readonly<{}>, {
|
|
72
73
|
position: "top" | "bottom" | "left" | "right";
|
|
73
74
|
pointer: boolean;
|
|
74
75
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -167,6 +168,10 @@ declare type __VLS_Props_11 = {
|
|
|
167
168
|
* Title of the content of the drawer.
|
|
168
169
|
*/
|
|
169
170
|
contentTitle?: string;
|
|
171
|
+
/**
|
|
172
|
+
* if `true`, close the drawer when clicking the overlay.
|
|
173
|
+
*/
|
|
174
|
+
closeOnOverlay?: boolean;
|
|
170
175
|
};
|
|
171
176
|
|
|
172
177
|
/**
|
|
@@ -426,6 +431,10 @@ declare type __VLS_Props_21 = {
|
|
|
426
431
|
* if `true`, display the close button.
|
|
427
432
|
*/
|
|
428
433
|
closable?: boolean;
|
|
434
|
+
/**
|
|
435
|
+
* if `true`, close the modal when clicking the overlay.
|
|
436
|
+
*/
|
|
437
|
+
closeOnOverlay?: boolean;
|
|
429
438
|
};
|
|
430
439
|
|
|
431
440
|
/**
|
|
@@ -540,9 +549,55 @@ declare type __VLS_Props_25 = {
|
|
|
540
549
|
};
|
|
541
550
|
|
|
542
551
|
/**
|
|
543
|
-
* A
|
|
552
|
+
* A phone number input is a specialized input field designed to capture and validate phone numbers, ensuring correct formatting based on country-specific dialing codes. It often includes a country selector that automatically adjusts the international dialing code. This component improves user experience by standardizing phone number entries, reducing errors, and facilitating global compatibility. It is commonly used in registration forms, authentication flows, and contact information fields.
|
|
544
553
|
*/
|
|
545
554
|
declare type __VLS_Props_26 = {
|
|
555
|
+
/**
|
|
556
|
+
* A unique identifier for the phone number input element, used to associate the label with the form element.
|
|
557
|
+
*/
|
|
558
|
+
id: string;
|
|
559
|
+
/**
|
|
560
|
+
* The current value of the phone number input field.
|
|
561
|
+
*/
|
|
562
|
+
modelValue?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Default country code for phone number formatting (e.g., 'FR', 'US', 'PT').
|
|
565
|
+
*/
|
|
566
|
+
defaultCountry?: CountryCode;
|
|
567
|
+
/**
|
|
568
|
+
* A placeholder text to show in the phone number input when it is empty.
|
|
569
|
+
*/
|
|
570
|
+
placeholder?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Determines the size of the phone number input.
|
|
573
|
+
*/
|
|
574
|
+
size?: 's' | 'm';
|
|
575
|
+
/**
|
|
576
|
+
* If `true`, applies an invalid state to the password input.
|
|
577
|
+
*/
|
|
578
|
+
isInvalid?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* If `true`, disables the input, making it non-interactive.
|
|
581
|
+
*/
|
|
582
|
+
disabled?: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* If `true`, the input is read-only (cannot be edited).
|
|
585
|
+
*/
|
|
586
|
+
readonly?: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* If `true`, display the country calling code prefix (+33, +1, etc.).
|
|
589
|
+
*/
|
|
590
|
+
prefix?: boolean;
|
|
591
|
+
/**
|
|
592
|
+
* If `true`, display the country flag selector
|
|
593
|
+
*/
|
|
594
|
+
flag?: boolean;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* A pincode input is a specialized input field used to enter short numeric codes, such as verification codes, security PINs, or authentication tokens. It typically separates each digit into individual fields to improve readability and ease of entry. This component is commonly used in two-factor authentication (2FA), password recovery, and secure access flows, ensuring a structured and user-friendly experience.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#input).
|
|
599
|
+
*/
|
|
600
|
+
declare type __VLS_Props_27 = {
|
|
546
601
|
/**
|
|
547
602
|
* A unique identifier for the pincode element, used to associate the label with the form element.
|
|
548
603
|
*/
|
|
@@ -576,7 +631,7 @@ declare type __VLS_Props_26 = {
|
|
|
576
631
|
/**
|
|
577
632
|
* A quantity selector is an input component that allows users to increment or decrement a numeric value, typically using plus (+) and minus (−) buttons. It provides a simple and efficient way to adjust quantities without manual typing, ensuring controlled input. This component is commonly used in e-commerce, inventory management, and settings where users need to specify amounts.
|
|
578
633
|
*/
|
|
579
|
-
declare type
|
|
634
|
+
declare type __VLS_Props_28 = {
|
|
580
635
|
/**
|
|
581
636
|
* A unique identifier for the quantity selector element, used to associate the label with the form element.
|
|
582
637
|
*/
|
|
@@ -630,7 +685,7 @@ declare type __VLS_Props_27 = {
|
|
|
630
685
|
/**
|
|
631
686
|
* A radio button is a selection control that allows users to choose a single option from a list of mutually exclusive choices. Unlike checkboxes, only one option can be selected at a time within the same group. Radio Buttons are commonly used in forms, surveys, and settings where a single choice must be made.
|
|
632
687
|
*/
|
|
633
|
-
declare type
|
|
688
|
+
declare type __VLS_Props_29 = {
|
|
634
689
|
/**
|
|
635
690
|
* A unique identifier for the radio, used to associate the label with the form element.
|
|
636
691
|
*/
|
|
@@ -657,38 +712,6 @@ declare type __VLS_Props_28 = {
|
|
|
657
712
|
disabled?: boolean;
|
|
658
713
|
};
|
|
659
714
|
|
|
660
|
-
/**
|
|
661
|
-
* A radio button is a selection control that allows users to choose a single option from a list of mutually exclusive choices. Unlike checkboxes, only one option can be selected at a time within the same group. Radio Buttons are commonly used in forms, surveys, and settings where a single choice must be made.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field Group section](/docs/form-elements-field-group--docs#radio-group).
|
|
662
|
-
*/
|
|
663
|
-
declare type __VLS_Props_29 = {
|
|
664
|
-
/**
|
|
665
|
-
* The name attribute for the radio element, typically used for form submission.
|
|
666
|
-
*/
|
|
667
|
-
name: string;
|
|
668
|
-
/**
|
|
669
|
-
* Property used to manage the values checked by v-model
|
|
670
|
-
* (Do not use directly)
|
|
671
|
-
*/
|
|
672
|
-
modelValue?: string;
|
|
673
|
-
/**
|
|
674
|
-
* list of properties of each radio button of the radio group
|
|
675
|
-
*/
|
|
676
|
-
options: Array<{
|
|
677
|
-
id: string;
|
|
678
|
-
label: string;
|
|
679
|
-
value: string;
|
|
680
|
-
disabled?: boolean;
|
|
681
|
-
}>;
|
|
682
|
-
/**
|
|
683
|
-
* If `true`, applies an invalid state to the radio group.
|
|
684
|
-
*/
|
|
685
|
-
isInvalid?: boolean;
|
|
686
|
-
/**
|
|
687
|
-
* If `true`, make the form element of the group inline.
|
|
688
|
-
*/
|
|
689
|
-
inline?: boolean;
|
|
690
|
-
};
|
|
691
|
-
|
|
692
715
|
/**
|
|
693
716
|
* Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
|
|
694
717
|
*/
|
|
@@ -728,9 +751,41 @@ declare type __VLS_Props_3 = {
|
|
|
728
751
|
};
|
|
729
752
|
|
|
730
753
|
/**
|
|
731
|
-
* A
|
|
754
|
+
* A radio button is a selection control that allows users to choose a single option from a list of mutually exclusive choices. Unlike checkboxes, only one option can be selected at a time within the same group. Radio Buttons are commonly used in forms, surveys, and settings where a single choice must be made.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field Group section](/docs/form-elements-field-group--docs#radio-group).
|
|
732
755
|
*/
|
|
733
756
|
declare type __VLS_Props_30 = {
|
|
757
|
+
/**
|
|
758
|
+
* The name attribute for the radio element, typically used for form submission.
|
|
759
|
+
*/
|
|
760
|
+
name: string;
|
|
761
|
+
/**
|
|
762
|
+
* Property used to manage the values checked by v-model
|
|
763
|
+
* (Do not use directly)
|
|
764
|
+
*/
|
|
765
|
+
modelValue?: string;
|
|
766
|
+
/**
|
|
767
|
+
* list of properties of each radio button of the radio group
|
|
768
|
+
*/
|
|
769
|
+
options: Array<{
|
|
770
|
+
id: string;
|
|
771
|
+
label: string;
|
|
772
|
+
value: string;
|
|
773
|
+
disabled?: boolean;
|
|
774
|
+
}>;
|
|
775
|
+
/**
|
|
776
|
+
* If `true`, applies an invalid state to the radio group.
|
|
777
|
+
*/
|
|
778
|
+
isInvalid?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* If `true`, make the form element of the group inline.
|
|
781
|
+
*/
|
|
782
|
+
inline?: boolean;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* A Segmented Control allows users to switch between multiple options or views within a single container. It provides a compact and efficient way to toggle between sections without requiring a dropdown or separate navigation. Segmented Controls are commonly used in filters, tabbed navigation, and content selection to enhance user interaction and accessibility.
|
|
787
|
+
*/
|
|
788
|
+
declare type __VLS_Props_31 = {
|
|
734
789
|
/**
|
|
735
790
|
* The selected segment index, bound via v-model.
|
|
736
791
|
*/
|
|
@@ -757,7 +812,7 @@ declare type __VLS_Props_30 = {
|
|
|
757
812
|
/**
|
|
758
813
|
* A select component allows users to choose a single option from a predefined list within a native dropdown menu. It helps simplify input by displaying only relevant choices, reducing the need for manual text entry. Select components are commonly used in forms, settings, and filters where structured selection is required.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#select).
|
|
759
814
|
*/
|
|
760
|
-
declare type
|
|
815
|
+
declare type __VLS_Props_32 = {
|
|
761
816
|
/**
|
|
762
817
|
* A unique identifier for the select, used to associate the label with the form element.
|
|
763
818
|
*/
|
|
@@ -805,7 +860,7 @@ declare type __VLS_Props_31 = {
|
|
|
805
860
|
/**
|
|
806
861
|
* A Status Badge is used to indicate the current status of an element, providing a clear and concise visual cue. The status can change dynamically based on updates, events, or conditions within the system. Status Badges help users quickly identify the state of an item, such as an order status, system health, or process completion. They are often color-coded to enhance readability and recognition.
|
|
807
862
|
*/
|
|
808
|
-
declare type
|
|
863
|
+
declare type __VLS_Props_33 = {
|
|
809
864
|
/**
|
|
810
865
|
* Content of the status badge
|
|
811
866
|
*/
|
|
@@ -819,7 +874,7 @@ declare type __VLS_Props_32 = {
|
|
|
819
874
|
/**
|
|
820
875
|
* A Status dot is a small visual indicator used to represent the state or condition of an element. It is often color-coded to convey different statuses at a glance, such as availability, activity, or urgency. Status Dots are commonly found in user presence indicators, system statuses, or process tracking to provide quick, unobtrusive feedback.
|
|
821
876
|
*/
|
|
822
|
-
declare type
|
|
877
|
+
declare type __VLS_Props_34 = {
|
|
823
878
|
/**
|
|
824
879
|
* Allows to define the status dot type.
|
|
825
880
|
*/
|
|
@@ -833,7 +888,7 @@ declare type __VLS_Props_33 = {
|
|
|
833
888
|
/**
|
|
834
889
|
* 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.
|
|
835
890
|
*/
|
|
836
|
-
declare type
|
|
891
|
+
declare type __VLS_Props_35 = {
|
|
837
892
|
/**
|
|
838
893
|
* Title of the status notification.
|
|
839
894
|
*/
|
|
@@ -855,7 +910,7 @@ declare type __VLS_Props_34 = {
|
|
|
855
910
|
/**
|
|
856
911
|
* Tabs are a navigation component that allows users to switch between different sections within the same context. They help organize content efficiently by displaying only one section at a time, reducing clutter and improving accessibility. Tabs can include icons, labels, and notification badges to provide additional context. They are commonly used in dashboards, product management, and settings interfaces.
|
|
857
912
|
*/
|
|
858
|
-
declare type
|
|
913
|
+
declare type __VLS_Props_36 = {
|
|
859
914
|
/**
|
|
860
915
|
* A description indicating the purpose of the set of tabs. Useful for improving the accessibility of the component.
|
|
861
916
|
*/
|
|
@@ -898,7 +953,7 @@ declare type __VLS_Props_35 = {
|
|
|
898
953
|
/**
|
|
899
954
|
* A Tag is a UI element used to filter data, categorize, select or deselect an option. It can appear standalone, in a group, or embedded within other components. Depending on its use, a tag can be interactive (clickable, removable, selectable) or static (serving as a visual indicator).
|
|
900
955
|
*/
|
|
901
|
-
declare type
|
|
956
|
+
declare type __VLS_Props_37 = {
|
|
902
957
|
/**
|
|
903
958
|
* Defines the behavior and layout of the tag.
|
|
904
959
|
*/
|
|
@@ -940,7 +995,7 @@ declare type __VLS_Props_36 = {
|
|
|
940
995
|
/**
|
|
941
996
|
* A text area is an input designed for multi-line text entry, allowing users to input longer content compared to a standard text input. It is commonly used for comments, feedback, descriptions, and messaging. Text areas can be resizable or fixed in height, depending on the context, and often include placeholder text, character limits, and validation messages to guide users.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#textarea).
|
|
942
997
|
*/
|
|
943
|
-
declare type
|
|
998
|
+
declare type __VLS_Props_38 = {
|
|
944
999
|
/**
|
|
945
1000
|
* A unique identifier for the textarea, used to associate the label with the form element.
|
|
946
1001
|
*/
|
|
@@ -986,7 +1041,7 @@ declare type __VLS_Props_37 = {
|
|
|
986
1041
|
/**
|
|
987
1042
|
* A text input is a single-line input that allows users to enter and edit short text-based content. It is commonly used for names, email addresses, search queries, and form entries. Text Inputs often include placeholders, validation rules, and assistive text to guide users and ensure accurate data entry.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#input).
|
|
988
1043
|
*/
|
|
989
|
-
declare type
|
|
1044
|
+
declare type __VLS_Props_39 = {
|
|
990
1045
|
/**
|
|
991
1046
|
* A unique identifier for the input element, used to associate the label with the form element.
|
|
992
1047
|
*/
|
|
@@ -1033,10 +1088,28 @@ declare type __VLS_Props_38 = {
|
|
|
1033
1088
|
clearLabel?: string;
|
|
1034
1089
|
};
|
|
1035
1090
|
|
|
1091
|
+
/**
|
|
1092
|
+
* A callout is used to highlight additional information that can assist users with tips, extra details, or helpful guidance, without signaling a critical status or alert. Unlike notifications, callouts are not triggered by user actions and do not correspond to specific system states. They are designed to enhance the user experience by providing contextually relevant information that supports comprehension and usability.
|
|
1093
|
+
*/
|
|
1094
|
+
declare type __VLS_Props_4 = {
|
|
1095
|
+
/**
|
|
1096
|
+
* Title of the callout.
|
|
1097
|
+
*/
|
|
1098
|
+
title: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Description of the callout.
|
|
1101
|
+
*/
|
|
1102
|
+
description: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Allows to define the callout appearance.
|
|
1105
|
+
*/
|
|
1106
|
+
appearance?: 'standard' | 'accent' | 'tips' | 'inverse';
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1036
1109
|
/**
|
|
1037
1110
|
* A toaster is a temporary notification that appears briefly on the screen to provide feedback or updates without interrupting the user’s workflow. It is commonly used for success messages, warnings, errors, or informational updates. Toasters can disappear automatically after a few seconds, be dismissed manually via a close button, or be removed when the user performs a relevant action. They typically include an icon, a short message, and an optional close button for better usability.
|
|
1038
1111
|
*/
|
|
1039
|
-
declare type
|
|
1112
|
+
declare type __VLS_Props_40 = {
|
|
1040
1113
|
/**
|
|
1041
1114
|
* If `true`, display the Toaster.
|
|
1042
1115
|
*/
|
|
@@ -1067,28 +1140,10 @@ declare type __VLS_Props_39 = {
|
|
|
1067
1140
|
timeout?: number;
|
|
1068
1141
|
};
|
|
1069
1142
|
|
|
1070
|
-
/**
|
|
1071
|
-
* A callout is used to highlight additional information that can assist users with tips, extra details, or helpful guidance, without signaling a critical status or alert. Unlike notifications, callouts are not triggered by user actions and do not correspond to specific system states. They are designed to enhance the user experience by providing contextually relevant information that supports comprehension and usability.
|
|
1072
|
-
*/
|
|
1073
|
-
declare type __VLS_Props_4 = {
|
|
1074
|
-
/**
|
|
1075
|
-
* Title of the callout.
|
|
1076
|
-
*/
|
|
1077
|
-
title: string;
|
|
1078
|
-
/**
|
|
1079
|
-
* Description of the callout.
|
|
1080
|
-
*/
|
|
1081
|
-
description: string;
|
|
1082
|
-
/**
|
|
1083
|
-
* Allows to define the callout appearance.
|
|
1084
|
-
*/
|
|
1085
|
-
appearance?: 'standard' | 'accent' | 'tips' | 'inverse';
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
1143
|
/**
|
|
1089
1144
|
* A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.
|
|
1090
1145
|
*/
|
|
1091
|
-
declare type
|
|
1146
|
+
declare type __VLS_Props_41 = {
|
|
1092
1147
|
/**
|
|
1093
1148
|
* A unique identifier for the toggle, used to associate the label with the form element.
|
|
1094
1149
|
*/
|
|
@@ -1118,7 +1173,7 @@ declare type __VLS_Props_40 = {
|
|
|
1118
1173
|
/**
|
|
1119
1174
|
* A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field Group section](/docs/form-elements-field-group--docs#toggle-group).
|
|
1120
1175
|
*/
|
|
1121
|
-
declare type
|
|
1176
|
+
declare type __VLS_Props_42 = {
|
|
1122
1177
|
/**
|
|
1123
1178
|
* The name attribute for the toggle element, typically used for form submission.
|
|
1124
1179
|
*/
|
|
@@ -1136,7 +1191,6 @@ declare type __VLS_Props_41 = {
|
|
|
1136
1191
|
label: string;
|
|
1137
1192
|
value: string;
|
|
1138
1193
|
disabled?: boolean;
|
|
1139
|
-
isInvalid?: boolean;
|
|
1140
1194
|
size?: 's' | 'm';
|
|
1141
1195
|
}>;
|
|
1142
1196
|
/**
|
|
@@ -1148,7 +1202,7 @@ declare type __VLS_Props_41 = {
|
|
|
1148
1202
|
/**
|
|
1149
1203
|
* A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element.
|
|
1150
1204
|
*/
|
|
1151
|
-
declare type
|
|
1205
|
+
declare type __VLS_Props_43 = {
|
|
1152
1206
|
/**
|
|
1153
1207
|
* A unique identifier for the tooltip, used to describe the tooltip.
|
|
1154
1208
|
*/
|
|
@@ -1946,17 +2000,31 @@ icon?: VNode;
|
|
|
1946
2000
|
}) | null;
|
|
1947
2001
|
}, any>;
|
|
1948
2002
|
|
|
1949
|
-
export declare const
|
|
2003
|
+
export declare const MPhoneNumber: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1950
2004
|
"update:modelValue": (value: string) => any;
|
|
2005
|
+
valid: (isValid: boolean) => any;
|
|
1951
2006
|
}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
|
|
1952
2007
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2008
|
+
onValid?: ((isValid: boolean) => any) | undefined;
|
|
2009
|
+
}>, {
|
|
2010
|
+
size: "s" | "m";
|
|
2011
|
+
modelValue: string;
|
|
2012
|
+
defaultCountry: CountryCode;
|
|
2013
|
+
prefix: boolean;
|
|
2014
|
+
flag: boolean;
|
|
2015
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2016
|
+
|
|
2017
|
+
export declare const MPincode: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2018
|
+
"update:modelValue": (value: string) => any;
|
|
2019
|
+
}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{
|
|
2020
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1953
2021
|
}>, {
|
|
1954
2022
|
length: 4 | 5 | 6;
|
|
1955
2023
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1956
2024
|
|
|
1957
|
-
export declare const MQuantitySelector: DefineComponent<
|
|
2025
|
+
export declare const MQuantitySelector: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1958
2026
|
"update:modelValue": (value: number) => any;
|
|
1959
|
-
}, string, PublicProps, Readonly<
|
|
2027
|
+
}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{
|
|
1960
2028
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1961
2029
|
}>, {
|
|
1962
2030
|
size: "s" | "m";
|
|
@@ -1969,48 +2037,48 @@ incrementlabel: string;
|
|
|
1969
2037
|
decrementLabel: string;
|
|
1970
2038
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1971
2039
|
|
|
1972
|
-
export declare const MRadio: DefineComponent<
|
|
2040
|
+
export declare const MRadio: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1973
2041
|
"update:modelValue": (value: boolean) => any;
|
|
1974
|
-
}, string, PublicProps, Readonly<
|
|
2042
|
+
}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{
|
|
1975
2043
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1976
2044
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1977
2045
|
|
|
1978
|
-
export declare const MRadioGroup: DefineComponent<
|
|
2046
|
+
export declare const MRadioGroup: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1979
2047
|
"update:modelValue": (value: string) => any;
|
|
1980
|
-
}, string, PublicProps, Readonly<
|
|
2048
|
+
}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{
|
|
1981
2049
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1982
2050
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1983
2051
|
|
|
1984
|
-
export declare const MSegmentedControl: DefineComponent<
|
|
2052
|
+
export declare const MSegmentedControl: DefineComponent<__VLS_Props_31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1985
2053
|
"update:modelValue": (value: number) => any;
|
|
1986
|
-
}, string, PublicProps, Readonly<
|
|
2054
|
+
}, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{
|
|
1987
2055
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1988
2056
|
}>, {
|
|
1989
2057
|
size: "s" | "m";
|
|
1990
2058
|
modelValue: number;
|
|
1991
2059
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1992
2060
|
|
|
1993
|
-
export declare const MSelect: DefineComponent<
|
|
2061
|
+
export declare const MSelect: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1994
2062
|
"update:modelValue": (value: string | number) => any;
|
|
1995
|
-
}, string, PublicProps, Readonly<
|
|
2063
|
+
}, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
|
|
1996
2064
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
1997
2065
|
}>, {
|
|
1998
2066
|
size: "s" | "m";
|
|
1999
2067
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2000
2068
|
|
|
2001
|
-
export declare const MStatusBadge: DefineComponent<
|
|
2069
|
+
export declare const MStatusBadge: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {
|
|
2002
2070
|
status: "info" | "success" | "warning" | "error" | "neutral";
|
|
2003
2071
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2004
2072
|
|
|
2005
|
-
export declare const MStatusDot: DefineComponent<
|
|
2073
|
+
export declare const MStatusDot: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {
|
|
2006
2074
|
status: "info" | "success" | "warning" | "error" | "neutral";
|
|
2007
2075
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
2008
2076
|
|
|
2009
2077
|
export declare const MStatusNotification: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
2010
2078
|
|
|
2011
|
-
export declare const MTabs: DefineComponent<
|
|
2079
|
+
export declare const MTabs: DefineComponent<__VLS_Props_36, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2012
2080
|
"update:modelValue": (value: number) => any;
|
|
2013
|
-
}, string, PublicProps, Readonly<
|
|
2081
|
+
}, string, PublicProps, Readonly<__VLS_Props_36> & Readonly<{
|
|
2014
2082
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
2015
2083
|
}>, {
|
|
2016
2084
|
modelValue: number;
|
|
@@ -2019,10 +2087,10 @@ divider: boolean;
|
|
|
2019
2087
|
tab: HTMLButtonElement;
|
|
2020
2088
|
}, HTMLElement>;
|
|
2021
2089
|
|
|
2022
|
-
export declare const MTag: DefineComponent<
|
|
2090
|
+
export declare const MTag: DefineComponent<__VLS_Props_37, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2023
2091
|
"update:modelValue": (value: boolean) => any;
|
|
2024
2092
|
"remove-tag": (id: string) => any;
|
|
2025
|
-
}, string, PublicProps, Readonly<
|
|
2093
|
+
}, string, PublicProps, Readonly<__VLS_Props_37> & Readonly<{
|
|
2026
2094
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2027
2095
|
"onRemove-tag"?: ((id: string) => any) | undefined;
|
|
2028
2096
|
}>, {
|
|
@@ -2030,9 +2098,9 @@ type: "informative" | "interactive" | "contextualised" | "removable" | "selectab
|
|
|
2030
2098
|
contextualisedNumber: number;
|
|
2031
2099
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2032
2100
|
|
|
2033
|
-
export declare const MTextArea: DefineComponent<
|
|
2101
|
+
export declare const MTextArea: DefineComponent<__VLS_Props_38, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2034
2102
|
"update:modelValue": (value: string | number) => any;
|
|
2035
|
-
}, string, PublicProps, Readonly<
|
|
2103
|
+
}, string, PublicProps, Readonly<__VLS_Props_38> & Readonly<{
|
|
2036
2104
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
2037
2105
|
}>, {
|
|
2038
2106
|
rows: number;
|
|
@@ -2042,17 +2110,17 @@ export declare const MTextInput: __VLS_WithTemplateSlots_14<typeof __VLS_compone
|
|
|
2042
2110
|
|
|
2043
2111
|
export declare const MToaster: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
2044
2112
|
|
|
2045
|
-
export declare const MToggle: DefineComponent<
|
|
2113
|
+
export declare const MToggle: DefineComponent<__VLS_Props_41, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2046
2114
|
"update:modelValue": (value: boolean) => any;
|
|
2047
|
-
}, string, PublicProps, Readonly<
|
|
2115
|
+
}, string, PublicProps, Readonly<__VLS_Props_41> & Readonly<{
|
|
2048
2116
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2049
2117
|
}>, {
|
|
2050
2118
|
size: "s" | "m";
|
|
2051
2119
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2052
2120
|
|
|
2053
|
-
export declare const MToggleGroup: DefineComponent<
|
|
2121
|
+
export declare const MToggleGroup: DefineComponent<__VLS_Props_42, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2054
2122
|
"update:modelValue": (value: string[]) => any;
|
|
2055
|
-
}, string, PublicProps, Readonly<
|
|
2123
|
+
}, string, PublicProps, Readonly<__VLS_Props_42> & Readonly<{
|
|
2056
2124
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
2057
2125
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2058
2126
|
|