@ironsource/shared-ui 2.1.3-rc.9 → 2.1.3

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 (117) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_2e91704b_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_8ffac784_lang.css +1 -0
  4. package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
  5. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
  6. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +1 -0
  8. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
  9. package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
  11. package/FormCard.vue_vue_type_style_index_0_scoped_fa761e4d_lang.css +1 -0
  12. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
  13. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
  14. package/OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css +1 -0
  15. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +1 -0
  16. package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
  17. package/components/alert/Alert.vue.d.ts +14 -7
  18. package/components/alert/Alert.vue.js +2 -2
  19. package/components/alert/Alert.vue2.js +30 -29
  20. package/components/alert/index.d.ts +176 -38
  21. package/components/appHeader/AppHeader.vue.d.ts +5 -0
  22. package/components/appHeader/AppHeader.vue.js +2 -2
  23. package/components/appHeader/AppHeader.vue2.js +49 -37
  24. package/components/appHeader/index.d.ts +9 -0
  25. package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
  26. package/components/autocomplete/Autocomplete.vue.js +7 -0
  27. package/components/autocomplete/Autocomplete.vue2.js +99 -0
  28. package/components/autocomplete/index.d.ts +459 -0
  29. package/components/autocomplete/index.js +6 -0
  30. package/components/button/v4/ButtonV4.vue2.js +90 -1
  31. package/components/checkbox/v3/index.d.ts +12 -12
  32. package/components/checkbox/v4/index.d.ts +12 -12
  33. package/components/chip/v3/Chip.vue.d.ts +1 -1
  34. package/components/chip/v3/index.d.ts +20 -20
  35. package/components/chip/v4/ChipV4.vue.d.ts +1 -1
  36. package/components/chip/v4/index.d.ts +20 -20
  37. package/components/dialog/v4/DialogV4.vue.js +4 -4
  38. package/components/dialog/v4/DialogV4.vue2.js +2 -2
  39. package/components/dialog/v4/index.d.ts +16 -16
  40. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  41. package/components/dropdown/common/Dropdown.common.js +34 -33
  42. package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
  43. package/components/dropdown/v3/index.d.ts +159 -159
  44. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
  45. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  46. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +31 -31
  47. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
  48. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
  49. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
  50. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
  51. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
  52. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
  53. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
  54. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
  55. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  56. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  57. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
  58. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  59. package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
  60. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  61. package/components/dropdown/v4/OptionV4.vue2.js +96 -86
  62. package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
  63. package/components/dropdown/v4/index.d.ts +705 -610
  64. package/components/dropdown/v4/index.js +16 -10
  65. package/components/filterDropdown/index.d.ts +8 -8
  66. package/components/forms/FormCard.vue.js +3 -3
  67. package/components/forms/FormCard.vue2.js +1 -1
  68. package/components/forms/FormRow.vue.js +2 -2
  69. package/components/forms/FormRow.vue2.js +9 -9
  70. package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
  71. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
  72. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
  73. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
  74. package/components/includeExclude/index.d.ts +168 -168
  75. package/components/input/v3/Input.vue.d.ts +3 -3
  76. package/components/input/v3/index.d.ts +82 -82
  77. package/components/input/v4/TextField.vue.d.ts +6 -6
  78. package/components/input/v4/TextField.vue.js +3 -3
  79. package/components/input/v4/TextField.vue2.js +2 -2
  80. package/components/input/v4/index.d.ts +115 -115
  81. package/components/multibar/MultiBarMenu.vue2.js +13 -11
  82. package/components/table/common/Table.types.d.ts +3 -0
  83. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  84. package/components/table/v4/DataGrid.vue.js +3 -3
  85. package/components/table/v4/DataGrid.vue2.js +147 -137
  86. package/components/table/v4/DataGridMenu.vue2.js +13 -11
  87. package/components/table/v4/HelpIcon.vue.d.ts +40 -0
  88. package/components/table/v4/HelpIcon.vue.js +7 -0
  89. package/components/table/v4/HelpIcon.vue2.js +32 -0
  90. package/components/table/v4/index.d.ts +39 -39
  91. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  92. package/components/table-cells/v4/index.d.ts +20 -20
  93. package/components/tabs/v4/TabsV4.vue.js +4 -4
  94. package/components/tabs/v4/TabsV4.vue2.js +4 -4
  95. package/components/textArea/v4/TextAreaV4.vue.d.ts +3 -3
  96. package/components/textArea/v4/index.d.ts +23 -23
  97. package/components/toggle/v3/Toggle.vue.d.ts +1 -1
  98. package/components/toggle/v3/index.d.ts +9 -9
  99. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  100. package/components/toggle/v4/index.d.ts +28 -28
  101. package/index.d.ts +2216 -1922
  102. package/index.js +74 -70
  103. package/package.json +5 -3
  104. package/testids/index.d.ts +3 -1
  105. package/testids/index.js +10 -10
  106. package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
  107. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +0 -1
  108. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
  109. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
  110. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
  111. package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +0 -1
  112. package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
  113. package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +0 -1
  114. package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
  115. package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
  116. package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +0 -1
  117. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +0 -1
@@ -1,33 +1,34 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; import { defineComponent as te, useCssVars as se, unref as e, useSlots as ae, computed as g, openBlock as i, createElementBlock as l, createElementVNode as r, normalizeStyle as T, normalizeClass as y, renderSlot as c, createVNode as u, withCtx as C, createTextVNode as x, toDisplayString as E, isRef as ie, createCommentVNode as h, Fragment as B, renderList as I, createBlock as le, mergeProps as de } from "vue";
2
- import w from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css"; import { defineComponent as se, useCssVars as ae, unref as e, useSlots as ie, computed as g, openBlock as i, createElementBlock as l, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as r, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as c, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
2
+ import p from "../../typography/v4/Typography.vue.js";
3
3
  import oe from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import D from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as f } 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 "./ExpandRowToggle.vue.js";
10
- import he from "../../search/v4/SearchV4.vue.js";
11
- import { useVModel as ye } from "@vueuse/core";
12
- const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], be = { class: "search-wrapper" }, ve = ["data-testid"], $e = ["data-testid"], Re = {
7
+ import { tableCommon as re } from "../common/Table.common.js";
8
+ import ce 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"], me = ["data-testid"], ke = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
13
14
  key: 0,
14
15
  class: "checkbox-cell"
15
16
  }, Te = {
16
17
  key: 1,
17
18
  class: "expand-toggle-cell"
18
- }, Ce = ["onClick"], xe = { class: "table-head-container" }, Ee = ["data-testid"], Be = ["onMouseenter"], Ie = {
19
+ }, Ce = ["onClick"], Ee = { class: "table-head-container" }, Be = ["data-testid"], Ie = ["onMouseenter"], pe = {
19
20
  key: 0,
20
21
  class: "checkbox-cell"
21
22
  }, we = {
22
23
  key: 1,
23
24
  class: "expand-toggle-cell"
24
- }, Ve = {
25
+ }, Me = {
25
26
  key: 2,
26
27
  class: "expanded-row"
27
- }, Le = { key: 1 }, Me = {
28
+ }, Pe = { key: 1 }, Ve = {
28
29
  key: 0,
29
30
  class: "table-footer"
30
- }, Ye = /* @__PURE__ */ te({
31
+ }, We = /* @__PURE__ */ se({
31
32
  __name: "DataGrid",
32
33
  props: {
33
34
  title: { default: "" },
@@ -59,38 +60,42 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
59
60
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
60
61
  setup(s, { emit: S }) {
61
62
  const o = s;
62
- se((a) => ({
63
- 42931960: s.zIndexBase,
64
- baef7858: e(q),
65
- "2d5a9c66": e(A),
66
- "3890bdd6": e(j)
63
+ ae((a) => ({
64
+ "05ee006e": s.zIndexBase,
65
+ "7ce7f77d": e(J),
66
+ aad7c194: e(H),
67
+ "4f64dd84": e(q)
67
68
  }));
68
- const b = ae(), {
69
- list: P,
69
+ const v = ie(), {
70
+ list: V,
70
71
  containerProps: U,
71
72
  wrapperProps: G,
72
- activeRow: V,
73
- gridColumnTemplate: A,
74
- toggleSortOrder: p,
75
- columnsStickyPositions: H,
76
- hasSearchSlot: Y,
77
- containerStyle: Q,
78
- onScroll: N,
79
- savingRows: F,
80
- hasExpandSlot: v,
81
- toggleExpandRow: W,
82
- cssRowHeight: j,
83
- cssExpandGridCol: q,
84
- isRowExpanded: L,
85
- hasCheckboxes: O,
86
- activeMenuRow: J
87
- } = ce(o, S), z = g(() => !!b.footer), k = ye(o, "search", S), K = g(() => o.selection.length || 0), M = g(() => {
73
+ activeRow: w,
74
+ gridColumnTemplate: H,
75
+ toggleSortOrder: Y,
76
+ columnsStickyPositions: L,
77
+ hasSearchSlot: Q,
78
+ containerStyle: W,
79
+ onScroll: A,
80
+ savingRows: N,
81
+ hasExpandSlot: b,
82
+ toggleExpandRow: j,
83
+ cssRowHeight: q,
84
+ cssExpandGridCol: J,
85
+ isRowExpanded: M,
86
+ hasCheckboxes: F,
87
+ activeMenuRow: K
88
+ } = re(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), P = g(() => {
88
89
  const a = o.rows.map((d, t) => o.getRowId(d, t));
89
90
  return a.length && a.every((d) => $(d));
90
- }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, X = (a) => {
91
- $(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
92
- }, Z = () => {
93
- if (M.value)
91
+ }), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
92
+ $(a) ? R(
93
+ o.selection.filter(
94
+ (d) => !o.selectedMatcher(a, d)
95
+ )
96
+ ) : R([...o.selection, a]);
97
+ }, _ = () => {
98
+ if (P.value)
94
99
  R([]);
95
100
  else {
96
101
  const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
@@ -98,72 +103,72 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
98
103
  }
99
104
  }, R = (a) => {
100
105
  S("update:selection", a);
101
- }, _ = g(
102
- () => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
103
- ), ee = g(
104
- () => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
106
+ }, ee = g(
107
+ () => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
108
+ ), te = g(
109
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
105
110
  );
106
111
  return (a, d) => (i(), l("div", {
107
112
  class: "table-container",
108
113
  "data-testid": `${s.testId}-${e(f).CONTAINER}`,
109
- onMouseleave: d[2] || (d[2] = (t) => V.value = null)
114
+ onMouseleave: d[2] || (d[2] = (t) => w.value = null)
110
115
  }, [
111
- r("table", {
116
+ u("table", {
112
117
  ref: e(U).ref,
113
- style: T(e(Q)),
118
+ style: x(e(W)),
114
119
  class: y({
115
- hasFooter: e(z)
120
+ hasFooter: e(O)
116
121
  }),
117
122
  "data-testid": `${s.testId}-${e(f).TABLE}`,
118
123
  onScrollPassive: d[1] || (d[1] = //@ts-ignore
119
- (...t) => e(N) && e(N)(...t))
124
+ (...t) => e(A) && e(A)(...t))
120
125
  }, [
121
- s.title || e(b).title || e(Y) || e(b)["table-header-actions"] ? (i(), l("div", {
126
+ s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
122
127
  key: 0,
123
128
  class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
124
129
  "data-testid": `${s.testId}-${e(f).HEADER}`
125
130
  }, [
126
- r("div", {
131
+ u("div", {
127
132
  class: "table-title",
128
133
  "data-testid": `${s.testId}-${e(f).TITLE}`
129
134
  }, [
130
- c(a.$slots, "title", {}, () => [
131
- u(e(w), { variant: "h3" }, {
132
- default: C(() => [
133
- x(E(s.title), 1)
135
+ r(a.$slots, "title", {}, () => [
136
+ h(e(p), { variant: "h3" }, {
137
+ default: T(() => [
138
+ C(E(s.title), 1)
134
139
  ]),
135
140
  _: 1
136
141
  })
137
142
  ], !0)
138
- ], 8, me),
139
- r("div", {
143
+ ], 8, ge),
144
+ u("div", {
140
145
  class: "table-header-right",
141
146
  "data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
142
147
  }, [
143
- s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
144
- r("div", be, [
145
- u(e(he), {
146
- modelValue: e(k),
147
- "onUpdate:modelValue": d[0] || (d[0] = (t) => ie(k) ? k.value = t : null),
148
+ s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
149
+ u("div", be, [
150
+ h(e(ye), {
151
+ modelValue: e(m),
152
+ "onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
148
153
  placeholder: s.searchPlaceholder,
149
154
  "auto-focus": s.searchAutoFocus,
150
155
  "test-id": s.testId
151
156
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
152
157
  ])
153
- ], !0) : h("", !0)
154
- ], 8, ge),
155
- e(b)["table-header-actions"] ? (i(), l("div", {
158
+ ], !0) : c("", !0)
159
+ ], 8, ve),
160
+ e(v)["table-header-actions"] ? (i(), l("div", {
156
161
  key: 0,
157
162
  class: "table-header-actions",
158
163
  "data-testid": `${s.testId}-${e(f).ACTIONS}`
159
164
  }, [
160
- c(a.$slots, "table-header-actions", {}, void 0, !0)
161
- ], 8, ve)) : h("", !0)
162
- ], 10, ke)) : h("", !0),
163
- r("thead", {
165
+ r(a.$slots, "table-header-actions", {}, void 0, !0)
166
+ ], 8, $e)) : c("", !0)
167
+ ], 10, ke)) : c("", !0),
168
+ u("thead", {
164
169
  class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
165
170
  }, [
166
- r("div", {
171
+ u("div", {
167
172
  class: "sections",
168
173
  "data-testid": `${s.testId}-${e(f).SECTIONS}`
169
174
  }, [
@@ -171,33 +176,33 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
171
176
  key: t.id,
172
177
  class: y(["section-container", { sticky: t.isSticky }])
173
178
  }, [
174
- c(a.$slots, `section-${t.id}`, {}, () => [
175
- r("div", {
176
- style: T({ width: t.width + "px" }),
179
+ r(a.$slots, `section-${t.id}`, {}, () => [
180
+ u("div", {
181
+ style: x({ width: t.width + "px" }),
177
182
  class: y({ section: !0 })
178
183
  }, [
179
- u(e(w), { variant: "body2" }, {
180
- default: C(() => [
181
- x(E(t.title), 1)
184
+ h(e(p), { variant: "body2" }, {
185
+ default: T(() => [
186
+ C(E(t.title), 1)
182
187
  ]),
183
188
  _: 2
184
189
  }, 1024)
185
190
  ], 4)
186
191
  ], !0)
187
192
  ], 2))), 128))
188
- ], 8, $e),
189
- r("tr", null, [
190
- e(O) ? (i(), l("th", Re, [
191
- c(a.$slots, "select-all-checkbox", {}, () => [
192
- u(e(D), {
193
+ ], 8, Re),
194
+ u("tr", null, [
195
+ e(F) ? (i(), l("th", xe, [
196
+ r(a.$slots, "select-all-checkbox", {}, () => [
197
+ h(e(D), {
193
198
  disabled: s.isLoading,
194
- "is-checked": e(M),
195
- "is-indeterminate": !e(M) && e(K) > 0,
196
- "onUpdate:isChecked": Z
199
+ "is-checked": e(P),
200
+ "is-indeterminate": !e(P) && e(X) > 0,
201
+ "onUpdate:isChecked": _
197
202
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
198
203
  ], !0)
199
- ])) : h("", !0),
200
- e(v) ? (i(), l("th", Te)) : h("", !0),
204
+ ])) : c("", !0),
205
+ e(b) ? (i(), l("th", Te)) : c("", !0),
201
206
  (i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
202
207
  key: t.id,
203
208
  class: y({
@@ -208,56 +213,61 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
208
213
  isSortable: t.isSortable,
209
214
  [`column-${t.id}`]: !0
210
215
  }),
211
- style: T(t.isSticky ? e(H)[t.id] : null),
212
- onClick: (m) => t.isSortable ? e(p)(t) : null
216
+ style: x(t.isSticky ? e(L)[t.id] : null),
217
+ onClick: (k) => t.isSortable ? e(Y)(t) : null
213
218
  }, [
214
- r("div", xe, [
215
- c(a.$slots, `header-${t.id}`, { column: t }, () => [
216
- u(e(w), { variant: "tableLabel" }, {
217
- default: C(() => [
218
- x(E(t.title), 1)
219
+ u("div", Ee, [
220
+ r(a.$slots, `header-${t.id}`, { column: t }, () => [
221
+ h(e(p), { variant: "tableLabel" }, {
222
+ default: T(() => [
223
+ C(E(t.title), 1)
219
224
  ]),
220
225
  _: 2
221
226
  }, 1024)
222
227
  ], !0),
223
- t.isSortable && t.id === s.sort?.sortBy ? (i(), le(re, {
228
+ t.helpText ? (i(), z(ue, {
224
229
  key: 0,
230
+ "hover-help-text": t.helpText,
231
+ "hover-help-text-placement": t.helpTextPlacement
232
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
233
+ t.isSortable && t.id === s.sort?.sortBy ? (i(), z(ce, {
234
+ key: 1,
225
235
  "sort-order": s.sort.sortOrder
226
- }, null, 8, ["sort-order"])) : h("", !0)
236
+ }, null, 8, ["sort-order"])) : c("", !0)
227
237
  ])
228
238
  ], 14, Ce))), 128))
229
239
  ])
230
240
  ], 2),
231
- r("tbody", null, [
232
- e(P).length > 0 ? (i(), l("div", de({
241
+ u("tbody", null, [
242
+ e(V).length > 0 ? (i(), l("div", de({
233
243
  key: 0,
234
244
  class: "table-body-wrapper",
235
245
  "data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
236
246
  }, e(G)), [
237
- (i(!0), l(B, null, I(e(P), (t) => (i(), l("tr", {
247
+ (i(!0), l(B, null, I(e(V), (t) => (i(), l("tr", {
238
248
  key: t.index,
239
249
  class: y(["table-row", {
240
- loading: s.isLoading || s.isLoading && !t.data || e(F).includes(t.index),
241
- active: e(V) === t.index,
242
- activeMenu: e(J) === t.index,
243
- expanded: e(v) && e(L)(t.index)
250
+ loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
251
+ active: e(w) === t.index,
252
+ activeMenu: e(K) === t.index,
253
+ expanded: e(b) && e(M)(t.index)
244
254
  }]),
245
- onMouseenter: (m) => V.value = t.index
255
+ onMouseenter: (k) => w.value = t.index
246
256
  }, [
247
- e(O) ? (i(), l("td", Ie, [
248
- u(e(D), {
257
+ e(F) ? (i(), l("td", pe, [
258
+ h(e(D), {
249
259
  "is-checked": $(s.getRowId(t.data, t.index)),
250
260
  size: "sm",
251
- "onUpdate:isChecked": (m) => X(s.getRowId(t.data, t.index))
261
+ "onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
252
262
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
253
- ])) : h("", !0),
254
- e(v) ? (i(), l("td", we, [
255
- u(ue, {
256
- expanded: e(L)(t.index),
257
- onClick: (m) => e(W)(t.index, m)
263
+ ])) : c("", !0),
264
+ e(b) ? (i(), l("td", we, [
265
+ h(he, {
266
+ expanded: e(M)(t.index),
267
+ onClick: (k) => e(j)(t.index, k)
258
268
  }, null, 8, ["expanded", "onClick"])
259
- ])) : h("", !0),
260
- (i(!0), l(B, null, I(s.columns, (m, n) => (i(), l("td", {
269
+ ])) : c("", !0),
270
+ (i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
261
271
  key: n,
262
272
  class: y({
263
273
  sticky: s.columns[n].isSticky,
@@ -266,58 +276,58 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
266
276
  isTextRight: s.columns[n].isTextRight,
267
277
  [`column-${s.columns[n].id}`]: !0
268
278
  }),
269
- style: T(
270
- s.columns[n].isSticky ? e(H)[s.columns[n].id] : null
279
+ style: x(
280
+ s.columns[n].isSticky ? e(L)[s.columns[n].id] : null
271
281
  )
272
282
  }, [
273
283
  !s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
274
284
  key: 0,
275
285
  class: y(["table-cell", { last: n === t.data.length - 1 }])
276
286
  }, [
277
- c(a.$slots, `cell-${s.columns[n].id}`, {
287
+ r(a.$slots, `cell-${s.columns[n].id}`, {
278
288
  cell: t.data[n],
279
- isLoading: e(F).includes(t.index),
289
+ isLoading: e(N).includes(t.index),
280
290
  cellIndex: n,
281
291
  row: t,
282
292
  rowIndex: t.index
283
293
  }, () => [
284
- u(e(w), { variant: "body1" }, {
285
- default: C(() => [
286
- x(E(t.data[n]), 1)
294
+ h(e(p), { variant: "body1" }, {
295
+ default: T(() => [
296
+ C(E(t.data[n]), 1)
287
297
  ]),
288
298
  _: 2
289
299
  }, 1024)
290
300
  ], !0)
291
- ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
292
- u(e(oe), { round: "" })
301
+ ], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
302
+ h(e(oe), { round: "" })
293
303
  ], !0)
294
304
  ], 6))), 128)),
295
- e(v) && e(L)(t.index) ? (i(), l("div", Ve, [
296
- c(a.$slots, "expanded", {
305
+ e(b) && e(M)(t.index) ? (i(), l("div", Me, [
306
+ r(a.$slots, "expanded", {
297
307
  row: t,
298
- gridColumnTemplate: e(A)
308
+ gridColumnTemplate: e(H)
299
309
  }, void 0, !0)
300
- ])) : h("", !0)
301
- ], 42, Be))), 128))
302
- ], 16, Ee)) : (i(), l("div", Le, [
303
- c(a.$slots, "empty-state", {}, () => [
304
- u(e(ne), {
310
+ ])) : c("", !0)
311
+ ], 42, Ie))), 128))
312
+ ], 16, Be)) : (i(), l("div", Pe, [
313
+ r(a.$slots, "empty-state", {}, () => [
314
+ h(e(ne), {
305
315
  class: "empty-state",
306
316
  title: s.emptyStateTitle,
307
- subtitle: e(ee),
308
- variant: e(_),
317
+ subtitle: e(te),
318
+ variant: e(ee),
309
319
  "test-id": `${s.testId}-${e(f).EMPTY_STATE}`
310
320
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
311
321
  ], !0)
312
322
  ]))
313
323
  ])
314
- ], 46, Se),
315
- e(z) ? (i(), l("div", Me, [
316
- c(a.$slots, "footer", {}, void 0, !0)
317
- ])) : h("", !0)
318
- ], 40, fe));
324
+ ], 46, me),
325
+ e(O) ? (i(), l("div", Ve, [
326
+ r(a.$slots, "footer", {}, void 0, !0)
327
+ ])) : c("", !0)
328
+ ], 40, Se));
319
329
  }
320
330
  });
321
331
  export {
322
- Ye as default
332
+ We as default
323
333
  };
@@ -1,13 +1,15 @@
1
- import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as n, withCtx as o, createVNode as m, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
1
+ import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as n, createVNode as l, 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";
5
5
  import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../../dropdown/v4/AppDropdownTrigger.vue.js";
7
+ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
8
+ import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
7
9
  import C from "../../dropdown/v4/OptionV4.vue.js";
8
10
  import k from "../../icon/v4/IconV4.vue.js";
9
11
  import { useTableContext as y } from "../common/TableContext.js";
10
- const O = /* @__PURE__ */ p({
12
+ const T = /* @__PURE__ */ p({
11
13
  __name: "DataGridMenu",
12
14
  props: {
13
15
  menuItems: { default: () => [] },
@@ -15,33 +17,33 @@ const O = /* @__PURE__ */ p({
15
17
  },
16
18
  emits: ["selected"],
17
19
  setup(r, { emit: u }) {
18
- const t = r, i = y("DataGridMenu"), s = (d) => d.text, c = () => {
20
+ const t = r, i = y("DataGridMenu"), s = (m) => m.text, c = () => {
19
21
  t.rowIndex && i.setActiveMenuRow(t.rowIndex);
20
22
  }, a = () => {
21
23
  t.rowIndex && i.setActiveMenuRow(null);
22
24
  };
23
- return f(a), (d, l) => (x(), w(n(g), {
25
+ return f(a), (m, d) => (x(), w(o(g), {
24
26
  class: "data-grid-menu",
25
27
  options: r.menuItems,
26
28
  "display-value": s,
27
29
  "predefined-trigger": "icon-button",
28
30
  placement: "left-start",
29
31
  skidding: -4,
30
- "onUpdate:selected": l[0] || (l[0] = (e) => u("selected", e)),
32
+ "onUpdate:selected": d[0] || (d[0] = (e) => u("selected", e)),
31
33
  onOpened: c,
32
34
  onClosed: a
33
35
  }, {
34
- default: o(({ option: e }) => [
35
- m(n(C), { option: e }, I({
36
- default: o(() => [
36
+ default: n(({ option: e }) => [
37
+ l(o(C), { option: e }, I({
38
+ default: n(() => [
37
39
  v(" " + M(s(e)), 1)
38
40
  ]),
39
41
  _: 2
40
42
  }, [
41
43
  e.icon ? {
42
44
  name: "icon-start",
43
- fn: o(() => [
44
- m(n(k), {
45
+ fn: n(() => [
46
+ l(o(k), {
45
47
  class: "menu-icon",
46
48
  name: e.icon,
47
49
  size: "20px"
@@ -56,5 +58,5 @@ const O = /* @__PURE__ */ p({
56
58
  }
57
59
  });
58
60
  export {
59
- O as default
61
+ T as default
60
62
  };
@@ -0,0 +1,40 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ hoverHelpText?: string;
4
+ hoverHelpTextPlacement?: TooltipPositions;
5
+ testId?: string;
6
+ }>, {
7
+ hoverHelpText: string;
8
+ hoverHelpTextPlacement: string;
9
+ testId: string;
10
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ hoverHelpText?: string;
12
+ hoverHelpTextPlacement?: TooltipPositions;
13
+ testId?: string;
14
+ }>, {
15
+ hoverHelpText: string;
16
+ hoverHelpTextPlacement: string;
17
+ testId: string;
18
+ }>>>, {
19
+ testId: string;
20
+ hoverHelpText: string;
21
+ hoverHelpTextPlacement: TooltipPositions;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
@@ -0,0 +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"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,32 @@
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";
4
+ const u = /* @__PURE__ */ o({
5
+ __name: "HelpIcon",
6
+ props: {
7
+ hoverHelpText: { default: "" },
8
+ hoverHelpTextPlacement: { default: "top" },
9
+ testId: { default: "" }
10
+ },
11
+ setup(e) {
12
+ return (m, p) => (n(), l(t(i), {
13
+ class: "table-help-icon",
14
+ triggers: ["hover"],
15
+ text: e.hoverHelpText,
16
+ placement: e.hoverHelpTextPlacement,
17
+ "test-id": e.testId
18
+ }, {
19
+ default: r(() => [
20
+ a(t(c), {
21
+ class: "info-icon",
22
+ name: "question",
23
+ "font-size": "sm"
24
+ })
25
+ ]),
26
+ _: 1
27
+ }, 8, ["text", "placement", "test-id"]));
28
+ }
29
+ });
30
+ export {
31
+ u as default
32
+ };