@ironsource/shared-ui 2.1.12-rc.15 → 2.1.12-rc.17

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 (75) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_82f5b24e_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_5c80d8cd_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9e521454_lang.css +1 -0
  7. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
  8. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
  9. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  10. package/TooltipHeader.vue_vue_type_style_index_0_scoped_9f6cf389_lang.css +1 -0
  11. package/components/chart/Chart.vue.d.ts +23 -8
  12. package/components/chart/Chart.vue.js +4 -4
  13. package/components/chart/Chart.vue2.js +99 -90
  14. package/components/chart/ChartHeader.vue.d.ts +7 -7
  15. package/components/chart/ChartHeader.vue.js +3 -3
  16. package/components/chart/ChartHeader.vue2.js +48 -79
  17. package/components/chart/ChartHeaderTrend.vue.d.ts +6 -5
  18. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  19. package/components/chart/ChartHeaderTrend.vue2.js +15 -14
  20. package/components/chart/ChartLegend.vue.d.ts +7 -0
  21. package/components/chart/ChartLegend.vue.js +3 -3
  22. package/components/chart/ChartLegend.vue2.js +75 -68
  23. package/components/chart/ChartPlane.vue.d.ts +29 -9
  24. package/components/chart/ChartPlane.vue.js +4 -4
  25. package/components/chart/ChartPlane.vue2.js +290 -252
  26. package/components/chart/ChartStoryArgs.d.ts +27 -2
  27. package/components/chart/ChartTooltip.vue.d.ts +6 -1
  28. package/components/chart/ChartTooltip.vue.js +2 -2
  29. package/components/chart/ChartTooltip.vue2.js +48 -58
  30. package/components/chart/SubHeader.vue.d.ts +52 -0
  31. package/components/chart/SubHeader.vue.js +7 -0
  32. package/components/chart/SubHeader.vue2.js +61 -0
  33. package/components/chart/TooltipHeader.vue.d.ts +45 -0
  34. package/components/chart/TooltipHeader.vue.js +7 -0
  35. package/components/chart/TooltipHeader.vue2.js +59 -0
  36. package/components/chart/colorPalette.d.ts +1 -1
  37. package/components/chart/colorPalette.js +23 -23
  38. package/components/chart/composables/useChartHeight.d.ts +1 -1
  39. package/components/chart/consts.d.ts +22 -17
  40. package/components/chart/consts.js +37 -28
  41. package/components/chart/index.d.ts +120 -62
  42. package/components/chart/mockData.d.ts +11 -0
  43. package/components/chart/types.d.ts +25 -5
  44. package/components/chart/types.js +4 -2
  45. package/components/chart/utils/highlightUtils.d.ts +3 -0
  46. package/components/chart/utils/highlightUtils.js +18 -0
  47. package/components/chart/utils/utils.d.ts +2 -1
  48. package/components/chart/utils/utils.js +23 -8
  49. package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
  50. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  51. package/components/dropdown/v4/DropdownV4.vue2.js +102 -97
  52. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  53. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  54. package/components/dropdown/v4/OptionV4.vue2.js +83 -64
  55. package/components/dropdown/v4/index.d.ts +40 -2
  56. package/composables/useFormValidation.js +21 -19
  57. package/consts/common.d.ts +1 -0
  58. package/consts/common.js +4 -0
  59. package/consts/regex.d.ts +1 -0
  60. package/consts/regex.js +2 -1
  61. package/index.d.ts +80 -4
  62. package/index.js +12 -8
  63. package/package.json +1 -1
  64. package/utils/text.d.ts +3 -0
  65. package/utils/text.js +24 -5
  66. package/utils/utils.d.ts +1 -0
  67. package/utils/utils.js +4 -0
  68. package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +0 -1
  69. package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +0 -1
  70. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +0 -1
  71. package/ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css +0 -1
  72. package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +0 -1
  73. package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +0 -1
  74. package/DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css +0 -1
  75. package/OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css +0 -1
@@ -1,12 +1,27 @@
1
- import { format as n } from "date-fns";
2
- import { nFormatter as d } from "../../../utils/formatNumbers.js";
3
- const M = (r, t, e) => {
1
+ import { format as f } from "date-fns";
2
+ import { TICK_LABEL_FONT as a } from "../consts.js";
3
+ import { nFormatter as c } from "../../../utils/formatNumbers.js";
4
+ import { truncateTextToFit as d } from "../../../utils/text.js";
5
+ import { REGEX_LINEBREAK as m } from "../../../consts/regex.js";
6
+ const g = (r, t, e) => {
4
7
  if (e === 0)
5
8
  return 0;
6
- const f = t - r, o = f / e * 0.4;
7
- return (f + o) / e;
8
- }, c = (r, t) => t === "day" ? n(new Date(r), "EEEE") : t === "number" ? d(r) : t === "date" ? n(new Date(r), "MMM dd") : t === "dateLong" ? n(new Date(r), "MMM dd, yyyy") : String(r);
9
+ const n = t - r, o = n / e * 0.4;
10
+ return (n + o) / e;
11
+ }, E = (r, t) => t === "day" ? f(new Date(r), "EEEE") : t === "number" ? c(r) : t === "date" ? f(new Date(r), "MMM dd") : t === "dateLong" ? f(new Date(r), "MMM dd, yyyy") : String(r), w = ({
12
+ label: r,
13
+ format: t,
14
+ availableSpace: e,
15
+ truncate: n = !1
16
+ }) => {
17
+ const s = m.test(r), o = (p) => {
18
+ const i = E(p, t);
19
+ return n ? d(i, a, e) : i;
20
+ };
21
+ return s ? r.split(m).map(o) : o(r);
22
+ };
9
23
  export {
10
- M as calcStepSize,
11
- c as formatValue
24
+ g as calcStepSize,
25
+ E as formatValue,
26
+ w as prepareTickLabel
12
27
  };
@@ -48,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
48
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
49
49
  optionsEndTextIconKey?: string;
50
50
  optionFlagKey?: string;
51
+ optionWarningKey?: string;
51
52
  valueToCopy?: string;
52
53
  disabledOptionKey?: string;
53
54
  optionTwoLinesVariant?: "horizontal" | "vertical";
@@ -107,6 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
107
108
  optionEndIconType: any;
108
109
  optionsEndTextIconKey: any;
109
110
  optionFlagKey: any;
111
+ optionWarningKey: any;
110
112
  valueToCopy: any;
111
113
  disabledOptionKey: string;
112
114
  optionTwoLinesVariant: any;
@@ -186,6 +188,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
186
188
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
187
189
  optionsEndTextIconKey?: string;
188
190
  optionFlagKey?: string;
191
+ optionWarningKey?: string;
189
192
  valueToCopy?: string;
190
193
  disabledOptionKey?: string;
191
194
  optionTwoLinesVariant?: "horizontal" | "vertical";
@@ -245,6 +248,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
245
248
  optionEndIconType: any;
246
249
  optionsEndTextIconKey: any;
247
250
  optionFlagKey: any;
251
+ optionWarningKey: any;
248
252
  valueToCopy: any;
249
253
  disabledOptionKey: string;
250
254
  optionTwoLinesVariant: any;
@@ -318,6 +322,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
318
322
  optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
319
323
  optionsEndTextIconKey: string;
320
324
  optionFlagKey: string;
325
+ optionWarningKey: string;
321
326
  disabledOptionKey: string;
322
327
  optionTwoLinesVariant: "horizontal" | "vertical";
323
328
  optionTwoLinesKey: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css"; //*');
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4de6dfb8"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-08cb822e"]]);
6
6
  export {
7
- d as default
7
+ r as default
8
8
  };
@@ -1,42 +1,42 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as me, computed as H, watch as pe, openBlock as a, createElementBlock as s, mergeProps as f, unref as t, renderSlot as y, createElementVNode as m, createVNode as i, withCtx as r, Transition as ge, normalizeClass as E, normalizeStyle as Te, createTextVNode as T, createCommentVNode as d, isRef as ke, toDisplayString as U, withModifiers as G, Fragment as he, renderList as be, toRaw as C, createBlock as X, resolveDynamicComponent as we } from "vue";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as me, computed as H, watch as pe, openBlock as a, createElementBlock as s, mergeProps as f, unref as t, renderSlot as y, createElementVNode as m, createVNode as i, withCtx as u, Transition as ge, normalizeClass as E, normalizeStyle as ke, createTextVNode as k, createCommentVNode as d, isRef as Te, toDisplayString as U, withModifiers as G, Fragment as he, renderList as we, toRaw as C, createSlots as be, createBlock as X, resolveDynamicComponent as Ie } from "vue";
2
2
  import O 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 Ie from "./DefaultDropdownTrigger.vue.js";
8
- import ve from "./IconButtonDropdownTrigger.vue.js";
9
- import Ce from "./ChipDropdownTrigger.vue.js";
10
- import Se from "./AppDropdownTrigger.vue.js";
7
+ import ve from "./DefaultDropdownTrigger.vue.js";
8
+ import Ce from "./IconButtonDropdownTrigger.vue.js";
9
+ import Se from "./ChipDropdownTrigger.vue.js";
10
+ import Ke from "./AppDropdownTrigger.vue.js";
11
11
  import "./ButtonDropdownTrigger.vue.js";
12
12
  import "./ButtonFilterDropdownTrigger.vue.js";
13
13
  import "./TreeDropdown.vue.js";
14
14
  import q from "./OptionV4.vue.js";
15
15
  import "./ConditionalDropdown.vue.js";
16
- import Ke from "../../search/v4/SearchV4.vue.js";
16
+ import Ae from "../../search/v4/SearchV4.vue.js";
17
17
  import Y from "../../typography/v4/Typography.vue.js";
18
- import { Dropdown as Ae } from "floating-vue";
18
+ import { Dropdown as Le } from "floating-vue";
19
19
  import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
20
- import { dropdownCommon as Le } from "../common/Dropdown.common.js";
20
+ import { dropdownCommon as Ee } from "../common/Dropdown.common.js";
21
21
  import S from "../../skeleton/v4/SkeletonV4.vue.js";
22
- import { useTestIdAttrs as Ee } from "../../../utils/testIds.js";
23
- import { TRIGGERS as k } from "./Dropdown.types.js";
24
- import { useElementSize as Oe } from "@vueuse/core";
25
- import Be from "../../shared/FieldHelpText.vue.js";
26
- import Fe from "./GroupOption.vue.js";
27
- const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe = { key: 1 }, xe = { key: 2 }, Re = {
22
+ import { useTestIdAttrs as Oe } from "../../../utils/testIds.js";
23
+ import { TRIGGERS as T } from "./Dropdown.types.js";
24
+ import { useElementSize as Be } from "@vueuse/core";
25
+ import Fe from "../../shared/FieldHelpText.vue.js";
26
+ import Ne from "./GroupOption.vue.js";
27
+ const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe = { key: 1 }, Re = { key: 2 }, ze = {
28
28
  key: 0,
29
29
  class: "inline-search-wrapper"
30
- }, ze = { class: "dropdown-conditions" }, $e = {
30
+ }, $e = { class: "dropdown-conditions" }, We = {
31
31
  key: 0,
32
32
  class: "no-result-container"
33
- }, Me = ["aria-selected", "aria-disabled", "onClick"], We = {
33
+ }, Me = ["aria-selected", "aria-disabled", "onClick"], He = {
34
34
  key: 3,
35
35
  class: "loader"
36
- }, He = {
36
+ }, Ue = {
37
37
  key: 1,
38
38
  class: "actions-wrapper"
39
- }, Ue = { class: "actions-clear-all" }, Ge = { class: "actions-apply-cancel" }, ht = /* @__PURE__ */ me({
39
+ }, Ge = { class: "actions-clear-all" }, Xe = { class: "actions-apply-cancel" }, wt = /* @__PURE__ */ me({
40
40
  __name: "DropdownV4",
41
41
  props: {
42
42
  modelValue: { default: null },
@@ -71,7 +71,7 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
71
71
  triggerShowAllSelectedText: { type: Boolean, default: !0 },
72
72
  size: { default: "medium" },
73
73
  mandatory: { type: Boolean, default: !1 },
74
- predefinedTrigger: { default: k.DEFAULT },
74
+ predefinedTrigger: { default: T.DEFAULT },
75
75
  inlineSearch: { type: Boolean, default: !1 },
76
76
  inlineSearchPlaceholder: { default: "Search" },
77
77
  onSearch: { type: Function, default: null },
@@ -87,6 +87,7 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
87
87
  optionEndIconType: { default: null },
88
88
  optionsEndTextIconKey: { default: null },
89
89
  optionFlagKey: { default: null },
90
+ optionWarningKey: { default: null },
90
91
  valueToCopy: { default: null },
91
92
  disabledOptionKey: { default: "disabled" },
92
93
  optionTwoLinesVariant: { default: void 0 },
@@ -112,8 +113,8 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
112
113
  DROPLIST_MIN_WIDTH: 240,
113
114
  VERSION: 4
114
115
  }, {
115
- onKeydown: b,
116
- open: u,
116
+ onKeydown: w,
117
+ open: c,
117
118
  toggleMenu: I,
118
119
  onButtonKeydown: N,
119
120
  query: v,
@@ -143,7 +144,7 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
143
144
  onClearAllSelections: z,
144
145
  clearAll: ue,
145
146
  isGroup: ce
146
- } = Le(n, B, F), g = Ee(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT ? Ie : n.predefinedTrigger === k.APP ? Se : null), { width: M } = Oe(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT || n.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
147
+ } = Ee(n, B, F), g = Oe(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT ? ve : n.predefinedTrigger === T.APP ? Ke : null), { width: W } = Be(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT || n.predefinedTrigger === T.APP ? W.value - 2 > 240 ? `${W.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
147
148
  pe(
148
149
  () => n.optionsListWidth,
149
150
  () => {
@@ -153,24 +154,24 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
153
154
  );
154
155
  }
155
156
  );
156
- const W = () => {
157
+ const M = () => {
157
158
  I();
158
159
  };
159
160
  return j({
160
161
  selectItem: P,
161
162
  scrollTo: ne
162
- }), (c, l) => (a(), s("div", f({
163
+ }), (r, l) => (a(), s("div", f({
163
164
  ref_key: "el",
164
165
  ref: re,
165
166
  class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
166
167
  tabindex: e.disabled ? -1 : 0
167
168
  }, t(g)[t(p).WRAPPER], {
168
169
  onKeydown: l[8] || (l[8] = //@ts-ignore
169
- (...o) => t(b) && t(b)(...o))
170
+ (...o) => t(w) && t(w)(...o))
170
171
  }), [
171
- y(c.$slots, "label", {}, void 0, !0),
172
- m("div", Ve, [
173
- i(t(Ae), f({
172
+ y(r.$slots, "label", {}, void 0, !0),
173
+ m("div", De, [
174
+ i(t(Le), f({
174
175
  theme: e.theme,
175
176
  "popper-class": [
176
177
  e.popperClass,
@@ -183,15 +184,15 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
183
184
  distance: e.distance,
184
185
  flip: e.flip,
185
186
  triggers: [],
186
- shown: !!t(u),
187
+ shown: !!t(c),
187
188
  "auto-hide": !1,
188
189
  container: e.container,
189
190
  "auto-size": e.autoSize
190
191
  }, t(g)[t(p).TRIGGER]), {
191
- popper: r(() => [
192
+ popper: u(() => [
192
193
  i(ge, null, {
193
- default: r(() => [
194
- t(u) ? (a(), s("div", {
194
+ default: u(() => [
195
+ t(c) ? (a(), s("div", {
195
196
  key: 0,
196
197
  ref_key: "listRef",
197
198
  ref: ae,
@@ -199,30 +200,30 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
199
200
  "dropdown--disabled": e.disabled,
200
201
  "inline-search": e.inlineSearch
201
202
  }]),
202
- style: Te({ width: t(ye) })
203
+ style: ke({ width: t(ye) })
203
204
  }, [
204
- t(u) ? (a(), s("div", {
205
+ t(c) ? (a(), s("div", {
205
206
  key: 0,
206
207
  class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
207
208
  onKeydown: l[7] || (l[7] = //@ts-ignore
208
- (...o) => t(b) && t(b)(...o))
209
+ (...o) => t(w) && t(w)(...o))
209
210
  }, [
210
- t(u) && e.inlineSearch ? (a(), s("div", Re, [
211
- e.withConditions ? y(c.$slots, "dropdown-conditions", { key: 0 }, () => [
212
- m("div", ze, [
211
+ t(c) && e.inlineSearch ? (a(), s("div", ze, [
212
+ e.withConditions ? y(r.$slots, "dropdown-conditions", { key: 0 }, () => [
213
+ m("div", $e, [
213
214
  i(t(Y), { variant: "body2" }, {
214
- default: r(() => [
215
- T("Conditions")
215
+ default: u(() => [
216
+ k("Conditions")
216
217
  ]),
217
218
  _: 1
218
219
  })
219
220
  ])
220
221
  ], !0) : d("", !0),
221
- y(c.$slots, "inline-search", {}, () => [
222
- i(t(Ke), {
222
+ y(r.$slots, "inline-search", {}, () => [
223
+ i(t(Ae), {
223
224
  modelValue: t(v),
224
225
  "onUpdate:modelValue": [
225
- l[4] || (l[4] = (o) => ke(v) ? v.value = o : null),
226
+ l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
226
227
  e.onClearSearch
227
228
  ],
228
229
  placeholder: e.inlineSearchPlaceholder,
@@ -230,11 +231,11 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
230
231
  size: "md",
231
232
  "auto-focus": e.searchAutoFocus,
232
233
  "test-id": e.testId,
233
- onKeydown: t(b)
234
+ onKeydown: t(w)
234
235
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
235
236
  ], !0)
236
237
  ])) : d("", !0),
237
- y(c.$slots, "input-list", { open: t(u) }, void 0, !0),
238
+ y(r.$slots, "input-list", { open: t(c) }, void 0, !0),
238
239
  m("div", f({
239
240
  class: ["list-container", { "list-container--multi": e.multi }],
240
241
  style: { height: `${t(Q)}rem` }
@@ -242,7 +243,7 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
242
243
  ...t(J),
243
244
  ...t(g)[t(p).LIST_CONTAINER]
244
245
  }), [
245
- y(c.$slots, "custom-list-area", {}, void 0, !0),
246
+ y(r.$slots, "custom-list-area", {}, void 0, !0),
246
247
  m("ul", f(t(Z), {
247
248
  role: "listbox",
248
249
  class: ["list", {
@@ -250,15 +251,15 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
250
251
  "list--with-conditions": e.withConditions
251
252
  }]
252
253
  }), [
253
- !t(_).length && !e.loading && !e.withConditions ? (a(), s("li", $e, [
254
+ !t(_).length && !e.loading && !e.withConditions ? (a(), s("li", We, [
254
255
  i(t(Y), f({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
255
- default: r(() => [
256
- T(U(e.noResultsText), 1)
256
+ default: u(() => [
257
+ k(U(e.noResultsText), 1)
257
258
  ]),
258
259
  _: 1
259
260
  }, 16)
260
261
  ])) : d("", !0),
261
- e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? y(c.$slots, "select-all", { key: 1 }, () => [
262
+ e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? y(r.$slots, "select-all", { key: 1 }, () => [
262
263
  m("li", null, [
263
264
  i(t(q), f(
264
265
  {
@@ -274,38 +275,38 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
274
275
  onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
275
276
  }
276
277
  ), {
277
- default: r(() => [
278
- T(" Select all ")
278
+ default: u(() => [
279
+ k(" Select all ")
279
280
  ]),
280
281
  _: 1
281
282
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
282
283
  ])
283
284
  ], !0) : d("", !0),
284
- t(D).length && !e.loading ? (a(!0), s(he, { key: 2 }, be(t(D), ({ data: o, index: w }) => (a(), s("li", {
285
- key: w,
285
+ t(D).length && !e.loading ? (a(!0), s(he, { key: 2 }, we(t(D), ({ data: o, index: b }) => (a(), s("li", {
286
+ key: b,
286
287
  "aria-selected": t(A)(C(t(h)), o),
287
288
  "aria-disabled": !!e.disabled,
288
- onClick: G(() => t(P)(o, w), ["stop"])
289
+ onClick: G(() => t(P)(o, b), ["stop"])
289
290
  }, [
290
- e.groupedOptions && t(ce)(o) ? y(c.$slots, "group-option", { key: 0 }, () => [
291
- i(Fe, null, {
292
- default: r(() => [
293
- T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
291
+ e.groupedOptions && t(ce)(o) ? y(r.$slots, "group-option", { key: 0 }, () => [
292
+ i(Ne, null, {
293
+ default: u(() => [
294
+ k(U(e.displayValue(o) || o[e.optionNameKey]), 1)
294
295
  ]),
295
296
  _: 2
296
297
  }, 1024)
297
- ], !0) : y(c.$slots, "default", {
298
+ ], !0) : y(r.$slots, "default", {
298
299
  key: 1,
299
300
  option: o,
300
- index: w,
301
+ index: b,
301
302
  selected: t(A)(C(t(h)), o),
302
- active: C(t(x)) === w,
303
+ active: C(t(x)) === b,
303
304
  disabled: o[n.disabledOptionKey]
304
305
  }, () => [
305
306
  i(t(q), {
306
307
  option: o,
307
308
  "selected-prop": t(A)(t(h), o),
308
- active: C(t(x)) === w,
309
+ active: C(t(x)) === b,
309
310
  disabled: o[n.disabledOptionKey],
310
311
  "name-key": e.optionNameKey,
311
312
  "image-key": e.optionImageKey,
@@ -315,18 +316,22 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
315
316
  "end-icon-type": e.optionEndIconType,
316
317
  "end-text-icon-key": e.optionsEndTextIconKey,
317
318
  "option-flag-key": e.optionFlagKey,
319
+ "warning-key": e.optionWarningKey,
318
320
  "option-two-lines-variant": e.optionTwoLinesVariant,
319
321
  "option-two-lines-key": e.optionTwoLinesKey,
320
322
  "is-multi": e.multi
321
- }, {
322
- "option-end": r(({ option: fe }) => [
323
- y(c.$slots, "option-end", { option: fe }, void 0, !0)
324
- ]),
325
- _: 2
326
- }, 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", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
323
+ }, be({ _: 2 }, [
324
+ r.$slots["option-end"] ? {
325
+ name: "option-end",
326
+ fn: u(({ option: fe }) => [
327
+ y(r.$slots, "option-end", { option: fe }, void 0, !0)
328
+ ]),
329
+ key: "0"
330
+ } : void 0
331
+ ]), 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"])
327
332
  ], !0)
328
333
  ], 8, Me))), 128)) : d("", !0),
329
- e.loading || e.loadMoreLoading ? (a(), s("li", We, [
334
+ e.loading || e.loadMoreLoading ? (a(), s("li", He, [
330
335
  i(t(S), { round: "" }),
331
336
  i(t(S), { round: "" }),
332
337
  i(t(S), { round: "" }),
@@ -334,8 +339,8 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
334
339
  ])) : d("", !0)
335
340
  ], 16)
336
341
  ], 16),
337
- e.multi ? (a(), s("div", He, [
338
- m("div", Ue, [
342
+ e.multi ? (a(), s("div", Ue, [
343
+ m("div", Ge, [
339
344
  i(t(O), f(
340
345
  {
341
346
  ref_key: "clearAll",
@@ -349,13 +354,13 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
349
354
  onClick: l[6] || (l[6] = () => t(z)(!1))
350
355
  }
351
356
  ), {
352
- default: r(() => [
353
- T(" Clear all ")
357
+ default: u(() => [
358
+ k(" Clear all ")
354
359
  ]),
355
360
  _: 1
356
361
  }, 16)
357
362
  ]),
358
- m("div", Ge, [
363
+ m("div", Xe, [
359
364
  i(t(O), f(
360
365
  {
361
366
  ref_key: "cancel",
@@ -367,8 +372,8 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
367
372
  t(g)[t(p).ACTION_CANCEL],
368
373
  { onClick: t(le) }
369
374
  ), {
370
- default: r(() => [
371
- T(" Cancel ")
375
+ default: u(() => [
376
+ k(" Cancel ")
372
377
  ]),
373
378
  _: 1
374
379
  }, 16, ["onClick"]),
@@ -379,8 +384,8 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
379
384
  size: "small",
380
385
  class: "apply-button"
381
386
  }, t(g)[t(p).ACTION_APPLY], { onClick: t(ie) }), {
382
- default: r(() => [
383
- T(" Apply ")
387
+ default: u(() => [
388
+ k(" Apply ")
384
389
  ]),
385
390
  _: 1
386
391
  }, 16, ["onClick"])
@@ -392,10 +397,10 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
392
397
  _: 3
393
398
  })
394
399
  ]),
395
- default: r(() => [
400
+ default: u(() => [
396
401
  m("div", {
397
402
  class: E(["button__container", {
398
- "button__container--open": !!t(u),
403
+ "button__container--open": !!t(c),
399
404
  [`button__container--${e.size}`]: !0,
400
405
  "button__container--disabled": e.disabled
401
406
  }])
@@ -404,16 +409,16 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
404
409
  ref_key: "buttonRef",
405
410
  ref: R
406
411
  }, [
407
- y(c.$slots, "dropdown-trigger", {
412
+ y(r.$slots, "dropdown-trigger", {
408
413
  buttonTriggerProps: {
409
- open: t(u),
414
+ open: t(c),
410
415
  disabled: e.disabled,
411
416
  label: t(oe) || e.placeholder,
412
417
  onClick: () => t(I)()
413
418
  },
414
419
  defaultTriggerProps: {
415
420
  placeholder: e.placeholder,
416
- open: t(u),
421
+ open: t(c),
417
422
  label: e.triggerLabel,
418
423
  showFeedbackIcon: e.triggerFeedbackShowIcon,
419
424
  mandatory: e.mandatory,
@@ -438,13 +443,13 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
438
443
  showAllSelectedText: e.triggerShowAllSelectedText,
439
444
  allSelected: t(K),
440
445
  onKeydown: t(N),
441
- onClick: W
446
+ onClick: M
442
447
  }
443
448
  }, () => [
444
- t($) ? (a(), s("div", De, [
445
- (a(), X(we(t($)), {
449
+ t($) ? (a(), s("div", Pe, [
450
+ (a(), X(Ie(t($)), {
446
451
  placeholder: e.placeholder,
447
- open: t(u),
452
+ open: t(c),
448
453
  label: e.triggerLabel,
449
454
  "show-feedback-icon": e.triggerFeedbackShowIcon,
450
455
  mandatory: e.mandatory,
@@ -469,18 +474,18 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
469
474
  "show-all-selected-text": e.triggerShowAllSelectedText,
470
475
  "all-selected": t(K),
471
476
  onKeydown: t(N),
472
- onClick: W,
477
+ onClick: M,
473
478
  onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
474
479
  }, 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"]))
475
480
  ])) : d("", !0),
476
- e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div", Pe, [
477
- i(t(ve), {
481
+ e.predefinedTrigger === t(T).ICON_BUTTON ? (a(), s("div", xe, [
482
+ i(t(Ce), {
478
483
  onClick: l[1] || (l[1] = (o) => t(I)())
479
484
  })
480
485
  ])) : d("", !0),
481
- e.predefinedTrigger === t(k).CHIP ? (a(), s("div", xe, [
482
- i(t(Ce), {
483
- open: t(u),
486
+ e.predefinedTrigger === t(T).CHIP ? (a(), s("div", Re, [
487
+ i(t(Se), {
488
+ open: t(c),
484
489
  label: e.placeholder,
485
490
  "test-id": e.testId,
486
491
  options: e.options,
@@ -498,7 +503,7 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
498
503
  ]),
499
504
  _: 3
500
505
  }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
501
- e.triggerFeedbackText ? (a(), X(Be, {
506
+ e.triggerFeedbackText ? (a(), X(Fe, {
502
507
  key: 0,
503
508
  text: e.triggerFeedbackText,
504
509
  variant: e.triggerFeedbackVariant,
@@ -507,9 +512,9 @@ const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe
507
512
  class: "dropdown-field-help-text"
508
513
  }, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
509
514
  ])
510
- ], 16, Ne));
515
+ ], 16, Ve));
511
516
  }
512
517
  });
513
518
  export {
514
- ht as default
519
+ wt as default
515
520
  };
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  nameKey?: string;
10
10
  imageKey?: string;
11
11
  iconKey?: string;
12
+ warningKey?: string;
12
13
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
13
14
  endIconKey?: string;
14
15
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -32,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
33
  nameKey: any;
33
34
  imageKey: any;
34
35
  iconKey: any;
36
+ warningKey: any;
35
37
  iconType: string;
36
38
  endIconKey: any;
37
39
  endIconType: string;
@@ -58,6 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
58
60
  nameKey?: string;
59
61
  imageKey?: string;
60
62
  iconKey?: string;
63
+ warningKey?: string;
61
64
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
62
65
  endIconKey?: string;
63
66
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -81,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
81
84
  nameKey: any;
82
85
  imageKey: any;
83
86
  iconKey: any;
87
+ warningKey: any;
84
88
  iconType: string;
85
89
  endIconKey: any;
86
90
  endIconType: string;
@@ -110,6 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
110
114
  nameKey: string;
111
115
  imageKey: string;
112
116
  iconKey: string;
117
+ warningKey: string;
113
118
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
114
119
  endIconKey: string;
115
120
  endTextIconKey: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./OptionV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8ba7e191"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9cdf3a94"]]);
5
5
  export {
6
6
  s as default
7
7
  };