@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
@@ -15,6 +15,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  step?: number;
16
16
  hoverHelpText?: string;
17
17
  hoverHelpTextPlacement?: 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
18
+ onlyDigits?: boolean;
19
+ testId?: string;
18
20
  }>, {
19
21
  modelValue: string;
20
22
  placeholder: string;
@@ -32,6 +34,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
34
  step: number;
33
35
  hoverHelpText: string;
34
36
  hoverHelpTextPlacement: string;
37
+ onlyDigits: boolean;
38
+ testId: string;
35
39
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
40
  "update:modelValue": (value: string | number) => void;
37
41
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -51,6 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
51
55
  step?: number;
52
56
  hoverHelpText?: string;
53
57
  hoverHelpTextPlacement?: 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
58
+ onlyDigits?: boolean;
59
+ testId?: string;
54
60
  }>, {
55
61
  modelValue: string;
56
62
  placeholder: string;
@@ -68,12 +74,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
68
74
  step: number;
69
75
  hoverHelpText: string;
70
76
  hoverHelpTextPlacement: string;
77
+ onlyDigits: boolean;
78
+ testId: string;
71
79
  }>>> & {
72
80
  "onUpdate:modelValue"?: (value: string | number) => any;
73
81
  }, {
74
82
  size: 'sm' | 'lg';
75
83
  label: string;
76
84
  type: 'text' | 'number' | 'password';
85
+ testId: string;
77
86
  disabled: boolean;
78
87
  modelValue: string | number;
79
88
  placeholder: string;
@@ -87,6 +96,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
87
96
  step: number;
88
97
  hoverHelpText: string;
89
98
  hoverHelpTextPlacement: 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
99
+ onlyDigits: boolean;
90
100
  }>;
91
101
  export default _default;
92
102
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,29 +1,30 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, renderSlot, mergeProps, withKeys, withModifiers } from 'vue';
1
+ import { defineComponent, ref, computed, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, renderSlot, mergeProps, withKeys, withModifiers } from 'vue';
2
+ import Icon from '../icon/Icon.vue.js';
3
+ import { InputTestIdModifiers } from '../../testids/index.vue.js';
2
4
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
5
  import Text from '../typography/Text.vue.js';
4
- import Icon from '../icon/Icon.vue.js';
5
- import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
6
6
  /* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
7
+ import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
7
8
  /* empty css */import { useEditableContext } from '../table-cells/EditableContext.vue.js';
8
9
  import '@vueuse/core';
9
- /* empty css *//* empty css */
10
+ /* empty css */import { REGEX_NUMBER_INPUT } from '../../consts/regex.vue.js';
11
+ /* empty css */
10
12
  import "../../Input.vue_vue_type_style_index_0_scoped_true_lang.css";
11
- const _hoisted_1 = { class: "info-icon-wrapper" };
12
- const _hoisted_2 = {
13
+ const _hoisted_1 = ["data-testid"];
14
+ const _hoisted_2 = ["data-testid"];
15
+ const _hoisted_3 = { class: "info-icon-wrapper" };
16
+ const _hoisted_4 = {
13
17
  key: 0,
14
18
  class: "icon-container icon-before"
15
19
  };
16
- const _hoisted_3 = ["value", "placeholder", "disabled", "type", "step", "onKeyup"];
17
- const _hoisted_4 = {
20
+ const _hoisted_5 = ["value", "placeholder", "disabled", "type", "step", "data-testid", "onKeyup"];
21
+ const _hoisted_6 = {
18
22
  key: 1,
19
23
  class: "icon-container icon-after"
20
24
  };
21
- const _hoisted_5 = { key: 2 };
22
- const _hoisted_6 = { key: 3 };
23
- const _hoisted_7 = {
24
- key: 1,
25
- class: "extra-text-container"
26
- };
25
+ const _hoisted_7 = { key: 2 };
26
+ const _hoisted_8 = { key: 3 };
27
+ const _hoisted_9 = ["data-testid"];
27
28
  const __default__ = {
28
29
  inheritAttrs: false
29
30
  };
@@ -46,7 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
47
  hideNumberArrows: { type: Boolean, default: false },
47
48
  step: { default: 1 },
48
49
  hoverHelpText: { default: "" },
49
- hoverHelpTextPlacement: { default: "top" }
50
+ hoverHelpTextPlacement: { default: "top" },
51
+ onlyDigits: { type: Boolean, default: false },
52
+ testId: { default: "" }
50
53
  },
51
54
  emits: ["update:modelValue"],
52
55
  setup(__props, { emit }) {
@@ -92,34 +95,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
95
  api.onChange?.(event.target.value);
93
96
  emit("update:modelValue", event.target.value);
94
97
  };
98
+ const DECIMAL_POINT = ".";
99
+ const handleKeypress = (event) => {
100
+ if (props.onlyDigits) {
101
+ if (!event.key.match(REGEX_NUMBER_INPUT)) {
102
+ event.preventDefault();
103
+ } else if (event.key === DECIMAL_POINT && props.modelValue.toString().includes(DECIMAL_POINT)) {
104
+ event.preventDefault();
105
+ }
106
+ }
107
+ };
95
108
  return (_ctx, _cache) => {
96
109
  return openBlock(), createElementBlock("div", {
97
110
  class: normalizeClass({
98
111
  "input-with-label-container": true,
99
112
  "label-direction-left": __props.labelDirection === "left",
100
113
  disabled: __props.disabled
101
- })
114
+ }),
115
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).WRAPPER}`
102
116
  }, [
103
117
  __props.label && __props.labelDirection !== "inside" ? (openBlock(), createElementBlock("div", {
104
118
  key: 0,
105
- class: normalizeClass(["label-container", "direction-" + __props.labelDirection])
119
+ class: normalizeClass(["label-container", "direction-" + __props.labelDirection]),
120
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).LABEL_CONTAINER}`
106
121
  }, [
107
- createVNode(unref(Text), { class: "label" }, {
122
+ createVNode(unref(Text), {
123
+ class: "label",
124
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).LABEL_TEXT}`
125
+ }, {
108
126
  default: withCtx(() => [
109
127
  createTextVNode(toDisplayString(__props.label), 1)
110
128
  ]),
111
129
  _: 1
112
- }),
130
+ }, 8, ["data-testid"]),
113
131
  __props.mandatory ? (openBlock(), createBlock(unref(Text), {
114
132
  key: 0,
115
133
  size: "lg",
116
- class: "mandatory"
134
+ class: "mandatory",
135
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).MANDATORY}`
117
136
  }, {
118
137
  default: withCtx(() => [
119
138
  createTextVNode("*")
120
139
  ]),
121
140
  _: 1
122
- })) : createCommentVNode("", true),
141
+ }, 8, ["data-testid"])) : createCommentVNode("", true),
123
142
  __props.hoverHelpText ? (openBlock(), createBlock(unref(_sfc_main$1), {
124
143
  key: 1,
125
144
  triggers: ["hover"],
@@ -129,7 +148,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
129
148
  strong: true
130
149
  }, {
131
150
  default: withCtx(() => [
132
- createElementVNode("div", _hoisted_1, [
151
+ createElementVNode("div", _hoisted_3, [
133
152
  createVNode(unref(Icon), {
134
153
  class: "info-icon",
135
154
  name: "info",
@@ -139,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
139
158
  ]),
140
159
  _: 1
141
160
  }, 8, ["text", "placement"])) : createCommentVNode("", true)
142
- ], 2)) : createCommentVNode("", true),
161
+ ], 10, _hoisted_2)) : createCommentVNode("", true),
143
162
  createElementVNode("div", {
144
163
  class: normalizeClass({
145
164
  "input-container": true,
@@ -148,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
167
  focused: isFocused.value
149
168
  })
150
169
  }, [
151
- _ctx.$slots["iconBefore"] ? (openBlock(), createElementBlock("div", _hoisted_2, [
170
+ _ctx.$slots["iconBefore"] ? (openBlock(), createElementBlock("div", _hoisted_4, [
152
171
  renderSlot(_ctx.$slots, "iconBefore", {}, void 0, true)
153
172
  ])) : createCommentVNode("", true),
154
173
  createElementVNode("input", mergeProps(_ctx.$attrs, {
@@ -166,15 +185,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
185
  "input-type": __props.type
167
186
  }],
168
187
  step: __props.step,
188
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).FIELD}`,
169
189
  onInput: handleInput,
170
190
  onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
171
191
  onBlur: _cache[1] || (_cache[1] = ($event) => isFocused.value = false),
172
- onKeyup: withKeys(withModifiers(onEnter, ["prevent"]), ["enter"])
173
- }), null, 16, _hoisted_3),
174
- _ctx.$slots["iconAfter"] ? (openBlock(), createElementBlock("div", _hoisted_4, [
192
+ onKeyup: withKeys(withModifiers(onEnter, ["prevent"]), ["enter"]),
193
+ onKeypress: handleKeypress
194
+ }), null, 16, _hoisted_5),
195
+ _ctx.$slots["iconAfter"] ? (openBlock(), createElementBlock("div", _hoisted_6, [
175
196
  renderSlot(_ctx.$slots, "iconAfter", {}, void 0, true)
176
197
  ])) : createCommentVNode("", true),
177
- unref(api)?.confirmable && !unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
198
+ unref(api)?.confirmable && !unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
178
199
  createVNode(unref(IconButton), {
179
200
  class: "confirm-icon",
180
201
  theme: "secondary",
@@ -190,9 +211,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
211
  _: 1
191
212
  }, 8, ["onClick"])
192
213
  ])) : createCommentVNode("", true),
193
- unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
214
+ unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
194
215
  createVNode(unref(_sfc_main$1), {
195
- text: unref(api)?.error?.value
216
+ text: unref(api)?.error?.value,
217
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).TOOLTIP}`
196
218
  }, {
197
219
  default: withCtx(() => [
198
220
  createVNode(unref(IconButton), {
@@ -210,10 +232,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
210
232
  })
211
233
  ]),
212
234
  _: 1
213
- }, 8, ["text"])
235
+ }, 8, ["text", "data-testid"])
214
236
  ])) : createCommentVNode("", true)
215
237
  ], 2),
216
- __props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div", _hoisted_7, [
238
+ __props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div", {
239
+ key: 1,
240
+ class: "extra-text-container",
241
+ "data-testid": `${__props.testId}-${unref(InputTestIdModifiers).EXTRA_TEXT}`
242
+ }, [
217
243
  createVNode(unref(Text), {
218
244
  class: normalizeClass(__props.feedbackErrorText ? "error" : "help"),
219
245
  size: "caption"
@@ -223,11 +249,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
223
249
  ]),
224
250
  _: 1
225
251
  }, 8, ["class"])
226
- ])) : createCommentVNode("", true)
227
- ], 2);
252
+ ], 8, _hoisted_9)) : createCommentVNode("", true)
253
+ ], 10, _hoisted_1);
228
254
  };
229
255
  }
230
256
  });
231
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e4dac7b"]]);
257
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ccecdef"]]);
232
258
 
233
259
  export { Input as default };
@@ -1,7 +1,7 @@
1
1
  import Input from './Input.vue';
2
2
  import { ExtractComponentProps } from '../../utils/extract-props';
3
3
  export type PasswordPropsType = Omit<ExtractComponentProps<typeof Input>, 'type' | 'hideNumberArrows' | 'step'>;
4
- export interface PasswordProps extends /* @vue-ignore */ PasswordPropsType {
4
+ export interface PasswordProps extends PasswordPropsType {
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PasswordProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (value: string | number) => void;
@@ -36,6 +36,6 @@ const _sfc_main = defineComponent({
36
36
  };
37
37
  }
38
38
  });
39
- var PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2ae4974c"]]);
39
+ var PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da9d5486"]]);
40
40
 
41
41
  export { PasswordInput as default };
@@ -1,7 +1,7 @@
1
1
  import Input from './Input.vue';
2
2
  import { ExtractComponentProps } from '../../utils/extract-props';
3
3
  export type PercentagePropsType = Omit<ExtractComponentProps<typeof Input>, 'type' | 'hideNumberArrows'>;
4
- export interface PercentageProps extends /* @vue-ignore */ PercentagePropsType {
4
+ export interface PercentageProps extends PercentagePropsType {
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PercentageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (value: number) => void;
@@ -32,6 +32,6 @@ const _sfc_main = defineComponent({
32
32
  };
33
33
  }
34
34
  });
35
- var PercentageInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3841828e"]]);
35
+ var PercentageInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7247a0d5"]]);
36
36
 
37
37
  export { PercentageInput as default };
@@ -18,6 +18,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
18
18
  } & {
19
19
  default: string;
20
20
  };
21
+ testId: {
22
+ type: import("vue").PropType<string>;
23
+ } & {
24
+ default: string;
25
+ };
21
26
  disabled: {
22
27
  type: import("vue").PropType<boolean>;
23
28
  } & {
@@ -83,6 +88,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
83
88
  } & {
84
89
  default: string;
85
90
  };
91
+ onlyDigits: {
92
+ type: import("vue").PropType<boolean>;
93
+ } & {
94
+ default: boolean;
95
+ };
86
96
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
97
  "update:modelValue": (value: string | number) => void;
88
98
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -101,6 +111,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
101
111
  } & {
102
112
  default: string;
103
113
  };
114
+ testId: {
115
+ type: import("vue").PropType<string>;
116
+ } & {
117
+ default: string;
118
+ };
104
119
  disabled: {
105
120
  type: import("vue").PropType<boolean>;
106
121
  } & {
@@ -166,12 +181,18 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
166
181
  } & {
167
182
  default: string;
168
183
  };
184
+ onlyDigits: {
185
+ type: import("vue").PropType<boolean>;
186
+ } & {
187
+ default: boolean;
188
+ };
169
189
  }>> & {
170
190
  "onUpdate:modelValue"?: (value: string | number) => any;
171
191
  }, {
172
192
  size: "sm" | "lg";
173
193
  label: string;
174
194
  type: "number" | "text" | "password";
195
+ testId: string;
175
196
  disabled: boolean;
176
197
  modelValue: string | number;
177
198
  placeholder: string;
@@ -185,6 +206,7 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
185
206
  step: number;
186
207
  hoverHelpText: string;
187
208
  hoverHelpTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
209
+ onlyDigits: boolean;
188
210
  }> | import("vue").DefineComponent<{
189
211
  ref: {
190
212
  type: import("vue").PropType<import("vue").VNodeRef>;
@@ -198,6 +220,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
198
220
  style: {
199
221
  type: import("vue").PropType<unknown>;
200
222
  };
223
+ testId: {
224
+ type: import("vue").PropType<string>;
225
+ };
201
226
  key: {
202
227
  type: import("vue").PropType<string | number | symbol>;
203
228
  };
@@ -296,6 +321,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
296
321
  hoverHelpTextPlacement: {
297
322
  type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
298
323
  };
324
+ onlyDigits: {
325
+ type: import("vue").PropType<boolean>;
326
+ };
299
327
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
300
328
  "update:modelValue": (value: number) => void;
301
329
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -311,6 +339,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
311
339
  style: {
312
340
  type: import("vue").PropType<unknown>;
313
341
  };
342
+ testId: {
343
+ type: import("vue").PropType<string>;
344
+ };
314
345
  key: {
315
346
  type: import("vue").PropType<string | number | symbol>;
316
347
  };
@@ -409,6 +440,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
409
440
  hoverHelpTextPlacement: {
410
441
  type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
411
442
  };
443
+ onlyDigits: {
444
+ type: import("vue").PropType<boolean>;
445
+ };
412
446
  }>> & {
413
447
  "onUpdate:modelValue"?: (value: number) => any;
414
448
  }, {}>)[];
@@ -4,25 +4,30 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  theme?: string;
5
5
  skidding?: number;
6
6
  container?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  isOnTop: boolean;
9
10
  theme: string;
10
11
  container: string;
11
12
  distance: number;
12
13
  skidding: number;
14
+ testId: string;
13
15
  }>, {}, 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<{
14
16
  isOnTop?: boolean;
15
17
  distance?: number;
16
18
  theme?: string;
17
19
  skidding?: number;
18
20
  container?: string;
21
+ testId?: string;
19
22
  }>, {
20
23
  isOnTop: boolean;
21
24
  theme: string;
22
25
  container: string;
23
26
  distance: number;
24
27
  skidding: number;
28
+ testId: string;
25
29
  }>>>, {
30
+ testId: string;
26
31
  theme: string;
27
32
  isOnTop: boolean;
28
33
  distance: number;
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  distance: { default: 0 },
13
13
  theme: { default: "dropdown" },
14
14
  skidding: { default: 0 },
15
- container: { default: "body" }
15
+ container: { default: "body" },
16
+ testId: { default: "" }
16
17
  },
17
18
  setup(__props) {
18
19
  const [open, toggle] = useToggle({ initialValue: false });
@@ -42,7 +43,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
43
  flip: "",
43
44
  distance: __props.isOnTop ? unref(skiddingOffset) : __props.distance,
44
45
  skidding: __props.isOnTop ? -unref(location)?.height / 2 : __props.distance,
45
- "auto-hide": false
46
+ "auto-hide": false,
47
+ "test-id": __props.testId
46
48
  }, {
47
49
  popper: withCtx(() => [
48
50
  createElementVNode("div", {
@@ -64,10 +66,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
66
  ], 512)
65
67
  ]),
66
68
  _: 3
67
- }, 8, ["shown", "container", "distance", "skidding"]);
69
+ }, 8, ["shown", "container", "distance", "skidding", "test-id"]);
68
70
  };
69
71
  }
70
72
  });
71
- var Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5fd59a4"]]);
73
+ var Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f8ffdce"]]);
72
74
 
73
75
  export { Menu as default };
@@ -1,4 +1,9 @@
1
1
  declare const MenuTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  theme: {
3
8
  type: import("vue").PropType<string>;
4
9
  } & {
@@ -25,6 +30,11 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
25
30
  default: string;
26
31
  };
27
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ testId: {
34
+ type: import("vue").PropType<string>;
35
+ } & {
36
+ default: string;
37
+ };
28
38
  theme: {
29
39
  type: import("vue").PropType<string>;
30
40
  } & {
@@ -51,6 +61,7 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
51
61
  default: string;
52
62
  };
53
63
  }>>, {
64
+ testId: string;
54
65
  theme: string;
55
66
  isOnTop: boolean;
56
67
  distance: number;
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  placement?: Placement;
8
8
  distance?: number;
9
9
  skidding?: number;
10
+ testId?: string;
10
11
  }>, {
11
12
  trigger: string;
12
13
  autoHide: boolean;
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
15
  placement: string;
15
16
  distance: number;
16
17
  skidding: number;
18
+ testId: string;
17
19
  }>, {}, 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<{
18
20
  open: boolean;
19
21
  autoHide?: boolean;
@@ -22,6 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
24
  placement?: Placement;
23
25
  distance?: number;
24
26
  skidding?: number;
27
+ testId?: string;
25
28
  }>, {
26
29
  trigger: string;
27
30
  autoHide: boolean;
@@ -29,7 +32,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
29
32
  placement: string;
30
33
  distance: number;
31
34
  skidding: number;
35
+ testId: string;
32
36
  }>>>, {
37
+ testId: string;
33
38
  placement: Placement;
34
39
  disabled: boolean;
35
40
  distance: number;
@@ -11,7 +11,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  disabled: { type: Boolean, default: false },
12
12
  placement: { default: "bottom-start" },
13
13
  distance: { default: 0 },
14
- skidding: { default: 0 }
14
+ skidding: { default: 0 },
15
+ testId: { default: "" }
15
16
  },
16
17
  setup(__props) {
17
18
  return (_ctx, _cache) => {
@@ -22,7 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  triggers: __props.trigger === "managed" ? [] : [__props.trigger],
23
24
  "auto-hide": __props.autoHide,
24
25
  distance: __props.distance,
25
- skidding: __props.skidding
26
+ skidding: __props.skidding,
27
+ "data-testid": __props.testId
26
28
  }, {
27
29
  popper: withCtx(({ hide }) => [
28
30
  renderSlot(_ctx.$slots, "content", { hide })
@@ -31,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
33
  renderSlot(_ctx.$slots, "trigger")
32
34
  ]),
33
35
  _: 3
34
- }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding"]);
36
+ }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid"]);
35
37
  };
36
38
  }
37
39
  });
@@ -1,4 +1,9 @@
1
1
  declare const PopoverTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  placement: {
3
8
  type: import("vue").PropType<import("floating-vue").Placement>;
4
9
  } & {
@@ -34,6 +39,11 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
34
39
  default: string;
35
40
  };
36
41
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ testId: {
43
+ type: import("vue").PropType<string>;
44
+ } & {
45
+ default: string;
46
+ };
37
47
  placement: {
38
48
  type: import("vue").PropType<import("floating-vue").Placement>;
39
49
  } & {
@@ -69,6 +79,7 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
69
79
  default: string;
70
80
  };
71
81
  }>>, {
82
+ testId: string;
72
83
  placement: import("floating-vue").Placement;
73
84
  disabled: boolean;
74
85
  distance: number;
@@ -4,30 +4,35 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  helperText?: string;
5
5
  errorText?: string;
6
6
  modelValue?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  label: string;
9
10
  name: string;
10
11
  helperText: string;
11
12
  errorText: string;
12
13
  modelValue: any;
14
+ testId: string;
13
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
16
  label: string;
15
17
  name?: string;
16
18
  helperText?: string;
17
19
  errorText?: string;
18
20
  modelValue?: string;
21
+ testId?: string;
19
22
  }>, {
20
23
  label: string;
21
24
  name: string;
22
25
  helperText: string;
23
26
  errorText: string;
24
27
  modelValue: any;
28
+ testId: string;
25
29
  }>>> & {
26
30
  onChange?: (...args: any[]) => any;
27
31
  "onUpdate:modelValue"?: (...args: any[]) => any;
28
32
  }, {
29
33
  name: string;
30
34
  label: string;
35
+ testId: string;
31
36
  modelValue: string;
32
37
  helperText: string;
33
38
  errorText: string;