@ironsource/shared-ui 2.1.7-test.8 → 2.1.7

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 (41) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
  3. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
  6. package/README.md +1 -1
  7. package/TreeDropdown.vue_vue_type_style_index_0_scoped_78ce1bbd_lang.css +1 -0
  8. package/components/dropdown/common/Dropdown.common.js +89 -89
  9. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  10. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  11. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
  12. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
  13. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  14. package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
  15. package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
  16. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  17. package/components/dropdown/v4/OptionV4.vue2.js +94 -71
  18. package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
  19. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  20. package/components/dropdown/v4/TreeDropdown.vue2.js +162 -74
  21. package/components/dropdown/v4/index.d.ts +451 -82
  22. package/components/table/common/Table.common.js +68 -71
  23. package/components/table/v4/DataGrid.vue.d.ts +4 -10
  24. package/components/table/v4/DataGrid.vue.js +4 -4
  25. package/components/table/v4/DataGrid.vue2.js +146 -140
  26. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  27. package/components/table/v4/DataGridRowsCounter.vue2.js +13 -14
  28. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  29. package/components/table/v4/index.d.ts +7 -41
  30. package/components/table/v4/storyUtils.d.ts +0 -8
  31. package/index.d.ts +1203 -533
  32. package/mocks/options.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/DataGrid.vue_vue_type_style_index_0_scoped_467ea11a_lang.css +0 -1
  35. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  36. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
  37. package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
  38. package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
  39. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
  40. package/utils/formatNumbers.d.ts +0 -4
  41. package/utils/formatNumbers.js +0 -11
@@ -1,22 +1,22 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_467ea11a_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as h, withCtx as T, createTextVNode as w, toDisplayString as E, isRef as ne, createCommentVNode as c, Fragment as B, renderList as I, createBlock as z, mergeProps as re } from "vue";
2
- import p from "../../typography/v4/Typography.vue.js";
3
- import ce from "../../skeleton/v4/SkeletonV4.vue.js";
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as l, createElementBlock as i, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as E, createTextVNode as w, toDisplayString as I, isRef as ne, createCommentVNode as r, Fragment as B, renderList as p, createBlock as z, mergeProps as ce } from "vue";
2
+ import A from "../../typography/v4/Typography.vue.js";
3
+ import re from "../../skeleton/v4/SkeletonV4.vue.js";
4
4
  import ue from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import K from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import U from "../../checkbox/v4/CheckboxV4.vue.js";
6
6
  import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
7
  import { tableCommon as he } from "../common/Table.common.js";
8
8
  import ye from "./SortIcon.vue.js";
9
9
  import fe from "./HelpIcon.vue.js";
10
10
  import Se from "./ExpandRowToggle.vue.js";
11
11
  import ke from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as me } from "@vueuse/core";
13
- const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = { class: "search-wrapper" }, xe = ["data-testid"], Te = ["data-testid"], we = {
12
+ import { useVModel as ge } from "@vueuse/core";
13
+ const me = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = { class: "search-wrapper" }, Ce = ["data-testid"], Te = ["data-testid"], Ee = {
14
14
  key: 0,
15
15
  class: "checkbox-cell"
16
- }, Ee = {
16
+ }, we = {
17
17
  key: 1,
18
18
  class: "expand-toggle-cell"
19
- }, Be = ["onClick"], Ie = { class: "table-head-container" }, pe = ["data-testid"], Ae = ["onMouseenter", "onClick"], Ve = {
19
+ }, Ie = ["onClick"], Be = { class: "table-head-container" }, pe = ["data-testid"], Ae = ["onMouseenter", "onClick"], Le = {
20
20
  key: 0,
21
21
  class: "checkbox-cell"
22
22
  }, Me = {
@@ -25,10 +25,13 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
25
25
  }, Pe = {
26
26
  key: 2,
27
27
  class: "expanded-row"
28
- }, He = { key: 1 }, Le = {
28
+ }, Ve = {
29
+ key: 3,
30
+ class: "floating-row"
31
+ }, He = { key: 1 }, Ne = {
29
32
  key: 0,
30
33
  class: "table-footer"
31
- }, qe = /* @__PURE__ */ ie({
34
+ }, Ke = /* @__PURE__ */ ie({
32
35
  __name: "DataGrid",
33
36
  props: {
34
37
  title: { default: "" },
@@ -37,8 +40,8 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
37
40
  sections: { default: null },
38
41
  sort: { default: null },
39
42
  selection: { default: null },
40
- getRowId: { type: Function, default: (s, m) => m },
41
- selectedMatcher: { type: Function, default: (s, m) => s === m },
43
+ getRowId: { type: Function, default: (s, g) => g },
44
+ selectedMatcher: { type: Function, default: (s, g) => s === g },
42
45
  isSticky: { type: Boolean, default: !0 },
43
46
  isStickyHeader: { type: Boolean, default: !1 },
44
47
  isLoading: { type: Boolean, default: !1 },
@@ -55,80 +58,78 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
55
58
  showSearch: { type: Boolean, default: !1 },
56
59
  searchPlaceholder: { default: "Search" },
57
60
  searchAutoFocus: { type: Boolean, default: !1 },
58
- zIndexBase: { default: 100 },
59
- rowCustomClassKey: { default: "" },
60
- rowDataKey: { default: "" }
61
+ zIndexBase: { default: 100 }
61
62
  },
62
63
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
63
- setup(s, { expose: m, emit: y }) {
64
- const d = s;
65
- de((l) => ({
66
- "30600d2f": s.zIndexBase,
67
- "57bce063": t(X),
68
- "23d2669c": t(H),
69
- dbd245b8: t(J)
64
+ setup(s, { expose: g, emit: y }) {
65
+ const o = s;
66
+ de((a) => ({
67
+ "6e46e9f4": s.zIndexBase,
68
+ bd8b5530: t(K),
69
+ "03c6ae61": t(V),
70
+ "1c8cc6ae": t(J)
70
71
  }));
71
- const b = oe(), U = (l, a) => d.rowCustomClassKey ? (console.log("row", a), console.log("rowIndex", d.rows[l]), d.rows[l] ? d.rows[l][d.rowCustomClassKey] : "") : "", {
72
+ const b = oe(), {
72
73
  list: P,
73
74
  containerProps: G,
74
75
  wrapperProps: Y,
75
- activeRow: A,
76
- gridColumnTemplate: H,
76
+ activeRow: $,
77
+ gridColumnTemplate: V,
77
78
  toggleSortOrder: Q,
78
- columnsStickyPositions: L,
79
+ columnsStickyPositions: H,
79
80
  hasSearchSlot: W,
80
81
  containerStyle: j,
81
82
  onScroll: N,
82
83
  savingRows: F,
83
- hasExpandSlot: $,
84
+ hasExpandSlot: R,
84
85
  toggleExpandRow: q,
85
86
  cssRowHeight: J,
86
- cssExpandGridCol: X,
87
- isRowExpanded: V,
87
+ cssExpandGridCol: K,
88
+ isRowExpanded: L,
88
89
  hasCheckboxes: O,
89
- activeMenuRow: Z,
90
- scrollTo: _
91
- } = he(d, y), D = v(() => !!b.footer), g = me(d, "search", y), ee = v(() => d.selection.length || 0), M = v(() => {
92
- const l = d.rows.map((a, e) => d.getRowId(a, e));
93
- return l.length && l.every((a) => R(a));
94
- }), R = (l) => d.selection.findIndex((a) => d.selectedMatcher(l, a)) !== -1, te = (l) => {
95
- R(l) ? (C(
96
- d.selection.filter(
97
- (a) => !d.selectedMatcher(l, a)
90
+ activeMenuRow: X,
91
+ scrollTo: Z
92
+ } = he(o, y), D = v(() => !!b.footer), m = ge(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
93
+ const a = o.rows.map((d, e) => o.getRowId(d, e));
94
+ return a.length && a.every((d) => x(d));
95
+ }), x = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, ee = (a) => {
96
+ x(a) ? (C(
97
+ o.selection.filter(
98
+ (d) => !o.selectedMatcher(a, d)
98
99
  )
99
- ), y("selectRow", !1)) : (C([...d.selection, l]), y("selectRow", !0));
100
- }, se = () => {
100
+ ), y("selectRow", !1)) : (C([...o.selection, a]), y("selectRow", !0));
101
+ }, te = () => {
101
102
  if (M.value)
102
103
  C([]), y("selectAll", !1);
103
104
  else {
104
- const l = d.rows.map((a, e) => d.getRowId(a, e)).filter((a) => !R(a));
105
- C([...d.selection, ...l]), y("selectAll", !0);
105
+ const a = o.rows.map((d, e) => o.getRowId(d, e)).filter((d) => !x(d));
106
+ C([...o.selection, ...a]), y("selectAll", !0);
106
107
  }
107
- }, C = (l) => {
108
- y("update:selection", l);
109
- }, le = v(
110
- () => d.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
111
- ), ae = v(
112
- () => d.emptyStateSubtitle ? d.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
108
+ }, C = (a) => {
109
+ y("update:selection", a);
110
+ }, se = (a) => !o.isLoading && $.value === a, ae = v(
111
+ () => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
112
+ ), le = v(
113
+ () => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
113
114
  );
114
- return m({
115
- scrollTo: _
116
- }), (l, a) => (i(), o("div", {
115
+ return g({
116
+ scrollTo: Z
117
+ }), (a, d) => (l(), i("div", {
117
118
  class: "table-container",
118
119
  "data-testid": `${s.testId}-${t(S).CONTAINER}`,
119
- onMouseleave: a[3] || (a[3] = (e) => A.value = null)
120
+ onMouseleave: d[3] || (d[3] = (e) => $.value = null)
120
121
  }, [
121
122
  u("table", {
122
123
  ref: t(G).ref,
123
- style: x(t(j)),
124
+ style: T(t(j)),
124
125
  class: f({
125
126
  hasFooter: t(D)
126
127
  }),
127
128
  "data-testid": `${s.testId}-${t(S).TABLE}`,
128
- onScrollPassive: a[2] || (a[2] = //@ts-ignore
129
+ onScrollPassive: d[2] || (d[2] = //@ts-ignore
129
130
  (...e) => t(N) && t(N)(...e))
130
131
  }, [
131
- s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (i(), o("div", {
132
+ s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), i("div", {
132
133
  key: 0,
133
134
  class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
134
135
  "data-testid": `${s.testId}-${t(S).HEADER}`
@@ -137,40 +138,40 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
137
138
  class: "table-title",
138
139
  "data-testid": `${s.testId}-${t(S).TITLE}`
139
140
  }, [
140
- r(l.$slots, "title", {}, () => [
141
- h(t(p), { variant: "h3" }, {
142
- default: T(() => [
143
- w(E(s.title), 1)
141
+ c(a.$slots, "title", {}, () => [
142
+ h(t(A), { variant: "h3" }, {
143
+ default: E(() => [
144
+ w(I(s.title), 1)
144
145
  ]),
145
146
  _: 1
146
147
  })
147
- ], !0)
148
+ ])
148
149
  ], 8, $e),
149
150
  u("div", {
150
151
  class: "table-header-right",
151
152
  "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
152
153
  }, [
153
- s.showSearch ? r(l.$slots, "search", { key: 0 }, () => [
154
- u("div", Ce, [
154
+ s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
155
+ u("div", xe, [
155
156
  h(t(ke), {
156
- modelValue: t(g),
157
- "onUpdate:modelValue": a[0] || (a[0] = (e) => ne(g) ? g.value = e : null),
157
+ modelValue: t(m),
158
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => ne(m) ? m.value = e : null),
158
159
  placeholder: s.searchPlaceholder,
159
160
  "auto-focus": s.searchAutoFocus,
160
161
  "test-id": s.testId,
161
- onOnClear: a[1] || (a[1] = (e) => y("onClearSearch"))
162
+ onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
162
163
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
163
164
  ])
164
- ], !0) : c("", !0)
165
+ ]) : r("", !0)
165
166
  ], 8, Re),
166
- t(b)["table-header-actions"] ? (i(), o("div", {
167
+ t(b)["table-header-actions"] ? (l(), i("div", {
167
168
  key: 0,
168
169
  class: "table-header-actions",
169
170
  "data-testid": `${s.testId}-${t(S).ACTIONS}`
170
171
  }, [
171
- r(l.$slots, "table-header-actions", {}, void 0, !0)
172
- ], 8, xe)) : c("", !0)
173
- ], 10, be)) : c("", !0),
172
+ c(a.$slots, "table-header-actions")
173
+ ], 8, Ce)) : r("", !0)
174
+ ], 10, be)) : r("", !0),
174
175
  u("thead", {
175
176
  class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
176
177
  }, [
@@ -178,38 +179,38 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
178
179
  class: "sections",
179
180
  "data-testid": `${s.testId}-${t(S).SECTIONS}`
180
181
  }, [
181
- (i(!0), o(B, null, I(s.sections, (e) => (i(), o("div", {
182
+ (l(!0), i(B, null, p(s.sections, (e) => (l(), i("div", {
182
183
  key: e.id,
183
184
  class: f(["section-container", { sticky: e.isSticky }])
184
185
  }, [
185
- r(l.$slots, `section-${e.id}`, {}, () => [
186
+ c(a.$slots, `section-${e.id}`, {}, () => [
186
187
  u("div", {
187
- style: x({ width: e.width + "px" }),
188
+ style: T({ width: e.width + "px" }),
188
189
  class: f({ section: !0 })
189
190
  }, [
190
- h(t(p), { variant: "body2" }, {
191
- default: T(() => [
192
- w(E(e.title), 1)
191
+ h(t(A), { variant: "body2" }, {
192
+ default: E(() => [
193
+ w(I(e.title), 1)
193
194
  ]),
194
195
  _: 2
195
196
  }, 1024)
196
197
  ], 4)
197
- ], !0)
198
+ ])
198
199
  ], 2))), 128))
199
200
  ], 8, Te),
200
201
  u("tr", null, [
201
- t(O) ? (i(), o("th", we, [
202
- r(l.$slots, "select-all-checkbox", {}, () => [
203
- h(t(K), {
202
+ t(O) ? (l(), i("th", Ee, [
203
+ c(a.$slots, "select-all-checkbox", {}, () => [
204
+ h(t(U), {
204
205
  disabled: s.isLoading,
205
206
  "is-checked": t(M),
206
- "is-indeterminate": !t(M) && t(ee) > 0,
207
- "onUpdate:isChecked": se
207
+ "is-indeterminate": !t(M) && t(_) > 0,
208
+ "onUpdate:isChecked": te
208
209
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
209
- ], !0)
210
- ])) : c("", !0),
211
- t($) ? (i(), o("th", Ee)) : c("", !0),
212
- (i(!0), o(B, null, I(s.columns, (e) => (i(), o("th", {
210
+ ])
211
+ ])) : r("", !0),
212
+ t(R) ? (l(), i("th", we)) : r("", !0),
213
+ (l(!0), i(B, null, p(s.columns, (e) => (l(), i("th", {
213
214
  key: e.id,
214
215
  class: f({
215
216
  sticky: e.isSticky,
@@ -219,62 +220,61 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
219
220
  isSortable: e.isSortable,
220
221
  [`column-${e.id}`]: !0
221
222
  }),
222
- style: x(e.isSticky ? t(L)[e.id] : null),
223
+ style: T(e.isSticky ? t(H)[e.id] : null),
223
224
  onClick: (k) => e.isSortable ? t(Q)(e) : null
224
225
  }, [
225
- u("div", Ie, [
226
- r(l.$slots, `header-${e.id}`, { column: e }, () => [
227
- h(t(p), { variant: "tableLabel" }, {
228
- default: T(() => [
229
- w(E(e.title), 1)
226
+ u("div", Be, [
227
+ c(a.$slots, `header-${e.id}`, { column: e }, () => [
228
+ h(t(A), { variant: "tableLabel" }, {
229
+ default: E(() => [
230
+ w(I(e.title), 1)
230
231
  ]),
231
232
  _: 2
232
233
  }, 1024)
233
- ], !0),
234
- e.helpText ? (i(), z(fe, {
234
+ ]),
235
+ e.helpText ? (l(), z(fe, {
235
236
  key: 0,
236
237
  "hover-help-text": e.helpText,
237
238
  "hover-help-text-placement": e.helpTextPlacement
238
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
239
- e.isSortable && e.id === s.sort?.sortBy ? (i(), z(ye, {
239
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
240
+ e.isSortable && e.id === s.sort?.sortBy ? (l(), z(ye, {
240
241
  key: 1,
241
242
  "sort-order": s.sort.sortOrder
242
- }, null, 8, ["sort-order"])) : c("", !0)
243
+ }, null, 8, ["sort-order"])) : r("", !0)
243
244
  ])
244
- ], 14, Be))), 128))
245
+ ], 14, Ie))), 128))
245
246
  ])
246
247
  ], 2),
247
248
  u("tbody", null, [
248
- t(P).length > 0 ? (i(), o("div", re({
249
+ t(P).length > 0 ? (l(), i("div", ce({
249
250
  key: 0,
250
251
  class: "table-body-wrapper",
251
252
  "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
252
253
  }, t(Y)), [
253
- (i(!0), o(B, null, I(t(P), (e) => (i(), o("tr", {
254
+ (l(!0), i(B, null, p(t(P), (e) => (l(), i("tr", {
254
255
  key: e.index,
255
256
  class: f(["table-row", {
256
257
  loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
257
- active: t(A) === e.index,
258
- activeMenu: t(Z) === e.index,
259
- expanded: t($) && t(V)(e.index),
260
- [U(e.index, e)]: !0
258
+ active: t($) === e.index,
259
+ activeMenu: t(X) === e.index,
260
+ expanded: t(R) && t(L)(e.index)
261
261
  }]),
262
- onMouseenter: (k) => A.value = e.index,
262
+ onMouseenter: (k) => $.value = e.index,
263
263
  onClick: (k) => y("clickRow", e.index)
264
264
  }, [
265
- t(O) ? (i(), o("td", Ve, [
266
- h(t(K), {
267
- "is-checked": R(s.getRowId(e.data, e.index)),
268
- "onUpdate:isChecked": (k) => te(s.getRowId(e.data, e.index))
265
+ t(O) ? (l(), i("td", Le, [
266
+ h(t(U), {
267
+ "is-checked": x(s.getRowId(e.data, e.index)),
268
+ "onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
269
269
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
270
- ])) : c("", !0),
271
- t($) ? (i(), o("td", Me, [
270
+ ])) : r("", !0),
271
+ t(R) ? (l(), i("td", Me, [
272
272
  h(Se, {
273
- expanded: t(V)(e.index),
273
+ expanded: t(L)(e.index),
274
274
  onClick: (k) => t(q)(e.index, k)
275
275
  }, null, 8, ["expanded", "onClick"])
276
- ])) : c("", !0),
277
- (i(!0), o(B, null, I(s.columns, (k, n) => (i(), o("td", {
276
+ ])) : r("", !0),
277
+ (l(!0), i(B, null, p(s.columns, (k, n) => (l(), i("td", {
278
278
  key: n,
279
279
  class: f({
280
280
  sticky: s.columns[n].isSticky,
@@ -283,58 +283,64 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
283
283
  isTextRight: s.columns[n].isTextRight,
284
284
  [`column-${s.columns[n].id}`]: !0
285
285
  }),
286
- style: x(
287
- s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
286
+ style: T(
287
+ s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
288
288
  )
289
289
  }, [
290
- !s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
290
+ !s.isLoading || s.isLoading && e.data[n] ? (l(), i("div", {
291
291
  key: 0,
292
292
  class: f(["table-cell", { last: n === e.data.length - 1 }])
293
293
  }, [
294
- r(l.$slots, `cell-${s.columns[n].id}`, {
294
+ c(a.$slots, `cell-${s.columns[n].id}`, {
295
295
  cell: e.data[n],
296
296
  isLoading: t(F).includes(e.index),
297
297
  cellIndex: n,
298
298
  row: e,
299
299
  rowIndex: e.index
300
300
  }, () => [
301
- h(t(p), { variant: "body1" }, {
302
- default: T(() => [
303
- w(E(e.data[n]), 1)
301
+ h(t(A), { variant: "body1" }, {
302
+ default: E(() => [
303
+ w(I(e.data[n]), 1)
304
304
  ]),
305
305
  _: 2
306
306
  }, 1024)
307
- ], !0)
308
- ], 2)) : r(l.$slots, "loader", { key: 1 }, () => [
309
- h(t(ce), { round: "" })
310
- ], !0)
307
+ ])
308
+ ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
309
+ h(t(re), { round: "" })
310
+ ])
311
311
  ], 6))), 128)),
312
- t($) && t(V)(e.index) ? (i(), o("div", Pe, [
313
- r(l.$slots, "expanded", {
312
+ t(R) && t(L)(e.index) ? (l(), i("div", Pe, [
313
+ c(a.$slots, "expanded", {
314
+ row: e,
315
+ gridColumnTemplate: t(V)
316
+ })
317
+ ])) : r("", !0),
318
+ se(e.index) ? (l(), i("div", Ve, [
319
+ c(a.$slots, "floating-row", {
314
320
  row: e,
315
- gridColumnTemplate: t(H)
316
- }, void 0, !0)
317
- ])) : c("", !0)
321
+ rowIndex: e.index
322
+ })
323
+ ])) : r("", !0)
318
324
  ], 42, Ae))), 128))
319
- ], 16, pe)) : (i(), o("div", He, [
320
- r(l.$slots, "empty-state", {}, () => [
325
+ ], 16, pe)) : (l(), i("div", He, [
326
+ c(a.$slots, "empty-state", {}, () => [
321
327
  h(t(ue), {
322
328
  class: "empty-state",
323
329
  title: s.emptyStateTitle,
324
- subtitle: t(ae),
325
- variant: t(le),
330
+ subtitle: t(le),
331
+ variant: t(ae),
326
332
  "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
327
333
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
328
- ], !0)
334
+ ])
329
335
  ]))
330
336
  ])
331
337
  ], 46, ve),
332
- t(D) ? (i(), o("div", Le, [
333
- r(l.$slots, "footer", {}, void 0, !0)
334
- ])) : c("", !0)
335
- ], 40, ge));
338
+ t(D) ? (l(), i("div", Ne, [
339
+ c(a.$slots, "footer")
340
+ ])) : r("", !0)
341
+ ], 40, me));
336
342
  }
337
343
  });
338
344
  export {
339
- qe as default
345
+ Ke as default
340
346
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGridRowsCounter.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css"; //*');
4
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ef699ec5"]]);
3
+ // import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css"; //*');
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0ce71f73"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,8 +1,7 @@
1
- import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css"; import { defineComponent as l, openBlock as u, createElementBlock as f, unref as e, createVNode as d, withCtx as i, createTextVNode as a, toDisplayString as o } from "vue";
1
+ import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css"; import { defineComponent as l, openBlock as u, createElementBlock as r, unref as e, createVNode as o, withCtx as i, createTextVNode as a, toDisplayString as d } from "vue";
2
2
  import s from "../../typography/v4/Typography.vue.js";
3
3
  import { RowsCounterTestIdModifiers as n } from "../../../testids/index.js";
4
- import { nFormatter as r } from "../../../utils/formatNumbers.js";
5
- const c = ["data-testid"], I = /* @__PURE__ */ l({
4
+ const f = ["data-testid"], C = /* @__PURE__ */ l({
6
5
  __name: "DataGridRowsCounter",
7
6
  props: {
8
7
  count: { default: 0 },
@@ -13,41 +12,41 @@ const c = ["data-testid"], I = /* @__PURE__ */ l({
13
12
  testId: { default: "" }
14
13
  },
15
14
  setup(t) {
16
- return (m, T) => (u(), f("div", {
15
+ return (c, T) => (u(), r("div", {
17
16
  class: "data-grid-rows-counter",
18
17
  "data-testid": `${t.testId}-${e(n).CONTAINER}`
19
18
  }, [
20
- d(e(s), { variant: "body1" }, {
19
+ o(e(s), { variant: "body1" }, {
21
20
  default: i(() => [
22
- a(o(t.displayingText) + " ", 1),
23
- d(e(s), {
21
+ a(d(t.displayingText) + " ", 1),
22
+ o(e(s), {
24
23
  class: "text-strong",
25
24
  variant: "subtitle1",
26
25
  "data-testid": `${t.testId}-${e(n).COUNT}`
27
26
  }, {
28
27
  default: i(() => [
29
- a(o(e(r)(t.count)), 1)
28
+ a(d(t.count), 1)
30
29
  ]),
31
30
  _: 1
32
31
  }, 8, ["data-testid"]),
33
- a(" " + o(t.outOfText) + " ", 1),
34
- d(e(s), {
32
+ a(" " + d(t.outOfText) + " ", 1),
33
+ o(e(s), {
35
34
  class: "text-strong",
36
35
  variant: "subtitle1",
37
36
  "data-testid": `${t.testId}-${e(n).TOTAL}`
38
37
  }, {
39
38
  default: i(() => [
40
- a(o(e(r)(t.totalCount)), 1)
39
+ a(d(t.totalCount), 1)
41
40
  ]),
42
41
  _: 1
43
42
  }, 8, ["data-testid"]),
44
- a(" " + o(t.totalText), 1)
43
+ a(" " + d(t.totalText), 1)
45
44
  ]),
46
45
  _: 1
47
46
  })
48
- ], 8, c));
47
+ ], 8, f));
49
48
  }
50
49
  });
51
50
  export {
52
- I as default
51
+ C as default
53
52
  };
@@ -120,8 +120,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
120
120
  search?(_: {}): any;
121
121
  "table-header-actions"?(_: {}): any;
122
122
  "floating-row"?(_: {
123
- row: any;
124
- rowIndex: any;
123
+ row: import("@vueuse/core").UseVirtualListItem<import("@is-ssp/table/common/Table.types").Row>;
124
+ rowIndex: number;
125
125
  }): any;
126
126
  "empty-state"?(_: {}): any;
127
127
  }>;