@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
|
@@ -184,7 +184,6 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
184
184
|
case './icons/Success.vue': return import('./icons/Success.vue.js');
|
|
185
185
|
case './icons/SuccessFull.vue': return import('./icons/SuccessFull.vue.js');
|
|
186
186
|
case './icons/Switch.vue': return import('./icons/Switch.vue.js');
|
|
187
|
-
case './icons/TableEdit.vue': return import('./icons/TableEdit.vue.js');
|
|
188
187
|
case './icons/TabletLandscape.vue': return import('./icons/TabletLandscape.vue.js');
|
|
189
188
|
case './icons/TabletMac.vue': return import('./icons/TabletMac.vue.js');
|
|
190
189
|
case './icons/TabletPortrait.vue': return import('./icons/TabletPortrait.vue.js');
|
|
@@ -19,8 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
skiddingOffset?: number;
|
|
20
20
|
hasSubtitle?: boolean;
|
|
21
21
|
keyField: string;
|
|
22
|
-
|
|
23
|
-
draggableArgs?: object;
|
|
22
|
+
testId?: string;
|
|
24
23
|
}>, {
|
|
25
24
|
titleText: string;
|
|
26
25
|
loading: boolean;
|
|
@@ -37,12 +36,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
36
|
distanceOffset: number;
|
|
38
37
|
skiddingOffset: number;
|
|
39
38
|
hasSubtitle: boolean;
|
|
40
|
-
|
|
41
|
-
draggableArgs: any;
|
|
39
|
+
testId: string;
|
|
42
40
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
41
|
"update:modelValue": (value: unknown) => void;
|
|
44
|
-
} & {
|
|
45
|
-
changeDragDrop: (value: unknown) => void;
|
|
46
42
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
47
43
|
titleText?: string;
|
|
48
44
|
loading?: boolean;
|
|
@@ -63,8 +59,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
59
|
skiddingOffset?: number;
|
|
64
60
|
hasSubtitle?: boolean;
|
|
65
61
|
keyField: string;
|
|
66
|
-
|
|
67
|
-
draggableArgs?: object;
|
|
62
|
+
testId?: string;
|
|
68
63
|
}>, {
|
|
69
64
|
titleText: string;
|
|
70
65
|
loading: boolean;
|
|
@@ -81,12 +76,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
81
76
|
distanceOffset: number;
|
|
82
77
|
skiddingOffset: number;
|
|
83
78
|
hasSubtitle: boolean;
|
|
84
|
-
|
|
85
|
-
draggableArgs: any;
|
|
79
|
+
testId: string;
|
|
86
80
|
}>>> & {
|
|
87
81
|
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
88
|
-
onChangeDragDrop?: (value: unknown) => any;
|
|
89
82
|
}, {
|
|
83
|
+
testId: string;
|
|
90
84
|
loading: boolean;
|
|
91
85
|
placement: Placement;
|
|
92
86
|
disabled: boolean;
|
|
@@ -102,8 +96,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
102
96
|
alwayesOpen: boolean;
|
|
103
97
|
distanceOffset: number;
|
|
104
98
|
skiddingOffset: number;
|
|
105
|
-
isDraggable: boolean;
|
|
106
|
-
draggableArgs: object;
|
|
107
99
|
}>;
|
|
108
100
|
export default _default;
|
|
109
101
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, provide, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot,
|
|
1
|
+
import { defineComponent, computed, ref, watch, provide, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, Transition, createElementBlock, normalizeClass, mergeProps, Fragment, renderList, toRaw, nextTick } from 'vue';
|
|
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,39 +12,38 @@ 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 draggable from 'vuedraggable';
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
17
|
-
const _hoisted_1 =
|
|
18
|
-
const _hoisted_2 =
|
|
19
|
-
const _hoisted_3 = { class: "include-exclude-header
|
|
20
|
-
const _hoisted_4 = { class: "include-exclude-
|
|
21
|
-
const _hoisted_5 = {
|
|
17
|
+
const _hoisted_1 = ["data-testid"];
|
|
18
|
+
const _hoisted_2 = ["data-testid"];
|
|
19
|
+
const _hoisted_3 = { class: "include-exclude-header" };
|
|
20
|
+
const _hoisted_4 = { class: "include-exclude-header-left-section" };
|
|
21
|
+
const _hoisted_5 = { class: "include-exclude-header-right-section" };
|
|
22
|
+
const _hoisted_6 = { class: "include-exclude-container-wrapper" };
|
|
23
|
+
const _hoisted_7 = {
|
|
22
24
|
key: 0,
|
|
23
25
|
class: "include-exclude-container"
|
|
24
26
|
};
|
|
25
|
-
const
|
|
27
|
+
const _hoisted_8 = {
|
|
26
28
|
key: 1,
|
|
27
29
|
class: "include-exclude-container"
|
|
28
30
|
};
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
+
const _hoisted_9 = ["data-testid"];
|
|
32
|
+
const _hoisted_10 = {
|
|
31
33
|
key: 1,
|
|
32
34
|
class: "loader-wrapper"
|
|
33
35
|
};
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const _hoisted_14 = {
|
|
36
|
+
const _hoisted_11 = ["aria-selected", "aria-disabled", "onClick"];
|
|
37
|
+
const _hoisted_12 = { key: 1 };
|
|
38
|
+
const _hoisted_13 = { class: "loader-wrapper" };
|
|
39
|
+
const _hoisted_14 = ["data-testid"];
|
|
40
|
+
const _hoisted_15 = {
|
|
40
41
|
key: 0,
|
|
41
42
|
class: "loader-wrapper"
|
|
42
43
|
};
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const _hoisted_18 = { key: 2 };
|
|
44
|
+
const _hoisted_16 = { class: "include-exclude-selected-header-left" };
|
|
45
|
+
const _hoisted_17 = { class: "include-exclude-selected-header-right" };
|
|
46
|
+
const _hoisted_18 = { key: 1 };
|
|
47
47
|
const _hoisted_19 = { class: "loader-wrapper" };
|
|
48
48
|
const _hoisted_20 = { class: "include-exclude-footer" };
|
|
49
49
|
const _hoisted_21 = { class: "include-exclude-footer-buttons" };
|
|
@@ -69,10 +69,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
skiddingOffset: { default: 0 },
|
|
70
70
|
hasSubtitle: { type: Boolean, default: false },
|
|
71
71
|
keyField: null,
|
|
72
|
-
|
|
73
|
-
draggableArgs: { default: null }
|
|
72
|
+
testId: { default: "" }
|
|
74
73
|
},
|
|
75
|
-
emits: ["update:modelValue"
|
|
74
|
+
emits: ["update:modelValue"],
|
|
76
75
|
setup(__props, { emit }) {
|
|
77
76
|
const props = __props;
|
|
78
77
|
const scrollPrerenderedItems = 10;
|
|
@@ -120,11 +119,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
119
|
(x) => props.onSearch(x, query.value)
|
|
121
120
|
);
|
|
122
121
|
});
|
|
123
|
-
const filteredOptionsWithoutGroup = computed(() => {
|
|
124
|
-
return filteredOptions.value.filter(
|
|
125
|
-
(option) => !option?.groupOption
|
|
126
|
-
);
|
|
127
|
-
});
|
|
128
122
|
const onApply = () => {
|
|
129
123
|
if (selectedOption.value?.length !== props.options?.length) {
|
|
130
124
|
selectedOption.value = selectedOptionRef.value;
|
|
@@ -150,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
144
|
return false;
|
|
151
145
|
}
|
|
152
146
|
const selected = selectedOptionRef.value;
|
|
153
|
-
const filtered =
|
|
147
|
+
const filtered = filteredOptions.value;
|
|
154
148
|
if (selected === filtered) {
|
|
155
149
|
return true;
|
|
156
150
|
}
|
|
@@ -215,9 +209,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
215
209
|
};
|
|
216
210
|
const activeIndex = useClamp(0, 0, maxClamped);
|
|
217
211
|
const onSelect = (option) => {
|
|
218
|
-
if (option?.groupOption) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
212
|
inputRef.value?.focus();
|
|
222
213
|
const rawSelectedOption = selectedOptionRef.value;
|
|
223
214
|
if (rawSelectedOption.includes(option)) {
|
|
@@ -257,7 +248,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
257
248
|
removeSelection
|
|
258
249
|
};
|
|
259
250
|
const toggleSelectAll = () => {
|
|
260
|
-
|
|
251
|
+
if (selectedOptionRef.value?.length !== filteredOptions.value?.length) {
|
|
252
|
+
selectedOptionRef.value = filteredOptions.value;
|
|
253
|
+
} else {
|
|
254
|
+
selectedOptionRef.value = [];
|
|
255
|
+
}
|
|
261
256
|
};
|
|
262
257
|
provide(IncludeExcludeContext, api);
|
|
263
258
|
const filteredOptions = computed(() => {
|
|
@@ -296,19 +291,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
296
291
|
event.preventDefault();
|
|
297
292
|
}
|
|
298
293
|
};
|
|
299
|
-
const expandCollapseIds = ref([]);
|
|
300
|
-
const isCollapsed = (option) => {
|
|
301
|
-
return expandCollapseIds.value.includes(option?.[props.keyField]);
|
|
302
|
-
};
|
|
303
|
-
const toggleCollapse = (option) => {
|
|
304
|
-
if (option.groupOption) {
|
|
305
|
-
option.groupOption.isCollapse = !option?.groupOption.isCollapse;
|
|
306
|
-
}
|
|
307
|
-
expandCollapseIds.value = virtualOptions.value.filter((item) => item?.data?.groupOption?.isCollapse).flatMap((item) => item?.data?.groupOption?.childOptionsIds || []);
|
|
308
|
-
};
|
|
309
|
-
const onChangeDragDrop = () => {
|
|
310
|
-
emit("changeDragDrop", virtualOptionsSelected.value);
|
|
311
|
-
};
|
|
312
294
|
return (_ctx, _cache) => {
|
|
313
295
|
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
314
296
|
distance: unref(popoverDistance) + __props.distanceOffset,
|
|
@@ -323,6 +305,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
305
|
ref: buttonRef,
|
|
324
306
|
class: "include-exclude-trigger",
|
|
325
307
|
tabindex: "0",
|
|
308
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).TRIGGER}`,
|
|
326
309
|
onClick: triggerAction,
|
|
327
310
|
onKeydown: onButtonKeydown
|
|
328
311
|
}, [
|
|
@@ -332,18 +315,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
332
315
|
ref: buttonRef
|
|
333
316
|
}, "Default trigger", 512)
|
|
334
317
|
], true)
|
|
335
|
-
],
|
|
318
|
+
], 40, _hoisted_1)
|
|
336
319
|
]),
|
|
337
320
|
content: withCtx(() => [
|
|
338
321
|
createElementVNode("div", {
|
|
339
322
|
ref_key: "popoverWrapperRef",
|
|
340
323
|
ref: popoverWrapperRef,
|
|
341
|
-
class:
|
|
342
|
-
|
|
343
|
-
}])
|
|
324
|
+
class: "include-exclude-content",
|
|
325
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).CONTENT}`
|
|
344
326
|
}, [
|
|
345
|
-
createElementVNode("div",
|
|
346
|
-
createElementVNode("div",
|
|
327
|
+
createElementVNode("div", _hoisted_3, [
|
|
328
|
+
createElementVNode("div", _hoisted_4, [
|
|
347
329
|
renderSlot(_ctx.$slots, "header-left-section", {}, () => [
|
|
348
330
|
__props.titleText ? (openBlock(), createBlock(unref(Text), {
|
|
349
331
|
key: 0,
|
|
@@ -358,7 +340,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
358
340
|
})) : createCommentVNode("", true)
|
|
359
341
|
], true)
|
|
360
342
|
]),
|
|
361
|
-
createElementVNode("div",
|
|
343
|
+
createElementVNode("div", _hoisted_5, [
|
|
362
344
|
renderSlot(_ctx.$slots, "header-right-section", {}, () => [
|
|
363
345
|
createVNode(unref(Search), {
|
|
364
346
|
ref_key: "searchRef",
|
|
@@ -368,18 +350,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
368
350
|
class: "include-exclude-header-right-section-search-input",
|
|
369
351
|
variant: "transparent",
|
|
370
352
|
placeholder: __props.searchPlaceholder,
|
|
371
|
-
disabled: __props.loading
|
|
372
|
-
|
|
353
|
+
disabled: __props.loading,
|
|
354
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).SEARCH}`
|
|
355
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "data-testid"])
|
|
373
356
|
], true)
|
|
374
357
|
])
|
|
375
358
|
]),
|
|
376
|
-
createElementVNode("div",
|
|
359
|
+
createElementVNode("div", _hoisted_6, [
|
|
377
360
|
createVNode(Transition, {
|
|
378
361
|
name: "switch",
|
|
379
362
|
mode: "out-in"
|
|
380
363
|
}, {
|
|
381
364
|
default: withCtx(() => [
|
|
382
|
-
!unref(filteredOptions)?.length && !__props.loading ? (openBlock(), createElementBlock("div",
|
|
365
|
+
!unref(filteredOptions)?.length && !__props.loading ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
383
366
|
renderSlot(_ctx.$slots, "no-result", {}, () => [
|
|
384
367
|
createVNode(unref(EmptyState), {
|
|
385
368
|
size: "lg",
|
|
@@ -389,8 +372,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
389
372
|
"icon-height": 72
|
|
390
373
|
})
|
|
391
374
|
], true)
|
|
392
|
-
])) : (openBlock(), createElementBlock("div",
|
|
393
|
-
createElementVNode("div",
|
|
375
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
376
|
+
createElementVNode("div", {
|
|
377
|
+
class: "include-exclude-list-wrapper",
|
|
378
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).LIST}`
|
|
379
|
+
}, [
|
|
394
380
|
createElementVNode("div", {
|
|
395
381
|
class: normalizeClass(["include-exclude-list-header", {
|
|
396
382
|
"include-exclude-list-header-loading": __props.loading,
|
|
@@ -404,9 +390,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
404
390
|
"is-indeterminate": unref(selectedOption)?.length > 0 && !unref(isAllFilteredSelected),
|
|
405
391
|
disabled: !unref(filteredOptions)?.length,
|
|
406
392
|
label: "Select all",
|
|
393
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).SELECT_ALL}`,
|
|
407
394
|
onClick: toggleSelectAll
|
|
408
|
-
}, null, 8, ["is-checked", "is-indeterminate", "disabled"])) : createCommentVNode("", true),
|
|
409
|
-
__props.loading ? (openBlock(), createElementBlock("div",
|
|
395
|
+
}, null, 8, ["is-checked", "is-indeterminate", "disabled", "data-testid"])) : createCommentVNode("", true),
|
|
396
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
410
397
|
createVNode(unref(Skeleton), {
|
|
411
398
|
class: "dot-skeleton",
|
|
412
399
|
round: ""
|
|
@@ -414,11 +401,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
414
401
|
createVNode(unref(Skeleton), { round: "" })
|
|
415
402
|
])) : createCommentVNode("", true)
|
|
416
403
|
], 2),
|
|
417
|
-
createElementVNode("div", mergeProps({ class: "include-exclude-list" }, unref(containerProps),
|
|
418
|
-
class: {
|
|
419
|
-
"include-exclude-list-draggable": __props.isDraggable
|
|
420
|
-
}
|
|
421
|
-
}), [
|
|
404
|
+
createElementVNode("div", mergeProps({ class: "include-exclude-list" }, unref(containerProps)), [
|
|
422
405
|
!__props.loading ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperProps), {
|
|
423
406
|
ref_key: "listRef",
|
|
424
407
|
ref: listRef,
|
|
@@ -431,30 +414,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
431
414
|
"aria-disabled": !!__props.disabled,
|
|
432
415
|
onClick: () => onSelect(data)
|
|
433
416
|
}, [
|
|
434
|
-
|
|
435
|
-
key: 0,
|
|
436
|
-
class: "option-collapse",
|
|
437
|
-
onClick: ($event) => toggleCollapse(data)
|
|
438
|
-
}, [
|
|
439
|
-
renderSlot(_ctx.$slots, "option-group", { option: data }, void 0, true)
|
|
440
|
-
], 8, _hoisted_10)) : createCommentVNode("", true),
|
|
441
|
-
!data.groupOption && !isCollapsed(data) ? renderSlot(_ctx.$slots, "option", {
|
|
442
|
-
key: 1,
|
|
417
|
+
renderSlot(_ctx.$slots, "option", {
|
|
443
418
|
showCheckbox: true,
|
|
444
419
|
option: data,
|
|
445
420
|
selected: toRaw(unref(selectedOption)) === data,
|
|
446
421
|
active: toRaw(unref(activeIndex)) === index
|
|
447
|
-
}, void 0, true)
|
|
448
|
-
], 8,
|
|
422
|
+
}, void 0, true)
|
|
423
|
+
], 8, _hoisted_11);
|
|
449
424
|
}), 128))
|
|
450
425
|
], 16)) : createCommentVNode("", true),
|
|
451
|
-
__props.loading ? (openBlock(), createElementBlock("ul",
|
|
426
|
+
__props.loading ? (openBlock(), createElementBlock("ul", _hoisted_12, [
|
|
452
427
|
(openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (n) => {
|
|
453
428
|
return createElementVNode("li", {
|
|
454
429
|
key: n,
|
|
455
430
|
class: "include-exclude-list-item-skeleton"
|
|
456
431
|
}, [
|
|
457
|
-
createElementVNode("div",
|
|
432
|
+
createElementVNode("div", _hoisted_13, [
|
|
458
433
|
createVNode(unref(Skeleton), {
|
|
459
434
|
class: "dot-skeleton",
|
|
460
435
|
round: ""
|
|
@@ -465,18 +440,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
465
440
|
}), 64))
|
|
466
441
|
])) : createCommentVNode("", true)
|
|
467
442
|
], 16)
|
|
468
|
-
]),
|
|
469
|
-
createElementVNode("div",
|
|
443
|
+
], 8, _hoisted_9),
|
|
444
|
+
createElementVNode("div", {
|
|
445
|
+
class: "include-exclude-selected-wrapper",
|
|
446
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).LIST_SELECTED}`
|
|
447
|
+
}, [
|
|
470
448
|
createElementVNode("div", {
|
|
471
449
|
class: normalizeClass(["include-exclude-selected-header", {
|
|
472
450
|
"include-exclude-list-selected-header-loading": __props.loading,
|
|
473
451
|
"include-exclude-list-header-loaded": !__props.loading
|
|
474
452
|
}])
|
|
475
453
|
}, [
|
|
476
|
-
__props.loading ? (openBlock(), createElementBlock("div",
|
|
454
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
477
455
|
createVNode(unref(Skeleton), { round: "" })
|
|
478
456
|
])) : createCommentVNode("", true),
|
|
479
|
-
createElementVNode("div",
|
|
457
|
+
createElementVNode("div", _hoisted_16, [
|
|
480
458
|
!__props.loading ? (openBlock(), createBlock(unref(Text), {
|
|
481
459
|
key: 0,
|
|
482
460
|
class: "include-exclude-selected-header-left-selected",
|
|
@@ -488,30 +466,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
488
466
|
_: 1
|
|
489
467
|
})) : createCommentVNode("", true)
|
|
490
468
|
]),
|
|
491
|
-
createElementVNode("div",
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
], true)
|
|
469
|
+
createElementVNode("div", _hoisted_17, [
|
|
470
|
+
unref(selectedOption)?.length && !__props.loading && __props.showClearAll ? (openBlock(), createBlock(unref(Button), {
|
|
471
|
+
key: 0,
|
|
472
|
+
variant: "link",
|
|
473
|
+
theme: "third",
|
|
474
|
+
size: "md",
|
|
475
|
+
strong: false,
|
|
476
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).CLEAR_ALL}`,
|
|
477
|
+
onClick: clearSelections
|
|
478
|
+
}, {
|
|
479
|
+
default: withCtx(() => [
|
|
480
|
+
createTextVNode("Clear all")
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true)
|
|
507
484
|
])
|
|
508
485
|
], 2),
|
|
509
|
-
createElementVNode("div", mergeProps({
|
|
510
|
-
|
|
511
|
-
"include-exclude-list-draggable": __props.isDraggable
|
|
512
|
-
}]
|
|
513
|
-
}, unref(containerPropsSelected)), [
|
|
514
|
-
unref(selectedOption)?.length && !__props.loading && !__props.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperPropsSelected), {
|
|
486
|
+
createElementVNode("div", mergeProps({ class: "include-exclude-selected-list" }, unref(containerPropsSelected)), [
|
|
487
|
+
unref(selectedOption)?.length && !__props.loading ? (openBlock(), createElementBlock("ul", mergeProps({ key: 0 }, unref(wrapperPropsSelected), {
|
|
515
488
|
ref: "SelectedlistRef",
|
|
516
489
|
tabindex: "2"
|
|
517
490
|
}), [
|
|
@@ -525,26 +498,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
525
498
|
]);
|
|
526
499
|
}), 128))
|
|
527
500
|
], 16)) : createCommentVNode("", true),
|
|
528
|
-
unref(selectedOption)?.length && !__props.loading && __props.isDraggable ? (openBlock(), createElementBlock("ul", mergeProps({ key: 1 }, unref(wrapperPropsSelected), {
|
|
529
|
-
ref: "SelectedlistRef",
|
|
530
|
-
tabindex: "2"
|
|
531
|
-
}), [
|
|
532
|
-
createVNode(unref(draggable), mergeProps({
|
|
533
|
-
modelValue: unref(virtualOptionsSelected),
|
|
534
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(virtualOptionsSelected) ? virtualOptionsSelected.value = $event : null)
|
|
535
|
-
}, __props.draggableArgs, { onEnd: onChangeDragDrop }), {
|
|
536
|
-
item: withCtx(({ element }) => [
|
|
537
|
-
createElementVNode("div", _hoisted_17, [
|
|
538
|
-
renderSlot(_ctx.$slots, "selected_option_draggable", {
|
|
539
|
-
option: element.data,
|
|
540
|
-
selected: toRaw(unref(selectedOption)) === element.data,
|
|
541
|
-
active: toRaw(unref(activeIndex)) === element.data.draggableItemKey
|
|
542
|
-
}, void 0, true)
|
|
543
|
-
])
|
|
544
|
-
]),
|
|
545
|
-
_: 3
|
|
546
|
-
}, 16, ["modelValue"])
|
|
547
|
-
], 16)) : createCommentVNode("", true),
|
|
548
501
|
__props.loading ? (openBlock(), createElementBlock("ul", _hoisted_18, [
|
|
549
502
|
(openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (n) => {
|
|
550
503
|
return createElementVNode("li", {
|
|
@@ -558,16 +511,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
558
511
|
}), 64))
|
|
559
512
|
])) : createCommentVNode("", true)
|
|
560
513
|
], 16)
|
|
561
|
-
])
|
|
514
|
+
], 8, _hoisted_14)
|
|
562
515
|
]))
|
|
563
516
|
]),
|
|
564
517
|
_: 3
|
|
565
518
|
})
|
|
566
519
|
]),
|
|
567
|
-
renderSlot(_ctx.$slots, "footer", {
|
|
568
|
-
handleApply: onApply,
|
|
569
|
-
handleCancel: onCancel
|
|
570
|
-
}, () => [
|
|
520
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
571
521
|
createElementVNode("div", _hoisted_20, [
|
|
572
522
|
createElementVNode("div", _hoisted_21, [
|
|
573
523
|
createVNode(unref(Button), {
|
|
@@ -577,36 +527,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
577
527
|
variant: "border",
|
|
578
528
|
theme: "third",
|
|
579
529
|
text: "Cancel",
|
|
530
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).ACTION_CANCEL}`,
|
|
580
531
|
onClick: onCancel
|
|
581
532
|
}, {
|
|
582
533
|
default: withCtx(() => [
|
|
583
534
|
createTextVNode("Cancel")
|
|
584
535
|
]),
|
|
585
536
|
_: 1
|
|
586
|
-
},
|
|
537
|
+
}, 8, ["data-testid"]),
|
|
587
538
|
createVNode(unref(Button), {
|
|
588
539
|
ref_key: "apply",
|
|
589
540
|
ref: apply,
|
|
590
541
|
size: "sm",
|
|
591
542
|
theme: "primary",
|
|
592
543
|
text: "Apply",
|
|
544
|
+
"data-testid": `${__props.testId}-${unref(IncludeExcludeTestIdModifiers).ACTION_APPLY}`,
|
|
593
545
|
onClick: onApply
|
|
594
546
|
}, {
|
|
595
547
|
default: withCtx(() => [
|
|
596
548
|
createTextVNode("Apply")
|
|
597
549
|
]),
|
|
598
550
|
_: 1
|
|
599
|
-
},
|
|
551
|
+
}, 8, ["data-testid"])
|
|
600
552
|
])
|
|
601
553
|
])
|
|
602
554
|
], true)
|
|
603
|
-
],
|
|
555
|
+
], 8, _hoisted_2)
|
|
604
556
|
]),
|
|
605
557
|
_: 3
|
|
606
558
|
}, 8, ["distance", "skidding", "open", "placement"]);
|
|
607
559
|
};
|
|
608
560
|
}
|
|
609
561
|
});
|
|
610
|
-
var IncludeExclude = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
562
|
+
var IncludeExclude = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-791585e5"]]);
|
|
611
563
|
|
|
612
564
|
export { IncludeExclude as default };
|
|
@@ -4,10 +4,9 @@ import AppIcon from '../appIcon/AppIcon.vue.js';
|
|
|
4
4
|
import { useSearch } from '../../composables/useSearch.vue.js';
|
|
5
5
|
import IncludeExclude from './IncludeExclude.vue.js';
|
|
6
6
|
import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
|
|
7
|
-
|
|
8
|
-
/* empty css
|
|
9
|
-
/* empty css
|
|
10
|
-
/* empty css *//* empty css *//* empty css */
|
|
7
|
+
import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue.js';
|
|
8
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
9
|
+
/* empty css *//* empty css */
|
|
11
10
|
import "../../IncludeExcludeAppHeader.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
12
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
12
|
__name: "IncludeExcludeAppHeader",
|
|
@@ -5,8 +5,8 @@ import { useSearch } from '../../composables/useSearch.vue.js';
|
|
|
5
5
|
import IncludeExclude from './IncludeExclude.vue.js';
|
|
6
6
|
import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
|
|
7
7
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
8
|
-
/* empty css *//* empty css */import 'floating-vue';
|
|
9
|
-
/* empty css *//* empty css
|
|
8
|
+
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import 'floating-vue';
|
|
9
|
+
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */
|
|
10
10
|
import "../../IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
11
11
|
const _hoisted_1 = ["src"];
|
|
12
12
|
const _hoisted_2 = ["src"];
|
|
@@ -18,20 +18,8 @@ export type Platform = {
|
|
|
18
18
|
name: string;
|
|
19
19
|
icon: string;
|
|
20
20
|
};
|
|
21
|
-
export type groupOption = {
|
|
22
|
-
childOptionsIds: string[];
|
|
23
|
-
isCollapse: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type EditColumns = {
|
|
26
|
-
name: string;
|
|
27
|
-
titleText: string;
|
|
28
|
-
icon: string;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
groupOption: groupOption;
|
|
31
|
-
};
|
|
32
21
|
export declare const apps: readonly Application[];
|
|
33
22
|
/** used to test performance (756 apps) */
|
|
34
23
|
export declare const applications: readonly Application[];
|
|
35
24
|
export declare const countries: readonly Country[];
|
|
36
25
|
export declare const platform: readonly Platform[];
|
|
37
|
-
export declare const editColumns: readonly EditColumns[];
|