@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
@@ -9,6 +9,11 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
9
9
  } & {
10
10
  default: string;
11
11
  };
12
+ testId: {
13
+ type: import("vue").PropType<string>;
14
+ } & {
15
+ default: string;
16
+ };
12
17
  disabled: {
13
18
  type: import("vue").PropType<boolean>;
14
19
  };
@@ -34,6 +39,11 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
34
39
  } & {
35
40
  default: string;
36
41
  };
42
+ testId: {
43
+ type: import("vue").PropType<string>;
44
+ } & {
45
+ default: string;
46
+ };
37
47
  disabled: {
38
48
  type: import("vue").PropType<boolean>;
39
49
  };
@@ -50,6 +60,7 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
50
60
  }, {
51
61
  size: "md" | "sm" | "lg";
52
62
  label: string;
63
+ testId: string;
53
64
  }>[];
54
65
  export { default as Checkbox } from './Checkbox.vue';
55
66
  export { CheckboxTypes };
@@ -3,24 +3,29 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  clearable?: boolean;
4
4
  prefix?: string;
5
5
  disabled?: boolean;
6
+ testId?: string;
6
7
  }>, {
7
8
  selected: boolean;
8
9
  clearable: boolean;
9
10
  prefix: any;
10
11
  disabled: boolean;
12
+ testId: string;
11
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cleared"[], "cleared", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  selected?: boolean;
13
15
  clearable?: boolean;
14
16
  prefix?: string;
15
17
  disabled?: boolean;
18
+ testId?: string;
16
19
  }>, {
17
20
  selected: boolean;
18
21
  clearable: boolean;
19
22
  prefix: any;
20
23
  disabled: boolean;
24
+ testId: string;
21
25
  }>>> & {
22
26
  onCleared?: (...args: any[]) => any;
23
27
  }, {
28
+ testId: string;
24
29
  disabled: boolean;
25
30
  selected: boolean;
26
31
  clearable: boolean;
@@ -1,9 +1,10 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, toDisplayString, createVNode, unref } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, toDisplayString, createVNode } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
+ import { ChipTestIdModifiers } from '../../testids/index.vue.js';
3
4
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
4
5
 
5
6
  import "../../Chip.vue_vue_type_style_index_0_scoped_true_lang.css";
6
- const _hoisted_1 = ["disabled"];
7
+ const _hoisted_1 = ["disabled", "data-testid"];
7
8
  const _hoisted_2 = {
8
9
  key: 0,
9
10
  class: "icon icon--start"
@@ -16,13 +17,15 @@ const _hoisted_4 = {
16
17
  key: 1,
17
18
  class: "icon icon--end"
18
19
  };
20
+ const _hoisted_5 = ["data-testid"];
19
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
22
  __name: "Chip",
21
23
  props: {
22
24
  selected: { type: Boolean, default: false },
23
25
  clearable: { type: Boolean, default: false },
24
26
  prefix: { default: null },
25
- disabled: { type: Boolean, default: false }
27
+ disabled: { type: Boolean, default: false },
28
+ testId: { default: "" }
26
29
  },
27
30
  emits: ["cleared"],
28
31
  setup(__props, { emit }) {
@@ -33,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
36
  return (_ctx, _cache) => {
34
37
  return openBlock(), createElementBlock("button", {
35
38
  class: normalizeClass(["chip-container", { selected: __props.selected, disabled: __props.disabled }]),
36
- disabled: __props.disabled
39
+ disabled: __props.disabled,
40
+ "data-testid": `${__props.testId}-${unref(ChipTestIdModifiers).WRAPPER}`
37
41
  }, [
38
42
  _ctx.$slots["icon-start"] ? (openBlock(), createElementBlock("span", _hoisted_2, [
39
43
  renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)
@@ -48,17 +52,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
52
  __props.clearable ? (openBlock(), createElementBlock("button", {
49
53
  key: 2,
50
54
  class: "clear-icon",
55
+ "data-testid": `${__props.testId}-${unref(ChipTestIdModifiers).CLEAR}`,
51
56
  onClick: cleared
52
57
  }, [
53
58
  createVNode(unref(Icon), {
54
- name: "close",
59
+ name: "close-bold",
55
60
  "font-size": "sm"
56
61
  })
57
- ])) : createCommentVNode("", true)
62
+ ], 8, _hoisted_5)) : createCommentVNode("", true)
58
63
  ], 10, _hoisted_1);
59
64
  };
60
65
  }
61
66
  });
62
- var Chip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-68f9a601"]]);
67
+ var Chip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d0f8d76"]]);
63
68
 
64
69
  export { Chip as default };
@@ -1,4 +1,9 @@
1
1
  declare const ChipTypes: () => 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
  } & {
@@ -20,6 +25,11 @@ declare const ChipTypes: () => import("vue").DefineComponent<{
20
25
  default: any;
21
26
  };
22
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cleared"[], "cleared", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ testId: {
29
+ type: import("vue").PropType<string>;
30
+ } & {
31
+ default: string;
32
+ };
23
33
  disabled: {
24
34
  type: import("vue").PropType<boolean>;
25
35
  } & {
@@ -43,6 +53,7 @@ declare const ChipTypes: () => import("vue").DefineComponent<{
43
53
  }>> & {
44
54
  onCleared?: (...args: any[]) => any;
45
55
  }, {
56
+ testId: string;
46
57
  disabled: boolean;
47
58
  selected: boolean;
48
59
  clearable: boolean;
@@ -4,12 +4,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  allowFutureDates?: boolean;
5
5
  dateFormat?: string;
6
6
  placeholder?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  uniqueId: number;
9
10
  modelValue: any;
10
11
  dateFormat: string;
11
12
  placeholder: string;
12
13
  allowFutureDates: boolean;
14
+ testId: string;
13
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
16
  "update:modelValue": (val: string | Date) => void;
15
17
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -18,15 +20,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
20
  allowFutureDates?: boolean;
19
21
  dateFormat?: string;
20
22
  placeholder?: string;
23
+ testId?: string;
21
24
  }>, {
22
25
  uniqueId: number;
23
26
  modelValue: any;
24
27
  dateFormat: string;
25
28
  placeholder: string;
26
29
  allowFutureDates: boolean;
30
+ testId: string;
27
31
  }>>> & {
28
32
  "onUpdate:modelValue"?: (val: string | Date) => any;
29
33
  }, {
34
+ testId: string;
30
35
  modelValue: Date | string;
31
36
  placeholder: string;
32
37
  uniqueId: string | number;
@@ -3,11 +3,12 @@ import { onClickOutside } from '@vueuse/core';
3
3
  import { useToggle } from '../../composables/useToggle.vue.js';
4
4
  import DatePickerMonth from './DatePickerMonth.vue.js';
5
5
  import { isValid, format, parse, isFuture } from 'date-fns';
6
+ import { DatePickerTestIdModifiers } from '../../testids/index.vue.js';
6
7
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
7
8
 
8
9
  import "../../DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css";
9
- const _hoisted_1 = ["id"];
10
- const _hoisted_2 = ["placeholder"];
10
+ const _hoisted_1 = ["id", "data-testid"];
11
+ const _hoisted_2 = ["placeholder", "data-testid"];
11
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  __name: "DatePicker",
13
14
  props: {
@@ -15,7 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  modelValue: { default: null },
16
17
  allowFutureDates: { type: Boolean, default: false },
17
18
  dateFormat: { default: "yyyy-MM-d" },
18
- placeholder: { default: "" }
19
+ placeholder: { default: "" },
20
+ testId: { default: "" }
19
21
  },
20
22
  emits: ["update:modelValue"],
21
23
  setup(__props, { emit }) {
@@ -82,7 +84,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
84
  id: unref(componentId),
83
85
  ref_key: "datePicker",
84
86
  ref: datePicker,
85
- class: "date-picker"
87
+ class: "date-picker",
88
+ "data-testid": `${__props.testId}-${unref(DatePickerTestIdModifiers).WRAPPER}`
86
89
  }, [
87
90
  createElementVNode("div", {
88
91
  ref_key: "buttonRef",
@@ -97,6 +100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
100
  type: "text",
98
101
  class: "input",
99
102
  placeholder: __props.placeholder,
103
+ "data-testid": `${__props.testId}-${unref(DatePickerTestIdModifiers).INPUT}`,
100
104
  onInput: _cache[1] || (_cache[1] = ($event) => handleInput($event))
101
105
  }, null, 40, _hoisted_2), [
102
106
  [vModelText, unref(formattedValue)]
@@ -113,13 +117,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
117
  id: unref(componentId) + "-month",
114
118
  "model-value": unref(valueAsDate),
115
119
  "allow-future-dates": __props.allowFutureDates,
120
+ "test-id": __props.testId,
116
121
  "onUpdate:modelValue": updateValue
117
- }, null, 8, ["id", "model-value", "allow-future-dates"])
122
+ }, null, 8, ["id", "model-value", "allow-future-dates", "test-id"])
118
123
  ], 2)) : createCommentVNode("", true)
119
124
  ], 8, _hoisted_1);
120
125
  };
121
126
  }
122
127
  });
123
- var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1f4328e0"]]);
128
+ var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-71f15c18"]]);
124
129
 
125
130
  export { DatePicker as default };
@@ -3,24 +3,29 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  modelValue?: Date;
4
4
  includeToday?: boolean;
5
5
  allowFutureDates?: boolean;
6
+ testId?: string;
6
7
  }>, {
7
8
  uniqueId: number;
8
9
  modelValue: any;
9
10
  includeToday: boolean;
10
11
  allowFutureDates: boolean;
12
+ testId: string;
11
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  uniqueId?: string | number;
13
15
  modelValue?: Date;
14
16
  includeToday?: boolean;
15
17
  allowFutureDates?: boolean;
18
+ testId?: string;
16
19
  }>, {
17
20
  uniqueId: number;
18
21
  modelValue: any;
19
22
  includeToday: boolean;
20
23
  allowFutureDates: boolean;
24
+ testId: string;
21
25
  }>>> & {
22
26
  "onUpdate:modelValue"?: (...args: any[]) => any;
23
27
  }, {
28
+ testId: string;
24
29
  modelValue: Date;
25
30
  uniqueId: string | number;
26
31
  includeToday: boolean;
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  uniqueId: { default: Date.now() },
13
13
  modelValue: { default: null },
14
14
  includeToday: { type: Boolean, default: true },
15
- allowFutureDates: { type: Boolean, default: false }
15
+ allowFutureDates: { type: Boolean, default: false },
16
+ testId: { default: "" }
16
17
  },
17
18
  emits: ["update:modelValue"],
18
19
  setup(__props, { emit }) {
@@ -88,12 +89,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
89
  days: unref(monthData).days,
89
90
  weeks: unref(monthData).weeks,
90
91
  month: unref(monthData).month,
92
+ "test-id": __props.testId,
91
93
  onSelectionChanged: handleSelection,
92
94
  onNavigation: handleNavigation
93
- }, null, 8, ["id", "range", "navigation", "year", "days", "weeks", "month"]);
95
+ }, null, 8, ["id", "range", "navigation", "year", "days", "weeks", "month", "test-id"]);
94
96
  };
95
97
  }
96
98
  });
97
- var DatePickerMonth = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7dbe885c"]]);
99
+ var DatePickerMonth = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79208613"]]);
98
100
 
99
101
  export { DatePickerMonth as default };
@@ -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, createElementVNode, unref, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass } from 'vue';
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 = { class: "month-header" };
17
- const _hoisted_3 = { class: "days-header" };
18
- const _hoisted_4 = { class: "days-wrapper" };
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", _hoisted_2, [
265
- createVNode(Heading, { level: "6" }, {
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", _hoisted_3, [
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", _hoisted_4, [
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-07a23a05"]]);
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;