@ironsource/shared-ui 2.1.12-test.74 → 2.1.12-test.75

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
+ .custom-list-area[data-v-acd8417d]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 10px}.inline-search[data-v-acd8417d]{width:100%}.contain-accept[data-v-acd8417d]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-acd8417d]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-acd8417d]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .sticky[data-v-5b72e35a]{position:sticky}.table-container[data-v-5b72e35a]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-5b72e35a]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-5b72e35a]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-5b72e35a]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-5b72e35a]{width:13.75rem}.table-header.isStickyHeader[data-v-5b72e35a]{z-index:calc(var(--6eb1b581) + 3);top:0}.table-head-container[data-v-5b72e35a]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-5b72e35a]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-5b72e35a]{display:inline-table}.table-header-pre-search-content[data-v-5b72e35a]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-5b72e35a]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-5b72e35a]{position:relative}.table-row.loading[data-v-5b72e35a]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-5b72e35a]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-5b72e35a]{border-bottom:none}.expanded-row[data-v-5b72e35a]{grid-column:var(--4420f996);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-5b72e35a]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-5b72e35a]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-5b72e35a],table th[data-v-5b72e35a]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-5b72e35a]:first-of-type,table th[data-v-5b72e35a]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-5b72e35a]:last-of-type,table th[data-v-5b72e35a]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-5b72e35a],table th.expand-toggle-cell[data-v-5b72e35a]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-5b72e35a]{border-bottom:none;z-index:calc(var(--6eb1b581) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-5b72e35a]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--3030c624)}table>thead>tr>th[data-v-5b72e35a]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-5b72e35a]{cursor:pointer}table>thead>tr>td[data-v-5b72e35a]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-5b72e35a],table>thead>tr>td.bordered[data-v-5b72e35a]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-5b72e35a],table>thead>tr>td.bordered.isStickyRight[data-v-5b72e35a]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-5b72e35a],table>thead>tr>td.isTextRight[data-v-5b72e35a]{justify-content:flex-end}table>thead.sticky[data-v-5b72e35a]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-5b72e35a]{z-index:calc(var(--6eb1b581) + 2);top:calc(var(--spacing-800) - 1px)}table .totals-row[data-v-5b72e35a]{height:40px}table .totals-row[data-v-5b72e35a]:hover{background:var(--background-paper-elevation-1)}table>tbody[data-v-5b72e35a]{display:block}table>tbody>*>tr[data-v-5b72e35a]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--3030c624)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-5b72e35a]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-5b72e35a],table>tbody>*>tr.activeMenu>td[data-v-5b72e35a]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-5b72e35a]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-5b72e35a]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-5b72e35a]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-5b72e35a]{justify-content:flex-end;text-align:right}.underlined[data-v-5b72e35a]{border-bottom:.0625rem dashed var(--common-divider)}.underlined[data-v-5b72e35a]:hover{cursor:help}.section-container[data-v-5b72e35a]{left:0}.sections[data-v-5b72e35a]{display:flex}.section[data-v-5b72e35a]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-5b72e35a]{width:100%}.empty-state[data-v-5b72e35a]{min-height:250px}.floating-row[data-v-5b72e35a]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--6eb1b581) + 1)}.floating-row *[data-v-5b72e35a-s]{pointer-events:auto}.bg[data-v-5b72e35a]{background:var(--background-default)}
@@ -0,0 +1 @@
1
+ .group-button-wrapper[data-v-2076b5ab]{display:flex}.group-button-wrapper[data-v-2076b5ab] button{border-radius:0}.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(1){border-top-left-radius:var(--border-radius-md);border-bottom-left-radius:var(--border-radius-md);border-right:none;background-color:var(--common-inverse-white);width:32px}.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(2){border-right:none;border-left:none;width:32px}.group-button-wrapper .toggle-button[data-v-2076b5ab]:last-child{border-top-right-radius:var(--border-radius-md);border-bottom-right-radius:var(--border-radius-md);border-right:1px solid var(--default-outlined-border)}.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(3){padding:0}.group-button-wrapper .popover-trigger[data-v-2076b5ab]{padding:5px 3px}.group-button-wrapper .trigger-active[data-v-2076b5ab]{background:var(--default-light)}.group-button-wrapper .primary[data-v-2076b5ab]{border-color:var(--default-outlined-border);color:var(--action-active)}.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(3):hover,.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(1):not(.selected-a):hover,.group-button-wrapper .toggle-button[data-v-2076b5ab]:nth-child(2):not(.selected-b):hover{background-color:var(--action-hover)}.group-button-wrapper .toggle-button.selected-a[data-v-2076b5ab],.group-button-wrapper .toggle-button.selected-a[data-v-2076b5ab]:hover{background-color:var(--aba);color:var(--common-inverse-white)}.group-button-wrapper .toggle-button.selected-b[data-v-2076b5ab],.group-button-wrapper .toggle-button.selected-b[data-v-2076b5ab]:hover{background-color:var(--abb);color:var(--common-inverse-white)}
@@ -1,7 +1,7 @@
1
1
  import o from "./ToggleButtonGroupAB.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c81a7d3e"]]);
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2076b5ab"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css"; import { defineComponent as A, ref as s, onMounted as C, computed as y, openBlock as f, createElementBlock as N, createVNode as a, mergeProps as p, unref as e, withCtx as r, createTextVNode as B, createBlock as w, createElementVNode as O, renderSlot as R, createCommentVNode as x } from "vue";
2
- import i from "./ButtonV4.vue.js";
3
- import { useVModel as E } from "@vueuse/core";
4
- import G from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css"; import { defineComponent as b, ref as u, computed as A, openBlock as f, createElementBlock as C, createVNode as n, mergeProps as s, unref as e, withCtx as t, createTextVNode as B, createBlock as y, createElementVNode as N, renderSlot as w, createCommentVNode as O } from "vue";
2
+ import c from "./ButtonV4.vue.js";
3
+ import { useVModel as R } from "@vueuse/core";
4
+ import x from "../../icon/v4/IconV4.vue.js";
5
5
  import "../../icon/v4/IconFlag.vue.js";
6
- import M from "../../popover/v4/PopoverV4.vue.js";
7
- import { useTestIdAttrs as $ } from "../../../utils/testIds.js";
8
- import { ToggleButtonGroupABTestIdModifiers as u } from "../../../testids/index.js";
9
- const h = { class: "group-button-wrapper" }, U = { class: "popover-trigger" }, K = /* @__PURE__ */ A({
6
+ import E from "../../popover/v4/PopoverV4.vue.js";
7
+ import { useTestIdAttrs as G } from "../../../utils/testIds.js";
8
+ import { ToggleButtonGroupABTestIdModifiers as p } from "../../../testids/index.js";
9
+ const $ = { class: "group-button-wrapper" }, h = { class: "popover-trigger" }, H = /* @__PURE__ */ b({
10
10
  __name: "ToggleButtonGroupAB",
11
11
  props: {
12
12
  modelValue: null,
@@ -16,49 +16,45 @@ const h = { class: "group-button-wrapper" }, U = { class: "popover-trigger" }, K
16
16
  },
17
17
  emits: ["update:modelValue"],
18
18
  setup(d, { expose: T, emit: P }) {
19
- const t = d, m = s(null), v = s(!1), _ = (o) => {
19
+ const r = d, m = u(null), v = u(!1), _ = (o) => {
20
20
  v.value = o;
21
- }, c = $(
22
- t.testId,
23
- u,
21
+ }, a = G(
22
+ r.testId,
23
+ p,
24
24
  !0
25
- ), V = s(
26
- t.popoverProps ? { ...t.popoverProps } : {}
27
- ), l = s(), k = E(t, "modelValue", P);
28
- C(() => {
29
- l.value = t.modelValue;
30
- });
31
- const g = (o) => {
32
- l.value = o, k.value = o;
33
- }, I = y(() => m.value?.toggle);
25
+ ), V = u(
26
+ r.popoverProps ? { ...r.popoverProps } : {}
27
+ ), i = R(r, "modelValue", P), g = (o) => {
28
+ i.value = o;
29
+ }, k = A(() => m.value?.toggle);
34
30
  return T({
35
- toggle: I
36
- }), (o, n) => (f(), N("div", h, [
37
- a(i, p({
38
- class: ["toggle-button", { "selected-a": l.value === "a" }],
31
+ toggle: k
32
+ }), (o, l) => (f(), C("div", $, [
33
+ n(c, s({
34
+ class: ["toggle-button", { "selected-a": e(i) === "a" }],
39
35
  color: "primary",
40
36
  variant: "outlined"
41
- }, e(c)[e(u).BUTTON_A], {
42
- onClick: n[0] || (n[0] = (b) => g("a"))
37
+ }, e(a)[e(p).BUTTON_A], {
38
+ onClick: l[0] || (l[0] = (I) => g("a"))
43
39
  }), {
44
- default: r(() => [
40
+ default: t(() => [
45
41
  B(" A ")
46
42
  ]),
47
43
  _: 1
48
44
  }, 16, ["class"]),
49
- a(i, p({
50
- class: ["toggle-button", { "selected-b": l.value === "b" }],
45
+ n(c, s({
46
+ class: ["toggle-button", { "selected-b": e(i) === "b" }],
51
47
  color: "primary",
52
48
  variant: "outlined"
53
- }, e(c)[e(u).BUTTON_B], {
54
- onClick: n[1] || (n[1] = (b) => g("b"))
49
+ }, e(a)[e(p).BUTTON_B], {
50
+ onClick: l[1] || (l[1] = (I) => g("b"))
55
51
  }), {
56
- default: r(() => [
52
+ default: t(() => [
57
53
  B(" B ")
58
54
  ]),
59
55
  _: 1
60
56
  }, 16, ["class"]),
61
- d.withPopover ? (f(), w(i, p({
57
+ d.withPopover ? (f(), y(c, s({
62
58
  key: 0,
63
59
  class: [
64
60
  "toggle-button",
@@ -68,33 +64,33 @@ const h = { class: "group-button-wrapper" }, U = { class: "popover-trigger" }, K
68
64
  ],
69
65
  color: "primary",
70
66
  variant: "outlined"
71
- }, e(c)[e(u).POPOVER_TRIGGER]), {
72
- default: r(() => [
73
- a(e(M), p({
67
+ }, e(a)[e(p).POPOVER_TRIGGER]), {
68
+ default: t(() => [
69
+ n(e(E), s({
74
70
  ref_key: "popoverRef",
75
71
  ref: m
76
72
  }, {
77
73
  ...V.value
78
74
  }, { onIsOpen: _ }), {
79
- trigger: r(() => [
80
- O("div", U, [
81
- a(e(G), {
75
+ trigger: t(() => [
76
+ N("div", h, [
77
+ n(e(x), {
82
78
  name: "caret-down",
83
79
  size: "16px"
84
80
  })
85
81
  ])
86
82
  ]),
87
- content: r(() => [
88
- R(o.$slots, "popover-content", {}, void 0, !0)
83
+ content: t(() => [
84
+ w(o.$slots, "popover-content", {}, void 0, !0)
89
85
  ]),
90
86
  _: 3
91
87
  }, 16)
92
88
  ]),
93
89
  _: 3
94
- }, 16, ["class"])) : x("", !0)
90
+ }, 16, ["class"])) : O("", !0)
95
91
  ]));
96
92
  }
97
93
  });
98
94
  export {
99
- K as default
95
+ H as default
100
96
  };
@@ -185,8 +185,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
185
185
  error: string;
186
186
  skidding: number;
187
187
  modelValue: any;
188
- selected: any;
189
188
  valueToCopy: string;
189
+ selected: any;
190
190
  placeholder: string;
191
191
  autoFocus: boolean;
192
192
  multi: boolean;
@@ -21,8 +21,8 @@ declare const DropdownTypes: () => (({
21
21
  error: string;
22
22
  skidding: number;
23
23
  modelValue: any;
24
- selected: any;
25
24
  valueToCopy: string;
25
+ selected: any;
26
26
  placeholder: string;
27
27
  autoFocus: boolean;
28
28
  multi: boolean;
@@ -104,14 +104,14 @@ declare const DropdownTypes: () => (({
104
104
  type: import("vue").PropType<unknown>;
105
105
  default: any;
106
106
  };
107
- selected: {
108
- type: import("vue").PropType<unknown>;
109
- default: any;
110
- };
111
107
  valueToCopy: {
112
108
  type: import("vue").PropType<string>;
113
109
  default: string;
114
110
  };
111
+ selected: {
112
+ type: import("vue").PropType<unknown>;
113
+ default: any;
114
+ };
115
115
  options: {
116
116
  type: import("vue").PropType<any[]>;
117
117
  required: true;
@@ -203,7 +203,7 @@ declare const DropdownTypes: () => (({
203
203
  "onUpdate:isOpen"?: (value: unknown) => any;
204
204
  onOpened?: () => any;
205
205
  onClosed?: () => any;
206
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "clearable" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
206
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "clearable" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
207
207
  $attrs: {
208
208
  [x: string]: unknown;
209
209
  };
@@ -280,14 +280,14 @@ declare const DropdownTypes: () => (({
280
280
  type: import("vue").PropType<unknown>;
281
281
  default: any;
282
282
  };
283
- selected: {
284
- type: import("vue").PropType<unknown>;
285
- default: any;
286
- };
287
283
  valueToCopy: {
288
284
  type: import("vue").PropType<string>;
289
285
  default: string;
290
286
  };
287
+ selected: {
288
+ type: import("vue").PropType<unknown>;
289
+ default: any;
290
+ };
291
291
  options: {
292
292
  type: import("vue").PropType<any[]>;
293
293
  required: true;
@@ -405,8 +405,8 @@ declare const DropdownTypes: () => (({
405
405
  error: string;
406
406
  skidding: number;
407
407
  modelValue: any;
408
- selected: any;
409
408
  valueToCopy: string;
409
+ selected: any;
410
410
  placeholder: string;
411
411
  autoFocus: boolean;
412
412
  multi: boolean;
@@ -508,14 +508,14 @@ declare const DropdownTypes: () => (({
508
508
  type: import("vue").PropType<unknown>;
509
509
  default: any;
510
510
  };
511
- selected: {
512
- type: import("vue").PropType<unknown>;
513
- default: any;
514
- };
515
511
  valueToCopy: {
516
512
  type: import("vue").PropType<string>;
517
513
  default: string;
518
514
  };
515
+ selected: {
516
+ type: import("vue").PropType<unknown>;
517
+ default: any;
518
+ };
519
519
  options: {
520
520
  type: import("vue").PropType<any[]>;
521
521
  required: true;
@@ -677,14 +677,14 @@ declare const DropdownTypes: () => (({
677
677
  type: import("vue").PropType<unknown>;
678
678
  default: any;
679
679
  };
680
- selected: {
681
- type: import("vue").PropType<unknown>;
682
- default: any;
683
- };
684
680
  valueToCopy: {
685
681
  type: import("vue").PropType<string>;
686
682
  default: string;
687
683
  };
684
+ selected: {
685
+ type: import("vue").PropType<unknown>;
686
+ default: any;
687
+ };
688
688
  options: {
689
689
  type: import("vue").PropType<any[]>;
690
690
  required: true;
@@ -802,8 +802,8 @@ declare const DropdownTypes: () => (({
802
802
  error: string;
803
803
  skidding: number;
804
804
  modelValue: any;
805
- selected: any;
806
805
  valueToCopy: string;
806
+ selected: any;
807
807
  placeholder: string;
808
808
  autoFocus: boolean;
809
809
  multi: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cce87267"]]);
2
+ /* empty css */import d from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_acd8417d_lang.css"; //*');
4
+ const p = /* @__PURE__ */ d(o, [["__scopeId", "data-v-acd8417d"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css"; import { defineComponent as W, computed as w, ref as s, watch as O, onMounted as q, openBlock as D, createBlock as G, unref as c, withCtx as f, createVNode as y, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
2
- import F from "./DropdownV4.vue.js";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_acd8417d_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as h, onMounted as q, openBlock as F, createBlock as G, unref as c, withCtx as f, createVNode as S, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
2
+ import L from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
5
  import te from "./ChipDropdownTrigger.vue.js";
@@ -42,44 +42,44 @@ const re = { class: "conditional-container" }, se = {
42
42
  triggerShownValuesCount: { default: 1 }
43
43
  },
44
44
  emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
45
- setup(n, { emit: h }) {
46
- const e = n, S = w({
45
+ setup(i, { emit: C }) {
46
+ const e = i, m = O({
47
47
  get: () => e.appliedSelections,
48
48
  set: (l) => {
49
- h("update:appliedSelections", l);
49
+ C("update:appliedSelections", l);
50
50
  }
51
- }), u = w({
51
+ }), u = O({
52
52
  get: () => e.selectedCondition || e.conditionalOptions[0],
53
53
  set: (l) => {
54
- h("update:selectedCondition", l);
54
+ C("update:selectedCondition", l);
55
55
  }
56
- }), L = () => {
56
+ }), k = () => {
57
57
  const { appliedSelections: l } = e;
58
58
  return l ? Array.isArray(l) ? l : [l] : [];
59
- }, k = s(null), p = s(!0), a = s([]), i = s(L()), T = s(!0), d = s(!1), C = s(!1), r = s(e.searchQuery), B = s(""), m = s(e.label), K = s([]), U = w(() => (!r.value || r.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = w(() => {
59
+ }, T = s(null), p = s(!0), a = s([]), n = s(k()), A = s(!0), d = s(!1), b = s(!1), r = s(e.searchQuery), B = s(""), g = s(e.label), K = s([]), U = O(() => (!r.value || r.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = O(() => {
60
60
  const l = p.value ? 4 : 4.5, o = a.value.length > 4 ? a.value.length : l;
61
61
  if (e.groupedOptions) {
62
62
  let t = 0;
63
- return a.value.forEach((g) => {
64
- g.options && (t = t + g.options.length);
63
+ return a.value.forEach((y) => {
64
+ y.options && (t = t + y.options.length);
65
65
  }), t > 4 ? t : l;
66
66
  }
67
67
  return o > l ? o : l;
68
68
  }), M = (l, o) => {
69
- if (e.infiniteLoading && u.value.multi && Array.isArray(i.value) && i.value.length && l && o.length) {
70
- const t = [], g = i.value.filter(
69
+ if (e.infiniteLoading && u.value.multi && Array.isArray(n.value) && n.value.length && l && o.length) {
70
+ const t = [], y = n.value.filter(
71
71
  (v) => v[e.optionNameKey].includes(l)
72
72
  );
73
73
  return o.forEach((v) => {
74
- g.find(
74
+ y.find(
75
75
  (j) => j[e.comparingKey] === v[e.comparingKey]
76
76
  ) && t.push(v[e.comparingKey]);
77
- }), g.filter(
77
+ }), y.filter(
78
78
  (v) => !t.includes(v[e.comparingKey])
79
79
  );
80
80
  }
81
81
  return [];
82
- }, A = async (l) => {
82
+ }, N = async (l) => {
83
83
  try {
84
84
  d.value = !0;
85
85
  const o = await e.fetchFnCallback(l), t = M(
@@ -93,17 +93,17 @@ const re = { class: "conditional-container" }, se = {
93
93
  }, E = async () => {
94
94
  if (e.infiniteLoading)
95
95
  try {
96
- C.value = !0;
96
+ b.value = !0;
97
97
  const l = await e.loadMoreFn();
98
- C.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
98
+ b.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
99
99
  } catch (l) {
100
- C.value = !1, console.error("Error fetching data:", l);
100
+ b.value = !1, console.error("Error fetching data:", l);
101
101
  }
102
102
  }, x = ue(
103
- A,
103
+ N,
104
104
  e.fetchDataDebounceTime
105
- ), b = (l) => {
106
- l.length >= e.minCharsToStart ? (x(l), k.value?.scrollTo(0)) : e.infiniteLoading && u.value.multi ? a.value = K.value || [] : a.value = [];
105
+ ), w = (l) => {
106
+ l.length >= e.minCharsToStart ? (x(l), T.value?.scrollTo(0)) : e.infiniteLoading && u.value.multi ? a.value = K.value || [] : a.value = [];
107
107
  }, P = () => {
108
108
  r.value && a.value.length && !d.value && !u.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
109
109
  [e.optionNameKey]: r.value,
@@ -119,120 +119,122 @@ const re = { class: "conditional-container" }, se = {
119
119
  },
120
120
  ...a.value
121
121
  ] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
122
- }, N = () => {
123
- p.value && i.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${u.value.label.toLowerCase()}`;
122
+ }, D = () => {
123
+ p.value && n.value.length === 0 ? g.value = e.label : g.value = `${e.label} ${u.value.label.toLowerCase()}`;
124
124
  };
125
- O(r, () => {
126
- b(r.value);
127
- }), O([u, a], () => {
125
+ h(r, () => {
126
+ w(r.value);
127
+ }), h([u, a], () => {
128
128
  P();
129
- }), O(
129
+ }), h(
130
130
  () => e.loadingOverride,
131
131
  (l, o) => {
132
- !l && o && !e.infiniteLoading && A(e.searchQuery);
132
+ !l && o && !e.infiniteLoading && N(e.searchQuery);
133
133
  }
134
134
  );
135
135
  const Q = () => {
136
- p.value && i.value.length === 0 ? (u.value = null, S.value = [], u.value = null) : (B.value = r.value, S.value = p.value ? [...i.value] : { ...i.value }, T.value = p.value), N();
136
+ p.value && n.value.length === 0 ? (u.value = null, m.value = [], u.value = null) : (B.value = r.value, m.value = p.value ? [...n.value] : { ...n.value }, A.value = p.value), D();
137
137
  };
138
- O(u, (l, o) => {
139
- u.value.multi ? (d.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ? i.value = e.appliedSelections : i.value = [e.appliedSelections]), setTimeout(() => {
138
+ h(u, (l, o) => {
139
+ u.value.multi ? (d.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ? n.value = e.appliedSelections : n.value = [e.appliedSelections]), setTimeout(() => {
140
140
  d.value = !1, p.value = !0;
141
141
  }, 100)) : (!o.multi && !l.multi && (d.value = !0), setTimeout(() => {
142
142
  !o.multi && !l.multi && (d.value = !1), p.value = !1;
143
143
  }, 100));
144
+ }), h(m, () => {
145
+ n.value = k();
144
146
  });
145
147
  const V = (l) => {
146
148
  K.value = l;
147
149
  }, R = () => {
148
- i.value = [], S.value = [], u.value = null, m.value = e.label, r.value = "", h("clear");
150
+ n.value = [], m.value = [], u.value = null, g.value = e.label, r.value = "", C("clear");
149
151
  }, z = (l) => {
150
- l && u.value.multi && e.infiniteLoading && i.value && (a.value = i.value, r.value && b(r.value));
152
+ l && u.value.multi && e.infiniteLoading && n.value && (a.value = n.value, r.value && w(r.value));
151
153
  };
152
154
  q(() => {
153
- (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (a.value = e.appliedSelections, i.value = e.appliedSelections, K.value = e.appliedSelections), N();
155
+ (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && w(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (a.value = e.appliedSelections, n.value = e.appliedSelections, K.value = e.appliedSelections), D();
154
156
  });
155
157
  const $ = () => {
156
- h("closed");
158
+ C("closed");
157
159
  };
158
- return (l, o) => (D(), G(c(F), {
160
+ return (l, o) => (F(), G(c(L), {
159
161
  ref_key: "dropdownRef",
160
- ref: k,
161
- selected: i.value,
162
- "onUpdate:selected": o[2] || (o[2] = (t) => i.value = t),
162
+ ref: T,
163
+ selected: n.value,
164
+ "onUpdate:selected": o[2] || (o[2] = (t) => n.value = t),
163
165
  "predefined-trigger": "chip",
164
- "display-value": (t) => t?.[n.optionNameKey],
166
+ "display-value": (t) => t?.[i.optionNameKey],
165
167
  multi: p.value,
166
168
  options: a.value,
167
- placeholder: m.value,
169
+ placeholder: g.value,
168
170
  "search-placeholder": "Search",
169
- "option-name-key": n.optionNameKey,
171
+ "option-name-key": i.optionNameKey,
170
172
  "with-conditions": "",
171
173
  "inline-search": "",
172
174
  "custom-number-of-displayed-options": c(I),
173
175
  "options-list-width": "330px",
174
- loading: d.value || n.loadingOverride,
175
- "load-more-loading": C.value,
176
- "comparing-key": n.comparingKey,
177
- "is-open": n.isOpen,
178
- "infinite-loading": n.infiniteLoading,
179
- "show-select-all": !n.infiniteLoading && !r.value,
180
- "grouped-options": n.groupedOptions,
181
- "option-flag-key": n.optionFlagKey,
182
- "option-image-key": n.optionImageKey,
183
- "option-icon-key": n.optionIconKey,
184
- "option-icon-type": n.optionIconType,
185
- "trigger-shown-values-count": n.triggerShownValuesCount,
176
+ loading: d.value || i.loadingOverride,
177
+ "load-more-loading": b.value,
178
+ "comparing-key": i.comparingKey,
179
+ "is-open": i.isOpen,
180
+ "infinite-loading": i.infiniteLoading,
181
+ "show-select-all": !i.infiniteLoading && !r.value,
182
+ "grouped-options": i.groupedOptions,
183
+ "option-flag-key": i.optionFlagKey,
184
+ "option-image-key": i.optionImageKey,
185
+ "option-icon-key": i.optionIconKey,
186
+ "option-icon-type": i.optionIconType,
187
+ "trigger-shown-values-count": i.triggerShownValuesCount,
186
188
  "onUpdate:isOpen": z,
187
- onOnsearch: b,
189
+ onOnsearch: w,
188
190
  onApply: Q,
189
191
  onLoadMore: E,
190
192
  onUnsavedSelectionUpdate: V,
191
193
  onClosed: $
192
194
  }, {
193
195
  "dropdown-trigger": f(({ defaultTriggerProps: t }) => [
194
- y(c(te), H(t, {
195
- label: m.value,
196
- "selected-option": c(S),
197
- multi: T.value,
196
+ S(c(te), H(t, {
197
+ label: g.value,
198
+ "selected-option": c(m),
199
+ multi: A.value,
198
200
  "cancel-all-selected-display": "",
199
- "display-value-in-quotes": !Array.isArray(i.value) && i.value.conditionalOptions,
200
- "shown-values-count": n.triggerShownValuesCount,
201
+ "display-value-in-quotes": !Array.isArray(n.value) && n.value.conditionalOptions,
202
+ "shown-values-count": i.triggerShownValuesCount,
201
203
  onClear: R
202
204
  }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes", "shown-values-count"])
203
205
  ]),
204
206
  "dropdown-conditions": f(() => [
205
207
  J("div", re, [
206
- y(c(F), {
208
+ S(c(L), {
207
209
  selected: c(u),
208
210
  "onUpdate:selected": o[0] || (o[0] = (t) => X(u) ? u.value = t : null),
209
- options: n.conditionalOptions,
211
+ options: i.conditionalOptions,
210
212
  "option-name-key": "label",
211
213
  "display-value": (t) => t?.label,
212
214
  container: ".conditional-container",
213
215
  size: "small"
214
216
  }, {
215
217
  "dropdown-trigger": f(({ buttonTriggerProps: t }) => [
216
- y(c(ae), Y(Z(t)), null, 16)
218
+ S(c(ae), Y(Z(t)), null, 16)
217
219
  ]),
218
220
  _: 1
219
221
  }, 8, ["selected", "options", "display-value"])
220
222
  ])
221
223
  ]),
222
224
  "inline-search": f(() => [
223
- y(c(ne), {
225
+ S(c(ne), {
224
226
  modelValue: r.value,
225
227
  "onUpdate:modelValue": o[1] || (o[1] = (t) => r.value = t),
226
228
  class: "inline-search",
227
229
  placeholder: "Search",
228
230
  variant: "transparent",
229
231
  size: "md",
230
- "auto-focus": n.autoFocusSearch
232
+ "auto-focus": i.autoFocusSearch
231
233
  }, null, 8, ["modelValue", "auto-focus"])
232
234
  ]),
233
235
  "custom-list-area": f(() => [
234
- !a.value.length && !d.value ? (D(), _("div", se, [
235
- y(ie, { variant: "body1" }, {
236
+ !a.value.length && !d.value ? (F(), _("div", se, [
237
+ S(ie, { variant: "body1" }, {
236
238
  default: f(() => [
237
239
  ee(le(c(U)), 1)
238
240
  ]),
@@ -301,8 +301,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
301
301
  mandatory: boolean;
302
302
  skidding: number;
303
303
  modelValue: any;
304
- selected: any;
305
304
  valueToCopy: string;
305
+ selected: any;
306
306
  placeholder: string;
307
307
  multi: boolean;
308
308
  infiniteLoading: boolean;
@@ -84,8 +84,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
84
84
  testId: string;
85
85
  disabled: boolean;
86
86
  size: "small" | "medium" | "large";
87
- selected: unknown[];
88
87
  valueToCopy: string;
88
+ selected: unknown[];
89
89
  placeholder: string;
90
90
  inlineSearchPlaceholder: string;
91
91
  optionNameKey: string;