@ironsource/shared-ui 2.2.0-rc.0 → 2.2.0-rc.10
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_5e66710b_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
- package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
- package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_f9f89da2_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +3 -8
- package/components/alert/Alert.vue.js +2 -2
- package/components/alert/Alert.vue2.js +48 -46
- package/components/alert/index.d.ts +8 -27
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +44 -45
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +10 -8
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +73 -49
- package/components/chart/ChartPlane.vue.d.ts +5 -0
- package/components/chart/ChartPlane.vue.js +2 -2
- package/components/chart/ChartPlane.vue2.js +34 -32
- package/components/chart/ChartStoryArgs.d.ts +6 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +19 -16
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +33 -22
- package/components/chart/index.d.ts +20 -1
- package/components/chart/utils/utils.d.ts +5 -1
- package/components/chart/utils/utils.js +32 -22
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
- package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
- package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
- package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
- package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +1 -1
- package/components/columnPicker/ColumnPicker.vue.js +2 -2
- package/components/columnPicker/ColumnPicker.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +81 -60
- package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +144 -135
- package/components/dropdown/v4/GroupOption.vue.js +3 -3
- package/components/dropdown/v4/GroupOption.vue2.js +1 -1
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +11 -0
- package/components/dropdown/v4/index.d.ts +119 -2
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/helpText/HelpText.vue.d.ts +68 -0
- package/components/helpText/HelpText.vue.js +7 -0
- package/components/helpText/HelpText.vue2.js +45 -0
- package/components/helpText/index.d.ts +190 -0
- package/components/helpText/index.js +6 -0
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/includeExclude/index.d.ts +16 -16
- package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +80 -51
- package/components/inlineCopy/index.d.ts +27 -0
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/link/Link.vue.d.ts +3 -3
- package/components/link/Link.vue.js +5 -5
- package/components/link/Link.vue2.js +1 -1
- package/components/link/index.d.ts +7 -7
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +1 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/snackbar/common/notify.js +25 -25
- package/components/snackbar/common/snackbar.common.js +19 -19
- package/components/snackbar/common/snackbar.types.d.ts +2 -1
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
- package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +78 -77
- package/components/table-cells/v3/Editable.vue.d.ts +1 -1
- package/components/table-cells/v3/index.d.ts +20 -20
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
- package/index.d.ts +391 -46
- package/index.js +95 -91
- package/package.json +7 -2
- package/style/v4/colors.scss +89 -84
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/testids/index.d.ts +6 -1
- package/testids/index.js +38 -37
- package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css +0 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
- package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnPicker.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ColumnPicker.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-01c4e08f"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ColumnPicker.
|
|
1
|
+
import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css"; import { defineComponent as ie, ref as K, watch as ne, computed as c, provide as se, openBlock as d, createElementBlock as m, Fragment as S, renderSlot as oe, createVNode as r, unref as s, withCtx as p, createElementVNode as u, mergeProps as ae, renderList as R, withModifiers as U, createTextVNode as k, toDisplayString as V, withDirectives as de, createBlock as W, vShow as re, createCommentVNode as q, isRef as ue } from "vue";
|
|
2
2
|
import ce from "./OptionChip.vue.js";
|
|
3
3
|
import "../dropdown/v4/DropdownV4.vue.js";
|
|
4
4
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DialogV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DialogV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-a6710278"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DialogV4.
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css"; import { defineComponent as k, openBlock as l, createBlock as s, Teleport as T, createVNode as L, Transition as D, withCtx as d, unref as t, createElementBlock as C, createElementVNode as g, mergeProps as B, renderSlot as b, createCommentVNode as u, createTextVNode as O, toDisplayString as p } from "vue";
|
|
2
2
|
import { NOOP as I } from "@vue/shared";
|
|
3
3
|
import N from "../../typography/v4/Typography.vue.js";
|
|
4
4
|
import { Reason as v } from "../common/Reason.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../AppDropdownTrigger.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-f86477a9"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../AppDropdownTrigger.
|
|
1
|
+
import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css"; import { defineComponent as B, computed as y, ref as O, watch as w, nextTick as z, openBlock as a, createElementBlock as i, normalizeClass as N, createElementVNode as d, mergeProps as C, unref as t, renderSlot as f, createCommentVNode as c, createVNode as s, withCtx as m, toDisplayString as S } from "vue";
|
|
2
2
|
import r from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
4
|
import D from "../../typography/v4/Typography.vue.js";
|
|
@@ -26,6 +26,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
26
|
allSelected?: boolean;
|
|
27
27
|
optionFlagKey?: string;
|
|
28
28
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
29
|
+
inlineError?: boolean;
|
|
30
|
+
inlineErrorText?: string;
|
|
31
|
+
inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
29
32
|
}>, {
|
|
30
33
|
placeholder: string;
|
|
31
34
|
selectedOption: any;
|
|
@@ -53,6 +56,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
53
56
|
allSelected: boolean;
|
|
54
57
|
optionFlagKey: any;
|
|
55
58
|
statusDotType: any;
|
|
59
|
+
inlineError: boolean;
|
|
60
|
+
inlineErrorText: string;
|
|
61
|
+
inlineErrorTextPlacement: string;
|
|
56
62
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
63
|
click: () => void;
|
|
58
64
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -83,6 +89,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
83
89
|
allSelected?: boolean;
|
|
84
90
|
optionFlagKey?: string;
|
|
85
91
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
92
|
+
inlineError?: boolean;
|
|
93
|
+
inlineErrorText?: string;
|
|
94
|
+
inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
86
95
|
}>, {
|
|
87
96
|
placeholder: string;
|
|
88
97
|
selectedOption: any;
|
|
@@ -110,6 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
110
119
|
allSelected: boolean;
|
|
111
120
|
optionFlagKey: any;
|
|
112
121
|
statusDotType: any;
|
|
122
|
+
inlineError: boolean;
|
|
123
|
+
inlineErrorText: string;
|
|
124
|
+
inlineErrorTextPlacement: string;
|
|
113
125
|
}>>> & {
|
|
114
126
|
onClick?: () => any;
|
|
115
127
|
}, {
|
|
@@ -125,6 +137,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
137
|
hoverHelpText: string;
|
|
126
138
|
hoverHelpTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
127
139
|
placeholder: string;
|
|
140
|
+
inlineError: boolean;
|
|
141
|
+
inlineErrorText: string;
|
|
142
|
+
inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
128
143
|
feedbackText: string;
|
|
129
144
|
feedbackVariant: "success" | "warning" | "error";
|
|
130
145
|
multi: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a6900fa6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css"; import { defineComponent as I, computed as f, openBlock as o, createElementBlock as d, createBlock as T, createCommentVNode as n, createElementVNode as p, mergeProps as y, unref as l, renderSlot as r, createVNode as s, withCtx as g, createTextVNode as x, toDisplayString as B } from "vue";
|
|
2
2
|
import w from "../../typography/v4/Typography.vue.js";
|
|
3
|
-
import { DropdownTestIdModifiers as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
import
|
|
9
|
-
|
|
3
|
+
import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
|
|
4
|
+
import m from "../../icon/v4/IconV4.vue.js";
|
|
5
|
+
import $ from "../../icon/v4/IconFlag.vue.js";
|
|
6
|
+
import K from "../../shared/FieldLabel.vue.js";
|
|
7
|
+
import { useTestIdAttrs as V } from "../../../utils/testIds.js";
|
|
8
|
+
import A from "../../statusDot/StatusDot.vue.js";
|
|
9
|
+
import E from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, S = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "image"
|
|
12
|
-
},
|
|
13
|
+
}, P = ["src"], C = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "flag"
|
|
15
|
-
},
|
|
16
|
+
}, F = {
|
|
16
17
|
key: 2,
|
|
17
18
|
class: "start-icon"
|
|
18
19
|
}, z = {
|
|
19
20
|
key: 3,
|
|
20
21
|
class: "status-dot"
|
|
21
|
-
},
|
|
22
|
+
}, H = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "inline-error"
|
|
25
|
+
}, L = { key: 1 }, R = { class: "caret-down" }, Z = /* @__PURE__ */ I({
|
|
22
26
|
__name: "DefaultDropdownTrigger",
|
|
23
27
|
props: {
|
|
24
28
|
placeholder: { default: "Select" },
|
|
@@ -47,81 +51,98 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
|
|
|
47
51
|
showAllSelectedText: { type: Boolean, default: !0 },
|
|
48
52
|
allSelected: { type: Boolean, default: !1 },
|
|
49
53
|
optionFlagKey: { default: null },
|
|
50
|
-
statusDotType: { default: null }
|
|
54
|
+
statusDotType: { default: null },
|
|
55
|
+
inlineError: { type: Boolean, default: !1 },
|
|
56
|
+
inlineErrorText: { default: "" },
|
|
57
|
+
inlineErrorTextPlacement: { default: "top" }
|
|
51
58
|
},
|
|
52
59
|
emits: ["click"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
55
|
-
() =>
|
|
60
|
+
setup(e, { emit: v }) {
|
|
61
|
+
const t = e, k = f(
|
|
62
|
+
() => t.feedbackVariant ? `state-${t.feedbackVariant}` : ""
|
|
56
63
|
), b = () => {
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
if (!
|
|
64
|
+
v("click");
|
|
65
|
+
}, u = V(t.testId, c), O = f(() => t.multi ? !Array.isArray(t.selectedOption) || !t.selectedOption?.length ? t.placeholder : t.showAllSelectedText && t.allSelected ? `All selected (${t.selectedOption.length})` : t.selectedOption?.length === 1 && t.displayValue ? t.displayValue(t.selectedOption[0]) : `${t.selectedOption.length} selected` : t.selectedOption ? t.displayValue(t.selectedOption) : t.placeholder), i = f(() => {
|
|
66
|
+
if (!t.selectedOption)
|
|
60
67
|
return null;
|
|
61
|
-
if (!
|
|
62
|
-
return
|
|
63
|
-
if (Array.isArray(
|
|
64
|
-
return
|
|
68
|
+
if (!t.multi)
|
|
69
|
+
return t.selectedOption;
|
|
70
|
+
if (Array.isArray(t.selectedOption))
|
|
71
|
+
return t.selectedOption.length === 1 ? t.selectedOption[0] : null;
|
|
65
72
|
});
|
|
66
|
-
return (
|
|
67
|
-
|
|
73
|
+
return (a, h) => (o(), d("div", D, [
|
|
74
|
+
e.label ? (o(), T(K, {
|
|
68
75
|
key: 0,
|
|
69
|
-
label:
|
|
70
|
-
mandatory:
|
|
71
|
-
"hover-help-text":
|
|
72
|
-
"hover-help-text-placement":
|
|
73
|
-
disabled:
|
|
74
|
-
"test-id":
|
|
76
|
+
label: e.label,
|
|
77
|
+
mandatory: e.mandatory,
|
|
78
|
+
"hover-help-text": e.hoverHelpText,
|
|
79
|
+
"hover-help-text-placement": e.hoverHelpTextPlacement,
|
|
80
|
+
disabled: e.disabled,
|
|
81
|
+
"test-id": e.testId,
|
|
75
82
|
class: "dropdown-field-label"
|
|
76
83
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
77
|
-
|
|
78
|
-
class: ["dropdown-trigger", [
|
|
79
|
-
}, l(
|
|
80
|
-
onClick:
|
|
84
|
+
p("div", y({
|
|
85
|
+
class: ["dropdown-trigger", [e.size, l(k), { open: e.open, disabled: e.disabled }]]
|
|
86
|
+
}, l(u)[l(c).BUTTON_WRAPPER], {
|
|
87
|
+
onClick: h[0] || (h[0] = (U) => b())
|
|
81
88
|
}), [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
p("div", N, [
|
|
90
|
+
a.$slots.image || l(i) && e.optionImageKey ? (o(), d("div", S, [
|
|
91
|
+
r(a.$slots, "image", {}, () => [
|
|
92
|
+
e.optionImageKey ? (o(), d("img", {
|
|
86
93
|
key: 0,
|
|
87
|
-
src: l(
|
|
88
|
-
}, null, 8,
|
|
94
|
+
src: l(i)[e.optionImageKey]
|
|
95
|
+
}, null, 8, P)) : n("", !0)
|
|
89
96
|
], !0)
|
|
90
97
|
])) : n("", !0),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
a.$slots.flag || l(i) && e.optionFlagKey ? (o(), d("div", C, [
|
|
99
|
+
r(a.$slots, "flag", {}, () => [
|
|
100
|
+
e.optionFlagKey ? (o(), T(l($), {
|
|
94
101
|
key: 0,
|
|
95
|
-
"country-code": l(
|
|
102
|
+
"country-code": l(i)[e.optionFlagKey]
|
|
96
103
|
}, null, 8, ["country-code"])) : n("", !0)
|
|
97
104
|
], !0)
|
|
98
105
|
])) : n("", !0),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
type:
|
|
103
|
-
name: l(
|
|
106
|
+
a.$slots["icon-start"] || l(i) && e.optionIconKey ? (o(), d("div", F, [
|
|
107
|
+
r(a.$slots, "icon-start", {}, () => [
|
|
108
|
+
s(l(m), {
|
|
109
|
+
type: e.optionIconType,
|
|
110
|
+
name: l(i)[e.optionIconKey],
|
|
104
111
|
size: "20px"
|
|
105
112
|
}, null, 8, ["type", "name"])
|
|
106
113
|
], !0)
|
|
107
114
|
])) : n("", !0),
|
|
108
|
-
|
|
109
|
-
|
|
115
|
+
e.statusDotType ? (o(), d("div", z, [
|
|
116
|
+
s(l(A), { type: e.statusDotType }, null, 8, ["type"])
|
|
110
117
|
])) : n("", !0),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
default:
|
|
114
|
-
B(
|
|
118
|
+
r(a.$slots, "displayed-value", {}, () => [
|
|
119
|
+
s(l(w), y({ variant: "body1" }, l(u)[l(c).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
120
|
+
default: g(() => [
|
|
121
|
+
x(B(l(O)), 1)
|
|
115
122
|
]),
|
|
116
123
|
_: 1
|
|
117
124
|
}, 16)
|
|
118
125
|
], !0)
|
|
119
126
|
]),
|
|
120
|
-
|
|
121
|
-
|
|
127
|
+
e.inlineError && e.inlineErrorText ? (o(), d("div", H, [
|
|
128
|
+
s(l(E), y({
|
|
129
|
+
text: e.inlineErrorText,
|
|
130
|
+
placement: e.inlineErrorTextPlacement
|
|
131
|
+
}, l(u)[l(c).TOOLTIP]), {
|
|
132
|
+
default: g(() => [
|
|
133
|
+
s(l(m), {
|
|
134
|
+
name: "warning-circle",
|
|
135
|
+
size: "16px"
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 16, ["text", "placement"])
|
|
140
|
+
])) : n("", !0),
|
|
141
|
+
a.$slots["end-icon"] ? (o(), d("div", L, [
|
|
142
|
+
r(a.$slots, "end-icon", {}, void 0, !0)
|
|
122
143
|
])) : n("", !0),
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
p("div", R, [
|
|
145
|
+
s(l(m), {
|
|
125
146
|
name: "caret-down",
|
|
126
147
|
size: "20px"
|
|
127
148
|
})
|
|
@@ -131,5 +152,5 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
|
|
|
131
152
|
}
|
|
132
153
|
});
|
|
133
154
|
export {
|
|
134
|
-
|
|
155
|
+
Z as default
|
|
135
156
|
};
|
|
@@ -22,6 +22,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
22
|
minSelections?: number;
|
|
23
23
|
maxSelections?: number;
|
|
24
24
|
alwaysShowScroll?: boolean;
|
|
25
|
+
inlineError?: boolean;
|
|
26
|
+
inlineErrorText?: string;
|
|
27
|
+
inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
25
28
|
isOnTop?: boolean;
|
|
26
29
|
distance?: number;
|
|
27
30
|
container?: string;
|
|
@@ -103,6 +106,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
103
106
|
minSelections: number;
|
|
104
107
|
maxSelections: any;
|
|
105
108
|
alwaysShowScroll: boolean;
|
|
109
|
+
inlineError: boolean;
|
|
110
|
+
inlineErrorText: string;
|
|
111
|
+
inlineErrorTextPlacement: string;
|
|
106
112
|
triggerLabel: string;
|
|
107
113
|
triggerHelperText: string;
|
|
108
114
|
triggerFeedbackText: string;
|
|
@@ -176,6 +182,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
176
182
|
minSelections?: number;
|
|
177
183
|
maxSelections?: number;
|
|
178
184
|
alwaysShowScroll?: boolean;
|
|
185
|
+
inlineError?: boolean;
|
|
186
|
+
inlineErrorText?: string;
|
|
187
|
+
inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
179
188
|
isOnTop?: boolean;
|
|
180
189
|
distance?: number;
|
|
181
190
|
container?: string;
|
|
@@ -257,6 +266,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
257
266
|
minSelections: number;
|
|
258
267
|
maxSelections: any;
|
|
259
268
|
alwaysShowScroll: boolean;
|
|
269
|
+
inlineError: boolean;
|
|
270
|
+
inlineErrorText: string;
|
|
271
|
+
inlineErrorTextPlacement: string;
|
|
260
272
|
triggerLabel: string;
|
|
261
273
|
triggerHelperText: string;
|
|
262
274
|
triggerFeedbackText: string;
|
|
@@ -320,6 +332,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
320
332
|
valueToCopy: string;
|
|
321
333
|
selected: any;
|
|
322
334
|
placeholder: string;
|
|
335
|
+
inlineError: boolean;
|
|
336
|
+
inlineErrorText: string;
|
|
337
|
+
inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
323
338
|
multi: boolean;
|
|
324
339
|
infiniteLoading: boolean;
|
|
325
340
|
showSelectAll: boolean;
|
|
@@ -406,6 +421,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
406
421
|
size: "small" | "medium" | "large";
|
|
407
422
|
showAllSelectedText: boolean;
|
|
408
423
|
allSelected: boolean;
|
|
424
|
+
inlineError: boolean;
|
|
425
|
+
inlineErrorText: string;
|
|
426
|
+
inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
409
427
|
onKeydown: (event: any) => void;
|
|
410
428
|
onClick: () => void;
|
|
411
429
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DropdownV4.
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-526bf0a1"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|