@ironsource/shared-ui 2.1.7-test.8 → 2.1.7-test.9

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 (41) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
  3. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
  6. package/README.md +1 -1
  7. package/TreeDropdown.vue_vue_type_style_index_0_scoped_5efe563d_lang.css +1 -0
  8. package/components/dropdown/common/Dropdown.common.js +89 -89
  9. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  10. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  11. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
  12. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
  13. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  14. package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
  15. package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
  16. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  17. package/components/dropdown/v4/OptionV4.vue2.js +94 -71
  18. package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
  19. package/components/dropdown/v4/TreeDropdown.vue.js +4 -4
  20. package/components/dropdown/v4/TreeDropdown.vue2.js +162 -74
  21. package/components/dropdown/v4/index.d.ts +451 -82
  22. package/components/table/common/Table.common.js +68 -71
  23. package/components/table/v4/DataGrid.vue.d.ts +4 -10
  24. package/components/table/v4/DataGrid.vue.js +4 -4
  25. package/components/table/v4/DataGrid.vue2.js +146 -140
  26. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  27. package/components/table/v4/DataGridRowsCounter.vue2.js +13 -14
  28. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  29. package/components/table/v4/index.d.ts +7 -41
  30. package/components/table/v4/storyUtils.d.ts +0 -8
  31. package/index.d.ts +1203 -533
  32. package/mocks/options.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/DataGrid.vue_vue_type_style_index_0_scoped_467ea11a_lang.css +0 -1
  35. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  36. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
  37. package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
  38. package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
  39. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
  40. package/utils/formatNumbers.d.ts +0 -4
  41. package/utils/formatNumbers.js +0 -11
@@ -0,0 +1 @@
1
+ .sticky[data-v-706b324e]{position:sticky}.table-container[data-v-706b324e]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-706b324e]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-706b324e]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-706b324e]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-706b324e]{width:13.75rem}.table-header.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 3);top:0}.table-head-container[data-v-706b324e]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-706b324e]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-706b324e]{display:inline-table}.table-header-actions[data-v-706b324e]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-706b324e]{position:relative}.table-row.loading[data-v-706b324e]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-706b324e]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-706b324e]{border-bottom:none}.expanded-row[data-v-706b324e]{grid-column:var(--bd8b5530);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-706b324e]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-706b324e]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-706b324e],table th[data-v-706b324e]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-706b324e]:first-of-type,table th[data-v-706b324e]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-706b324e]:last-of-type,table th[data-v-706b324e]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-706b324e],table th.expand-toggle-cell[data-v-706b324e]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-706b324e]{border-bottom:none;z-index:calc(var(--6e46e9f4) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-706b324e]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--03c6ae61)}table>thead>tr>th[data-v-706b324e]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-706b324e]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-706b324e]{cursor:pointer}table>thead.sticky[data-v-706b324e]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-706b324e]{z-index:calc(var(--6e46e9f4) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-706b324e]{display:block}table>tbody>*>tr[data-v-706b324e]{background-color:var(--background-default);min-height:var(--1c8cc6ae);height:auto;display:grid;align-items:center;grid-template-columns:var(--03c6ae61)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-706b324e]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-706b324e],table>tbody>*>tr.activeMenu>td[data-v-706b324e]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-706b324e]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--1c8cc6ae);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-706b324e]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-706b324e]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-706b324e]{justify-content:flex-end;text-align:right}.section-container[data-v-706b324e]{left:0}.sections[data-v-706b324e]{display:flex}.section[data-v-706b324e]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-706b324e]{width:100%}.empty-state[data-v-706b324e]{min-height:250px}.floating-row[data-v-706b324e]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--6e46e9f4) + 1)}.floating-row *[data-v-706b324e-s]{pointer-events:auto}
@@ -0,0 +1 @@
1
+ .data-grid-rows-counter[data-v-0ce71f73]{color:var(--text-secondary)}.text-strong[data-v-0ce71f73]{color:var(--text-primary)}
@@ -0,0 +1 @@
1
+ .default-dropdown-wrapper[data-v-98819e5a]{position:relative}.dropdown-trigger[data-v-98819e5a]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.5rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-98819e5a]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-98819e5a]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-98819e5a]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-98819e5a]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-98819e5a],.dropdown-trigger.disabled .caret-down[data-v-98819e5a]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-98819e5a]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-98819e5a]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-98819e5a]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-98819e5a],.dropdown-trigger.state-success[data-v-98819e5a],.dropdown-trigger.state-warning[data-v-98819e5a]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-98819e5a],.dropdown-trigger.state-success.small[data-v-98819e5a],.dropdown-trigger.state-warning.small[data-v-98819e5a]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-98819e5a],.dropdown-trigger.state-success.large[data-v-98819e5a],.dropdown-trigger.state-warning.large[data-v-98819e5a]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-98819e5a]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-98819e5a]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-98819e5a]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-98819e5a]{color:var(--action-active)}.content[data-v-98819e5a]{width:calc(100% - 28px);display:flex;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-98819e5a]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-98819e5a]{width:20px;height:20px;flex:none}.content .image img[data-v-98819e5a]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-98819e5a]{display:flex;color:var(--action-active)}.content .status-dot[data-v-98819e5a]{padding-right:.25rem}.content .status-dot>div[data-v-98819e5a]{position:relative;top:-1px}.dropdown-field-label[data-v-98819e5a]{color:var(--text-primary)}.dropdown-field-help-text[data-v-98819e5a]{margin-top:4px;position:absolute}
@@ -0,0 +1 @@
1
+ .v-enter-active[data-v-00ccab6b],.v-leave-active[data-v-00ccab6b]{transition:opacity .25s ease}ol[data-v-00ccab6b],ul[data-v-00ccab6b],menu[data-v-00ccab6b]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-00ccab6b],.dropdown.full-width .button__container[data-v-00ccab6b]{width:100%}.dropdown-list-wrapper[data-v-00ccab6b]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-00ccab6b]{padding:.5rem}.list-container--multi[data-v-00ccab6b]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-00ccab6b]{padding-bottom:.25rem}.inline-search .list-container[data-v-00ccab6b]{padding-top:0}.no-result-container[data-v-00ccab6b]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-00ccab6b]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-00ccab6b]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-00ccab6b]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.image-slot[data-v-00ccab6b]{margin-right:.5rem}.actions-wrapper[data-v-00ccab6b]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-00ccab6b]{margin-left:.5rem}
@@ -0,0 +1 @@
1
+ .label[data-v-77509f61]{color:#41454d}.item-container[data-v-77509f61]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-77509f61]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-77509f61]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-77509f61],.item-container[data-v-77509f61]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-77509f61]{background-color:var(--action-selected)}.subtitle[data-v-77509f61]{color:#7b838c;line-height:1rem}.clear-button[data-v-77509f61]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-77509f61]:hover{color:#3083ff}.item[data-v-77509f61]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-77509f61],.item--multi[data-v-77509f61]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-77509f61]{width:20px;height:20px;flex:none}.item .image img[data-v-77509f61]{width:20px;height:20px;border-radius:4px}.item .start-icon[data-v-77509f61],.item .end-icon[data-v-77509f61]{display:flex;color:var(--action-active)}.item .option-text[data-v-77509f61]{line-height:1.1875rem}.text-container[data-v-77509f61]{width:100%;text-overflow:ellipsis;overflow:hidden}.tooltip-option[data-v-77509f61]{display:block}.tooltip-option[data-v-77509f61] .container{width:100%}.app-trigger--icon[data-v-77509f61]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-77509f61]{transform:rotate(0)}.option-content-horizontal[data-v-77509f61]{display:flex;justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-77509f61]{display:flex;flex-direction:column}.option-text .main-text[data-v-77509f61]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .caption-text[data-v-77509f61]{color:var(--text-secondary)}
package/README.md CHANGED
@@ -168,4 +168,4 @@ For uploading a new custom icon like 'ad-network' icon type, follow the next ste
168
168
  - Clear your browser cache
169
169
  - Go to your StoryBook link
170
170
  - Clear your browser cache
171
- - New icons should be displayed!
171
+ - New icons should be displayed
@@ -0,0 +1 @@
1
+ .child-options[data-v-5efe563d]{padding-left:1rem}
@@ -1,122 +1,122 @@
1
- import { useToggle as we } from "../../../composables/useToggle.js";
2
- import { ref as n, computed as r, watch as m, useSlots as Ie, toRaw as O, nextTick as C, provide as xe, onMounted as De } from "vue";
1
+ import { useToggle as Ie } from "../../../composables/useToggle.js";
2
+ import { inject as xe, ref as n, computed as r, watch as P, useSlots as De, toRaw as A, nextTick as C, provide as Ce, onMounted as Ne } from "vue";
3
3
  import { isObjectInArray as W } from "../../../utils/array.js";
4
- import { objectsEqual as Ce } from "../../../utils/object.js";
5
- import { useClamp as Ne, useVirtualList as Re, onClickOutside as Y } from "@vueuse/core";
6
- import { Mode as P, Type as V, DropdownContext as Ee } from "./DropdownContext.js";
7
- import { pxToRem as Me } from "../../../utils/style.js";
8
- import { useEditableContext as Ve } from "../../table-cells/common/EditableContext.js";
9
- const Ke = (l, A, b) => {
10
- const Z = (e, t) => l.multi ? W(e, t) : O(e) === t;
4
+ import { objectsEqual as Re } from "../../../utils/object.js";
5
+ import { useClamp as Ee, useVirtualList as Me, onClickOutside as Y } from "@vueuse/core";
6
+ import { Mode as T, Type as V, DropdownContext as Ve } from "./DropdownContext.js";
7
+ import { pxToRem as _e } from "../../../utils/style.js";
8
+ import { useEditableContext as ke } from "../../table-cells/common/EditableContext.js";
9
+ const je = (l, b, O) => {
10
+ const Z = xe("isTreeDropdown", !1), F = (e, t) => l.multi ? W(e, t) : A(e) === t;
11
11
  let _;
12
12
  ((e) => {
13
13
  e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
14
14
  })(_ || (_ = {}));
15
15
  const a = n(
16
16
  l.selected
17
- ), N = Ve(), u = r({
17
+ ), N = ke(), u = r({
18
18
  get() {
19
19
  return N?.value?.value ?? a.value;
20
20
  },
21
21
  set(e) {
22
- N.onChange?.(e), N.onClose?.(), A("update:selected", e);
22
+ N.onChange?.(e), N.onClose?.(), b("update:selected", e);
23
23
  }
24
24
  });
25
- m(
25
+ P(
26
26
  () => l.selected,
27
27
  () => {
28
28
  a.value = l.selected, v.value = l.selected;
29
29
  }
30
30
  );
31
- const F = Ie(), w = n(null), g = n(null), k = n(null), R = n(null), H = n(null), I = n(null), p = n(), B = n(null), L = n(null), U = n(null), ee = 8, le = r(() => I.value ? I.value.getBoundingClientRect().height + ee + l.distance : 0), c = n([]), x = n(-1), T = n(""), v = n(l.selected || []), q = () => I.value?.focus(), [d, te, ae] = we({
31
+ const p = De(), w = n(null), g = n(null), k = n(null), R = n(null), H = n(null), I = n(null), ee = n(), B = n(null), L = n(null), U = n(null), le = 8, te = r(() => I.value ? I.value.getBoundingClientRect().height + le + l.distance : 0), c = n([]), x = n(-1), m = n(""), v = n(l.selected || []), q = () => I.value?.focus(), [d, ae, ue] = Ie({
32
32
  disabled: l.disabled,
33
33
  initialValue: l.defaultOpen
34
34
  });
35
- m(
35
+ P(
36
36
  () => l.disabled,
37
37
  (e) => {
38
- e !== void 0 && ae(e);
38
+ e !== void 0 && ue(e);
39
39
  }
40
40
  );
41
41
  const G = (e) => {
42
- ue.value = te(e);
43
- }, ue = r({
42
+ ne.value = ae(e);
43
+ }, ne = r({
44
44
  get() {
45
45
  return l.isOpen;
46
46
  },
47
47
  set(e) {
48
- A("update:isOpen", e);
48
+ b("update:isOpen", e);
49
49
  }
50
- }), ne = r(() => s.value.length - 1), o = Ne(0, 0, ne), K = r(() => u.value ? l.displayValue(u.value) : ""), ie = (e) => {
50
+ }), ie = r(() => s.value.length - 1), o = Ee(0, 0, ie), K = r(() => u.value ? l.displayValue(u.value) : ""), re = (e) => {
51
51
  if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
52
52
  return l.placeholder;
53
53
  const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
54
54
  return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
55
- }, re = r(() => {
55
+ }, oe = r(() => {
56
56
  if (!l.multi)
57
57
  return u.value ? l.displayValue(u.value) : l.placeholder;
58
58
  if (Array.isArray(a.value))
59
- return ie(a);
59
+ return re(a);
60
60
  }), $ = r(() => {
61
61
  if (Array.isArray(a.value))
62
62
  return a.value.length === s.value.length;
63
- }), oe = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), E = (e) => {
64
- T.value = e;
65
- }, se = r(() => {
66
- const e = O(v.value), t = {
63
+ }), se = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), E = (e) => {
64
+ m.value = e;
65
+ }, ce = r(() => {
66
+ const e = A(v.value), t = {
67
67
  selected: [],
68
68
  notSelected: []
69
69
  };
70
- return O(l.options).forEach((y) => {
70
+ return A(l.options).forEach((y) => {
71
71
  const f = e.includes(y) ? "selected" : "notSelected";
72
72
  t[f].push(y);
73
73
  }), [].concat(t.selected, t.notSelected);
74
74
  }), s = r(() => {
75
- const e = Array.isArray(v.value) && l.multi && b.VERSION === 4 ? se.value : l.options;
76
- return l.onSearch ? e.filter((t) => l.onSearch(t, T.value)) : e;
77
- }), ce = r(() => c.value[0]?.hasSubtitle), X = r(() => i.mode === P.Multi), j = r(
78
- () => ce.value ? b.MULTILINE_LIST_HEIGHT : b.LIST_HEIGHT
75
+ const e = Array.isArray(v.value) && l.multi && O.VERSION === 4 && !Z ? ce.value : l.options;
76
+ return l.onSearch ? e.filter((t) => l.onSearch(t, m.value)) : e;
77
+ }), ve = r(() => c.value[0]?.hasSubtitle), j = r(() => i.mode === T.Multi), X = r(
78
+ () => ve.value ? O.MULTILINE_LIST_HEIGHT : O.LIST_HEIGHT
79
79
  ), {
80
80
  list: z,
81
81
  containerProps: J,
82
- wrapperProps: ve,
82
+ wrapperProps: de,
83
83
  scrollTo: D
84
- } = Re(s, {
85
- itemHeight: j.value,
84
+ } = Me(s, {
85
+ itemHeight: X.value,
86
86
  overscan: l.disableVirtualScroll ? 1 / 0 : 2
87
87
  });
88
- m(
88
+ P(
89
89
  () => l.isOpen,
90
90
  (e) => {
91
91
  G(e);
92
92
  }
93
- ), m([x], async () => {
93
+ ), P([x], async () => {
94
94
  await C();
95
- }), m(
95
+ }), P(
96
96
  [d, o, x],
97
97
  async ([e], [t]) => {
98
98
  d.value && (await C(), x.value !== -1 && e !== t && setTimeout(() => {
99
- l.multi && b.VERSION === 4 || D(x.value);
99
+ l.multi && O.VERSION === 4 || D(x.value);
100
100
  }), o.value && setTimeout(() => {
101
101
  D(o.value);
102
102
  }));
103
103
  }
104
- ), m(T, () => {
105
- D(0);
104
+ ), P(m, () => {
105
+ b("onsearch", m.value), D(0);
106
106
  });
107
107
  const h = (e, t = !1) => {
108
108
  l.disabled || (G(e), C(() => {
109
- d.value && A("opened"), d.value || A("closed"), w.value && t && w.value.focus();
109
+ d.value && b("opened"), d.value || b("closed"), w.value && t && w.value.focus();
110
110
  }));
111
111
  };
112
- m(d, (e) => {
112
+ P(d, (e) => {
113
113
  if (e) {
114
- X.value && Array.isArray(u.value) && (v.value = O(u.value).slice());
114
+ j.value && Array.isArray(u.value) && (v.value = A(u.value).slice());
115
115
  return;
116
116
  }
117
117
  q();
118
118
  });
119
- const de = () => {
119
+ const fe = () => {
120
120
  if ($.value) {
121
121
  a.value = [];
122
122
  return;
@@ -126,16 +126,16 @@ const Ke = (l, A, b) => {
126
126
  a.value = [];
127
127
  return;
128
128
  }
129
- a.value = s.value, A("selectAll");
129
+ a.value = s.value, b("selectAll");
130
130
  }
131
- }, fe = () => {
132
- de(), b.VERSION !== 4 && (u.value = a.value);
133
- }, ge = (e = !0) => {
134
- a.value = [], e && (u.value = [], v.value = []), A("clear");
131
+ }, ge = () => {
132
+ fe(), O.VERSION !== 4 && (u.value = a.value);
133
+ }, he = (e = !0) => {
134
+ a.value = [], e && (u.value = [], v.value = []), b("clear");
135
135
  }, M = (e, t) => {
136
- if (e = O(e), c.value[t]?.disabled)
136
+ if (e = A(e), c.value[t]?.disabled)
137
137
  return;
138
- if (x.value = t, i.mode !== P.Multi) {
138
+ if (x.value = t, i.mode !== T.Multi) {
139
139
  l.keepOpen || h(!1), i.goToOption(
140
140
  0
141
141
  /* None */
@@ -145,17 +145,17 @@ const Ke = (l, A, b) => {
145
145
  if (!Array.isArray(a.value))
146
146
  return;
147
147
  g.value?.focus();
148
- const S = O(a.value);
148
+ const S = A(a.value);
149
149
  if (W(S, e)) {
150
150
  a.value = S.filter(
151
- (f) => !Ce(f, e)
151
+ (f) => !Re(f, e)
152
152
  );
153
153
  return;
154
154
  } else {
155
155
  a.value = [...S, e];
156
156
  return;
157
157
  }
158
- }, he = (e) => c.value[e]?.disabled, i = {
158
+ }, ye = (e) => c.value[e]?.disabled, i = {
159
159
  activeIndex: o,
160
160
  options: c,
161
161
  selectedOption: u,
@@ -163,9 +163,9 @@ const Ke = (l, A, b) => {
163
163
  activeOption: R,
164
164
  listRef: w,
165
165
  clearable: l.clearable,
166
- type: F.input ? V.Search : V.Dropdown,
167
- mode: l.multi ? P.Multi : P.Single,
168
- query: T,
166
+ type: p.input ? V.Search : V.Dropdown,
167
+ mode: l.multi ? T.Multi : T.Single,
168
+ query: m,
169
169
  selectedValue: K,
170
170
  toggle: h,
171
171
  disabled: l.disabled,
@@ -175,7 +175,7 @@ const Ke = (l, A, b) => {
175
175
  placeholder: l.placeholder,
176
176
  select: M,
177
177
  clearSelection: () => {
178
- E(""), u.value = i.mode === P.Single ? null : [], v.value = i.mode === P.Single ? null : [], g.value && (g.value.value = "");
178
+ E(""), u.value = i.mode === T.Single ? null : [], v.value = i.mode === T.Single ? null : [], g.value && (g.value.value = "");
179
179
  },
180
180
  search: E,
181
181
  goToOption: async (e) => {
@@ -190,7 +190,7 @@ const Ke = (l, A, b) => {
190
190
  R.value = s.value[t], o.value = t;
191
191
  return;
192
192
  }
193
- if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!he(o.value)) {
193
+ if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!ye(o.value)) {
194
194
  R.value = s.value[t], o.value = t;
195
195
  return;
196
196
  }
@@ -206,7 +206,7 @@ const Ke = (l, A, b) => {
206
206
  c.value = c.value.filter((t) => t.id !== e);
207
207
  }
208
208
  };
209
- xe(Ee, i), Y(
209
+ Ce(Ve, i), Y(
210
210
  w,
211
211
  () => {
212
212
  d.value && Q();
@@ -222,19 +222,19 @@ const Ke = (l, A, b) => {
222
222
  ]
223
223
  }
224
224
  );
225
- const ye = () => {
225
+ const Se = () => {
226
226
  g.value && (g.value.value = i.query.value = "");
227
227
  };
228
- De(async () => {
228
+ Ne(async () => {
229
229
  l.autoFocus && (await C(), setTimeout(() => {
230
230
  k.value.focus();
231
231
  })), i.goToOption(0);
232
232
  });
233
- const Se = () => {
234
- u.value = a.value, Array.isArray(u.value) && (v.value = O(u.value).slice()), A("apply", u.value), h(!1), ye();
233
+ const be = () => {
234
+ u.value = a.value, Array.isArray(u.value) && (v.value = A(u.value).slice()), b("apply", u.value), h(!1), Se();
235
235
  }, Q = () => {
236
- X.value && Array.isArray(v.value) && (u.value = O(v.value).slice()), T.value = "", h(!1);
237
- }, be = (e) => {
236
+ j.value && Array.isArray(v.value) && (u.value = A(v.value).slice()), m.value = "", h(!1);
237
+ }, Oe = (e) => {
238
238
  if (!l.disableKeyboardEvents)
239
239
  switch (e.key) {
240
240
  case "Space":
@@ -243,7 +243,7 @@ const Ke = (l, A, b) => {
243
243
  case "ArrowDown":
244
244
  h(!0), e.preventDefault();
245
245
  }
246
- }, Oe = (e) => {
246
+ }, Ae = (e) => {
247
247
  if (!l.disableKeyboardEvents)
248
248
  switch (e.key) {
249
249
  case "ArrowUp": {
@@ -283,45 +283,45 @@ const Ke = (l, A, b) => {
283
283
  h(!0);
284
284
  return;
285
285
  }
286
- M(s.value[o.value], o.value), i.mode === P.Single && !l.keepOpen && h(!1), e.preventDefault();
286
+ M(s.value[o.value], o.value), i.mode === T.Single && !l.keepOpen && h(!1), e.preventDefault();
287
287
  break;
288
288
  }
289
289
  }
290
- }, Ae = r(() => {
291
- const e = z.value.reduce((me, Pe) => {
292
- const Te = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Pe.data) : 1;
293
- return me + Te;
294
- }, 0), t = l.multi && l.showSelectAll ? 1 : 0, y = e > b.MAX_NUMBER_OF_OPTIONS, S = e + t;
295
- let f = y ? b.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
296
- return l.noResultsText && f === 0 && (f = f + 1), Me(
297
- f * j.value + b.PADDING_PX
290
+ }, me = r(() => {
291
+ const e = z.value.reduce((Pe, Te) => {
292
+ const we = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Te.data) : 1;
293
+ return Pe + we;
294
+ }, 0), t = l.multi && l.showSelectAll ? 1 : 0, y = e > O.MAX_NUMBER_OF_OPTIONS, S = e + t;
295
+ let f = y ? O.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
296
+ return l.noResultsText && f === 0 && (f = f + 1), _e(
297
+ f * X.value + O.PADDING_PX
298
298
  );
299
299
  });
300
300
  return {
301
- onKeydown: Oe,
302
- location: le,
301
+ onKeydown: Ae,
302
+ location: te,
303
303
  open: d,
304
304
  toggleMenu: h,
305
- onButtonKeydown: be,
306
- displayedValue: re,
305
+ onButtonKeydown: Oe,
306
+ displayedValue: oe,
307
307
  labelRef: H,
308
- query: T,
308
+ query: m,
309
309
  containerProps: J,
310
- calculateTableHeight: Ae,
311
- wrapperProps: ve,
310
+ calculateTableHeight: me,
311
+ wrapperProps: de,
312
312
  filteredOptions: s,
313
313
  allSelected: $,
314
- isIndeterminate: oe,
315
- onSelectAll: fe,
314
+ isIndeterminate: se,
315
+ onSelectAll: ge,
316
316
  virtualOptions: z,
317
- isSelected: Z,
317
+ isSelected: F,
318
318
  selectedOption: u,
319
319
  selectedOptionPrevious: v,
320
320
  selectedValue: K,
321
321
  onSelect: M,
322
322
  activeIndex: o,
323
323
  onCancel: Q,
324
- onApply: Se,
324
+ onApply: be,
325
325
  scrollTo: D,
326
326
  onClickOutside: Y,
327
327
  listRef: w,
@@ -329,11 +329,11 @@ const Ke = (l, A, b) => {
329
329
  apply: B,
330
330
  cancel: L,
331
331
  el: k,
332
- triggerRef: p,
332
+ triggerRef: ee,
333
333
  clearAll: U,
334
- onClearAllSelections: ge
334
+ onClearAllSelections: he
335
335
  };
336
336
  };
337
337
  export {
338
- Ke as dropdownCommon
338
+ je as dropdownCommon
339
339
  };
@@ -132,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
132
132
  }>, {
133
133
  image?(_: {}): any;
134
134
  "icon-start"?(_: {}): any;
135
+ "end-icon"?(_: {}): any;
135
136
  }>;
136
137
  export default _default;
137
138
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0345d6b1"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-98819e5a"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as m, unref as l, renderSlot as y, createVNode as i, withCtx as I, createTextVNode as x, toDisplayString as B } from "vue";
2
- import w from "../../typography/v4/Typography.vue.js";
3
- import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css"; import { defineComponent as O, computed as r, openBlock as o, createElementBlock as n, createBlock as k, createCommentVNode as d, createElementVNode as c, mergeProps as m, unref as l, renderSlot as u, createVNode as i, withCtx as I, createTextVNode as B, toDisplayString as w } from "vue";
2
+ import V from "../../typography/v4/Typography.vue.js";
3
+ import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
4
4
  import h from "../../icon/v4/IconV4.vue.js";
5
5
  import "../../icon/v4/IconFlag.vue.js";
6
- import V from "../../shared/FieldLabel.vue.js";
6
+ import x from "../../shared/FieldLabel.vue.js";
7
7
  import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
8
  import D from "../../statusDot/StatusDot.vue.js";
9
- const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
9
+ const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
10
10
  key: 0,
11
11
  class: "image"
12
12
  }, C = ["src"], S = {
@@ -15,7 +15,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
15
15
  }, P = {
16
16
  key: 2,
17
17
  class: "status-dot"
18
- }, z = { class: "caret-down" }, q = /* @__PURE__ */ v({
18
+ }, z = { key: 0 }, E = { class: "caret-down" }, G = /* @__PURE__ */ O({
19
19
  __name: "DefaultDropdownTrigger",
20
20
  props: {
21
21
  placeholder: { default: "Select" },
@@ -50,7 +50,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
50
50
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
51
51
  ), b = () => {
52
52
  T("click");
53
- }, p = A(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
53
+ }, f = A(e.testId, p), v = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), s = r(() => {
54
54
  if (!e.selectedOption)
55
55
  return null;
56
56
  if (!e.multi)
@@ -58,8 +58,8 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
58
58
  if (Array.isArray(e.selectedOption))
59
59
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
60
60
  });
61
- return (s, f) => (o(), a("div", N, [
62
- t.label ? (o(), k(V, {
61
+ return (a, y) => (o(), n("div", $, [
62
+ t.label ? (o(), k(x, {
63
63
  key: 0,
64
64
  label: t.label,
65
65
  mandatory: t.mandatory,
@@ -68,41 +68,44 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
68
68
  disabled: t.disabled,
69
69
  "test-id": t.testId,
70
70
  class: "dropdown-field-label"
71
- }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
71
+ }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : d("", !0),
72
72
  c("div", m({
73
73
  class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
74
- }, l(p)[l(u).BUTTON_WRAPPER], {
75
- onClick: f[0] || (f[0] = (E) => b())
74
+ }, l(f)[l(p).BUTTON_WRAPPER], {
75
+ onClick: y[0] || (y[0] = (H) => b())
76
76
  }), [
77
- c("div", K, [
78
- s.$slots.image || l(d) && t.optionImageKey ? (o(), a("div", $, [
79
- y(s.$slots, "image", {}, () => [
80
- t.optionImageKey ? (o(), a("img", {
77
+ c("div", N, [
78
+ a.$slots.image || l(s) && t.optionImageKey ? (o(), n("div", K, [
79
+ u(a.$slots, "image", {}, () => [
80
+ t.optionImageKey ? (o(), n("img", {
81
81
  key: 0,
82
- src: l(d)[t.optionImageKey]
83
- }, null, 8, C)) : n("", !0)
82
+ src: l(s)[t.optionImageKey]
83
+ }, null, 8, C)) : d("", !0)
84
84
  ], !0)
85
- ])) : n("", !0),
86
- s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", S, [
87
- y(s.$slots, "icon-start", {}, () => [
85
+ ])) : d("", !0),
86
+ a.$slots["icon-start"] || l(s) && t.optionIconKey ? (o(), n("div", S, [
87
+ u(a.$slots, "icon-start", {}, () => [
88
88
  i(l(h), {
89
89
  type: t.optionIconType,
90
- name: l(d)[t.optionIconKey],
90
+ name: l(s)[t.optionIconKey],
91
91
  size: "20px"
92
92
  }, null, 8, ["type", "name"])
93
93
  ], !0)
94
- ])) : n("", !0),
95
- t.statusDotType ? (o(), a("div", P, [
94
+ ])) : d("", !0),
95
+ t.statusDotType ? (o(), n("div", P, [
96
96
  i(l(D), { type: t.statusDotType }, null, 8, ["type"])
97
- ])) : n("", !0),
98
- i(l(w), m({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
97
+ ])) : d("", !0),
98
+ i(l(V), m({ variant: "body1" }, l(f)[l(p).BUTTON_CONTENT], { class: "displayed-value" }), {
99
99
  default: I(() => [
100
- x(B(l(O)), 1)
100
+ B(w(l(v)), 1)
101
101
  ]),
102
102
  _: 1
103
103
  }, 16)
104
104
  ]),
105
- c("div", z, [
105
+ a.$slots["end-icon"] ? (o(), n("div", z, [
106
+ u(a.$slots, "end-icon", {}, void 0, !0)
107
+ ])) : d("", !0),
108
+ c("div", E, [
106
109
  i(l(h), {
107
110
  name: "caret-down",
108
111
  size: "20px"
@@ -113,5 +116,5 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
113
116
  }
114
117
  });
115
118
  export {
116
- q as default
119
+ G as default
117
120
  };
@@ -116,6 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
116
116
  selectAll: () => void;
117
117
  clear: () => void;
118
118
  copyToClipboard: () => void;
119
+ onsearch: (value: string) => void;
119
120
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
120
121
  modelValue?: unknown;
121
122
  selected?: unknown;
@@ -228,6 +229,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
228
229
  onSelectAll?: () => any;
229
230
  "onUpdate:selected"?: (value: unknown) => any;
230
231
  "onUpdate:isOpen"?: (value: unknown) => any;
232
+ onOnsearch?: (value: string) => any;
231
233
  onOpened?: () => any;
232
234
  onClosed?: () => any;
233
235
  }, {
@@ -289,7 +291,34 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
289
291
  label: any;
290
292
  onClick: () => void;
291
293
  };
294
+ defaultTriggerProps: {
295
+ placeholder: string;
296
+ open: boolean;
297
+ label: string;
298
+ showFeedbackIcon: boolean;
299
+ mandatory: boolean;
300
+ testId: string;
301
+ multi: boolean;
302
+ disabled: boolean;
303
+ selectedOption: unknown;
304
+ displayValue: (option: unknown) => string;
305
+ options: unknown[];
306
+ optionNameKey: string;
307
+ optionImageKey: string;
308
+ optionIconKey: string;
309
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
310
+ optionAndIconKey: string;
311
+ optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
312
+ feedbackVariant: "success" | "warning" | "error";
313
+ valueToCopy: string;
314
+ statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
315
+ size: "small" | "medium" | "large";
316
+ showAllSelectedText: boolean;
317
+ onKeydown: (event: any) => void;
318
+ onClick: () => void;
319
+ };
292
320
  }): any;
321
+ "inline-search"?(_: {}): any;
293
322
  "input-list"?(_: {
294
323
  open: true;
295
324
  }): any;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
- /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css"; //*');
2
+ /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-938772ee"]]);
5
+ const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-00ccab6b"]]);
6
6
  export {
7
- r as default
7
+ c as default
8
8
  };