@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27

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