@ironsource/shared-ui 2.1.11-test.47 → 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.
Files changed (159) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  2. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  3. package/components/alert/Alert.stories.d.ts +8 -0
  4. package/components/appHeader/AppHeader.stories.d.ts +98 -0
  5. package/components/appIcon/AppIcon.spec.d.ts +1 -0
  6. package/components/appIcon/AppIcon.stories.d.ts +32 -0
  7. package/components/appTrigger/AppTrigger.spec.d.ts +1 -0
  8. package/components/appTrigger/AppTrigger.stories.d.ts +163 -0
  9. package/components/autocomplete/Autocomplete.stories.d.ts +9 -0
  10. package/components/autocompleteDropdown/AutocompleteDropdown.spec.d.ts +1 -0
  11. package/components/autocompleteDropdown/AutocompleteDropdown.stories.d.ts +232 -0
  12. package/components/banner/Banner.spec.d.ts +1 -0
  13. package/components/banner/Banner.stories.d.ts +122 -0
  14. package/components/button/v3/Button.spec.d.ts +1 -0
  15. package/components/button/v3/Button.stories.d.ts +155 -0
  16. package/components/button/v3/Button.vue.d.ts +6 -6
  17. package/components/button/v3/ButtonBase.spec.d.ts +1 -0
  18. package/components/button/v3/IconButton.stories.d.ts +150 -0
  19. package/components/button/v3/ScrollButton.stories.d.ts +55 -0
  20. package/components/button/v3/index.d.ts +14 -14
  21. package/components/button/v4/Button.stories.d.ts +275 -0
  22. package/components/button/v4/ButtonGroup.stories.d.ts +120 -0
  23. package/components/button/v4/IconButton.stories.d.ts +206 -0
  24. package/components/button/v4/ToggleButtonGroupAB.stories.d.ts +182 -0
  25. package/components/chart/Chart.stories.d.ts +17 -0
  26. package/components/chart/Chart.vue.d.ts +6 -1
  27. package/components/chart/Chart.vue.js +3 -3
  28. package/components/chart/Chart.vue2.js +69 -66
  29. package/components/chart/index.d.ts +39 -20
  30. package/components/checkbox/v3/Checkbox.spec.d.ts +1 -0
  31. package/components/checkbox/v3/Checkbox.stories.d.ts +187 -0
  32. package/components/checkbox/v4/CheckboxV4.stories.d.ts +7 -0
  33. package/components/chip/v3/Chip.spec.d.ts +1 -0
  34. package/components/chip/v3/Chip.stories.d.ts +170 -0
  35. package/components/chip/v4/ChipV4.stories.d.ts +7 -0
  36. package/components/datePicker/v3/DatePicker.stories.d.ts +189 -0
  37. package/components/datePicker/v4/DatePicker.stories.d.ts +261 -0
  38. package/components/dateRange/v3/DateRange.stories.d.ts +415 -0
  39. package/components/dateRange/v4/DateRange.stories.d.ts +412 -0
  40. package/components/dialog/v3/Dialog.spec.d.ts +1 -0
  41. package/components/dialog/v3/Dialog.stories.d.ts +374 -0
  42. package/components/dialog/v4/DialogV4.stories.d.ts +9 -0
  43. package/components/dropdown/v3/Dropdown.spec.d.ts +1 -0
  44. package/components/dropdown/v3/Dropdown.stories.d.ts +1161 -0
  45. package/components/dropdown/v4/AppDropdownTrigger.stories.d.ts +487 -0
  46. package/components/dropdown/v4/ButtonDropdownTrigger.stories.d.ts +10 -0
  47. package/components/dropdown/v4/ButtonFilterDropdownTrigger.stories.d.ts +8 -0
  48. package/components/dropdown/v4/ChipDropdownTrigger.stories.d.ts +135 -0
  49. package/components/dropdown/v4/Conditional.stories.d.ts +711 -0
  50. package/components/dropdown/v4/DefaultDropdownTrigger.stories.d.ts +598 -0
  51. package/components/dropdown/v4/IconButtonDropdownTrigger.stories.d.ts +20 -0
  52. package/components/dropdown/v4/MultiSelection.stories.d.ts +3769 -0
  53. package/components/dropdown/v4/SingleSelection.stories.d.ts +5688 -0
  54. package/components/dropdown/v4/TreeDropdown.stories.d.ts +9 -0
  55. package/components/dropdown/v4/TreeDropdown.vue.d.ts +0 -5
  56. package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
  57. package/components/dropdown/v4/TreeDropdown.vue2.js +186 -193
  58. package/components/dropdown/v4/index.d.ts +1 -24
  59. package/components/emptyState/v3/EmptyState.spec.d.ts +1 -0
  60. package/components/emptyState/v3/EmptyState.stories.d.ts +295 -0
  61. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  62. package/components/emptyState/v3/index.d.ts +7 -7
  63. package/components/emptyState/v4/EmptyStateV4.stories.d.ts +6 -0
  64. package/components/filterDropdown/AddFilterButton.spec.d.ts +1 -0
  65. package/components/filterDropdown/AddFilterButton.stories.d.ts +108 -0
  66. package/components/filterDropdown/FilterDropdown.spec.d.ts +1 -0
  67. package/components/filterDropdown/FilterDropdown.stories.d.ts +70 -0
  68. package/components/filtersPanel/v3/FiltersPanel.spec.d.ts +1 -0
  69. package/components/filtersPanel/v3/FiltersPanel.stories.d.ts +8 -0
  70. package/components/filtersPanel/v4/FiltersPanelV4.stories.d.ts +4 -0
  71. package/components/floatingToolbar/FloatingToolbar.spec.d.ts +1 -0
  72. package/components/floatingToolbar/FloatingToolbar.stories.d.ts +127 -0
  73. package/components/forms/CardPanel.stories.d.ts +6 -0
  74. package/components/forms/FormCard.stories.d.ts +9 -0
  75. package/components/forms/FormRow.stories.d.ts +4 -0
  76. package/components/forms/validation/Validation.stories.d.ts +4 -0
  77. package/components/forms/validation/examples/dynamicForm/DynamicForm.stories.d.ts +7 -0
  78. package/components/forms/validation/examples/simpleForm/SimpleForm.stories.d.ts +7 -0
  79. package/components/icon/v3/Icon.spec.d.ts +1 -0
  80. package/components/icon/v3/Icon.stories.d.ts +112 -0
  81. package/components/icon/v4/IconFlag.stories.d.ts +5 -0
  82. package/components/icon/v4/IconV4.spec.d.ts +1 -0
  83. package/components/icon/v4/IconV4.stories.d.ts +195 -0
  84. package/components/includeExclude/EditColumns.stories.d.ts +490 -0
  85. package/components/includeExclude/IncludeExclude.spec.d.ts +1 -0
  86. package/components/includeExclude/IncludeExclude.stories.d.ts +456 -0
  87. package/components/inlineCopy/InlineCopy.stories.d.ts +112 -0
  88. package/components/input/v3/DollarInput.spec.d.ts +1 -0
  89. package/components/input/v3/DollarInput.stories.d.ts +275 -0
  90. package/components/input/v3/Input.spec.d.ts +1 -0
  91. package/components/input/v3/Input.stories.d.ts +1182 -0
  92. package/components/input/v3/PasswordInput.stories.d.ts +272 -0
  93. package/components/input/v3/PercentageInput.stories.d.ts +281 -0
  94. package/components/input/v4/TextField.stories.d.ts +14 -0
  95. package/components/layout/FoldableSection.stories.d.ts +4 -0
  96. package/components/loader/v4/Loader.stories.d.ts +136 -0
  97. package/components/menu/Menu.stories.d.ts +175 -0
  98. package/components/menuItem/MenuItem.spec.d.ts +1 -0
  99. package/components/menuItem/MenuItem.stories.d.ts +55 -0
  100. package/components/multibar/MultiBar.stories.d.ts +7 -0
  101. package/components/popover/v3/Popover.spec.d.ts +1 -0
  102. package/components/popover/v3/Popover.stories.d.ts +214 -0
  103. package/components/popover/v4/Popover.stories.d.ts +271 -0
  104. package/components/radioButton/v3/RadioButton.spec.d.ts +1 -0
  105. package/components/radioButton/v3/RadioButton.stories.d.ts +368 -0
  106. package/components/radioButton/v4/RadioButtonV4.stories.d.ts +7 -0
  107. package/components/search/v3/Search.spec.d.ts +1 -0
  108. package/components/search/v3/Search.stories.d.ts +75 -0
  109. package/components/search/v4/Search.stories.d.ts +63 -0
  110. package/components/skeleton/v3/Skeleton.spec.d.ts +1 -0
  111. package/components/skeleton/v3/Skeleton.stories.d.ts +83 -0
  112. package/components/skeleton/v4/SkeletonV4.stories.d.ts +5 -0
  113. package/components/snackbar/v3/Snackbar.spec.d.ts +1 -0
  114. package/components/snackbar/v3/Snackbar.stories.d.ts +22 -0
  115. package/components/snackbar/v4/Snackbar.stories.d.ts +24 -0
  116. package/components/sortableList/SortableList.stories.d.ts +5 -0
  117. package/components/statusDot/StatusDot.stories.d.ts +21 -0
  118. package/components/switch/v3/Switch.spec.d.ts +1 -0
  119. package/components/switch/v3/Switch.stories.d.ts +147 -0
  120. package/components/switch/v4/Switch.spec.d.ts +1 -0
  121. package/components/switch/v4/Switch.stories.d.ts +48 -0
  122. package/components/table/v3/Table.spec.d.ts +1 -0
  123. package/components/table/v3/Table.stories.d.ts +1227 -0
  124. package/components/table/v3/TableCheckbox.stories.d.ts +814 -0
  125. package/components/table/v4/DataGrid.stories.d.ts +24 -0
  126. package/components/table/v4/DataGrid.vue.d.ts +1 -1
  127. package/components/table/v4/MultipleDataGrid.stories.d.ts +4 -0
  128. package/components/table/v4/index.d.ts +20 -20
  129. package/components/tabs/v3/Tabs.spec.d.ts +1 -0
  130. package/components/tabs/v3/Tabs.stories.d.ts +172 -0
  131. package/components/tabs/v4/TabsV4.stories.d.ts +8 -0
  132. package/components/textArea/v3/TextArea.spec.d.ts +1 -0
  133. package/components/textArea/v3/TextArea.stories.d.ts +89 -0
  134. package/components/textArea/v4/TextAreaV4.stories.d.ts +9 -0
  135. package/components/toggle/v3/Toggle.spec.d.ts +1 -0
  136. package/components/toggle/v3/Toggle.stories.d.ts +107 -0
  137. package/components/toggle/v4/ToggleV4.stories.d.ts +9 -0
  138. package/components/tooltip/v3/TextWithTitleContent.spec.d.ts +1 -0
  139. package/components/tooltip/v3/Tooltip.spec.d.ts +1 -0
  140. package/components/tooltip/v3/Tooltip.stories.d.ts +253 -0
  141. package/components/tooltip/v4/Tooltip.stories.d.ts +336 -0
  142. package/components/typography/Heading.spec.d.ts +1 -0
  143. package/components/typography/Heading.stories.d.ts +119 -0
  144. package/components/typography/Text.stories.d.ts +131 -0
  145. package/components/typography/v4/Typography.spec.d.ts +1 -0
  146. package/components/typography/v4/Typography.stories.d.ts +179 -0
  147. package/composables/useFormValidation.d.ts +1 -1
  148. package/design-foundation.stories/border-radius/BorderRadius.stories.d.ts +4 -0
  149. package/design-foundation.stories/breakpoints/Breakpoints.stories.d.ts +4 -0
  150. package/design-foundation.stories/colors/Colors.stories.d.ts +4 -0
  151. package/design-foundation.stories/elevations/Elevations.stories.d.ts +4 -0
  152. package/design-foundation.stories/grid-layout/GridLayout.stories.d.ts +13 -0
  153. package/design-foundation.stories/spacing/Spacing.stories.d.ts +4 -0
  154. package/design-foundation.stories/typography/Typography.stories.d.ts +4 -0
  155. package/index.d.ts +42 -88
  156. package/index.js +1 -1
  157. package/package.json +2 -239
  158. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
  159. package/TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_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.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css"; //*');
4
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-46aae9ba"]]);
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
- r as default
6
+ s as default
7
7
  };
@@ -1,25 +1,22 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css"; import { defineComponent as le, provide as ne, ref as c, computed as C, onMounted as te, watch as k, openBlock as m, createElementBlock as I, Fragment as z, createVNode as g, unref as d, withCtx as h, mergeProps as B, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, withDirectives as ae, renderList as se, createBlock as re, vShow as ce, createCommentVNode as $, toDisplayString as ue } from "vue";
2
- import pe from "./DropdownV4.vue.js";
3
- import ye from "./DefaultDropdownTrigger.vue.js";
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 b from "./OptionV4.vue.js";
10
+ import w from "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
- import { useChildOptions as he } from "../composables/useChildOptions.js";
12
+ import { useChildOptions as ye } from "../composables/useChildOptions.js";
13
13
  import fe from "../../search/v4/SearchV4.vue.js";
14
- import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
15
- import { DropdownTestIdModifiers as P } from "../../../testids/index.js";
16
- const me = {
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
- }, ge = {
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: T }) {
50
- const l = t;
45
+ setup(t, { emit: b }) {
46
+ const n = t;
51
47
  ne("isTreeDropdown", !0);
52
- const K = c([]), u = c([]), O = c({}), x = c(!1), i = c([...l.selected]), p = c(""), N = c(!0), U = C(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
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[l.optionChildrenKey] || (e = e + 1), e), 0)), q = () => {
55
- l.options.forEach((e) => {
56
- e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (O.value[e[l.optionUniqueIdKey]] = [
57
- ...e[l.optionChildrenKey]
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
- }), K.value = [...l.options], u.value = [...l.options];
60
- }, { hasChildren: f, getChildren: v, allChildrenSelected: E, someChildrenSelected: j } = he(i, l.optionChildrenKey), A = (e) => {
61
- if (f(e)) {
62
- E(e) ? i.value = i.value.filter(
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
- }, D = (e) => i.value.includes(e), F = (e) => 1 + (f(e) ? v(e).length : 0), G = () => {
74
- T("update:selected", i.value), L.value = y.value;
75
- }, H = () => {
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
- }, J = () => {
73
+ }, G = () => {
78
74
  const e = /* @__PURE__ */ new Set([]);
79
- u.value.forEach((n) => {
80
- if (l.selected?.includes(n))
81
- e.add(n);
82
- else if (n[l.optionChildrenKey] && n[l.optionChildrenKey].length) {
83
- for (const s of n[l.optionChildrenKey])
84
- if (l.selected?.includes(s)) {
85
- e.add(n);
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((n) => {
92
- !l.selected.includes(n) && !e.has(n) && o.push(n);
87
+ return u.value.forEach((l) => {
88
+ !n.selected.includes(l) && !e.has(l) && o.push(l);
93
89
  }), o;
94
90
  };
95
- te(() => {
96
- x.value || (q(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
91
+ le(() => {
92
+ O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
97
93
  a.value[e] = 1;
98
94
  }));
99
- }), k(
100
- () => l.options,
95
+ }), g(
96
+ () => n.options,
101
97
  () => {
102
- q();
98
+ U();
103
99
  }
104
- ), k(
105
- () => l.selected,
106
- () => {
107
- console.log("isOpen", l.isOpen), !l.isOpen && (i.value = [...l.selected]);
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 = C(() => i.value.length < U.value ? !1 : i.value.length === U.value), Q = C(() => !y.value && i.value.length > 0), L = c(y.value);
111
- k(
112
- () => l.isOpen,
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
- l.isOpen ? K.value = J() : (i.value = [...l.selected], p.value = "");
110
+ n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
115
111
  }
116
112
  );
117
- const a = c({}), R = (e) => {
118
- a.value[e[l.optionUniqueIdKey]] ? delete a.value[e[l.optionUniqueIdKey]] : a.value[e[l.optionUniqueIdKey]] = 1;
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 W(e, o) {
121
- const n = e.toLowerCase(), s = [];
122
- return o.value.forEach((r) => {
123
- const w = r[l.optionNameKey].toLowerCase().includes(n), V = O.value[r[l.optionUniqueIdKey]]?.filter(
124
- (ee) => ee[l.optionNameKey].toLowerCase().includes(n)
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
- (w || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
127
- }), s;
122
+ (E || V.length > 0) && (s[n.optionChildrenKey] = V, r.push(s));
123
+ }), r;
128
124
  }
129
- const X = (e) => {
130
- const o = W(e, u);
131
- e && (Object.keys(a.value).forEach((n) => {
132
- delete a.value[n];
133
- }), o.forEach((n) => {
134
- Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (a.value[n[l.optionUniqueIdKey]] = 1);
135
- })), K.value = o;
136
- }, Y = C(() => {
137
- const e = l.options.length, o = l.options.reduce(
138
- (n, s) => (a.value[s[l.optionUniqueIdKey]] && (n = n + s[l.optionChildrenKey].length), n),
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
- k(
139
+ g(
144
140
  () => p.value,
145
141
  () => {
146
- X(p.value), N.value = !p.value;
142
+ W(p.value), x.value = !p.value;
147
143
  }
148
144
  );
149
- const Z = () => {
145
+ const Y = () => {
150
146
  y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
151
- if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
152
- for (const o of e[l.optionChildrenKey])
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
- }, _ = ve(l.testId, P);
158
- return (e, o) => (m(), I(z, null, [
159
- g(d(pe), {
160
- multi: "",
161
- class: "tree-dropdown",
162
- "show-select-all": N.value,
163
- "is-open": t.isOpen,
164
- options: K.value,
165
- selected: t.selected,
166
- "display-value": t.displayValue,
167
- placeholder: t.placeholder,
168
- "inline-search": "",
169
- "inline-search-placeholder": t.inlineSearchPlaceholder,
170
- "option-name-key": t.optionNameKey,
171
- size: t.size,
172
- "test-id": t.testId,
173
- disabled: t.disabled,
174
- "disable-virtual-scroll": "",
175
- "override-option-count-calculation": F,
176
- "trigger-show-all-selected-text": !1,
177
- "predefined-trigger": "default",
178
- "custom-number-of-displayed-options": d(Y),
179
- "onUpdate:isOpen": o[2] || (o[2] = (n) => T("update:isOpen", n)),
180
- onApply: G,
181
- onClear: H
182
- }, {
183
- "dropdown-trigger": h(({ defaultTriggerProps: n }) => [
184
- g(d(ye), B(n, {
185
- "all-selected": L.value,
186
- "show-all-selected-text": ""
187
- }), oe({ _: 2 }, [
188
- e.$slots["trigger-end-icon"] ? {
189
- name: "end-icon",
190
- fn: h(() => [
191
- ie(e.$slots, "trigger-end-icon", {}, void 0, !0)
192
- ]),
193
- key: "0"
194
- } : void 0
195
- ]), 1040, ["all-selected"])
196
- ]),
197
- "inline-search": h(() => [
198
- g(d(fe), {
199
- modelValue: p.value,
200
- "onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
201
- class: "tree-search",
202
- placeholder: t.inlineSearchPlaceholder,
203
- variant: "transparent",
204
- size: "md",
205
- "auto-focus": "",
206
- "test-id": t.testId
207
- }, null, 8, ["modelValue", "placeholder", "test-id"])
208
- ]),
209
- "select-all": h(() => [
210
- M("li", null, [
211
- g(d(b), B({
212
- "aria-selected": d(y),
213
- "aria-disabled": !!t.disabled,
214
- "selected-prop": d(y),
215
- "is-indeterminate": d(Q),
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
- "select-all-option": ""
218
- }, d(_)[d(P).SELECT_ALL], {
219
- onClick: o[1] || (o[1] = S((n) => Z(), ["stop"]))
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
- default: h(({ option: n, index: s }) => [
229
- g(d(b), {
230
- option: n,
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
- De as default
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" | "debug">;
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 {};