@ironsource/shared-ui 1.4.2-rc.16 → 1.4.2-rc.18
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/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Heading.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Text.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +5 -0
- package/components/appTrigger/AppTrigger.vue.js +29 -16
- package/components/appTrigger/index.d.ts +11 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +5 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +7 -4
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +5 -0
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +12 -6
- package/components/autocompleteDropdown/index.d.ts +11 -0
- package/components/banner/Banner.vue.d.ts +9 -0
- package/components/banner/Banner.vue.js +20 -9
- package/components/banner/index.d.ts +9 -0
- package/components/button/Button.vue.d.ts +5 -0
- package/components/button/Button.vue.js +6 -4
- package/components/button/index.d.ts +11 -0
- package/components/checkbox/Checkbox.vue.d.ts +5 -0
- package/components/checkbox/Checkbox.vue.js +20 -14
- package/components/checkbox/index.d.ts +11 -0
- package/components/chip/Chip.vue.d.ts +5 -0
- package/components/chip/Chip.vue.js +11 -6
- package/components/chip/index.d.ts +11 -0
- package/components/datePicker/DatePicker.vue.d.ts +5 -0
- package/components/datePicker/DatePicker.vue.js +11 -6
- package/components/datePicker/DatePickerMonth.vue.d.ts +5 -0
- package/components/datePicker/DatePickerMonth.vue.js +5 -3
- package/components/datePicker/index.d.ts +11 -0
- package/components/dateRange/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/CalendarMonth.vue.js +39 -21
- package/components/dateRange/DateRange.vue.d.ts +5 -0
- package/components/dateRange/DateRange.vue.js +49 -36
- package/components/dateRange/DateRangePicker.vue.d.ts +5 -0
- package/components/dateRange/index.d.ts +11 -0
- package/components/dialog/Dialog.vue.d.ts +5 -0
- package/components/dialog/Dialog.vue.js +38 -23
- package/components/dialog/index.d.ts +11 -0
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +41 -32
- package/components/dropdown/index.d.ts +11 -11
- package/components/filterDropdown/AddFilterButton.vue.d.ts +2 -0
- package/components/filterDropdown/AddFilterButton.vue.js +6 -4
- package/components/filterDropdown/FilterDropdown.vue.d.ts +5 -0
- package/components/filterDropdown/FilterDropdown.vue.js +8 -5
- package/components/filterDropdown/index.d.ts +17 -0
- package/components/filtersPanel/FiltersPanel.vue.d.ts +5 -0
- package/components/filtersPanel/FiltersPanel.vue.js +7 -4
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +1 -1
- package/components/includeExclude/index.d.ts +11 -11
- package/components/input/Input.vue.d.ts +5 -0
- package/components/input/Input.vue.js +44 -31
- package/components/input/index.d.ts +17 -0
- package/components/menu/Menu.vue.d.ts +5 -0
- package/components/menu/Menu.vue.js +6 -4
- package/components/menu/index.d.ts +11 -0
- package/components/popover/Popover.vue.d.ts +5 -0
- package/components/popover/Popover.vue.js +5 -3
- package/components/popover/index.d.ts +11 -0
- package/components/radioButton/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/RadioButton.vue.js +15 -8
- package/components/radioButton/RadioGroup.vue.d.ts +5 -0
- package/components/radioButton/RadioGroup.vue.js +9 -5
- package/components/radioButton/index.d.ts +22 -0
- package/components/search/Search.vue.d.ts +5 -0
- package/components/search/Search.vue.js +13 -7
- package/components/search/index.d.ts +11 -0
- package/components/switch/Switch.vue.d.ts +5 -0
- package/components/switch/Switch.vue.js +17 -9
- package/components/switch/index.d.ts +11 -0
- package/components/table/Table.vue.d.ts +5 -0
- package/components/table/Table.vue.js +58 -36
- package/components/table/index.d.ts +11 -0
- package/components/tabs/Tabs.vue.d.ts +5 -0
- package/components/tabs/Tabs.vue.js +20 -15
- package/components/tabs/index.d.ts +11 -0
- package/components/textArea/TextArea.vue.d.ts +5 -0
- package/components/textArea/TextArea.vue.js +23 -16
- package/components/textArea/index.d.ts +11 -0
- package/components/toggle/Toggle.vue.d.ts +5 -0
- package/components/toggle/Toggle.vue.js +29 -18
- package/components/toggle/index.d.ts +11 -0
- package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
- package/components/tooltip/TextWithTitleContent.vue.js +11 -6
- package/components/tooltip/Tooltip.vue.d.ts +5 -0
- package/components/tooltip/Tooltip.vue.js +8 -4
- package/components/tooltip/index.d.ts +11 -0
- package/components/typography/Heading.vue.d.ts +5 -0
- package/components/typography/Heading.vue.js +7 -4
- package/components/typography/Text.vue.d.ts +5 -0
- package/components/typography/Text.vue.js +8 -4
- package/components/typography/index.d.ts +22 -0
- package/package.json +1 -1
- package/testids/index.d.ts +142 -10
- package/testids/index.vue.js +163 -11
|
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
title?: string;
|
|
15
15
|
showCloseButton?: boolean;
|
|
16
16
|
themeClass?: string;
|
|
17
|
+
testId?: string;
|
|
17
18
|
}>, {
|
|
18
19
|
content: any;
|
|
19
20
|
width: string;
|
|
@@ -28,6 +29,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
29
|
escapeToClose: boolean;
|
|
29
30
|
beforeClose: any;
|
|
30
31
|
themeClass: string;
|
|
32
|
+
testId: string;
|
|
31
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
34
|
"update:modelValue": (value: boolean) => void;
|
|
33
35
|
} & {
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
49
51
|
title?: string;
|
|
50
52
|
showCloseButton?: boolean;
|
|
51
53
|
themeClass?: string;
|
|
54
|
+
testId?: string;
|
|
52
55
|
}>, {
|
|
53
56
|
content: any;
|
|
54
57
|
width: string;
|
|
@@ -63,12 +66,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
66
|
escapeToClose: boolean;
|
|
64
67
|
beforeClose: any;
|
|
65
68
|
themeClass: string;
|
|
69
|
+
testId: string;
|
|
66
70
|
}>>> & {
|
|
67
71
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
68
72
|
onClose?: (reason: Reason) => any;
|
|
69
73
|
onOpen?: () => any;
|
|
70
74
|
}, {
|
|
71
75
|
title: string;
|
|
76
|
+
testId: string;
|
|
72
77
|
content: string;
|
|
73
78
|
width: string | number;
|
|
74
79
|
appendToBody: boolean;
|
|
@@ -6,19 +6,21 @@ import { NOOP } from '@vue/shared';
|
|
|
6
6
|
import { Reason } from './Reason.vue.js';
|
|
7
7
|
import IconButton from '../button/IconButton.vue.js';
|
|
8
8
|
import Icon from '../icon/Icon.vue.js';
|
|
9
|
+
import { DialogTestIdModifiers } from '../../testids/index.vue.js';
|
|
9
10
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
10
11
|
|
|
11
12
|
import "../../Dialog.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
12
|
-
const _hoisted_1 =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
13
|
+
const _hoisted_1 = ["data-testid"];
|
|
14
|
+
const _hoisted_2 = ["data-testid"];
|
|
15
|
+
const _hoisted_3 = ["data-testid"];
|
|
16
|
+
const _hoisted_4 = ["data-testid"];
|
|
17
|
+
const _hoisted_5 = { class: "placeholder" };
|
|
18
|
+
const _hoisted_6 = {
|
|
18
19
|
key: 1,
|
|
19
20
|
class: "footer"
|
|
20
21
|
};
|
|
21
|
-
const
|
|
22
|
+
const _hoisted_7 = ["data-testid"];
|
|
23
|
+
const _hoisted_8 = ["data-testid"];
|
|
22
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
25
|
__name: "Dialog",
|
|
24
26
|
props: {
|
|
@@ -35,13 +37,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
37
|
beforeClose: { type: Function, default: null },
|
|
36
38
|
title: { default: "" },
|
|
37
39
|
showCloseButton: { type: Boolean, default: true },
|
|
38
|
-
themeClass: { default: "" }
|
|
40
|
+
themeClass: { default: "" },
|
|
41
|
+
testId: { default: "" }
|
|
39
42
|
},
|
|
40
43
|
emits: ["update:modelValue", "open", "close"],
|
|
41
44
|
setup(__props, { emit }) {
|
|
42
45
|
const props = __props;
|
|
43
46
|
useCssVars((_ctx) => ({
|
|
44
|
-
"
|
|
47
|
+
"7d57480a": __props.width
|
|
45
48
|
}));
|
|
46
49
|
const visible = ref(false);
|
|
47
50
|
let openTimer = void 0;
|
|
@@ -118,10 +121,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
121
|
createElementVNode("div", {
|
|
119
122
|
class: "modal",
|
|
120
123
|
style: normalizeStyle(unref(inlineStyle)),
|
|
124
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).WRAPPER}`,
|
|
121
125
|
onKeydown: _cache[1] || (_cache[1] = withKeys(($event) => __props.escapeToClose ? handleClose(unref(Reason).Escape) : unref(NOOP)(), ["esc"]))
|
|
122
126
|
}, [
|
|
123
127
|
createElementVNode("header", {
|
|
124
|
-
class: normalizeClass(["header", { "header--bordered": __props.headerBorder }])
|
|
128
|
+
class: normalizeClass(["header", { "header--bordered": __props.headerBorder }]),
|
|
129
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).HEADER}`
|
|
125
130
|
}, [
|
|
126
131
|
__props.headerBorder ? renderSlot(_ctx.$slots, "header", { key: 0 }, () => [
|
|
127
132
|
createVNode(Text, { strong: "" }, {
|
|
@@ -138,6 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
143
|
theme: "secondary",
|
|
139
144
|
variant: "colorized",
|
|
140
145
|
"icon-name": "close",
|
|
146
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).ACTION_CLOSE}`,
|
|
141
147
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose(unref(Reason).CloseButton))
|
|
142
148
|
}, {
|
|
143
149
|
default: withCtx(() => [
|
|
@@ -147,9 +153,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
153
|
})
|
|
148
154
|
]),
|
|
149
155
|
_: 1
|
|
150
|
-
})) : createCommentVNode("", true)
|
|
151
|
-
],
|
|
152
|
-
!__props.headerBorder ? (openBlock(), createElementBlock("div",
|
|
156
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true)
|
|
157
|
+
], 10, _hoisted_2),
|
|
158
|
+
!__props.headerBorder ? (openBlock(), createElementBlock("div", {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: "header--secondary",
|
|
161
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).HEADER_SECONDARY}`
|
|
162
|
+
}, [
|
|
153
163
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
154
164
|
createVNode(Text, { strong: "" }, {
|
|
155
165
|
default: withCtx(() => [
|
|
@@ -158,25 +168,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
168
|
_: 1
|
|
159
169
|
})
|
|
160
170
|
], true)
|
|
161
|
-
])) : createCommentVNode("", true),
|
|
171
|
+
], 8, _hoisted_3)) : createCommentVNode("", true),
|
|
162
172
|
createElementVNode("div", {
|
|
163
|
-
class: normalizeClass(["content", { "content--bordered": __props.headerBorder }])
|
|
173
|
+
class: normalizeClass(["content", { "content--bordered": __props.headerBorder }]),
|
|
174
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).CONTENT}`
|
|
164
175
|
}, [
|
|
165
176
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
166
|
-
createElementVNode("div",
|
|
177
|
+
createElementVNode("div", _hoisted_5, toDisplayString(__props.content), 1)
|
|
167
178
|
], true)
|
|
168
|
-
],
|
|
169
|
-
_ctx.$slots["footer"] ? (openBlock(), createElementBlock("footer",
|
|
170
|
-
createElementVNode("div",
|
|
179
|
+
], 10, _hoisted_4),
|
|
180
|
+
_ctx.$slots["footer"] ? (openBlock(), createElementBlock("footer", _hoisted_6, [
|
|
181
|
+
createElementVNode("div", {
|
|
182
|
+
class: "action-buttons",
|
|
183
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).ACTION_BUTTONS_WRAPPER}`
|
|
184
|
+
}, [
|
|
171
185
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
172
|
-
])
|
|
186
|
+
], 8, _hoisted_7)
|
|
173
187
|
])) : createCommentVNode("", true)
|
|
174
|
-
],
|
|
188
|
+
], 44, _hoisted_1),
|
|
175
189
|
__props.showBackdrop ? (openBlock(), createElementBlock("div", {
|
|
176
190
|
key: 0,
|
|
177
191
|
class: "backdrop",
|
|
192
|
+
"data-testid": `${__props.testId}-${unref(DialogTestIdModifiers).BACKDROP}`,
|
|
178
193
|
onClick: _cache[2] || (_cache[2] = ($event) => __props.closeOnClickOutside ? handleClose(unref(Reason).Backdrop) : unref(NOOP)())
|
|
179
|
-
})) : createCommentVNode("", true)
|
|
194
|
+
}, null, 8, _hoisted_8)) : createCommentVNode("", true)
|
|
180
195
|
]),
|
|
181
196
|
_: 3
|
|
182
197
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
@@ -187,6 +202,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
202
|
};
|
|
188
203
|
}
|
|
189
204
|
});
|
|
190
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
205
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-55aea585"]]);
|
|
191
206
|
|
|
192
207
|
export { Dialog as default };
|
|
@@ -4,6 +4,11 @@ declare const DialogTypes: () => import("vue").DefineComponent<{
|
|
|
4
4
|
} & {
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
+
testId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
} & {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
7
12
|
modelValue: {
|
|
8
13
|
type: import("vue").PropType<boolean>;
|
|
9
14
|
required: true;
|
|
@@ -80,6 +85,11 @@ declare const DialogTypes: () => import("vue").DefineComponent<{
|
|
|
80
85
|
} & {
|
|
81
86
|
default: string;
|
|
82
87
|
};
|
|
88
|
+
testId: {
|
|
89
|
+
type: import("vue").PropType<string>;
|
|
90
|
+
} & {
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
83
93
|
modelValue: {
|
|
84
94
|
type: import("vue").PropType<boolean>;
|
|
85
95
|
required: true;
|
|
@@ -150,6 +160,7 @@ declare const DialogTypes: () => import("vue").DefineComponent<{
|
|
|
150
160
|
onOpen?: () => any;
|
|
151
161
|
}, {
|
|
152
162
|
title: string;
|
|
163
|
+
testId: string;
|
|
153
164
|
content: string;
|
|
154
165
|
width: string | number;
|
|
155
166
|
appendToBody: boolean;
|
|
@@ -166,6 +166,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
166
166
|
size: 'sm' | 'lg';
|
|
167
167
|
title: string;
|
|
168
168
|
error: string;
|
|
169
|
+
testId: string;
|
|
169
170
|
theme: string;
|
|
170
171
|
placement: Placement;
|
|
171
172
|
disabled: boolean;
|
|
@@ -194,7 +195,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
194
195
|
disableKeyboardEvents: boolean;
|
|
195
196
|
multiOptionsPlaceholderPrefix: string;
|
|
196
197
|
multiOptionsPlaceholderSuffix: string;
|
|
197
|
-
testId: string;
|
|
198
198
|
}>;
|
|
199
199
|
export default _default;
|
|
200
200
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, useSlots, nextTick, toRaw, provide, onMounted, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode,
|
|
1
|
+
import { defineComponent, ref, computed, watch, useSlots, nextTick, toRaw, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, withCtx, Transition, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createBlock, mergeProps, withModifiers, Fragment, renderList, pushScopeId, popScopeId } from 'vue';
|
|
2
2
|
import Button from '../button/Button.vue.js';
|
|
3
3
|
import Icon from '../icon/Icon.vue.js';
|
|
4
|
+
import { DropdownTestIdModifiers } from '../../testids/index.vue.js';
|
|
4
5
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
5
6
|
import Text from '../typography/Text.vue.js';
|
|
6
7
|
/* empty css *//* empty css *//* empty css */import { Dropdown as Dropdown$1 } from 'floating-vue';
|
|
@@ -12,11 +13,10 @@ import { objectsEqual } from '../../utils/object.vue.js';
|
|
|
12
13
|
import { useClamp, useVirtualList, onClickOutside } from '@vueuse/core';
|
|
13
14
|
import { Mode, Type, DropdownContext } from './DropdownContext.vue.js';
|
|
14
15
|
import { pxToRem } from '../../utils/style.vue.js';
|
|
15
|
-
import { DropdownTestIdModifiers } from '../../testids/index.vue.js';
|
|
16
16
|
/* empty css *//* empty css */
|
|
17
17
|
import "../../Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css";import "../../Dropdown.vue_vue_type_style_index_1_lang.css";
|
|
18
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
19
|
-
const _hoisted_1 = ["tabindex"];
|
|
18
|
+
const _withScopeId = (n) => (pushScopeId("data-v-6b0dd6db"), n = n(), popScopeId(), n);
|
|
19
|
+
const _hoisted_1 = ["tabindex", "data-testid"];
|
|
20
20
|
const _hoisted_2 = ["disabled", "aria-expanded", "aria-labelledby", "aria-disabled"];
|
|
21
21
|
const _hoisted_3 = {
|
|
22
22
|
key: 0,
|
|
@@ -27,19 +27,17 @@ const _hoisted_5 = {
|
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "dropdown-title"
|
|
29
29
|
};
|
|
30
|
-
const _hoisted_6 =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
const _hoisted_7 = {
|
|
30
|
+
const _hoisted_6 = ["data-testid"];
|
|
31
|
+
const _hoisted_7 = ["data-testid"];
|
|
32
|
+
const _hoisted_8 = {
|
|
35
33
|
key: 0,
|
|
36
34
|
class: "no-result-container"
|
|
37
35
|
};
|
|
38
|
-
const
|
|
36
|
+
const _hoisted_9 = {
|
|
39
37
|
key: 1,
|
|
40
38
|
class: "loader"
|
|
41
39
|
};
|
|
42
|
-
const
|
|
40
|
+
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
43
41
|
width: "100",
|
|
44
42
|
height: "100",
|
|
45
43
|
viewBox: "0 0 100 100"
|
|
@@ -63,9 +61,9 @@ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElem
|
|
|
63
61
|
})
|
|
64
62
|
])
|
|
65
63
|
], -1));
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
64
|
+
const _hoisted_11 = { key: 2 };
|
|
65
|
+
const _hoisted_12 = ["aria-selected", "aria-disabled", "onClick"];
|
|
66
|
+
const _hoisted_13 = {
|
|
69
67
|
key: 0,
|
|
70
68
|
class: "actions"
|
|
71
69
|
};
|
|
@@ -532,6 +530,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
532
530
|
ref: el,
|
|
533
531
|
class: normalizeClass(["dropdown", { "dropdown--disabled": __props.disabled }]),
|
|
534
532
|
tabindex: __props.disabled ? -1 : 0,
|
|
533
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).WRAPPER}`,
|
|
535
534
|
onKeydown
|
|
536
535
|
}, [
|
|
537
536
|
renderSlot(_ctx.$slots, "label", {}, void 0, true),
|
|
@@ -560,14 +559,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
560
559
|
ref: listRef
|
|
561
560
|
}, [
|
|
562
561
|
__props.inlineSearch || __props.title ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
563
|
-
__props.title ? (openBlock(), createElementBlock("div",
|
|
562
|
+
__props.title ? (openBlock(), createElementBlock("div", {
|
|
563
|
+
key: 0,
|
|
564
|
+
class: "dropdown-title__text",
|
|
565
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).TITLE}`
|
|
566
|
+
}, [
|
|
564
567
|
createVNode(unref(Text), { strong: "" }, {
|
|
565
568
|
default: withCtx(() => [
|
|
566
569
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
567
570
|
]),
|
|
568
571
|
_: 1
|
|
569
572
|
})
|
|
570
|
-
])) : createCommentVNode("", true),
|
|
573
|
+
], 8, _hoisted_6)) : createCommentVNode("", true),
|
|
571
574
|
__props.inlineSearch ? (openBlock(), createBlock(unref(Search), {
|
|
572
575
|
key: 1,
|
|
573
576
|
modelValue: query.value,
|
|
@@ -576,8 +579,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
576
579
|
class: "dropdown-title__search",
|
|
577
580
|
variant: "transparent",
|
|
578
581
|
size: "md",
|
|
582
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).SEARCH}`,
|
|
579
583
|
onKeydown
|
|
580
|
-
}, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true)
|
|
584
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : createCommentVNode("", true)
|
|
581
585
|
])) : createCommentVNode("", true),
|
|
582
586
|
unref(open) ? (openBlock(), createElementBlock("div", {
|
|
583
587
|
key: 1,
|
|
@@ -587,13 +591,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
587
591
|
renderSlot(_ctx.$slots, "input-list", { open: unref(open) }, void 0, true),
|
|
588
592
|
createElementVNode("div", mergeProps(unref(containerProps), {
|
|
589
593
|
class: ["list-container", { "list-container--multi": __props.multi }],
|
|
590
|
-
style: { height: `${unref(calculateTableHeight)}rem` }
|
|
594
|
+
style: { height: `${unref(calculateTableHeight)}rem` },
|
|
595
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).LIST_CONTAINER}`
|
|
591
596
|
}), [
|
|
592
597
|
createElementVNode("ul", mergeProps(unref(wrapperProps), {
|
|
593
598
|
role: "listbox",
|
|
594
599
|
class: ["list", { "list--multi": __props.multi }]
|
|
595
600
|
}), [
|
|
596
|
-
!unref(filteredOptions).length && !__props.loading ? (openBlock(), createElementBlock("li",
|
|
601
|
+
!unref(filteredOptions).length && !__props.loading ? (openBlock(), createElementBlock("li", _hoisted_8, [
|
|
597
602
|
createVNode(unref(Text), {
|
|
598
603
|
size: "sm",
|
|
599
604
|
class: "no-result"
|
|
@@ -604,13 +609,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
604
609
|
_: 1
|
|
605
610
|
})
|
|
606
611
|
])) : createCommentVNode("", true),
|
|
607
|
-
__props.loading ? (openBlock(), createElementBlock("li",
|
|
612
|
+
__props.loading ? (openBlock(), createElementBlock("li", _hoisted_9, [
|
|
608
613
|
createVNode(unref(Icon), {
|
|
609
614
|
"font-size": "md",
|
|
610
615
|
class: "loader-icon"
|
|
611
616
|
}, {
|
|
612
617
|
default: withCtx(() => [
|
|
613
|
-
|
|
618
|
+
_hoisted_10
|
|
614
619
|
]),
|
|
615
620
|
_: 1
|
|
616
621
|
}),
|
|
@@ -621,7 +626,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
621
626
|
_: 1
|
|
622
627
|
})
|
|
623
628
|
])) : createCommentVNode("", true),
|
|
624
|
-
__props.showSelectAll ? (openBlock(), createElementBlock("li",
|
|
629
|
+
__props.showSelectAll ? (openBlock(), createElementBlock("li", _hoisted_11, [
|
|
625
630
|
createVNode(Option, {
|
|
626
631
|
"aria-selected": unref(allSelected),
|
|
627
632
|
"aria-disabled": !!__props.disabled,
|
|
@@ -648,37 +653,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
648
653
|
selected: isSelected(toRaw(unref(selectedOption)), data),
|
|
649
654
|
active: toRaw(unref(activeIndex)) === index
|
|
650
655
|
}, void 0, true)
|
|
651
|
-
], 8,
|
|
656
|
+
], 8, _hoisted_12);
|
|
652
657
|
}), 128)) : createCommentVNode("", true)
|
|
653
658
|
], 16)
|
|
654
|
-
], 16),
|
|
655
|
-
__props.multi ? (openBlock(), createElementBlock("div",
|
|
659
|
+
], 16, _hoisted_7),
|
|
660
|
+
__props.multi ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
656
661
|
createVNode(unref(Button), {
|
|
657
662
|
ref_key: "cancel",
|
|
658
663
|
ref: cancel,
|
|
659
664
|
size: "sm",
|
|
660
665
|
variant: "border",
|
|
661
666
|
theme: "third",
|
|
667
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_CANCEL}`,
|
|
662
668
|
onClick: onCancel
|
|
663
669
|
}, {
|
|
664
670
|
default: withCtx(() => [
|
|
665
671
|
createTextVNode(" Cancel ")
|
|
666
672
|
]),
|
|
667
673
|
_: 1
|
|
668
|
-
},
|
|
674
|
+
}, 8, ["test-id"]),
|
|
669
675
|
createVNode(unref(Button), {
|
|
670
676
|
ref_key: "apply",
|
|
671
677
|
ref: apply,
|
|
672
678
|
"data-testid": "mutli-apply",
|
|
673
679
|
size: "sm",
|
|
674
680
|
class: "apply-button",
|
|
681
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_APPLY}`,
|
|
675
682
|
onClick: onApply
|
|
676
683
|
}, {
|
|
677
684
|
default: withCtx(() => [
|
|
678
685
|
createTextVNode("Apply ")
|
|
679
686
|
]),
|
|
680
687
|
_: 1
|
|
681
|
-
},
|
|
688
|
+
}, 8, ["test-id"])
|
|
682
689
|
])) : createCommentVNode("", true)
|
|
683
690
|
], 32)) : createCommentVNode("", true)
|
|
684
691
|
], 512)
|
|
@@ -750,27 +757,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
750
757
|
!__props.error && __props.helperText ? (openBlock(), createBlock(unref(Text), {
|
|
751
758
|
key: 0,
|
|
752
759
|
size: "caption",
|
|
753
|
-
class: "helper-text"
|
|
760
|
+
class: "helper-text",
|
|
761
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT}`
|
|
754
762
|
}, {
|
|
755
763
|
default: withCtx(() => [
|
|
756
764
|
createTextVNode(toDisplayString(__props.helperText), 1)
|
|
757
765
|
]),
|
|
758
766
|
_: 1
|
|
759
|
-
})) : createCommentVNode("", true),
|
|
767
|
+
}, 8, ["test-id"])) : createCommentVNode("", true),
|
|
760
768
|
__props.error ? (openBlock(), createBlock(unref(Text), {
|
|
761
769
|
key: 1,
|
|
762
770
|
size: "caption",
|
|
763
|
-
class: "helper-text helper-text--error"
|
|
771
|
+
class: "helper-text helper-text--error",
|
|
772
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT_ERROR}`
|
|
764
773
|
}, {
|
|
765
774
|
default: withCtx(() => [
|
|
766
775
|
createTextVNode(toDisplayString(__props.error), 1)
|
|
767
776
|
]),
|
|
768
777
|
_: 1
|
|
769
|
-
})) : createCommentVNode("", true)
|
|
778
|
+
}, 8, ["test-id"])) : createCommentVNode("", true)
|
|
770
779
|
], 42, _hoisted_1);
|
|
771
780
|
};
|
|
772
781
|
}
|
|
773
782
|
});
|
|
774
|
-
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
783
|
+
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b0dd6db"]]);
|
|
775
784
|
|
|
776
785
|
export { Dropdown as default };
|
|
@@ -18,6 +18,11 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
18
18
|
} & {
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
testId: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
} & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
21
26
|
theme: {
|
|
22
27
|
type: import("vue").PropType<string>;
|
|
23
28
|
} & {
|
|
@@ -165,11 +170,6 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
165
170
|
} & {
|
|
166
171
|
default: string;
|
|
167
172
|
};
|
|
168
|
-
testId: {
|
|
169
|
-
type: import("vue").PropType<string>;
|
|
170
|
-
} & {
|
|
171
|
-
default: string;
|
|
172
|
-
};
|
|
173
173
|
showSelectAll: {
|
|
174
174
|
type: import("vue").PropType<boolean>;
|
|
175
175
|
};
|
|
@@ -209,6 +209,11 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
209
209
|
} & {
|
|
210
210
|
default: string;
|
|
211
211
|
};
|
|
212
|
+
testId: {
|
|
213
|
+
type: import("vue").PropType<string>;
|
|
214
|
+
} & {
|
|
215
|
+
default: string;
|
|
216
|
+
};
|
|
212
217
|
theme: {
|
|
213
218
|
type: import("vue").PropType<string>;
|
|
214
219
|
} & {
|
|
@@ -356,11 +361,6 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
356
361
|
} & {
|
|
357
362
|
default: string;
|
|
358
363
|
};
|
|
359
|
-
testId: {
|
|
360
|
-
type: import("vue").PropType<string>;
|
|
361
|
-
} & {
|
|
362
|
-
default: string;
|
|
363
|
-
};
|
|
364
364
|
showSelectAll: {
|
|
365
365
|
type: import("vue").PropType<boolean>;
|
|
366
366
|
};
|
|
@@ -381,6 +381,7 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
381
381
|
size: "sm" | "lg";
|
|
382
382
|
title: string;
|
|
383
383
|
error: string;
|
|
384
|
+
testId: string;
|
|
384
385
|
theme: string;
|
|
385
386
|
placement: import("floating-vue").Placement;
|
|
386
387
|
disabled: boolean;
|
|
@@ -409,6 +410,5 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
409
410
|
disableKeyboardEvents: boolean;
|
|
410
411
|
multiOptionsPlaceholderPrefix: string;
|
|
411
412
|
multiOptionsPlaceholderSuffix: string;
|
|
412
|
-
testId: string;
|
|
413
413
|
}> | import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>)[];
|
|
414
414
|
export { Dropdown, Option, Label, SearchInput, DropdownTypes };
|
|
@@ -2,10 +2,12 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
2
2
|
selected?: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
prefix?: string;
|
|
5
|
+
testId?: string;
|
|
5
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
7
|
selected?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
prefix?: string;
|
|
10
|
+
testId?: string;
|
|
9
11
|
}>>>, {}>;
|
|
10
12
|
export default _default;
|
|
11
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
props: {
|
|
11
11
|
selected: { type: Boolean },
|
|
12
12
|
disabled: { type: Boolean },
|
|
13
|
-
prefix: null
|
|
13
|
+
prefix: null,
|
|
14
|
+
testId: null
|
|
14
15
|
},
|
|
15
16
|
setup(__props) {
|
|
16
17
|
return (_ctx, _cache) => {
|
|
@@ -19,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
20
|
class: normalizeClass(["add-filter", { disabled: __props.disabled }]),
|
|
20
21
|
selected: __props.selected,
|
|
21
22
|
disabled: __props.disabled,
|
|
22
|
-
prefix: __props.prefix
|
|
23
|
+
prefix: __props.prefix,
|
|
24
|
+
"test-id": __props.testId
|
|
23
25
|
}, createSlots({
|
|
24
26
|
default: withCtx(() => [
|
|
25
27
|
createVNode(Text, {
|
|
@@ -44,10 +46,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
46
|
]),
|
|
45
47
|
key: "0"
|
|
46
48
|
} : void 0
|
|
47
|
-
]), 1032, ["class", "selected", "disabled", "prefix"]);
|
|
49
|
+
]), 1032, ["class", "selected", "disabled", "prefix", "test-id"]);
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
|
-
var AddFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
53
|
+
var AddFilterButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-44051188"]]);
|
|
52
54
|
|
|
53
55
|
export { AddFilterButton as default };
|
|
@@ -6,9 +6,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
6
6
|
onSearch: (item: unknown) => boolean;
|
|
7
7
|
options: unknown[];
|
|
8
8
|
addNewFilter: (filter: Filter) => void;
|
|
9
|
+
testId?: string;
|
|
9
10
|
}>, {
|
|
10
11
|
text: string;
|
|
11
12
|
disabled: boolean;
|
|
13
|
+
testId: string;
|
|
12
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
15
|
displayValue: (item: unknown) => string;
|
|
14
16
|
text?: string;
|
|
@@ -16,11 +18,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
18
|
onSearch: (item: unknown) => boolean;
|
|
17
19
|
options: unknown[];
|
|
18
20
|
addNewFilter: (filter: Filter) => void;
|
|
21
|
+
testId?: string;
|
|
19
22
|
}>, {
|
|
20
23
|
text: string;
|
|
21
24
|
disabled: boolean;
|
|
25
|
+
testId: string;
|
|
22
26
|
}>>>, {
|
|
23
27
|
text: string;
|
|
28
|
+
testId: string;
|
|
24
29
|
disabled: boolean;
|
|
25
30
|
}>;
|
|
26
31
|
export default _default;
|
|
@@ -13,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
disabled: { type: Boolean, default: false },
|
|
14
14
|
onSearch: null,
|
|
15
15
|
options: null,
|
|
16
|
-
addNewFilter: null
|
|
16
|
+
addNewFilter: null,
|
|
17
|
+
testId: { default: "" }
|
|
17
18
|
},
|
|
18
19
|
setup(__props) {
|
|
19
20
|
return (_ctx, _cache) => {
|
|
@@ -25,18 +26,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
26
|
skidding: 0,
|
|
26
27
|
"is-on-top": "",
|
|
27
28
|
options: __props.options,
|
|
29
|
+
"test-id": __props.testId,
|
|
28
30
|
"onUpdate:selected": __props.addNewFilter
|
|
29
31
|
}, {
|
|
30
32
|
input: withCtx(() => [
|
|
31
33
|
createVNode(AddFilterButton, {
|
|
32
34
|
class: "add-filter-button",
|
|
33
|
-
disabled: __props.disabled
|
|
35
|
+
disabled: __props.disabled,
|
|
36
|
+
"test-id": __props.testId
|
|
34
37
|
}, {
|
|
35
38
|
default: withCtx(() => [
|
|
36
39
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
37
40
|
]),
|
|
38
41
|
_: 1
|
|
39
|
-
}, 8, ["disabled"])
|
|
42
|
+
}, 8, ["disabled", "test-id"])
|
|
40
43
|
]),
|
|
41
44
|
default: withCtx(({ option }) => [
|
|
42
45
|
createVNode(unref(Option), { option }, {
|
|
@@ -47,10 +50,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
50
|
}, 1032, ["option"])
|
|
48
51
|
]),
|
|
49
52
|
_: 1
|
|
50
|
-
}, 8, ["display-value", "disabled", "on-search", "options", "onUpdate:selected"]);
|
|
53
|
+
}, 8, ["display-value", "disabled", "on-search", "options", "test-id", "onUpdate:selected"]);
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
|
-
var FilterDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
57
|
+
var FilterDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-59e42a26"]]);
|
|
55
58
|
|
|
56
59
|
export { FilterDropdown as default };
|