@ironsource/shared-ui 1.4.2-test.9 → 1.4.2
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 +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 +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
|
@@ -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;
|
|
@@ -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;
|
|
@@ -36,6 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
36
|
disableKeyboardEvents?: boolean;
|
|
37
37
|
multiOptionsPlaceholderPrefix?: string;
|
|
38
38
|
multiOptionsPlaceholderSuffix?: string;
|
|
39
|
+
testId?: string;
|
|
39
40
|
}>, {
|
|
40
41
|
multi: boolean;
|
|
41
42
|
searchPlaceholder: string;
|
|
@@ -69,6 +70,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
69
70
|
disableKeyboardEvents: boolean;
|
|
70
71
|
multiOptionsPlaceholderPrefix: string;
|
|
71
72
|
multiOptionsPlaceholderSuffix: string;
|
|
73
|
+
testId: string;
|
|
72
74
|
}>, {
|
|
73
75
|
selectItem: (option: any, index?: number) => void;
|
|
74
76
|
scrollTo: (index: number) => void;
|
|
@@ -119,6 +121,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
119
121
|
disableKeyboardEvents?: boolean;
|
|
120
122
|
multiOptionsPlaceholderPrefix?: string;
|
|
121
123
|
multiOptionsPlaceholderSuffix?: string;
|
|
124
|
+
testId?: string;
|
|
122
125
|
}>, {
|
|
123
126
|
multi: boolean;
|
|
124
127
|
searchPlaceholder: string;
|
|
@@ -152,6 +155,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
152
155
|
disableKeyboardEvents: boolean;
|
|
153
156
|
multiOptionsPlaceholderPrefix: string;
|
|
154
157
|
multiOptionsPlaceholderSuffix: string;
|
|
158
|
+
testId: string;
|
|
155
159
|
}>>> & {
|
|
156
160
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
157
161
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -162,6 +166,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
162
166
|
size: 'sm' | 'lg';
|
|
163
167
|
title: string;
|
|
164
168
|
error: string;
|
|
169
|
+
testId: string;
|
|
165
170
|
theme: string;
|
|
166
171
|
placement: Placement;
|
|
167
172
|
disabled: boolean;
|