@ironsource/shared-ui 1.4.2-test.9 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/DollarInput.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/Editable.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/IncludeExclude.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/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/README.md +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 +17 -6
- 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 +12 -7
- 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 +5 -0
- package/components/dropdown/Dropdown.vue.js +62 -35
- package/components/dropdown/index.d.ts +11 -0
- package/components/emptyState/index.d.ts +3 -3
- 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/icon/Icon.vue.js +0 -1
- package/components/icon/icons/index.d.ts +0 -3
- package/components/icon/icons/index.vue.js +0 -3
- package/components/icon/index.d.ts +0 -3
- package/components/includeExclude/IncludeExclude.vue.d.ts +5 -13
- package/components/includeExclude/IncludeExclude.vue.js +86 -134
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +3 -4
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +2 -2
- package/components/includeExclude/includeExcludeMocks.d.ts +0 -12
- package/components/includeExclude/index.d.ts +23 -27
- package/components/includeExclude/index.vue.js +0 -3
- package/components/input/DollarInput.vue.d.ts +1 -1
- package/components/input/DollarInput.vue.js +1 -1
- package/components/input/Input.vue.d.ts +10 -0
- package/components/input/Input.vue.js +61 -35
- package/components/input/PasswordInput.vue.d.ts +1 -1
- package/components/input/PasswordInput.vue.js +1 -1
- package/components/input/PercentageInput.vue.d.ts +1 -1
- package/components/input/PercentageInput.vue.js +1 -1
- package/components/input/index.d.ts +34 -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.types.d.ts +0 -1
- package/components/table/Table.vue.d.ts +5 -10
- package/components/table/Table.vue.js +56 -52
- package/components/table/index.d.ts +11 -22
- package/components/table-cells/Editable.vue.js +1 -1
- 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 +10 -0
- package/components/toggle/Toggle.vue.js +37 -20
- package/components/toggle/index.d.ts +22 -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/consts/regex.d.ts +1 -0
- package/consts/regex.vue.js +3 -0
- package/consts/style.d.ts +1 -0
- package/consts/style.vue.js +3 -0
- package/index.vue.js +1 -2
- package/package.json +4 -5
- package/testids/index.d.ts +146 -0
- package/testids/index.vue.js +170 -0
- package/utils/style.d.ts +1 -0
- package/utils/style.vue.js +5 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/components/icon/icons/TableEdit.vue.d.ts +0 -2
- package/components/icon/icons/TableEdit.vue.js +0 -24
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -122
- package/components/table/Pagination.vue.d.ts +0 -43
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import IncludeExclude from './IncludeExclude.vue';
|
|
2
2
|
import IncludeExcludeOption from './IncludeExcludeOption.vue';
|
|
3
|
-
import IncludeExcludeOptionDraggable from './IncludeExcludeOptionDraggable.vue';
|
|
4
3
|
import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue';
|
|
5
4
|
import IncludeExcludeAppHeader from './IncludeExcludeAppHeader.vue';
|
|
6
5
|
import IncludeExcludeChipFilter from './IncludeExcludeChipFilter.vue';
|
|
7
6
|
declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
7
|
+
testId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
} & {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
8
12
|
loading: {
|
|
9
13
|
type: import("vue").PropType<boolean>;
|
|
10
14
|
} & {
|
|
@@ -91,25 +95,18 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
91
95
|
} & {
|
|
92
96
|
default: number;
|
|
93
97
|
};
|
|
94
|
-
isDraggable: {
|
|
95
|
-
type: import("vue").PropType<boolean>;
|
|
96
|
-
} & {
|
|
97
|
-
default: boolean;
|
|
98
|
-
};
|
|
99
|
-
draggableArgs: {
|
|
100
|
-
type: import("vue").PropType<object>;
|
|
101
|
-
} & {
|
|
102
|
-
default: any;
|
|
103
|
-
};
|
|
104
98
|
keyField: {
|
|
105
99
|
type: import("vue").PropType<string>;
|
|
106
100
|
required: true;
|
|
107
101
|
};
|
|
108
102
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
109
103
|
"update:modelValue": (value: unknown) => void;
|
|
110
|
-
} & {
|
|
111
|
-
changeDragDrop: (value: unknown) => void;
|
|
112
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
|
+
};
|
|
113
110
|
loading: {
|
|
114
111
|
type: import("vue").PropType<boolean>;
|
|
115
112
|
} & {
|
|
@@ -196,24 +193,14 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
196
193
|
} & {
|
|
197
194
|
default: number;
|
|
198
195
|
};
|
|
199
|
-
isDraggable: {
|
|
200
|
-
type: import("vue").PropType<boolean>;
|
|
201
|
-
} & {
|
|
202
|
-
default: boolean;
|
|
203
|
-
};
|
|
204
|
-
draggableArgs: {
|
|
205
|
-
type: import("vue").PropType<object>;
|
|
206
|
-
} & {
|
|
207
|
-
default: any;
|
|
208
|
-
};
|
|
209
196
|
keyField: {
|
|
210
197
|
type: import("vue").PropType<string>;
|
|
211
198
|
required: true;
|
|
212
199
|
};
|
|
213
200
|
}>> & {
|
|
214
201
|
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
215
|
-
onChangeDragDrop?: (value: unknown) => any;
|
|
216
202
|
}, {
|
|
203
|
+
testId: string;
|
|
217
204
|
loading: boolean;
|
|
218
205
|
placement: import("floating-vue").Placement;
|
|
219
206
|
disabled: boolean;
|
|
@@ -229,8 +216,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
229
216
|
alwayesOpen: boolean;
|
|
230
217
|
distanceOffset: number;
|
|
231
218
|
skiddingOffset: number;
|
|
232
|
-
isDraggable: boolean;
|
|
233
|
-
draggableArgs: object;
|
|
234
219
|
}> | import("vue").DefineComponent<{
|
|
235
220
|
option: {
|
|
236
221
|
type: import("vue").PropType<unknown>;
|
|
@@ -256,6 +241,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
256
241
|
} & {
|
|
257
242
|
default: string;
|
|
258
243
|
};
|
|
244
|
+
showCheckbox: {
|
|
245
|
+
type: import("vue").PropType<boolean>;
|
|
246
|
+
} & {
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
259
249
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
250
|
option: {
|
|
261
251
|
type: import("vue").PropType<unknown>;
|
|
@@ -281,11 +271,17 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
281
271
|
} & {
|
|
282
272
|
default: string;
|
|
283
273
|
};
|
|
274
|
+
showCheckbox: {
|
|
275
|
+
type: import("vue").PropType<boolean>;
|
|
276
|
+
} & {
|
|
277
|
+
default: boolean;
|
|
278
|
+
};
|
|
284
279
|
}>>, {
|
|
285
280
|
disabled: boolean;
|
|
286
281
|
subtitle: string;
|
|
287
282
|
clearable: boolean;
|
|
288
283
|
titleText: string;
|
|
284
|
+
showCheckbox: boolean;
|
|
289
285
|
}> | import("vue").DefineComponent<{
|
|
290
286
|
loading: {
|
|
291
287
|
type: import("vue").PropType<boolean>;
|
|
@@ -704,4 +700,4 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
|
|
|
704
700
|
showImage: boolean;
|
|
705
701
|
triggerTextFunc: (option: unknown) => string;
|
|
706
702
|
}>)[];
|
|
707
|
-
export { IncludeExclude, IncludeExcludeOption,
|
|
703
|
+
export { IncludeExclude, IncludeExcludeOption, IncludeExcludeAppTrigger, IncludeExcludeAppHeader, IncludeExcludeChipFilter, IncludeExcludeTypes, };
|
|
@@ -2,8 +2,6 @@ import IncludeExclude from './IncludeExclude.vue.js';
|
|
|
2
2
|
export { default as IncludeExclude } from './IncludeExclude.vue.js';
|
|
3
3
|
import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
|
|
4
4
|
export { default as IncludeExcludeOption } from './IncludeExcludeOption.vue.js';
|
|
5
|
-
import IncludeExcludeOptionDraggable from './IncludeExcludeOptionDraggable.vue.js';
|
|
6
|
-
export { default as IncludeExcludeOptionDraggable } from './IncludeExcludeOptionDraggable.vue.js';
|
|
7
5
|
import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue.js';
|
|
8
6
|
export { default as IncludeExcludeAppTrigger } from './IncludeExcludeAppTrigger.vue.js';
|
|
9
7
|
import IncludeExcludeAppHeader from './IncludeExcludeAppHeader.vue.js';
|
|
@@ -14,7 +12,6 @@ export { default as IncludeExcludeChipFilter } from './IncludeExcludeChipFilter.
|
|
|
14
12
|
const IncludeExcludeTypes = () => [
|
|
15
13
|
IncludeExclude,
|
|
16
14
|
IncludeExcludeOption,
|
|
17
|
-
IncludeExcludeOptionDraggable,
|
|
18
15
|
IncludeExcludeAppTrigger,
|
|
19
16
|
IncludeExcludeAppHeader,
|
|
20
17
|
IncludeExcludeChipFilter
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Input from './Input.vue';
|
|
2
2
|
import { ExtractComponentProps } from '../../utils/extract-props';
|
|
3
3
|
export type DollarPropsType = Omit<ExtractComponentProps<typeof Input>, 'type' | 'hideNumberArrows' | 'step'>;
|
|
4
|
-
export interface DollarProps extends
|
|
4
|
+
export interface DollarProps extends DollarPropsType {
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<DollarProps>, {}, 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 DollarInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
35
|
+
var DollarInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b96666f4"]]);
|
|
36
36
|
|
|
37
37
|
export { DollarInput as default };
|
|
@@ -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,
|
|
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
|
|
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 =
|
|
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
|
|
17
|
-
const
|
|
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
|
|
22
|
-
const
|
|
23
|
-
const
|
|
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), {
|
|
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",
|
|
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
|
-
],
|
|
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",
|
|
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
|
-
|
|
174
|
-
|
|
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",
|
|
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",
|
|
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",
|
|
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
|
-
],
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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;
|