@ironsource/shared-ui 1.4.2-rc.16 → 1.4.2-rc.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Heading.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Text.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +5 -0
- package/components/appTrigger/AppTrigger.vue.js +29 -16
- package/components/appTrigger/index.d.ts +11 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +5 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +7 -4
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +5 -0
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +12 -6
- package/components/autocompleteDropdown/index.d.ts +11 -0
- package/components/banner/Banner.vue.d.ts +9 -0
- package/components/banner/Banner.vue.js +20 -9
- package/components/banner/index.d.ts +9 -0
- package/components/button/Button.vue.d.ts +5 -0
- package/components/button/Button.vue.js +6 -4
- package/components/button/index.d.ts +11 -0
- package/components/checkbox/Checkbox.vue.d.ts +5 -0
- package/components/checkbox/Checkbox.vue.js +20 -14
- package/components/checkbox/index.d.ts +11 -0
- package/components/chip/Chip.vue.d.ts +5 -0
- package/components/chip/Chip.vue.js +11 -6
- package/components/chip/index.d.ts +11 -0
- package/components/datePicker/DatePicker.vue.d.ts +5 -0
- package/components/datePicker/DatePicker.vue.js +11 -6
- package/components/datePicker/DatePickerMonth.vue.d.ts +5 -0
- package/components/datePicker/DatePickerMonth.vue.js +5 -3
- package/components/datePicker/index.d.ts +11 -0
- package/components/dateRange/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/CalendarMonth.vue.js +39 -21
- package/components/dateRange/DateRange.vue.d.ts +5 -0
- package/components/dateRange/DateRange.vue.js +49 -36
- package/components/dateRange/DateRangePicker.vue.d.ts +5 -0
- package/components/dateRange/index.d.ts +11 -0
- package/components/dialog/Dialog.vue.d.ts +5 -0
- package/components/dialog/Dialog.vue.js +38 -23
- package/components/dialog/index.d.ts +11 -0
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +41 -32
- package/components/dropdown/index.d.ts +11 -11
- package/components/filterDropdown/AddFilterButton.vue.d.ts +2 -0
- package/components/filterDropdown/AddFilterButton.vue.js +6 -4
- package/components/filterDropdown/FilterDropdown.vue.d.ts +5 -0
- package/components/filterDropdown/FilterDropdown.vue.js +8 -5
- package/components/filterDropdown/index.d.ts +17 -0
- package/components/filtersPanel/FiltersPanel.vue.d.ts +5 -0
- package/components/filtersPanel/FiltersPanel.vue.js +7 -4
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +1 -1
- package/components/includeExclude/index.d.ts +11 -11
- package/components/input/Input.vue.d.ts +5 -0
- package/components/input/Input.vue.js +44 -31
- package/components/input/index.d.ts +17 -0
- package/components/menu/Menu.vue.d.ts +5 -0
- package/components/menu/Menu.vue.js +6 -4
- package/components/menu/index.d.ts +11 -0
- package/components/popover/Popover.vue.d.ts +5 -0
- package/components/popover/Popover.vue.js +5 -3
- package/components/popover/index.d.ts +11 -0
- package/components/radioButton/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/RadioButton.vue.js +15 -8
- package/components/radioButton/RadioGroup.vue.d.ts +5 -0
- package/components/radioButton/RadioGroup.vue.js +9 -5
- package/components/radioButton/index.d.ts +22 -0
- package/components/search/Search.vue.d.ts +5 -0
- package/components/search/Search.vue.js +13 -7
- package/components/search/index.d.ts +11 -0
- package/components/switch/Switch.vue.d.ts +5 -0
- package/components/switch/Switch.vue.js +17 -9
- package/components/switch/index.d.ts +11 -0
- package/components/table/Table.vue.d.ts +5 -0
- package/components/table/Table.vue.js +58 -36
- package/components/table/index.d.ts +11 -0
- package/components/tabs/Tabs.vue.d.ts +5 -0
- package/components/tabs/Tabs.vue.js +20 -15
- package/components/tabs/index.d.ts +11 -0
- package/components/textArea/TextArea.vue.d.ts +5 -0
- package/components/textArea/TextArea.vue.js +23 -16
- package/components/textArea/index.d.ts +11 -0
- package/components/toggle/Toggle.vue.d.ts +5 -0
- package/components/toggle/Toggle.vue.js +29 -18
- package/components/toggle/index.d.ts +11 -0
- package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
- package/components/tooltip/TextWithTitleContent.vue.js +11 -6
- package/components/tooltip/Tooltip.vue.d.ts +5 -0
- package/components/tooltip/Tooltip.vue.js +8 -4
- package/components/tooltip/index.d.ts +11 -0
- package/components/typography/Heading.vue.d.ts +5 -0
- package/components/typography/Heading.vue.js +7 -4
- package/components/typography/Text.vue.d.ts +5 -0
- package/components/typography/Text.vue.js +8 -4
- package/components/typography/index.d.ts +22 -0
- package/index.vue.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +142 -10
- package/testids/index.vue.js +163 -11
|
@@ -9,6 +9,9 @@ declare const FilterDropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
9
9
|
prefix: {
|
|
10
10
|
type: import("vue").PropType<string>;
|
|
11
11
|
};
|
|
12
|
+
testId: {
|
|
13
|
+
type: import("vue").PropType<string>;
|
|
14
|
+
};
|
|
12
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
16
|
selected: {
|
|
14
17
|
type: import("vue").PropType<boolean>;
|
|
@@ -19,12 +22,20 @@ declare const FilterDropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
19
22
|
prefix: {
|
|
20
23
|
type: import("vue").PropType<string>;
|
|
21
24
|
};
|
|
25
|
+
testId: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
};
|
|
22
28
|
}>>, {}> | import("vue").DefineComponent<{
|
|
23
29
|
text: {
|
|
24
30
|
type: import("vue").PropType<string>;
|
|
25
31
|
} & {
|
|
26
32
|
default: string;
|
|
27
33
|
};
|
|
34
|
+
testId: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
} & {
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
28
39
|
disabled: {
|
|
29
40
|
type: import("vue").PropType<boolean>;
|
|
30
41
|
} & {
|
|
@@ -52,6 +63,11 @@ declare const FilterDropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
52
63
|
} & {
|
|
53
64
|
default: string;
|
|
54
65
|
};
|
|
66
|
+
testId: {
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
68
|
+
} & {
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
55
71
|
disabled: {
|
|
56
72
|
type: import("vue").PropType<boolean>;
|
|
57
73
|
} & {
|
|
@@ -75,6 +91,7 @@ declare const FilterDropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
75
91
|
};
|
|
76
92
|
}>>, {
|
|
77
93
|
text: string;
|
|
94
|
+
testId: string;
|
|
78
95
|
disabled: boolean;
|
|
79
96
|
}>)[];
|
|
80
97
|
export { default as FilterDropdown } from './FilterDropdown.vue';
|
|
@@ -4,16 +4,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
isOpen?: boolean;
|
|
5
5
|
selected: Record<string, Filter> | Record<string, Filter>[];
|
|
6
6
|
isMultiSelect?: boolean;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}>, {
|
|
8
9
|
isOpen: boolean;
|
|
10
|
+
testId: string;
|
|
9
11
|
}>, {}, 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<{
|
|
10
12
|
filters: Filter[];
|
|
11
13
|
isOpen?: boolean;
|
|
12
14
|
selected: Record<string, Filter> | Record<string, Filter>[];
|
|
13
15
|
isMultiSelect?: boolean;
|
|
16
|
+
testId?: string;
|
|
14
17
|
}>, {
|
|
15
18
|
isOpen: boolean;
|
|
19
|
+
testId: string;
|
|
16
20
|
}>>>, {
|
|
21
|
+
testId: string;
|
|
17
22
|
isOpen: boolean;
|
|
18
23
|
}>;
|
|
19
24
|
export default _default;
|
|
@@ -3,13 +3,15 @@ import { defineComponent, computed, openBlock, createElementBlock, Fragment, ren
|
|
|
3
3
|
|
|
4
4
|
import "../../FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
5
5
|
const _hoisted_1 = { class: "filter-panel" };
|
|
6
|
+
const _hoisted_2 = ["data-testid"];
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "FiltersPanel",
|
|
8
9
|
props: {
|
|
9
10
|
filters: null,
|
|
10
11
|
isOpen: { type: Boolean, default: false },
|
|
11
12
|
selected: null,
|
|
12
|
-
isMultiSelect: { type: Boolean }
|
|
13
|
+
isMultiSelect: { type: Boolean },
|
|
14
|
+
testId: { default: "" }
|
|
13
15
|
},
|
|
14
16
|
setup(__props) {
|
|
15
17
|
const props = __props;
|
|
@@ -38,10 +40,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
40
|
hidden: filter.hidden,
|
|
39
41
|
selected: props.isMultiSelect ? __props.selected[filter.id].length > 0 : !!__props.selected[filter.id],
|
|
40
42
|
exposed: !filter.hidden
|
|
41
|
-
}])
|
|
43
|
+
}]),
|
|
44
|
+
"data-testid": `${props.testId}-filter-${filter.id}`
|
|
42
45
|
}, [
|
|
43
46
|
renderSlot(_ctx.$slots, filter.id, normalizeProps(guardReactiveProps(filter)), void 0, true)
|
|
44
|
-
],
|
|
47
|
+
], 10, _hoisted_2);
|
|
45
48
|
}), 128)),
|
|
46
49
|
!__props.isOpen ? renderSlot(_ctx.$slots, "add", {
|
|
47
50
|
key: 0,
|
|
@@ -51,6 +54,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
|
-
var FiltersPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
57
|
+
var FiltersPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7bb724f2"]]);
|
|
55
58
|
|
|
56
59
|
export { FiltersPanel as default };
|
|
@@ -80,6 +80,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
80
80
|
}>>> & {
|
|
81
81
|
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
82
82
|
}, {
|
|
83
|
+
testId: string;
|
|
83
84
|
loading: boolean;
|
|
84
85
|
placement: Placement;
|
|
85
86
|
disabled: boolean;
|
|
@@ -89,7 +90,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
89
90
|
autoFocus: boolean;
|
|
90
91
|
defaultOpen: boolean;
|
|
91
92
|
onSearch: (option: any, term: string) => boolean;
|
|
92
|
-
testId: string;
|
|
93
93
|
hasSubtitle: boolean;
|
|
94
94
|
titleText: string;
|
|
95
95
|
showClearAll: boolean;
|
|
@@ -2,6 +2,7 @@ import { defineComponent, computed, ref, watch, provide, openBlock, createBlock,
|
|
|
2
2
|
import _sfc_main$1 from '../popover/Popover.vue.js';
|
|
3
3
|
import Button from '../button/Button.vue.js';
|
|
4
4
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
5
|
+
import { IncludeExcludeTestIdModifiers } from '../../testids/index.vue.js';
|
|
5
6
|
/* empty css */import Text from '../typography/Text.vue.js';
|
|
6
7
|
/* empty css *//* empty css *//* empty css */import 'floating-vue';
|
|
7
8
|
/* empty css *//* empty css */import Search from '../search/Search.vue.js';
|
|
@@ -11,7 +12,6 @@ import EmptyState from '../emptyState/EmptyState.vue.js';
|
|
|
11
12
|
import { useToggle } from '../../composables/useToggle.vue.js';
|
|
12
13
|
import { IncludeExcludeContext } from './IncludeExcludeContext.vue.js';
|
|
13
14
|
import { onClickOutside, useClamp, useVirtualList } from '@vueuse/core';
|
|
14
|
-
import { IncludeExcludeTestIdModifiers } from '../../testids/index.vue.js';
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
17
17
|
const _hoisted_1 = ["data-testid"];
|
|
@@ -4,6 +4,11 @@ import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue';
|
|
|
4
4
|
import IncludeExcludeAppHeader from './IncludeExcludeAppHeader.vue';
|
|
5
5
|
import IncludeExcludeChipFilter from './IncludeExcludeChipFilter.vue';
|
|
6
6
|
declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
7
|
+
testId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
} & {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
7
12
|
loading: {
|
|
8
13
|
type: import("vue").PropType<boolean>;
|
|
9
14
|
} & {
|
|
@@ -60,11 +65,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
60
65
|
} & {
|
|
61
66
|
default: () => true;
|
|
62
67
|
};
|
|
63
|
-
testId: {
|
|
64
|
-
type: import("vue").PropType<string>;
|
|
65
|
-
} & {
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
68
|
hasSubtitle: {
|
|
69
69
|
type: import("vue").PropType<boolean>;
|
|
70
70
|
} & {
|
|
@@ -102,6 +102,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
102
102
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
103
103
|
"update:modelValue": (value: unknown) => void;
|
|
104
104
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
105
|
+
testId: {
|
|
106
|
+
type: import("vue").PropType<string>;
|
|
107
|
+
} & {
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
105
110
|
loading: {
|
|
106
111
|
type: import("vue").PropType<boolean>;
|
|
107
112
|
} & {
|
|
@@ -158,11 +163,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
158
163
|
} & {
|
|
159
164
|
default: () => true;
|
|
160
165
|
};
|
|
161
|
-
testId: {
|
|
162
|
-
type: import("vue").PropType<string>;
|
|
163
|
-
} & {
|
|
164
|
-
default: string;
|
|
165
|
-
};
|
|
166
166
|
hasSubtitle: {
|
|
167
167
|
type: import("vue").PropType<boolean>;
|
|
168
168
|
} & {
|
|
@@ -200,6 +200,7 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
200
200
|
}>> & {
|
|
201
201
|
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
202
202
|
}, {
|
|
203
|
+
testId: string;
|
|
203
204
|
loading: boolean;
|
|
204
205
|
placement: import("floating-vue").Placement;
|
|
205
206
|
disabled: boolean;
|
|
@@ -209,7 +210,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
209
210
|
autoFocus: boolean;
|
|
210
211
|
defaultOpen: boolean;
|
|
211
212
|
onSearch: (option: any, term: string) => boolean;
|
|
212
|
-
testId: string;
|
|
213
213
|
hasSubtitle: boolean;
|
|
214
214
|
titleText: string;
|
|
215
215
|
showClearAll: boolean;
|
|
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
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
18
|
onlyDigits?: boolean;
|
|
19
|
+
testId?: string;
|
|
19
20
|
}>, {
|
|
20
21
|
modelValue: string;
|
|
21
22
|
placeholder: string;
|
|
@@ -34,6 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
34
35
|
hoverHelpText: string;
|
|
35
36
|
hoverHelpTextPlacement: string;
|
|
36
37
|
onlyDigits: boolean;
|
|
38
|
+
testId: string;
|
|
37
39
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
40
|
"update:modelValue": (value: string | number) => void;
|
|
39
41
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -54,6 +56,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
54
56
|
hoverHelpText?: string;
|
|
55
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';
|
|
56
58
|
onlyDigits?: boolean;
|
|
59
|
+
testId?: string;
|
|
57
60
|
}>, {
|
|
58
61
|
modelValue: string;
|
|
59
62
|
placeholder: string;
|
|
@@ -72,12 +75,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
72
75
|
hoverHelpText: string;
|
|
73
76
|
hoverHelpTextPlacement: string;
|
|
74
77
|
onlyDigits: boolean;
|
|
78
|
+
testId: string;
|
|
75
79
|
}>>> & {
|
|
76
80
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
77
81
|
}, {
|
|
78
82
|
size: 'sm' | 'lg';
|
|
79
83
|
label: string;
|
|
80
84
|
type: 'text' | 'number' | 'password';
|
|
85
|
+
testId: string;
|
|
81
86
|
disabled: boolean;
|
|
82
87
|
modelValue: string | number;
|
|
83
88
|
placeholder: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, openBlock, createElementBlock, normalizeClass,
|
|
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
2
|
import Icon from '../icon/Icon.vue.js';
|
|
3
|
+
import { InputTestIdModifiers } from '../../testids/index.vue.js';
|
|
3
4
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
5
|
import Text from '../typography/Text.vue.js';
|
|
5
6
|
/* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
|
|
@@ -9,22 +10,21 @@ import '@vueuse/core';
|
|
|
9
10
|
/* empty css */import { REGEX_NUMBER_INPUT } from '../../consts/regex.vue.js';
|
|
10
11
|
/* empty css */
|
|
11
12
|
import "../../Input.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
12
|
-
const _hoisted_1 =
|
|
13
|
-
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 = {
|
|
14
17
|
key: 0,
|
|
15
18
|
class: "icon-container icon-before"
|
|
16
19
|
};
|
|
17
|
-
const
|
|
18
|
-
const
|
|
20
|
+
const _hoisted_5 = ["value", "placeholder", "disabled", "type", "step", "data-testid", "onKeyup"];
|
|
21
|
+
const _hoisted_6 = {
|
|
19
22
|
key: 1,
|
|
20
23
|
class: "icon-container icon-after"
|
|
21
24
|
};
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
key: 1,
|
|
26
|
-
class: "extra-text-container"
|
|
27
|
-
};
|
|
25
|
+
const _hoisted_7 = { key: 2 };
|
|
26
|
+
const _hoisted_8 = { key: 3 };
|
|
27
|
+
const _hoisted_9 = ["data-testid"];
|
|
28
28
|
const __default__ = {
|
|
29
29
|
inheritAttrs: false
|
|
30
30
|
};
|
|
@@ -48,7 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
step: { default: 1 },
|
|
49
49
|
hoverHelpText: { default: "" },
|
|
50
50
|
hoverHelpTextPlacement: { default: "top" },
|
|
51
|
-
onlyDigits: { type: Boolean, default: false }
|
|
51
|
+
onlyDigits: { type: Boolean, default: false },
|
|
52
|
+
testId: { default: "" }
|
|
52
53
|
},
|
|
53
54
|
emits: ["update:modelValue"],
|
|
54
55
|
setup(__props, { emit }) {
|
|
@@ -110,28 +111,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
111
|
"input-with-label-container": true,
|
|
111
112
|
"label-direction-left": __props.labelDirection === "left",
|
|
112
113
|
disabled: __props.disabled
|
|
113
|
-
})
|
|
114
|
+
}),
|
|
115
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).WRAPPER}`
|
|
114
116
|
}, [
|
|
115
117
|
__props.label && __props.labelDirection !== "inside" ? (openBlock(), createElementBlock("div", {
|
|
116
118
|
key: 0,
|
|
117
|
-
class: normalizeClass(["label-container", "direction-" + __props.labelDirection])
|
|
119
|
+
class: normalizeClass(["label-container", "direction-" + __props.labelDirection]),
|
|
120
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).LABEL_CONTAINER}`
|
|
118
121
|
}, [
|
|
119
|
-
createVNode(unref(Text), {
|
|
122
|
+
createVNode(unref(Text), {
|
|
123
|
+
class: "label",
|
|
124
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).LABEL_TEXT}`
|
|
125
|
+
}, {
|
|
120
126
|
default: withCtx(() => [
|
|
121
127
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
122
128
|
]),
|
|
123
129
|
_: 1
|
|
124
|
-
}),
|
|
130
|
+
}, 8, ["data-testid"]),
|
|
125
131
|
__props.mandatory ? (openBlock(), createBlock(unref(Text), {
|
|
126
132
|
key: 0,
|
|
127
133
|
size: "lg",
|
|
128
|
-
class: "mandatory"
|
|
134
|
+
class: "mandatory",
|
|
135
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).MANDATORY}`
|
|
129
136
|
}, {
|
|
130
137
|
default: withCtx(() => [
|
|
131
138
|
createTextVNode("*")
|
|
132
139
|
]),
|
|
133
140
|
_: 1
|
|
134
|
-
})) : createCommentVNode("", true),
|
|
141
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true),
|
|
135
142
|
__props.hoverHelpText ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
136
143
|
key: 1,
|
|
137
144
|
triggers: ["hover"],
|
|
@@ -141,7 +148,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
148
|
strong: true
|
|
142
149
|
}, {
|
|
143
150
|
default: withCtx(() => [
|
|
144
|
-
createElementVNode("div",
|
|
151
|
+
createElementVNode("div", _hoisted_3, [
|
|
145
152
|
createVNode(unref(Icon), {
|
|
146
153
|
class: "info-icon",
|
|
147
154
|
name: "info",
|
|
@@ -151,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
158
|
]),
|
|
152
159
|
_: 1
|
|
153
160
|
}, 8, ["text", "placement"])) : createCommentVNode("", true)
|
|
154
|
-
],
|
|
161
|
+
], 10, _hoisted_2)) : createCommentVNode("", true),
|
|
155
162
|
createElementVNode("div", {
|
|
156
163
|
class: normalizeClass({
|
|
157
164
|
"input-container": true,
|
|
@@ -160,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
160
167
|
focused: isFocused.value
|
|
161
168
|
})
|
|
162
169
|
}, [
|
|
163
|
-
_ctx.$slots["iconBefore"] ? (openBlock(), createElementBlock("div",
|
|
170
|
+
_ctx.$slots["iconBefore"] ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
164
171
|
renderSlot(_ctx.$slots, "iconBefore", {}, void 0, true)
|
|
165
172
|
])) : createCommentVNode("", true),
|
|
166
173
|
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
@@ -178,16 +185,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
185
|
"input-type": __props.type
|
|
179
186
|
}],
|
|
180
187
|
step: __props.step,
|
|
188
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).FIELD}`,
|
|
181
189
|
onInput: handleInput,
|
|
182
190
|
onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
|
|
183
191
|
onBlur: _cache[1] || (_cache[1] = ($event) => isFocused.value = false),
|
|
184
192
|
onKeyup: withKeys(withModifiers(onEnter, ["prevent"]), ["enter"]),
|
|
185
193
|
onKeypress: handleKeypress
|
|
186
|
-
}), null, 16,
|
|
187
|
-
_ctx.$slots["iconAfter"] ? (openBlock(), createElementBlock("div",
|
|
194
|
+
}), null, 16, _hoisted_5),
|
|
195
|
+
_ctx.$slots["iconAfter"] ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
188
196
|
renderSlot(_ctx.$slots, "iconAfter", {}, void 0, true)
|
|
189
197
|
])) : createCommentVNode("", true),
|
|
190
|
-
unref(api)?.confirmable && !unref(api)?.error?.value ? (openBlock(), createElementBlock("div",
|
|
198
|
+
unref(api)?.confirmable && !unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
191
199
|
createVNode(unref(IconButton), {
|
|
192
200
|
class: "confirm-icon",
|
|
193
201
|
theme: "secondary",
|
|
@@ -203,9 +211,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
211
|
_: 1
|
|
204
212
|
}, 8, ["onClick"])
|
|
205
213
|
])) : createCommentVNode("", true),
|
|
206
|
-
unref(api)?.error?.value ? (openBlock(), createElementBlock("div",
|
|
214
|
+
unref(api)?.error?.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
207
215
|
createVNode(unref(_sfc_main$1), {
|
|
208
|
-
text: unref(api)?.error?.value
|
|
216
|
+
text: unref(api)?.error?.value,
|
|
217
|
+
"data-testid": `${__props.testId}-${unref(InputTestIdModifiers).TOOLTIP}`
|
|
209
218
|
}, {
|
|
210
219
|
default: withCtx(() => [
|
|
211
220
|
createVNode(unref(IconButton), {
|
|
@@ -223,10 +232,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
223
232
|
})
|
|
224
233
|
]),
|
|
225
234
|
_: 1
|
|
226
|
-
}, 8, ["text"])
|
|
235
|
+
}, 8, ["text", "data-testid"])
|
|
227
236
|
])) : createCommentVNode("", true)
|
|
228
237
|
], 2),
|
|
229
|
-
__props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div",
|
|
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
|
+
}, [
|
|
230
243
|
createVNode(unref(Text), {
|
|
231
244
|
class: normalizeClass(__props.feedbackErrorText ? "error" : "help"),
|
|
232
245
|
size: "caption"
|
|
@@ -236,11 +249,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
236
249
|
]),
|
|
237
250
|
_: 1
|
|
238
251
|
}, 8, ["class"])
|
|
239
|
-
])) : createCommentVNode("", true)
|
|
240
|
-
],
|
|
252
|
+
], 8, _hoisted_9)) : createCommentVNode("", true)
|
|
253
|
+
], 10, _hoisted_1);
|
|
241
254
|
};
|
|
242
255
|
}
|
|
243
256
|
});
|
|
244
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
257
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ccecdef"]]);
|
|
245
258
|
|
|
246
259
|
export { Input 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
|
} & {
|
|
@@ -106,6 +111,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
106
111
|
} & {
|
|
107
112
|
default: string;
|
|
108
113
|
};
|
|
114
|
+
testId: {
|
|
115
|
+
type: import("vue").PropType<string>;
|
|
116
|
+
} & {
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
109
119
|
disabled: {
|
|
110
120
|
type: import("vue").PropType<boolean>;
|
|
111
121
|
} & {
|
|
@@ -182,6 +192,7 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
182
192
|
size: "sm" | "lg";
|
|
183
193
|
label: string;
|
|
184
194
|
type: "number" | "text" | "password";
|
|
195
|
+
testId: string;
|
|
185
196
|
disabled: boolean;
|
|
186
197
|
modelValue: string | number;
|
|
187
198
|
placeholder: string;
|
|
@@ -209,6 +220,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
209
220
|
style: {
|
|
210
221
|
type: import("vue").PropType<unknown>;
|
|
211
222
|
};
|
|
223
|
+
testId: {
|
|
224
|
+
type: import("vue").PropType<string>;
|
|
225
|
+
};
|
|
212
226
|
key: {
|
|
213
227
|
type: import("vue").PropType<string | number | symbol>;
|
|
214
228
|
};
|
|
@@ -325,6 +339,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
325
339
|
style: {
|
|
326
340
|
type: import("vue").PropType<unknown>;
|
|
327
341
|
};
|
|
342
|
+
testId: {
|
|
343
|
+
type: import("vue").PropType<string>;
|
|
344
|
+
};
|
|
328
345
|
key: {
|
|
329
346
|
type: import("vue").PropType<string | number | symbol>;
|
|
330
347
|
};
|
|
@@ -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-
|
|
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
|
});
|