@ironsource/shared-ui 1.4.2-test.9 → 1.4.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +37 -22
  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
@@ -1,20 +1,23 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
2
2
  import AppIcon from '../appIcon/AppIcon.vue.js';
3
3
  import Icon from '../icon/Icon.vue.js';
4
+ import { AppTriggerTestIdModifiers } from '../../testids/index.vue.js';
4
5
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
6
  import Text from '../typography/Text.vue.js';
6
7
  /* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
7
8
  import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
8
9
  /* empty css *//* empty css */
9
10
  import "../../AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css";
10
- const _hoisted_1 = { class: "app-trigger__left-image" };
11
+ const _hoisted_1 = ["data-testid"];
12
+ const _hoisted_2 = { class: "app-trigger__left-image" };
11
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
14
  __name: "AppTrigger",
13
15
  props: {
14
16
  selected: { default: null },
15
17
  options: { default: null },
16
18
  loading: { type: Boolean, default: false },
17
- singleAppSelection: { type: Boolean, default: false }
19
+ singleAppSelection: { type: Boolean, default: false },
20
+ testId: { default: "" }
18
21
  },
19
22
  setup(__props) {
20
23
  const props = __props;
@@ -94,10 +97,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
97
  return openBlock(), createElementBlock("div", {
95
98
  class: normalizeClass(["app-trigger", {
96
99
  "app-trigger--with-icons": unref(selectedSize) > 0 || unref(allMode)
97
- }])
100
+ }]),
101
+ "data-testid": `${__props.testId}-${unref(AppTriggerTestIdModifiers).WRAPPER}`
98
102
  }, [
99
103
  renderSlot(_ctx.$slots, "left-image", {}, () => [
100
- createElementVNode("div", _hoisted_1, [
104
+ createElementVNode("div", _hoisted_2, [
101
105
  unref(appImage) ? (openBlock(), createBlock(unref(AppIcon), {
102
106
  key: 0,
103
107
  size: "xl",
@@ -125,47 +129,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
129
  }])
126
130
  }, [
127
131
  renderSlot(_ctx.$slots, "title", {}, () => [
128
- createVNode(unref(_sfc_main$1), { text: unref(title) }, {
132
+ createVNode(unref(_sfc_main$1), {
133
+ text: unref(title),
134
+ "data-testid": `${__props.testId}-${unref(AppTriggerTestIdModifiers).TITLE_TOOLTIP_TEXT}`
135
+ }, {
129
136
  default: withCtx(() => [
130
137
  createVNode(unref(Text), {
131
138
  strong: "",
132
139
  class: "title",
133
140
  "is-truncated": "",
134
- size: "sm"
141
+ size: "sm",
142
+ "test-id": `${__props.testId}-${unref(AppTriggerTestIdModifiers).TITLE_TEXT}`
135
143
  }, {
136
144
  default: withCtx(() => [
137
145
  createTextVNode(toDisplayString(unref(title)), 1)
138
146
  ]),
139
147
  _: 1
140
- })
148
+ }, 8, ["test-id"])
141
149
  ]),
142
150
  _: 1
143
- }, 8, ["text"])
151
+ }, 8, ["text", "data-testid"])
144
152
  ], true),
145
153
  renderSlot(_ctx.$slots, "description", {}, () => [
146
154
  createElementVNode("div", null, [
147
- createVNode(unref(_sfc_main$1), { text: unref(description) }, {
155
+ createVNode(unref(_sfc_main$1), {
156
+ text: unref(description),
157
+ "data-testid": `${__props.testId}-${unref(AppTriggerTestIdModifiers).DESCRIPTION_TOOLTIP_TEXT}`
158
+ }, {
148
159
  default: withCtx(() => [
149
160
  createVNode(unref(Text), {
150
161
  class: "app-trigger__description",
151
162
  size: "xs",
152
- "is-truncated": ""
163
+ "is-truncated": "",
164
+ "test-id": `${__props.testId}-${unref(AppTriggerTestIdModifiers).DESCRIPTION_TEXT}`
153
165
  }, {
154
166
  default: withCtx(() => [
155
167
  createTextVNode(toDisplayString(unref(description)), 1)
156
168
  ]),
157
169
  _: 1
158
- })
170
+ }, 8, ["test-id"])
159
171
  ]),
160
172
  _: 1
161
- }, 8, ["text"])
173
+ }, 8, ["text", "data-testid"])
162
174
  ])
163
175
  ], true)
164
176
  ], 2),
165
177
  renderSlot(_ctx.$slots, "right-icon", {}, () => [
166
178
  createVNode(unref(IconButton), {
167
179
  class: "app-trigger__right-icon",
168
- theme: "third"
180
+ theme: "third",
181
+ "data-testid": `${__props.testId}-${unref(AppTriggerTestIdModifiers).TRIGGER_BUTTON}`
169
182
  }, {
170
183
  default: withCtx(() => [
171
184
  createVNode(unref(Icon), {
@@ -174,12 +187,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
174
187
  })
175
188
  ]),
176
189
  _: 1
177
- })
190
+ }, 8, ["data-testid"])
178
191
  ], true)
179
- ], 2);
192
+ ], 10, _hoisted_1);
180
193
  };
181
194
  }
182
195
  });
183
- var AppTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6c498348"]]);
196
+ var AppTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-180b1bc2"]]);
184
197
 
185
198
  export { AppTrigger as default };
@@ -1,4 +1,9 @@
1
1
  declare const AppTriggerTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  loading: {
3
8
  type: import("vue").PropType<boolean>;
4
9
  } & {
@@ -20,6 +25,11 @@ declare const AppTriggerTypes: () => import("vue").DefineComponent<{
20
25
  default: boolean;
21
26
  };
22
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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
  loading: {
24
34
  type: import("vue").PropType<boolean>;
25
35
  } & {
@@ -41,6 +51,7 @@ declare const AppTriggerTypes: () => import("vue").DefineComponent<{
41
51
  default: boolean;
42
52
  };
43
53
  }>>, {
54
+ testId: string;
44
55
  loading: boolean;
45
56
  selected: import("./AppTrigger.vue.__VLS_script").__VLS_types_Application[];
46
57
  options: import("./AppTrigger.vue.__VLS_script").__VLS_types_Application[];
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  displayValue: (option: unknown) => string;
6
6
  handleSearch?: (option: any, term: string) => boolean;
7
7
  grouped?: boolean;
8
+ testId?: string;
8
9
  }>, {
9
10
  options: () => any[];
10
11
  selected: () => any[];
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
12
13
  displayValue: (option: unknown) => string;
13
14
  handleSearch: () => true;
14
15
  grouped: boolean;
16
+ testId: string;
15
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
18
  "update:selected": (value: unknown) => void;
17
19
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -21,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
23
  displayValue: (option: unknown) => string;
22
24
  handleSearch?: (option: any, term: string) => boolean;
23
25
  grouped?: boolean;
26
+ testId?: string;
24
27
  }>, {
25
28
  options: () => any[];
26
29
  selected: () => any[];
@@ -28,9 +31,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
31
  displayValue: (option: unknown) => string;
29
32
  handleSearch: () => true;
30
33
  grouped: boolean;
34
+ testId: string;
31
35
  }>>> & {
32
36
  "onUpdate:selected"?: (value: unknown) => any;
33
37
  }, {
38
+ testId: string;
34
39
  selected: unknown[];
35
40
  options: unknown[];
36
41
  placeholder: string;
@@ -16,7 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  placeholder: { default: DEFAULT_PLACEHOLDER },
17
17
  displayValue: { type: Function, default: (option) => option.toString() },
18
18
  handleSearch: { type: Function, default: () => true },
19
- grouped: { type: Boolean, default: false }
19
+ grouped: { type: Boolean, default: false },
20
+ testId: { default: "" }
20
21
  },
21
22
  emits: ["update:selected"],
22
23
  setup(__props, { emit }) {
@@ -104,6 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
105
  "auto-size": "",
105
106
  distance: distance.value,
106
107
  "disable-keyboard-events": "",
108
+ "test-id": __props.testId,
107
109
  onOpened: scrollToTop,
108
110
  onKeydown: withModifiers(unref(keyDownHandler), ["stop"]),
109
111
  "onUpdate:selected": selectOption
@@ -115,6 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
117
  value: unref(selection),
116
118
  placeholder: __props.placeholder,
117
119
  "display-value": __props.displayValue,
120
+ "test-id": __props.testId,
118
121
  onRemove: deselectOption,
119
122
  onSearch: _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event)
120
123
  }, {
@@ -122,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
125
  renderSlot(_ctx.$slots, "input-option", { option }, void 0, true)
123
126
  ]),
124
127
  _: 3
125
- }, 8, ["value", "placeholder", "display-value"])
128
+ }, 8, ["value", "placeholder", "display-value", "test-id"])
126
129
  ]),
127
130
  default: withCtx(({ option }) => [
128
131
  __props.grouped && isGroup(option) ? (openBlock(), createBlock(GroupOption, { key: 0 }, {
@@ -137,10 +140,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
140
  }, void 0, true)
138
141
  ]),
139
142
  _: 3
140
- }, 16, ["selected", "options", "on-search", "display-value", "distance", "onKeydown"]);
143
+ }, 16, ["selected", "options", "on-search", "display-value", "distance", "test-id", "onKeydown"]);
141
144
  };
142
145
  }
143
146
  });
144
- var AutocompleteDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-201d8abe"]]);
147
+ var AutocompleteDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c2ad255"]]);
145
148
 
146
149
  export { AutocompleteDropdown as default };
@@ -2,10 +2,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
2
2
  value: unknown[];
3
3
  displayValue?: (option: unknown) => string;
4
4
  placeholder?: string;
5
+ testId?: string;
5
6
  }>, {
6
7
  value: () => any[];
7
8
  displayValue: (option: unknown) => string;
8
9
  placeholder: string;
10
+ testId: string;
9
11
  }>, {
10
12
  focusInput: () => void;
11
13
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -16,15 +18,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
18
  value: unknown[];
17
19
  displayValue?: (option: unknown) => string;
18
20
  placeholder?: string;
21
+ testId?: string;
19
22
  }>, {
20
23
  value: () => any[];
21
24
  displayValue: (option: unknown) => string;
22
25
  placeholder: string;
26
+ testId: string;
23
27
  }>>> & {
24
28
  onSearch?: (searchQuery: string) => any;
25
29
  onRemove?: (option: unknown) => any;
26
30
  }, {
27
31
  value: unknown[];
32
+ testId: string;
28
33
  placeholder: string;
29
34
  displayValue: (option: unknown) => string;
30
35
  }>;
@@ -3,17 +3,20 @@ import Icon from '../icon/Icon.vue.js';
3
3
  import Text from '../typography/Text.vue.js';
4
4
  import { useDropdownContext } from '../dropdown/DropdownContext.vue.js';
5
5
  import { DEFAULT_PLACEHOLDER } from './consts.vue.js';
6
+ import { AutocompleteInputTestIdModifiers } 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 "../../AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css";
9
- const _hoisted_1 = ["onClick"];
10
- const _hoisted_2 = ["value", "placeholder"];
10
+ const _hoisted_1 = ["data-testid", "onClick"];
11
+ const _hoisted_2 = ["data-testid"];
12
+ const _hoisted_3 = ["value", "placeholder", "data-testid"];
11
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
14
  __name: "AutocompleteInput",
13
15
  props: {
14
16
  value: { default: () => [] },
15
17
  displayValue: { type: Function, default: (option) => option.toString() },
16
- placeholder: { default: DEFAULT_PLACEHOLDER }
18
+ placeholder: { default: DEFAULT_PLACEHOLDER },
19
+ testId: { default: "" }
17
20
  },
18
21
  emits: ["remove", "search"],
19
22
  setup(__props, { expose, emit }) {
@@ -49,11 +52,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
52
  return (_ctx, _cache) => {
50
53
  return openBlock(), createElementBlock("div", {
51
54
  class: normalizeClass(["autocomplete-input", { "autocomplete-input--focused": unref(isOpen) }]),
55
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).WRAPPER}`,
52
56
  onClick: withModifiers(onContainerClick, ["stop"])
53
57
  }, [
54
58
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.value, (option, index) => {
55
59
  return openBlock(), createElementBlock("div", {
56
60
  key: index,
61
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).SELECTED_OPTION}-${index}`,
57
62
  class: "autocomplete-input__option"
58
63
  }, [
59
64
  renderSlot(_ctx.$slots, "option", { option }, () => [
@@ -73,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
78
  "font-size": "sm",
74
79
  onClick: withModifiers(($event) => removeOption(option), ["stop"])
75
80
  }, null, 8, ["onClick"])
76
- ]);
81
+ ], 8, _hoisted_2);
77
82
  }), 128)),
78
83
  createElementVNode("input", {
79
84
  ref_key: "inputEl",
@@ -82,12 +87,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
87
  type: "text",
83
88
  value: unref(api).query.value,
84
89
  placeholder: __props.placeholder,
90
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).SEARCH_FIELD}`,
85
91
  onInput: onSearch
86
- }, null, 40, _hoisted_2)
92
+ }, null, 40, _hoisted_3)
87
93
  ], 10, _hoisted_1);
88
94
  };
89
95
  }
90
96
  });
91
- var AutocompleteInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e10ff6d"]]);
97
+ var AutocompleteInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b95f1c9c"]]);
92
98
 
93
99
  export { AutocompleteInput as default };
@@ -1,4 +1,9 @@
1
1
  declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  selected: {
3
8
  type: import("vue").PropType<unknown[]>;
4
9
  } & {
@@ -35,6 +40,11 @@ declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
35
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
41
  "update:selected": (value: unknown) => void;
37
42
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ testId: {
44
+ type: import("vue").PropType<string>;
45
+ } & {
46
+ default: string;
47
+ };
38
48
  selected: {
39
49
  type: import("vue").PropType<unknown[]>;
40
50
  } & {
@@ -71,6 +81,7 @@ declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
71
81
  }>> & {
72
82
  "onUpdate:selected"?: (value: unknown) => any;
73
83
  }, {
84
+ testId: string;
74
85
  selected: unknown[];
75
86
  options: unknown[];
76
87
  placeholder: string;
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: () => 'sm' | 'md' | 'lg';
8
8
  default: string;
9
9
  };
10
+ testId: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  type: {
12
16
  type: () => 'success' | 'error' | 'info' | 'warning';
@@ -16,8 +20,13 @@ declare const _default: import("vue").DefineComponent<{
16
20
  type: () => 'sm' | 'md' | 'lg';
17
21
  default: string;
18
22
  };
23
+ testId: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
19
27
  }>>, {
20
28
  type: "error" | "info" | "success" | "warning";
29
+ testId: string;
21
30
  iconSize: "md" | "sm" | "lg";
22
31
  }>;
23
32
  export default _default;
@@ -1,13 +1,14 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, withCtx, renderSlot, pushScopeId, popScopeId } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, createBlock, withCtx, renderSlot, pushScopeId, popScopeId } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
+ import { BannerTestIdModifiers } 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 "../../Banner.vue_vue_type_style_index_0_scoped_true_lang.css";
6
- const _withScopeId = (n) => (pushScopeId("data-v-32b00538"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-1a74058c"), n = n(), popScopeId(), n);
7
8
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "left-border" }, null, -1));
8
- const _hoisted_2 = { class: "content-wrapper" };
9
+ const _hoisted_2 = ["data-testid"];
9
10
  const _hoisted_3 = { class: "icon-container" };
10
- const _hoisted_4 = { class: "content" };
11
+ const _hoisted_4 = ["data-testid"];
11
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  __name: "Banner",
13
14
  props: {
@@ -18,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  iconSize: {
19
20
  type: String,
20
21
  default: "md"
22
+ },
23
+ testId: {
24
+ type: String,
25
+ default: ""
21
26
  }
22
27
  },
23
28
  setup(__props) {
@@ -28,7 +33,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
33
  class: normalizeClass(["banner", `banner-type-${__props.type}`])
29
34
  }, [
30
35
  _hoisted_1,
31
- createElementVNode("div", _hoisted_2, [
36
+ createElementVNode("div", {
37
+ class: "content-wrapper",
38
+ "data-testid": `${__props.testId}-${unref(BannerTestIdModifiers).WRAPPER}`
39
+ }, [
32
40
  createElementVNode("div", _hoisted_3, [
33
41
  _ctx.$slots.icon ? (openBlock(), createBlock(unref(Icon), {
34
42
  key: 0,
@@ -45,14 +53,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
53
  "font-size": __props.iconSize
46
54
  }, null, 8, ["name", "class", "font-size"]))
47
55
  ]),
48
- createElementVNode("div", _hoisted_4, [
56
+ createElementVNode("div", {
57
+ class: "content",
58
+ "data-testid": `${__props.testId}-${unref(BannerTestIdModifiers).CONTENT}`
59
+ }, [
49
60
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
50
- ])
51
- ])
61
+ ], 8, _hoisted_4)
62
+ ], 8, _hoisted_2)
52
63
  ], 2);
53
64
  };
54
65
  }
55
66
  });
56
- var Banner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-32b00538"]]);
67
+ var Banner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a74058c"]]);
57
68
 
58
69
  export { Banner as default };
@@ -7,6 +7,10 @@ declare const BannerTypes: () => import("vue").DefineComponent<{
7
7
  type: () => "md" | "sm" | "lg";
8
8
  default: string;
9
9
  };
10
+ testId: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  type: {
12
16
  type: () => "error" | "info" | "success" | "warning";
@@ -16,8 +20,13 @@ declare const BannerTypes: () => import("vue").DefineComponent<{
16
20
  type: () => "md" | "sm" | "lg";
17
21
  default: string;
18
22
  };
23
+ testId: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
19
27
  }>>, {
20
28
  type: "error" | "info" | "success" | "warning";
29
+ testId: string;
21
30
  iconSize: "md" | "sm" | "lg";
22
31
  }>[];
23
32
  export { default as Banner } from './Banner.vue';
@@ -3,20 +3,25 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  leftIconName?: IconName;
4
4
  rightIconName?: IconName;
5
5
  size?: 'sm' | 'md' | 'lg';
6
+ testId?: string;
6
7
  }>, {
7
8
  leftIconName: any;
8
9
  rightIconName: any;
9
10
  size: string;
11
+ testId: string;
10
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
13
  leftIconName?: IconName;
12
14
  rightIconName?: IconName;
13
15
  size?: 'sm' | 'md' | 'lg';
16
+ testId?: string;
14
17
  }>, {
15
18
  leftIconName: any;
16
19
  rightIconName: any;
17
20
  size: string;
21
+ testId: string;
18
22
  }>>>, {
19
23
  size: 'sm' | 'md' | 'lg';
24
+ testId: string;
20
25
  leftIconName: IconName;
21
26
  rightIconName: IconName;
22
27
  }>;
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  props: {
11
11
  leftIconName: { default: null },
12
12
  rightIconName: { default: null },
13
- size: { default: "md" }
13
+ size: { default: "md" },
14
+ testId: { default: "" }
14
15
  },
15
16
  setup(__props) {
16
17
  const props = __props;
@@ -24,7 +25,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  "with-right-icon": !!__props.rightIconName
25
26
  }
26
27
  ],
27
- size: __props.size
28
+ size: __props.size,
29
+ "data-testid": props.testId
28
30
  }, _ctx.$attrs), createSlots({
29
31
  default: withCtx(() => [
30
32
  createElementVNode("div", {
@@ -54,10 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
56
  ]),
55
57
  key: "0"
56
58
  } : void 0
57
- ]), 1040, ["class", "size"]);
59
+ ]), 1040, ["class", "size", "data-testid"]);
58
60
  };
59
61
  }
60
62
  });
61
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e54ca3e"]]);
63
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-195cffac"]]);
62
64
 
63
65
  export { Button as default };