@ironsource/shared-ui 2.2.0-rc.2 → 2.2.0-rc.20

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 (189) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  4. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  5. package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
  6. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  7. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
  8. package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
  9. package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
  10. package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
  11. package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
  12. package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
  14. package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
  15. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  16. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
  17. package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  19. package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
  20. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  21. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  22. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  23. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  24. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  25. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
  26. package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
  27. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  28. package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
  29. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
  30. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  31. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  32. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
  33. package/components/alert/Alert.vue.d.ts +3 -8
  34. package/components/alert/Alert.vue.js +2 -2
  35. package/components/alert/Alert.vue2.js +48 -46
  36. package/components/alert/index.d.ts +8 -27
  37. package/components/appHeader/AppHeader.vue.js +2 -2
  38. package/components/appHeader/AppHeader.vue2.js +44 -45
  39. package/components/button/v3/Button.vue.d.ts +6 -6
  40. package/components/button/v3/index.d.ts +14 -14
  41. package/components/button/v4/ButtonV4.vue.js +4 -4
  42. package/components/button/v4/ButtonV4.vue2.js +1 -1
  43. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  44. package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
  45. package/components/chart/Chart.vue.d.ts +5 -0
  46. package/components/chart/Chart.vue.js +3 -3
  47. package/components/chart/Chart.vue2.js +10 -8
  48. package/components/chart/ChartHeader.vue.d.ts +5 -0
  49. package/components/chart/ChartHeader.vue.js +3 -3
  50. package/components/chart/ChartHeader.vue2.js +73 -49
  51. package/components/chart/ChartPlane.vue.d.ts +5 -0
  52. package/components/chart/ChartPlane.vue.js +3 -3
  53. package/components/chart/ChartPlane.vue2.js +33 -31
  54. package/components/chart/ChartStoryArgs.d.ts +6 -0
  55. package/components/chart/index.d.ts +20 -1
  56. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  57. package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
  58. package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
  59. package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
  60. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
  61. package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
  62. package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
  63. package/components/chip/v4/ChipV4.vue.js +3 -3
  64. package/components/chip/v4/ChipV4.vue2.js +1 -1
  65. package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
  66. package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
  67. package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
  68. package/components/columnPicker/ColumnPicker.vue.js +3 -3
  69. package/components/columnPicker/ColumnPicker.vue2.js +173 -153
  70. package/components/columnPicker/index.d.ts +7 -1
  71. package/components/dateRange/common/CalendarMonth.common.js +46 -41
  72. package/components/dateRange/common/DateRange.common.d.ts +1 -0
  73. package/components/dateRange/common/DateRange.common.js +38 -37
  74. package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
  75. package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
  76. package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
  77. package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
  78. package/components/dateRange/v3/DateRange.vue.js +2 -2
  79. package/components/dateRange/v3/DateRange.vue2.js +2 -1
  80. package/components/dateRange/v3/index.d.ts +20 -1
  81. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
  82. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  83. package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
  84. package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
  85. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  86. package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
  87. package/components/dateRange/v4/index.d.ts +20 -1
  88. package/components/dialog/v4/DialogV4.vue.js +4 -4
  89. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  90. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  91. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  92. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  93. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  94. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  95. package/components/dropdown/v4/DropdownV4.vue2.js +2 -2
  96. package/components/dropdown/v4/GroupOption.vue.js +3 -3
  97. package/components/dropdown/v4/GroupOption.vue2.js +1 -1
  98. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  99. package/components/emptyState/v3/index.d.ts +7 -7
  100. package/components/helpText/HelpText.vue.d.ts +68 -0
  101. package/components/helpText/HelpText.vue.js +7 -0
  102. package/components/helpText/HelpText.vue2.js +45 -0
  103. package/components/helpText/index.d.ts +190 -0
  104. package/components/helpText/index.js +6 -0
  105. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  106. package/components/icon/v4/IconV4.vue.js +2 -2
  107. package/components/icon/v4/IconV4.vue2.js +27 -26
  108. package/components/icon/v4/index.d.ts +20 -1
  109. package/components/includeExclude/index.d.ts +16 -16
  110. package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
  111. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  112. package/components/inlineCopy/InlineCopy.vue2.js +80 -51
  113. package/components/inlineCopy/index.d.ts +27 -0
  114. package/components/input/v4/TextField.vue.js +2 -2
  115. package/components/input/v4/TextField.vue2.js +1 -1
  116. package/components/link/Link.vue.d.ts +3 -3
  117. package/components/link/Link.vue.js +5 -5
  118. package/components/link/Link.vue2.js +1 -1
  119. package/components/link/index.d.ts +7 -7
  120. package/components/multibar/MultiBar.vue.js +3 -3
  121. package/components/multibar/MultiBar.vue2.js +1 -1
  122. package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
  123. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  124. package/components/snackbar/common/notify.js +25 -25
  125. package/components/snackbar/common/snackbar.common.js +19 -19
  126. package/components/snackbar/common/snackbar.types.d.ts +2 -1
  127. package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
  128. package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
  129. package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
  130. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  131. package/components/switch/v4/SwitchV4.vue.js +4 -4
  132. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  133. package/components/switch/v4/index.d.ts +9 -0
  134. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  135. package/components/table/v4/DataGrid.vue.js +4 -4
  136. package/components/table/v4/DataGrid.vue2.js +82 -80
  137. package/components/table/v4/index.d.ts +7 -1
  138. package/components/table-cells/v3/Editable.vue.d.ts +1 -1
  139. package/components/table-cells/v3/index.d.ts +20 -20
  140. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  141. package/components/table-cells/v4/index.d.ts +20 -20
  142. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  143. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  144. package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
  145. package/index.d.ts +207 -46
  146. package/index.js +95 -91
  147. package/package.json +7 -2
  148. package/style/v4/colors.scss +89 -84
  149. package/style/v4/grid.css +1 -1
  150. package/style/v4/grid.css.map +1 -1
  151. package/testids/index.d.ts +4 -0
  152. package/testids/index.js +38 -37
  153. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
  154. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
  155. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
  156. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
  157. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
  158. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
  159. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
  160. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
  161. package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css +0 -1
  162. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
  163. package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
  164. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
  165. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
  166. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
  167. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
  168. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css +0 -1
  169. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
  170. package/DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css +0 -1
  171. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
  172. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  173. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
  174. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
  175. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
  176. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
  177. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
  178. package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
  179. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
  180. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
  181. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
  182. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
  183. package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
  184. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
  185. package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
  186. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
  187. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
  188. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
  189. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
@@ -1,5 +1,5 @@
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";
1
+ import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css"; import { defineComponent as re, ref as c, watch as H, computed as m, provide as ue, openBlock as d, createElementBlock as f, Fragment as x, renderSlot as ce, createVNode as r, unref as n, withCtx as p, createElementVNode as u, mergeProps as me, renderList as P, withModifiers as J, createTextVNode as T, toDisplayString as A, withDirectives as fe, createBlock as X, vShow as pe, createCommentVNode as Y, isRef as ve } from "vue";
2
+ import ye from "./OptionChip.vue.js";
3
3
  import "../dropdown/v4/DropdownV4.vue.js";
4
4
  import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
5
5
  import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
@@ -8,29 +8,29 @@ import "../dropdown/v4/AppDropdownTrigger.vue.js";
8
8
  import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
9
9
  import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
10
10
  import "../dropdown/v4/TreeDropdown.vue.js";
11
- import Q from "../dropdown/v4/OptionV4.vue.js";
11
+ import Z from "../dropdown/v4/OptionV4.vue.js";
12
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";
13
+ import { DropdownContext as he } from "../dropdown/common/DropdownContext.js";
14
+ import L from "../typography/v4/Typography.vue.js";
15
+ import ge from "../dialog/v4/DialogV4.vue.js";
16
+ import ke from "../sortableList/SortableList.vue.js";
17
+ import Se from "../link/Link.vue.js";
18
+ import Ke from "../search/v4/SearchV4.vue.js";
19
+ import { matchString as Ce } from "../../utils/search.js";
20
20
  import "../button/v4/ButtonV4.vue.js";
21
- import ge from "../button/v4/IconButtonV4.vue.js";
21
+ import be from "../button/v4/IconButtonV4.vue.js";
22
22
  import "../button/v4/ButtonGroup.vue.js";
23
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 = {
24
+ import { useTestIdAttrs as xe } from "../../utils/testIds.js";
25
+ import { ColumnPickerTestIdModifiers as F } from "../../testids/index.js";
26
+ import Te from "./RemoveButton.vue.js";
27
+ const Ie = { class: "content" }, Oe = { class: "options-list-wrapper" }, Re = { class: "search-wrapper" }, Ve = { class: "options-list scrollable-list" }, we = {
28
28
  key: 0,
29
29
  class: "inline-group"
30
- }, Ie = ["onClick"], Oe = {
30
+ }, Be = ["onClick"], De = {
31
31
  key: 0,
32
32
  class: "no-result-container"
33
- }, Re = { class: "selected-list-header" }, Ve = { class: "selected-list-wrapper scrollable-list" }, lt = /* @__PURE__ */ ie({
33
+ }, Ge = { class: "selected-list-header" }, Pe = { class: "selected-list-wrapper scrollable-list" }, ot = /* @__PURE__ */ re({
34
34
  __name: "ColumnPicker",
35
35
  props: {
36
36
  selected: { default: () => [] },
@@ -50,87 +50,107 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
50
50
  appendToBody: { type: Boolean, default: !0 },
51
51
  testId: { default: "" }
52
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();
53
+ emits: ["update:selected", "trackUserActivity"],
54
+ setup(s, { emit: I }) {
55
+ const t = s, o = c([]), v = c([]), h = c(""), y = c(!1), k = c(!1), S = c(!1), K = c(!1), C = c(!1), $ = () => {
56
+ t.selected?.length ? o.value = [...t.selected] : t.defaultSelection?.length ? o.value = [...t.defaultSelection] : o.value = [];
57
+ }, O = (e = !0) => {
58
+ y.value = !1, v.value = [], h.value = "", $(), e && I(
59
+ "trackUserActivity",
60
+ k.value,
61
+ C.value,
62
+ S.value,
63
+ K.value,
64
+ "Cancel"
65
+ ), oe();
59
66
  };
60
- ne(
67
+ H(
61
68
  [() => t.selected, () => t.defaultSelection],
62
69
  () => {
63
- G();
70
+ $();
64
71
  },
65
72
  {
66
73
  immediate: !0
67
74
  }
68
75
  );
69
- const P = () => {
76
+ const E = () => {
70
77
  y.value = !y.value;
71
- }, C = c({
78
+ }, R = m({
72
79
  get() {
73
- return a.value.map((e) => {
74
- const i = Z(e) ? A(e)?.[t.displayKey] + " " : "";
80
+ return o.value.map((e) => {
81
+ const l = ie(e) ? W(e)?.[t.displayKey] + " " : "";
75
82
  return {
76
83
  id: e[t.idKey],
77
- displayText: i + e[t.displayKey],
78
- isDisabled: I(e)
84
+ displayText: l + e[t.displayKey],
85
+ isDisabled: B(e)
79
86
  };
80
87
  });
81
88
  },
82
89
  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)
90
+ const l = e.map((i) => i.id);
91
+ o.value = l.map(
92
+ (i) => o.value.find((a) => a[t.idKey] === i)
86
93
  );
87
94
  }
88
- }), x = c(
89
- () => a.value?.length <= t.minSelections
90
- ), T = c(() => {
95
+ }), V = m(
96
+ () => o.value?.length <= t.minSelections
97
+ ), w = m(() => {
91
98
  if (!t.minSelections)
92
99
  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
100
+ const e = t.minSelections, l = t.minSelectionsTooltipMessage;
101
+ return l ? l.replace("%count%", e.toString()) : "";
102
+ }), M = (e) => b(e) && V.value, B = (e) => e[t.disabledKey] || M(e), b = (e) => o.value.some(
103
+ (l) => l[t.idKey] === e[t.idKey]
104
+ ), _ = (e) => {
105
+ b(e) ? U(e[t.idKey]) : ee(e);
106
+ }, D = (e) => {
107
+ t.disabledKey && e[t.disabledKey] || _(e);
108
+ }, ee = (e) => {
109
+ o.value.push(e);
110
+ }, U = (e) => {
111
+ o.value = o.value.filter(
112
+ (l) => l[t.idKey] !== e
106
113
  );
107
- }, F = c(() => {
114
+ }, N = m(() => {
108
115
  if (!t.defaultSelection?.length)
109
116
  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)
117
+ const e = o.value.map((i) => i[t.idKey]), l = t.defaultSelection.map((i) => i[t.idKey]);
118
+ return e.length !== l.length ? !0 : !l.every((i) => e.includes(i));
119
+ }), te = () => {
120
+ N.value && (o.value = [...t.defaultSelection]), k.value = !0;
121
+ }, z = (e) => Q.value ? !0 : !v.value.includes(e), le = (e) => t.inlineGroupIds?.includes(e), W = (e) => t.options.find(
122
+ (l) => g(l).map((i) => i[t.idKey]).includes(e[t.idKey])
123
+ ), ie = (e) => {
124
+ const l = W(e);
125
+ return l ? t.inlineGroupIds?.includes(l[t.idKey]) : !1;
126
+ }, q = (e) => {
127
+ v.value.includes(e) ? (v.value = v.value.filter(
128
+ (l) => l !== e
129
+ ), S.value = !0) : (v.value.push(e), K.value = !0);
130
+ }, g = (e) => e[t.childrenKey] || [], se = m(() => o.value.length), G = m(() => h.value?.trim()), Q = m(() => !!G.value), j = m(() => Q.value ? t.options.map((l) => ({
131
+ ...l,
132
+ [t.childrenKey]: g(l).filter(
133
+ (i) => Ce(i[t.displayKey], G.value)
127
134
  )
128
135
  })).filter(
129
- (i) => h(i).length > 0
130
- ) : t.options), ee = Ke(t.testId, B), te = () => {
131
- j("update:selected", a.value), b();
136
+ (l) => g(l).length > 0
137
+ ) : t.options), ne = xe(t.testId, F), ae = () => {
138
+ I("update:selected", o.value), I(
139
+ "trackUserActivity",
140
+ k.value,
141
+ C.value,
142
+ S.value,
143
+ K.value,
144
+ "Save"
145
+ ), O(!1);
132
146
  };
133
- return se(me, {
147
+ H(G, () => {
148
+ C.value = !0;
149
+ });
150
+ const oe = () => {
151
+ k.value = !1, S.value = !1, K.value = !1, C.value = !1;
152
+ };
153
+ return ue(he, {
134
154
  activeIndex: null,
135
155
  activeOption: null,
136
156
  clearSelection: () => {
@@ -151,8 +171,8 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
151
171
  toggle: () => {
152
172
  },
153
173
  placeholder: "",
154
- select: O,
155
- query: v,
174
+ select: D,
175
+ query: h,
156
176
  selectedValue: null,
157
177
  goToOption: () => {
158
178
  },
@@ -162,103 +182,103 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
162
182
  },
163
183
  unRegisterOption: () => {
164
184
  }
165
- }), (e, i) => (d(), m(S, null, [
166
- oe(e.$slots, "trigger", {
167
- triggerProps: { onClick: P }
185
+ }), (e, l) => (d(), f(x, null, [
186
+ ce(e.$slots, "trigger", {
187
+ triggerProps: { onClick: E }
168
188
  }, () => [
169
- r(s(ge), {
189
+ r(n(be), {
170
190
  "icon-name": "layout",
171
191
  variant: "outlined",
172
- "test-id": `${n.testId}-${s(B).TRIGGER}`,
173
- onClick: P
192
+ "test-id": `${s.testId}-${n(F).TRIGGER}`,
193
+ onClick: E
174
194
  }, null, 8, ["test-id"])
175
195
  ], !0),
176
- r(s(pe), {
196
+ r(n(ge), {
177
197
  modelValue: y.value,
178
- "onUpdate:modelValue": i[2] || (i[2] = (l) => y.value = l),
179
- title: n.headerText,
198
+ "onUpdate:modelValue": l[2] || (l[2] = (i) => y.value = i),
199
+ title: s.headerText,
180
200
  "no-padding": "",
181
201
  "save-button-label": "Save view",
182
202
  "close-on-click-outside": "",
183
- "append-to-body": n.appendToBody,
184
- "test-id": n.testId,
185
- onSave: te,
186
- onClose: b,
187
- onCancel: b
203
+ "append-to-body": s.appendToBody,
204
+ "test-id": s.testId,
205
+ onSave: ae,
206
+ onClose: l[3] || (l[3] = () => O),
207
+ onCancel: O
188
208
  }, {
189
209
  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,
210
+ u("div", me({ class: "column-picker" }, n(ne)[n(F).WRAPPER]), [
211
+ u("div", Ie, [
212
+ u("div", Oe, [
213
+ u("header", Re, [
214
+ r(n(Ke), {
215
+ modelValue: h.value,
216
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => h.value = i),
217
+ placeholder: s.searchPlaceholder,
198
218
  variant: "transparent",
199
219
  size: "md",
200
- "auto-focus": n.searchAutoFocus,
201
- "test-id": n.testId
220
+ "auto-focus": s.searchAutoFocus,
221
+ "test-id": s.testId
202
222
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
203
223
  ]),
204
- u("ul", xe, [
205
- (d(!0), m(S, null, R(s(z), (l) => (d(), m("li", {
206
- key: String(l[n.idKey]),
224
+ u("ul", Ve, [
225
+ (d(!0), f(x, null, P(n(j), (i) => (d(), f("li", {
226
+ key: String(i[s.idKey]),
207
227
  class: "options-list__item"
208
228
  }, [
209
- r(s(Q), {
210
- option: l,
229
+ r(n(Z), {
230
+ option: i,
211
231
  "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])
232
+ "tree-main-option-expanded": z(i[s.idKey]),
233
+ onClick: J((a) => q(i[s.idKey]), ["stop"]),
234
+ onToggleTreeCollapse: (a) => q(i[s.idKey])
215
235
  }, {
216
236
  default: p(() => [
217
- r(s(w), {
237
+ r(n(L), {
218
238
  variant: "h5",
219
239
  class: "group-name"
220
240
  }, {
221
241
  default: p(() => [
222
- k(V(l[n.displayKey]), 1)
242
+ T(A(i[s.displayKey]), 1)
223
243
  ]),
224
244
  _: 2
225
245
  }, 1024)
226
246
  ]),
227
247
  _: 2
228
248
  }, 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)
249
+ fe(u("div", null, [
250
+ le(i[s.idKey]) ? (d(), f("div", we, [
251
+ (d(!0), f(x, null, P(g(i), (a) => (d(), X(ye, {
252
+ key: a[s.idKey],
253
+ option: a,
254
+ "name-key": s.displayKey,
255
+ selected: b(a),
256
+ disabled: B(a),
257
+ "tooltip-text": M(a) ? n(w) : null,
258
+ onClick: (de) => D(a)
239
259
  }, 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"])
260
+ ])) : (d(!0), f(x, { key: 1 }, P(g(i), (a) => (d(), f("div", {
261
+ key: a[s.idKey],
262
+ onClick: J((de) => D(a), ["stop"])
243
263
  }, [
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),
264
+ r(n(Z), {
265
+ option: a,
266
+ "selected-prop": b(a),
267
+ "name-key": s.displayKey,
268
+ disabled: B(a),
269
+ "min-max-selection-tooltip-message": n(w),
250
270
  "tooltip-attached-to-text": "",
251
271
  "is-multi": ""
252
272
  }, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
253
- ], 8, Ie))), 128))
273
+ ], 8, Be))), 128))
254
274
  ], 512), [
255
- [re, $(l[n.idKey])]
275
+ [pe, z(i[s.idKey])]
256
276
  ])
257
277
  ]))), 128)),
258
- s(z).length ? q("", !0) : (d(), m("li", Oe, [
259
- r(s(w), { variant: "body2" }, {
278
+ n(j).length ? Y("", !0) : (d(), f("li", De, [
279
+ r(n(L), { variant: "body2" }, {
260
280
  default: p(() => [
261
- k(V(n.noResultsText), 1)
281
+ T(A(s.noResultsText), 1)
262
282
  ]),
263
283
  _: 1
264
284
  })
@@ -266,43 +286,43 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
266
286
  ])
267
287
  ]),
268
288
  u("div", null, [
269
- u("header", Re, [
270
- r(s(w), {
289
+ u("header", Ge, [
290
+ r(n(L), {
271
291
  variant: "h5",
272
292
  class: "selected-count-text"
273
293
  }, {
274
294
  default: p(() => [
275
- k(V(s(_)) + " selected ", 1)
295
+ T(A(n(se)) + " selected ", 1)
276
296
  ]),
277
297
  _: 1
278
298
  }),
279
- n.defaultSelection?.length ? (d(), W(s(ye), {
299
+ s.defaultSelection?.length ? (d(), X(n(Se), {
280
300
  key: 0,
281
301
  variant: "subtitle2",
282
- disabled: !s(F),
283
- "test-id": n.testId,
284
- onClick: X
302
+ disabled: !n(N),
303
+ "test-id": s.testId,
304
+ onClick: te
285
305
  }, {
286
306
  default: p(() => [
287
- k(" Reset to default ")
307
+ T(" Reset to default ")
288
308
  ]),
289
309
  _: 1
290
- }, 8, ["disabled", "test-id"])) : q("", !0)
310
+ }, 8, ["disabled", "test-id"])) : Y("", !0)
291
311
  ]),
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,
312
+ u("div", Pe, [
313
+ r(n(ke), {
314
+ items: n(R),
315
+ "onUpdate:items": l[1] || (l[1] = (i) => ve(R) ? R.value = i : null),
316
+ "display-value": (i) => i.displayText,
297
317
  variant: "compact",
298
318
  "draggable-area": "full",
299
- "test-id": n.testId
319
+ "test-id": s.testId
300
320
  }, {
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)
321
+ menu: p(({ item: i }) => [
322
+ r(Te, {
323
+ disabled: n(V),
324
+ "tooltip-text": n(V) ? n(w) : null,
325
+ onClick: (a) => U(i.id)
306
326
  }, null, 8, ["disabled", "tooltip-text", "onClick"])
307
327
  ]),
308
328
  _: 1
@@ -318,5 +338,5 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
318
338
  }
319
339
  });
320
340
  export {
321
- lt as default
341
+ ot as default
322
342
  };
@@ -90,6 +90,7 @@ declare const ColumnPickerTypes: () => ({
90
90
  };
91
91
  }>> & {
92
92
  "onUpdate:selected"?: (value: unknown[]) => any;
93
+ onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
93
94
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "selected" | "options" | "minSelections" | "noResultsText" | "searchAutoFocus" | "searchPlaceholder" | "headerText" | "appendToBody" | "defaultSelection" | "inlineGroupIds" | "idKey" | "displayKey" | "childrenKey" | "disabledKey" | "minSelectionsTooltipMessage">;
94
95
  $attrs: {
95
96
  [x: string]: unknown;
@@ -102,7 +103,7 @@ declare const ColumnPickerTypes: () => ({
102
103
  }>;
103
104
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
104
105
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
105
- $emit: (event: "update:selected", value: unknown[]) => void;
106
+ $emit: ((event: "update:selected", value: unknown[]) => void) & ((event: "trackUserActivity", isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void);
106
107
  $el: any;
107
108
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
108
109
  testId: {
@@ -174,8 +175,10 @@ declare const ColumnPickerTypes: () => ({
174
175
  };
175
176
  }>> & {
176
177
  "onUpdate:selected"?: (value: unknown[]) => any;
178
+ onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
177
179
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
178
180
  "update:selected": (value: unknown[]) => void;
181
+ trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
179
182
  }, string, {
180
183
  testId: string;
181
184
  selected: unknown[];
@@ -283,6 +286,7 @@ declare const ColumnPickerTypes: () => ({
283
286
  };
284
287
  }>> & {
285
288
  "onUpdate:selected"?: (value: unknown[]) => any;
289
+ onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
286
290
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
287
291
  __isFragment?: never;
288
292
  __isTeleport?: never;
@@ -357,8 +361,10 @@ declare const ColumnPickerTypes: () => ({
357
361
  };
358
362
  }>> & {
359
363
  "onUpdate:selected"?: (value: unknown[]) => any;
364
+ onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
360
365
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
361
366
  "update:selected": (value: unknown[]) => void;
367
+ trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
362
368
  }, string, {
363
369
  testId: string;
364
370
  selected: unknown[];