@ironsource/shared-ui 2.1.6-rc.4 → 2.1.6-rc.41
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/Alert.vue_vue_type_style_index_0_scoped_5cdc75dd_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +23 -0
- package/components/alert/Alert.vue.js +3 -3
- package/components/alert/Alert.vue2.js +68 -48
- package/components/alert/index.d.ts +85 -2
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +6 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +45 -37
- package/components/autocomplete/index.d.ts +21 -1
- package/components/button/v4/ButtonV4.vue.d.ts +7 -7
- package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
- package/components/button/v4/index.d.ts +61 -61
- package/components/chip/v4/Chip.types.d.ts +6 -0
- package/components/chip/v4/ChipV4.vue.d.ts +28 -35
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +28 -59
- package/components/chip/v4/index.d.ts +45 -148
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +74 -69
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +16 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
- package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -3
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +127 -114
- package/components/dropdown/v4/OptionV4.vue.d.ts +14 -3
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +79 -56
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +422 -38
- package/components/dropdown/v4/index.js +7 -4
- package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
- package/components/emptyState/v3/index.d.ts +47 -47
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/icon/v4/Icon.types.d.ts +1 -1
- package/components/icon/v4/IconV4.vue.d.ts +16 -6
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/layout/FoldableSection.vue.js +5 -5
- package/components/layout/FoldableSection.vue2.js +1 -1
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +9 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +180 -176
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/components/table/v4/index.d.ts +29 -5
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/toggle/v4/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/composables/useFormValidation.js +19 -13
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +1451 -688
- package/mocks/apps.d.ts +1 -0
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_62faa8e0_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_07687bcc_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
|
@@ -1,165 +1,62 @@
|
|
|
1
|
-
declare const ChipTypes: () => ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
disabled: {
|
|
13
|
-
type: import("vue").PropType<boolean>;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
testId: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
selected: {
|
|
21
|
-
type: import("vue").PropType<boolean>;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
prefix: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
default: any;
|
|
27
|
-
};
|
|
28
|
-
clearable: {
|
|
29
|
-
type: import("vue").PropType<boolean>;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
}>> & {
|
|
33
|
-
onCleared?: (...args: any[]) => any;
|
|
34
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "testId" | "selected" | "prefix" | "clearable">;
|
|
35
|
-
$attrs: {
|
|
36
|
-
[x: string]: unknown;
|
|
37
|
-
};
|
|
38
|
-
$refs: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
};
|
|
41
|
-
$slots: Readonly<{
|
|
42
|
-
[name: string]: import("vue").Slot;
|
|
43
|
-
}>;
|
|
44
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
45
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
46
|
-
$emit: (event: "cleared", ...args: any[]) => void;
|
|
47
|
-
$el: any;
|
|
48
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
-
disabled: {
|
|
50
|
-
type: import("vue").PropType<boolean>;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
testId: {
|
|
54
|
-
type: import("vue").PropType<string>;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
|
-
selected: {
|
|
58
|
-
type: import("vue").PropType<boolean>;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
prefix: {
|
|
62
|
-
type: import("vue").PropType<string>;
|
|
63
|
-
default: any;
|
|
64
|
-
};
|
|
65
|
-
clearable: {
|
|
66
|
-
type: import("vue").PropType<boolean>;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
}>> & {
|
|
70
|
-
onCleared?: (...args: any[]) => any;
|
|
71
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
72
|
-
cleared: (...args: any[]) => void;
|
|
73
|
-
}, string, {
|
|
74
|
-
disabled: boolean;
|
|
75
|
-
testId: string;
|
|
76
|
-
selected: boolean;
|
|
77
|
-
prefix: string;
|
|
78
|
-
clearable: boolean;
|
|
79
|
-
}, {}, string> & {
|
|
80
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
81
|
-
created?: (() => void) | (() => void)[];
|
|
82
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
83
|
-
mounted?: (() => void) | (() => void)[];
|
|
84
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
85
|
-
updated?: (() => void) | (() => void)[];
|
|
86
|
-
activated?: (() => void) | (() => void)[];
|
|
87
|
-
deactivated?: (() => void) | (() => void)[];
|
|
88
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
89
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
90
|
-
destroyed?: (() => void) | (() => void)[];
|
|
91
|
-
unmounted?: (() => void) | (() => void)[];
|
|
92
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
93
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
94
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
95
|
-
};
|
|
96
|
-
$forceUpdate: () => void;
|
|
97
|
-
$nextTick: typeof import("vue").nextTick;
|
|
98
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
99
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
-
disabled: {
|
|
101
|
-
type: import("vue").PropType<boolean>;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
testId: {
|
|
105
|
-
type: import("vue").PropType<string>;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
selected: {
|
|
109
|
-
type: import("vue").PropType<boolean>;
|
|
110
|
-
default: boolean;
|
|
111
|
-
};
|
|
112
|
-
prefix: {
|
|
113
|
-
type: import("vue").PropType<string>;
|
|
114
|
-
default: any;
|
|
115
|
-
};
|
|
116
|
-
clearable: {
|
|
117
|
-
type: import("vue").PropType<boolean>;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
|
-
}>> & {
|
|
121
|
-
onCleared?: (...args: any[]) => any;
|
|
122
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
123
|
-
__isFragment?: never;
|
|
124
|
-
__isTeleport?: never;
|
|
125
|
-
__isSuspense?: never;
|
|
126
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1
|
+
declare const ChipTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
variant: {
|
|
8
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
127
11
|
disabled: {
|
|
128
12
|
type: import("vue").PropType<boolean>;
|
|
129
13
|
default: boolean;
|
|
130
14
|
};
|
|
15
|
+
color: {
|
|
16
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
131
23
|
testId: {
|
|
132
24
|
type: import("vue").PropType<string>;
|
|
133
25
|
default: string;
|
|
134
26
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
prefix: {
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
label: {
|
|
140
29
|
type: import("vue").PropType<string>;
|
|
141
|
-
|
|
30
|
+
required: true;
|
|
31
|
+
default: string;
|
|
142
32
|
};
|
|
143
|
-
|
|
33
|
+
variant: {
|
|
34
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
144
38
|
type: import("vue").PropType<boolean>;
|
|
145
39
|
default: boolean;
|
|
146
40
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
41
|
+
color: {
|
|
42
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
testId: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
label: string;
|
|
55
|
+
variant: "filled" | "outlined";
|
|
152
56
|
disabled: boolean;
|
|
57
|
+
color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
|
|
58
|
+
size: "small" | "medium";
|
|
153
59
|
testId: string;
|
|
154
|
-
|
|
155
|
-
prefix: string;
|
|
156
|
-
clearable: boolean;
|
|
157
|
-
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
158
|
-
$slots: {
|
|
159
|
-
"icon-start"?(_: {}): any;
|
|
160
|
-
default?(_: {}): any;
|
|
161
|
-
"icon-end"?(_: {}): any;
|
|
162
|
-
};
|
|
163
|
-
}))[];
|
|
60
|
+
}>[];
|
|
164
61
|
export { default as Chip } from './ChipV4.vue';
|
|
165
62
|
export { ChipTypes };
|
|
@@ -72,8 +72,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
72
|
}, {
|
|
73
73
|
title: string;
|
|
74
74
|
themeClass: string;
|
|
75
|
-
content: string;
|
|
76
75
|
width: string | number;
|
|
76
|
+
content: string;
|
|
77
77
|
testId: string;
|
|
78
78
|
appendToBody: boolean;
|
|
79
79
|
closeDelay: number;
|
|
@@ -5,8 +5,8 @@ declare const DialogTypes: () => ({
|
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
title: string;
|
|
7
7
|
themeClass: string;
|
|
8
|
-
content: string;
|
|
9
8
|
width: string | number;
|
|
9
|
+
content: string;
|
|
10
10
|
testId: string;
|
|
11
11
|
appendToBody: boolean;
|
|
12
12
|
closeDelay: number;
|
|
@@ -26,14 +26,14 @@ declare const DialogTypes: () => ({
|
|
|
26
26
|
type: import("vue").PropType<string>;
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
|
-
content: {
|
|
30
|
-
type: import("vue").PropType<string>;
|
|
31
|
-
default: any;
|
|
32
|
-
};
|
|
33
29
|
width: {
|
|
34
30
|
type: import("vue").PropType<string | number>;
|
|
35
31
|
default: string;
|
|
36
32
|
};
|
|
33
|
+
content: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
37
|
testId: {
|
|
38
38
|
type: import("vue").PropType<string>;
|
|
39
39
|
default: string;
|
|
@@ -82,7 +82,7 @@ declare const DialogTypes: () => ({
|
|
|
82
82
|
onClose?: (reason: import("../common/Reason").Reason) => any;
|
|
83
83
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
84
84
|
onOpen?: () => any;
|
|
85
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "
|
|
85
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "themeClass" | "width" | "content" | "testId" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "headerBorder" | "closeOnClickOutside" | "beforeClose" | "showCloseButton">;
|
|
86
86
|
$attrs: {
|
|
87
87
|
[x: string]: unknown;
|
|
88
88
|
};
|
|
@@ -105,14 +105,14 @@ declare const DialogTypes: () => ({
|
|
|
105
105
|
type: import("vue").PropType<string>;
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
|
-
content: {
|
|
109
|
-
type: import("vue").PropType<string>;
|
|
110
|
-
default: any;
|
|
111
|
-
};
|
|
112
108
|
width: {
|
|
113
109
|
type: import("vue").PropType<string | number>;
|
|
114
110
|
default: string;
|
|
115
111
|
};
|
|
112
|
+
content: {
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
114
|
+
default: any;
|
|
115
|
+
};
|
|
116
116
|
testId: {
|
|
117
117
|
type: import("vue").PropType<string>;
|
|
118
118
|
default: string;
|
|
@@ -168,8 +168,8 @@ declare const DialogTypes: () => ({
|
|
|
168
168
|
}, string, {
|
|
169
169
|
title: string;
|
|
170
170
|
themeClass: string;
|
|
171
|
-
content: string;
|
|
172
171
|
width: string | number;
|
|
172
|
+
content: string;
|
|
173
173
|
testId: string;
|
|
174
174
|
appendToBody: boolean;
|
|
175
175
|
closeDelay: number;
|
|
@@ -209,14 +209,14 @@ declare const DialogTypes: () => ({
|
|
|
209
209
|
type: import("vue").PropType<string>;
|
|
210
210
|
default: string;
|
|
211
211
|
};
|
|
212
|
-
content: {
|
|
213
|
-
type: import("vue").PropType<string>;
|
|
214
|
-
default: any;
|
|
215
|
-
};
|
|
216
212
|
width: {
|
|
217
213
|
type: import("vue").PropType<string | number>;
|
|
218
214
|
default: string;
|
|
219
215
|
};
|
|
216
|
+
content: {
|
|
217
|
+
type: import("vue").PropType<string>;
|
|
218
|
+
default: any;
|
|
219
|
+
};
|
|
220
220
|
testId: {
|
|
221
221
|
type: import("vue").PropType<string>;
|
|
222
222
|
default: string;
|
|
@@ -278,14 +278,14 @@ declare const DialogTypes: () => ({
|
|
|
278
278
|
type: import("vue").PropType<string>;
|
|
279
279
|
default: string;
|
|
280
280
|
};
|
|
281
|
-
content: {
|
|
282
|
-
type: import("vue").PropType<string>;
|
|
283
|
-
default: any;
|
|
284
|
-
};
|
|
285
281
|
width: {
|
|
286
282
|
type: import("vue").PropType<string | number>;
|
|
287
283
|
default: string;
|
|
288
284
|
};
|
|
285
|
+
content: {
|
|
286
|
+
type: import("vue").PropType<string>;
|
|
287
|
+
default: any;
|
|
288
|
+
};
|
|
289
289
|
testId: {
|
|
290
290
|
type: import("vue").PropType<string>;
|
|
291
291
|
default: string;
|
|
@@ -341,8 +341,8 @@ declare const DialogTypes: () => ({
|
|
|
341
341
|
}, string, {
|
|
342
342
|
title: string;
|
|
343
343
|
themeClass: string;
|
|
344
|
-
content: string;
|
|
345
344
|
width: string | number;
|
|
345
|
+
content: string;
|
|
346
346
|
testId: string;
|
|
347
347
|
appendToBody: boolean;
|
|
348
348
|
closeDelay: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DialogV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DialogV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-09c488cf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "../../../DialogV4.
|
|
2
|
-
import { NOOP as
|
|
3
|
-
import
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; import { defineComponent as A, openBlock as o, createBlock as c, Teleport as w, createVNode as b, Transition as I, withCtx as u, unref as e, createElementBlock as m, createElementVNode as C, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as d } from "vue";
|
|
2
|
+
import { NOOP as V } from "@vue/shared";
|
|
3
|
+
import T from "../../typography/v4/Typography.vue.js";
|
|
4
4
|
import N from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { Reason as
|
|
7
|
-
import { dialogCommon as
|
|
5
|
+
import p from "../../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import { Reason as g } from "../common/Reason.js";
|
|
7
|
+
import { dialogCommon as D } from "../common/Dialog.common.js";
|
|
8
8
|
import { DialogTestIdModifiers as l } from "../../../testids/index.js";
|
|
9
|
-
import { useTestIdAttrs as
|
|
10
|
-
import { useMagicKeys as
|
|
11
|
-
const
|
|
9
|
+
import { useTestIdAttrs as P } from "../../../utils/testIds.js";
|
|
10
|
+
import { useMagicKeys as R, whenever as $ } from "@vueuse/core";
|
|
11
|
+
const S = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "container light-theme-v4"
|
|
14
|
-
},
|
|
14
|
+
}, F = { class: "title" }, U = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "footer"
|
|
17
|
-
},
|
|
17
|
+
}, Q = /* @__PURE__ */ A({
|
|
18
18
|
__name: "DialogV4",
|
|
19
19
|
props: {
|
|
20
20
|
modelValue: { type: Boolean },
|
|
@@ -39,106 +39,111 @@ const R = {
|
|
|
39
39
|
testId: { default: "" }
|
|
40
40
|
},
|
|
41
41
|
emits: ["update:modelValue", "open", "close", "save", "cancel"],
|
|
42
|
-
setup(t, { emit:
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
h.value &&
|
|
46
|
-
})
|
|
42
|
+
setup(t, { emit: v }) {
|
|
43
|
+
const i = t, { escape: L } = R(), a = P(i.testId, l), { visible: h, handleClose: y } = D(i, v);
|
|
44
|
+
$(L, () => {
|
|
45
|
+
h.value && i.escapeToClose && !i.saveButtonLoading && y(g.Escape);
|
|
46
|
+
});
|
|
47
|
+
const E = () => {
|
|
48
|
+
const { closeOnClickOutside: r, saveButtonLoading: n } = i;
|
|
49
|
+
r && !n ? y(g.Backdrop) : V();
|
|
50
|
+
};
|
|
51
|
+
return (r, n) => (o(), c(w, {
|
|
47
52
|
to: "body",
|
|
48
53
|
disabled: !t.appendToBody
|
|
49
54
|
}, [
|
|
50
|
-
|
|
51
|
-
default:
|
|
52
|
-
e(h) ? (o(),
|
|
53
|
-
|
|
55
|
+
b(I, null, {
|
|
56
|
+
default: u(() => [
|
|
57
|
+
e(h) ? (o(), m("div", S, [
|
|
58
|
+
C("div", s({
|
|
54
59
|
class: ["dialog", [`dialog--${t.size}`]]
|
|
55
60
|
}, e(a)[e(l).WRAPPER]), [
|
|
56
|
-
t.title || t.subtitle || t.showCloseButton ? (o(),
|
|
61
|
+
t.title || t.subtitle || t.showCloseButton ? (o(), m("header", s({
|
|
57
62
|
key: 0,
|
|
58
63
|
class: "header"
|
|
59
64
|
}, e(a)[e(l).HEADER]), [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
t.title ? (o(),
|
|
65
|
+
C("div", F, [
|
|
66
|
+
k(r.$slots, "header", {}, () => [
|
|
67
|
+
t.title ? (o(), c(e(T), {
|
|
63
68
|
key: 0,
|
|
64
69
|
variant: "h3"
|
|
65
70
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
71
|
+
default: u(() => [
|
|
72
|
+
f(B(t.title), 1)
|
|
68
73
|
]),
|
|
69
74
|
_: 1
|
|
70
|
-
})) :
|
|
71
|
-
t.subtitle ? (o(),
|
|
75
|
+
})) : d("", !0),
|
|
76
|
+
t.subtitle ? (o(), c(e(T), {
|
|
72
77
|
key: 1,
|
|
73
78
|
class: "subtitle",
|
|
74
79
|
variant: "body1"
|
|
75
80
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
81
|
+
default: u(() => [
|
|
82
|
+
f(B(t.subtitle), 1)
|
|
78
83
|
]),
|
|
79
84
|
_: 1
|
|
80
|
-
})) :
|
|
85
|
+
})) : d("", !0)
|
|
81
86
|
], !0)
|
|
82
87
|
]),
|
|
83
|
-
t.showCloseButton ? (o(),
|
|
88
|
+
t.showCloseButton ? (o(), c(e(p), s({
|
|
84
89
|
key: 0,
|
|
85
90
|
class: "close-button",
|
|
86
|
-
"icon-name": "x"
|
|
91
|
+
"icon-name": "x",
|
|
92
|
+
disabled: t.saveButtonLoading
|
|
87
93
|
}, e(a)[e(l).ACTION_CLOSE], {
|
|
88
|
-
onClick: n[0] || (n[0] = (
|
|
89
|
-
}), null, 16)) :
|
|
90
|
-
], 16)) :
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
t.content ? (o(),
|
|
94
|
+
onClick: n[0] || (n[0] = (O) => e(y)(e(g).CloseButton))
|
|
95
|
+
}), null, 16, ["disabled"])) : d("", !0)
|
|
96
|
+
], 16)) : d("", !0),
|
|
97
|
+
C("div", s({ class: "content" }, e(a)[e(l).CONTENT]), [
|
|
98
|
+
k(r.$slots, "default", {}, () => [
|
|
99
|
+
t.content ? (o(), c(e(T), {
|
|
94
100
|
key: 0,
|
|
95
101
|
variant: "body1"
|
|
96
102
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
103
|
+
default: u(() => [
|
|
104
|
+
f(B(t.content), 1)
|
|
99
105
|
]),
|
|
100
106
|
_: 1
|
|
101
|
-
})) :
|
|
107
|
+
})) : d("", !0)
|
|
102
108
|
], !0)
|
|
103
109
|
], 16),
|
|
104
|
-
t.showFooter ? (o(),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
t.showFooter ? (o(), m("footer", U, [
|
|
111
|
+
C("div", s({ class: "action-buttons" }, e(a)[e(l).ACTION_BUTTONS_WRAPPER]), [
|
|
112
|
+
k(r.$slots, "footer", {}, () => [
|
|
113
|
+
b(e(N), s({
|
|
108
114
|
class: "form-action",
|
|
109
115
|
variant: "outlined",
|
|
110
|
-
color: t.cancelButtonColor
|
|
116
|
+
color: t.cancelButtonColor,
|
|
117
|
+
disabled: t.saveButtonLoading
|
|
111
118
|
}, e(a)[e(l).CANCEL_BUTTON], {
|
|
112
|
-
onClick: n[1] || (n[1] = (
|
|
119
|
+
onClick: n[1] || (n[1] = (O) => v("cancel"))
|
|
113
120
|
}), {
|
|
114
|
-
default:
|
|
115
|
-
|
|
121
|
+
default: u(() => [
|
|
122
|
+
f(B(t.cancelButtonLabel), 1)
|
|
116
123
|
]),
|
|
117
124
|
_: 1
|
|
118
|
-
}, 16, ["color"]),
|
|
119
|
-
|
|
125
|
+
}, 16, ["color", "disabled"]),
|
|
126
|
+
b(e(N), s({
|
|
120
127
|
class: "form-action",
|
|
121
128
|
loading: t.saveButtonLoading,
|
|
122
129
|
color: t.saveButtonColor
|
|
123
130
|
}, e(a)[e(l).SAVE_BUTTON], {
|
|
124
|
-
onClick: n[2] || (n[2] = (
|
|
131
|
+
onClick: n[2] || (n[2] = (O) => v("save"))
|
|
125
132
|
}), {
|
|
126
|
-
default:
|
|
127
|
-
|
|
133
|
+
default: u(() => [
|
|
134
|
+
f(B(t.saveButtonLabel), 1)
|
|
128
135
|
]),
|
|
129
136
|
_: 1
|
|
130
137
|
}, 16, ["loading", "color"])
|
|
131
138
|
], !0)
|
|
132
139
|
], 16)
|
|
133
|
-
])) :
|
|
140
|
+
])) : d("", !0)
|
|
134
141
|
], 16),
|
|
135
|
-
t.showBackdrop ? (o(),
|
|
142
|
+
t.showBackdrop ? (o(), m("div", s({
|
|
136
143
|
key: 0,
|
|
137
144
|
class: "dialog-backdrop"
|
|
138
|
-
}, e(a)[e(l).BACKDROP], {
|
|
139
|
-
|
|
140
|
-
}), null, 16)) : u("", !0)
|
|
141
|
-
])) : u("", !0)
|
|
145
|
+
}, e(a)[e(l).BACKDROP], { onClick: E }), null, 16)) : d("", !0)
|
|
146
|
+
])) : d("", !0)
|
|
142
147
|
]),
|
|
143
148
|
_: 3
|
|
144
149
|
})
|
|
@@ -146,5 +151,5 @@ const R = {
|
|
|
146
151
|
}
|
|
147
152
|
});
|
|
148
153
|
export {
|
|
149
|
-
|
|
154
|
+
Q as default
|
|
150
155
|
};
|