@ironsource/shared-ui 2.1.6-test.13 → 2.1.6-test.15

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 (112) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
  3. package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
  7. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
  8. package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
  9. package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
  10. package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
  11. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
  12. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
  13. package/README.md +35 -0
  14. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
  15. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  16. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
  17. package/components/alert/Alert.vue.d.ts +28 -0
  18. package/components/alert/Alert.vue.js +4 -4
  19. package/components/alert/Alert.vue2.js +67 -46
  20. package/components/alert/index.d.ts +104 -2
  21. package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
  22. package/components/autocomplete/Autocomplete.vue2.js +6 -5
  23. package/components/autocomplete/index.d.ts +1 -0
  24. package/components/button/v4/ButtonV4.vue.d.ts +7 -7
  25. package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
  26. package/components/button/v4/index.d.ts +61 -61
  27. package/components/chip/v4/Chip.types.d.ts +6 -0
  28. package/components/chip/v4/ChipV4.vue.d.ts +28 -35
  29. package/components/chip/v4/ChipV4.vue.js +3 -3
  30. package/components/chip/v4/ChipV4.vue2.js +28 -59
  31. package/components/chip/v4/index.d.ts +45 -148
  32. package/components/datePicker/common/DatePicker.common.js +14 -14
  33. package/components/datePicker/v4/DatePickerV4.vue2.js +3 -2
  34. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  35. package/components/dateRange/v4/DateRangeV4.vue2.js +4 -3
  36. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  37. package/components/dialog/v3/index.d.ts +20 -20
  38. package/components/dropdown/common/Dropdown.common.js +80 -75
  39. package/components/dropdown/common/Option.common.d.ts +1 -1
  40. package/components/dropdown/common/Option.common.js +9 -9
  41. package/components/dropdown/composables/useChildOptions.d.ts +7 -0
  42. package/components/dropdown/composables/useChildOptions.js +14 -0
  43. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +14 -3
  44. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  45. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
  46. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
  47. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  48. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
  49. package/components/dropdown/v4/DropdownV4.vue.d.ts +22 -6
  50. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  51. package/components/dropdown/v4/DropdownV4.vue2.js +81 -73
  52. package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
  53. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  54. package/components/dropdown/v4/OptionV4.vue2.js +51 -45
  55. package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
  56. package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
  57. package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
  58. package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
  59. package/components/dropdown/v4/index.d.ts +332 -49
  60. package/components/dropdown/v4/index.js +7 -4
  61. package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
  62. package/components/emptyState/v3/index.d.ts +47 -47
  63. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  64. package/components/emptyState/v4/index.d.ts +7 -7
  65. package/components/icon/v4/Icon.types.d.ts +1 -1
  66. package/components/icon/v4/IconV4.vue.d.ts +16 -6
  67. package/components/icon/v4/IconV4.vue.js +4 -4
  68. package/components/icon/v4/IconV4.vue2.js +36 -33
  69. package/components/icon/v4/index.d.ts +53 -15
  70. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  71. package/components/inlineCopy/InlineCopy.vue2.js +1 -1
  72. package/components/layout/FoldableSection.vue.js +5 -5
  73. package/components/layout/FoldableSection.vue2.js +1 -1
  74. package/components/multibar/MultiBarMenu.vue2.js +12 -11
  75. package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
  76. package/components/table/common/Table.common.d.ts +1 -0
  77. package/components/table/common/Table.common.js +65 -61
  78. package/components/table/v4/DataGrid.vue.d.ts +5 -1
  79. package/components/table/v4/DataGrid.vue.js +3 -3
  80. package/components/table/v4/DataGrid.vue2.js +166 -162
  81. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  82. package/components/table/v4/HelpIcon.vue.js +5 -5
  83. package/components/table/v4/HelpIcon.vue2.js +5 -5
  84. package/components/table/v4/index.d.ts +16 -4
  85. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  86. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  87. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  88. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  89. package/components/toggle/v4/ToggleV4.vue2.js +12 -12
  90. package/components/toggle/v4/index.d.ts +20 -20
  91. package/composables/useFormValidation.js +19 -13
  92. package/design-foundation.stories/icons/iconsData.d.ts +5 -1
  93. package/index.d.ts +1091 -632
  94. package/mocks/apps.d.ts +1 -0
  95. package/mocks/options.d.ts +12 -0
  96. package/package.json +1 -1
  97. package/utils/text.d.ts +1 -0
  98. package/utils/text.js +9 -0
  99. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
  100. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
  101. package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
  102. package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
  103. package/DateRangeV4.vue_vue_type_style_index_0_scoped_1cc45a5d_lang.css +0 -1
  104. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +0 -1
  105. package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
  106. package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
  107. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
  108. package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
  109. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +0 -1
  110. package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
  111. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
  112. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
@@ -1,34 +1,34 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css"; import { defineComponent as se, useCssVars as ae, unref as t, useSlots as le, computed as g, openBlock as l, createElementBlock as d, createElementVNode as h, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as y, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as ie, createCommentVNode as u, Fragment as w, renderList as B, createBlock as z, mergeProps as de } from "vue";
2
- import I from "../../typography/v4/Typography.vue.js";
3
- import oe from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import D from "../../checkbox/v4/CheckboxV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css"; import { defineComponent as le, useCssVars as ie, unref as t, useSlots as de, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as C, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as E, toDisplayString as w, isRef as oe, createCommentVNode as r, Fragment as B, renderList as I, createBlock as D, mergeProps as ne } from "vue";
2
+ import p from "../../typography/v4/Typography.vue.js";
3
+ import ce from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import re from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import U from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
- import { tableCommon as ce } from "../common/Table.common.js";
8
- import re from "./SortIcon.vue.js";
9
- import ue from "./HelpIcon.vue.js";
10
- import he from "./ExpandRowToggle.vue.js";
11
- import ye from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as fe } from "@vueuse/core";
13
- const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
7
+ import { tableCommon as ue } from "../common/Table.common.js";
8
+ import he from "./SortIcon.vue.js";
9
+ import ye from "./HelpIcon.vue.js";
10
+ import fe from "./ExpandRowToggle.vue.js";
11
+ import Se from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as ke } from "@vueuse/core";
13
+ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = { class: "search-wrapper" }, xe = ["data-testid"], Ce = ["data-testid"], Te = {
14
14
  key: 0,
15
15
  class: "checkbox-cell"
16
- }, Te = {
16
+ }, Ee = {
17
17
  key: 1,
18
18
  class: "expand-toggle-cell"
19
- }, Ce = ["onClick"], Ee = { class: "table-head-container" }, we = ["data-testid"], Be = ["onMouseenter"], Ie = {
19
+ }, we = ["onClick"], Be = { class: "table-head-container" }, Ie = ["data-testid"], pe = ["onMouseenter", "onClick"], Ae = {
20
20
  key: 0,
21
21
  class: "checkbox-cell"
22
- }, pe = {
22
+ }, Me = {
23
23
  key: 1,
24
24
  class: "expand-toggle-cell"
25
- }, Ae = {
25
+ }, Pe = {
26
26
  key: 2,
27
27
  class: "expanded-row"
28
- }, Me = { key: 1 }, Pe = {
28
+ }, Ve = { key: 1 }, He = {
29
29
  key: 0,
30
30
  class: "table-footer"
31
- }, We = /* @__PURE__ */ se({
31
+ }, qe = /* @__PURE__ */ le({
32
32
  __name: "DataGrid",
33
33
  props: {
34
34
  title: { default: "" },
@@ -37,8 +37,8 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
37
37
  sections: { default: null },
38
38
  sort: { default: null },
39
39
  selection: { default: null },
40
- getRowId: { type: Function, default: (s, c) => c },
41
- selectedMatcher: { type: Function, default: (s, c) => s === c },
40
+ getRowId: { type: Function, default: (s, m) => m },
41
+ selectedMatcher: { type: Function, default: (s, m) => s === m },
42
42
  isSticky: { type: Boolean, default: !0 },
43
43
  isStickyHeader: { type: Boolean, default: !1 },
44
44
  isLoading: { type: Boolean, default: !1 },
@@ -57,154 +57,157 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
57
57
  searchAutoFocus: { type: Boolean, default: !1 },
58
58
  zIndexBase: { default: 100 }
59
59
  },
60
- emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow"],
61
- setup(s, { emit: c }) {
60
+ emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
61
+ setup(s, { expose: m, emit: y }) {
62
62
  const o = s;
63
- ae((a) => ({
64
- "6eac79e5": s.zIndexBase,
65
- "69b66c99": t(J),
66
- c4cc855c: t(V),
67
- "6efaf45a": t(q)
63
+ ie((a) => ({
64
+ "671cd302": s.zIndexBase,
65
+ be93a49a: t(K),
66
+ "13ad9fec": t(H),
67
+ "6feb5274": t(J)
68
68
  }));
69
- const v = le(), {
70
- list: P,
71
- containerProps: U,
72
- wrapperProps: G,
73
- activeRow: p,
74
- gridColumnTemplate: V,
75
- toggleSortOrder: Y,
76
- columnsStickyPositions: H,
77
- hasSearchSlot: Q,
78
- containerStyle: W,
79
- onScroll: L,
80
- savingRows: N,
81
- hasExpandSlot: b,
82
- toggleExpandRow: j,
83
- cssRowHeight: q,
84
- cssExpandGridCol: J,
85
- isRowExpanded: A,
86
- hasCheckboxes: F,
87
- activeMenuRow: K
88
- } = ce(o, c), O = g(() => !!v.footer), k = fe(o, "search", c), X = g(() => o.selection.length || 0), M = g(() => {
69
+ const b = de(), {
70
+ list: V,
71
+ containerProps: G,
72
+ wrapperProps: Y,
73
+ activeRow: A,
74
+ gridColumnTemplate: H,
75
+ toggleSortOrder: Q,
76
+ columnsStickyPositions: L,
77
+ hasSearchSlot: W,
78
+ containerStyle: j,
79
+ onScroll: N,
80
+ savingRows: F,
81
+ hasExpandSlot: $,
82
+ toggleExpandRow: q,
83
+ cssRowHeight: J,
84
+ cssExpandGridCol: K,
85
+ isRowExpanded: M,
86
+ hasCheckboxes: O,
87
+ activeMenuRow: X,
88
+ scrollTo: Z
89
+ } = ue(o, y), z = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), P = v(() => {
89
90
  const a = o.rows.map((i, e) => o.getRowId(i, e));
90
- return a.length && a.every((i) => $(i));
91
- }), $ = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, Z = (a) => {
92
- $(a) ? (R(
91
+ return a.length && a.every((i) => R(i));
92
+ }), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, ee = (a) => {
93
+ R(a) ? (x(
93
94
  o.selection.filter(
94
95
  (i) => !o.selectedMatcher(a, i)
95
96
  )
96
- ), c("selectRow", !1)) : (R([...o.selection, a]), c("selectRow", !0));
97
- }, _ = () => {
98
- if (M.value)
99
- R([]), c("selectAll", !1);
97
+ ), y("selectRow", !1)) : (x([...o.selection, a]), y("selectRow", !0));
98
+ }, te = () => {
99
+ if (P.value)
100
+ x([]), y("selectAll", !1);
100
101
  else {
101
- const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !$(i));
102
- R([...o.selection, ...a]), c("selectAll", !0);
102
+ const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
103
+ x([...o.selection, ...a]), y("selectAll", !0);
103
104
  }
104
- }, R = (a) => {
105
- c("update:selection", a);
106
- }, ee = g(
107
- () => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
108
- ), te = g(
109
- () => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
105
+ }, x = (a) => {
106
+ y("update:selection", a);
107
+ }, se = v(
108
+ () => o.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
109
+ ), ae = v(
110
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
110
111
  );
111
- return (a, i) => (l(), d("div", {
112
+ return m({
113
+ scrollTo: Z
114
+ }), (a, i) => (l(), d("div", {
112
115
  class: "table-container",
113
116
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
114
- onMouseleave: i[3] || (i[3] = (e) => p.value = null)
117
+ onMouseleave: i[3] || (i[3] = (e) => A.value = null)
115
118
  }, [
116
- h("table", {
117
- ref: t(U).ref,
118
- style: x(t(W)),
119
+ u("table", {
120
+ ref: t(G).ref,
121
+ style: C(t(j)),
119
122
  class: f({
120
- hasFooter: t(O)
123
+ hasFooter: t(z)
121
124
  }),
122
125
  "data-testid": `${s.testId}-${t(S).TABLE}`,
123
126
  onScrollPassive: i[2] || (i[2] = //@ts-ignore
124
- (...e) => t(L) && t(L)(...e))
127
+ (...e) => t(N) && t(N)(...e))
125
128
  }, [
126
- s.title || t(v).title || t(Q) || t(v)["table-header-actions"] ? (l(), d("div", {
129
+ s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), d("div", {
127
130
  key: 0,
128
131
  class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
129
132
  "data-testid": `${s.testId}-${t(S).HEADER}`
130
133
  }, [
131
- h("div", {
134
+ u("div", {
132
135
  class: "table-title",
133
136
  "data-testid": `${s.testId}-${t(S).TITLE}`
134
137
  }, [
135
- r(a.$slots, "title", {}, () => [
136
- y(t(I), { variant: "h3" }, {
138
+ c(a.$slots, "title", {}, () => [
139
+ h(t(p), { variant: "h3" }, {
137
140
  default: T(() => [
138
- C(E(s.title), 1)
141
+ E(w(s.title), 1)
139
142
  ]),
140
143
  _: 1
141
144
  })
142
145
  ], !0)
143
- ], 8, ge),
144
- h("div", {
146
+ ], 8, be),
147
+ u("div", {
145
148
  class: "table-header-right",
146
149
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
147
150
  }, [
148
- s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
149
- h("div", be, [
150
- y(t(ye), {
151
- modelValue: t(k),
152
- "onUpdate:modelValue": i[0] || (i[0] = (e) => ie(k) ? k.value = e : null),
151
+ s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
152
+ u("div", Re, [
153
+ h(t(Se), {
154
+ modelValue: t(g),
155
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => oe(g) ? g.value = e : null),
153
156
  placeholder: s.searchPlaceholder,
154
157
  "auto-focus": s.searchAutoFocus,
155
158
  "test-id": s.testId,
156
- onOnClear: i[1] || (i[1] = (e) => c("onClearSearch"))
159
+ onOnClear: i[1] || (i[1] = (e) => y("onClearSearch"))
157
160
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
158
161
  ])
159
- ], !0) : u("", !0)
160
- ], 8, ve),
161
- t(v)["table-header-actions"] ? (l(), d("div", {
162
+ ], !0) : r("", !0)
163
+ ], 8, $e),
164
+ t(b)["table-header-actions"] ? (l(), d("div", {
162
165
  key: 0,
163
166
  class: "table-header-actions",
164
167
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
165
168
  }, [
166
- r(a.$slots, "table-header-actions", {}, void 0, !0)
167
- ], 8, $e)) : u("", !0)
168
- ], 10, me)) : u("", !0),
169
- h("thead", {
169
+ c(a.$slots, "table-header-actions", {}, void 0, !0)
170
+ ], 8, xe)) : r("", !0)
171
+ ], 10, ve)) : r("", !0),
172
+ u("thead", {
170
173
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
171
174
  }, [
172
- h("div", {
175
+ u("div", {
173
176
  class: "sections",
174
177
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
175
178
  }, [
176
- (l(!0), d(w, null, B(s.sections, (e) => (l(), d("div", {
179
+ (l(!0), d(B, null, I(s.sections, (e) => (l(), d("div", {
177
180
  key: e.id,
178
181
  class: f(["section-container", { sticky: e.isSticky }])
179
182
  }, [
180
- r(a.$slots, `section-${e.id}`, {}, () => [
181
- h("div", {
182
- style: x({ width: e.width + "px" }),
183
+ c(a.$slots, `section-${e.id}`, {}, () => [
184
+ u("div", {
185
+ style: C({ width: e.width + "px" }),
183
186
  class: f({ section: !0 })
184
187
  }, [
185
- y(t(I), { variant: "body2" }, {
188
+ h(t(p), { variant: "body2" }, {
186
189
  default: T(() => [
187
- C(E(e.title), 1)
190
+ E(w(e.title), 1)
188
191
  ]),
189
192
  _: 2
190
193
  }, 1024)
191
194
  ], 4)
192
195
  ], !0)
193
196
  ], 2))), 128))
194
- ], 8, Re),
195
- h("tr", null, [
196
- t(F) ? (l(), d("th", xe, [
197
- r(a.$slots, "select-all-checkbox", {}, () => [
198
- y(t(D), {
197
+ ], 8, Ce),
198
+ u("tr", null, [
199
+ t(O) ? (l(), d("th", Te, [
200
+ c(a.$slots, "select-all-checkbox", {}, () => [
201
+ h(t(U), {
199
202
  disabled: s.isLoading,
200
- "is-checked": t(M),
201
- "is-indeterminate": !t(M) && t(X) > 0,
202
- "onUpdate:isChecked": _
203
+ "is-checked": t(P),
204
+ "is-indeterminate": !t(P) && t(_) > 0,
205
+ "onUpdate:isChecked": te
203
206
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
204
207
  ], !0)
205
- ])) : u("", !0),
206
- t(b) ? (l(), d("th", Te)) : u("", !0),
207
- (l(!0), d(w, null, B(s.columns, (e) => (l(), d("th", {
208
+ ])) : r("", !0),
209
+ t($) ? (l(), d("th", Ee)) : r("", !0),
210
+ (l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
208
211
  key: e.id,
209
212
  class: f({
210
213
  sticky: e.isSticky,
@@ -214,61 +217,62 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
214
217
  isSortable: e.isSortable,
215
218
  [`column-${e.id}`]: !0
216
219
  }),
217
- style: x(e.isSticky ? t(H)[e.id] : null),
218
- onClick: (m) => e.isSortable ? t(Y)(e) : null
220
+ style: C(e.isSticky ? t(L)[e.id] : null),
221
+ onClick: (k) => e.isSortable ? t(Q)(e) : null
219
222
  }, [
220
- h("div", Ee, [
221
- r(a.$slots, `header-${e.id}`, { column: e }, () => [
222
- y(t(I), { variant: "tableLabel" }, {
223
+ u("div", Be, [
224
+ c(a.$slots, `header-${e.id}`, { column: e }, () => [
225
+ h(t(p), { variant: "tableLabel" }, {
223
226
  default: T(() => [
224
- C(E(e.title), 1)
227
+ E(w(e.title), 1)
225
228
  ]),
226
229
  _: 2
227
230
  }, 1024)
228
231
  ], !0),
229
- e.helpText ? (l(), z(ue, {
232
+ e.helpText ? (l(), D(ye, {
230
233
  key: 0,
231
234
  "hover-help-text": e.helpText,
232
235
  "hover-help-text-placement": e.helpTextPlacement
233
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : u("", !0),
234
- e.isSortable && e.id === s.sort?.sortBy ? (l(), z(re, {
236
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
237
+ e.isSortable && e.id === s.sort?.sortBy ? (l(), D(he, {
235
238
  key: 1,
236
239
  "sort-order": s.sort.sortOrder
237
- }, null, 8, ["sort-order"])) : u("", !0)
240
+ }, null, 8, ["sort-order"])) : r("", !0)
238
241
  ])
239
- ], 14, Ce))), 128))
242
+ ], 14, we))), 128))
240
243
  ])
241
244
  ], 2),
242
- h("tbody", null, [
243
- t(P).length > 0 ? (l(), d("div", de({
245
+ u("tbody", null, [
246
+ t(V).length > 0 ? (l(), d("div", ne({
244
247
  key: 0,
245
248
  class: "table-body-wrapper",
246
249
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
247
- }, t(G)), [
248
- (l(!0), d(w, null, B(t(P), (e) => (l(), d("tr", {
250
+ }, t(Y)), [
251
+ (l(!0), d(B, null, I(t(V), (e) => (l(), d("tr", {
249
252
  key: e.index,
250
253
  class: f(["table-row", {
251
- loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
252
- active: t(p) === e.index,
253
- activeMenu: t(K) === e.index,
254
- expanded: t(b) && t(A)(e.index)
254
+ loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
255
+ active: t(A) === e.index,
256
+ activeMenu: t(X) === e.index,
257
+ expanded: t($) && t(M)(e.index)
255
258
  }]),
256
- onMouseenter: (m) => p.value = e.index
259
+ onMouseenter: (k) => A.value = e.index,
260
+ onClick: (k) => y("clickRow", e.index)
257
261
  }, [
258
- t(F) ? (l(), d("td", Ie, [
259
- y(t(D), {
260
- "is-checked": $(s.getRowId(e.data, e.index)),
262
+ t(O) ? (l(), d("td", Ae, [
263
+ h(t(U), {
264
+ "is-checked": R(s.getRowId(e.data, e.index)),
261
265
  size: "sm",
262
- "onUpdate:isChecked": (m) => Z(s.getRowId(e.data, e.index))
266
+ "onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
263
267
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
264
- ])) : u("", !0),
265
- t(b) ? (l(), d("td", pe, [
266
- y(he, {
267
- expanded: t(A)(e.index),
268
- onClick: (m) => t(j)(e.index, m)
268
+ ])) : r("", !0),
269
+ t($) ? (l(), d("td", Me, [
270
+ h(fe, {
271
+ expanded: t(M)(e.index),
272
+ onClick: (k) => t(q)(e.index, k)
269
273
  }, null, 8, ["expanded", "onClick"])
270
- ])) : u("", !0),
271
- (l(!0), d(w, null, B(s.columns, (m, n) => (l(), d("td", {
274
+ ])) : r("", !0),
275
+ (l(!0), d(B, null, I(s.columns, (k, n) => (l(), d("td", {
272
276
  key: n,
273
277
  class: f({
274
278
  sticky: s.columns[n].isSticky,
@@ -277,58 +281,58 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
277
281
  isTextRight: s.columns[n].isTextRight,
278
282
  [`column-${s.columns[n].id}`]: !0
279
283
  }),
280
- style: x(
281
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
284
+ style: C(
285
+ s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
282
286
  )
283
287
  }, [
284
288
  !s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
285
289
  key: 0,
286
290
  class: f(["table-cell", { last: n === e.data.length - 1 }])
287
291
  }, [
288
- r(a.$slots, `cell-${s.columns[n].id}`, {
292
+ c(a.$slots, `cell-${s.columns[n].id}`, {
289
293
  cell: e.data[n],
290
- isLoading: t(N).includes(e.index),
294
+ isLoading: t(F).includes(e.index),
291
295
  cellIndex: n,
292
296
  row: e,
293
297
  rowIndex: e.index
294
298
  }, () => [
295
- y(t(I), { variant: "body1" }, {
299
+ h(t(p), { variant: "body1" }, {
296
300
  default: T(() => [
297
- C(E(e.data[n]), 1)
301
+ E(w(e.data[n]), 1)
298
302
  ]),
299
303
  _: 2
300
304
  }, 1024)
301
305
  ], !0)
302
- ], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
303
- y(t(oe), { round: "" })
306
+ ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
307
+ h(t(ce), { round: "" })
304
308
  ], !0)
305
309
  ], 6))), 128)),
306
- t(b) && t(A)(e.index) ? (l(), d("div", Ae, [
307
- r(a.$slots, "expanded", {
310
+ t($) && t(M)(e.index) ? (l(), d("div", Pe, [
311
+ c(a.$slots, "expanded", {
308
312
  row: e,
309
- gridColumnTemplate: t(V)
313
+ gridColumnTemplate: t(H)
310
314
  }, void 0, !0)
311
- ])) : u("", !0)
312
- ], 42, Be))), 128))
313
- ], 16, we)) : (l(), d("div", Me, [
314
- r(a.$slots, "empty-state", {}, () => [
315
- y(t(ne), {
315
+ ])) : r("", !0)
316
+ ], 42, pe))), 128))
317
+ ], 16, Ie)) : (l(), d("div", Ve, [
318
+ c(a.$slots, "empty-state", {}, () => [
319
+ h(t(re), {
316
320
  class: "empty-state",
317
321
  title: s.emptyStateTitle,
318
- subtitle: t(te),
319
- variant: t(ee),
322
+ subtitle: t(ae),
323
+ variant: t(se),
320
324
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
321
325
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
322
326
  ], !0)
323
327
  ]))
324
328
  ])
325
- ], 46, ke),
326
- t(O) ? (l(), d("div", Pe, [
327
- r(a.$slots, "footer", {}, void 0, !0)
328
- ])) : u("", !0)
329
- ], 40, Se));
329
+ ], 46, ge),
330
+ t(z) ? (l(), d("div", He, [
331
+ c(a.$slots, "footer", {}, void 0, !0)
332
+ ])) : r("", !0)
333
+ ], 40, me));
330
334
  }
331
335
  });
332
336
  export {
333
- We as default
337
+ qe as default
334
338
  };
@@ -6,10 +6,11 @@ import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../../dropdown/v4/AppDropdownTrigger.vue.js";
7
7
  import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
8
  import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
9
+ import "../../dropdown/v4/TreeDropdown.vue.js";
9
10
  import C from "../../dropdown/v4/OptionV4.vue.js";
10
11
  import k from "../../icon/v4/IconV4.vue.js";
11
12
  import { useTableContext as y } from "../common/TableContext.js";
12
- const T = /* @__PURE__ */ p({
13
+ const U = /* @__PURE__ */ p({
13
14
  __name: "DataGridMenu",
14
15
  props: {
15
16
  menuItems: { default: () => [] },
@@ -58,5 +59,5 @@ const T = /* @__PURE__ */ p({
58
59
  }
59
60
  });
60
61
  export {
61
- T as default
62
+ U as default
62
63
  };
@@ -1,7 +1,7 @@
1
- import o from "./HelpIcon.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7a611779"]]);
1
+ import e from "./HelpIcon.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-06fce2e3"]]);
5
5
  export {
6
- t as default
6
+ s as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; import { defineComponent as o, openBlock as n, createBlock as l, unref as t, withCtx as r, createVNode as a } from "vue";
2
- import c from "../../icon/v3/Icon.vue.js";
3
- import i from "../../tooltip/v4/TooltipV4.vue.js";
1
+ import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css"; import { defineComponent as o, openBlock as l, createBlock as n, unref as t, withCtx as r, createVNode as a } from "vue";
2
+ import c from "../../icon/v4/IconV4.vue.js";
3
+ import p from "../../tooltip/v4/TooltipV4.vue.js";
4
4
  const u = /* @__PURE__ */ o({
5
5
  __name: "HelpIcon",
6
6
  props: {
@@ -9,7 +9,7 @@ const u = /* @__PURE__ */ o({
9
9
  testId: { default: "" }
10
10
  },
11
11
  setup(e) {
12
- return (m, p) => (n(), l(t(i), {
12
+ return (i, m) => (l(), n(t(p), {
13
13
  class: "table-help-icon",
14
14
  triggers: ["hover"],
15
15
  text: e.hoverHelpText,
@@ -20,7 +20,7 @@ const u = /* @__PURE__ */ o({
20
20
  a(t(c), {
21
21
  class: "info-icon",
22
22
  name: "question",
23
- "font-size": "sm"
23
+ size: "16px"
24
24
  })
25
25
  ]),
26
26
  _: 1
@@ -145,6 +145,7 @@ declare const DataGridTypes: () => (({
145
145
  "onUpdate:selection"?: (selection: unknown[]) => any;
146
146
  onOnClearSearch?: () => any;
147
147
  onSelectRow?: (value: boolean) => any;
148
+ onClickRow?: (rowIndex: number) => any;
148
149
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
149
150
  $attrs: {
150
151
  [x: string]: unknown;
@@ -162,7 +163,7 @@ declare const DataGridTypes: () => (({
162
163
  confirm: () => void;
163
164
  rowIndex: number;
164
165
  cellIndex: number;
165
- }) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void);
166
+ }) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
166
167
  $el: any;
167
168
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
168
169
  sort: {
@@ -280,7 +281,10 @@ declare const DataGridTypes: () => (({
280
281
  "onUpdate:selection"?: (selection: unknown[]) => any;
281
282
  onOnClearSearch?: () => any;
282
283
  onSelectRow?: (value: boolean) => any;
283
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
284
+ onClickRow?: (rowIndex: number) => any;
285
+ }, {
286
+ scrollTo: (index: number) => void;
287
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
284
288
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
285
289
  "update:search": (query: string) => void;
286
290
  "update:selection": (selection: unknown[]) => void;
@@ -295,6 +299,7 @@ declare const DataGridTypes: () => (({
295
299
  loadMore: () => void;
296
300
  selectAll: (value: boolean) => void;
297
301
  selectRow: (value: boolean) => void;
302
+ clickRow: (rowIndex: number) => void;
298
303
  }, string, {
299
304
  sort: import("../common/Table.types").Sort;
300
305
  title: string;
@@ -455,7 +460,10 @@ declare const DataGridTypes: () => (({
455
460
  "onUpdate:selection"?: (selection: unknown[]) => any;
456
461
  onOnClearSearch?: () => any;
457
462
  onSelectRow?: (value: boolean) => any;
458
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
463
+ onClickRow?: (rowIndex: number) => any;
464
+ } & import("vue").ShallowUnwrapRef<{
465
+ scrollTo: (index: number) => void;
466
+ }> & {} & import("vue").ComponentCustomProperties & {};
459
467
  __isFragment?: never;
460
468
  __isTeleport?: never;
461
469
  __isSuspense?: never;
@@ -575,7 +583,10 @@ declare const DataGridTypes: () => (({
575
583
  "onUpdate:selection"?: (selection: unknown[]) => any;
576
584
  onOnClearSearch?: () => any;
577
585
  onSelectRow?: (value: boolean) => any;
578
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
586
+ onClickRow?: (rowIndex: number) => any;
587
+ }, {
588
+ scrollTo: (index: number) => void;
589
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
579
590
  "update:sort": (newSort: import("../common/Table.types").Sort) => void;
580
591
  "update:search": (query: string) => void;
581
592
  "update:selection": (selection: unknown[]) => void;
@@ -590,6 +601,7 @@ declare const DataGridTypes: () => (({
590
601
  loadMore: () => void;
591
602
  selectAll: (value: boolean) => void;
592
603
  selectRow: (value: boolean) => void;
604
+ clickRow: (rowIndex: number) => void;
593
605
  }, string, {
594
606
  sort: import("../common/Table.types").Sort;
595
607
  title: string;
@@ -1,7 +1,7 @@
1
1
  import e from "./TextAreaV4.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-8199b662"]]);
3
+ // import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3b2c01d"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
1
+ import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
2
2
  import v from "../../shared/FieldLabel.vue.js";
3
3
  import k from "../../shared/FieldMaxLength.vue.js";
4
4
  import T from "../../shared/FieldHelpText.vue.js";