@ironsource/shared-ui 2.1.11-test.46 → 2.1.11-test.49
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/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/components/alert/Alert.stories.d.ts +8 -0
- package/components/appHeader/AppHeader.stories.d.ts +98 -0
- package/components/appIcon/AppIcon.spec.d.ts +1 -0
- package/components/appIcon/AppIcon.stories.d.ts +32 -0
- package/components/appTrigger/AppTrigger.spec.d.ts +1 -0
- package/components/appTrigger/AppTrigger.stories.d.ts +163 -0
- package/components/autocomplete/Autocomplete.stories.d.ts +9 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.spec.d.ts +1 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.stories.d.ts +232 -0
- package/components/banner/Banner.spec.d.ts +1 -0
- package/components/banner/Banner.stories.d.ts +122 -0
- package/components/button/v3/Button.spec.d.ts +1 -0
- package/components/button/v3/Button.stories.d.ts +155 -0
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.spec.d.ts +1 -0
- package/components/button/v3/IconButton.stories.d.ts +150 -0
- package/components/button/v3/ScrollButton.stories.d.ts +55 -0
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/Button.stories.d.ts +275 -0
- package/components/button/v4/ButtonGroup.stories.d.ts +120 -0
- package/components/button/v4/IconButton.stories.d.ts +206 -0
- package/components/button/v4/ToggleButtonGroupAB.stories.d.ts +182 -0
- package/components/chart/Chart.stories.d.ts +17 -0
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +69 -66
- package/components/chart/index.d.ts +39 -20
- package/components/checkbox/v3/Checkbox.spec.d.ts +1 -0
- package/components/checkbox/v3/Checkbox.stories.d.ts +187 -0
- package/components/checkbox/v4/CheckboxV4.stories.d.ts +7 -0
- package/components/chip/v3/Chip.spec.d.ts +1 -0
- package/components/chip/v3/Chip.stories.d.ts +170 -0
- package/components/chip/v4/ChipV4.stories.d.ts +7 -0
- package/components/datePicker/v3/DatePicker.stories.d.ts +189 -0
- package/components/datePicker/v4/DatePicker.stories.d.ts +261 -0
- package/components/dateRange/v3/DateRange.stories.d.ts +415 -0
- package/components/dateRange/v4/DateRange.stories.d.ts +412 -0
- package/components/dialog/v3/Dialog.spec.d.ts +1 -0
- package/components/dialog/v3/Dialog.stories.d.ts +374 -0
- package/components/dialog/v4/DialogV4.stories.d.ts +9 -0
- package/components/dropdown/v3/Dropdown.spec.d.ts +1 -0
- package/components/dropdown/v3/Dropdown.stories.d.ts +1161 -0
- package/components/dropdown/v4/AppDropdownTrigger.stories.d.ts +487 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.stories.d.ts +10 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.stories.d.ts +8 -0
- package/components/dropdown/v4/ChipDropdownTrigger.stories.d.ts +135 -0
- package/components/dropdown/v4/Conditional.stories.d.ts +711 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.stories.d.ts +598 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.stories.d.ts +20 -0
- package/components/dropdown/v4/MultiSelection.stories.d.ts +3769 -0
- package/components/dropdown/v4/SingleSelection.stories.d.ts +5688 -0
- package/components/dropdown/v4/TreeDropdown.stories.d.ts +9 -0
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +0 -5
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +186 -193
- package/components/dropdown/v4/index.d.ts +1 -24
- package/components/emptyState/v3/EmptyState.spec.d.ts +1 -0
- package/components/emptyState/v3/EmptyState.stories.d.ts +295 -0
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/emptyState/v4/EmptyStateV4.stories.d.ts +6 -0
- package/components/filterDropdown/AddFilterButton.spec.d.ts +1 -0
- package/components/filterDropdown/AddFilterButton.stories.d.ts +108 -0
- package/components/filterDropdown/FilterDropdown.spec.d.ts +1 -0
- package/components/filterDropdown/FilterDropdown.stories.d.ts +70 -0
- package/components/filtersPanel/v3/FiltersPanel.spec.d.ts +1 -0
- package/components/filtersPanel/v3/FiltersPanel.stories.d.ts +8 -0
- package/components/filtersPanel/v4/FiltersPanelV4.stories.d.ts +4 -0
- package/components/floatingToolbar/FloatingToolbar.spec.d.ts +1 -0
- package/components/floatingToolbar/FloatingToolbar.stories.d.ts +127 -0
- package/components/forms/CardPanel.stories.d.ts +6 -0
- package/components/forms/FormCard.stories.d.ts +9 -0
- package/components/forms/FormRow.stories.d.ts +4 -0
- package/components/forms/validation/Validation.stories.d.ts +4 -0
- package/components/forms/validation/examples/dynamicForm/DynamicForm.stories.d.ts +7 -0
- package/components/forms/validation/examples/simpleForm/SimpleForm.stories.d.ts +7 -0
- package/components/icon/v3/Icon.spec.d.ts +1 -0
- package/components/icon/v3/Icon.stories.d.ts +112 -0
- package/components/icon/v4/IconFlag.stories.d.ts +5 -0
- package/components/icon/v4/IconV4.spec.d.ts +1 -0
- package/components/icon/v4/IconV4.stories.d.ts +195 -0
- package/components/includeExclude/EditColumns.stories.d.ts +490 -0
- package/components/includeExclude/IncludeExclude.spec.d.ts +1 -0
- package/components/includeExclude/IncludeExclude.stories.d.ts +456 -0
- package/components/inlineCopy/InlineCopy.stories.d.ts +112 -0
- package/components/input/v3/DollarInput.spec.d.ts +1 -0
- package/components/input/v3/DollarInput.stories.d.ts +275 -0
- package/components/input/v3/Input.spec.d.ts +1 -0
- package/components/input/v3/Input.stories.d.ts +1182 -0
- package/components/input/v3/PasswordInput.stories.d.ts +272 -0
- package/components/input/v3/PercentageInput.stories.d.ts +281 -0
- package/components/input/v4/TextField.stories.d.ts +14 -0
- package/components/layout/FoldableSection.stories.d.ts +4 -0
- package/components/loader/v4/Loader.stories.d.ts +136 -0
- package/components/menu/Menu.stories.d.ts +175 -0
- package/components/menuItem/MenuItem.spec.d.ts +1 -0
- package/components/menuItem/MenuItem.stories.d.ts +55 -0
- package/components/multibar/MultiBar.stories.d.ts +7 -0
- package/components/popover/v3/Popover.spec.d.ts +1 -0
- package/components/popover/v3/Popover.stories.d.ts +214 -0
- package/components/popover/v4/Popover.stories.d.ts +271 -0
- package/components/radioButton/v3/RadioButton.spec.d.ts +1 -0
- package/components/radioButton/v3/RadioButton.stories.d.ts +368 -0
- package/components/radioButton/v4/RadioButtonV4.stories.d.ts +7 -0
- package/components/search/v3/Search.spec.d.ts +1 -0
- package/components/search/v3/Search.stories.d.ts +75 -0
- package/components/search/v4/Search.stories.d.ts +63 -0
- package/components/skeleton/v3/Skeleton.spec.d.ts +1 -0
- package/components/skeleton/v3/Skeleton.stories.d.ts +83 -0
- package/components/skeleton/v4/SkeletonV4.stories.d.ts +5 -0
- package/components/snackbar/v3/Snackbar.spec.d.ts +1 -0
- package/components/snackbar/v3/Snackbar.stories.d.ts +22 -0
- package/components/snackbar/v4/Snackbar.stories.d.ts +24 -0
- package/components/sortableList/SortableList.stories.d.ts +5 -0
- package/components/statusDot/StatusDot.stories.d.ts +21 -0
- package/components/switch/v3/Switch.spec.d.ts +1 -0
- package/components/switch/v3/Switch.stories.d.ts +147 -0
- package/components/switch/v4/Switch.spec.d.ts +1 -0
- package/components/switch/v4/Switch.stories.d.ts +48 -0
- package/components/table/v3/Table.spec.d.ts +1 -0
- package/components/table/v3/Table.stories.d.ts +1227 -0
- package/components/table/v3/TableCheckbox.stories.d.ts +814 -0
- package/components/table/v4/DataGrid.stories.d.ts +24 -0
- package/components/table/v4/DataGrid.vue.d.ts +1 -1
- package/components/table/v4/MultipleDataGrid.stories.d.ts +4 -0
- package/components/table/v4/index.d.ts +20 -20
- package/components/tabs/v3/Tabs.spec.d.ts +1 -0
- package/components/tabs/v3/Tabs.stories.d.ts +172 -0
- package/components/tabs/v4/TabsV4.stories.d.ts +8 -0
- package/components/textArea/v3/TextArea.spec.d.ts +1 -0
- package/components/textArea/v3/TextArea.stories.d.ts +89 -0
- package/components/textArea/v4/TextAreaV4.stories.d.ts +9 -0
- package/components/toggle/v3/Toggle.spec.d.ts +1 -0
- package/components/toggle/v3/Toggle.stories.d.ts +107 -0
- package/components/toggle/v4/ToggleV4.stories.d.ts +9 -0
- package/components/tooltip/v3/TextWithTitleContent.spec.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.spec.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.stories.d.ts +253 -0
- package/components/tooltip/v4/Tooltip.stories.d.ts +336 -0
- package/components/typography/Heading.spec.d.ts +1 -0
- package/components/typography/Heading.stories.d.ts +119 -0
- package/components/typography/Text.stories.d.ts +131 -0
- package/components/typography/v4/Typography.spec.d.ts +1 -0
- package/components/typography/v4/Typography.stories.d.ts +179 -0
- package/composables/useFormValidation.d.ts +1 -1
- package/design-foundation.stories/border-radius/BorderRadius.stories.d.ts +4 -0
- package/design-foundation.stories/breakpoints/Breakpoints.stories.d.ts +4 -0
- package/design-foundation.stories/colors/Colors.stories.d.ts +4 -0
- package/design-foundation.stories/elevations/Elevations.stories.d.ts +4 -0
- package/design-foundation.stories/grid-layout/GridLayout.stories.d.ts +13 -0
- package/design-foundation.stories/spacing/Spacing.stories.d.ts +4 -0
- package/design-foundation.stories/typography/Typography.stories.d.ts +4 -0
- package/index.d.ts +42 -88
- package/index.js +1 -1
- package/package.json +2 -239
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_876db07f_lang.css +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Basic: any;
|
|
5
|
+
export declare const SelectProgrammatically: any;
|
|
6
|
+
export declare const WithEndIcon: any;
|
|
7
|
+
export declare const WithLongTexts: any;
|
|
8
|
+
export declare const WithEndTextIcon: any;
|
|
9
|
+
export declare const PreExpandedOptions: any;
|
|
@@ -20,7 +20,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
optionChildrenKey: string;
|
|
21
21
|
optionUniqueIdKey: string | number;
|
|
22
22
|
preExpandedOptions: string[] | number[];
|
|
23
|
-
debug: boolean;
|
|
24
23
|
}>, {
|
|
25
24
|
selected: any;
|
|
26
25
|
placeholder: string;
|
|
@@ -37,7 +36,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
36
|
optionEndTextIconKey: any;
|
|
38
37
|
valueToCopy: any;
|
|
39
38
|
disabledOptionKey: string;
|
|
40
|
-
debug: boolean;
|
|
41
39
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
40
|
"update:selected": (value: unknown) => void;
|
|
43
41
|
"update:isOpen": (value: unknown) => void;
|
|
@@ -63,7 +61,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
61
|
optionChildrenKey: string;
|
|
64
62
|
optionUniqueIdKey: string | number;
|
|
65
63
|
preExpandedOptions: string[] | number[];
|
|
66
|
-
debug: boolean;
|
|
67
64
|
}>, {
|
|
68
65
|
selected: any;
|
|
69
66
|
placeholder: string;
|
|
@@ -80,7 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
80
77
|
optionEndTextIconKey: any;
|
|
81
78
|
valueToCopy: any;
|
|
82
79
|
disabledOptionKey: string;
|
|
83
|
-
debug: boolean;
|
|
84
80
|
}>>> & {
|
|
85
81
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
86
82
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -100,7 +96,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
96
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
101
97
|
disabledOptionKey: string;
|
|
102
98
|
optionEndTextIconKey: string;
|
|
103
|
-
debug: boolean;
|
|
104
99
|
}>, {
|
|
105
100
|
"trigger-end-icon"?(_: {}): any;
|
|
106
101
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TreeDropdown.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TreeDropdown.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b883d1fa"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import "../../../TreeDropdown.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; import { defineComponent as ee, provide as ne, ref as c, computed as K, onMounted as le, watch as g, openBlock as C, createBlock as D, unref as d, withCtx as f, createVNode as I, mergeProps as z, createSlots as te, renderSlot as oe, createElementVNode as M, withModifiers as S, createTextVNode as ie, createElementBlock as B, withDirectives as de, Fragment as ae, renderList as re, vShow as se, createCommentVNode as ce } from "vue";
|
|
2
|
+
import ue from "./DropdownV4.vue.js";
|
|
3
|
+
import pe from "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
7
|
import "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
|
-
import
|
|
10
|
+
import w from "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import { useChildOptions as
|
|
12
|
+
import { useChildOptions as ye } from "../composables/useChildOptions.js";
|
|
13
13
|
import fe from "../../search/v4/SearchV4.vue.js";
|
|
14
|
-
import { useTestIdAttrs as
|
|
15
|
-
import { DropdownTestIdModifiers as
|
|
16
|
-
const
|
|
14
|
+
import { useTestIdAttrs as he } from "../../../utils/testIds.js";
|
|
15
|
+
import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
|
|
16
|
+
const ve = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "child-options"
|
|
19
|
-
},
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { position: "fixed", right: "0", top: "0" }
|
|
22
|
-
}, De = /* @__PURE__ */ le({
|
|
19
|
+
}, qe = /* @__PURE__ */ ee({
|
|
23
20
|
__name: "TreeDropdown",
|
|
24
21
|
props: {
|
|
25
22
|
options: null,
|
|
@@ -42,24 +39,23 @@ const me = {
|
|
|
42
39
|
disabledOptionKey: { default: "disabled" },
|
|
43
40
|
optionChildrenKey: null,
|
|
44
41
|
optionUniqueIdKey: null,
|
|
45
|
-
preExpandedOptions: null
|
|
46
|
-
debug: { type: Boolean, default: !1 }
|
|
42
|
+
preExpandedOptions: null
|
|
47
43
|
},
|
|
48
44
|
emits: ["update:selected", "update:isOpen"],
|
|
49
|
-
setup(t, { emit:
|
|
50
|
-
const
|
|
45
|
+
setup(t, { emit: b }) {
|
|
46
|
+
const n = t;
|
|
51
47
|
ne("isTreeDropdown", !0);
|
|
52
|
-
const
|
|
48
|
+
const m = c([]), u = c([]), T = c({}), O = c(!1), i = c([...n.selected]), p = c(""), x = c(!0), N = K(() => u.value.reduce((e, o) => (o[n.optionChildrenKey] && o[n.optionChildrenKey].length && o[n.optionChildrenKey].forEach(() => {
|
|
53
49
|
e = e + 1;
|
|
54
|
-
}), o[
|
|
55
|
-
|
|
56
|
-
e[
|
|
57
|
-
...e[
|
|
50
|
+
}), o[n.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
|
|
51
|
+
n.options.forEach((e) => {
|
|
52
|
+
e[n.optionChildrenKey] && e[n.optionChildrenKey].length && (T.value[e[n.optionUniqueIdKey]] = [
|
|
53
|
+
...e[n.optionChildrenKey]
|
|
58
54
|
]);
|
|
59
|
-
}),
|
|
60
|
-
}, { hasChildren:
|
|
61
|
-
if (
|
|
62
|
-
|
|
55
|
+
}), m.value = [...n.options], u.value = [...n.options];
|
|
56
|
+
}, { hasChildren: h, getChildren: v, allChildrenSelected: k, someChildrenSelected: P } = ye(i, n.optionChildrenKey), q = (e) => {
|
|
57
|
+
if (h(e)) {
|
|
58
|
+
k(e) ? i.value = i.value.filter(
|
|
63
59
|
(o) => !v(e).includes(o)
|
|
64
60
|
) : i.value = [
|
|
65
61
|
...i.value.filter((o) => !v(e).includes(o)),
|
|
@@ -70,211 +66,208 @@ const me = {
|
|
|
70
66
|
i.value.includes(e) ? i.value = i.value.filter(
|
|
71
67
|
(o) => o !== e
|
|
72
68
|
) : i.value = [...i.value, e];
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
},
|
|
69
|
+
}, A = (e) => i.value.includes(e), J = (e) => 1 + (h(e) ? v(e).length : 0), j = () => {
|
|
70
|
+
b("update:selected", i.value), L.value = y.value;
|
|
71
|
+
}, F = () => {
|
|
76
72
|
i.value = [];
|
|
77
|
-
},
|
|
73
|
+
}, G = () => {
|
|
78
74
|
const e = /* @__PURE__ */ new Set([]);
|
|
79
|
-
u.value.forEach((
|
|
80
|
-
if (
|
|
81
|
-
e.add(
|
|
82
|
-
else if (n
|
|
83
|
-
for (const
|
|
84
|
-
if (
|
|
85
|
-
e.add(
|
|
75
|
+
u.value.forEach((l) => {
|
|
76
|
+
if (n.selected?.includes(l))
|
|
77
|
+
e.add(l);
|
|
78
|
+
else if (l[n.optionChildrenKey] && l[n.optionChildrenKey].length) {
|
|
79
|
+
for (const r of l[n.optionChildrenKey])
|
|
80
|
+
if (n.selected?.includes(r)) {
|
|
81
|
+
e.add(l);
|
|
86
82
|
break;
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
});
|
|
90
86
|
const o = Array.from(e);
|
|
91
|
-
return u.value.forEach((
|
|
92
|
-
!
|
|
87
|
+
return u.value.forEach((l) => {
|
|
88
|
+
!n.selected.includes(l) && !e.has(l) && o.push(l);
|
|
93
89
|
}), o;
|
|
94
90
|
};
|
|
95
|
-
|
|
96
|
-
O.value || (
|
|
91
|
+
le(() => {
|
|
92
|
+
O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
|
|
97
93
|
a.value[e] = 1;
|
|
98
94
|
}));
|
|
99
|
-
}),
|
|
100
|
-
() =>
|
|
95
|
+
}), g(
|
|
96
|
+
() => n.options,
|
|
101
97
|
() => {
|
|
102
|
-
|
|
98
|
+
U();
|
|
103
99
|
}
|
|
104
|
-
),
|
|
105
|
-
() =>
|
|
106
|
-
() => {
|
|
107
|
-
|
|
100
|
+
), g(
|
|
101
|
+
() => n.selected,
|
|
102
|
+
(e, o) => {
|
|
103
|
+
JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...n.selected]);
|
|
108
104
|
}
|
|
109
105
|
);
|
|
110
|
-
const y =
|
|
111
|
-
|
|
112
|
-
() =>
|
|
106
|
+
const y = K(() => i.value.length < N.value ? !1 : i.value.length === N.value), H = K(() => !y.value && i.value.length > 0), L = c(y.value);
|
|
107
|
+
g(
|
|
108
|
+
() => n.isOpen,
|
|
113
109
|
() => {
|
|
114
|
-
|
|
110
|
+
n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
|
|
115
111
|
}
|
|
116
112
|
);
|
|
117
|
-
const a = c({}),
|
|
118
|
-
a.value[e[
|
|
113
|
+
const a = c({}), Q = (e) => {
|
|
114
|
+
a.value[e[n.optionUniqueIdKey]] ? delete a.value[e[n.optionUniqueIdKey]] : a.value[e[n.optionUniqueIdKey]] = 1;
|
|
119
115
|
};
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
return o.value.forEach((
|
|
123
|
-
const
|
|
124
|
-
(
|
|
116
|
+
function R(e, o) {
|
|
117
|
+
const l = e.toLowerCase(), r = [];
|
|
118
|
+
return o.value.forEach((s) => {
|
|
119
|
+
const E = s[n.optionNameKey].toLowerCase().includes(l), V = T.value[s[n.optionUniqueIdKey]]?.filter(
|
|
120
|
+
(_) => _[n.optionNameKey].toLowerCase().includes(l)
|
|
125
121
|
) || [];
|
|
126
|
-
(
|
|
127
|
-
}),
|
|
122
|
+
(E || V.length > 0) && (s[n.optionChildrenKey] = V, r.push(s));
|
|
123
|
+
}), r;
|
|
128
124
|
}
|
|
129
|
-
const
|
|
130
|
-
const o =
|
|
131
|
-
e && (Object.keys(a.value).forEach((
|
|
132
|
-
delete a.value[
|
|
133
|
-
}), o.forEach((
|
|
134
|
-
Array.isArray(n
|
|
135
|
-
})),
|
|
136
|
-
},
|
|
137
|
-
const e =
|
|
138
|
-
(
|
|
125
|
+
const W = (e) => {
|
|
126
|
+
const o = R(e, u);
|
|
127
|
+
e && (Object.keys(a.value).forEach((l) => {
|
|
128
|
+
delete a.value[l];
|
|
129
|
+
}), o.forEach((l) => {
|
|
130
|
+
Array.isArray(l[n.optionChildrenKey]) && l[n.optionChildrenKey].length && (a.value[l[n.optionUniqueIdKey]] = 1);
|
|
131
|
+
})), m.value = o;
|
|
132
|
+
}, X = K(() => {
|
|
133
|
+
const e = n.options.length, o = n.options.reduce(
|
|
134
|
+
(l, r) => (a.value[r[n.optionUniqueIdKey]] && (l = l + r[n.optionChildrenKey].length), l),
|
|
139
135
|
0
|
|
140
136
|
);
|
|
141
137
|
return e + o;
|
|
142
138
|
});
|
|
143
|
-
|
|
139
|
+
g(
|
|
144
140
|
() => p.value,
|
|
145
141
|
() => {
|
|
146
|
-
|
|
142
|
+
W(p.value), x.value = !p.value;
|
|
147
143
|
}
|
|
148
144
|
);
|
|
149
|
-
const
|
|
145
|
+
const Y = () => {
|
|
150
146
|
y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
|
|
151
|
-
if (e[
|
|
152
|
-
for (const o of e[
|
|
147
|
+
if (e[n.optionChildrenKey] && e[n.optionChildrenKey].length)
|
|
148
|
+
for (const o of e[n.optionChildrenKey])
|
|
153
149
|
i.value = [o, ...i.value];
|
|
154
150
|
else
|
|
155
151
|
i.value = [e, ...i.value];
|
|
156
152
|
}));
|
|
157
|
-
},
|
|
158
|
-
return (e, o) => (
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
153
|
+
}, Z = he(n.testId, $);
|
|
154
|
+
return (e, o) => (C(), D(d(ue), {
|
|
155
|
+
multi: "",
|
|
156
|
+
class: "tree-dropdown",
|
|
157
|
+
"show-select-all": x.value,
|
|
158
|
+
"is-open": t.isOpen,
|
|
159
|
+
options: m.value,
|
|
160
|
+
selected: t.selected,
|
|
161
|
+
"display-value": t.displayValue,
|
|
162
|
+
placeholder: t.placeholder,
|
|
163
|
+
"inline-search": "",
|
|
164
|
+
"inline-search-placeholder": t.inlineSearchPlaceholder,
|
|
165
|
+
"option-name-key": t.optionNameKey,
|
|
166
|
+
size: t.size,
|
|
167
|
+
"test-id": t.testId,
|
|
168
|
+
disabled: t.disabled,
|
|
169
|
+
"disable-virtual-scroll": "",
|
|
170
|
+
"override-option-count-calculation": J,
|
|
171
|
+
"trigger-show-all-selected-text": !1,
|
|
172
|
+
"predefined-trigger": "default",
|
|
173
|
+
"custom-number-of-displayed-options": d(X),
|
|
174
|
+
"onUpdate:isOpen": o[2] || (o[2] = (l) => b("update:isOpen", l)),
|
|
175
|
+
onApply: j,
|
|
176
|
+
onClear: F
|
|
177
|
+
}, {
|
|
178
|
+
"dropdown-trigger": f(({ defaultTriggerProps: l }) => [
|
|
179
|
+
I(d(pe), z(l, {
|
|
180
|
+
"all-selected": L.value,
|
|
181
|
+
"show-all-selected-text": ""
|
|
182
|
+
}), te({ _: 2 }, [
|
|
183
|
+
e.$slots["trigger-end-icon"] ? {
|
|
184
|
+
name: "end-icon",
|
|
185
|
+
fn: f(() => [
|
|
186
|
+
oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
|
|
187
|
+
]),
|
|
188
|
+
key: "0"
|
|
189
|
+
} : void 0
|
|
190
|
+
]), 1040, ["all-selected"])
|
|
191
|
+
]),
|
|
192
|
+
"inline-search": f(() => [
|
|
193
|
+
I(d(fe), {
|
|
194
|
+
modelValue: p.value,
|
|
195
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => p.value = l),
|
|
196
|
+
class: "tree-search",
|
|
197
|
+
placeholder: t.inlineSearchPlaceholder,
|
|
198
|
+
variant: "transparent",
|
|
199
|
+
size: "md",
|
|
200
|
+
"auto-focus": "",
|
|
201
|
+
"test-id": t.testId
|
|
202
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
203
|
+
]),
|
|
204
|
+
"select-all": f(() => [
|
|
205
|
+
M("li", null, [
|
|
206
|
+
I(d(w), z({
|
|
207
|
+
"aria-selected": d(y),
|
|
208
|
+
"aria-disabled": !!t.disabled,
|
|
209
|
+
"selected-prop": d(y),
|
|
210
|
+
"is-indeterminate": d(H),
|
|
211
|
+
"is-multi": "",
|
|
212
|
+
"select-all-option": ""
|
|
213
|
+
}, d(Z)[d($).SELECT_ALL], {
|
|
214
|
+
onClick: o[1] || (o[1] = S((l) => Y(), ["stop"]))
|
|
215
|
+
}), {
|
|
216
|
+
default: f(() => [
|
|
217
|
+
ie(" Select all ")
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
221
|
+
])
|
|
222
|
+
]),
|
|
223
|
+
default: f(({ option: l, index: r }) => [
|
|
224
|
+
I(d(w), {
|
|
225
|
+
option: l,
|
|
226
|
+
"selected-prop": d(h)(l) ? d(k)(l) : A(l),
|
|
227
|
+
"is-indeterminate": !d(k)(l) && d(P)(l),
|
|
228
|
+
disabled: l[t.disabledOptionKey],
|
|
229
|
+
"name-key": t.optionNameKey,
|
|
230
|
+
"image-key": t.optionImageKey,
|
|
231
|
+
"icon-key": t.optionIconKey,
|
|
232
|
+
"icon-type": t.optionIconType,
|
|
233
|
+
"end-icon-key": t.optionEndIconKey,
|
|
234
|
+
"end-icon-type": t.optionEndIconType,
|
|
235
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
236
|
+
"tree-main-option": d(h)(l),
|
|
237
|
+
"tree-main-option-expanded": a.value[l[t.optionUniqueIdKey]],
|
|
238
|
+
"stop-option-click-event-propagation": "",
|
|
239
|
+
"is-multi": "",
|
|
240
|
+
onClick: S(() => q(l), ["stop"]),
|
|
241
|
+
onToggleTreeCollapse: Q
|
|
242
|
+
}, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-main-option", "tree-main-option-expanded", "onClick"]),
|
|
243
|
+
d(h)(l) ? (C(), B("div", ve, [
|
|
244
|
+
de(M("div", null, [
|
|
245
|
+
(C(!0), B(ae, null, re(d(v)(l), (s, E) => (C(), D(d(w), {
|
|
246
|
+
key: `${r}-${E}`,
|
|
247
|
+
option: s,
|
|
248
|
+
"selected-prop": A(s),
|
|
249
|
+
disabled: s[t.disabledOptionKey],
|
|
250
|
+
"name-key": t.optionNameKey,
|
|
251
|
+
"image-key": t.optionImageKey,
|
|
252
|
+
"icon-key": t.optionIconKey,
|
|
253
|
+
"icon-type": t.optionIconType,
|
|
254
|
+
"end-icon-key": t.optionEndIconKey,
|
|
255
|
+
"end-icon-type": t.optionEndIconType,
|
|
256
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
257
|
+
"tree-child-shown": a.value[l[t.optionUniqueIdKey]],
|
|
258
|
+
"stop-option-click-event-propagation": "",
|
|
216
259
|
"is-multi": "",
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
default: h(() => [
|
|
222
|
-
de(" Select all ")
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
260
|
+
onClick: S(() => q(s), ["stop"])
|
|
261
|
+
}, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-child-shown", "onClick"]))), 128))
|
|
262
|
+
], 512), [
|
|
263
|
+
[se, a.value[l[t.optionUniqueIdKey]]]
|
|
226
264
|
])
|
|
227
|
-
]),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
"selected-prop": d(f)(n) ? d(E)(n) : D(n),
|
|
232
|
-
"is-indeterminate": !d(E)(n) && d(j)(n),
|
|
233
|
-
disabled: n[t.disabledOptionKey],
|
|
234
|
-
"name-key": t.optionNameKey,
|
|
235
|
-
"image-key": t.optionImageKey,
|
|
236
|
-
"icon-key": t.optionIconKey,
|
|
237
|
-
"icon-type": t.optionIconType,
|
|
238
|
-
"end-icon-key": t.optionEndIconKey,
|
|
239
|
-
"end-icon-type": t.optionEndIconType,
|
|
240
|
-
"end-text-icon-key": t.optionEndTextIconKey,
|
|
241
|
-
"tree-main-option": d(f)(n),
|
|
242
|
-
"tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
|
|
243
|
-
"stop-option-click-event-propagation": "",
|
|
244
|
-
"is-multi": "",
|
|
245
|
-
onClick: S(() => A(n), ["stop"]),
|
|
246
|
-
onToggleTreeCollapse: R
|
|
247
|
-
}, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-main-option", "tree-main-option-expanded", "onClick"]),
|
|
248
|
-
d(f)(n) ? (m(), I("div", me, [
|
|
249
|
-
ae(M("div", null, [
|
|
250
|
-
(m(!0), I(z, null, se(d(v)(n), (r, w) => (m(), re(d(b), {
|
|
251
|
-
key: `${s}-${w}`,
|
|
252
|
-
option: r,
|
|
253
|
-
"selected-prop": D(r),
|
|
254
|
-
disabled: r[t.disabledOptionKey],
|
|
255
|
-
"name-key": t.optionNameKey,
|
|
256
|
-
"image-key": t.optionImageKey,
|
|
257
|
-
"icon-key": t.optionIconKey,
|
|
258
|
-
"icon-type": t.optionIconType,
|
|
259
|
-
"end-icon-key": t.optionEndIconKey,
|
|
260
|
-
"end-icon-type": t.optionEndIconType,
|
|
261
|
-
"end-text-icon-key": t.optionEndTextIconKey,
|
|
262
|
-
"tree-child-shown": a.value[n[t.optionUniqueIdKey]],
|
|
263
|
-
"stop-option-click-event-propagation": "",
|
|
264
|
-
"is-multi": "",
|
|
265
|
-
onClick: S(() => A(r), ["stop"])
|
|
266
|
-
}, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-child-shown", "onClick"]))), 128))
|
|
267
|
-
], 512), [
|
|
268
|
-
[ce, a.value[n[t.optionUniqueIdKey]]]
|
|
269
|
-
])
|
|
270
|
-
])) : $("", !0)
|
|
271
|
-
]),
|
|
272
|
-
_: 3
|
|
273
|
-
}, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]),
|
|
274
|
-
t.debug ? (m(), I("pre", ge, ue(i.value), 1)) : $("", !0)
|
|
275
|
-
], 64));
|
|
265
|
+
])) : ce("", !0)
|
|
266
|
+
]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]));
|
|
276
269
|
}
|
|
277
270
|
});
|
|
278
271
|
export {
|
|
279
|
-
|
|
272
|
+
qe as default
|
|
280
273
|
};
|
|
@@ -3131,7 +3131,6 @@ declare const DropdownTypes: () => (({
|
|
|
3131
3131
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
3132
3132
|
disabledOptionKey: string;
|
|
3133
3133
|
optionEndTextIconKey: string;
|
|
3134
|
-
debug: boolean;
|
|
3135
3134
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
3136
3135
|
testId: {
|
|
3137
3136
|
type: import("vue").PropType<string>;
|
|
@@ -3216,15 +3215,10 @@ declare const DropdownTypes: () => (({
|
|
|
3216
3215
|
type: import("vue").PropType<string[] | number[]>;
|
|
3217
3216
|
required: true;
|
|
3218
3217
|
};
|
|
3219
|
-
debug: {
|
|
3220
|
-
type: import("vue").PropType<boolean>;
|
|
3221
|
-
required: true;
|
|
3222
|
-
default: boolean;
|
|
3223
|
-
};
|
|
3224
3218
|
}>> & {
|
|
3225
3219
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
3226
3220
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
3227
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "selected" | "valueToCopy" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey"
|
|
3221
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "selected" | "valueToCopy" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
3228
3222
|
$attrs: {
|
|
3229
3223
|
[x: string]: unknown;
|
|
3230
3224
|
};
|
|
@@ -3322,11 +3316,6 @@ declare const DropdownTypes: () => (({
|
|
|
3322
3316
|
type: import("vue").PropType<string[] | number[]>;
|
|
3323
3317
|
required: true;
|
|
3324
3318
|
};
|
|
3325
|
-
debug: {
|
|
3326
|
-
type: import("vue").PropType<boolean>;
|
|
3327
|
-
required: true;
|
|
3328
|
-
default: boolean;
|
|
3329
|
-
};
|
|
3330
3319
|
}>> & {
|
|
3331
3320
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
3332
3321
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -3349,7 +3338,6 @@ declare const DropdownTypes: () => (({
|
|
|
3349
3338
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
3350
3339
|
disabledOptionKey: string;
|
|
3351
3340
|
optionEndTextIconKey: string;
|
|
3352
|
-
debug: boolean;
|
|
3353
3341
|
}, {}, string> & {
|
|
3354
3342
|
beforeCreate?: (() => void) | (() => void)[];
|
|
3355
3343
|
created?: (() => void) | (() => void)[];
|
|
@@ -3454,11 +3442,6 @@ declare const DropdownTypes: () => (({
|
|
|
3454
3442
|
type: import("vue").PropType<string[] | number[]>;
|
|
3455
3443
|
required: true;
|
|
3456
3444
|
};
|
|
3457
|
-
debug: {
|
|
3458
|
-
type: import("vue").PropType<boolean>;
|
|
3459
|
-
required: true;
|
|
3460
|
-
default: boolean;
|
|
3461
|
-
};
|
|
3462
3445
|
}>> & {
|
|
3463
3446
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
3464
3447
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -3550,11 +3533,6 @@ declare const DropdownTypes: () => (({
|
|
|
3550
3533
|
type: import("vue").PropType<string[] | number[]>;
|
|
3551
3534
|
required: true;
|
|
3552
3535
|
};
|
|
3553
|
-
debug: {
|
|
3554
|
-
type: import("vue").PropType<boolean>;
|
|
3555
|
-
required: true;
|
|
3556
|
-
default: boolean;
|
|
3557
|
-
};
|
|
3558
3536
|
}>> & {
|
|
3559
3537
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
3560
3538
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -3577,7 +3555,6 @@ declare const DropdownTypes: () => (({
|
|
|
3577
3555
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
3578
3556
|
disabledOptionKey: string;
|
|
3579
3557
|
optionEndTextIconKey: string;
|
|
3580
|
-
debug: boolean;
|
|
3581
3558
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
3582
3559
|
$slots: {
|
|
3583
3560
|
"trigger-end-icon"?(_: {}): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|