@ironsource/shared-ui 1.4.2-test.9 → 1.4.3-rc.0
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/DollarInput.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/Editable.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/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/README.md +37 -22
- 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 +17 -6
- 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 +12 -7
- 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 +62 -35
- package/components/dropdown/index.d.ts +11 -0
- package/components/emptyState/index.d.ts +3 -3
- 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/icon/Icon.vue.js +0 -1
- package/components/icon/icons/index.d.ts +0 -3
- package/components/icon/icons/index.vue.js +0 -3
- package/components/icon/index.d.ts +0 -3
- package/components/includeExclude/IncludeExclude.vue.d.ts +5 -13
- package/components/includeExclude/IncludeExclude.vue.js +86 -134
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +3 -4
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +2 -2
- package/components/includeExclude/includeExcludeMocks.d.ts +0 -12
- package/components/includeExclude/index.d.ts +23 -27
- package/components/includeExclude/index.vue.js +0 -3
- package/components/input/DollarInput.vue.d.ts +1 -1
- package/components/input/DollarInput.vue.js +1 -1
- package/components/input/Input.vue.d.ts +10 -0
- package/components/input/Input.vue.js +61 -35
- package/components/input/PasswordInput.vue.d.ts +1 -1
- package/components/input/PasswordInput.vue.js +1 -1
- package/components/input/PercentageInput.vue.d.ts +1 -1
- package/components/input/PercentageInput.vue.js +1 -1
- package/components/input/index.d.ts +34 -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.types.d.ts +0 -1
- package/components/table/Table.vue.d.ts +5 -10
- package/components/table/Table.vue.js +56 -52
- package/components/table/index.d.ts +11 -22
- package/components/table-cells/Editable.vue.js +1 -1
- 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 +10 -0
- package/components/toggle/Toggle.vue.js +37 -20
- package/components/toggle/index.d.ts +22 -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/consts/regex.d.ts +1 -0
- package/consts/regex.vue.js +3 -0
- package/consts/style.d.ts +1 -0
- package/consts/style.vue.js +3 -0
- package/index.vue.js +1 -2
- package/package.json +4 -5
- package/testids/index.d.ts +146 -0
- package/testids/index.vue.js +170 -0
- package/utils/style.d.ts +1 -0
- package/utils/style.vue.js +5 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/components/icon/icons/TableEdit.vue.d.ts +0 -2
- package/components/icon/icons/TableEdit.vue.js +0 -24
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -122
- package/components/table/Pagination.vue.d.ts +0 -43
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
declare const DatePickerTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
testId: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
2
7
|
modelValue: {
|
|
3
8
|
type: import("vue").PropType<string | Date>;
|
|
4
9
|
} & {
|
|
@@ -27,6 +32,11 @@ declare const DatePickerTypes: () => import("vue").DefineComponent<{
|
|
|
27
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
33
|
"update:modelValue": (val: string | Date) => void;
|
|
29
34
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
testId: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
37
|
+
} & {
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
30
40
|
modelValue: {
|
|
31
41
|
type: import("vue").PropType<string | Date>;
|
|
32
42
|
} & {
|
|
@@ -55,6 +65,7 @@ declare const DatePickerTypes: () => import("vue").DefineComponent<{
|
|
|
55
65
|
}>> & {
|
|
56
66
|
"onUpdate:modelValue"?: (val: string | Date) => any;
|
|
57
67
|
}, {
|
|
68
|
+
testId: string;
|
|
58
69
|
modelValue: string | Date;
|
|
59
70
|
placeholder: string;
|
|
60
71
|
uniqueId: string | number;
|
|
@@ -15,10 +15,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
id?: string | number;
|
|
16
16
|
allowedDays?: number;
|
|
17
17
|
maxAllowedDate?: Date;
|
|
18
|
+
testId?: string;
|
|
18
19
|
}>, {
|
|
19
20
|
id: number;
|
|
20
21
|
allowedDays: any;
|
|
21
22
|
maxAllowedDate: any;
|
|
23
|
+
testId: string;
|
|
22
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("navigation" | "selectionChanged")[], "navigation" | "selectionChanged", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
25
|
year: number;
|
|
24
26
|
days: Record<string, Day>;
|
|
@@ -35,14 +37,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
35
37
|
id?: string | number;
|
|
36
38
|
allowedDays?: number;
|
|
37
39
|
maxAllowedDate?: Date;
|
|
40
|
+
testId?: string;
|
|
38
41
|
}>, {
|
|
39
42
|
id: number;
|
|
40
43
|
allowedDays: any;
|
|
41
44
|
maxAllowedDate: any;
|
|
45
|
+
testId: string;
|
|
42
46
|
}>>> & {
|
|
43
47
|
onNavigation?: (...args: any[]) => any;
|
|
44
48
|
onSelectionChanged?: (...args: any[]) => any;
|
|
45
49
|
}, {
|
|
50
|
+
testId: string;
|
|
46
51
|
id: string | number;
|
|
47
52
|
allowedDays: number;
|
|
48
53
|
maxAllowedDate: Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, unref, createElementVNode, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass } from 'vue';
|
|
2
2
|
import dateServices from './DateServices.vue.js';
|
|
3
3
|
import { navigatePrev, navigateNext } from './consts.vue.js';
|
|
4
4
|
import Heading from '../typography/Heading.vue.js';
|
|
@@ -6,16 +6,17 @@ import Text from '../typography/Text.vue.js';
|
|
|
6
6
|
import Icon from '../icon/Icon.vue.js';
|
|
7
7
|
import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
8
8
|
/* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
|
|
9
|
+
import { CalendarMonthTestIdModifiers } from '../../testids/index.vue.js';
|
|
9
10
|
/* empty css */import 'floating-vue';
|
|
10
11
|
/* empty css *//* empty css */import { isBefore, isAfter, isSameDay } from 'date-fns';
|
|
11
12
|
import AngleLeft from '../icon/icons/AngleLeft.vue.js';
|
|
12
13
|
import AngleRight from '../icon/icons/AngleRight.vue.js';
|
|
13
14
|
/* empty css */
|
|
14
15
|
import "../../CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
15
|
-
const _hoisted_1 = ["id"];
|
|
16
|
-
const _hoisted_2 =
|
|
17
|
-
const _hoisted_3 =
|
|
18
|
-
const _hoisted_4 =
|
|
16
|
+
const _hoisted_1 = ["id", "data-testid"];
|
|
17
|
+
const _hoisted_2 = ["data-testid"];
|
|
18
|
+
const _hoisted_3 = ["data-testid"];
|
|
19
|
+
const _hoisted_4 = ["data-testid"];
|
|
19
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
21
|
__name: "CalendarMonth",
|
|
21
22
|
props: {
|
|
@@ -28,7 +29,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
type: null,
|
|
29
30
|
id: { default: Date.now() },
|
|
30
31
|
allowedDays: { default: null },
|
|
31
|
-
maxAllowedDate: { default: null }
|
|
32
|
+
maxAllowedDate: { default: null },
|
|
33
|
+
testId: { default: "" }
|
|
32
34
|
},
|
|
33
35
|
emits: ["selectionChanged", "navigation"],
|
|
34
36
|
setup(__props, { emit }) {
|
|
@@ -219,7 +221,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
221
|
return (_ctx, _cache) => {
|
|
220
222
|
return openBlock(), createElementBlock("div", {
|
|
221
223
|
id: "datepickerCalendar" + __props.id,
|
|
222
|
-
class: "calendar-month"
|
|
224
|
+
class: "calendar-month",
|
|
225
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).WRAPPER}`
|
|
223
226
|
}, [
|
|
224
227
|
createElementVNode("span", {
|
|
225
228
|
onClick: _cache[0] || (_cache[0] = ($event) => navigate(unref(navigatePrev)))
|
|
@@ -228,7 +231,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
231
|
key: 0,
|
|
229
232
|
variant: "borderless",
|
|
230
233
|
size: "md",
|
|
231
|
-
class: "previous"
|
|
234
|
+
class: "previous",
|
|
235
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).PREVIOUS}`
|
|
232
236
|
}, {
|
|
233
237
|
default: withCtx(() => [
|
|
234
238
|
createVNode(Icon, null, {
|
|
@@ -239,7 +243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
243
|
})
|
|
240
244
|
]),
|
|
241
245
|
_: 1
|
|
242
|
-
})) : createCommentVNode("", true)
|
|
246
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true)
|
|
243
247
|
]),
|
|
244
248
|
createElementVNode("span", {
|
|
245
249
|
onClick: _cache[1] || (_cache[1] = ($event) => navigate(unref(navigateNext)))
|
|
@@ -248,7 +252,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
248
252
|
key: 0,
|
|
249
253
|
class: "next",
|
|
250
254
|
variant: "borderless",
|
|
251
|
-
size: "md"
|
|
255
|
+
size: "md",
|
|
256
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).NEXT}`
|
|
252
257
|
}, {
|
|
253
258
|
default: withCtx(() => [
|
|
254
259
|
createVNode(Icon, null, {
|
|
@@ -259,16 +264,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
259
264
|
})
|
|
260
265
|
]),
|
|
261
266
|
_: 1
|
|
262
|
-
})) : createCommentVNode("", true)
|
|
267
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true)
|
|
263
268
|
]),
|
|
264
|
-
createElementVNode("div",
|
|
265
|
-
|
|
269
|
+
createElementVNode("div", {
|
|
270
|
+
class: "month-header",
|
|
271
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).MONTH_HEADER}`
|
|
272
|
+
}, [
|
|
273
|
+
createVNode(Heading, {
|
|
274
|
+
level: "6",
|
|
275
|
+
"test-id": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).MONTH_HEADER_TEXT}`
|
|
276
|
+
}, {
|
|
266
277
|
default: withCtx(() => [
|
|
267
278
|
createTextVNode(toDisplayString(unref(monthName)) + " " + toDisplayString(__props.year), 1)
|
|
268
279
|
]),
|
|
269
280
|
_: 1
|
|
270
|
-
}),
|
|
271
|
-
createElementVNode("div",
|
|
281
|
+
}, 8, ["test-id"]),
|
|
282
|
+
createElementVNode("div", {
|
|
283
|
+
class: "days-header",
|
|
284
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).DAYS_HEADER}`
|
|
285
|
+
}, [
|
|
272
286
|
(openBlock(), createElementBlock(Fragment, null, renderList(dayNames, (weekDay, index) => {
|
|
273
287
|
return createVNode(unref(Text), {
|
|
274
288
|
key: index,
|
|
@@ -280,9 +294,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
294
|
_: 2
|
|
281
295
|
}, 1024);
|
|
282
296
|
}), 64))
|
|
283
|
-
])
|
|
284
|
-
]),
|
|
285
|
-
createElementVNode("div",
|
|
297
|
+
], 8, _hoisted_3)
|
|
298
|
+
], 8, _hoisted_2),
|
|
299
|
+
createElementVNode("div", {
|
|
300
|
+
class: "days-wrapper",
|
|
301
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).DAYS_WRAPPER}`
|
|
302
|
+
}, [
|
|
286
303
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.weeks, (week, weekIndex) => {
|
|
287
304
|
return openBlock(), createElementBlock("div", { key: weekIndex }, [
|
|
288
305
|
(openBlock(true), createElementBlock(Fragment, null, renderList(week, (day, dayIndex) => {
|
|
@@ -298,21 +315,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
298
315
|
"end-day": isEndDay(day)
|
|
299
316
|
}]),
|
|
300
317
|
size: "sm",
|
|
318
|
+
"data-testid": `${__props.testId}-${unref(CalendarMonthTestIdModifiers).DAY}-${day.value}`,
|
|
301
319
|
onClick: ($event) => day.disabled || day.isFuture || selectDay(day)
|
|
302
320
|
}, {
|
|
303
321
|
default: withCtx(() => [
|
|
304
322
|
createTextVNode(toDisplayString(day.value), 1)
|
|
305
323
|
]),
|
|
306
324
|
_: 2
|
|
307
|
-
}, 1032, ["class", "onClick"]);
|
|
325
|
+
}, 1032, ["class", "data-testid", "onClick"]);
|
|
308
326
|
}), 128))
|
|
309
327
|
]);
|
|
310
328
|
}), 128))
|
|
311
|
-
])
|
|
329
|
+
], 8, _hoisted_4)
|
|
312
330
|
], 8, _hoisted_1);
|
|
313
331
|
};
|
|
314
332
|
}
|
|
315
333
|
});
|
|
316
|
-
var CalendarMonth = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
334
|
+
var CalendarMonth = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aeb1d6d4"]]);
|
|
317
335
|
|
|
318
336
|
export { CalendarMonth as default };
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
openOnTop: boolean;
|
|
18
18
|
showPresets: boolean;
|
|
19
19
|
maxDate?: Date;
|
|
20
|
+
testId?: string;
|
|
20
21
|
}>, {
|
|
21
22
|
types: () => string[];
|
|
22
23
|
includeToday: boolean;
|
|
@@ -31,6 +32,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
31
32
|
openOnTop: boolean;
|
|
32
33
|
showPresets: boolean;
|
|
33
34
|
maxDate: any;
|
|
35
|
+
testId: string;
|
|
34
36
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "rangeTypeChanged" | "currentDateChanged" | "rangeChanged" | "dateRangePresetNameChanged" | "dismissed")[], "opened" | "rangeTypeChanged" | "currentDateChanged" | "rangeChanged" | "dateRangePresetNameChanged" | "dismissed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
37
|
range: {
|
|
36
38
|
from: Date;
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
49
51
|
openOnTop: boolean;
|
|
50
52
|
showPresets: boolean;
|
|
51
53
|
maxDate?: Date;
|
|
54
|
+
testId?: string;
|
|
52
55
|
}>, {
|
|
53
56
|
types: () => string[];
|
|
54
57
|
includeToday: boolean;
|
|
@@ -63,6 +66,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
66
|
openOnTop: boolean;
|
|
64
67
|
showPresets: boolean;
|
|
65
68
|
maxDate: any;
|
|
69
|
+
testId: string;
|
|
66
70
|
}>>> & {
|
|
67
71
|
onOpened?: (...args: any[]) => any;
|
|
68
72
|
onRangeTypeChanged?: (...args: any[]) => any;
|
|
@@ -71,6 +75,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
71
75
|
onDateRangePresetNameChanged?: (...args: any[]) => any;
|
|
72
76
|
onDismissed?: (...args: any[]) => any;
|
|
73
77
|
}, {
|
|
78
|
+
testId: string;
|
|
74
79
|
disabled: boolean;
|
|
75
80
|
allowedDays: number;
|
|
76
81
|
uniqueId: string | number;
|
|
@@ -6,30 +6,29 @@ import dateServices from './DateServices.vue.js';
|
|
|
6
6
|
import { typeToName, messagePerType, presetsList, formatError, mandatoryValuesError, navigatePrev, navigateNext } from './consts.vue.js';
|
|
7
7
|
import Button from '../button/Button.vue.js';
|
|
8
8
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
9
|
+
import { DateRangeTestIdModifiers } from '../../testids/index.vue.js';
|
|
9
10
|
/* empty css */import Text from '../typography/Text.vue.js';
|
|
10
11
|
/* empty css *//* empty css *//* empty css */import 'floating-vue';
|
|
11
12
|
/* empty css *//* empty css */import { min, addDays, format } from 'date-fns';
|
|
12
13
|
/* empty css */
|
|
13
14
|
import "../../DateRange.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
14
|
-
const _hoisted_1 = ["id"];
|
|
15
|
-
const _hoisted_2 = ["
|
|
16
|
-
const _hoisted_3 =
|
|
15
|
+
const _hoisted_1 = ["id", "data-testid"];
|
|
16
|
+
const _hoisted_2 = ["data-testid"];
|
|
17
|
+
const _hoisted_3 = ["id", "data-testid"];
|
|
18
|
+
const _hoisted_4 = {
|
|
17
19
|
key: 0,
|
|
18
20
|
class: "type-picker"
|
|
19
21
|
};
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "date-picker-menu"
|
|
24
|
-
};
|
|
25
|
-
const _hoisted_6 = ["id"];
|
|
22
|
+
const _hoisted_5 = ["onClick"];
|
|
23
|
+
const _hoisted_6 = ["data-testid"];
|
|
26
24
|
const _hoisted_7 = ["id"];
|
|
27
|
-
const _hoisted_8 = ["
|
|
28
|
-
const _hoisted_9 =
|
|
29
|
-
const _hoisted_10 = { class: "
|
|
30
|
-
const _hoisted_11 =
|
|
31
|
-
const _hoisted_12 = { class: "
|
|
32
|
-
const _hoisted_13 = { class: "
|
|
25
|
+
const _hoisted_8 = ["id"];
|
|
26
|
+
const _hoisted_9 = ["onClick"];
|
|
27
|
+
const _hoisted_10 = { class: "dropdown-rightTriangle" };
|
|
28
|
+
const _hoisted_11 = ["data-testid"];
|
|
29
|
+
const _hoisted_12 = { class: "date-picker-calendar left-box" };
|
|
30
|
+
const _hoisted_13 = { class: "buttons-cover" };
|
|
31
|
+
const _hoisted_14 = { class: "range" };
|
|
33
32
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
33
|
__name: "DateRange",
|
|
35
34
|
props: {
|
|
@@ -46,7 +45,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
45
|
initialType: { default: null },
|
|
47
46
|
openOnTop: { type: Boolean, default: false },
|
|
48
47
|
showPresets: { type: Boolean, default: true },
|
|
49
|
-
maxDate: { default: null }
|
|
48
|
+
maxDate: { default: null },
|
|
49
|
+
testId: { default: "" }
|
|
50
50
|
},
|
|
51
51
|
emits: [
|
|
52
52
|
"rangeTypeChanged",
|
|
@@ -504,10 +504,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
504
504
|
id: unref(datePickerId),
|
|
505
505
|
ref_key: "datePicker",
|
|
506
506
|
ref: datePicker,
|
|
507
|
-
class: normalizeClass(["relative-wrap", { "date-range-disabled": __props.disabled }])
|
|
507
|
+
class: normalizeClass(["relative-wrap", { "date-range-disabled": __props.disabled }]),
|
|
508
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).WRAPPER}`
|
|
508
509
|
}, [
|
|
509
510
|
createElementVNode("div", {
|
|
510
511
|
class: "date-range-field",
|
|
512
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).TRIGGER}`,
|
|
511
513
|
onClick: _cache[1] || (_cache[1] = ($event) => toggle())
|
|
512
514
|
}, [
|
|
513
515
|
renderSlot(_ctx.$slots, "field", {
|
|
@@ -517,7 +519,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
517
519
|
createElementVNode("span", null, toDisplayString(currentDate.value), 1),
|
|
518
520
|
_cache[0] || (setBlockTracking(-1), _cache[0] = createElementVNode("div", { class: "small-triangle" }), setBlockTracking(1), _cache[0])
|
|
519
521
|
], true)
|
|
520
|
-
]),
|
|
522
|
+
], 8, _hoisted_2),
|
|
521
523
|
withDirectives(createElementVNode("div", {
|
|
522
524
|
id: "datepickerPopup" + __props.uniqueId,
|
|
523
525
|
ref_key: "popup",
|
|
@@ -526,9 +528,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
526
528
|
placement.value,
|
|
527
529
|
__props.openOnTop ? "open-on-top" : "",
|
|
528
530
|
!__props.showPresets ? "hide-presets" : ""
|
|
529
|
-
]])
|
|
531
|
+
]]),
|
|
532
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).CONTAINER}`
|
|
530
533
|
}, [
|
|
531
|
-
__props.types.length > 1 ? (openBlock(), createElementBlock("div",
|
|
534
|
+
__props.types.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
532
535
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.types, (type) => {
|
|
533
536
|
return openBlock(), createElementBlock("span", {
|
|
534
537
|
key: type,
|
|
@@ -541,13 +544,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
541
544
|
]),
|
|
542
545
|
_: 2
|
|
543
546
|
}, 1024)
|
|
544
|
-
], 10,
|
|
547
|
+
], 10, _hoisted_5);
|
|
545
548
|
}), 128))
|
|
546
549
|
])) : createCommentVNode("", true),
|
|
547
550
|
createElementVNode("div", {
|
|
548
551
|
class: normalizeClass(["flex", { "pop-up-content": __props.types.length > 1 }])
|
|
549
552
|
}, [
|
|
550
|
-
__props.showPresets ? (openBlock(), createElementBlock("div",
|
|
553
|
+
__props.showPresets ? (openBlock(), createElementBlock("div", {
|
|
554
|
+
key: 0,
|
|
555
|
+
class: "date-picker-menu",
|
|
556
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).MENU}`
|
|
557
|
+
}, [
|
|
551
558
|
createElementVNode("div", {
|
|
552
559
|
id: "presets" + __props.uniqueId,
|
|
553
560
|
class: "preset-dropdown"
|
|
@@ -572,21 +579,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
572
579
|
]),
|
|
573
580
|
_: 2
|
|
574
581
|
}, 1024)
|
|
575
|
-
], 10,
|
|
576
|
-
withDirectives(createElementVNode("div",
|
|
582
|
+
], 10, _hoisted_9),
|
|
583
|
+
withDirectives(createElementVNode("div", _hoisted_10, null, 512), [
|
|
577
584
|
[vShow, uic.id === "custom"]
|
|
578
585
|
])
|
|
579
586
|
], 2);
|
|
580
587
|
}), 128))
|
|
581
|
-
], 8,
|
|
582
|
-
], 8,
|
|
583
|
-
createElementVNode("div",
|
|
584
|
-
|
|
588
|
+
], 8, _hoisted_8)
|
|
589
|
+
], 8, _hoisted_7),
|
|
590
|
+
createElementVNode("div", {
|
|
591
|
+
class: "type-message",
|
|
592
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).MESSAGE}`
|
|
593
|
+
}, toDisplayString(unref(messagePerType)[rangeType.value]), 9, _hoisted_11)
|
|
594
|
+
], 8, _hoisted_6)) : createCommentVNode("", true),
|
|
585
595
|
createElementVNode("div", {
|
|
586
596
|
class: "calendar-wrap",
|
|
587
597
|
style: normalizeStyle({ height: unref(isCompact) ? "336px" : "372px" })
|
|
588
598
|
}, [
|
|
589
|
-
createElementVNode("div",
|
|
599
|
+
createElementVNode("div", _hoisted_12, [
|
|
590
600
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayedMonthsKeys.value, (currMonth, index) => {
|
|
591
601
|
return openBlock(), createElementBlock("div", { key: currMonth }, [
|
|
592
602
|
createVNode(CalendarMonth, {
|
|
@@ -603,13 +613,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
603
613
|
type: rangeType.value,
|
|
604
614
|
"allowed-days": __props.allowedDays,
|
|
605
615
|
"max-allowed-date": unref(getMaxAllowedDate),
|
|
616
|
+
"test-id": `${__props.testId}-${index}`,
|
|
606
617
|
onSelectionChanged: selectionChanged,
|
|
607
618
|
onNavigation: navigationCallback
|
|
608
|
-
}, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date"])
|
|
619
|
+
}, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "test-id"])
|
|
609
620
|
]);
|
|
610
621
|
}), 128)),
|
|
611
|
-
createElementVNode("div",
|
|
612
|
-
createElementVNode("div",
|
|
622
|
+
createElementVNode("div", _hoisted_13, [
|
|
623
|
+
createElementVNode("div", _hoisted_14, [
|
|
613
624
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
614
625
|
]),
|
|
615
626
|
withDirectives(createElementVNode("div", { class: "error" }, toDisplayString(error.value), 513), [
|
|
@@ -620,37 +631,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
620
631
|
id: "button-ok" + __props.uniqueId,
|
|
621
632
|
size: "sm",
|
|
622
633
|
class: "primary button small",
|
|
634
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).ACTION_APPLY}`,
|
|
623
635
|
onClick: ($event) => apply()
|
|
624
636
|
}, {
|
|
625
637
|
default: withCtx(() => [
|
|
626
638
|
createTextVNode(" Apply ")
|
|
627
639
|
]),
|
|
628
640
|
_: 1
|
|
629
|
-
}, 8, ["id", "onClick"]),
|
|
641
|
+
}, 8, ["id", "data-testid", "onClick"]),
|
|
630
642
|
createVNode(unref(Button), {
|
|
631
643
|
id: "button-cancel" + __props.uniqueId,
|
|
632
644
|
size: "sm",
|
|
633
645
|
theme: "third",
|
|
634
646
|
class: "button small border third transparent",
|
|
647
|
+
"data-testid": `${__props.testId}-${unref(DateRangeTestIdModifiers).ACTION_CANCEL}`,
|
|
635
648
|
onClick: ($event) => toggle()
|
|
636
649
|
}, {
|
|
637
650
|
default: withCtx(() => [
|
|
638
651
|
createTextVNode(" Cancel ")
|
|
639
652
|
]),
|
|
640
653
|
_: 1
|
|
641
|
-
}, 8, ["id", "onClick"])
|
|
654
|
+
}, 8, ["id", "data-testid", "onClick"])
|
|
642
655
|
]), setBlockTracking(1), _cache[2])
|
|
643
656
|
])
|
|
644
657
|
])
|
|
645
658
|
], 4)
|
|
646
659
|
], 2)
|
|
647
|
-
], 10,
|
|
660
|
+
], 10, _hoisted_3), [
|
|
648
661
|
[vShow, unref(isOpen)]
|
|
649
662
|
])
|
|
650
663
|
], 10, _hoisted_1);
|
|
651
664
|
};
|
|
652
665
|
}
|
|
653
666
|
});
|
|
654
|
-
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
667
|
+
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b7430f6a"]]);
|
|
655
668
|
|
|
656
669
|
export { DateRange as default };
|
|
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
initialType: null | 'date' | 'week' | 'month';
|
|
18
18
|
openOnTop: boolean;
|
|
19
|
+
testId?: string;
|
|
19
20
|
}>, {
|
|
20
21
|
isTitleStyle: boolean;
|
|
21
22
|
types: () => string[];
|
|
@@ -29,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
29
30
|
disabled: boolean;
|
|
30
31
|
initialType: any;
|
|
31
32
|
openOnTop: boolean;
|
|
33
|
+
testId: string;
|
|
32
34
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "dismissed" | "update:range")[], "opened" | "dismissed" | "update:range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
35
|
range: {
|
|
34
36
|
from: Date;
|
|
@@ -46,6 +48,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
48
|
disabled?: boolean;
|
|
47
49
|
initialType: null | 'date' | 'week' | 'month';
|
|
48
50
|
openOnTop: boolean;
|
|
51
|
+
testId?: string;
|
|
49
52
|
}>, {
|
|
50
53
|
isTitleStyle: boolean;
|
|
51
54
|
types: () => string[];
|
|
@@ -59,11 +62,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
59
62
|
disabled: boolean;
|
|
60
63
|
initialType: any;
|
|
61
64
|
openOnTop: boolean;
|
|
65
|
+
testId: string;
|
|
62
66
|
}>>> & {
|
|
63
67
|
onOpened?: (...args: any[]) => any;
|
|
64
68
|
onDismissed?: (...args: any[]) => any;
|
|
65
69
|
"onUpdate:range"?: (...args: any[]) => any;
|
|
66
70
|
}, {
|
|
71
|
+
testId: string;
|
|
67
72
|
disabled: boolean;
|
|
68
73
|
allowedDays: number;
|
|
69
74
|
uniqueId: string | number;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
declare const DateRangeTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
testId: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
2
7
|
disabled: {
|
|
3
8
|
type: import("vue").PropType<boolean>;
|
|
4
9
|
} & {
|
|
@@ -75,6 +80,11 @@ declare const DateRangeTypes: () => import("vue").DefineComponent<{
|
|
|
75
80
|
default: any;
|
|
76
81
|
};
|
|
77
82
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "rangeTypeChanged" | "currentDateChanged" | "rangeChanged" | "dateRangePresetNameChanged" | "dismissed")[], "opened" | "rangeTypeChanged" | "currentDateChanged" | "rangeChanged" | "dateRangePresetNameChanged" | "dismissed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
testId: {
|
|
84
|
+
type: import("vue").PropType<string>;
|
|
85
|
+
} & {
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
78
88
|
disabled: {
|
|
79
89
|
type: import("vue").PropType<boolean>;
|
|
80
90
|
} & {
|
|
@@ -158,6 +168,7 @@ declare const DateRangeTypes: () => import("vue").DefineComponent<{
|
|
|
158
168
|
onDateRangePresetNameChanged?: (...args: any[]) => any;
|
|
159
169
|
onDismissed?: (...args: any[]) => any;
|
|
160
170
|
}, {
|
|
171
|
+
testId: string;
|
|
161
172
|
disabled: boolean;
|
|
162
173
|
allowedDays: number;
|
|
163
174
|
uniqueId: string | number;
|
|
@@ -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;
|