@ironsource/shared-ui 2.1.12 → 2.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ .default-dropdown-wrapper[data-v-3bc0f416]{position:relative}.dropdown-trigger[data-v-3bc0f416]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.25rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-3bc0f416]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-3bc0f416]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-3bc0f416]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-3bc0f416]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-3bc0f416],.dropdown-trigger.disabled .caret-down[data-v-3bc0f416]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-3bc0f416]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-3bc0f416]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-3bc0f416]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-3bc0f416],.dropdown-trigger.state-success[data-v-3bc0f416],.dropdown-trigger.state-warning[data-v-3bc0f416]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-3bc0f416],.dropdown-trigger.state-success.small[data-v-3bc0f416],.dropdown-trigger.state-warning.small[data-v-3bc0f416]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-3bc0f416],.dropdown-trigger.state-success.large[data-v-3bc0f416],.dropdown-trigger.state-warning.large[data-v-3bc0f416]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-3bc0f416]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-3bc0f416]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-3bc0f416]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-3bc0f416]{color:var(--action-active)}.content[data-v-3bc0f416]{display:flex;flex:1;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-3bc0f416]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-3bc0f416]{width:20px;height:20px;flex:none}.content .image img[data-v-3bc0f416]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-3bc0f416]{display:flex;color:var(--action-active)}.content .status-dot[data-v-3bc0f416]{padding-right:.25rem}.content .status-dot>div[data-v-3bc0f416]{position:relative;top:-1px}.dropdown-field-label[data-v-3bc0f416]{color:var(--text-primary)}.dropdown-field-help-text[data-v-3bc0f416]{margin-top:4px;position:absolute}.flag[data-v-3bc0f416]{width:16px;height:16px}.flag img[data-v-3bc0f416]{width:16px;height:16px;border-radius:50%}.inline-error[data-v-3bc0f416]{cursor:pointer;color:var(--error-main);display:flex;justify-content:center;align-items:center}
@@ -0,0 +1 @@
1
+ .v-enter-active[data-v-445ebb01],.v-leave-active[data-v-445ebb01]{transition:opacity .25s ease}ol[data-v-445ebb01],ul[data-v-445ebb01],menu[data-v-445ebb01]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-445ebb01],.dropdown.full-width .button__container[data-v-445ebb01]{width:100%}.dropdown-list-wrapper[data-v-445ebb01]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-445ebb01]{padding:.5rem}.list-container--multi[data-v-445ebb01]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-445ebb01]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-445ebb01]{width:100%}.inline-search .list-container[data-v-445ebb01]{padding-top:0}.no-result-container[data-v-445ebb01]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-445ebb01]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-445ebb01]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-445ebb01]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-445ebb01]{min-height:0;margin-bottom:0}.image-slot[data-v-445ebb01]{margin-right:.5rem}.actions-wrapper[data-v-445ebb01]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.dropdown-footer[data-v-445ebb01]{display:flex;width:100%;padding:.5rem .5rem .375rem .4375rem;border-top:1px solid var(--common-divider);margin-top:.25rem}.apply-button[data-v-445ebb01]{margin-left:.5rem}
@@ -1,9 +1,9 @@
1
1
  import { useToggle as ke } from "../../../composables/useToggle.js";
2
- import { inject as Ge, ref as r, computed as c, watch as b, useSlots as Le, toRaw as I, nextTick as N, provide as Ue, onMounted as Be } from "vue";
2
+ import { inject as Ge, ref as r, computed as c, watch as b, useSlots as Le, toRaw as w, nextTick as N, provide as Ue, onMounted as Be } from "vue";
3
3
  import { isObjectInArray as ue } from "../../../utils/array.js";
4
4
  import { objectsEqual as He } from "../../../utils/object.js";
5
5
  import { useClamp as qe, useVirtualList as Xe, onClickOutside as ie, useInfiniteScroll as $e } from "@vueuse/core";
6
- import { Mode as w, Type as U, DropdownContext as je } from "./DropdownContext.js";
6
+ import { Mode as x, Type as U, DropdownContext as je } from "./DropdownContext.js";
7
7
  import { pxToRem as ze } from "../../../utils/style.js";
8
8
  import { useEditableContext as We } from "../../table-cells/common/EditableContext.js";
9
9
  import { useGroupedOptions as Je } from "./useGroupedOptions.js";
@@ -40,7 +40,7 @@ const nl = (e, d, y) => {
40
40
  a.value = e.selected, v.value = e.selected;
41
41
  }
42
42
  );
43
- const ve = Le(), x = r(null), m = r(null), z = r(null), R = r(null), W = r(null), D = r(null), fe = r(), J = r(null), Q = r(null), Y = r(null), ge = 8, ye = c(() => D.value ? D.value.getBoundingClientRect().height + ge + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => D.value?.focus(), [S, he, Oe] = ke({
43
+ const ve = Le(), D = r(null), m = r(null), z = r(null), R = r(null), W = r(null), M = r(null), fe = r(), J = r(null), Q = r(null), Y = r(null), ge = 8, ye = c(() => M.value ? M.value.getBoundingClientRect().height + ge + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => M.value?.focus(), [S, he, Oe] = ke({
44
44
  disabled: e.disabled,
45
45
  initialValue: e.defaultOpen
46
46
  });
@@ -77,17 +77,17 @@ const nl = (e, d, y) => {
77
77
  a
78
78
  ) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
79
79
  O.value = l;
80
- }, M = c(() => e.groupedOptions ? q(e.options) : e.options), Pe = c(() => {
81
- if (ce(
82
- M,
80
+ }, P = c(() => e.groupedOptions ? q(e.options) : e.options), Pe = c(() => {
81
+ if (e.groupedOptions && !e.resortGroupedOptions || ce(
82
+ P,
83
83
  v
84
84
  ))
85
- return M.value;
85
+ return P.value;
86
86
  const l = {
87
87
  selected: [],
88
88
  notSelected: []
89
89
  };
90
- I(M).value.forEach((i) => {
90
+ w(P).value.forEach((i) => {
91
91
  const u = (e.comparingKey ? v.value.findIndex(
92
92
  (L) => L[e.comparingKey] === i[e.comparingKey]
93
93
  ) > -1 : v.value.includes(i)) ? "selected" : "notSelected";
@@ -96,19 +96,19 @@ const nl = (e, d, y) => {
96
96
  const t = e.groupedOptions ? H(l.notSelected) : l.notSelected;
97
97
  return [].concat(l.selected, t);
98
98
  }), o = c(() => {
99
- const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value : M.value;
99
+ const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value : P.value;
100
100
  if (e.onSearch) {
101
101
  const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
102
102
  return e.groupedOptions ? H(t) : t;
103
103
  } else
104
104
  return l;
105
- }), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
105
+ }), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === x.Multi), le = c(
106
106
  () => Ie.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
107
107
  ), {
108
108
  list: V,
109
109
  containerProps: k,
110
110
  wrapperProps: we,
111
- scrollTo: P
111
+ scrollTo: I
112
112
  } = Xe(o, {
113
113
  itemHeight: le.value,
114
114
  overscan: e.disableVirtualScroll ? 1 / 0 : 2
@@ -125,28 +125,28 @@ const nl = (e, d, y) => {
125
125
  async ([l], [t]) => {
126
126
  S.value && (await N(), T.value !== -1 && l !== t && setTimeout(() => {
127
127
  if (!(e.multi && y.VERSION === 4))
128
- if (P(T.value), e.groupedOptions) {
129
- const i = M.value.findIndex(
128
+ if (I(T.value), e.groupedOptions) {
129
+ const i = P.value.findIndex(
130
130
  (f) => f === n.value
131
131
  );
132
- P(i);
132
+ I(i);
133
133
  } else
134
- P(T.value);
134
+ I(T.value);
135
135
  }), g.value && setTimeout(() => {
136
- P(g.value);
136
+ I(g.value);
137
137
  }));
138
138
  }
139
139
  ), b(O, () => {
140
- d("onsearch", O.value), P(0);
140
+ d("onsearch", O.value), I(0);
141
141
  });
142
142
  const A = (l, t = !1) => {
143
143
  e.disabled || (F(l), N(() => {
144
- S.value && d("opened"), S.value || d("closed"), x.value && t && x.value.focus();
144
+ S.value && d("opened"), S.value || d("closed"), D.value && t && D.value.focus();
145
145
  }));
146
146
  };
147
147
  b(S, (l) => {
148
148
  if (l) {
149
- O.value = "", ee.value && Array.isArray(n.value) && (v.value = I(n.value).slice());
149
+ O.value = "", ee.value && Array.isArray(n.value) && (v.value = w(n.value).slice());
150
150
  return;
151
151
  }
152
152
  Z();
@@ -173,7 +173,7 @@ const nl = (e, d, y) => {
173
173
  }, Me = (l = !0) => {
174
174
  a.value = [], l ? (n.value = [], v.value = [], d("clear")) : e.dynamicFilterMode || d("clear");
175
175
  }, G = (l, t) => {
176
- if (l = I(l), y.VERSION === 4 ? l[e.disabledOptionKey] : h.value[t]?.disabled)
176
+ if (l = w(l), y.VERSION === 4 ? l[e.disabledOptionKey] : h.value[t]?.disabled)
177
177
  return;
178
178
  if (T.value = t, !e.multi) {
179
179
  e.keepOpen || A(!1), s.goToOption(
@@ -185,7 +185,7 @@ const nl = (e, d, y) => {
185
185
  if (!Array.isArray(a.value))
186
186
  return;
187
187
  m.value?.focus();
188
- const f = I(a.value);
188
+ const f = w(a.value);
189
189
  if (ue(f, l) || e.comparingKey && f.findIndex(
190
190
  (u) => u[e.comparingKey] === l[e.comparingKey]
191
191
  ) > -1) {
@@ -201,10 +201,10 @@ const nl = (e, d, y) => {
201
201
  selectedOption: n,
202
202
  labelRef: W,
203
203
  activeOption: R,
204
- listRef: x,
204
+ listRef: D,
205
205
  clearable: e.clearable,
206
206
  type: ve.input ? U.Search : U.Dropdown,
207
- mode: e.multi ? w.Multi : w.Single,
207
+ mode: e.multi ? x.Multi : x.Single,
208
208
  query: O,
209
209
  selectedValue: p,
210
210
  toggle: A,
@@ -215,7 +215,7 @@ const nl = (e, d, y) => {
215
215
  placeholder: e.placeholder,
216
216
  select: G,
217
217
  clearSelection: () => {
218
- _(""), n.value = s.mode === w.Single ? null : [], v.value = s.mode === w.Single ? null : [], m.value && (m.value.value = "");
218
+ _(""), n.value = s.mode === x.Single ? null : [], v.value = s.mode === x.Single ? null : [], m.value && (m.value.value = "");
219
219
  },
220
220
  search: _,
221
221
  goToOption: async (l) => {
@@ -247,13 +247,13 @@ const nl = (e, d, y) => {
247
247
  }
248
248
  };
249
249
  Ue(je, s), ie(
250
- x,
250
+ D,
251
251
  () => {
252
252
  S.value && ne();
253
253
  },
254
254
  {
255
255
  ignore: [
256
- D,
256
+ M,
257
257
  J,
258
258
  Q,
259
259
  Y,
@@ -278,9 +278,9 @@ const nl = (e, d, y) => {
278
278
  te();
279
279
  });
280
280
  const ae = () => {
281
- e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ? se(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ne();
281
+ e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = w(n.value).slice(), C.value = e.groupedOptions ? se(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ne();
282
282
  }, ne = () => {
283
- ee.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
283
+ ee.value && Array.isArray(v.value) && (n.value = w(v.value).slice()), O.value = "", A(!1);
284
284
  }, Ke = (l) => {
285
285
  if (!e.disableKeyboardEvents)
286
286
  switch (l.key) {
@@ -330,7 +330,7 @@ const nl = (e, d, y) => {
330
330
  A(!0);
331
331
  return;
332
332
  }
333
- G(o.value[g.value], g.value), s.mode === w.Single && !e.keepOpen && A(!1), l.preventDefault();
333
+ G(o.value[g.value], g.value), s.mode === x.Single && !e.keepOpen && A(!1), l.preventDefault();
334
334
  break;
335
335
  }
336
336
  }
@@ -380,10 +380,10 @@ const nl = (e, d, y) => {
380
380
  activeIndex: g,
381
381
  onCancel: ne,
382
382
  onApply: ae,
383
- scrollTo: P,
383
+ scrollTo: I,
384
384
  onClickOutside: ie,
385
- listRef: x,
386
- buttonRef: D,
385
+ listRef: D,
386
+ buttonRef: M,
387
387
  apply: J,
388
388
  cancel: Q,
389
389
  el: z,
@@ -26,6 +26,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
26
26
  allSelected?: boolean;
27
27
  optionFlagKey?: string;
28
28
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
29
+ inlineError?: boolean;
30
+ inlineErrorText?: string;
31
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
29
32
  }>, {
30
33
  placeholder: string;
31
34
  selectedOption: any;
@@ -53,6 +56,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
56
  allSelected: boolean;
54
57
  optionFlagKey: any;
55
58
  statusDotType: any;
59
+ inlineError: boolean;
60
+ inlineErrorText: string;
61
+ inlineErrorTextPlacement: string;
56
62
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
63
  click: () => void;
58
64
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -83,6 +89,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
89
  allSelected?: boolean;
84
90
  optionFlagKey?: string;
85
91
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
92
+ inlineError?: boolean;
93
+ inlineErrorText?: string;
94
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
86
95
  }>, {
87
96
  placeholder: string;
88
97
  selectedOption: any;
@@ -110,6 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
110
119
  allSelected: boolean;
111
120
  optionFlagKey: any;
112
121
  statusDotType: any;
122
+ inlineError: boolean;
123
+ inlineErrorText: string;
124
+ inlineErrorTextPlacement: string;
113
125
  }>>> & {
114
126
  onClick?: () => any;
115
127
  }, {
@@ -125,6 +137,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
125
137
  hoverHelpText: string;
126
138
  hoverHelpTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
127
139
  placeholder: string;
140
+ inlineError: boolean;
141
+ inlineErrorText: string;
142
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
128
143
  feedbackText: string;
129
144
  feedbackVariant: "success" | "warning" | "error";
130
145
  multi: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-64ae80dd"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3bc0f416"]]);
5
5
  export {
6
- d as default
6
+ p as default
7
7
  };
@@ -1,24 +1,28 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css"; import { defineComponent as I, computed as f, openBlock as o, createElementBlock as d, createBlock as T, createCommentVNode as n, createElementVNode as p, mergeProps as y, unref as l, renderSlot as r, createVNode as s, withCtx as g, createTextVNode as x, toDisplayString as B } from "vue";
2
2
  import w from "../../typography/v4/Typography.vue.js";
3
- import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
4
- import g from "../../icon/v4/IconV4.vue.js";
5
- import K from "../../icon/v4/IconFlag.vue.js";
6
- import V from "../../shared/FieldLabel.vue.js";
7
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
- import D from "../../statusDot/StatusDot.vue.js";
9
- const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
3
+ import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
4
+ import m from "../../icon/v4/IconV4.vue.js";
5
+ import $ from "../../icon/v4/IconFlag.vue.js";
6
+ import K from "../../shared/FieldLabel.vue.js";
7
+ import { useTestIdAttrs as V } from "../../../utils/testIds.js";
8
+ import A from "../../statusDot/StatusDot.vue.js";
9
+ import E from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, S = {
10
11
  key: 0,
11
12
  class: "image"
12
- }, C = ["src"], F = {
13
+ }, P = ["src"], C = {
13
14
  key: 1,
14
15
  class: "flag"
15
- }, P = {
16
+ }, F = {
16
17
  key: 2,
17
18
  class: "start-icon"
18
19
  }, z = {
19
20
  key: 3,
20
21
  class: "status-dot"
21
- }, E = { key: 0 }, H = { class: "caret-down" }, Q = /* @__PURE__ */ I({
22
+ }, H = {
23
+ key: 0,
24
+ class: "inline-error"
25
+ }, L = { key: 1 }, R = { class: "caret-down" }, Z = /* @__PURE__ */ I({
22
26
  __name: "DefaultDropdownTrigger",
23
27
  props: {
24
28
  placeholder: { default: "Select" },
@@ -47,81 +51,98 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
47
51
  showAllSelectedText: { type: Boolean, default: !0 },
48
52
  allSelected: { type: Boolean, default: !1 },
49
53
  optionFlagKey: { default: null },
50
- statusDotType: { default: null }
54
+ statusDotType: { default: null },
55
+ inlineError: { type: Boolean, default: !1 },
56
+ inlineErrorText: { default: "" },
57
+ inlineErrorTextPlacement: { default: "top" }
51
58
  },
52
59
  emits: ["click"],
53
- setup(t, { emit: T }) {
54
- const e = t, v = u(
55
- () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
60
+ setup(e, { emit: v }) {
61
+ const t = e, k = f(
62
+ () => t.feedbackVariant ? `state-${t.feedbackVariant}` : ""
56
63
  ), b = () => {
57
- T("click");
58
- }, p = A(e.testId, f), k = u(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.allSelected ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), s = u(() => {
59
- if (!e.selectedOption)
64
+ v("click");
65
+ }, u = V(t.testId, c), O = f(() => t.multi ? !Array.isArray(t.selectedOption) || !t.selectedOption?.length ? t.placeholder : t.showAllSelectedText && t.allSelected ? `All selected (${t.selectedOption.length})` : t.selectedOption?.length === 1 && t.displayValue ? t.displayValue(t.selectedOption[0]) : `${t.selectedOption.length} selected` : t.selectedOption ? t.displayValue(t.selectedOption) : t.placeholder), i = f(() => {
66
+ if (!t.selectedOption)
60
67
  return null;
61
- if (!e.multi)
62
- return e.selectedOption;
63
- if (Array.isArray(e.selectedOption))
64
- return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
68
+ if (!t.multi)
69
+ return t.selectedOption;
70
+ if (Array.isArray(t.selectedOption))
71
+ return t.selectedOption.length === 1 ? t.selectedOption[0] : null;
65
72
  });
66
- return (o, y) => (a(), d("div", N, [
67
- t.label ? (a(), m(V, {
73
+ return (a, h) => (o(), d("div", D, [
74
+ e.label ? (o(), T(K, {
68
75
  key: 0,
69
- label: t.label,
70
- mandatory: t.mandatory,
71
- "hover-help-text": t.hoverHelpText,
72
- "hover-help-text-placement": t.hoverHelpTextPlacement,
73
- disabled: t.disabled,
74
- "test-id": t.testId,
76
+ label: e.label,
77
+ mandatory: e.mandatory,
78
+ "hover-help-text": e.hoverHelpText,
79
+ "hover-help-text-placement": e.hoverHelpTextPlacement,
80
+ disabled: e.disabled,
81
+ "test-id": e.testId,
75
82
  class: "dropdown-field-label"
76
83
  }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
77
- c("div", h({
78
- class: ["dropdown-trigger", [t.size, l(v), { open: t.open, disabled: t.disabled }]]
79
- }, l(p)[l(f).BUTTON_WRAPPER], {
80
- onClick: y[0] || (y[0] = (R) => b())
84
+ p("div", y({
85
+ class: ["dropdown-trigger", [e.size, l(k), { open: e.open, disabled: e.disabled }]]
86
+ }, l(u)[l(c).BUTTON_WRAPPER], {
87
+ onClick: h[0] || (h[0] = (U) => b())
81
88
  }), [
82
- c("div", S, [
83
- o.$slots.image || l(s) && t.optionImageKey ? (a(), d("div", x, [
84
- i(o.$slots, "image", {}, () => [
85
- t.optionImageKey ? (a(), d("img", {
89
+ p("div", N, [
90
+ a.$slots.image || l(i) && e.optionImageKey ? (o(), d("div", S, [
91
+ r(a.$slots, "image", {}, () => [
92
+ e.optionImageKey ? (o(), d("img", {
86
93
  key: 0,
87
- src: l(s)[t.optionImageKey]
88
- }, null, 8, C)) : n("", !0)
94
+ src: l(i)[e.optionImageKey]
95
+ }, null, 8, P)) : n("", !0)
89
96
  ], !0)
90
97
  ])) : n("", !0),
91
- o.$slots.flag || l(s) && t.optionFlagKey ? (a(), d("div", F, [
92
- i(o.$slots, "flag", {}, () => [
93
- t.optionFlagKey ? (a(), m(l(K), {
98
+ a.$slots.flag || l(i) && e.optionFlagKey ? (o(), d("div", C, [
99
+ r(a.$slots, "flag", {}, () => [
100
+ e.optionFlagKey ? (o(), T(l($), {
94
101
  key: 0,
95
- "country-code": l(s)[t.optionFlagKey]
102
+ "country-code": l(i)[e.optionFlagKey]
96
103
  }, null, 8, ["country-code"])) : n("", !0)
97
104
  ], !0)
98
105
  ])) : n("", !0),
99
- o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
100
- i(o.$slots, "icon-start", {}, () => [
101
- r(l(g), {
102
- type: t.optionIconType,
103
- name: l(s)[t.optionIconKey],
106
+ a.$slots["icon-start"] || l(i) && e.optionIconKey ? (o(), d("div", F, [
107
+ r(a.$slots, "icon-start", {}, () => [
108
+ s(l(m), {
109
+ type: e.optionIconType,
110
+ name: l(i)[e.optionIconKey],
104
111
  size: "20px"
105
112
  }, null, 8, ["type", "name"])
106
113
  ], !0)
107
114
  ])) : n("", !0),
108
- t.statusDotType ? (a(), d("div", z, [
109
- r(l(D), { type: t.statusDotType }, null, 8, ["type"])
115
+ e.statusDotType ? (o(), d("div", z, [
116
+ s(l(A), { type: e.statusDotType }, null, 8, ["type"])
110
117
  ])) : n("", !0),
111
- i(o.$slots, "displayed-value", {}, () => [
112
- r(l(w), h({ variant: "body1" }, l(p)[l(f).BUTTON_CONTENT], { class: "displayed-value" }), {
113
- default: O(() => [
114
- B($(l(k)), 1)
118
+ r(a.$slots, "displayed-value", {}, () => [
119
+ s(l(w), y({ variant: "body1" }, l(u)[l(c).BUTTON_CONTENT], { class: "displayed-value" }), {
120
+ default: g(() => [
121
+ x(B(l(O)), 1)
115
122
  ]),
116
123
  _: 1
117
124
  }, 16)
118
125
  ], !0)
119
126
  ]),
120
- o.$slots["end-icon"] ? (a(), d("div", E, [
121
- i(o.$slots, "end-icon", {}, void 0, !0)
127
+ e.inlineError && e.inlineErrorText ? (o(), d("div", H, [
128
+ s(l(E), y({
129
+ text: e.inlineErrorText,
130
+ placement: e.inlineErrorTextPlacement
131
+ }, l(u)[l(c).TOOLTIP]), {
132
+ default: g(() => [
133
+ s(l(m), {
134
+ name: "warning-circle",
135
+ size: "16px"
136
+ })
137
+ ]),
138
+ _: 1
139
+ }, 16, ["text", "placement"])
140
+ ])) : n("", !0),
141
+ a.$slots["end-icon"] ? (o(), d("div", L, [
142
+ r(a.$slots, "end-icon", {}, void 0, !0)
122
143
  ])) : n("", !0),
123
- c("div", H, [
124
- r(l(g), {
144
+ p("div", R, [
145
+ s(l(m), {
125
146
  name: "caret-down",
126
147
  size: "20px"
127
148
  })
@@ -131,5 +152,5 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
131
152
  }
132
153
  });
133
154
  export {
134
- Q as default
155
+ Z as default
135
156
  };
@@ -22,6 +22,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
22
  minSelections?: number;
23
23
  maxSelections?: number;
24
24
  alwaysShowScroll?: boolean;
25
+ inlineError?: boolean;
26
+ inlineErrorText?: string;
27
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
25
28
  isOnTop?: boolean;
26
29
  distance?: number;
27
30
  container?: string;
@@ -59,6 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
59
62
  optionTwoLinesVariant?: "horizontal" | "vertical";
60
63
  optionTwoLinesKey?: string;
61
64
  groupedOptions?: boolean;
65
+ resortGroupedOptions?: boolean;
62
66
  comparingKey?: string;
63
67
  customNumberOfDisplayedOptions?: number;
64
68
  optionTooltipPosition?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
@@ -102,6 +106,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
102
106
  minSelections: number;
103
107
  maxSelections: any;
104
108
  alwaysShowScroll: boolean;
109
+ inlineError: boolean;
110
+ inlineErrorText: string;
111
+ inlineErrorTextPlacement: string;
105
112
  triggerLabel: string;
106
113
  triggerHelperText: string;
107
114
  triggerFeedbackText: string;
@@ -125,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
125
132
  optionTwoLinesVariant: any;
126
133
  optionTwoLinesKey: any;
127
134
  groupedOptions: boolean;
135
+ resortGroupedOptions: boolean;
128
136
  comparingKey: any;
129
137
  customNumberOfDisplayedOptions: any;
130
138
  optionTooltipPosition: string;
@@ -174,6 +182,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
174
182
  minSelections?: number;
175
183
  maxSelections?: number;
176
184
  alwaysShowScroll?: boolean;
185
+ inlineError?: boolean;
186
+ inlineErrorText?: string;
187
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
177
188
  isOnTop?: boolean;
178
189
  distance?: number;
179
190
  container?: string;
@@ -211,6 +222,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
211
222
  optionTwoLinesVariant?: "horizontal" | "vertical";
212
223
  optionTwoLinesKey?: string;
213
224
  groupedOptions?: boolean;
225
+ resortGroupedOptions?: boolean;
214
226
  comparingKey?: string;
215
227
  customNumberOfDisplayedOptions?: number;
216
228
  optionTooltipPosition?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
@@ -254,6 +266,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
254
266
  minSelections: number;
255
267
  maxSelections: any;
256
268
  alwaysShowScroll: boolean;
269
+ inlineError: boolean;
270
+ inlineErrorText: string;
271
+ inlineErrorTextPlacement: string;
257
272
  triggerLabel: string;
258
273
  triggerHelperText: string;
259
274
  triggerFeedbackText: string;
@@ -277,6 +292,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
277
292
  optionTwoLinesVariant: any;
278
293
  optionTwoLinesKey: any;
279
294
  groupedOptions: boolean;
295
+ resortGroupedOptions: boolean;
280
296
  comparingKey: any;
281
297
  customNumberOfDisplayedOptions: any;
282
298
  optionTooltipPosition: string;
@@ -316,6 +332,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
316
332
  valueToCopy: string;
317
333
  selected: any;
318
334
  placeholder: string;
335
+ inlineError: boolean;
336
+ inlineErrorText: string;
337
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
319
338
  multi: boolean;
320
339
  infiniteLoading: boolean;
321
340
  showSelectAll: boolean;
@@ -356,6 +375,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
356
375
  optionTwoLinesVariant: "horizontal" | "vertical";
357
376
  optionTwoLinesKey: string;
358
377
  groupedOptions: boolean;
378
+ resortGroupedOptions: boolean;
359
379
  comparingKey: string;
360
380
  customNumberOfDisplayedOptions: number;
361
381
  optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
@@ -401,6 +421,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
401
421
  size: "small" | "medium" | "large";
402
422
  showAllSelectedText: boolean;
403
423
  allSelected: boolean;
424
+ inlineError: boolean;
425
+ inlineErrorText: string;
426
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
404
427
  onKeydown: (event: any) => void;
405
428
  onClick: () => void;
406
429
  };
@@ -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_a594c97e_lang.css"; //*');
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a594c97e"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-445ebb01"]]);
6
6
  export {
7
7
  r as default
8
8
  };