@ironsource/shared-ui 2.1.12-test.52 → 2.1.12-test.53

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 (153) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  2. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  3. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +1 -0
  4. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +1 -0
  5. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  6. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +1 -0
  8. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  9. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  10. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  11. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  12. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  13. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +1 -0
  14. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  15. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  16. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  17. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  18. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  19. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +1 -0
  20. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  21. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +1 -0
  22. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  23. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  24. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  25. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  26. package/components/chart/Chart.vue.d.ts +16 -1
  27. package/components/chart/Chart.vue.js +4 -4
  28. package/components/chart/Chart.vue2.js +38 -32
  29. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  30. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  31. package/components/chart/ChartPlane.vue.d.ts +10 -0
  32. package/components/chart/ChartPlane.vue.js +4 -4
  33. package/components/chart/ChartPlane.vue2.js +158 -147
  34. package/components/chart/ChartStoryArgs.d.ts +17 -0
  35. package/components/chart/ChartTooltip.vue.js +2 -2
  36. package/components/chart/ChartTooltip.vue2.js +6 -6
  37. package/components/chart/TooltipHeader.vue.js +3 -3
  38. package/components/chart/TooltipHeader.vue2.js +25 -26
  39. package/components/chart/colorPalette.d.ts +2 -1
  40. package/components/chart/colorPalette.js +47 -33
  41. package/components/chart/composables/useColorsMap.d.ts +3 -1
  42. package/components/chart/composables/useColorsMap.js +32 -30
  43. package/components/chart/consts.d.ts +5 -1
  44. package/components/chart/consts.js +30 -26
  45. package/components/chart/index.d.ts +58 -1
  46. package/components/chart/mockData.d.ts +15 -0
  47. package/components/chart/types.d.ts +3 -1
  48. package/components/chart/types.js +5 -5
  49. package/components/chart/utils/utils.d.ts +1 -1
  50. package/components/chart/utils/utils.js +18 -13
  51. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  52. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  53. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  54. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  55. package/components/columnPicker/OptionChip.vue.js +7 -0
  56. package/components/columnPicker/OptionChip.vue2.js +46 -0
  57. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  58. package/components/columnPicker/RemoveButton.vue.js +7 -0
  59. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  60. package/components/columnPicker/index.d.ts +388 -0
  61. package/components/columnPicker/index.js +6 -0
  62. package/components/columnPicker/mockData.d.ts +8 -0
  63. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  64. package/components/dialog/v3/index.d.ts +46 -46
  65. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  66. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  67. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  68. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  69. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  70. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  71. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  72. package/components/dialog/v4/DialogV4.vue.js +3 -3
  73. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  74. package/components/dialog/v4/index.d.ts +157 -157
  75. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  76. package/components/dropdown/v3/index.d.ts +20 -20
  77. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  78. package/components/dropdown/v4/ConditionalDropdown.vue2.js +176 -171
  79. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  80. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  81. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  82. package/components/dropdown/v4/index.d.ts +20 -1
  83. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  84. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  85. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  86. package/components/includeExclude/index.d.ts +70 -70
  87. package/components/input/v4/TextField.vue.d.ts +12 -0
  88. package/components/input/v4/TextField.vue.js +3 -3
  89. package/components/input/v4/TextField.vue2.js +129 -105
  90. package/components/input/v4/index.d.ts +46 -2
  91. package/components/link/Link.vue.d.ts +20 -0
  92. package/components/link/Link.vue.js +2 -2
  93. package/components/link/Link.vue2.js +35 -21
  94. package/components/link/index.d.ts +77 -1
  95. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  96. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  97. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  98. package/components/radioButton/v3/index.d.ts +20 -1
  99. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  100. package/components/sortableList/SortableItem.vue.js +3 -3
  101. package/components/sortableList/SortableItem.vue2.js +86 -70
  102. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  103. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  104. package/components/sortableList/SortableList.types.d.ts +1 -0
  105. package/components/sortableList/SortableList.vue.d.ts +10 -0
  106. package/components/sortableList/SortableList.vue.js +3 -3
  107. package/components/sortableList/SortableList.vue2.js +104 -96
  108. package/components/sortableList/composables/useHoverEffect.js +1 -1
  109. package/components/sortableList/index.d.ts +39 -1
  110. package/components/table/v4/DataGrid.vue.d.ts +4 -4
  111. package/components/table/v4/DataGrid.vue.js +3 -3
  112. package/components/table/v4/DataGrid.vue2.js +237 -245
  113. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  114. package/components/table/v4/DataGridHeader.vue.js +7 -0
  115. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  116. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  117. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
  119. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  120. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  121. package/components/table/v4/index.d.ts +552 -305
  122. package/components/table/v4/index.js +7 -4
  123. package/components/table/v4/storyUtils.d.ts +25 -0
  124. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  125. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  126. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  127. package/components/tooltip/v4/index.d.ts +20 -1
  128. package/index.d.ts +2153 -1419
  129. package/index.js +99 -95
  130. package/package.json +5 -1
  131. package/testids/index.d.ts +7 -1
  132. package/testids/index.js +26 -25
  133. package/utils/date.js +3 -3
  134. package/utils/formatNumbers.d.ts +1 -1
  135. package/utils/formatNumbers.js +38 -21
  136. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  137. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  138. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  139. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +0 -1
  140. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  141. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
  142. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  143. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  144. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +0 -1
  145. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  146. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  147. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  148. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  149. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  150. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  151. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  152. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +0 -1
  153. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
@@ -1,22 +1,27 @@
1
- import { getUTCDate as n } from "../../../utils/date.js";
2
- import { format as e } from "date-fns";
3
- import { TICK_LABEL_FONT as E } from "../consts.js";
4
- import { nFormatter as c } from "../../../utils/formatNumbers.js";
5
- import { truncateTextToFit as T } from "../../../utils/text.js";
6
- import { REGEX_LINEBREAK as i } from "../../../consts/regex.js";
7
- const u = (r, t, o = !1) => t === "day" ? e(n(r), "EEEE") : t === "number" ? c(r, o) : t === "date" ? e(n(r), "MMM dd") : t === "dateLong" ? e(n(r), "MMM dd, yyyy") : String(r), _ = ({
1
+ import { getUTCDate as e } from "../../../utils/date.js";
2
+ import { format as f } from "date-fns";
3
+ import { TICK_LABEL_FONT as d } from "../consts.js";
4
+ import { nFormatter as L, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
5
+ import { truncateTextToFit as c } from "../../../utils/text.js";
6
+ import { REGEX_LINEBREAK as s } from "../../../consts/regex.js";
7
+ const u = (r, t, o = !1, n = !0) => t === "day" ? f(e(r), "EEEE") : t === "number" ? L(
8
+ r,
9
+ o,
10
+ T,
11
+ n
12
+ ) : t === "date" ? f(e(r), "MMM dd") : t === "dateLong" ? f(e(r), "MMM dd, yyyy") : String(r), B = ({
8
13
  label: r,
9
14
  format: t,
10
15
  availableSpace: o,
11
- truncate: s = !1
16
+ truncate: n = !1
12
17
  }) => {
13
- const p = i.test(r), f = (d) => {
14
- const m = u(d, t);
15
- return s && o > 0 ? T(m, E, o) : m;
18
+ const p = s.test(r), m = (E) => {
19
+ const i = u(E, t);
20
+ return n && o > 0 ? c(i, d, o) : i;
16
21
  };
17
- return p ? r.split(i).map(f) : f(r);
22
+ return p ? r.split(s).map(m) : m(r);
18
23
  };
19
24
  export {
20
25
  u as formatValue,
21
- _ as prepareTickLabel
26
+ B as prepareTickLabel
22
27
  };
@@ -0,0 +1,119 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ selected: unknown[];
3
+ options: Record<string, unknown>[];
4
+ defaultSelection?: unknown[];
5
+ inlineGroupIds?: unknown[];
6
+ headerText?: string;
7
+ noResultsText?: string;
8
+ searchPlaceholder?: string;
9
+ searchAutoFocus?: boolean;
10
+ idKey?: string;
11
+ displayKey?: string;
12
+ childrenKey?: string;
13
+ disabledKey?: string;
14
+ minSelections?: number;
15
+ minSelectionsTooltipMessage?: string;
16
+ appendToBody?: boolean;
17
+ testId: string;
18
+ }>, {
19
+ selected: () => any[];
20
+ options: () => any[];
21
+ inlineGroupIds: () => any[];
22
+ defaultSelection: any;
23
+ minSelections: number;
24
+ minSelectionsTooltipMessage: string;
25
+ headerText: string;
26
+ noResultsText: string;
27
+ searchPlaceholder: string;
28
+ searchAutoFocus: boolean;
29
+ idKey: string;
30
+ displayKey: string;
31
+ childrenKey: string;
32
+ disabledKey: string;
33
+ appendToBody: boolean;
34
+ testId: string;
35
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:selected": (value: unknown[]) => void;
37
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
38
+ selected: unknown[];
39
+ options: Record<string, unknown>[];
40
+ defaultSelection?: unknown[];
41
+ inlineGroupIds?: unknown[];
42
+ headerText?: string;
43
+ noResultsText?: string;
44
+ searchPlaceholder?: string;
45
+ searchAutoFocus?: boolean;
46
+ idKey?: string;
47
+ displayKey?: string;
48
+ childrenKey?: string;
49
+ disabledKey?: string;
50
+ minSelections?: number;
51
+ minSelectionsTooltipMessage?: string;
52
+ appendToBody?: boolean;
53
+ testId: string;
54
+ }>, {
55
+ selected: () => any[];
56
+ options: () => any[];
57
+ inlineGroupIds: () => any[];
58
+ defaultSelection: any;
59
+ minSelections: number;
60
+ minSelectionsTooltipMessage: string;
61
+ headerText: string;
62
+ noResultsText: string;
63
+ searchPlaceholder: string;
64
+ searchAutoFocus: boolean;
65
+ idKey: string;
66
+ displayKey: string;
67
+ childrenKey: string;
68
+ disabledKey: string;
69
+ appendToBody: boolean;
70
+ testId: string;
71
+ }>>> & {
72
+ "onUpdate:selected"?: (value: unknown[]) => any;
73
+ }, {
74
+ testId: string;
75
+ selected: unknown[];
76
+ options: Record<string, unknown>[];
77
+ minSelections: number;
78
+ noResultsText: string;
79
+ searchAutoFocus: boolean;
80
+ searchPlaceholder: string;
81
+ appendToBody: boolean;
82
+ defaultSelection: unknown[];
83
+ inlineGroupIds: unknown[];
84
+ headerText: string;
85
+ idKey: string;
86
+ displayKey: string;
87
+ childrenKey: string;
88
+ disabledKey: string;
89
+ minSelectionsTooltipMessage: string;
90
+ }>, {
91
+ trigger?(_: {
92
+ triggerProps: {
93
+ onClick: () => void;
94
+ };
95
+ }): any;
96
+ }>;
97
+ export default _default;
98
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
99
+ type __VLS_TypePropsToRuntimeProps<T> = {
100
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
101
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
102
+ } : {
103
+ type: import('vue').PropType<T[K]>;
104
+ required: true;
105
+ };
106
+ };
107
+ type __VLS_WithDefaults<P, D> = {
108
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
109
+ default: D[K];
110
+ }> : P[K];
111
+ };
112
+ type __VLS_Prettify<T> = {
113
+ [K in keyof T]: T[K];
114
+ } & {};
115
+ type __VLS_WithTemplateSlots<T, S> = T & {
116
+ new (): {
117
+ $slots: S;
118
+ };
119
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ColumnPicker.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ea8c7024"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,322 @@
1
+ import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css"; import { defineComponent as ie, ref as K, watch as ne, computed as c, provide as se, openBlock as d, createElementBlock as m, Fragment as S, renderSlot as oe, createVNode as r, unref as s, withCtx as p, createElementVNode as u, mergeProps as ae, renderList as R, withModifiers as U, createTextVNode as k, toDisplayString as V, withDirectives as de, createBlock as W, vShow as re, createCommentVNode as q, isRef as ue } from "vue";
2
+ import ce from "./OptionChip.vue.js";
3
+ import "../dropdown/v4/DropdownV4.vue.js";
4
+ import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
5
+ import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
6
+ import "../dropdown/v4/ChipDropdownTrigger.vue.js";
7
+ import "../dropdown/v4/AppDropdownTrigger.vue.js";
8
+ import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
9
+ import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
10
+ import "../dropdown/v4/TreeDropdown.vue.js";
11
+ import Q from "../dropdown/v4/OptionV4.vue.js";
12
+ import "../dropdown/v4/ConditionalDropdown.vue.js";
13
+ import { DropdownContext as me } from "../dropdown/common/DropdownContext.js";
14
+ import w from "../typography/v4/Typography.vue.js";
15
+ import pe from "../dialog/v4/DialogV4.vue.js";
16
+ import fe from "../sortableList/SortableList.vue.js";
17
+ import ye from "../link/Link.vue.js";
18
+ import ve from "../search/v4/SearchV4.vue.js";
19
+ import { matchString as he } from "../../utils/search.js";
20
+ import "../button/v4/ButtonV4.vue.js";
21
+ import ge from "../button/v4/IconButtonV4.vue.js";
22
+ import "../button/v4/ButtonGroup.vue.js";
23
+ import "../button/v4/ToggleButtonGroupAB.vue.js";
24
+ import { useTestIdAttrs as Ke } from "../../utils/testIds.js";
25
+ import { ColumnPickerTestIdModifiers as B } from "../../testids/index.js";
26
+ import Se from "./RemoveButton.vue.js";
27
+ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = { class: "search-wrapper" }, xe = { class: "options-list scrollable-list" }, Te = {
28
+ key: 0,
29
+ class: "inline-group"
30
+ }, Ie = ["onClick"], Oe = {
31
+ key: 0,
32
+ class: "no-result-container"
33
+ }, Re = { class: "selected-list-header" }, Ve = { class: "selected-list-wrapper scrollable-list" }, lt = /* @__PURE__ */ ie({
34
+ __name: "ColumnPicker",
35
+ props: {
36
+ selected: { default: () => [] },
37
+ options: { default: () => [] },
38
+ defaultSelection: { default: null },
39
+ inlineGroupIds: { default: () => [] },
40
+ headerText: { default: "Customize columns" },
41
+ noResultsText: { default: "No results" },
42
+ searchPlaceholder: { default: "Search" },
43
+ searchAutoFocus: { type: Boolean, default: !0 },
44
+ idKey: { default: "id" },
45
+ displayKey: { default: "label" },
46
+ childrenKey: { default: "options" },
47
+ disabledKey: { default: "disabled" },
48
+ minSelections: { default: 1 },
49
+ minSelectionsTooltipMessage: { default: "Select at least %count% options" },
50
+ appendToBody: { type: Boolean, default: !0 },
51
+ testId: { default: "" }
52
+ },
53
+ emits: ["update:selected"],
54
+ setup(n, { emit: j }) {
55
+ const t = n, a = K([]), f = K([]), v = K(""), y = K(!1), G = () => {
56
+ t.selected?.length ? a.value = [...t.selected] : t.defaultSelection?.length ? a.value = [...t.defaultSelection] : a.value = [];
57
+ }, b = () => {
58
+ y.value = !1, f.value = [], v.value = "", G();
59
+ };
60
+ ne(
61
+ [() => t.selected, () => t.defaultSelection],
62
+ () => {
63
+ G();
64
+ },
65
+ {
66
+ immediate: !0
67
+ }
68
+ );
69
+ const P = () => {
70
+ y.value = !y.value;
71
+ }, C = c({
72
+ get() {
73
+ return a.value.map((e) => {
74
+ const i = Z(e) ? A(e)?.[t.displayKey] + " " : "";
75
+ return {
76
+ id: e[t.idKey],
77
+ displayText: i + e[t.displayKey],
78
+ isDisabled: I(e)
79
+ };
80
+ });
81
+ },
82
+ set(e) {
83
+ const i = e.map((l) => l.id);
84
+ a.value = i.map(
85
+ (l) => a.value.find((o) => o[t.idKey] === l)
86
+ );
87
+ }
88
+ }), x = c(
89
+ () => a.value?.length <= t.minSelections
90
+ ), T = c(() => {
91
+ if (!t.minSelections)
92
+ return "";
93
+ const e = t.minSelections, i = t.minSelectionsTooltipMessage;
94
+ return i ? i.replace("%count%", e.toString()) : "";
95
+ }), D = (e) => g(e) && x.value, I = (e) => e[t.disabledKey] || D(e), g = (e) => a.value.some(
96
+ (i) => i[t.idKey] === e[t.idKey]
97
+ ), H = (e) => {
98
+ g(e) ? L(e[t.idKey]) : J(e);
99
+ }, O = (e) => {
100
+ t.disabledKey && e[t.disabledKey] || H(e);
101
+ }, J = (e) => {
102
+ a.value.push(e);
103
+ }, L = (e) => {
104
+ a.value = a.value.filter(
105
+ (i) => i[t.idKey] !== e
106
+ );
107
+ }, F = c(() => {
108
+ if (!t.defaultSelection?.length)
109
+ return !1;
110
+ const e = a.value.map((l) => l[t.idKey]), i = t.defaultSelection.map((l) => l[t.idKey]);
111
+ return e.length !== i.length ? !0 : !i.every((l) => e.includes(l));
112
+ }), X = () => {
113
+ F.value && (a.value = [...t.defaultSelection]);
114
+ }, $ = (e) => E.value ? !0 : !f.value.includes(e), Y = (e) => t.inlineGroupIds?.includes(e), A = (e) => t.options.find(
115
+ (i) => h(i).map((l) => l[t.idKey]).includes(e[t.idKey])
116
+ ), Z = (e) => {
117
+ const i = A(e);
118
+ return i ? t.inlineGroupIds?.includes(i[t.idKey]) : !1;
119
+ }, M = (e) => {
120
+ f.value.includes(e) ? f.value = f.value.filter(
121
+ (i) => i !== e
122
+ ) : f.value.push(e);
123
+ }, h = (e) => e[t.childrenKey] || [], _ = c(() => a.value.length), N = c(() => v.value?.trim()), E = c(() => !!N.value), z = c(() => E.value ? t.options.map((i) => ({
124
+ ...i,
125
+ [t.childrenKey]: h(i).filter(
126
+ (l) => he(l[t.displayKey], N.value)
127
+ )
128
+ })).filter(
129
+ (i) => h(i).length > 0
130
+ ) : t.options), ee = Ke(t.testId, B), te = () => {
131
+ j("update:selected", a.value), b();
132
+ };
133
+ return se(me, {
134
+ activeIndex: null,
135
+ activeOption: null,
136
+ clearSelection: () => {
137
+ },
138
+ selectedOption: null,
139
+ clearable: !1,
140
+ listRef: null,
141
+ options: null,
142
+ mode: null,
143
+ type: null,
144
+ open: y,
145
+ disabled: !1,
146
+ mandatory: !1,
147
+ labelRef: null,
148
+ size: null,
149
+ search: () => {
150
+ },
151
+ toggle: () => {
152
+ },
153
+ placeholder: "",
154
+ select: O,
155
+ query: v,
156
+ selectedValue: null,
157
+ goToOption: () => {
158
+ },
159
+ registerInput: () => {
160
+ },
161
+ registerOption: () => {
162
+ },
163
+ unRegisterOption: () => {
164
+ }
165
+ }), (e, i) => (d(), m(S, null, [
166
+ oe(e.$slots, "trigger", {
167
+ triggerProps: { onClick: P }
168
+ }, () => [
169
+ r(s(ge), {
170
+ "icon-name": "layout",
171
+ variant: "outlined",
172
+ "test-id": `${n.testId}-${s(B).TRIGGER}`,
173
+ onClick: P
174
+ }, null, 8, ["test-id"])
175
+ ], !0),
176
+ r(s(pe), {
177
+ modelValue: y.value,
178
+ "onUpdate:modelValue": i[2] || (i[2] = (l) => y.value = l),
179
+ title: n.headerText,
180
+ "no-padding": "",
181
+ "save-button-label": "Save view",
182
+ "close-on-click-outside": "",
183
+ "append-to-body": n.appendToBody,
184
+ "test-id": n.testId,
185
+ onSave: te,
186
+ onClose: b,
187
+ onCancel: b
188
+ }, {
189
+ default: p(() => [
190
+ u("div", ae({ class: "column-picker" }, s(ee)[s(B).WRAPPER]), [
191
+ u("div", ke, [
192
+ u("div", be, [
193
+ u("header", Ce, [
194
+ r(s(ve), {
195
+ modelValue: v.value,
196
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => v.value = l),
197
+ placeholder: n.searchPlaceholder,
198
+ variant: "transparent",
199
+ size: "md",
200
+ "auto-focus": n.searchAutoFocus,
201
+ "test-id": n.testId
202
+ }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
203
+ ]),
204
+ u("ul", xe, [
205
+ (d(!0), m(S, null, R(s(z), (l) => (d(), m("li", {
206
+ key: String(l[n.idKey]),
207
+ class: "options-list__item"
208
+ }, [
209
+ r(s(Q), {
210
+ option: l,
211
+ "tree-main-option": "",
212
+ "tree-main-option-expanded": $(l[n.idKey]),
213
+ onClick: U((o) => M(l[n.idKey]), ["stop"]),
214
+ onToggleTreeCollapse: (o) => M(l[n.idKey])
215
+ }, {
216
+ default: p(() => [
217
+ r(s(w), {
218
+ variant: "h5",
219
+ class: "group-name"
220
+ }, {
221
+ default: p(() => [
222
+ k(V(l[n.displayKey]), 1)
223
+ ]),
224
+ _: 2
225
+ }, 1024)
226
+ ]),
227
+ _: 2
228
+ }, 1032, ["option", "tree-main-option-expanded", "onClick", "onToggleTreeCollapse"]),
229
+ de(u("div", null, [
230
+ Y(l[n.idKey]) ? (d(), m("div", Te, [
231
+ (d(!0), m(S, null, R(h(l), (o) => (d(), W(ce, {
232
+ key: o[n.idKey],
233
+ option: o,
234
+ "name-key": n.displayKey,
235
+ selected: g(o),
236
+ disabled: I(o),
237
+ "tooltip-text": D(o) ? s(T) : null,
238
+ onClick: (le) => O(o)
239
+ }, null, 8, ["option", "name-key", "selected", "disabled", "tooltip-text", "onClick"]))), 128))
240
+ ])) : (d(!0), m(S, { key: 1 }, R(h(l), (o) => (d(), m("div", {
241
+ key: o[n.idKey],
242
+ onClick: U((le) => O(o), ["stop"])
243
+ }, [
244
+ r(s(Q), {
245
+ option: o,
246
+ "selected-prop": g(o),
247
+ "name-key": n.displayKey,
248
+ disabled: I(o),
249
+ "min-max-selection-tooltip-message": s(T),
250
+ "tooltip-attached-to-text": "",
251
+ "is-multi": ""
252
+ }, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
253
+ ], 8, Ie))), 128))
254
+ ], 512), [
255
+ [re, $(l[n.idKey])]
256
+ ])
257
+ ]))), 128)),
258
+ s(z).length ? q("", !0) : (d(), m("li", Oe, [
259
+ r(s(w), { variant: "body2" }, {
260
+ default: p(() => [
261
+ k(V(n.noResultsText), 1)
262
+ ]),
263
+ _: 1
264
+ })
265
+ ]))
266
+ ])
267
+ ]),
268
+ u("div", null, [
269
+ u("header", Re, [
270
+ r(s(w), {
271
+ variant: "h5",
272
+ class: "selected-count-text"
273
+ }, {
274
+ default: p(() => [
275
+ k(V(s(_)) + " selected ", 1)
276
+ ]),
277
+ _: 1
278
+ }),
279
+ n.defaultSelection?.length ? (d(), W(s(ye), {
280
+ key: 0,
281
+ variant: "subtitle2",
282
+ disabled: !s(F),
283
+ "test-id": n.testId,
284
+ onClick: X
285
+ }, {
286
+ default: p(() => [
287
+ k(" Reset to default ")
288
+ ]),
289
+ _: 1
290
+ }, 8, ["disabled", "test-id"])) : q("", !0)
291
+ ]),
292
+ u("div", Ve, [
293
+ r(s(fe), {
294
+ items: s(C),
295
+ "onUpdate:items": i[1] || (i[1] = (l) => ue(C) ? C.value = l : null),
296
+ "display-value": (l) => l.displayText,
297
+ variant: "compact",
298
+ "draggable-area": "full",
299
+ "test-id": n.testId
300
+ }, {
301
+ menu: p(({ item: l }) => [
302
+ r(Se, {
303
+ disabled: s(x),
304
+ "tooltip-text": s(x) ? s(T) : null,
305
+ onClick: (o) => L(l.id)
306
+ }, null, 8, ["disabled", "tooltip-text", "onClick"])
307
+ ]),
308
+ _: 1
309
+ }, 8, ["items", "display-value", "test-id"])
310
+ ])
311
+ ])
312
+ ])
313
+ ], 16)
314
+ ]),
315
+ _: 1
316
+ }, 8, ["modelValue", "title", "append-to-body", "test-id"])
317
+ ], 64));
318
+ }
319
+ });
320
+ export {
321
+ lt as default
322
+ };
@@ -0,0 +1,53 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ option: unknown;
4
+ nameKey: string;
5
+ selected?: boolean;
6
+ disabled?: boolean;
7
+ tooltipText?: string;
8
+ tooltipPlacement?: TooltipPositions;
9
+ }>, {
10
+ selected: boolean;
11
+ disabled: boolean;
12
+ tooltipText: any;
13
+ tooltipPlacement: string;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ click: () => void;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ option: unknown;
18
+ nameKey: string;
19
+ selected?: boolean;
20
+ disabled?: boolean;
21
+ tooltipText?: string;
22
+ tooltipPlacement?: TooltipPositions;
23
+ }>, {
24
+ selected: boolean;
25
+ disabled: boolean;
26
+ tooltipText: any;
27
+ tooltipPlacement: string;
28
+ }>>> & {
29
+ onClick?: () => any;
30
+ }, {
31
+ tooltipText: string;
32
+ tooltipPlacement: TooltipPositions;
33
+ disabled: boolean;
34
+ selected: boolean;
35
+ }>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./OptionChip.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-538e4a21"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,46 @@
1
+ import "../../OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css"; import { defineComponent as n, openBlock as c, createBlock as d, unref as t, withCtx as o, createElementVNode as p, normalizeClass as s, withModifiers as r, createVNode as m, createTextVNode as f, toDisplayString as u } from "vue";
2
+ import h from "../typography/v4/Typography.vue.js";
3
+ import x from "../tooltip/v4/TooltipV4.vue.js";
4
+ const k = ["onClick"], g = /* @__PURE__ */ n({
5
+ __name: "OptionChip",
6
+ props: {
7
+ option: null,
8
+ nameKey: null,
9
+ selected: { type: Boolean, default: !1 },
10
+ disabled: { type: Boolean, default: !1 },
11
+ tooltipText: { default: null },
12
+ tooltipPlacement: { default: "right" }
13
+ },
14
+ emits: ["click"],
15
+ setup(e, { emit: l }) {
16
+ const i = e, a = () => {
17
+ i.disabled || l("click");
18
+ };
19
+ return (y, C) => (c(), d(t(x), {
20
+ text: e.tooltipText,
21
+ disabled: !e.tooltipText,
22
+ placement: e.tooltipPlacement
23
+ }, {
24
+ default: o(() => [
25
+ p("div", {
26
+ class: s(["option-chip", {
27
+ "option-chip--disabled": e.disabled,
28
+ "option-chip--selected": e.selected
29
+ }]),
30
+ onClick: r(a, ["stop"])
31
+ }, [
32
+ m(t(h), { variant: "h6" }, {
33
+ default: o(() => [
34
+ f(u(e.option[e.nameKey]), 1)
35
+ ]),
36
+ _: 1
37
+ })
38
+ ], 10, k)
39
+ ]),
40
+ _: 1
41
+ }, 8, ["text", "disabled", "placement"]));
42
+ }
43
+ });
44
+ export {
45
+ g as default
46
+ };
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ disabled?: boolean;
3
+ tooltipText?: string;
4
+ }>, {
5
+ disabled: boolean;
6
+ tooltipText: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ click: () => void;
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ disabled?: boolean;
11
+ tooltipText?: string;
12
+ }>, {
13
+ disabled: boolean;
14
+ tooltipText: string;
15
+ }>>> & {
16
+ onClick?: () => any;
17
+ }, {
18
+ tooltipText: string;
19
+ disabled: boolean;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./RemoveButton.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ca7fc11d"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import "../../RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css"; import { defineComponent as i, openBlock as a, createBlock as n, unref as o, withCtx as d, createVNode as m, normalizeClass as r } from "vue";
2
+ import "../button/v4/ButtonV4.vue.js";
3
+ import s from "../button/v4/IconButtonV4.vue.js";
4
+ import "../button/v4/ButtonGroup.vue.js";
5
+ import "../button/v4/ToggleButtonGroupAB.vue.js";
6
+ import c from "../tooltip/v4/TooltipV4.vue.js";
7
+ const C = /* @__PURE__ */ i({
8
+ __name: "RemoveButton",
9
+ props: {
10
+ disabled: { type: Boolean, default: !1 },
11
+ tooltipText: { default: "" }
12
+ },
13
+ emits: ["click"],
14
+ setup(e, { emit: l }) {
15
+ return (u, t) => (a(), n(o(c), {
16
+ text: e.tooltipText,
17
+ disabled: !e.tooltipText,
18
+ placement: "bottom-end"
19
+ }, {
20
+ default: d(() => [
21
+ m(o(s), {
22
+ class: r(["remove-button", { "remove-button--disabled": e.disabled }]),
23
+ "icon-name": "x",
24
+ size: "extraSmall",
25
+ disabled: e.disabled,
26
+ onClick: t[0] || (t[0] = (p) => l("click"))
27
+ }, null, 8, ["class", "disabled"])
28
+ ]),
29
+ _: 1
30
+ }, 8, ["text", "disabled"]));
31
+ }
32
+ });
33
+ export {
34
+ C as default
35
+ };