@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.51

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 (182) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  7. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  8. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  11. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  12. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  13. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  14. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  15. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  16. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  17. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  18. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  19. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  20. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  21. package/README.md +4 -15
  22. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  23. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
  24. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  25. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
  26. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
  27. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  28. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
  29. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  30. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  31. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
  32. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  33. package/components/button/v3/Button.vue.d.ts +6 -6
  34. package/components/button/v3/index.d.ts +14 -14
  35. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
  36. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  37. package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
  38. package/components/button/v4/index.d.ts +9 -3
  39. package/components/chart/Chart.vue.d.ts +17 -4
  40. package/components/chart/Chart.vue.js +5 -5
  41. package/components/chart/Chart.vue2.js +127 -110
  42. package/components/chart/ChartHeader.vue.d.ts +13 -6
  43. package/components/chart/ChartHeader.vue.js +2 -2
  44. package/components/chart/ChartHeader.vue2.js +32 -29
  45. package/components/chart/ChartLegend.vue.d.ts +5 -0
  46. package/components/chart/ChartLegend.vue.js +3 -3
  47. package/components/chart/ChartLegend.vue2.js +99 -49
  48. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  49. package/components/chart/ChartTooltip.vue.js +2 -2
  50. package/components/chart/ChartTooltip.vue2.js +64 -43
  51. package/components/chart/SettingsHeader.vue2.js +3 -2
  52. package/components/chart/index.d.ts +74 -35
  53. package/components/chart/mockData.d.ts +15 -2
  54. package/components/chart/types.d.ts +15 -1
  55. package/components/chart/utils/utils.js +5 -5
  56. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  57. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  58. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  59. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  60. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  61. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  62. package/components/dialog/v4/DialogV4.vue.js +3 -3
  63. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  64. package/components/dialog/v4/index.d.ts +58 -1
  65. package/components/dropdown/common/Dropdown.common.js +200 -189
  66. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  67. package/components/dropdown/v3/index.d.ts +39 -39
  68. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  69. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  70. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  71. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  72. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  73. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  74. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  75. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  76. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
  77. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
  78. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  79. package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
  80. package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
  81. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  82. package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
  83. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
  84. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  85. package/components/dropdown/v4/OptionV4.vue2.js +135 -98
  86. package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
  87. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  88. package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
  89. package/components/dropdown/v4/index.d.ts +443 -110
  90. package/components/dropdown/v4/index.js +6 -3
  91. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  92. package/components/emptyState/v3/index.d.ts +7 -7
  93. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  94. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  95. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  96. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  97. package/components/forms/FormCard.vue.js +3 -3
  98. package/components/forms/FormCard.vue2.js +1 -1
  99. package/components/icon/v4/consts.d.ts +1 -1
  100. package/components/icon/v4/consts.js +1 -1
  101. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  102. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  103. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  104. package/components/inlineCopy/index.d.ts +9 -0
  105. package/components/input/v4/TextField.vue.js +3 -3
  106. package/components/input/v4/TextField.vue2.js +12 -12
  107. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  108. package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
  109. package/components/popover/v4/PopoverV4.vue.js +4 -3
  110. package/components/popover/v4/PopoverV4.vue2.js +40 -24
  111. package/components/popover/v4/index.d.ts +55 -11
  112. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  113. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  114. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  115. package/components/sortableList/SortableItem.vue.js +3 -3
  116. package/components/sortableList/SortableItem.vue2.js +57 -56
  117. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  118. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  119. package/components/sortableList/SortableList.vue.d.ts +1 -1
  120. package/components/sortableList/SortableList.vue.js +3 -3
  121. package/components/sortableList/SortableList.vue2.js +82 -76
  122. package/components/sortableList/index.d.ts +4 -4
  123. package/components/table/common/Table.common.d.ts +1 -1
  124. package/components/table/common/Table.common.js +83 -77
  125. package/components/table/common/Table.types.d.ts +1 -1
  126. package/components/table/common/consts.d.ts +4 -0
  127. package/components/table/common/consts.js +7 -0
  128. package/components/table/v3/Table.vue.d.ts +1 -1
  129. package/components/table/v3/index.d.ts +5 -5
  130. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  131. package/components/table/v4/DataGrid.vue.js +2 -2
  132. package/components/table/v4/DataGrid.vue2.js +164 -155
  133. package/components/table/v4/DataGridMenu.vue.js +5 -5
  134. package/components/table/v4/DataGridMenu.vue2.js +4 -3
  135. package/components/table/v4/index.d.ts +64 -26
  136. package/components/table-cells/common/Editable.common.js +24 -19
  137. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  138. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  139. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  140. package/components/tooltip/v4/index.d.ts +39 -1
  141. package/components/typography/v4/Typography.vue.js +3 -3
  142. package/components/typography/v4/Typography.vue2.js +24 -18
  143. package/composables/useFormValidation.d.ts +1 -1
  144. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  145. package/index.d.ts +1426 -320
  146. package/index.js +1 -1
  147. package/mocks/options.d.ts +48 -6
  148. package/mocks/words.d.ts +1 -1
  149. package/package.json +3 -239
  150. package/style/v4/grid.css +1 -1
  151. package/style/v4/grid.css.map +1 -1
  152. package/style/v4/spacings.scss +1 -0
  153. package/testids/index.d.ts +1 -0
  154. package/testids/index.js +13 -13
  155. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  156. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  157. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  158. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  159. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  160. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  161. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  162. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  163. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  164. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  165. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  166. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  167. package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
  168. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  169. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  170. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  171. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  172. package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
  173. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
  174. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  175. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  176. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  177. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  178. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  179. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
  180. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  181. package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
  182. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
@@ -28,6 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  zIndexBase?: number;
29
29
  rowCustomClassKey?: string;
30
30
  rowDataKey?: string;
31
+ isSelectionSticky?: boolean;
32
+ isSelectionBordered?: boolean;
31
33
  }>, {
32
34
  title: string;
33
35
  sort: any;
@@ -55,6 +57,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
55
57
  zIndexBase: number;
56
58
  rowCustomClassKey: string;
57
59
  rowDataKey: string;
60
+ isSelectionSticky: boolean;
61
+ isSelectionBordered: boolean;
58
62
  }>, {
59
63
  scrollTo: (index: number) => void;
60
64
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -97,6 +101,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
97
101
  zIndexBase?: number;
98
102
  rowCustomClassKey?: string;
99
103
  rowDataKey?: string;
104
+ isSelectionSticky?: boolean;
105
+ isSelectionBordered?: boolean;
100
106
  }>, {
101
107
  title: string;
102
108
  sort: any;
@@ -124,21 +130,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
124
130
  zIndexBase: number;
125
131
  rowCustomClassKey: string;
126
132
  rowDataKey: string;
133
+ isSelectionSticky: boolean;
134
+ isSelectionBordered: boolean;
127
135
  }>>> & {
128
136
  onSelectAll?: (value: boolean) => any;
137
+ onLoadMore?: () => any;
129
138
  "onUpdate:search"?: (query: string) => any;
130
139
  onOnScroll?: (event: Event) => any;
131
140
  "onUpdate:sort"?: (newSort: Sort) => any;
132
141
  onSaveRow?: (args_0: SaveRowEvent) => any;
133
- onLoadMore?: () => any;
134
142
  onOnClearSearch?: () => any;
135
143
  "onUpdate:selection"?: (selection: unknown[]) => any;
136
144
  onSelectRow?: (value: boolean) => any;
137
145
  onClickRow?: (rowIndex: number) => any;
138
146
  }, {
139
147
  sort: Sort;
140
- title: string;
141
148
  search: string;
149
+ title: string;
142
150
  testId: string;
143
151
  isLoading: boolean;
144
152
  searchAutoFocus: boolean;
@@ -162,6 +170,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
162
170
  zIndexBase: number;
163
171
  rowCustomClassKey: string;
164
172
  rowDataKey: string;
173
+ isSelectionSticky: boolean;
174
+ isSelectionBordered: boolean;
165
175
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
166
176
  column: Column;
167
177
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0cd8af73"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-26488faf"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,37 +1,32 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as B, isRef as ce, createCommentVNode as r, Fragment as I, renderList as A, createBlock as K, mergeProps as re } from "vue";
2
- import V from "../../typography/v4/Typography.vue.js";
3
- import ue from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import he from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import z from "../../checkbox/v4/CheckboxV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css"; import { defineComponent as ne, useCssVars as ce, unref as t, useSlots as re, computed as g, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as B, toDisplayString as E, isRef as ue, createCommentVNode as r, Fragment as I, renderList as p, mergeProps as V, createBlock as z } from "vue";
2
+ import A from "../../typography/v4/Typography.vue.js";
3
+ import he from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import ye from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import G from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as ye } from "../common/Table.common.js";
8
- import fe from "./SortIcon.vue.js";
9
- import Se from "./HelpIcon.vue.js";
10
- import ke from "./ExpandRowToggle.vue.js";
11
- import me from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as ge } from "@vueuse/core";
13
- const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = ["data-testid"], xe = { class: "search-wrapper" }, Te = ["data-testid"], we = ["data-testid"], Ee = {
14
- key: 0,
15
- class: "checkbox-cell"
16
- }, Be = {
7
+ import { tableCommon as fe } from "../common/Table.common.js";
8
+ import Se from "./SortIcon.vue.js";
9
+ import ke from "./HelpIcon.vue.js";
10
+ import me from "./ExpandRowToggle.vue.js";
11
+ import ge from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as ve } from "@vueuse/core";
13
+ import { CHECKBOX_COLUMN_ID as be } from "../common/consts.js";
14
+ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = { class: "search-wrapper" }, Be = ["data-testid"], Ee = ["data-testid"], Ie = {
17
15
  key: 1,
18
16
  class: "expand-toggle-cell"
19
- }, Ie = ["onClick"], Ae = { class: "table-head-container" }, Ve = ["data-testid"], pe = ["onMouseenter", "onClick"], Le = {
20
- key: 0,
21
- class: "checkbox-cell"
22
- }, Me = {
17
+ }, pe = ["onClick"], Ae = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Pe = {
23
18
  key: 1,
24
19
  class: "expand-toggle-cell"
25
- }, Pe = {
20
+ }, Ve = {
26
21
  key: 2,
27
22
  class: "expanded-row"
28
23
  }, He = {
29
24
  key: 3,
30
25
  class: "floating-row"
31
- }, Fe = { key: 1 }, Ne = {
26
+ }, Ne = { key: 1 }, Fe = {
32
27
  key: 0,
33
28
  class: "table-footer"
34
- }, Xe = /* @__PURE__ */ de({
29
+ }, Ze = /* @__PURE__ */ ne({
35
30
  __name: "DataGrid",
36
31
  props: {
37
32
  title: { default: "" },
@@ -61,78 +56,86 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
61
56
  searchAutoFocus: { type: Boolean, default: !1 },
62
57
  zIndexBase: { default: 100 },
63
58
  rowCustomClassKey: { default: "" },
64
- rowDataKey: { default: "" }
59
+ rowDataKey: { default: "" },
60
+ isSelectionSticky: { type: Boolean, default: !1 },
61
+ isSelectionBordered: { type: Boolean, default: !1 }
65
62
  },
66
63
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
67
64
  setup(s, { expose: k, emit: y }) {
68
- const i = s;
69
- oe((a) => ({
70
- "158e1032": s.zIndexBase,
71
- db8e3dca: t(X),
72
- a15dcd58: t(P),
73
- f7400c48: t(J)
65
+ const a = s;
66
+ ce((l) => ({
67
+ "7552e08c": s.zIndexBase,
68
+ "7f4c0eae": t(_),
69
+ b761a3b2: t(N),
70
+ "79122e22": t(Z)
74
71
  }));
75
- const b = ne(), U = (a) => i.rowCustomClassKey && i.rows[a] ? i.rows[a][i.rowCustomClassKey] : "", {
76
- list: M,
77
- containerProps: G,
78
- wrapperProps: Y,
79
- activeRow: $,
80
- gridColumnTemplate: P,
81
- toggleSortOrder: Q,
82
- columnsStickyPositions: H,
83
- hasSearchSlot: W,
84
- containerStyle: j,
72
+ const b = re(), Y = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
73
+ list: H,
74
+ containerProps: Q,
75
+ wrapperProps: W,
76
+ activeRow: C,
77
+ gridColumnTemplate: N,
78
+ toggleSortOrder: X,
79
+ columnsStickyPositions: L,
80
+ hasSearchSlot: j,
81
+ containerStyle: q,
85
82
  onScroll: F,
86
- savingRows: N,
87
- hasExpandSlot: R,
88
- toggleExpandRow: q,
89
- cssRowHeight: J,
90
- cssExpandGridCol: X,
91
- isRowExpanded: p,
92
- hasCheckboxes: O,
93
- activeMenuRow: Z,
94
- scrollTo: _
95
- } = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0), L = v(() => {
96
- const a = i.rows.map((o, e) => i.getRowId(o, e));
97
- return !!a.length && a.every((o) => C(o));
98
- }), C = (a) => i.selection.findIndex((o) => i.selectedMatcher(a, o)) !== -1, te = (a) => {
99
- C(a) ? (x(
100
- i.selection.filter(
101
- (o) => !i.selectedMatcher(a, o)
83
+ savingRows: O,
84
+ hasExpandSlot: $,
85
+ toggleExpandRow: J,
86
+ cssRowHeight: Z,
87
+ cssExpandGridCol: _,
88
+ isRowExpanded: M,
89
+ hasCheckboxes: D,
90
+ activeMenuRow: ee,
91
+ scrollTo: te
92
+ } = fe(a, y), K = g(() => !!b.footer), v = ve(a, "search", y), se = g(() => a.selection.length || 0), P = g(() => {
93
+ const l = a.rows.map((d, e) => a.getRowId(d, e));
94
+ return !!l.length && l.every((d) => R(d));
95
+ }), R = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, le = (l) => {
96
+ R(l) ? (x(
97
+ a.selection.filter(
98
+ (d) => !a.selectedMatcher(l, d)
102
99
  )
103
- ), y("selectRow", !1)) : (x([...i.selection, a]), y("selectRow", !0));
104
- }, se = () => {
105
- if (L.value)
100
+ ), y("selectRow", !1)) : (x([...a.selection, l]), y("selectRow", !0));
101
+ }, ae = () => {
102
+ if (P.value)
106
103
  x([]), y("selectAll", !1);
107
104
  else {
108
- const a = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
109
- x([...i.selection, ...a]), y("selectAll", !0);
105
+ const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !R(d));
106
+ x([...a.selection, ...l]), y("selectAll", !0);
110
107
  }
111
- }, x = (a) => {
112
- y("update:selection", a);
113
- }, ae = (a) => !i.isLoading && $.value === a, le = v(
114
- () => i.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
115
- ), ie = v(
116
- () => i.emptyStateSubtitle ? i.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
117
- );
108
+ }, x = (l) => {
109
+ y("update:selection", l);
110
+ }, ie = (l) => !a.isLoading && C.value === l, oe = g(
111
+ () => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
112
+ ), de = g(
113
+ () => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
114
+ ), U = g(() => ({
115
+ class: {
116
+ sticky: a.isSelectionSticky,
117
+ bordered: a.isSelectionBordered
118
+ },
119
+ style: a.isSelectionSticky ? L.value[be] : null
120
+ }));
118
121
  return k({
119
- scrollTo: _
120
- }), (a, o) => (l(), d("div", {
122
+ scrollTo: te
123
+ }), (l, d) => (i(), o("div", {
121
124
  class: "table-container",
122
125
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
123
- onMouseleave: o[3] || (o[3] = (e) => $.value = null)
126
+ onMouseleave: d[3] || (d[3] = (e) => C.value = null)
124
127
  }, [
125
128
  u("table", {
126
- ref: t(G).ref,
127
- style: T(t(j)),
129
+ ref: t(Q).ref,
130
+ style: T(t(q)),
128
131
  class: f({
129
- hasFooter: t(D)
132
+ hasFooter: t(K)
130
133
  }),
131
134
  "data-testid": `${s.testId}-${t(S).TABLE}`,
132
- onScrollPassive: o[2] || (o[2] = //@ts-ignore
135
+ onScrollPassive: d[2] || (d[2] = //@ts-ignore
133
136
  (...e) => t(F) && t(F)(...e))
134
137
  }, [
135
- s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
138
+ s.title || t(b).title || t(j) || t(b)["table-header-actions"] ? (i(), o("div", {
136
139
  key: 0,
137
140
  class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
138
141
  "data-testid": `${s.testId}-${t(S).HEADER}`
@@ -141,40 +144,40 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
141
144
  class: "table-title",
142
145
  "data-testid": `${s.testId}-${t(S).TITLE}`
143
146
  }, [
144
- c(a.$slots, "title", {}, () => [
145
- h(t(V), { variant: "h3" }, {
147
+ c(l.$slots, "title", {}, () => [
148
+ h(t(A), { variant: "h3" }, {
146
149
  default: w(() => [
147
- E(B(s.title), 1)
150
+ B(E(s.title), 1)
148
151
  ]),
149
152
  _: 1
150
153
  })
151
154
  ])
152
- ], 8, Re),
155
+ ], 8, xe),
153
156
  u("div", {
154
157
  class: "table-header-right",
155
158
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
156
159
  }, [
157
- s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
158
- u("div", xe, [
159
- h(t(me), {
160
- modelValue: t(g),
161
- "onUpdate:modelValue": o[0] || (o[0] = (e) => ce(g) ? g.value = e : null),
160
+ s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
161
+ u("div", we, [
162
+ h(t(ge), {
163
+ modelValue: t(v),
164
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => ue(v) ? v.value = e : null),
162
165
  placeholder: s.searchPlaceholder,
163
166
  "auto-focus": s.searchAutoFocus,
164
167
  "test-id": s.testId,
165
- onOnClear: o[1] || (o[1] = (e) => y("onClearSearch"))
168
+ onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
166
169
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
167
170
  ])
168
171
  ]) : r("", !0)
169
- ], 8, Ce),
170
- t(b)["table-header-actions"] ? (l(), d("div", {
172
+ ], 8, Te),
173
+ t(b)["table-header-actions"] ? (i(), o("div", {
171
174
  key: 0,
172
175
  class: "table-header-actions",
173
176
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
174
177
  }, [
175
- c(a.$slots, "table-header-actions")
176
- ], 8, Te)) : r("", !0)
177
- ], 10, $e)) : r("", !0),
178
+ c(l.$slots, "table-header-actions")
179
+ ], 8, Be)) : r("", !0)
180
+ ], 10, Re)) : r("", !0),
178
181
  u("thead", {
179
182
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
180
183
  }, [
@@ -182,38 +185,41 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
182
185
  class: "sections",
183
186
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
184
187
  }, [
185
- (l(!0), d(I, null, A(s.sections, (e) => (l(), d("div", {
188
+ (i(!0), o(I, null, p(s.sections, (e) => (i(), o("div", {
186
189
  key: e.id,
187
190
  class: f(["section-container", { sticky: e.isSticky }])
188
191
  }, [
189
- c(a.$slots, `section-${e.id}`, {}, () => [
192
+ c(l.$slots, `section-${e.id}`, {}, () => [
190
193
  u("div", {
191
194
  style: T({ width: e.width + "px" }),
192
195
  class: f({ section: !0 })
193
196
  }, [
194
- h(t(V), { variant: "body2" }, {
197
+ h(t(A), { variant: "body2" }, {
195
198
  default: w(() => [
196
- E(B(e.title), 1)
199
+ B(E(e.title), 1)
197
200
  ]),
198
201
  _: 2
199
202
  }, 1024)
200
203
  ], 4)
201
204
  ])
202
205
  ], 2))), 128))
203
- ], 8, we),
206
+ ], 8, Ee),
204
207
  u("tr", null, [
205
- t(O) ? (l(), d("th", Ee, [
206
- c(a.$slots, "select-all-checkbox", {}, () => [
207
- h(t(z), {
208
+ t(D) ? (i(), o("th", V({
209
+ key: 0,
210
+ class: "checkbox-cell"
211
+ }, t(U)), [
212
+ c(l.$slots, "select-all-checkbox", {}, () => [
213
+ h(t(G), {
208
214
  disabled: s.isLoading,
209
- "is-checked": t(L),
210
- "is-indeterminate": !t(L) && t(ee) > 0,
211
- "onUpdate:isChecked": se
215
+ "is-checked": t(P),
216
+ "is-indeterminate": !t(P) && t(se) > 0,
217
+ "onUpdate:isChecked": ae
212
218
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
213
219
  ])
214
- ])) : r("", !0),
215
- t(R) ? (l(), d("th", Be)) : r("", !0),
216
- (l(!0), d(I, null, A(s.columns, (e) => (l(), d("th", {
220
+ ], 16)) : r("", !0),
221
+ t($) ? (i(), o("th", Ie)) : r("", !0),
222
+ (i(!0), o(I, null, p(s.columns, (e) => (i(), o("th", {
217
223
  key: e.id,
218
224
  class: f({
219
225
  sticky: e.isSticky,
@@ -223,62 +229,65 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
223
229
  isSortable: e.isSortable,
224
230
  [`column-${e.id}`]: !0
225
231
  }),
226
- style: T(e.isSticky ? t(H)[e.id] : null),
227
- onClick: (m) => e.isSortable ? t(Q)(e) : null
232
+ style: T(e.isSticky ? t(L)[e.id] : null),
233
+ onClick: (m) => e.isSortable ? t(X)(e) : null
228
234
  }, [
229
235
  u("div", Ae, [
230
- c(a.$slots, `header-${e.id}`, { column: e }, () => [
231
- h(t(V), { variant: "tableLabel" }, {
236
+ c(l.$slots, `header-${e.id}`, { column: e }, () => [
237
+ h(t(A), { variant: "tableLabel" }, {
232
238
  default: w(() => [
233
- E(B(e.title), 1)
239
+ B(E(e.title), 1)
234
240
  ]),
235
241
  _: 2
236
242
  }, 1024)
237
243
  ]),
238
- e.helpText ? (l(), K(Se, {
244
+ e.helpText ? (i(), z(ke, {
239
245
  key: 0,
240
246
  "hover-help-text": e.helpText,
241
247
  "hover-help-text-placement": e.helpTextPlacement
242
248
  }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
243
- e.isSortable && e.id === s.sort?.sortBy ? (l(), K(fe, {
249
+ e.isSortable && e.id === s.sort?.sortBy ? (i(), z(Se, {
244
250
  key: 1,
245
251
  "sort-order": s.sort.sortOrder
246
252
  }, null, 8, ["sort-order"])) : r("", !0)
247
253
  ])
248
- ], 14, Ie))), 128))
254
+ ], 14, pe))), 128))
249
255
  ])
250
256
  ], 2),
251
257
  u("tbody", null, [
252
- t(M).length > 0 ? (l(), d("div", re({
258
+ t(H).length > 0 ? (i(), o("div", V({
253
259
  key: 0,
254
260
  class: "table-body-wrapper",
255
261
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
256
- }, t(Y)), [
257
- (l(!0), d(I, null, A(t(M), (e) => (l(), d("tr", {
262
+ }, t(W)), [
263
+ (i(!0), o(I, null, p(t(H), (e) => (i(), o("tr", {
258
264
  key: s.getRowKey(e.data, e.index),
259
265
  class: f(["table-row", {
260
- loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
261
- active: t($) === e.index,
262
- activeMenu: t(Z) === e.index,
263
- expanded: t(R) && t(p)(e.index),
264
- [U(e.index)]: !0
266
+ loading: s.isLoading || s.isLoading && !e.data || t(O).includes(e.index),
267
+ active: t(C) === e.index,
268
+ activeMenu: t(ee) === e.index,
269
+ expanded: t($) && t(M)(e.index),
270
+ [Y(e.index)]: !0
265
271
  }]),
266
- onMouseenter: (m) => $.value = e.index,
272
+ onMouseenter: (m) => C.value = e.index,
267
273
  onClick: (m) => y("clickRow", e.index)
268
274
  }, [
269
- t(O) ? (l(), d("td", Le, [
270
- h(t(z), {
271
- "is-checked": C(s.getRowId(e.data, e.index)),
272
- "onUpdate:isChecked": (m) => te(s.getRowId(e.data, e.index))
275
+ t(D) ? (i(), o("td", V({
276
+ key: 0,
277
+ class: "checkbox-cell"
278
+ }, t(U)), [
279
+ h(t(G), {
280
+ "is-checked": R(s.getRowId(e.data, e.index)),
281
+ "onUpdate:isChecked": (m) => le(s.getRowId(e.data, e.index))
273
282
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
274
- ])) : r("", !0),
275
- t(R) ? (l(), d("td", Me, [
276
- h(ke, {
277
- expanded: t(p)(e.index),
278
- onClick: (m) => t(q)(e.index, m)
283
+ ], 16)) : r("", !0),
284
+ t($) ? (i(), o("td", Pe, [
285
+ h(me, {
286
+ expanded: t(M)(e.index),
287
+ onClick: (m) => t(J)(e.index, m)
279
288
  }, null, 8, ["expanded", "onClick"])
280
289
  ])) : r("", !0),
281
- (l(!0), d(I, null, A(s.columns, (m, n) => (l(), d("td", {
290
+ (i(!0), o(I, null, p(s.columns, (m, n) => (i(), o("td", {
282
291
  key: n,
283
292
  class: f({
284
293
  sticky: s.columns[n].isSticky,
@@ -288,63 +297,63 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
288
297
  [`column-${s.columns[n].id}`]: !0
289
298
  }),
290
299
  style: T(
291
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
300
+ s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
292
301
  )
293
302
  }, [
294
- !s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
303
+ !s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
295
304
  key: 0,
296
305
  class: f(["table-cell", { last: n === e.data.length - 1 }])
297
306
  }, [
298
- c(a.$slots, `cell-${s.columns[n].id}`, {
307
+ c(l.$slots, `cell-${s.columns[n].id}`, {
299
308
  cell: e.data[n],
300
- isLoading: t(N).includes(e.index),
309
+ isLoading: t(O).includes(e.index),
301
310
  cellIndex: n,
302
311
  row: e,
303
312
  rowIndex: e.index
304
313
  }, () => [
305
- h(t(V), { variant: "body1" }, {
314
+ h(t(A), { variant: "body1" }, {
306
315
  default: w(() => [
307
- E(B(e.data[n]), 1)
316
+ B(E(e.data[n]), 1)
308
317
  ]),
309
318
  _: 2
310
319
  }, 1024)
311
320
  ])
312
- ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
313
- h(t(ue), { round: "" })
321
+ ], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
322
+ h(t(he), { round: "" })
314
323
  ])
315
324
  ], 6))), 128)),
316
- t(R) && t(p)(e.index) ? (l(), d("div", Pe, [
317
- c(a.$slots, "expanded", {
325
+ t($) && t(M)(e.index) ? (i(), o("div", Ve, [
326
+ c(l.$slots, "expanded", {
318
327
  row: e,
319
- gridColumnTemplate: t(P)
328
+ gridColumnTemplate: t(N)
320
329
  })
321
330
  ])) : r("", !0),
322
- ae(e.index) ? (l(), d("div", He, [
323
- c(a.$slots, "floating-row", {
331
+ ie(e.index) ? (i(), o("div", He, [
332
+ c(l.$slots, "floating-row", {
324
333
  row: e,
325
334
  rowIndex: e.index
326
335
  })
327
336
  ])) : r("", !0)
328
- ], 42, pe))), 128))
329
- ], 16, Ve)) : (l(), d("div", Fe, [
330
- c(a.$slots, "empty-state", {}, () => [
331
- h(t(he), {
337
+ ], 42, Me))), 128))
338
+ ], 16, Le)) : (i(), o("div", Ne, [
339
+ c(l.$slots, "empty-state", {}, () => [
340
+ h(t(ye), {
332
341
  class: "empty-state",
333
342
  title: s.emptyStateTitle,
334
- subtitle: t(ie),
335
- variant: t(le),
343
+ subtitle: t(de),
344
+ variant: t(oe),
336
345
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
337
346
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
338
347
  ])
339
348
  ]))
340
349
  ])
341
- ], 46, be),
342
- t(D) ? (l(), d("div", Ne, [
343
- c(a.$slots, "footer")
350
+ ], 46, $e),
351
+ t(K) ? (i(), o("div", Fe, [
352
+ c(l.$slots, "footer")
344
353
  ])) : r("", !0)
345
- ], 40, ve));
354
+ ], 40, Ce));
346
355
  }
347
356
  });
348
357
  export {
349
- Xe as default
358
+ Ze as default
350
359
  };
@@ -1,7 +1,7 @@
1
- import e from "./DataGridMenu.vue2.js";
2
- /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a6e4672f"]]);
1
+ import o from "./DataGridMenu.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css"; //*');
4
+ const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ddfaf207"]]);
5
5
  export {
6
- s as default
6
+ d as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css"; import { defineComponent as u, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as r, createVNode as c, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
1
+ import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css"; import { defineComponent as u, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as r, createVNode as c, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
2
2
  import g from "../../dropdown/v4/DropdownV4.vue.js";
3
3
  import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
4
4
  import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
@@ -8,10 +8,11 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
8
  import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
9
9
  import "../../dropdown/v4/TreeDropdown.vue.js";
10
10
  import C from "../../dropdown/v4/OptionV4.vue.js";
11
+ import "../../dropdown/v4/ConditionalDropdown.vue.js";
11
12
  import k from "../../icon/v4/IconV4.vue.js";
12
13
  import "../../icon/v4/IconFlag.vue.js";
13
14
  import { useTableContext as y } from "../common/TableContext.js";
14
- const z = /* @__PURE__ */ u({
15
+ const h = /* @__PURE__ */ u({
15
16
  __name: "DataGridMenu",
16
17
  props: {
17
18
  menuItems: { default: () => [] },
@@ -61,5 +62,5 @@ const z = /* @__PURE__ */ u({
61
62
  }
62
63
  });
63
64
  export {
64
- z as default
65
+ h as default
65
66
  };