@ironsource/shared-ui 2.0.0 → 2.0.1

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 (101) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
  3. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_4e432056_lang.css +1 -0
  5. package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +1 -0
  6. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_11c1bb3f_lang.css +1 -0
  7. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
  8. package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  11. package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +1 -0
  12. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +1 -0
  13. package/OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css +1 -0
  14. package/{Skeleton.vue_vue_type_style_index_0_scoped_9837f0ce_lang.css → Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css} +1 -1
  15. package/SkeletonV4.vue_vue_type_style_index_0_scoped_2f3b3470_lang.css +1 -0
  16. package/Table.vue_vue_type_style_index_0_scoped_76fef9bd_lang.css +1 -0
  17. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +1 -0
  18. package/components/button/v4/ButtonV4.vue.js +4 -4
  19. package/components/button/v4/ButtonV4.vue2.js +1 -1
  20. package/components/dialog/v4/DialogV4.vue.d.ts +34 -0
  21. package/components/dialog/v4/DialogV4.vue.js +3 -3
  22. package/components/dialog/v4/DialogV4.vue2.js +87 -56
  23. package/components/dialog/v4/index.d.ts +128 -2
  24. package/components/dropdown/common/Dropdown.common.js +29 -29
  25. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +136 -0
  26. package/components/dropdown/v4/AppDropdownTrigger.vue.js +7 -0
  27. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +147 -0
  28. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  29. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +8 -8
  30. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +39 -11
  31. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  32. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +77 -47
  33. package/components/dropdown/v4/Dropdown.types.d.ts +1 -1
  34. package/components/dropdown/v4/Dropdown.types.js +2 -1
  35. package/components/dropdown/v4/DropdownV4.vue.d.ts +42 -7
  36. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  37. package/components/dropdown/v4/DropdownV4.vue2.js +193 -163
  38. package/components/dropdown/v4/OptionV4.vue.d.ts +20 -0
  39. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  40. package/components/dropdown/v4/OptionV4.vue2.js +54 -37
  41. package/components/dropdown/v4/index.d.ts +824 -70
  42. package/components/dropdown/v4/index.js +11 -8
  43. package/components/includeExclude/IncludeExclude.vue.js +3 -3
  44. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  45. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  46. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
  47. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  48. package/components/includeExclude/index.d.ts +20 -20
  49. package/components/input/v4/TextField.vue.d.ts +1 -1
  50. package/components/input/v4/TextField.vue.js +3 -3
  51. package/components/input/v4/TextField.vue2.js +9 -10
  52. package/components/input/v4/index.d.ts +20 -20
  53. package/components/layout/FormCard.vue.d.ts +1 -1
  54. package/components/layout/index.d.ts +12 -12
  55. package/components/multibar/MultiBarMenu.vue2.js +7 -6
  56. package/components/skeleton/v3/Skeleton.vue.js +7 -0
  57. package/components/skeleton/{Skeleton.vue2.js → v3/Skeleton.vue2.js} +1 -1
  58. package/components/skeleton/v4/SkeletonV4.vue.d.ts +41 -0
  59. package/components/skeleton/v4/SkeletonV4.vue.js +7 -0
  60. package/components/skeleton/v4/SkeletonV4.vue2.js +23 -0
  61. package/components/skeleton/v4/index.d.ts +94 -0
  62. package/components/skeleton/v4/index.js +6 -0
  63. package/components/table/v3/Table.vue.js +5 -5
  64. package/components/table/v3/Table.vue2.js +3 -3
  65. package/components/table/v4/DataGrid.vue.d.ts +7 -2
  66. package/components/table/v4/DataGrid.vue.js +4 -4
  67. package/components/table/v4/DataGrid.vue2.js +175 -169
  68. package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
  69. package/components/table/v4/DataGridMenu.vue.js +3 -3
  70. package/components/table/v4/DataGridMenu.vue2.js +49 -38
  71. package/components/table/v4/DataGridRowsCounter.vue.d.ts +34 -0
  72. package/components/table/v4/DataGridRowsCounter.vue.js +7 -0
  73. package/components/table/v4/DataGridRowsCounter.vue2.js +36 -0
  74. package/components/table/v4/index.d.ts +56 -6
  75. package/components/table/v4/index.js +6 -4
  76. package/components/table/v4/storyUtils.d.ts +1 -0
  77. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  78. package/components/toggle/v4/index.d.ts +20 -20
  79. package/index.d.ts +2401 -360
  80. package/index.js +119 -119
  81. package/mocks/apps.d.ts +7 -0
  82. package/package.json +6 -2
  83. package/testids/index.d.ts +3 -1
  84. package/testids/index.js +10 -10
  85. package/utils/array.js +1 -1
  86. package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +0 -1
  87. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +0 -1
  88. package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +0 -1
  89. package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +0 -1
  90. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +0 -1
  91. package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +0 -1
  92. package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +0 -1
  93. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +0 -1
  94. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +0 -1
  95. package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +0 -1
  96. package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +0 -1
  97. package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +0 -1
  98. package/components/skeleton/Skeleton.vue.js +0 -7
  99. /package/components/skeleton/{Skeleton.vue.d.ts → v3/Skeleton.vue.d.ts} +0 -0
  100. /package/components/skeleton/{index.d.ts → v3/index.d.ts} +0 -0
  101. /package/components/skeleton/{index.js → v3/index.js} +0 -0
@@ -1,38 +1,40 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as te, openBlock as a, createElementBlock as i, mergeProps as r, unref as e, renderSlot as h, createElementVNode as m, createVNode as n, withCtx as s, Transition as le, normalizeClass as R, isRef as oe, createCommentVNode as d, createTextVNode as p, toDisplayString as ae, withModifiers as V, Fragment as ie, renderList as ne, toRaw as w } from "vue";
2
- import I from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ae, computed as P, openBlock as i, createElementBlock as n, mergeProps as s, unref as e, renderSlot as C, createElementVNode as p, createVNode as a, withCtx as u, Transition as de, normalizeClass as z, normalizeStyle as re, isRef as se, createCommentVNode as d, createTextVNode as g, toDisplayString as ue, withModifiers as V, Fragment as ce, renderList as fe, toRaw as T, createBlock as me, resolveDynamicComponent as pe } from "vue";
2
+ import A from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "./DropdownV4.vue.js";
5
- import de from "./DefaultDropdownTrigger.vue.js";
6
- import re from "./IconButtonDropdownTrigger.vue.js";
7
- import se from "./ChipDropdownTrigger.vue.js";
8
- import ue from "./OptionV4.vue.js";
9
- import ce from "../../search/v4/SearchV4.vue.js";
10
- import x from "../../typography/v4/Typography.vue.js";
11
- import { Dropdown as fe } from "floating-vue";
12
- import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
13
- import { dropdownCommon as me } from "../common/Dropdown.common.js";
14
- import pe from "../../loader/v4/Loader.vue.js";
15
- import { useTestIdAttrs as ye } from "../../../utils/testIds.js";
16
- import { TRIGGERS as b } from "./Dropdown.types.js";
17
- const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be = { key: 0 }, ke = { key: 1 }, Te = { key: 2 }, ve = {
5
+ import ye from "./DefaultDropdownTrigger.vue.js";
6
+ import ge from "./IconButtonDropdownTrigger.vue.js";
7
+ import he from "./ChipDropdownTrigger.vue.js";
8
+ import ke from "./AppDropdownTrigger.vue.js";
9
+ import x from "./OptionV4.vue.js";
10
+ import Te from "../../search/v4/SearchV4.vue.js";
11
+ import F from "../../typography/v4/Typography.vue.js";
12
+ import { Dropdown as ve } from "floating-vue";
13
+ import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
14
+ import { dropdownCommon as be } from "../common/Dropdown.common.js";
15
+ import Ce from "../../loader/v4/Loader.vue.js";
16
+ import { useTestIdAttrs as we } from "../../../utils/testIds.js";
17
+ import { TRIGGERS as y } from "./Dropdown.types.js";
18
+ import { useElementSize as Ie } from "@vueuse/core";
19
+ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, Oe = {
18
20
  key: 0,
19
21
  class: "inline-search-wrapper"
20
- }, Ce = {
22
+ }, Ee = {
21
23
  key: 0,
22
24
  class: "no-result-container"
23
- }, we = {
25
+ }, Ke = {
24
26
  key: 1,
25
27
  class: "loader"
26
- }, Ie = { key: 2 }, Se = ["aria-selected", "aria-disabled", "onClick"], Ae = {
28
+ }, Re = { key: 2 }, De = ["aria-selected", "aria-disabled", "onClick"], Pe = {
27
29
  key: 1,
28
30
  class: "actions-wrapper"
29
- }, Be = { class: "actions-clear-all" }, Le = { class: "actions-apply-cancel" }, qe = /* @__PURE__ */ te({
31
+ }, ze = { class: "actions-clear-all" }, Ve = { class: "actions-apply-cancel" }, ot = /* @__PURE__ */ ae({
30
32
  __name: "DropdownV4",
31
33
  props: {
32
34
  modelValue: { default: null },
33
35
  selected: { default: null },
34
36
  multi: { type: Boolean, default: !1 },
35
- placeholder: { default: "" },
37
+ placeholder: { default: "Select" },
36
38
  disabled: { type: Boolean, default: !1 },
37
39
  popperClass: { default: "" },
38
40
  loading: { type: Boolean },
@@ -56,70 +58,78 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
56
58
  triggerFeedbackVariant: { default: null },
57
59
  size: { default: "lg" },
58
60
  mandatory: { type: Boolean, default: !1 },
59
- predefinedTrigger: { default: b.DEFAULT },
61
+ predefinedTrigger: { default: y.DEFAULT },
60
62
  inlineSearch: { type: Boolean, default: !1 },
61
63
  inlineSearchPlaceholder: { default: "Search" },
62
- onSearch: { type: Function, default: () => !0 },
64
+ onSearch: { type: Function, default: null },
63
65
  noResultsText: { default: "No results found" },
64
66
  searchAutoFocus: { type: Boolean, default: !0 },
65
67
  onClear: { type: Function, default: () => !0 },
66
68
  displayValue: null,
67
- theme: { default: "light-theme-v4" }
69
+ optionNameKey: { default: "" },
70
+ optionIconKey: { default: "" },
71
+ optionImageKey: { default: "" },
72
+ optionIconType: { default: null },
73
+ valueToCopy: { default: null },
74
+ theme: { default: "light-theme-v4" },
75
+ fullWidth: { type: Boolean, default: !0 },
76
+ optionsListWidth: { default: null }
68
77
  },
69
78
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
70
- setup(t, { expose: D, emit: z }) {
71
- const S = t, P = {
79
+ setup(t, { expose: $, emit: U }) {
80
+ const r = t, H = {
72
81
  MULTILINE_LIST_HEIGHT: 48,
73
82
  LIST_HEIGHT: 32 + 4,
74
83
  MAX_NUMBER_OF_OPTIONS: 7,
75
84
  PADDING_PX: -4
76
85
  }, {
77
- onKeydown: y,
78
- open: c,
79
- toggleMenu: k,
80
- onButtonKeydown: F,
81
- displayedValue: $,
82
- query: T,
83
- containerProps: K,
84
- calculateTableHeight: H,
85
- wrapperProps: A,
86
- filteredOptions: U,
86
+ onKeydown: h,
87
+ open: f,
88
+ toggleMenu: w,
89
+ onButtonKeydown: G,
90
+ query: I,
91
+ containerProps: W,
92
+ calculateTableHeight: M,
93
+ wrapperProps: L,
94
+ filteredOptions: X,
87
95
  allSelected: B,
88
- isIndeterminate: G,
89
- onSelectAll: M,
90
- virtualOptions: L,
91
- isSelected: O,
92
- selectedOption: v,
93
- onSelect: N,
94
- activeIndex: X,
95
- onCancel: q,
96
- onApply: W,
97
- scrollTo: Y,
98
- listRef: j,
99
- buttonRef: J,
100
- apply: Q,
101
- cancel: Z,
102
- el: _,
103
- onClearAllSelections: E,
104
- clearAll: ee
105
- } = me(S, z, P);
106
- D({
107
- selectItem: N,
108
- scrollTo: Y
96
+ isIndeterminate: q,
97
+ onSelectAll: Y,
98
+ virtualOptions: N,
99
+ isSelected: S,
100
+ selectedOption: k,
101
+ onSelect: O,
102
+ activeIndex: E,
103
+ onCancel: j,
104
+ onApply: J,
105
+ scrollTo: Q,
106
+ listRef: Z,
107
+ buttonRef: K,
108
+ apply: _,
109
+ cancel: ee,
110
+ el: te,
111
+ onClearAllSelections: R,
112
+ clearAll: le
113
+ } = be(r, U, H);
114
+ $({
115
+ selectItem: O,
116
+ scrollTo: Q
109
117
  });
110
- const f = ye(S.testId, u);
111
- return (g, l) => (a(), i("div", r({
118
+ const m = we(r.testId, c), D = P(() => !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT ? ye : r.predefinedTrigger === y.APP ? ke : null), { width: oe } = Ie(K), ie = P(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT || r.predefinedTrigger === y.APP ? `${oe.value - 2}px` : "auto"), ne = () => {
119
+ w();
120
+ };
121
+ return (v, o) => (i(), n("div", s({
112
122
  ref_key: "el",
113
- ref: _,
114
- class: ["dropdown", { "dropdown--disabled": t.disabled }],
123
+ ref: te,
124
+ class: ["dropdown dropdown--main-wrapper", { "dropdown--disabled": t.disabled, "full-width": t.fullWidth }],
115
125
  tabindex: t.disabled ? -1 : 0
116
- }, e(f)[e(u).WRAPPER], {
117
- onKeydown: l[7] || (l[7] = //@ts-ignore
118
- (...o) => e(y) && e(y)(...o))
126
+ }, e(m)[e(c).WRAPPER], {
127
+ onKeydown: o[6] || (o[6] = //@ts-ignore
128
+ (...l) => e(h) && e(h)(...l))
119
129
  }), [
120
- h(g.$slots, "label", {}, void 0, !0),
121
- m("div", he, [
122
- n(e(fe), r({
130
+ C(v.$slots, "label", {}, void 0, !0),
131
+ p("div", Ae, [
132
+ a(e(ve), s({
123
133
  theme: t.theme,
124
134
  "popper-class": [
125
135
  t.popperClass,
@@ -132,34 +142,35 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
132
142
  distance: t.distance,
133
143
  flip: t.flip,
134
144
  triggers: [],
135
- shown: !!e(c),
145
+ shown: !!e(f),
136
146
  "auto-hide": !1,
137
147
  container: t.container,
138
148
  "auto-size": t.autoSize
139
- }, e(f)[e(u).TRIGGER]), {
140
- popper: s(() => [
141
- n(le, null, {
142
- default: s(() => [
143
- e(c) ? (a(), i("div", {
149
+ }, e(m)[e(c).TRIGGER]), {
150
+ popper: u(() => [
151
+ a(de, null, {
152
+ default: u(() => [
153
+ e(f) ? (i(), n("div", {
144
154
  key: 0,
145
155
  ref_key: "listRef",
146
- ref: j,
147
- class: R(["light-theme-v4", {
156
+ ref: Z,
157
+ class: z(["light-theme-v4", {
148
158
  "dropdown--disabled": t.disabled,
149
159
  "inline-search": t.inlineSearch
150
- }])
160
+ }]),
161
+ style: re({ width: e(ie) })
151
162
  }, [
152
- e(c) ? (a(), i("div", {
163
+ e(f) ? (i(), n("div", {
153
164
  key: 0,
154
- class: "dropdown",
155
- onKeydown: l[6] || (l[6] = //@ts-ignore
156
- (...o) => e(y) && e(y)(...o))
165
+ class: "dropdown-list-wrapper",
166
+ onKeydown: o[5] || (o[5] = //@ts-ignore
167
+ (...l) => e(h) && e(h)(...l))
157
168
  }, [
158
- e(c) && t.inlineSearch ? (a(), i("div", ve, [
159
- n(e(ce), {
160
- modelValue: e(T),
169
+ e(f) && t.inlineSearch ? (i(), n("div", Oe, [
170
+ a(e(Te), {
171
+ modelValue: e(I),
161
172
  "onUpdate:modelValue": [
162
- l[4] || (l[4] = (o) => oe(T) ? T.value = o : null),
173
+ o[3] || (o[3] = (l) => se(I) ? I.value = l : null),
163
174
  t.onClear
164
175
  ],
165
176
  placeholder: t.inlineSearchPlaceholder,
@@ -167,174 +178,193 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
167
178
  size: "md",
168
179
  "auto-focus": t.searchAutoFocus,
169
180
  "test-id": t.testId,
170
- onKeydown: e(y)
181
+ onKeydown: e(h)
171
182
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
172
183
  ])) : d("", !0),
173
- h(g.$slots, "input-list", { open: e(c) }, void 0, !0),
174
- m("div", r({
184
+ C(v.$slots, "input-list", { open: e(f) }, void 0, !0),
185
+ p("div", s({
175
186
  class: ["list-container", { "list-container--multi": t.multi }],
176
- style: { height: `${e(H)}rem` }
187
+ style: { height: `${e(M)}rem` }
177
188
  }, {
178
- ...e(K),
179
- ...e(f)[e(u).LIST_CONTAINER]
189
+ ...e(W),
190
+ ...e(m)[e(c).LIST_CONTAINER]
180
191
  }), [
181
- m("ul", r(e(A), {
192
+ p("ul", s(e(L), {
182
193
  style: {
183
- height: Number(e(A).style.height) - 4
194
+ height: Number(e(L).style.height) - 4
184
195
  },
185
196
  role: "listbox",
186
197
  class: ["list", { "list--multi": t.multi }]
187
198
  }), [
188
- !e(U).length && !t.loading ? (a(), i("li", Ce, [
189
- n(e(x), r({ variant: "body2" }, e(f)[e(u).NO_RESULT]), {
190
- default: s(() => [
191
- p(ae(t.noResultsText), 1)
199
+ !e(X).length && !t.loading ? (i(), n("li", Ee, [
200
+ a(e(F), s({ variant: "body2" }, e(m)[e(c).NO_RESULT]), {
201
+ default: u(() => [
202
+ g(ue(t.noResultsText), 1)
192
203
  ]),
193
204
  _: 1
194
205
  }, 16)
195
206
  ])) : d("", !0),
196
- t.loading ? (a(), i("li", we, [
197
- n(e(pe)),
198
- n(e(x), null, {
199
- default: s(() => [
200
- p("Loading...")
207
+ t.loading ? (i(), n("li", Ke, [
208
+ a(e(Ce)),
209
+ a(e(F), null, {
210
+ default: u(() => [
211
+ g("Loading...")
201
212
  ]),
202
213
  _: 1
203
214
  })
204
215
  ])) : d("", !0),
205
- t.showSelectAll ? (a(), i("li", Ie, [
206
- n(e(ue), r(
216
+ t.showSelectAll ? (i(), n("li", Re, [
217
+ a(e(x), s(
207
218
  {
208
219
  "aria-selected": e(B),
209
220
  "aria-disabled": !!t.disabled,
210
221
  "selected-prop": e(B),
211
- "is-indeterminate": e(G),
222
+ "is-indeterminate": e(q),
212
223
  "select-all-option": ""
213
224
  },
214
- e(f)[e(u).SELECT_ALL],
225
+ e(m)[e(c).SELECT_ALL],
215
226
  {
216
- onClick: l[5] || (l[5] = V((o) => e(M)(), ["stop"]))
227
+ onClick: o[4] || (o[4] = V((l) => e(Y)(), ["stop"]))
217
228
  }
218
229
  ), {
219
- default: s(() => [
220
- p("Select all ")
230
+ default: u(() => [
231
+ g("Select all ")
221
232
  ]),
222
233
  _: 1
223
234
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
224
235
  ])) : d("", !0),
225
- e(L).length && !t.loading ? (a(!0), i(ie, { key: 3 }, ne(e(L), ({ data: o, index: C }) => (a(), i("li", {
226
- key: C,
227
- "aria-selected": e(O)(w(e(v)), o),
236
+ e(N).length && !t.loading ? (i(!0), n(ce, { key: 3 }, fe(e(N), ({ data: l, index: b }) => (i(), n("li", {
237
+ key: b,
238
+ "aria-selected": e(S)(T(e(k)), l),
228
239
  "aria-disabled": !!t.disabled,
229
- onClick: V(() => e(N)(o, C), ["stop"])
240
+ onClick: V(() => e(O)(l, b), ["stop"])
230
241
  }, [
231
- h(g.$slots, "default", {
232
- option: o,
233
- selected: e(O)(w(e(v)), o),
234
- active: w(e(X)) === C
235
- }, void 0, !0)
236
- ], 8, Se))), 128)) : d("", !0)
242
+ C(v.$slots, "default", {
243
+ option: l,
244
+ selected: e(S)(T(e(k)), l),
245
+ active: T(e(E)) === b
246
+ }, () => [
247
+ a(e(x), {
248
+ option: l,
249
+ selected: e(S)(T(e(k)), l),
250
+ active: T(e(E)) === b,
251
+ "name-key": t.optionNameKey,
252
+ "image-key": t.optionImageKey,
253
+ "icon-key": t.optionIconKey,
254
+ "icon-type": t.optionIconType
255
+ }, null, 8, ["option", "selected", "active", "name-key", "image-key", "icon-key", "icon-type"])
256
+ ], !0)
257
+ ], 8, De))), 128)) : d("", !0)
237
258
  ], 16)
238
259
  ], 16),
239
- t.multi ? (a(), i("div", Ae, [
240
- m("div", Be, [
241
- n(e(I), r(
260
+ t.multi ? (i(), n("div", Pe, [
261
+ p("div", ze, [
262
+ a(e(A), s(
242
263
  {
243
264
  ref_key: "clearAll",
244
- ref: ee,
265
+ ref: le,
245
266
  size: "small",
246
267
  variant: "text",
247
268
  color: "primary"
248
269
  },
249
- e(f)[e(u).ACTION_CLEAR_ALL],
250
- { onClick: e(E) }
270
+ e(m)[e(c).ACTION_CLEAR_ALL],
271
+ { onClick: e(R) }
251
272
  ), {
252
- default: s(() => [
253
- p(" Clear all ")
273
+ default: u(() => [
274
+ g(" Clear all ")
254
275
  ]),
255
276
  _: 1
256
277
  }, 16, ["onClick"])
257
278
  ]),
258
- m("div", Le, [
259
- n(e(I), r(
279
+ p("div", Ve, [
280
+ a(e(A), s(
260
281
  {
261
282
  ref_key: "cancel",
262
- ref: Z,
283
+ ref: ee,
263
284
  size: "small",
264
285
  variant: "outlined",
265
286
  color: "primary"
266
287
  },
267
- e(f)[e(u).ACTION_CANCEL],
268
- { onClick: e(q) }
288
+ e(m)[e(c).ACTION_CANCEL],
289
+ { onClick: e(j) }
269
290
  ), {
270
- default: s(() => [
271
- p(" Cancel ")
291
+ default: u(() => [
292
+ g(" Cancel ")
272
293
  ]),
273
294
  _: 1
274
295
  }, 16, ["onClick"]),
275
- n(e(I), r({
296
+ a(e(A), s({
276
297
  ref_key: "apply",
277
- ref: Q,
298
+ ref: _,
278
299
  "data-testid": "mutli-apply",
279
300
  size: "small",
280
301
  class: "apply-button"
281
- }, e(f)[e(u).ACTION_APPLY], { onClick: e(W) }), {
282
- default: s(() => [
283
- p("Apply ")
302
+ }, e(m)[e(c).ACTION_APPLY], { onClick: e(J) }), {
303
+ default: u(() => [
304
+ g("Apply ")
284
305
  ]),
285
306
  _: 1
286
307
  }, 16, ["onClick"])
287
308
  ])
288
309
  ])) : d("", !0)
289
310
  ], 32)) : d("", !0)
290
- ], 2)) : d("", !0)
311
+ ], 6)) : d("", !0)
291
312
  ]),
292
313
  _: 3
293
314
  })
294
315
  ]),
295
- default: s(() => [
296
- m("div", {
297
- class: R(["button__container", {
298
- "button__container--open": !!e(c),
316
+ default: u(() => [
317
+ p("div", {
318
+ class: z(["button__container", {
319
+ "button__container--open": !!e(f),
299
320
  [`button__container--${t.size}`]: !0,
300
321
  "button__container--disabled": t.disabled
301
322
  }])
302
323
  }, [
303
- h(g.$slots, "dropdown-trigger", {}, () => [
304
- m("div", {
324
+ C(v.$slots, "dropdown-trigger", {}, () => [
325
+ p("div", {
305
326
  ref_key: "buttonRef",
306
- ref: J
327
+ ref: K
307
328
  }, [
308
- !t.predefinedTrigger || t.predefinedTrigger === e(b).DEFAULT ? (a(), i("div", be, [
309
- n(e(de), {
310
- placeholder: e($),
311
- open: e(c),
329
+ e(D) ? (i(), n("div", Le, [
330
+ (i(), me(pe(e(D)), {
331
+ placeholder: t.placeholder,
332
+ open: e(f),
312
333
  label: t.triggerLabel,
313
334
  "hover-help-text": t.triggerHelperText,
314
335
  "feedback-text": t.triggerFeedbackText,
315
336
  "feedback-variant": t.triggerFeedbackVariant,
316
337
  mandatory: t.mandatory,
317
338
  "test-id": t.testId,
318
- onKeydown: e(F),
319
- onClick: l[0] || (l[0] = (o) => e(k)())
320
- }, null, 8, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "mandatory", "test-id", "onKeydown"])
339
+ multi: t.multi,
340
+ "selected-option": e(k),
341
+ "display-value": t.displayValue,
342
+ options: t.options,
343
+ "option-name-key": t.optionNameKey,
344
+ "option-image-key": t.optionImageKey,
345
+ "option-icon-key": t.optionIconKey,
346
+ "option-icon-type": t.optionIconType,
347
+ "value-to-copy": t.valueToCopy,
348
+ onKeydown: e(G),
349
+ onClick: ne
350
+ }, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "mandatory", "test-id", "multi", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "value-to-copy", "onKeydown"]))
321
351
  ])) : d("", !0),
322
- t.predefinedTrigger === e(b).ICON_BUTTON ? (a(), i("div", ke, [
323
- n(e(re), {
324
- onClick: l[1] || (l[1] = (o) => e(k)())
352
+ t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div", Be, [
353
+ a(e(ge), {
354
+ onClick: o[0] || (o[0] = (l) => e(w)())
325
355
  })
326
356
  ])) : d("", !0),
327
- t.predefinedTrigger === e(b).CHIP ? (a(), i("div", Te, [
328
- n(e(se), {
329
- open: e(c),
357
+ t.predefinedTrigger === e(y).CHIP ? (i(), n("div", Ne, [
358
+ a(e(he), {
359
+ open: e(f),
330
360
  label: t.placeholder,
331
361
  "test-id": t.testId,
332
362
  options: t.options,
333
- "selected-option": e(v),
363
+ "selected-option": e(k),
334
364
  "display-value": t.displayValue,
335
365
  multi: t.multi,
336
- onClick: l[2] || (l[2] = (o) => e(k)()),
337
- onClear: l[3] || (l[3] = (o) => e(E)())
366
+ onClick: o[1] || (o[1] = (l) => e(w)()),
367
+ onClear: o[2] || (o[2] = (l) => e(R)())
338
368
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
339
369
  ])) : d("", !0)
340
370
  ], 512)
@@ -344,9 +374,9 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
344
374
  _: 3
345
375
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"])
346
376
  ])
347
- ], 16, ge));
377
+ ], 16, Se));
348
378
  }
349
379
  });
350
380
  export {
351
- qe as default
381
+ ot as default
352
382
  };
@@ -6,6 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6
6
  isIndeterminate?: boolean;
7
7
  selectAllOption?: boolean;
8
8
  active?: boolean;
9
+ nameKey?: string;
10
+ imageKey?: string;
11
+ iconKey?: string;
12
+ iconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
9
13
  }>, {
10
14
  subtitle: string;
11
15
  disabled: boolean;
@@ -13,6 +17,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
13
17
  isIndeterminate: boolean;
14
18
  selectAllOption: boolean;
15
19
  active: any;
20
+ nameKey: any;
21
+ imageKey: any;
22
+ iconKey: any;
23
+ iconType: any;
16
24
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
25
  option?: unknown;
18
26
  subtitle?: string;
@@ -21,6 +29,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
29
  isIndeterminate?: boolean;
22
30
  selectAllOption?: boolean;
23
31
  active?: boolean;
32
+ nameKey?: string;
33
+ imageKey?: string;
34
+ iconKey?: string;
35
+ iconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
24
36
  }>, {
25
37
  subtitle: string;
26
38
  disabled: boolean;
@@ -28,6 +40,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
40
  isIndeterminate: boolean;
29
41
  selectAllOption: boolean;
30
42
  active: any;
43
+ nameKey: any;
44
+ imageKey: any;
45
+ iconKey: any;
46
+ iconType: any;
31
47
  }>>>, {
32
48
  option: any;
33
49
  disabled: boolean;
@@ -35,6 +51,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
51
  subtitle: string;
36
52
  selectAllOption: boolean;
37
53
  active: boolean;
54
+ nameKey: string;
55
+ imageKey: string;
56
+ iconKey: string;
57
+ iconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
38
58
  }>, {
39
59
  image?(_: {}): any;
40
60
  "icon-start"?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./OptionV4.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-92add735"]]);
3
+ // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2a214b95"]]);
5
5
  export {
6
6
  s as default
7
7
  };