@ironsource/shared-ui 1.4.2-rc.15 → 1.4.2-rc.17
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/IncludeExclude.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 +5 -0
- package/components/dropdown/Dropdown.vue.js +46 -34
- package/components/dropdown/index.d.ts +11 -0
- 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 +2 -2
- 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/index.vue.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +146 -0
- package/testids/index.vue.js +170 -0
- package/consts/test-ids.d.ts +0 -11
- package/consts/test-ids.vue.js +0 -14
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, unref, ref, provide, computed, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, normalizeClass, Fragment, renderList, createBlock, mergeProps, withDirectives, vShow } from 'vue';
|
|
2
|
+
import { TableTestIdModifiers } from '../../testids/index.vue.js';
|
|
2
3
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
4
|
import Text from '../typography/Text.vue.js';
|
|
4
5
|
/* empty css *//* empty css *//* empty css *//* empty css */import ScrollButton from '../button/ScrollButton.vue.js';
|
|
@@ -9,19 +10,19 @@ import { useVirtualList, useInfiniteScroll } from '@vueuse/core';
|
|
|
9
10
|
import { TableContext } from './TableContext.vue.js';
|
|
10
11
|
/* empty css *//* empty css */
|
|
11
12
|
import "../../Table.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
12
|
-
const _hoisted_1 =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
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 = ["data-testid"];
|
|
18
|
+
const _hoisted_6 = ["data-testid"];
|
|
19
|
+
const _hoisted_7 = ["data-testid"];
|
|
20
|
+
const _hoisted_8 = ["onClick"];
|
|
21
|
+
const _hoisted_9 = { class: "table-head-container" };
|
|
22
|
+
const _hoisted_10 = ["data-testid"];
|
|
23
|
+
const _hoisted_11 = ["onMouseenter"];
|
|
24
|
+
const _hoisted_12 = { key: 1 };
|
|
25
|
+
const _hoisted_13 = { key: 1 };
|
|
25
26
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
27
|
__name: "Table",
|
|
27
28
|
props: {
|
|
@@ -37,13 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
isInfiniteScroll: { type: Boolean, default: false },
|
|
38
39
|
infiniteScrollThreshold: { default: 100 },
|
|
39
40
|
rowHeight: { type: [Number, Function], default: 48 },
|
|
40
|
-
loadingRowCount: { default: 3 }
|
|
41
|
+
loadingRowCount: { default: 3 },
|
|
42
|
+
testId: { default: "" }
|
|
41
43
|
},
|
|
42
44
|
emits: ["update:sort", "saveRow", "loadMore"],
|
|
43
45
|
setup(__props, { emit }) {
|
|
44
46
|
const props = __props;
|
|
45
47
|
useCssVars((_ctx) => ({
|
|
46
|
-
"
|
|
48
|
+
"04775a54": unref(gridColumnTemplate)
|
|
47
49
|
}));
|
|
48
50
|
const savingRows = ref([]);
|
|
49
51
|
provide(TableContext, {
|
|
@@ -148,15 +150,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
150
|
return (_ctx, _cache) => {
|
|
149
151
|
return openBlock(), createElementBlock("div", {
|
|
150
152
|
class: "table-container",
|
|
153
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).CONTAINER}`,
|
|
151
154
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => activeRow.value = null)
|
|
152
155
|
}, [
|
|
153
156
|
createElementVNode("table", {
|
|
154
157
|
ref: unref(containerProps).ref,
|
|
155
158
|
style: normalizeStyle(unref(containerStyle)),
|
|
159
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).TABLE}`,
|
|
156
160
|
onScrollPassive: onScroll
|
|
157
161
|
}, [
|
|
158
|
-
__props.title || _ctx.$slots["search"] ? (openBlock(), createElementBlock("div",
|
|
159
|
-
|
|
162
|
+
__props.title || _ctx.$slots["search"] ? (openBlock(), createElementBlock("div", {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "table-header",
|
|
165
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).HEADER}`
|
|
166
|
+
}, [
|
|
167
|
+
createElementVNode("div", {
|
|
168
|
+
class: "table-title",
|
|
169
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).TITLE}`
|
|
170
|
+
}, [
|
|
160
171
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
161
172
|
createVNode(unref(Text), {
|
|
162
173
|
size: "md",
|
|
@@ -168,18 +179,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
179
|
_: 1
|
|
169
180
|
})
|
|
170
181
|
], true)
|
|
171
|
-
]),
|
|
172
|
-
createElementVNode("div",
|
|
182
|
+
], 8, _hoisted_4),
|
|
183
|
+
createElementVNode("div", {
|
|
184
|
+
class: "table-header-right",
|
|
185
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).HEADER_RIGHT}`
|
|
186
|
+
}, [
|
|
173
187
|
renderSlot(_ctx.$slots, "search", {}, void 0, true)
|
|
174
|
-
]),
|
|
175
|
-
createElementVNode("div",
|
|
188
|
+
], 8, _hoisted_5),
|
|
189
|
+
createElementVNode("div", {
|
|
190
|
+
class: "table-header-actions",
|
|
191
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).ACTIONS}`
|
|
192
|
+
}, [
|
|
176
193
|
renderSlot(_ctx.$slots, "table-header-actions", {}, void 0, true)
|
|
177
|
-
])
|
|
178
|
-
])) : createCommentVNode("", true),
|
|
194
|
+
], 8, _hoisted_6)
|
|
195
|
+
], 8, _hoisted_3)) : createCommentVNode("", true),
|
|
179
196
|
createElementVNode("thead", {
|
|
180
197
|
class: normalizeClass({ sticky: __props.isSticky })
|
|
181
198
|
}, [
|
|
182
|
-
createElementVNode("div",
|
|
199
|
+
createElementVNode("div", {
|
|
200
|
+
class: "sections",
|
|
201
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).SECTIONS}`
|
|
202
|
+
}, [
|
|
183
203
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.sections, (section) => {
|
|
184
204
|
return openBlock(), createElementBlock("div", {
|
|
185
205
|
key: section.id,
|
|
@@ -200,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
200
220
|
], true)
|
|
201
221
|
], 2);
|
|
202
222
|
}), 128))
|
|
203
|
-
]),
|
|
223
|
+
], 8, _hoisted_7),
|
|
204
224
|
createElementVNode("tr", null, [
|
|
205
225
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
206
226
|
return openBlock(), createElementBlock("th", {
|
|
@@ -209,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
229
|
style: normalizeStyle(column.isSticky ? unref(columnsStickyPositions)[column.id] : null),
|
|
210
230
|
onClick: ($event) => toggleSortOrder(column)
|
|
211
231
|
}, [
|
|
212
|
-
createElementVNode("div",
|
|
232
|
+
createElementVNode("div", _hoisted_9, [
|
|
213
233
|
renderSlot(_ctx.$slots, `header-${column.id}`, { column }, () => [
|
|
214
234
|
createVNode(unref(Text), {
|
|
215
235
|
size: "sm",
|
|
@@ -228,14 +248,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
248
|
"sort-order": __props.sort.sortOrder
|
|
229
249
|
}, null, 8, ["sort-order"])) : createCommentVNode("", true)
|
|
230
250
|
])
|
|
231
|
-
], 14,
|
|
251
|
+
], 14, _hoisted_8);
|
|
232
252
|
}), 128))
|
|
233
253
|
])
|
|
234
254
|
], 2),
|
|
235
255
|
createElementVNode("tbody", null, [
|
|
236
256
|
unref(list).length > 0 ? (openBlock(), createElementBlock("div", mergeProps({
|
|
237
257
|
key: 0,
|
|
238
|
-
class: "table-body-wrapper"
|
|
258
|
+
class: "table-body-wrapper",
|
|
259
|
+
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).BODY_WRAPPER}`
|
|
239
260
|
}, unref(wrapperProps)), [
|
|
240
261
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (row) => {
|
|
241
262
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -298,27 +319,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
298
319
|
], true)
|
|
299
320
|
], 6);
|
|
300
321
|
}), 128))
|
|
301
|
-
], 42,
|
|
322
|
+
], 42, _hoisted_11);
|
|
302
323
|
}), 128))
|
|
303
|
-
], 16)) : (openBlock(), createElementBlock("div",
|
|
324
|
+
], 16, _hoisted_10)) : (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
304
325
|
renderSlot(_ctx.$slots, "empty-state", {}, () => [
|
|
305
326
|
createVNode(unref(EmptyState), {
|
|
306
327
|
title: __props.emptyStateTitle,
|
|
307
|
-
subtitle: __props.emptyStateSubtitle
|
|
308
|
-
|
|
328
|
+
subtitle: __props.emptyStateSubtitle,
|
|
329
|
+
"test-id": `${__props.testId}-${unref(TableTestIdModifiers).EMPTY_STATE}`
|
|
330
|
+
}, null, 8, ["title", "subtitle", "test-id"])
|
|
309
331
|
], true)
|
|
310
332
|
]))
|
|
311
333
|
]),
|
|
312
|
-
unref(list).length > 0 ? (openBlock(), createElementBlock("tfoot",
|
|
313
|
-
],
|
|
334
|
+
unref(list).length > 0 ? (openBlock(), createElementBlock("tfoot", _hoisted_13)) : createCommentVNode("", true)
|
|
335
|
+
], 44, _hoisted_2),
|
|
314
336
|
createVNode(unref(ScrollButton), {
|
|
315
337
|
show: unref(showBackToTopButton),
|
|
316
338
|
onScrolled: scrollToTop
|
|
317
339
|
}, null, 8, ["show"])
|
|
318
|
-
],
|
|
340
|
+
], 40, _hoisted_1);
|
|
319
341
|
};
|
|
320
342
|
}
|
|
321
343
|
});
|
|
322
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
344
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-392e31d7"]]);
|
|
323
345
|
|
|
324
346
|
export { Table as default };
|
|
@@ -7,6 +7,11 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
7
7
|
type: import("vue").PropType<string>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
+
testId: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
} & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
10
15
|
columns: {
|
|
11
16
|
type: import("vue").PropType<import("./Table.types").Column[]>;
|
|
12
17
|
required: true;
|
|
@@ -80,6 +85,11 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
80
85
|
type: import("vue").PropType<string>;
|
|
81
86
|
required: true;
|
|
82
87
|
};
|
|
88
|
+
testId: {
|
|
89
|
+
type: import("vue").PropType<string>;
|
|
90
|
+
} & {
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
83
93
|
columns: {
|
|
84
94
|
type: import("vue").PropType<import("./Table.types").Column[]>;
|
|
85
95
|
required: true;
|
|
@@ -143,6 +153,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
143
153
|
}) => any;
|
|
144
154
|
onLoadMore?: () => any;
|
|
145
155
|
}, {
|
|
156
|
+
testId: string;
|
|
146
157
|
isLoading: boolean;
|
|
147
158
|
isSticky: boolean;
|
|
148
159
|
sections: import("./Table.types").Section[];
|
|
@@ -8,10 +8,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
selectedTab: number | string;
|
|
9
9
|
variant?: 'fix' | 'fill';
|
|
10
10
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
testId?: string;
|
|
11
12
|
}>, {
|
|
12
13
|
tabsList: () => any[];
|
|
13
14
|
variant: string;
|
|
14
15
|
size: string;
|
|
16
|
+
testId: string;
|
|
15
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
18
|
"update:selectedTab": (tabId: string | number) => void;
|
|
17
19
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -24,14 +26,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
26
|
selectedTab: number | string;
|
|
25
27
|
variant?: 'fix' | 'fill';
|
|
26
28
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
29
|
+
testId?: string;
|
|
27
30
|
}>, {
|
|
28
31
|
tabsList: () => any[];
|
|
29
32
|
variant: string;
|
|
30
33
|
size: string;
|
|
34
|
+
testId: string;
|
|
31
35
|
}>>> & {
|
|
32
36
|
"onUpdate:selectedTab"?: (tabId: string | number) => any;
|
|
33
37
|
}, {
|
|
34
38
|
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
39
|
+
testId: string;
|
|
35
40
|
variant: 'fix' | 'fill';
|
|
36
41
|
tabsList: {
|
|
37
42
|
id: number | string;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, unref, ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString, pushScopeId, popScopeId, createElementVNode } from 'vue';
|
|
2
|
+
import { TabsTestIdModifiers } from '../../testids/index.vue.js';
|
|
2
3
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
4
|
import Text from '../typography/Text.vue.js';
|
|
4
5
|
import Icon from '../icon/Icon.vue.js';
|
|
5
6
|
/* empty css */
|
|
6
7
|
import "../../Tabs.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
8
|
-
const _hoisted_1 = ["
|
|
9
|
-
const _hoisted_2 =
|
|
10
|
-
const _hoisted_3 = {
|
|
8
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c22c2836"), n = n(), popScopeId(), n);
|
|
9
|
+
const _hoisted_1 = ["data-testid"];
|
|
10
|
+
const _hoisted_2 = ["data-testid", "onClick", "onMouseover"];
|
|
11
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "tabs-border-line" }, null, -1));
|
|
12
|
+
const _hoisted_4 = {
|
|
11
13
|
key: 0,
|
|
12
14
|
class: "tabs-border-line-hover"
|
|
13
15
|
};
|
|
@@ -17,16 +19,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
19
|
tabsList: { default: () => [] },
|
|
18
20
|
selectedTab: null,
|
|
19
21
|
variant: { default: "fill" },
|
|
20
|
-
size: { default: "sm" }
|
|
22
|
+
size: { default: "sm" },
|
|
23
|
+
testId: { default: "" }
|
|
21
24
|
},
|
|
22
25
|
emits: ["update:selectedTab"],
|
|
23
26
|
setup(__props, { emit }) {
|
|
24
27
|
const props = __props;
|
|
25
28
|
useCssVars((_ctx) => ({
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"99d50838": unref(selectedTabPosition),
|
|
30
|
+
"1eedbceb": unref(selectedTabWidth),
|
|
31
|
+
"c715bc60": unref(selectedTabCenter),
|
|
32
|
+
"e8e3bca4": unref(hoveredTabCenter)
|
|
30
33
|
}));
|
|
31
34
|
const tabsNewList = ref([]);
|
|
32
35
|
const hoveredTab = ref(null);
|
|
@@ -76,7 +79,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
79
|
};
|
|
77
80
|
return (_ctx, _cache) => {
|
|
78
81
|
return openBlock(), createElementBlock("ul", {
|
|
79
|
-
class: normalizeClass(["tabs-wrap", [__props.size, __props.variant]])
|
|
82
|
+
class: normalizeClass(["tabs-wrap", [__props.size, __props.variant]]),
|
|
83
|
+
"data-testid": `${__props.testId}-${unref(TabsTestIdModifiers).WRAPPER}`
|
|
80
84
|
}, [
|
|
81
85
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabsList, (tab) => {
|
|
82
86
|
return openBlock(), createElementBlock("li", {
|
|
@@ -87,6 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
91
|
"disabled-tab": tab.disabled,
|
|
88
92
|
"selected-tab": tab.id === __props.selectedTab
|
|
89
93
|
}]),
|
|
94
|
+
"data-testid": `${__props.testId}-${unref(TabsTestIdModifiers).TAB}-${tab.id}`,
|
|
90
95
|
onClick: ($event) => selectTab(tab),
|
|
91
96
|
onMouseover: ($event) => setHover(tab),
|
|
92
97
|
onMouseleave: clearHover
|
|
@@ -111,14 +116,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
116
|
_: 2
|
|
112
117
|
}, 1024)) : createCommentVNode("", true)
|
|
113
118
|
], true)
|
|
114
|
-
], 42,
|
|
119
|
+
], 42, _hoisted_2);
|
|
115
120
|
}), 128)),
|
|
116
|
-
|
|
117
|
-
unref(isHovered) ? (openBlock(), createElementBlock("div",
|
|
118
|
-
],
|
|
121
|
+
_hoisted_3,
|
|
122
|
+
unref(isHovered) ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
|
123
|
+
], 10, _hoisted_1);
|
|
119
124
|
};
|
|
120
125
|
}
|
|
121
126
|
});
|
|
122
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
127
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c22c2836"]]);
|
|
123
128
|
|
|
124
129
|
export { Tabs as default };
|
|
@@ -4,6 +4,11 @@ declare const TabsTypes: () => 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
|
variant: {
|
|
8
13
|
type: import("vue").PropType<"fill" | "fix">;
|
|
9
14
|
} & {
|
|
@@ -32,6 +37,11 @@ declare const TabsTypes: () => import("vue").DefineComponent<{
|
|
|
32
37
|
} & {
|
|
33
38
|
default: string;
|
|
34
39
|
};
|
|
40
|
+
testId: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
} & {
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
35
45
|
variant: {
|
|
36
46
|
type: import("vue").PropType<"fill" | "fix">;
|
|
37
47
|
} & {
|
|
@@ -56,6 +66,7 @@ declare const TabsTypes: () => import("vue").DefineComponent<{
|
|
|
56
66
|
"onUpdate:selectedTab"?: (tabId: string | number) => any;
|
|
57
67
|
}, {
|
|
58
68
|
size: "md" | "sm" | "lg" | "xl";
|
|
69
|
+
testId: string;
|
|
59
70
|
variant: "fill" | "fix";
|
|
60
71
|
tabsList: {
|
|
61
72
|
id: string | number;
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
label?: string;
|
|
6
6
|
feedbackHelpText?: string;
|
|
7
7
|
feedbackErrorText?: string;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}>, {
|
|
9
10
|
modelValue: string;
|
|
10
11
|
placeholder: string;
|
|
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
12
13
|
label: string;
|
|
13
14
|
feedbackHelpText: string;
|
|
14
15
|
feedbackErrorText: string;
|
|
16
|
+
testId: string;
|
|
15
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
18
|
"update:modelValue": (value: string) => void;
|
|
17
19
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -21,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
23
|
label?: string;
|
|
22
24
|
feedbackHelpText?: string;
|
|
23
25
|
feedbackErrorText?: string;
|
|
26
|
+
testId?: string;
|
|
24
27
|
}>, {
|
|
25
28
|
modelValue: string;
|
|
26
29
|
placeholder: string;
|
|
@@ -28,10 +31,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
31
|
label: string;
|
|
29
32
|
feedbackHelpText: string;
|
|
30
33
|
feedbackErrorText: string;
|
|
34
|
+
testId: string;
|
|
31
35
|
}>>> & {
|
|
32
36
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
33
37
|
}, {
|
|
34
38
|
label: string;
|
|
39
|
+
testId: string;
|
|
35
40
|
disabled: boolean;
|
|
36
41
|
modelValue: string;
|
|
37
42
|
placeholder: string;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
|
|
2
|
+
import { TextAreaTestIdModifiers } from '../../testids/index.vue.js';
|
|
2
3
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
4
|
import Text from '../typography/Text.vue.js';
|
|
4
5
|
/* empty css */
|
|
5
6
|
import "../../TextArea.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
6
|
-
const _hoisted_1 =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const _hoisted_2 = ["value", "placeholder", "disabled"];
|
|
11
|
-
const _hoisted_3 = {
|
|
7
|
+
const _hoisted_1 = ["data-testid"];
|
|
8
|
+
const _hoisted_2 = ["data-testid"];
|
|
9
|
+
const _hoisted_3 = ["value", "placeholder", "disabled", "data-testid"];
|
|
10
|
+
const _hoisted_4 = {
|
|
12
11
|
key: 1,
|
|
13
12
|
class: "extra-text-container"
|
|
14
13
|
};
|
|
@@ -20,7 +19,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
19
|
disabled: { type: Boolean, default: false },
|
|
21
20
|
label: { default: "" },
|
|
22
21
|
feedbackHelpText: { default: "" },
|
|
23
|
-
feedbackErrorText: { default: "" }
|
|
22
|
+
feedbackErrorText: { default: "" },
|
|
23
|
+
testId: { default: "" }
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(__props, { emit }) {
|
|
@@ -29,38 +29,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
};
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
31
|
return openBlock(), createElementBlock("div", {
|
|
32
|
-
class: normalizeClass({ "textarea-with-label-container": true, disabled: __props.disabled })
|
|
32
|
+
class: normalizeClass({ "textarea-with-label-container": true, disabled: __props.disabled }),
|
|
33
|
+
"data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).WRAPPER}`
|
|
33
34
|
}, [
|
|
34
|
-
__props.label ? (openBlock(), createElementBlock("div",
|
|
35
|
+
__props.label ? (openBlock(), createElementBlock("div", {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "label-container",
|
|
38
|
+
"data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).LABEL}`
|
|
39
|
+
}, [
|
|
35
40
|
createVNode(unref(Text), { class: "label" }, {
|
|
36
41
|
default: withCtx(() => [
|
|
37
42
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
38
43
|
]),
|
|
39
44
|
_: 1
|
|
40
45
|
})
|
|
41
|
-
])) : createCommentVNode("", true),
|
|
46
|
+
], 8, _hoisted_2)) : createCommentVNode("", true),
|
|
42
47
|
createElementVNode("textarea", {
|
|
43
48
|
class: "textarea",
|
|
44
49
|
value: __props.modelValue,
|
|
45
50
|
placeholder: __props.placeholder,
|
|
46
51
|
disabled: __props.disabled,
|
|
52
|
+
"data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).FIELD}`,
|
|
47
53
|
onInput: handleInput
|
|
48
|
-
}, null, 40,
|
|
49
|
-
__props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div",
|
|
54
|
+
}, null, 40, _hoisted_3),
|
|
55
|
+
__props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
50
56
|
createVNode(unref(Text), {
|
|
51
57
|
class: normalizeClass({ [__props.feedbackErrorText ? "error" : "help"]: true }),
|
|
58
|
+
"data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).TEXT}`,
|
|
52
59
|
size: "caption"
|
|
53
60
|
}, {
|
|
54
61
|
default: withCtx(() => [
|
|
55
62
|
createTextVNode(toDisplayString(__props.feedbackErrorText || __props.feedbackHelpText), 1)
|
|
56
63
|
]),
|
|
57
64
|
_: 1
|
|
58
|
-
}, 8, ["class"])
|
|
65
|
+
}, 8, ["class", "data-testid"])
|
|
59
66
|
])) : createCommentVNode("", true)
|
|
60
|
-
],
|
|
67
|
+
], 10, _hoisted_1);
|
|
61
68
|
};
|
|
62
69
|
}
|
|
63
70
|
});
|
|
64
|
-
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
71
|
+
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6197672e"]]);
|
|
65
72
|
|
|
66
73
|
export { TextArea as default };
|
|
@@ -4,6 +4,11 @@ declare const TextAreaTypes: () => 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
|
disabled: {
|
|
8
13
|
type: import("vue").PropType<boolean>;
|
|
9
14
|
} & {
|
|
@@ -37,6 +42,11 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
37
42
|
} & {
|
|
38
43
|
default: string;
|
|
39
44
|
};
|
|
45
|
+
testId: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
} & {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
40
50
|
disabled: {
|
|
41
51
|
type: import("vue").PropType<boolean>;
|
|
42
52
|
} & {
|
|
@@ -66,6 +76,7 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
66
76
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
67
77
|
}, {
|
|
68
78
|
label: string;
|
|
79
|
+
testId: string;
|
|
69
80
|
disabled: boolean;
|
|
70
81
|
modelValue: string;
|
|
71
82
|
placeholder: string;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
color?: string;
|
|
10
|
+
testId?: string;
|
|
10
11
|
}>, {
|
|
11
12
|
activeText: any;
|
|
12
13
|
inactiveText: any;
|
|
@@ -15,6 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
16
|
isDisabled: boolean;
|
|
16
17
|
isLoading: boolean;
|
|
17
18
|
color: string;
|
|
19
|
+
testId: string;
|
|
18
20
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
21
|
"update:modelValue": (value: boolean) => void;
|
|
20
22
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -26,6 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
28
|
isDisabled?: boolean;
|
|
27
29
|
isLoading?: boolean;
|
|
28
30
|
color?: string;
|
|
31
|
+
testId?: string;
|
|
29
32
|
}>, {
|
|
30
33
|
activeText: any;
|
|
31
34
|
inactiveText: any;
|
|
@@ -34,9 +37,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
34
37
|
isDisabled: boolean;
|
|
35
38
|
isLoading: boolean;
|
|
36
39
|
color: string;
|
|
40
|
+
testId: string;
|
|
37
41
|
}>>> & {
|
|
38
42
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
39
43
|
}, {
|
|
44
|
+
testId: string;
|
|
40
45
|
helperText: string;
|
|
41
46
|
color: string;
|
|
42
47
|
isLoading: boolean;
|