@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.
Files changed (157) hide show
  1. package/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  2. package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  3. package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  4. package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  5. package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  6. package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  7. package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  8. package/Checkbox.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  9. package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  10. package/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  11. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  12. package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  13. package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  14. package/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  15. package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  16. package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  17. package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  18. package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  19. package/Heading.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  20. package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  21. package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  22. package/Menu.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  23. package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  24. package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  25. package/README.md +1 -1
  26. package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  27. package/RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  28. package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  29. package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  30. package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  31. package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  32. package/Text.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  33. package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  34. package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  35. package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  36. package/components/appTrigger/AppTrigger.vue.d.ts +5 -0
  37. package/components/appTrigger/AppTrigger.vue.js +29 -16
  38. package/components/appTrigger/index.d.ts +11 -0
  39. package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +5 -0
  40. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +7 -4
  41. package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +5 -0
  42. package/components/autocompleteDropdown/AutocompleteInput.vue.js +12 -6
  43. package/components/autocompleteDropdown/index.d.ts +11 -0
  44. package/components/banner/Banner.vue.d.ts +9 -0
  45. package/components/banner/Banner.vue.js +20 -9
  46. package/components/banner/index.d.ts +9 -0
  47. package/components/button/Button.vue.d.ts +5 -0
  48. package/components/button/Button.vue.js +6 -4
  49. package/components/button/index.d.ts +17 -6
  50. package/components/checkbox/Checkbox.vue.d.ts +5 -0
  51. package/components/checkbox/Checkbox.vue.js +20 -14
  52. package/components/checkbox/index.d.ts +11 -0
  53. package/components/chip/Chip.vue.d.ts +5 -0
  54. package/components/chip/Chip.vue.js +12 -7
  55. package/components/chip/index.d.ts +11 -0
  56. package/components/datePicker/DatePicker.vue.d.ts +5 -0
  57. package/components/datePicker/DatePicker.vue.js +11 -6
  58. package/components/datePicker/DatePickerMonth.vue.d.ts +5 -0
  59. package/components/datePicker/DatePickerMonth.vue.js +5 -3
  60. package/components/datePicker/index.d.ts +11 -0
  61. package/components/dateRange/CalendarMonth.vue.d.ts +5 -0
  62. package/components/dateRange/CalendarMonth.vue.js +39 -21
  63. package/components/dateRange/DateRange.vue.d.ts +5 -0
  64. package/components/dateRange/DateRange.vue.js +49 -36
  65. package/components/dateRange/DateRangePicker.vue.d.ts +5 -0
  66. package/components/dateRange/index.d.ts +11 -0
  67. package/components/dialog/Dialog.vue.d.ts +5 -0
  68. package/components/dialog/Dialog.vue.js +38 -23
  69. package/components/dialog/index.d.ts +11 -0
  70. package/components/dropdown/Dropdown.vue.d.ts +5 -0
  71. package/components/dropdown/Dropdown.vue.js +62 -35
  72. package/components/dropdown/index.d.ts +11 -0
  73. package/components/emptyState/index.d.ts +3 -3
  74. package/components/filterDropdown/AddFilterButton.vue.d.ts +2 -0
  75. package/components/filterDropdown/AddFilterButton.vue.js +6 -4
  76. package/components/filterDropdown/FilterDropdown.vue.d.ts +5 -0
  77. package/components/filterDropdown/FilterDropdown.vue.js +8 -5
  78. package/components/filterDropdown/index.d.ts +17 -0
  79. package/components/filtersPanel/FiltersPanel.vue.d.ts +5 -0
  80. package/components/filtersPanel/FiltersPanel.vue.js +7 -4
  81. package/components/icon/Icon.vue.js +0 -1
  82. package/components/icon/icons/index.d.ts +0 -3
  83. package/components/icon/icons/index.vue.js +0 -3
  84. package/components/icon/index.d.ts +0 -3
  85. package/components/includeExclude/IncludeExclude.vue.d.ts +5 -13
  86. package/components/includeExclude/IncludeExclude.vue.js +86 -134
  87. package/components/includeExclude/IncludeExcludeAppHeader.vue.js +3 -4
  88. package/components/includeExclude/IncludeExcludeChipFilter.vue.js +2 -2
  89. package/components/includeExclude/includeExcludeMocks.d.ts +0 -12
  90. package/components/includeExclude/index.d.ts +23 -27
  91. package/components/includeExclude/index.vue.js +0 -3
  92. package/components/input/DollarInput.vue.d.ts +1 -1
  93. package/components/input/DollarInput.vue.js +1 -1
  94. package/components/input/Input.vue.d.ts +10 -0
  95. package/components/input/Input.vue.js +61 -35
  96. package/components/input/PasswordInput.vue.d.ts +1 -1
  97. package/components/input/PasswordInput.vue.js +1 -1
  98. package/components/input/PercentageInput.vue.d.ts +1 -1
  99. package/components/input/PercentageInput.vue.js +1 -1
  100. package/components/input/index.d.ts +34 -0
  101. package/components/menu/Menu.vue.d.ts +5 -0
  102. package/components/menu/Menu.vue.js +6 -4
  103. package/components/menu/index.d.ts +11 -0
  104. package/components/popover/Popover.vue.d.ts +5 -0
  105. package/components/popover/Popover.vue.js +5 -3
  106. package/components/popover/index.d.ts +11 -0
  107. package/components/radioButton/RadioButton.vue.d.ts +5 -0
  108. package/components/radioButton/RadioButton.vue.js +15 -8
  109. package/components/radioButton/RadioGroup.vue.d.ts +5 -0
  110. package/components/radioButton/RadioGroup.vue.js +9 -5
  111. package/components/radioButton/index.d.ts +22 -0
  112. package/components/search/Search.vue.d.ts +5 -0
  113. package/components/search/Search.vue.js +13 -7
  114. package/components/search/index.d.ts +11 -0
  115. package/components/switch/Switch.vue.d.ts +5 -0
  116. package/components/switch/Switch.vue.js +17 -9
  117. package/components/switch/index.d.ts +11 -0
  118. package/components/table/Table.types.d.ts +0 -1
  119. package/components/table/Table.vue.d.ts +5 -10
  120. package/components/table/Table.vue.js +56 -52
  121. package/components/table/index.d.ts +11 -22
  122. package/components/table-cells/Editable.vue.js +1 -1
  123. package/components/tabs/Tabs.vue.d.ts +5 -0
  124. package/components/tabs/Tabs.vue.js +20 -15
  125. package/components/tabs/index.d.ts +11 -0
  126. package/components/textArea/TextArea.vue.d.ts +5 -0
  127. package/components/textArea/TextArea.vue.js +23 -16
  128. package/components/textArea/index.d.ts +11 -0
  129. package/components/toggle/Toggle.vue.d.ts +10 -0
  130. package/components/toggle/Toggle.vue.js +37 -20
  131. package/components/toggle/index.d.ts +22 -0
  132. package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
  133. package/components/tooltip/TextWithTitleContent.vue.js +11 -6
  134. package/components/tooltip/Tooltip.vue.d.ts +5 -0
  135. package/components/tooltip/Tooltip.vue.js +8 -4
  136. package/components/tooltip/index.d.ts +11 -0
  137. package/components/typography/Heading.vue.d.ts +5 -0
  138. package/components/typography/Heading.vue.js +7 -4
  139. package/components/typography/Text.vue.d.ts +5 -0
  140. package/components/typography/Text.vue.js +8 -4
  141. package/components/typography/index.d.ts +22 -0
  142. package/consts/regex.d.ts +1 -0
  143. package/consts/regex.vue.js +3 -0
  144. package/consts/style.d.ts +1 -0
  145. package/consts/style.vue.js +3 -0
  146. package/index.vue.js +1 -2
  147. package/package.json +4 -5
  148. package/testids/index.d.ts +146 -0
  149. package/testids/index.vue.js +170 -0
  150. package/utils/style.d.ts +1 -0
  151. package/utils/style.vue.js +5 -0
  152. package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
  153. package/components/icon/icons/TableEdit.vue.d.ts +0 -2
  154. package/components/icon/icons/TableEdit.vue.js +0 -24
  155. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
  156. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -122
  157. 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 = ["id"];
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 _hoisted_4 = ["onClick"];
21
- const _hoisted_5 = {
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 = ["onClick"];
28
- const _hoisted_9 = { class: "dropdown-rightTriangle" };
29
- const _hoisted_10 = { class: "type-message" };
30
- const _hoisted_11 = { class: "date-picker-calendar left-box" };
31
- const _hoisted_12 = { class: "buttons-cover" };
32
- const _hoisted_13 = { class: "range" };
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", _hoisted_3, [
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, _hoisted_4);
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", _hoisted_5, [
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, _hoisted_8),
576
- withDirectives(createElementVNode("div", _hoisted_9, null, 512), [
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, _hoisted_7)
582
- ], 8, _hoisted_6),
583
- createElementVNode("div", _hoisted_10, toDisplayString(unref(messagePerType)[rangeType.value]), 1)
584
- ])) : createCommentVNode("", true),
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", _hoisted_11, [
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", _hoisted_12, [
612
- createElementVNode("div", _hoisted_13, [
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, _hoisted_2), [
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-46a2bd5d"]]);
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
- key: 0,
14
- class: "header--secondary"
15
- };
16
- const _hoisted_2 = { class: "placeholder" };
17
- const _hoisted_3 = {
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 _hoisted_4 = { class: "action-buttons" };
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
- "5551d163": __props.width
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
- ], 2),
152
- !__props.headerBorder ? (openBlock(), createElementBlock("div", _hoisted_1, [
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", _hoisted_2, toDisplayString(__props.content), 1)
177
+ createElementVNode("div", _hoisted_5, toDisplayString(__props.content), 1)
167
178
  ], true)
168
- ], 2),
169
- _ctx.$slots["footer"] ? (openBlock(), createElementBlock("footer", _hoisted_3, [
170
- createElementVNode("div", _hoisted_4, [
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
- ], 36),
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-3a486dd1"]]);
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;