@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
|
@@ -131,6 +131,7 @@ declare const DataGridTypes: () => (({
|
|
|
131
131
|
default: number;
|
|
132
132
|
};
|
|
133
133
|
}>> & {
|
|
134
|
+
onSelectAll?: (value: boolean) => any;
|
|
134
135
|
onOnScroll?: (event: Event) => any;
|
|
135
136
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
136
137
|
onSaveRow?: (args_0: {
|
|
@@ -143,6 +144,8 @@ declare const DataGridTypes: () => (({
|
|
|
143
144
|
"onUpdate:search"?: (query: string) => any;
|
|
144
145
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
145
146
|
onOnClearSearch?: () => any;
|
|
147
|
+
onSelectRow?: (value: boolean) => any;
|
|
148
|
+
onClickRow?: (rowIndex: number) => any;
|
|
146
149
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
|
|
147
150
|
$attrs: {
|
|
148
151
|
[x: string]: unknown;
|
|
@@ -155,12 +158,12 @@ declare const DataGridTypes: () => (({
|
|
|
155
158
|
}>;
|
|
156
159
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
157
160
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
158
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: {
|
|
161
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: {
|
|
159
162
|
value: unknown;
|
|
160
163
|
confirm: () => void;
|
|
161
164
|
rowIndex: number;
|
|
162
165
|
cellIndex: number;
|
|
163
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void);
|
|
166
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
164
167
|
$el: any;
|
|
165
168
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
166
169
|
sort: {
|
|
@@ -264,6 +267,7 @@ declare const DataGridTypes: () => (({
|
|
|
264
267
|
default: number;
|
|
265
268
|
};
|
|
266
269
|
}>> & {
|
|
270
|
+
onSelectAll?: (value: boolean) => any;
|
|
267
271
|
onOnScroll?: (event: Event) => any;
|
|
268
272
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
269
273
|
onSaveRow?: (args_0: {
|
|
@@ -276,7 +280,11 @@ declare const DataGridTypes: () => (({
|
|
|
276
280
|
"onUpdate:search"?: (query: string) => any;
|
|
277
281
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
278
282
|
onOnClearSearch?: () => any;
|
|
279
|
-
|
|
283
|
+
onSelectRow?: (value: boolean) => any;
|
|
284
|
+
onClickRow?: (rowIndex: number) => any;
|
|
285
|
+
}, {
|
|
286
|
+
scrollTo: (index: number) => void;
|
|
287
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
280
288
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
281
289
|
"update:search": (query: string) => void;
|
|
282
290
|
"update:selection": (selection: unknown[]) => void;
|
|
@@ -289,6 +297,9 @@ declare const DataGridTypes: () => (({
|
|
|
289
297
|
cellIndex: number;
|
|
290
298
|
}) => void;
|
|
291
299
|
loadMore: () => void;
|
|
300
|
+
selectAll: (value: boolean) => void;
|
|
301
|
+
selectRow: (value: boolean) => void;
|
|
302
|
+
clickRow: (rowIndex: number) => void;
|
|
292
303
|
}, string, {
|
|
293
304
|
sort: import("../common/Table.types").Sort;
|
|
294
305
|
title: string;
|
|
@@ -435,6 +446,7 @@ declare const DataGridTypes: () => (({
|
|
|
435
446
|
default: number;
|
|
436
447
|
};
|
|
437
448
|
}>> & {
|
|
449
|
+
onSelectAll?: (value: boolean) => any;
|
|
438
450
|
onOnScroll?: (event: Event) => any;
|
|
439
451
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
440
452
|
onSaveRow?: (args_0: {
|
|
@@ -447,7 +459,11 @@ declare const DataGridTypes: () => (({
|
|
|
447
459
|
"onUpdate:search"?: (query: string) => any;
|
|
448
460
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
449
461
|
onOnClearSearch?: () => any;
|
|
450
|
-
|
|
462
|
+
onSelectRow?: (value: boolean) => any;
|
|
463
|
+
onClickRow?: (rowIndex: number) => any;
|
|
464
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
465
|
+
scrollTo: (index: number) => void;
|
|
466
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
451
467
|
__isFragment?: never;
|
|
452
468
|
__isTeleport?: never;
|
|
453
469
|
__isSuspense?: never;
|
|
@@ -553,6 +569,7 @@ declare const DataGridTypes: () => (({
|
|
|
553
569
|
default: number;
|
|
554
570
|
};
|
|
555
571
|
}>> & {
|
|
572
|
+
onSelectAll?: (value: boolean) => any;
|
|
556
573
|
onOnScroll?: (event: Event) => any;
|
|
557
574
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
558
575
|
onSaveRow?: (args_0: {
|
|
@@ -565,7 +582,11 @@ declare const DataGridTypes: () => (({
|
|
|
565
582
|
"onUpdate:search"?: (query: string) => any;
|
|
566
583
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
567
584
|
onOnClearSearch?: () => any;
|
|
568
|
-
|
|
585
|
+
onSelectRow?: (value: boolean) => any;
|
|
586
|
+
onClickRow?: (rowIndex: number) => any;
|
|
587
|
+
}, {
|
|
588
|
+
scrollTo: (index: number) => void;
|
|
589
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
569
590
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
570
591
|
"update:search": (query: string) => void;
|
|
571
592
|
"update:selection": (selection: unknown[]) => void;
|
|
@@ -578,6 +599,9 @@ declare const DataGridTypes: () => (({
|
|
|
578
599
|
cellIndex: number;
|
|
579
600
|
}) => void;
|
|
580
601
|
loadMore: () => void;
|
|
602
|
+
selectAll: (value: boolean) => void;
|
|
603
|
+
selectRow: (value: boolean) => void;
|
|
604
|
+
clickRow: (rowIndex: number) => void;
|
|
581
605
|
}, string, {
|
|
582
606
|
sort: import("../common/Table.types").Sort;
|
|
583
607
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextAreaV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextAreaV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3b2c01d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../TextAreaV4.
|
|
1
|
+
import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
|
|
2
2
|
import v from "../../shared/FieldLabel.vue.js";
|
|
3
3
|
import k from "../../shared/FieldMaxLength.vue.js";
|
|
4
4
|
import T from "../../shared/FieldHelpText.vue.js";
|
|
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
58
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
59
59
|
}, {
|
|
60
60
|
text: string;
|
|
61
|
-
size: "small" | "medium";
|
|
62
61
|
color: "primary" | "test";
|
|
62
|
+
size: "small" | "medium";
|
|
63
63
|
testId: string;
|
|
64
64
|
isLoading: boolean;
|
|
65
65
|
hoverHelpText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToggleV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ToggleV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a4aa32fb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../ToggleV4.
|
|
1
|
+
import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; import { defineComponent as k, computed as h, openBlock as i, createElementBlock as m, normalizeClass as f, createElementVNode as r, mergeProps as d, unref as t, createCommentVNode as l, renderSlot as g, createBlock as u, withCtx as v, createTextVNode as b, toDisplayString as y, createVNode as V } from "vue";
|
|
2
2
|
import E from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { ToggleTestIdModifiers as a } from "../../../testids/index.js";
|
|
4
4
|
import B from "../../shared/FieldHelpText.vue.js";
|
|
@@ -25,29 +25,29 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(e, { emit: x }) {
|
|
27
27
|
const c = e, T = () => {
|
|
28
|
-
|
|
29
|
-
}, o = H(c.testId, a),
|
|
28
|
+
s.value || x("update:modelValue", !c.modelValue);
|
|
29
|
+
}, o = H(c.testId, a), s = h(() => c.isDisabled || c.isLoading);
|
|
30
30
|
return (n, $) => (i(), m("div", {
|
|
31
31
|
class: f(["toggle", [`toggle--color-${e.color}`, `toggle--size-${e.size}`]])
|
|
32
32
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
r("div", d({ class: "toggle-wrap" }, t(o)[t(a).WRAPPER]), [
|
|
34
|
+
r("div", d({
|
|
35
35
|
class: ["toggle-body", {
|
|
36
36
|
"toggle-active": e.modelValue,
|
|
37
|
-
"toggle-disabled": t(
|
|
37
|
+
"toggle-disabled": t(s)
|
|
38
38
|
}]
|
|
39
39
|
}, t(o)[t(a).BODY], { onClick: T }), [
|
|
40
|
-
|
|
40
|
+
r("div", L, [
|
|
41
41
|
e.isLoading ? (i(), m("span", {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: f(["loader", { "loader-active": e.modelValue }])
|
|
44
44
|
}, null, 2)) : l("", !0)
|
|
45
45
|
])
|
|
46
46
|
], 16),
|
|
47
|
-
|
|
47
|
+
r("input", d({
|
|
48
48
|
type: "checkbox",
|
|
49
49
|
class: "toggle-checkbox",
|
|
50
|
-
disabled: t(
|
|
50
|
+
disabled: t(s),
|
|
51
51
|
checked: e.modelValue
|
|
52
52
|
}, t(o)[t(a).FIELD]), null, 16, P),
|
|
53
53
|
n.$slots["icon-left"] ? g(n.$slots, "icon-left", { key: 0 }, void 0, !0) : l("", !0),
|
|
@@ -55,13 +55,13 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
55
55
|
key: 1,
|
|
56
56
|
variant: "body1",
|
|
57
57
|
"is-truncated": "",
|
|
58
|
-
class: "toggle-text"
|
|
58
|
+
class: ["toggle-text", { "toggle-disabled-text": t(s) }]
|
|
59
59
|
}, t(o)[t(a).TEXT]), {
|
|
60
60
|
default: v(() => [
|
|
61
|
-
y(
|
|
61
|
+
b(y(e.text ?? (e.modelValue ? e.activeText : e.inactiveText)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
|
-
}, 16)) : l("", !0),
|
|
64
|
+
}, 16, ["class"])) : l("", !0),
|
|
65
65
|
n.$slots["icon-right"] ? g(n.$slots, "icon-right", { key: 2 }, void 0, !0) : l("", !0),
|
|
66
66
|
e.hoverHelpText ? (i(), u(t(D), {
|
|
67
67
|
key: 3,
|
|
@@ -4,8 +4,8 @@ declare const ToggleTypes: () => ({
|
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
text: string;
|
|
7
|
-
size: "small" | "medium";
|
|
8
7
|
color: "primary" | "test";
|
|
8
|
+
size: "small" | "medium";
|
|
9
9
|
testId: string;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
hoverHelpText: string;
|
|
@@ -20,14 +20,14 @@ declare const ToggleTypes: () => ({
|
|
|
20
20
|
type: import("vue").PropType<string>;
|
|
21
21
|
default: any;
|
|
22
22
|
};
|
|
23
|
-
size: {
|
|
24
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
23
|
color: {
|
|
28
24
|
type: import("vue").PropType<"primary" | "test">;
|
|
29
25
|
default: string;
|
|
30
26
|
};
|
|
27
|
+
size: {
|
|
28
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
31
|
testId: {
|
|
32
32
|
type: import("vue").PropType<string>;
|
|
33
33
|
default: string;
|
|
@@ -70,7 +70,7 @@ declare const ToggleTypes: () => ({
|
|
|
70
70
|
};
|
|
71
71
|
}>> & {
|
|
72
72
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
73
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "
|
|
73
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "color" | "size" | "testId" | "isLoading" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "activeText" | "inactiveText" | "isDisabled">;
|
|
74
74
|
$attrs: {
|
|
75
75
|
[x: string]: unknown;
|
|
76
76
|
};
|
|
@@ -89,14 +89,14 @@ declare const ToggleTypes: () => ({
|
|
|
89
89
|
type: import("vue").PropType<string>;
|
|
90
90
|
default: any;
|
|
91
91
|
};
|
|
92
|
-
size: {
|
|
93
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
92
|
color: {
|
|
97
93
|
type: import("vue").PropType<"primary" | "test">;
|
|
98
94
|
default: string;
|
|
99
95
|
};
|
|
96
|
+
size: {
|
|
97
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
100
|
testId: {
|
|
101
101
|
type: import("vue").PropType<string>;
|
|
102
102
|
default: string;
|
|
@@ -143,8 +143,8 @@ declare const ToggleTypes: () => ({
|
|
|
143
143
|
"update:modelValue": (value: boolean) => void;
|
|
144
144
|
}, string, {
|
|
145
145
|
text: string;
|
|
146
|
-
size: "small" | "medium";
|
|
147
146
|
color: "primary" | "test";
|
|
147
|
+
size: "small" | "medium";
|
|
148
148
|
testId: string;
|
|
149
149
|
isLoading: boolean;
|
|
150
150
|
hoverHelpText: string;
|
|
@@ -179,14 +179,14 @@ declare const ToggleTypes: () => ({
|
|
|
179
179
|
type: import("vue").PropType<string>;
|
|
180
180
|
default: any;
|
|
181
181
|
};
|
|
182
|
-
size: {
|
|
183
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
184
|
-
default: string;
|
|
185
|
-
};
|
|
186
182
|
color: {
|
|
187
183
|
type: import("vue").PropType<"primary" | "test">;
|
|
188
184
|
default: string;
|
|
189
185
|
};
|
|
186
|
+
size: {
|
|
187
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
190
|
testId: {
|
|
191
191
|
type: import("vue").PropType<string>;
|
|
192
192
|
default: string;
|
|
@@ -238,14 +238,14 @@ declare const ToggleTypes: () => ({
|
|
|
238
238
|
type: import("vue").PropType<string>;
|
|
239
239
|
default: any;
|
|
240
240
|
};
|
|
241
|
-
size: {
|
|
242
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
243
|
-
default: string;
|
|
244
|
-
};
|
|
245
241
|
color: {
|
|
246
242
|
type: import("vue").PropType<"primary" | "test">;
|
|
247
243
|
default: string;
|
|
248
244
|
};
|
|
245
|
+
size: {
|
|
246
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
249
249
|
testId: {
|
|
250
250
|
type: import("vue").PropType<string>;
|
|
251
251
|
default: string;
|
|
@@ -292,8 +292,8 @@ declare const ToggleTypes: () => ({
|
|
|
292
292
|
"update:modelValue": (value: boolean) => void;
|
|
293
293
|
}, string, {
|
|
294
294
|
text: string;
|
|
295
|
-
size: "small" | "medium";
|
|
296
295
|
color: "primary" | "test";
|
|
296
|
+
size: "small" | "medium";
|
|
297
297
|
testId: string;
|
|
298
298
|
isLoading: boolean;
|
|
299
299
|
hoverHelpText: string;
|
|
@@ -23,7 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
testId: string;
|
|
24
24
|
distance: string;
|
|
25
25
|
container: string;
|
|
26
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
show: () => void;
|
|
28
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
27
29
|
text?: string;
|
|
28
30
|
header?: string;
|
|
29
31
|
delay?: number;
|
|
@@ -47,7 +49,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
49
|
testId: string;
|
|
48
50
|
distance: string;
|
|
49
51
|
container: string;
|
|
50
|
-
}
|
|
52
|
+
}>>> & {
|
|
53
|
+
onShow?: () => any;
|
|
54
|
+
}, {
|
|
51
55
|
header: string;
|
|
52
56
|
text: string;
|
|
53
57
|
theme: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TooltipV4.
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
5
|
+
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fcdb9d02"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
2
|
-
import
|
|
3
|
-
import { Tooltip as
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as h, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as r, renderSlot as u, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
|
|
2
|
+
import g from "./TextWithTitleContent.vue.js";
|
|
3
|
+
import { Tooltip as x } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { tooltipCommon as
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
const
|
|
5
|
+
import v from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { tooltipCommon as b } from "../common/Tooltip.common.js";
|
|
7
|
+
import { useTestIdAttrs as w } from "../../../utils/testIds.js";
|
|
8
|
+
const I = {
|
|
9
9
|
ref: "container",
|
|
10
10
|
class: "container"
|
|
11
|
-
},
|
|
11
|
+
}, D = /* @__PURE__ */ h({
|
|
12
12
|
__name: "TooltipV4",
|
|
13
13
|
props: {
|
|
14
14
|
text: { default: null },
|
|
@@ -23,9 +23,10 @@ const b = {
|
|
|
23
23
|
distance: { default: "10" },
|
|
24
24
|
container: { default: "body" }
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
emits: ["show"],
|
|
27
|
+
setup(e, { emit: c }) {
|
|
28
|
+
const n = e, { textForDisplay: o } = b(n), s = w(n.testId, i);
|
|
29
|
+
return (a, m) => (l(), d(t(x), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
|
|
29
30
|
theme: e.theme,
|
|
30
31
|
"no-auto-focus": "",
|
|
31
32
|
triggers: e.triggers,
|
|
@@ -35,28 +36,29 @@ const b = {
|
|
|
35
36
|
"popper-class": [e.theme, e.placement, "v4-tooltip"],
|
|
36
37
|
class: ["v4-tooltip"],
|
|
37
38
|
distance: e.distance,
|
|
38
|
-
"auto-hide": ""
|
|
39
|
+
"auto-hide": "",
|
|
40
|
+
onApplyShow: m[0] || (m[0] = (k) => c("show"))
|
|
39
41
|
}), {
|
|
40
42
|
popper: r(() => [
|
|
41
|
-
|
|
42
|
-
e.header ? (l(), d(
|
|
43
|
+
u(a.$slots, "tooltip", { text: t(o) }, () => [
|
|
44
|
+
e.header ? (l(), d(g, {
|
|
43
45
|
key: 1,
|
|
44
46
|
text: e.text,
|
|
45
47
|
header: e.header
|
|
46
|
-
}, null, 8, ["text", "header"])) : (l(), d(t(
|
|
48
|
+
}, null, 8, ["text", "header"])) : (l(), d(t(v), f({
|
|
47
49
|
key: 0,
|
|
48
50
|
variant: "body2"
|
|
49
51
|
}, t(s)[t(i).TEXT]), {
|
|
50
52
|
default: r(() => [
|
|
51
|
-
|
|
53
|
+
p(y(t(o)), 1)
|
|
52
54
|
]),
|
|
53
55
|
_: 1
|
|
54
56
|
}, 16))
|
|
55
57
|
], !0)
|
|
56
58
|
]),
|
|
57
59
|
default: r(() => [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
T("div", I, [
|
|
61
|
+
u(a.$slots, "default", {}, void 0, !0)
|
|
60
62
|
], 512)
|
|
61
63
|
]),
|
|
62
64
|
_: 3
|
|
@@ -64,5 +66,5 @@ const b = {
|
|
|
64
66
|
}
|
|
65
67
|
});
|
|
66
68
|
export {
|
|
67
|
-
|
|
69
|
+
D as default
|
|
68
70
|
};
|
|
@@ -60,7 +60,9 @@ declare const TooltipTypes: () => ({
|
|
|
60
60
|
type: import("vue").PropType<string | number>;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
-
}>> &
|
|
63
|
+
}>> & {
|
|
64
|
+
onShow?: () => any;
|
|
65
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "disabled" | "testId" | "container" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "distance">;
|
|
64
66
|
$attrs: {
|
|
65
67
|
[x: string]: unknown;
|
|
66
68
|
};
|
|
@@ -72,7 +74,7 @@ declare const TooltipTypes: () => ({
|
|
|
72
74
|
}>;
|
|
73
75
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
74
76
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
75
|
-
$emit: (event:
|
|
77
|
+
$emit: (event: "show") => void;
|
|
76
78
|
$el: any;
|
|
77
79
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
78
80
|
header: {
|
|
@@ -119,7 +121,11 @@ declare const TooltipTypes: () => ({
|
|
|
119
121
|
type: import("vue").PropType<string | number>;
|
|
120
122
|
default: string;
|
|
121
123
|
};
|
|
122
|
-
}
|
|
124
|
+
}>> & {
|
|
125
|
+
onShow?: () => any;
|
|
126
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
|
+
show: () => void;
|
|
128
|
+
}, string, {
|
|
123
129
|
header: string;
|
|
124
130
|
text: string;
|
|
125
131
|
theme: string;
|
|
@@ -196,7 +202,9 @@ declare const TooltipTypes: () => ({
|
|
|
196
202
|
type: import("vue").PropType<string | number>;
|
|
197
203
|
default: string;
|
|
198
204
|
};
|
|
199
|
-
}>> &
|
|
205
|
+
}>> & {
|
|
206
|
+
onShow?: () => any;
|
|
207
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
200
208
|
__isFragment?: never;
|
|
201
209
|
__isTeleport?: never;
|
|
202
210
|
__isSuspense?: never;
|
|
@@ -245,7 +253,11 @@ declare const TooltipTypes: () => ({
|
|
|
245
253
|
type: import("vue").PropType<string | number>;
|
|
246
254
|
default: string;
|
|
247
255
|
};
|
|
248
|
-
}
|
|
256
|
+
}>> & {
|
|
257
|
+
onShow?: () => any;
|
|
258
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
259
|
+
show: () => void;
|
|
260
|
+
}, string, {
|
|
249
261
|
header: string;
|
|
250
262
|
text: string;
|
|
251
263
|
theme: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "yup";
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as d, reactive as f, watch as v } from "vue";
|
|
3
3
|
const E = (e, r = 0) => {
|
|
4
4
|
try {
|
|
5
5
|
window.document.getElementsByClassName(e)[r].scrollIntoView({ behavior: "smooth" });
|
|
@@ -9,28 +9,34 @@ const E = (e, r = 0) => {
|
|
|
9
9
|
}, h = (e) => {
|
|
10
10
|
const r = Object.keys(e)?.[0];
|
|
11
11
|
r && E(`form-field-${r}`);
|
|
12
|
-
},
|
|
12
|
+
}, p = (e, r) => {
|
|
13
13
|
const o = m.object().shape(e);
|
|
14
14
|
try {
|
|
15
15
|
return o.validateSync(r.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
|
|
16
16
|
} catch (i) {
|
|
17
|
-
return { isValid: !1, errors: i.inner.reduce((s,
|
|
17
|
+
return { isValid: !1, errors: i.inner.reduce((s, n) => (s[n.path] = n.message, s), {}) };
|
|
18
18
|
}
|
|
19
19
|
}, b = ({
|
|
20
20
|
formState: e,
|
|
21
21
|
formValidationSchema: r
|
|
22
22
|
}) => {
|
|
23
|
-
const o =
|
|
24
|
-
const { isValid:
|
|
25
|
-
o.value = !0, i.value =
|
|
23
|
+
const o = d(!1), i = d(!0), t = f({}), s = (n) => {
|
|
24
|
+
const { isValid: l, errors: c } = p(r, e);
|
|
25
|
+
o.value = !0, i.value = l, Object.keys(t).forEach((a) => {
|
|
26
26
|
a && !c[a] && delete t[a];
|
|
27
|
-
}), Object.entries(c).forEach(([a,
|
|
28
|
-
t[a] =
|
|
29
|
-
}), !
|
|
27
|
+
}), Object.entries(c).forEach(([a, u]) => {
|
|
28
|
+
t[a] = u;
|
|
29
|
+
}), !l && !n && h(t);
|
|
30
30
|
};
|
|
31
|
-
return v(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return v(
|
|
32
|
+
e,
|
|
33
|
+
() => {
|
|
34
|
+
o.value && s(!0);
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
deep: !0
|
|
38
|
+
}
|
|
39
|
+
), {
|
|
34
40
|
validationErrors: t,
|
|
35
41
|
isValid: i,
|
|
36
42
|
validate: s
|
|
@@ -40,5 +46,5 @@ export {
|
|
|
40
46
|
E as scrollToElementByClass,
|
|
41
47
|
h as scrollToFirstInvalidElement,
|
|
42
48
|
b as useFormValidation,
|
|
43
|
-
|
|
49
|
+
p as yupValidation
|
|
44
50
|
};
|
|
@@ -11,4 +11,8 @@ declare const iconsABTestData: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
path: string;
|
|
13
13
|
}[];
|
|
14
|
-
|
|
14
|
+
declare const iconsAdNetworks: {
|
|
15
|
+
name: string;
|
|
16
|
+
path: string;
|
|
17
|
+
}[];
|
|
18
|
+
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, };
|