@ironsource/shared-ui 2.2.0-rc.48 → 2.2.0-rc.50

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 (92) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  2. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  3. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  5. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  6. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  7. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  8. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  9. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  10. package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +1 -0
  11. package/README.md +2 -2
  12. package/SearchV4.vue_vue_type_style_index_0_scoped_d6c42f4b_lang.css +1 -0
  13. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  14. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  15. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  16. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
  17. package/components/autocomplete/index.d.ts +16 -16
  18. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  19. package/components/columnPicker/index.d.ts +20 -20
  20. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  21. package/components/dateRange/v4/DateRangeV4.vue2.js +27 -28
  22. package/components/dropdown/common/Dropdown.common.js +274 -351
  23. package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
  24. package/components/dropdown/v3/index.d.ts +77 -77
  25. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  26. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +32 -38
  27. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +1 -1
  28. package/components/dropdown/v4/DropdownV4.vue.d.ts +41 -50
  29. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  30. package/components/dropdown/v4/DropdownV4.vue2.js +216 -237
  31. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +0 -5
  32. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +3 -3
  33. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +9 -12
  34. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  35. package/components/dropdown/v4/OptionV4.vue2.js +12 -12
  36. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  37. package/components/dropdown/v4/index.d.ts +2102 -2130
  38. package/components/helpText/HelpText.vue.js +3 -3
  39. package/components/helpText/HelpText.vue2.js +10 -11
  40. package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
  41. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
  42. package/components/includeExclude/index.d.ts +54 -54
  43. package/components/inlineCopy/InlineCopy.vue.d.ts +0 -5
  44. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  45. package/components/inlineCopy/InlineCopy.vue2.js +53 -54
  46. package/components/inlineCopy/index.d.ts +0 -9
  47. package/components/input/v4/TextField.vue.d.ts +0 -5
  48. package/components/input/v4/TextField.vue.js +2 -2
  49. package/components/input/v4/TextField.vue2.js +19 -22
  50. package/components/input/v4/index.d.ts +1 -20
  51. package/components/link/Link.vue.js +5 -5
  52. package/components/link/Link.vue2.js +21 -30
  53. package/components/search/v4/SearchV4.vue.d.ts +0 -5
  54. package/components/search/v4/SearchV4.vue.js +5 -5
  55. package/components/search/v4/SearchV4.vue2.js +18 -23
  56. package/components/search/v4/index.d.ts +0 -9
  57. package/components/shared/FieldLabel.vue.js +3 -3
  58. package/components/shared/FieldLabel.vue2.js +8 -9
  59. package/components/table/v4/DataGridMenu.vue.d.ts +0 -5
  60. package/components/table/v4/DataGridMenu.vue.js +5 -5
  61. package/components/table/v4/DataGridMenu.vue2.js +22 -28
  62. package/components/table/v4/index.d.ts +0 -9
  63. package/components/tabs/v4/TabsV4.vue.d.ts +0 -5
  64. package/components/tabs/v4/TabsV4.vue.js +3 -3
  65. package/components/tabs/v4/TabsV4.vue2.js +43 -74
  66. package/components/tabs/v4/index.d.ts +1 -20
  67. package/components/toggle/v4/ToggleV4.vue.d.ts +0 -5
  68. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  69. package/components/toggle/v4/ToggleV4.vue2.js +41 -50
  70. package/components/toggle/v4/index.d.ts +1 -20
  71. package/components/tooltip/v4/TooltipV4.vue.d.ts +1 -14
  72. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  73. package/components/tooltip/v4/TooltipV4.vue2.js +63 -85
  74. package/components/tooltip/v4/index.d.ts +4 -51
  75. package/index.d.ts +2404 -2722
  76. package/index.js +1 -1
  77. package/package.json +1 -5
  78. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css +0 -1
  79. package/DataGridMenu.vue_vue_type_style_index_0_scoped_b7e65177_lang.css +0 -1
  80. package/DateRangeV4.vue_vue_type_style_index_0_scoped_bb44cdf8_lang.css +0 -1
  81. package/DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css +0 -1
  82. package/FieldLabel.vue_vue_type_style_index_0_scoped_960ea8b1_lang.css +0 -1
  83. package/HelpText.vue_vue_type_style_index_0_scoped_b5caf7cd_lang.css +0 -1
  84. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_2a5345ef_lang.css +0 -1
  85. package/InlineCopy.vue_vue_type_style_index_0_scoped_8cb01c9d_lang.css +0 -1
  86. package/Link.vue_vue_type_style_index_0_scoped_c4345b08_lang.css +0 -1
  87. package/OptionV4.vue_vue_type_style_index_0_scoped_d48a9318_lang.css +0 -1
  88. package/SearchV4.vue_vue_type_style_index_0_scoped_e1a33934_lang.css +0 -1
  89. package/TabsV4.vue_vue_type_style_index_0_scoped_9747c9da_lang.css +0 -1
  90. package/TextField.vue_vue_type_style_index_0_scoped_f4275491_lang.css +0 -1
  91. package/ToggleV4.vue_vue_type_style_index_0_scoped_fbbae882_lang.css +0 -1
  92. package/TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css +0 -1
@@ -1,47 +1,45 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as we, computed as A, watch as ke, toRaw as S, openBlock as a, createElementBlock as u, mergeProps as m, unref as t, renderSlot as c, createElementVNode as f, createVNode as d, withCtx as y, Transition as ve, normalizeClass as F, normalizeStyle as Ie, createTextVNode as b, createCommentVNode as r, isRef as Se, toDisplayString as j, withModifiers as J, Fragment as Ce, renderList as Ke, createSlots as xe, createBlock as P, resolveDynamicComponent as Ee } from "vue";
2
- import N from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as he, computed as L, watch as ke, toRaw as S, openBlock as a, createElementBlock as s, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as k, createCommentVNode as r, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
2
+ import P from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
5
5
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
6
  import "./DropdownV4.vue.js";
7
- import Ae from "./DefaultDropdownTrigger.vue.js";
8
- import Le from "./IconButtonDropdownTrigger.vue.js";
9
- import Oe from "./ChipDropdownTrigger.vue.js";
10
- import Be from "./AppDropdownTrigger.vue.js";
7
+ import Ee from "./DefaultDropdownTrigger.vue.js";
8
+ import Ae from "./IconButtonDropdownTrigger.vue.js";
9
+ import xe from "./ChipDropdownTrigger.vue.js";
10
+ import Oe from "./AppDropdownTrigger.vue.js";
11
11
  import "./ButtonDropdownTrigger.vue.js";
12
12
  import "./ButtonFilterDropdownTrigger.vue.js";
13
13
  import "./TreeDropdown.vue.js";
14
- import Q from "./OptionV4.vue.js";
14
+ import J from "./OptionV4.vue.js";
15
15
  import "./ConditionalDropdown.vue.js";
16
- import $e from "../../search/v4/SearchV4.vue.js";
17
- import Z from "../../typography/v4/Typography.vue.js";
18
- import { Dropdown as Fe } from "floating-vue";
16
+ import Le from "../../search/v4/SearchV4.vue.js";
17
+ import Q from "../../typography/v4/Typography.vue.js";
18
+ import { Dropdown as Be } from "floating-vue";
19
19
  import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
20
- import { dropdownCommon as Pe } from "../common/Dropdown.common.js";
21
- import L from "../../skeleton/v4/SkeletonV4.vue.js";
22
- import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
20
+ import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
21
+ import K from "../../skeleton/v4/SkeletonV4.vue.js";
22
+ import { useTestIdAttrs as Pe } from "../../../utils/testIds.js";
23
23
  import { TRIGGERS as w } from "./Dropdown.types.js";
24
- import { useElementSize as Ve } from "@vueuse/core";
25
- import De from "../../shared/FieldHelpText.vue.js";
26
- import Me from "./GroupOption.vue.js";
27
- const Re = ["tabindex", "aria-label", "aria-expanded", "aria-disabled", "aria-controls", "aria-activedescendant"], ze = { style: { width: "100%" } }, We = { key: 0 }, Ge = { key: 1 }, He = { key: 2 }, Ue = {
24
+ import { useElementSize as Ne } from "@vueuse/core";
25
+ import Ve from "../../shared/FieldHelpText.vue.js";
26
+ import De from "./GroupOption.vue.js";
27
+ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze = { key: 1 }, We = { key: 2 }, Ge = {
28
28
  key: 0,
29
29
  class: "inline-search-wrapper"
30
- }, Ye = { class: "dropdown-conditions" }, Xe = ["id", "aria-multiselectable"], qe = {
30
+ }, He = { class: "dropdown-conditions" }, Ue = {
31
31
  key: 0,
32
32
  class: "no-result-container"
33
- }, je = ["id", "aria-selected"], Je = ["id", "aria-selected", "aria-disabled", "onClick"], Qe = {
33
+ }, Ye = ["aria-selected", "aria-disabled", "onClick"], Xe = {
34
34
  key: 3,
35
35
  class: "loader"
36
- }, Ze = {
36
+ }, qe = {
37
37
  key: 1,
38
38
  class: "actions-wrapper"
39
- }, _e = { class: "actions-clear-all" }, et = { class: "actions-apply-cancel" }, tt = {
39
+ }, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, Qe = {
40
40
  key: 2,
41
41
  class: "dropdown-footer"
42
- };
43
- let ot = 0;
44
- const Lt = /* @__PURE__ */ we({
42
+ }, Ct = /* @__PURE__ */ he({
45
43
  __name: "DropdownV4",
46
44
  props: {
47
45
  modelValue: { default: null },
@@ -116,12 +114,11 @@ const Lt = /* @__PURE__ */ we({
116
114
  statusType: { default: null },
117
115
  disableVirtualScroll: { type: Boolean, default: !1 },
118
116
  overrideOptionCountCalculation: { type: Function, default: null },
119
- withConditions: { type: Boolean, default: !1 },
120
- ariaLabel: { default: "" }
117
+ withConditions: { type: Boolean, default: !1 }
121
118
  },
122
119
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
123
- setup(e, { expose: _, emit: V }) {
124
- const o = e, D = {
120
+ setup(e, { expose: Z, emit: N }) {
121
+ const o = e, V = {
125
122
  MULTILINE_LIST_HEIGHT: 48,
126
123
  LIST_HEIGHT: 32 + 4,
127
124
  MAX_NUMBER_OF_OPTIONS: 7.5,
@@ -129,42 +126,39 @@ const Lt = /* @__PURE__ */ we({
129
126
  DROPLIST_MIN_WIDTH: 240,
130
127
  VERSION: 4
131
128
  }, {
132
- onKeydown: C,
133
- open: s,
134
- toggleMenu: K,
135
- onButtonKeydown: M,
136
- query: x,
137
- containerProps: ee,
138
- calculateTableHeight: te,
139
- wrapperProps: oe,
140
- filteredOptions: ie,
141
- allSelected: R,
142
- allSelectedApplied: O,
143
- isIndeterminate: le,
144
- onSelectAll: ne,
145
- virtualOptions: z,
146
- isSelected: B,
129
+ onKeydown: I,
130
+ open: y,
131
+ toggleMenu: v,
132
+ onButtonKeydown: D,
133
+ query: C,
134
+ containerProps: _,
135
+ calculateTableHeight: ee,
136
+ wrapperProps: te,
137
+ filteredOptions: oe,
138
+ allSelected: $,
139
+ allSelectedApplied: E,
140
+ isIndeterminate: ne,
141
+ onSelectAll: le,
142
+ virtualOptions: M,
143
+ isSelected: A,
147
144
  selectedOption: T,
148
- selectedOptionPrevious: $,
149
- selectedValue: ae,
150
- onSelect: W,
151
- activeIndex: k,
152
- onCancel: de,
153
- onApply: re,
154
- scrollTo: se,
155
- listRef: ue,
156
- buttonRef: G,
157
- apply: ce,
158
- cancel: ye,
159
- el: me,
160
- onClearAllSelections: H,
161
- clearAll: fe,
162
- isGroup: pe,
163
- flattenAndMarkGroupOptions: ge
164
- } = Pe(o, V, D), g = Ne(o.testId, p), v = o.testId ? `${o.testId}-listbox` : `is-dropdown-listbox-${++ot}`, he = A(() => {
165
- if (!(!s.value || k.value == null))
166
- return k.value === -1 ? `${v}-select-all` : `${v}-option-${k.value}`;
167
- }), U = A(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Be : null), { width: Y } = Ve(G), Te = A(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? Y.value - 2 > 240 ? `${Y.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
145
+ selectedOptionPrevious: x,
146
+ selectedValue: ie,
147
+ onSelect: R,
148
+ activeIndex: z,
149
+ onCancel: ae,
150
+ onApply: de,
151
+ scrollTo: re,
152
+ listRef: se,
153
+ buttonRef: W,
154
+ apply: ue,
155
+ cancel: ce,
156
+ el: ye,
157
+ onClearAllSelections: G,
158
+ clearAll: me,
159
+ isGroup: fe,
160
+ flattenAndMarkGroupOptions: pe
161
+ } = Fe(o, N, V), g = Pe(o.testId, p), H = L(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ee : o.predefinedTrigger === w.APP ? Oe : null), { width: U } = Ne(W), ge = L(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${V.DROPLIST_MIN_WIDTH}px` : "auto");
168
162
  ke(
169
163
  () => o.optionsListWidth,
170
164
  () => {
@@ -174,60 +168,53 @@ const Lt = /* @__PURE__ */ we({
174
168
  );
175
169
  }
176
170
  );
177
- const X = () => {
178
- K();
179
- }, q = A(() => {
180
- const i = {
171
+ const Y = () => {
172
+ v();
173
+ }, X = L(() => {
174
+ const n = {
181
175
  tooltipMessage: null,
182
176
  selections: []
183
177
  };
184
178
  if (o.multi && o.comparingKey) {
185
- const n = S(T.value);
179
+ const i = S(T.value);
186
180
  if (o.minSelections || o.maxSelections) {
187
- if (Array.isArray(n) && n.length <= o.minSelections)
188
- return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = n.map(
181
+ if (Array.isArray(i) && i.length <= o.minSelections)
182
+ return n.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, n.selections = i.map(
189
183
  (l) => l[o.comparingKey]
190
- ), i;
191
- if (o.maxSelections && Array.isArray(n) && n.length >= o.maxSelections) {
192
- const l = n.map(
193
- (I) => I[o.comparingKey]
194
- ), h = o.groupedOptions ? ge(o.options) : o.options;
195
- return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = h.map((I) => {
196
- if (!l.includes(I[o.comparingKey]))
197
- return I[o.comparingKey];
198
- }), i;
184
+ ), n;
185
+ if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
186
+ const l = i.map(
187
+ (b) => b[o.comparingKey]
188
+ ), h = o.groupedOptions ? pe(o.options) : o.options;
189
+ return n.tooltipMessage = `You can only select up to ${o.maxSelections} items`, n.selections = h.map((b) => {
190
+ if (!l.includes(b[o.comparingKey]))
191
+ return b[o.comparingKey];
192
+ }), n;
199
193
  }
200
194
  }
201
195
  }
202
- return i.tooltipMessage = null, i.selections = [], i;
203
- }), be = (i) => {
196
+ return n.tooltipMessage = null, n.selections = [], n;
197
+ }), Te = (n) => {
204
198
  if ((o.minSelections || o.maxSelections) && o.comparingKey)
205
- return q.value.selections.includes(
206
- i[o.comparingKey]
199
+ return X.value.selections.includes(
200
+ n[o.comparingKey]
207
201
  );
208
- }, E = (i) => i[o.disabledOptionKey] || be(i);
209
- return _({
210
- selectItem: W,
211
- scrollTo: se
212
- }), (i, n) => (a(), u("div", m({
202
+ }, O = (n) => n[o.disabledOptionKey] || Te(n);
203
+ return Z({
204
+ selectItem: R,
205
+ scrollTo: re
206
+ }), (n, i) => (a(), s("div", m({
213
207
  ref_key: "el",
214
- ref: me,
208
+ ref: ye,
215
209
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
216
- tabindex: e.disabled ? -1 : 0,
217
- role: "combobox",
218
- "aria-haspopup": "listbox",
219
- "aria-label": e.ariaLabel || void 0,
220
- "aria-expanded": !!t(s),
221
- "aria-disabled": e.disabled || void 0,
222
- "aria-controls": t(s) ? t(v) : void 0,
223
- "aria-activedescendant": t(he)
210
+ tabindex: e.disabled ? -1 : 0
224
211
  }, t(g)[t(p).WRAPPER], {
225
- onKeydown: n[8] || (n[8] = //@ts-ignore
226
- (...l) => t(C) && t(C)(...l))
212
+ onKeydown: i[8] || (i[8] = //@ts-ignore
213
+ (...l) => t(I) && t(I)(...l))
227
214
  }), [
228
- c(i.$slots, "label", {}, void 0, !0),
229
- f("div", ze, [
230
- d(t(Fe), m({
215
+ u(n.$slots, "label", {}, void 0, !0),
216
+ f("div", Me, [
217
+ d(t(Be), m({
231
218
  theme: e.theme,
232
219
  "popper-class": [
233
220
  e.popperClass,
@@ -240,49 +227,49 @@ const Lt = /* @__PURE__ */ we({
240
227
  distance: e.distance,
241
228
  flip: e.flip,
242
229
  triggers: [],
243
- shown: !!t(s),
230
+ shown: !!t(y),
244
231
  "auto-hide": !1,
245
232
  container: e.container,
246
233
  "auto-size": e.autoSize
247
234
  }, t(g)[t(p).TRIGGER]), {
248
- popper: y(() => [
249
- d(ve, null, {
250
- default: y(() => [
251
- t(s) ? (a(), u("div", {
235
+ popper: c(() => [
236
+ d(we, null, {
237
+ default: c(() => [
238
+ t(y) ? (a(), s("div", {
252
239
  key: 0,
253
240
  ref_key: "listRef",
254
- ref: ue,
255
- class: F(["light-theme-v4", {
241
+ ref: se,
242
+ class: B(["light-theme-v4", {
256
243
  "dropdown--disabled": e.disabled,
257
244
  "inline-search": e.inlineSearch
258
245
  }]),
259
- style: Ie({ width: t(Te) })
246
+ style: be({ width: t(ge) })
260
247
  }, [
261
- t(s) ? (a(), u("div", {
248
+ t(y) ? (a(), s("div", {
262
249
  key: 0,
263
- class: F(["dropdown-list-wrapper", {
250
+ class: B(["dropdown-list-wrapper", {
264
251
  "dropdown-list-wrapper--multi": e.multi,
265
252
  "dropdown-list-wrapper-always-show-scroll": e.alwaysShowScroll
266
253
  }]),
267
- onKeydown: n[7] || (n[7] = //@ts-ignore
268
- (...l) => t(C) && t(C)(...l))
254
+ onKeydown: i[7] || (i[7] = //@ts-ignore
255
+ (...l) => t(I) && t(I)(...l))
269
256
  }, [
270
- t(s) && e.inlineSearch ? (a(), u("div", Ue, [
271
- e.withConditions ? c(i.$slots, "dropdown-conditions", { key: 0 }, () => [
272
- f("div", Ye, [
273
- d(t(Z), { variant: "body2" }, {
274
- default: y(() => [
275
- b("Conditions")
257
+ t(y) && e.inlineSearch ? (a(), s("div", Ge, [
258
+ e.withConditions ? u(n.$slots, "dropdown-conditions", { key: 0 }, () => [
259
+ f("div", He, [
260
+ d(t(Q), { variant: "body2" }, {
261
+ default: c(() => [
262
+ k("Conditions")
276
263
  ]),
277
264
  _: 1
278
265
  })
279
266
  ])
280
267
  ], !0) : r("", !0),
281
- c(i.$slots, "inline-search", {}, () => [
282
- d(t($e), {
283
- modelValue: t(x),
268
+ u(n.$slots, "inline-search", {}, () => [
269
+ d(t(Le), {
270
+ modelValue: t(C),
284
271
  "onUpdate:modelValue": [
285
- n[4] || (n[4] = (l) => Se(x) ? x.value = l : null),
272
+ i[4] || (i[4] = (l) => Ie(C) ? C.value = l : null),
286
273
  e.onClearSearch
287
274
  ],
288
275
  placeholder: e.inlineSearchPlaceholder,
@@ -290,93 +277,86 @@ const Lt = /* @__PURE__ */ we({
290
277
  size: "md",
291
278
  "auto-focus": e.searchAutoFocus,
292
279
  "test-id": e.testId,
293
- onKeydown: t(C)
280
+ onKeydown: t(I)
294
281
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
295
282
  ], !0)
296
283
  ])) : r("", !0),
297
- c(i.$slots, "input-list", { open: t(s) }, void 0, !0),
284
+ u(n.$slots, "input-list", { open: t(y) }, void 0, !0),
298
285
  f("div", m({
299
286
  class: ["list-container", { "list-container--multi": e.multi }],
300
- style: { height: `${t(te)}rem` }
287
+ style: { height: `${t(ee)}rem` }
301
288
  }, {
302
- ...t(ee),
289
+ ...t(_),
303
290
  ...t(g)[t(p).LIST_CONTAINER]
304
291
  }), [
305
- c(i.$slots, "custom-list-area", {}, void 0, !0),
306
- f("ul", m({ id: t(v) }, t(oe), {
292
+ u(n.$slots, "custom-list-area", {}, void 0, !0),
293
+ f("ul", m(t(te), {
307
294
  role: "listbox",
308
- "aria-multiselectable": e.multi || void 0,
309
295
  class: ["list", {
310
296
  "list--multi": e.multi,
311
297
  "list--with-conditions": e.withConditions
312
298
  }]
313
299
  }), [
314
- !t(ie).length && !e.loading && !e.withConditions ? (a(), u("li", qe, [
315
- d(t(Z), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
316
- default: y(() => [
317
- b(j(e.noResultsText), 1)
300
+ !t(oe).length && !e.loading && !e.withConditions ? (a(), s("li", Ue, [
301
+ d(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
302
+ default: c(() => [
303
+ k(q(e.noResultsText), 1)
318
304
  ]),
319
305
  _: 1
320
306
  }, 16)
321
307
  ])) : r("", !0),
322
- e.showSelectAll !== !1 && e.multi && !t(x) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? c(i.$slots, "select-all", { key: 1 }, () => [
323
- f("li", {
324
- id: `${t(v)}-select-all`,
325
- role: "option",
326
- "aria-selected": t(R)
327
- }, [
328
- d(t(Q), m(
308
+ e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? u(n.$slots, "select-all", { key: 1 }, () => [
309
+ f("li", null, [
310
+ d(t(J), m(
329
311
  {
312
+ "aria-selected": t($),
330
313
  "aria-disabled": !!e.disabled,
331
- "selected-prop": t(R),
332
- active: S(t(k)) === -1,
333
- "is-indeterminate": t(le),
314
+ "selected-prop": t($),
315
+ "is-indeterminate": t(ne),
334
316
  "is-multi": e.multi,
335
317
  "select-all-option": ""
336
318
  },
337
319
  t(g)[t(p).SELECT_ALL],
338
320
  {
339
- onClick: n[5] || (n[5] = J((l) => t(ne)(), ["stop"]))
321
+ onClick: i[5] || (i[5] = j((l) => t(le)(), ["stop"]))
340
322
  }
341
323
  ), {
342
- default: y(() => [
343
- b(" Select all ")
324
+ default: c(() => [
325
+ k(" Select all ")
344
326
  ]),
345
327
  _: 1
346
- }, 16, ["aria-disabled", "selected-prop", "active", "is-indeterminate", "is-multi"])
347
- ], 8, je)
328
+ }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
329
+ ])
348
330
  ], !0) : r("", !0),
349
- t(z).length && !e.loading ? (a(!0), u(Ce, { key: 2 }, Ke(t(z), ({ data: l, index: h }) => (a(), u("li", {
350
- id: `${t(v)}-option-${h}`,
331
+ t(M).length && !e.loading ? (a(!0), s(Se, { key: 2 }, ve(t(M), ({ data: l, index: h }) => (a(), s("li", {
351
332
  key: h,
352
- role: "option",
353
- "aria-selected": t(B)(S(t(T)), l),
354
- "aria-disabled": E(l) || void 0,
355
- onClick: J(
356
- () => !E(l) && t(W)(l, h),
333
+ "aria-selected": t(A)(S(t(T)), l),
334
+ "aria-disabled": !!e.disabled,
335
+ onClick: j(
336
+ () => !O(l) && t(R)(l, h),
357
337
  ["stop"]
358
338
  )
359
339
  }, [
360
- e.groupedOptions && t(pe)(l) ? c(i.$slots, "group-option", { key: 0 }, () => [
361
- d(Me, null, {
362
- default: y(() => [
363
- b(j(e.displayValue(l) || l[e.optionNameKey]), 1)
340
+ e.groupedOptions && t(fe)(l) ? u(n.$slots, "group-option", { key: 0 }, () => [
341
+ d(De, null, {
342
+ default: c(() => [
343
+ k(q(e.displayValue(l) || l[e.optionNameKey]), 1)
364
344
  ]),
365
345
  _: 2
366
346
  }, 1024)
367
- ], !0) : c(i.$slots, "default", {
347
+ ], !0) : u(n.$slots, "default", {
368
348
  key: 1,
369
349
  option: l,
370
350
  index: h,
371
- selected: t(B)(S(t(T)), l),
372
- active: S(t(k)) === h,
373
- disabled: E(l)
351
+ selected: t(A)(S(t(T)), l),
352
+ active: S(t(z)) === h,
353
+ disabled: O(l)
374
354
  }, () => [
375
- d(t(Q), {
355
+ d(t(J), {
376
356
  option: l,
377
- "selected-prop": t(B)(t(T), l),
378
- active: S(t(k)) === h,
379
- disabled: E(l),
357
+ "selected-prop": t(A)(t(T), l),
358
+ active: S(t(z)) === h,
359
+ disabled: O(l),
380
360
  "name-key": e.optionNameKey,
381
361
  "image-key": e.optionImageKey,
382
362
  "icon-key": e.optionIconKey,
@@ -390,81 +370,81 @@ const Lt = /* @__PURE__ */ we({
390
370
  "option-two-lines-key": e.optionTwoLinesKey,
391
371
  "tooltip-placement": e.optionTooltipPosition,
392
372
  "is-multi": e.multi,
393
- "min-max-selection-tooltip-message": t(q)?.tooltipMessage
394
- }, xe({ _: 2 }, [
395
- i.$slots["option-end"] ? {
373
+ "min-max-selection-tooltip-message": t(X)?.tooltipMessage
374
+ }, Ce({ _: 2 }, [
375
+ n.$slots["option-end"] ? {
396
376
  name: "option-end",
397
- fn: y(({ option: I }) => [
398
- c(i.$slots, "option-end", { option: I }, void 0, !0)
377
+ fn: c(({ option: b }) => [
378
+ u(n.$slots, "option-end", { option: b }, void 0, !0)
399
379
  ]),
400
380
  key: "0"
401
381
  } : void 0
402
382
  ]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
403
383
  ], !0)
404
- ], 8, Je))), 128)) : r("", !0),
405
- e.loading || e.loadMoreLoading ? (a(), u("li", Qe, [
406
- d(t(L), { round: "" }),
407
- d(t(L), { round: "" }),
408
- d(t(L), { round: "" }),
409
- d(t(L), { round: "" })
384
+ ], 8, Ye))), 128)) : r("", !0),
385
+ e.loading || e.loadMoreLoading ? (a(), s("li", Xe, [
386
+ d(t(K), { round: "" }),
387
+ d(t(K), { round: "" }),
388
+ d(t(K), { round: "" }),
389
+ d(t(K), { round: "" })
410
390
  ])) : r("", !0)
411
- ], 16, Xe)
391
+ ], 16)
412
392
  ], 16),
413
- e.multi ? (a(), u("div", Ze, [
414
- f("div", _e, [
415
- e.showClearAll ? (a(), P(t(N), m(
393
+ e.multi ? (a(), s("div", qe, [
394
+ f("div", je, [
395
+ e.showClearAll ? (a(), F(t(P), m(
416
396
  {
417
397
  key: 0,
418
398
  ref_key: "clearAll",
419
- ref: fe,
399
+ ref: me,
420
400
  size: "small",
421
401
  variant: "text",
422
402
  color: "primary"
423
403
  },
424
404
  t(g)[t(p).ACTION_CLEAR_ALL],
425
405
  {
426
- onClick: n[6] || (n[6] = () => t(H)(!1))
406
+ onClick: i[6] || (i[6] = () => t(G)(!1))
427
407
  }
428
408
  ), {
429
- default: y(() => [
430
- b(" Clear all ")
409
+ default: c(() => [
410
+ k(" Clear all ")
431
411
  ]),
432
412
  _: 1
433
413
  }, 16)) : r("", !0)
434
414
  ]),
435
- f("div", et, [
436
- d(t(N), m(
415
+ f("div", Je, [
416
+ d(t(P), m(
437
417
  {
438
418
  ref_key: "cancel",
439
- ref: ye,
419
+ ref: ce,
440
420
  size: "small",
441
421
  variant: "outlined",
442
422
  color: "default"
443
423
  },
444
424
  t(g)[t(p).ACTION_CANCEL],
445
- { onClick: t(de) }
425
+ { onClick: t(ae) }
446
426
  ), {
447
- default: y(() => [
448
- b(" Cancel ")
427
+ default: c(() => [
428
+ k(" Cancel ")
449
429
  ]),
450
430
  _: 1
451
431
  }, 16, ["onClick"]),
452
- d(t(N), m({
432
+ d(t(P), m({
453
433
  ref_key: "apply",
454
- ref: ce,
434
+ ref: ue,
455
435
  "data-testid": "mutli-apply",
456
436
  size: "small",
457
437
  class: "apply-button"
458
- }, t(g)[t(p).ACTION_APPLY], { onClick: t(re) }), {
459
- default: y(() => [
460
- b(" Apply ")
438
+ }, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
439
+ default: c(() => [
440
+ k(" Apply ")
461
441
  ]),
462
442
  _: 1
463
443
  }, 16, ["onClick"])
464
444
  ])
465
445
  ])) : r("", !0),
466
- i.$slots.footer ? (a(), u("div", tt, [
467
- c(i.$slots, "footer", {}, void 0, !0)
446
+ n.$slots.footer ? (a(), s("div", Qe, [
447
+ u(n.$slots, "footer", {}, void 0, !0)
468
448
  ])) : r("", !0)
469
449
  ], 34)) : r("", !0)
470
450
  ], 6)) : r("", !0)
@@ -472,36 +452,36 @@ const Lt = /* @__PURE__ */ we({
472
452
  _: 3
473
453
  })
474
454
  ]),
475
- default: y(() => [
455
+ default: c(() => [
476
456
  f("div", {
477
- class: F(["button__container", {
478
- "button__container--open": !!t(s),
457
+ class: B(["button__container", {
458
+ "button__container--open": !!t(y),
479
459
  [`button__container--${e.size}`]: !0,
480
460
  "button__container--disabled": e.disabled
481
461
  }])
482
462
  }, [
483
463
  f("div", {
484
464
  ref_key: "buttonRef",
485
- ref: G
465
+ ref: W
486
466
  }, [
487
- c(i.$slots, "dropdown-trigger", {
467
+ u(n.$slots, "dropdown-trigger", {
488
468
  buttonTriggerProps: {
489
- open: t(s),
469
+ open: t(y),
490
470
  disabled: e.disabled,
491
- label: t(ae) || e.placeholder,
492
- onClick: () => t(K)(),
471
+ label: t(ie) || e.placeholder,
472
+ onClick: () => t(v)(),
493
473
  testId: e.testId
494
474
  },
495
475
  defaultTriggerProps: {
496
476
  placeholder: e.placeholder,
497
- open: t(s),
477
+ open: t(y),
498
478
  label: e.triggerLabel,
499
479
  showFeedbackIcon: e.triggerFeedbackShowIcon,
500
480
  mandatory: e.mandatory,
501
481
  testId: e.testId,
502
482
  multi: e.multi,
503
483
  disabled: e.disabled,
504
- selectedOption: e.multi ? t($) : t(T),
484
+ selectedOption: e.multi ? t(x) : t(T),
505
485
  displayValue: e.displayValue,
506
486
  options: e.options,
507
487
  optionNameKey: e.optionNameKey,
@@ -517,25 +497,25 @@ const Lt = /* @__PURE__ */ we({
517
497
  statusDotType: e.statusType,
518
498
  size: e.size,
519
499
  showAllSelectedText: e.triggerShowAllSelectedText,
520
- allSelected: t(O),
500
+ allSelected: t(E),
521
501
  inlineError: e.inlineError,
522
502
  inlineErrorText: e.inlineErrorText,
523
503
  inlineErrorTextPlacement: e.inlineErrorTextPlacement,
524
- onKeydown: t(M),
525
- onClick: X
504
+ onKeydown: t(D),
505
+ onClick: Y
526
506
  }
527
507
  }, () => [
528
- t(U) ? (a(), u("div", We, [
529
- (a(), P(Ee(t(U)), {
508
+ t(H) ? (a(), s("div", Re, [
509
+ (a(), F(Ke(t(H)), {
530
510
  placeholder: e.placeholder,
531
- open: t(s),
511
+ open: t(y),
532
512
  label: e.triggerLabel,
533
513
  "show-feedback-icon": e.triggerFeedbackShowIcon,
534
514
  mandatory: e.mandatory,
535
515
  "test-id": e.testId,
536
516
  multi: e.multi,
537
517
  disabled: e.disabled,
538
- "selected-option": e.multi ? t($) : t(T),
518
+ "selected-option": e.multi ? t(x) : t(T),
539
519
  "display-value": e.displayValue,
540
520
  options: e.options,
541
521
  "option-name-key": e.optionNameKey,
@@ -551,34 +531,33 @@ const Lt = /* @__PURE__ */ we({
551
531
  "status-dot-type": e.statusType,
552
532
  size: e.size,
553
533
  "show-all-selected-text": e.triggerShowAllSelectedText,
554
- "all-selected": t(O),
534
+ "all-selected": t(E),
555
535
  "inline-error": e.inlineError,
556
536
  "inline-error-text": e.inlineErrorText,
557
537
  "inline-error-text-placement": e.inlineErrorTextPlacement,
558
- onKeydown: t(M),
559
- onClick: X,
560
- onCopyToClipboard: n[0] || (n[0] = (l) => V("copyToClipboard"))
538
+ onKeydown: t(D),
539
+ onClick: Y,
540
+ onCopyToClipboard: i[0] || (i[0] = (l) => N("copyToClipboard"))
561
541
  }, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "inline-error", "inline-error-text", "inline-error-text-placement", "onKeydown"]))
562
542
  ])) : r("", !0),
563
- e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), u("div", Ge, [
564
- d(t(Le), {
565
- "aria-label": e.ariaLabel || void 0,
566
- onClick: n[1] || (n[1] = (l) => t(K)())
567
- }, null, 8, ["aria-label"])
543
+ e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), s("div", ze, [
544
+ d(t(Ae), {
545
+ onClick: i[1] || (i[1] = (l) => t(v)())
546
+ })
568
547
  ])) : r("", !0),
569
- e.predefinedTrigger === t(w).CHIP ? (a(), u("div", He, [
570
- d(t(Oe), {
571
- open: t(s),
548
+ e.predefinedTrigger === t(w).CHIP ? (a(), s("div", We, [
549
+ d(t(xe), {
550
+ open: t(y),
572
551
  label: e.placeholder,
573
552
  "test-id": e.testId,
574
553
  options: e.options,
575
- "selected-option": e.multi ? t($) : t(T),
554
+ "selected-option": e.multi ? t(x) : t(T),
576
555
  "display-value": e.displayValue,
577
556
  multi: e.multi,
578
- "all-selected": t(O),
557
+ "all-selected": t(E),
579
558
  "shown-values-count": e.triggerShownValuesCount,
580
- onClick: n[2] || (n[2] = (l) => t(K)()),
581
- onClear: n[3] || (n[3] = (l) => t(H)())
559
+ onClick: i[2] || (i[2] = (l) => t(v)()),
560
+ onClear: i[3] || (i[3] = (l) => t(G)())
582
561
  }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
583
562
  ])) : r("", !0)
584
563
  ], !0)
@@ -587,7 +566,7 @@ const Lt = /* @__PURE__ */ we({
587
566
  ]),
588
567
  _: 3
589
568
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
590
- e.triggerFeedbackText ? (a(), P(De, {
569
+ e.triggerFeedbackText ? (a(), F(Ve, {
591
570
  key: 0,
592
571
  text: e.triggerFeedbackText,
593
572
  variant: e.triggerFeedbackVariant,
@@ -596,9 +575,9 @@ const Lt = /* @__PURE__ */ we({
596
575
  class: "dropdown-field-help-text"
597
576
  }, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
598
577
  ])
599
- ], 16, Re));
578
+ ], 16, $e));
600
579
  }
601
580
  });
602
581
  export {
603
- Lt as default
582
+ Ct as default
604
583
  };