@ironsource/shared-ui 2.1.12-test.70 → 2.1.12-test.71

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.
@@ -0,0 +1 @@
1
+ .sticky[data-v-0dff3241]{position:sticky}.table-container[data-v-0dff3241]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-0dff3241]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-0dff3241]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-0dff3241]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-0dff3241]{width:13.75rem}.table-header.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 3);top:0}.table-head-container[data-v-0dff3241]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-0dff3241]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-0dff3241]{display:inline-table}.table-header-pre-search-content[data-v-0dff3241]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-0dff3241]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-0dff3241]{position:relative}.table-row.loading[data-v-0dff3241]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-0dff3241]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-0dff3241]{border-bottom:none}.expanded-row[data-v-0dff3241]{grid-column:var(--4f8f6bba);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-0dff3241]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-0dff3241]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-0dff3241],table th[data-v-0dff3241]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-0dff3241]:first-of-type,table th[data-v-0dff3241]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-0dff3241]:last-of-type,table th[data-v-0dff3241]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-0dff3241],table th.expand-toggle-cell[data-v-0dff3241]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-0dff3241]{border-bottom:none;z-index:calc(var(--35c47222) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-0dff3241]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--731a605c)}table>thead>tr>th[data-v-0dff3241]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-0dff3241]{cursor:pointer}table>thead>tr>td[data-v-0dff3241]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-0dff3241],table>thead>tr>td.bordered[data-v-0dff3241]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-0dff3241],table>thead>tr>td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-0dff3241],table>thead>tr>td.isTextRight[data-v-0dff3241]{justify-content:flex-end}table>thead.sticky[data-v-0dff3241]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 2);top:calc(var(--spacing-800) - 1px)}table .totals-row[data-v-0dff3241]{height:40px}table .totals-row[data-v-0dff3241]:hover{background:var(--background-paper-elevation-1)}table>tbody[data-v-0dff3241]{display:block}table>tbody>*>tr[data-v-0dff3241]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--731a605c)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-0dff3241]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-0dff3241],table>tbody>*>tr.activeMenu>td[data-v-0dff3241]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-0dff3241]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-0dff3241]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-0dff3241]{justify-content:flex-end;text-align:right}.section-container[data-v-0dff3241]{left:0}.sections[data-v-0dff3241]{display:flex}.section[data-v-0dff3241]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-0dff3241]{width:100%}.empty-state[data-v-0dff3241]{min-height:250px}.floating-row[data-v-0dff3241]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--35c47222) + 1)}.floating-row *[data-v-0dff3241-s]{pointer-events:auto}.bg[data-v-0dff3241]{background:var(--background-default)}
@@ -31,7 +31,6 @@ export declare const tableCommon: (props: any, emit: any) => {
31
31
  hasCheckboxes: import("vue").ComputedRef<boolean>;
32
32
  toggleExpandRow: (index: number, event: any) => Promise<void>;
33
33
  isRowExpanded: (rowIndex: number) => boolean;
34
- cssRowHeight: import("vue").ComputedRef<string>;
35
34
  cssExpandGridCol: import("vue").ComputedRef<string>;
36
35
  activeMenuRow: import("vue").Ref<number>;
37
36
  };
@@ -1,10 +1,10 @@
1
- import { useSlots as V, ref as a, provide as Y, computed as n, onMounted as j, nextTick as q } from "vue";
2
- import { useVirtualList as F, useInfiniteScroll as J } from "@vueuse/core";
3
- import { TableContext as Q } from "./TableContext.js";
4
- import { CHECKBOX_STICKY_COL_WIDTH as Z, CHECKBOX_COL_WIDTH as p, EXPAND_COL_WIDTH as tt, CHECKBOX_COLUMN_ID as et } from "./consts.js";
5
- const rt = (e, d) => {
6
- const x = V(), u = a([]);
7
- Y(Q, {
1
+ import { useSlots as U, ref as a, provide as V, computed as n, onMounted as Y, nextTick as j } from "vue";
2
+ import { useVirtualList as q, useInfiniteScroll as F } from "@vueuse/core";
3
+ import { TableContext as J } from "./TableContext.js";
4
+ import { CHECKBOX_STICKY_COL_WIDTH as Q, CHECKBOX_COL_WIDTH as Z, EXPAND_COL_WIDTH as p, CHECKBOX_COLUMN_ID as tt } from "./consts.js";
5
+ const it = (e, d) => {
6
+ const T = U(), u = a([]);
7
+ V(J, {
8
8
  onClose({ rowIndex: t, cellIndex: o, value: i } = {}) {
9
9
  u.value = [...u.value, t], d("saveRow", {
10
10
  rowIndex: t,
@@ -19,27 +19,27 @@ const rt = (e, d) => {
19
19
  R.value = t;
20
20
  }
21
21
  });
22
- const h = n(() => !!e.selection), T = n(() => e.isSelectionSticky ? Z : p), b = n(() => {
23
- const t = (h.value ? `${T.value}px ` : "") + (v.value ? `${tt}px ` : "");
22
+ const g = n(() => !!e.selection), x = n(() => e.isSelectionSticky ? Q : Z), O = n(() => {
23
+ const t = (g.value ? `${x.value}px ` : "") + (h.value ? `${p}px ` : "");
24
24
  return e.columns.reduce((o, { width: i, colSpan: l }) => {
25
25
  const s = typeof i == "number" ? `${i}px` : i, S = s || `${l || 1}fr`;
26
26
  return `${o} ${S}`;
27
27
  }, t);
28
- }), v = n(() => !!x.expanded), O = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
28
+ }), h = n(() => !!T.expanded), H = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
29
29
  Array(e.columns.length).fill("")
30
30
  )), I = n(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...k.value] : e.rows : e.isLoading ? [
31
31
  ...e.rows.map((o) => o[e.rowDataKey]),
32
32
  ...k.value
33
- ] : e.rows.map((o) => o[e.rowDataKey])), { list: H, containerProps: r, wrapperProps: A, scrollTo: B } = F(
33
+ ] : e.rows.map((o) => o[e.rowDataKey])), { list: b, containerProps: r, wrapperProps: A, scrollTo: B } = q(
34
34
  I,
35
35
  {
36
- itemHeight: v.value ? (t) => m[t] ?? e.rowHeight : e.rowHeight
36
+ itemHeight: h.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
37
37
  }
38
- ), $ = a(null), w = a(0), L = n(() => !!x.search), _ = (t) => {
39
- r.onScroll(), w.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
38
+ ), L = a(null), m = a(0), _ = n(() => !!T.search), $ = (t) => {
39
+ r.onScroll(), m.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
40
40
  };
41
- j(() => {
42
- w.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
41
+ Y(() => {
42
+ m.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
43
43
  r.ref.value?.scrollTo({
44
44
  top: e.defaultScrollPosition,
45
45
  behavior: "smooth"
@@ -47,17 +47,17 @@ const rt = (e, d) => {
47
47
  }, 300);
48
48
  });
49
49
  const E = n(() => {
50
- const [t] = H.value;
50
+ const [t] = b.value;
51
51
  return t && t.index > 0;
52
52
  }), P = n(() => r.style), D = n(() => {
53
53
  const t = {
54
- id: et,
54
+ id: tt,
55
55
  isSticky: e.isSelectionSticky,
56
- width: T.value
56
+ width: x.value
57
57
  };
58
- return h.value ? [t] : [];
58
+ return g.value ? [t] : [];
59
59
  }), f = n(() => [...D.value, ...e.columns]), K = n(() => f.value.reduce((t, o) => (o.isSticky && (t[o.id] = X(o)), t), {}));
60
- J(
60
+ F(
61
61
  r.ref,
62
62
  () => {
63
63
  e.isInfiniteScroll && d("loadMore");
@@ -89,43 +89,42 @@ const rt = (e, d) => {
89
89
  zIndex: 1
90
90
  };
91
91
  }
92
- const g = a([]), m = {}, N = (t) => g.value.includes(t), z = async (t, o) => {
93
- const i = g.value.indexOf(t);
92
+ const v = a([]), w = {}, N = (t) => v.value.includes(t), z = async (t, o) => {
93
+ const i = v.value.indexOf(t);
94
94
  if (i === -1) {
95
- g.value.push(t);
95
+ v.value.push(t);
96
96
  const l = o.target.closest("tr");
97
- await q(), l && (m[t] = l.offsetHeight);
97
+ await j(), l && (w[t] = l.offsetHeight);
98
98
  } else
99
- g.value.splice(i, 1), delete m[t];
100
- }, G = n(() => `${e.rowHeight}px`), U = n(
99
+ v.value.splice(i, 1), delete w[t];
100
+ }, G = n(
101
101
  () => `1 / span ${e.columns.length + 1}`
102
102
  );
103
103
  return {
104
- list: H,
104
+ list: b,
105
105
  containerProps: r,
106
106
  wrapperProps: A,
107
- activeRow: O,
108
- gridColumnTemplate: b,
109
- floatingActionRef: $,
107
+ activeRow: H,
108
+ gridColumnTemplate: O,
109
+ floatingActionRef: L,
110
110
  scrollToTop: M,
111
111
  toggleSortOrder: W,
112
112
  columnsStickyPositions: K,
113
- hasSearchSlot: L,
113
+ hasSearchSlot: _,
114
114
  showBackToTopButton: E,
115
115
  containerStyle: P,
116
- onScroll: _,
116
+ onScroll: $,
117
117
  scrollTo: B,
118
118
  savingRows: u,
119
- floatingActionPosition: w,
120
- hasExpandSlot: v,
121
- hasCheckboxes: h,
119
+ floatingActionPosition: m,
120
+ hasExpandSlot: h,
121
+ hasCheckboxes: g,
122
122
  toggleExpandRow: z,
123
123
  isRowExpanded: N,
124
- cssRowHeight: G,
125
- cssExpandGridCol: U,
124
+ cssExpandGridCol: G,
126
125
  activeMenuRow: R
127
126
  };
128
127
  };
129
128
  export {
130
- rt as tableCommon
129
+ it as tableCommon
131
130
  };
@@ -2,3 +2,4 @@ export declare const CHECKBOX_COLUMN_ID = "__CHECKBOX_COLUMN_ID__";
2
2
  export declare const EXPAND_COL_WIDTH = 46;
3
3
  export declare const CHECKBOX_COL_WIDTH = 46;
4
4
  export declare const CHECKBOX_STICKY_COL_WIDTH = 57;
5
+ export declare const DEFAULT_ROW_HEIGHT = 48;
@@ -1,7 +1,8 @@
1
- const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57;
1
+ const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57, D = 48;
2
2
  export {
3
3
  _ as CHECKBOX_COLUMN_ID,
4
4
  O as CHECKBOX_COL_WIDTH,
5
5
  H as CHECKBOX_STICKY_COL_WIDTH,
6
+ D as DEFAULT_ROW_HEIGHT,
6
7
  C as EXPAND_COL_WIDTH
7
8
  };
@@ -16,6 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  emptyStateTitle?: string;
17
17
  emptyStateSubtitle?: string;
18
18
  isInfiniteScroll?: boolean;
19
+ showTotalsRow?: boolean;
19
20
  infiniteScrollThreshold?: number;
20
21
  rowHeight?: number | ((index: number) => number);
21
22
  loadingRowCount?: number;
@@ -89,6 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
90
  emptyStateTitle?: string;
90
91
  emptyStateSubtitle?: string;
91
92
  isInfiniteScroll?: boolean;
93
+ showTotalsRow?: boolean;
92
94
  infiniteScrollThreshold?: number;
93
95
  rowHeight?: number | ((index: number) => number);
94
96
  loadingRowCount?: number;
@@ -174,6 +176,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
174
176
  isSelectionBordered: boolean;
175
177
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
176
178
  column: Column;
179
+ }) => any>> & Partial<Record<`total-${string}`, (_: {
180
+ column: Column;
177
181
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
178
182
  cell: unknown;
179
183
  isLoading: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import a from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css"; //*');
4
- const s = /* @__PURE__ */ a(o, [["__scopeId", "data-v-86ea5d2a"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0dff3241"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,32 +1,32 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css"; import { defineComponent as ce, useCssVars as re, unref as t, useSlots as ue, computed as m, openBlock as i, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as S, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as B, createCommentVNode as r, isRef as he, Fragment as p, renderList as I, mergeProps as M, createBlock as z } from "vue";
2
- import A from "../../typography/v4/Typography.vue.js";
3
- import ye from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import fe from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import G from "../../checkbox/v4/CheckboxV4.vue.js";
6
- import { TableTestIdModifiers as y } from "../../../testids/index.js";
7
- import { tableCommon as Se } from "../common/Table.common.js";
8
- import ke from "./SortIcon.vue.js";
9
- import me from "./HelpIcon.vue.js";
10
- import ge from "./ExpandRowToggle.vue.js";
11
- import ve from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as be } from "@vueuse/core";
13
- import { CHECKBOX_COLUMN_ID as $e } from "../common/consts.js";
14
- const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = ["data-testid"], Ee = ["data-testid"], Be = { class: "search-wrapper" }, pe = ["data-testid"], Ie = ["data-testid"], Ae = {
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, createElementVNode as h, normalizeStyle as v, normalizeClass as y, renderSlot as c, createVNode as f, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as x, renderList as T, mergeProps as M, createBlock as D } from "vue";
2
+ import w from "../../typography/v4/Typography.vue.js";
3
+ import ke from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import ge from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import Y from "../../checkbox/v4/CheckboxV4.vue.js";
6
+ import { TableTestIdModifiers as S } from "../../../testids/index.js";
7
+ import { tableCommon as me } from "../common/Table.common.js";
8
+ import ve from "./SortIcon.vue.js";
9
+ import be from "./HelpIcon.vue.js";
10
+ import Ce from "./ExpandRowToggle.vue.js";
11
+ import $e from "../../search/v4/SearchV4.vue.js";
12
+ import { useVModel as Re } from "@vueuse/core";
13
+ import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as Te } from "../common/consts.js";
14
+ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"], pe = ["data-testid"], Ie = ["data-testid"], Ae = { class: "search-wrapper" }, Le = ["data-testid"], Pe = ["data-testid"], Me = {
15
15
  key: 1,
16
16
  class: "expand-toggle-cell"
17
- }, He = ["onClick"], Pe = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Ve = {
18
- key: 1,
19
- class: "expand-toggle-cell"
20
- }, Ne = {
17
+ }, Ve = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
18
+ key: 0,
19
+ class: "totals-row"
20
+ }, Oe = ["data-testid"], De = ["onMouseenter", "onClick"], Ke = {
21
21
  key: 2,
22
22
  class: "expanded-row"
23
- }, Fe = {
23
+ }, Ue = {
24
24
  key: 3,
25
25
  class: "floating-row"
26
- }, Oe = { key: 1 }, De = {
26
+ }, ze = { key: 1 }, Ge = {
27
27
  key: 0,
28
28
  class: "table-footer"
29
- }, et = /* @__PURE__ */ ce({
29
+ }, at = /* @__PURE__ */ he({
30
30
  __name: "DataGrid",
31
31
  props: {
32
32
  title: { default: "" },
@@ -35,9 +35,9 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
35
35
  sections: { default: null },
36
36
  sort: { default: null },
37
37
  selection: { default: null },
38
- getRowId: { type: Function, default: (s, k) => k },
39
- getRowKey: { type: Function, default: (s, k) => k },
40
- selectedMatcher: { type: Function, default: (s, k) => s === k },
38
+ getRowId: { type: Function, default: (s, m) => m },
39
+ getRowKey: { type: Function, default: (s, m) => m },
40
+ selectedMatcher: { type: Function, default: (s, m) => s === m },
41
41
  isSticky: { type: Boolean, default: !0 },
42
42
  isStickyHeader: { type: Boolean, default: !1 },
43
43
  isLoading: { type: Boolean, default: !1 },
@@ -45,8 +45,9 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
45
45
  emptyStateTitle: { default: "No data to display" },
46
46
  emptyStateSubtitle: { default: "" },
47
47
  isInfiniteScroll: { type: Boolean, default: !1 },
48
+ showTotalsRow: { type: Boolean },
48
49
  infiniteScrollThreshold: { default: 100 },
49
- rowHeight: { type: [Number, Function], default: 48 },
50
+ rowHeight: { type: [Number, Function], default: xe },
50
51
  loadingRowCount: { default: 3 },
51
52
  defaultScrollPosition: { default: null },
52
53
  testId: { default: "" },
@@ -61,309 +62,347 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
61
62
  isSelectionBordered: { type: Boolean, default: !1 }
62
63
  },
63
64
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
64
- setup(s, { expose: k, emit: f }) {
65
- const l = s;
66
- re((a) => ({
67
- "1d1d1477": s.zIndexBase,
68
- "2f1951ab": t(_),
69
- d450b438: t(N),
70
- "43af326c": t(Z)
65
+ setup(s, { expose: m, emit: k }) {
66
+ const a = s;
67
+ ye((l) => ({
68
+ "35c47222": s.zIndexBase,
69
+ "4f8f6bba": t(ee),
70
+ "731a605c": t(K)
71
71
  }));
72
- const g = ue(), Y = (a) => l.rowCustomClassKey && l.rows[a] ? l.rows[a][l.rowCustomClassKey] : "", {
73
- list: V,
74
- containerProps: Q,
75
- wrapperProps: W,
76
- activeRow: $,
77
- gridColumnTemplate: N,
78
- toggleSortOrder: X,
79
- columnsStickyPositions: H,
80
- hasSearchSlot: j,
81
- containerStyle: q,
82
- onScroll: F,
83
- savingRows: O,
84
- hasExpandSlot: R,
85
- toggleExpandRow: J,
86
- cssRowHeight: Z,
87
- cssExpandGridCol: _,
88
- isRowExpanded: P,
89
- hasCheckboxes: D,
90
- activeMenuRow: ee,
91
- scrollTo: te
92
- } = Se(l, f), K = m(() => !!g.footer), se = m(
93
- () => l.title || g.title || j.value || g["table-header-actions"] || g["table-header-pre-search"]
94
- ), b = be(l, "search", f), ae = m(() => l.selection.length || 0), L = m(() => {
95
- const a = l.rows.map((o, e) => l.getRowId(o, e));
96
- return !!a.length && a.every((o) => C(o));
97
- }), C = (a) => l.selection.findIndex((o) => l.selectedMatcher(a, o)) !== -1, le = (a) => {
98
- C(a) ? (x(
99
- l.selection.filter(
100
- (o) => !l.selectedMatcher(a, o)
72
+ const b = fe(), Q = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
73
+ list: E,
74
+ containerProps: X,
75
+ wrapperProps: j,
76
+ activeRow: H,
77
+ gridColumnTemplate: K,
78
+ toggleSortOrder: q,
79
+ columnsStickyPositions: B,
80
+ hasSearchSlot: J,
81
+ containerStyle: Z,
82
+ onScroll: U,
83
+ savingRows: z,
84
+ hasExpandSlot: p,
85
+ toggleExpandRow: _,
86
+ cssExpandGridCol: ee,
87
+ isRowExpanded: V,
88
+ hasCheckboxes: F,
89
+ activeMenuRow: te,
90
+ scrollTo: se
91
+ } = me(a, k), G = g(() => !!b.footer), le = g(
92
+ () => a.title || b.title || J.value || b["table-header-actions"] || b["table-header-pre-search"]
93
+ ), C = Re(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
94
+ const l = a.rows.map((d, e) => a.getRowId(d, e));
95
+ return !!l.length && l.every((d) => I(d));
96
+ }), I = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, ie = (l) => {
97
+ I(l) ? (A(
98
+ a.selection.filter(
99
+ (d) => !a.selectedMatcher(l, d)
101
100
  )
102
- ), f("selectRow", !1)) : (x([...l.selection, a]), f("selectRow", !0));
103
- }, ie = () => {
104
- if (L.value)
105
- x([]), f("selectAll", !1);
101
+ ), k("selectRow", !1)) : (A([...a.selection, l]), k("selectRow", !0));
102
+ }, oe = () => {
103
+ if (N.value)
104
+ A([]), k("selectAll", !1);
106
105
  else {
107
- const a = l.rows.map((o, e) => l.getRowId(o, e)).filter((o) => !C(o));
108
- x([...l.selection, ...a]), f("selectAll", !0);
106
+ const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !I(d));
107
+ A([...a.selection, ...l]), k("selectAll", !0);
109
108
  }
110
- }, x = (a) => {
111
- f("update:selection", a);
112
- }, de = (a) => !l.isLoading && $.value === a, oe = m(
113
- () => l.emptyStateVariant ?? (b.value ? "no-results" : "no-data")
114
- ), ne = m(
115
- () => l.emptyStateSubtitle ? l.emptyStateSubtitle : b.value ? "Search again with different filters" : void 0
116
- ), U = m(() => ({
109
+ }, A = (l) => {
110
+ k("update:selection", l);
111
+ }, de = (l) => !a.isLoading && H.value === l, ne = g(
112
+ () => a.emptyStateVariant ?? (C.value ? "no-results" : "no-data")
113
+ ), re = g(
114
+ () => a.emptyStateSubtitle ? a.emptyStateSubtitle : C.value ? "Search again with different filters" : void 0
115
+ ), O = g(() => ({
117
116
  class: {
118
- sticky: l.isSelectionSticky,
119
- bordered: l.isSelectionBordered
117
+ sticky: a.isSelectionSticky,
118
+ bordered: a.isSelectionBordered
120
119
  },
121
- style: l.isSelectionSticky ? H.value[$e] : null
122
- }));
123
- return k({
124
- scrollTo: te
125
- }), (a, o) => (i(), d("div", {
120
+ style: a.isSelectionSticky ? B.value[Te] : null
121
+ })), ce = (l) => ({
122
+ sticky: l.isSticky,
123
+ isStickyRight: l.isStickyRight,
124
+ bordered: l.isBordered,
125
+ isTextRight: l.isTextRight
126
+ }), W = g(
127
+ () => a.columns.map((l) => ce(l))
128
+ ), ue = (l) => ({
129
+ minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
130
+ }), L = g(() => E.value.reduce((l, d) => (l[d.index] = ue(d.index), l), {}));
131
+ return m({
132
+ scrollTo: se
133
+ }), (l, d) => (i(), o("div", {
126
134
  class: "table-container",
127
- "data-testid": `${s.testId}-${t(y).CONTAINER}`,
128
- onMouseleave: o[3] || (o[3] = (e) => $.value = null)
135
+ "data-testid": `${s.testId}-${t(S).CONTAINER}`,
136
+ onMouseleave: d[3] || (d[3] = (e) => H.value = null)
129
137
  }, [
130
- u("table", {
131
- ref: t(Q).ref,
132
- style: T(t(q)),
133
- class: S({
134
- hasFooter: t(K)
138
+ h("table", {
139
+ ref: t(X).ref,
140
+ style: v(t(Z)),
141
+ class: y({
142
+ hasFooter: t(G)
135
143
  }),
136
- "data-testid": `${s.testId}-${t(y).TABLE}`,
137
- onScrollPassive: o[2] || (o[2] = //@ts-ignore
138
- (...e) => t(F) && t(F)(...e))
144
+ "data-testid": `${s.testId}-${t(S).TABLE}`,
145
+ onScrollPassive: d[2] || (d[2] = //@ts-ignore
146
+ (...e) => t(U) && t(U)(...e))
139
147
  }, [
140
- t(se) ? (i(), d("div", {
148
+ t(le) ? (i(), o("div", {
141
149
  key: 0,
142
- class: S(["table-header", { isStickyHeader: s.isStickyHeader }]),
143
- "data-testid": `${s.testId}-${t(y).HEADER}`
150
+ class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
151
+ "data-testid": `${s.testId}-${t(S).HEADER}`
144
152
  }, [
145
- u("div", {
153
+ h("div", {
146
154
  class: "table-title",
147
- "data-testid": `${s.testId}-${t(y).TITLE}`
155
+ "data-testid": `${s.testId}-${t(S).TITLE}`
148
156
  }, [
149
- c(a.$slots, "title", {}, () => [
150
- h(t(A), { variant: "h3" }, {
151
- default: w(() => [
152
- E(B(s.title), 1)
157
+ c(l.$slots, "title", {}, () => [
158
+ f(t(w), { variant: "h3" }, {
159
+ default: $(() => [
160
+ R(P(s.title), 1)
153
161
  ]),
154
162
  _: 1
155
163
  })
156
164
  ])
157
- ], 8, Te),
158
- t(g)["table-header-pre-search"] ? (i(), d("div", {
165
+ ], 8, Be),
166
+ t(b)["table-header-pre-search"] ? (i(), o("div", {
159
167
  key: 0,
160
168
  class: "table-header-pre-search-content",
161
- "data-testid": `${s.testId}-${t(y).PRE_SEARCH_HEADER}`
169
+ "data-testid": `${s.testId}-${t(S).PRE_SEARCH_HEADER}`
162
170
  }, [
163
- c(a.$slots, "table-header-pre-search")
164
- ], 8, we)) : r("", !0),
165
- u("div", {
171
+ c(l.$slots, "table-header-pre-search")
172
+ ], 8, pe)) : n("", !0),
173
+ h("div", {
166
174
  class: "table-header-right",
167
- "data-testid": `${s.testId}-${t(y).HEADER_RIGHT}`
175
+ "data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
168
176
  }, [
169
- s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
170
- u("div", Be, [
171
- h(t(ve), {
172
- modelValue: t(b),
173
- "onUpdate:modelValue": o[0] || (o[0] = (e) => he(b) ? b.value = e : null),
177
+ s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
178
+ h("div", Ae, [
179
+ f(t($e), {
180
+ modelValue: t(C),
181
+ "onUpdate:modelValue": d[0] || (d[0] = (e) => Se(C) ? C.value = e : null),
174
182
  placeholder: s.searchPlaceholder,
175
183
  "auto-focus": s.searchAutoFocus,
176
184
  "test-id": s.testId,
177
- onOnClear: o[1] || (o[1] = (e) => f("onClearSearch"))
185
+ onOnClear: d[1] || (d[1] = (e) => k("onClearSearch"))
178
186
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
179
187
  ])
180
- ]) : r("", !0)
181
- ], 8, Ee),
182
- t(g)["table-header-actions"] ? (i(), d("div", {
188
+ ]) : n("", !0)
189
+ ], 8, Ie),
190
+ t(b)["table-header-actions"] ? (i(), o("div", {
183
191
  key: 1,
184
192
  class: "table-header-actions",
185
- "data-testid": `${s.testId}-${t(y).ACTIONS}`
193
+ "data-testid": `${s.testId}-${t(S).ACTIONS}`
186
194
  }, [
187
- c(a.$slots, "table-header-actions")
188
- ], 8, pe)) : r("", !0)
189
- ], 10, xe)) : r("", !0),
190
- u("thead", {
191
- class: S({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
195
+ c(l.$slots, "table-header-actions")
196
+ ], 8, Le)) : n("", !0)
197
+ ], 10, He)) : n("", !0),
198
+ h("thead", {
199
+ class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
192
200
  }, [
193
- u("div", {
201
+ h("div", {
194
202
  class: "sections",
195
- "data-testid": `${s.testId}-${t(y).SECTIONS}`
203
+ "data-testid": `${s.testId}-${t(S).SECTIONS}`
196
204
  }, [
197
- (i(!0), d(p, null, I(s.sections, (e) => (i(), d("div", {
205
+ (i(!0), o(x, null, T(s.sections, (e) => (i(), o("div", {
198
206
  key: e.id,
199
- class: S(["section-container", { sticky: e.isSticky }])
207
+ class: y(["section-container", { sticky: e.isSticky }])
200
208
  }, [
201
- c(a.$slots, `section-${e.id}`, {}, () => [
202
- u("div", {
203
- style: T({ width: e.width + "px" }),
204
- class: S({ section: !0 })
209
+ c(l.$slots, `section-${e.id}`, {}, () => [
210
+ h("div", {
211
+ style: v({ width: e.width + "px" }),
212
+ class: y({ section: !0 })
205
213
  }, [
206
- h(t(A), { variant: "body2" }, {
207
- default: w(() => [
208
- E(B(e.title), 1)
214
+ f(t(w), { variant: "body2" }, {
215
+ default: $(() => [
216
+ R(P(e.title), 1)
209
217
  ]),
210
218
  _: 2
211
219
  }, 1024)
212
220
  ], 4)
213
221
  ])
214
222
  ], 2))), 128))
215
- ], 8, Ie),
216
- u("tr", null, [
217
- t(D) ? (i(), d("th", M({
223
+ ], 8, Pe),
224
+ h("tr", null, [
225
+ t(F) ? (i(), o("th", M({
218
226
  key: 0,
219
227
  class: "checkbox-cell"
220
- }, t(U)), [
221
- c(a.$slots, "select-all-checkbox", {}, () => [
222
- h(t(G), {
228
+ }, t(O)), [
229
+ c(l.$slots, "select-all-checkbox", {}, () => [
230
+ f(t(Y), {
223
231
  disabled: s.isLoading,
224
- "is-checked": t(L),
225
- "is-indeterminate": !t(L) && t(ae) > 0,
226
- "onUpdate:isChecked": ie
232
+ "is-checked": t(N),
233
+ "is-indeterminate": !t(N) && t(ae) > 0,
234
+ "onUpdate:isChecked": oe
227
235
  }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
228
236
  ])
229
- ], 16)) : r("", !0),
230
- t(R) ? (i(), d("th", Ae)) : r("", !0),
231
- (i(!0), d(p, null, I(s.columns, (e) => (i(), d("th", {
237
+ ], 16)) : n("", !0),
238
+ t(p) ? (i(), o("th", Me)) : n("", !0),
239
+ (i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("th", {
232
240
  key: e.id,
233
- class: S({
234
- sticky: e.isSticky,
235
- isStickyRight: e.isStickyRight,
236
- bordered: e.isBordered,
237
- isTextRight: e.isTextRight,
241
+ class: y({
242
+ ...t(W)[u],
238
243
  isSortable: e.isSortable,
239
244
  [`column-${e.id}`]: !0
240
245
  }),
241
- style: T(e.isSticky ? t(H)[e.id] : null),
242
- onClick: (v) => e.isSortable ? t(X)(e) : null
246
+ style: v(e.isSticky ? t(B)[e.id] : null),
247
+ onClick: (r) => e.isSortable ? t(q)(e) : null
243
248
  }, [
244
- u("div", Pe, [
245
- c(a.$slots, `header-${e.id}`, { column: e }, () => [
246
- h(t(A), { variant: "tableLabel" }, {
247
- default: w(() => [
248
- E(B(e.title), 1)
249
+ h("div", Fe, [
250
+ c(l.$slots, `header-${e.id}`, { column: e }, () => [
251
+ f(t(w), { variant: "tableLabel" }, {
252
+ default: $(() => [
253
+ R(P(e.title), 1)
249
254
  ]),
250
255
  _: 2
251
256
  }, 1024)
252
257
  ]),
253
- e.helpText ? (i(), z(me, {
258
+ e.helpText ? (i(), D(be, {
254
259
  key: 0,
255
260
  "hover-help-text": e.helpText,
256
261
  "hover-help-text-placement": e.helpTextPlacement
257
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
258
- e.isSortable && e.id === s.sort?.sortBy ? (i(), z(ke, {
262
+ }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : n("", !0),
263
+ e.isSortable && e.id === s.sort?.sortBy ? (i(), D(ve, {
259
264
  key: 1,
260
265
  "sort-order": s.sort.sortOrder
261
- }, null, 8, ["sort-order"])) : r("", !0)
266
+ }, null, 8, ["sort-order"])) : n("", !0)
267
+ ])
268
+ ], 14, Ve))), 128))
269
+ ]),
270
+ s.showTotalsRow && t(E).length > 0 ? (i(), o("tr", Ne, [
271
+ t(F) ? (i(), o("td", M({
272
+ key: 0,
273
+ class: "bg"
274
+ }, t(O)), null, 16)) : n("", !0),
275
+ (i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("td", {
276
+ key: e.id,
277
+ class: y({
278
+ ...t(W)[u],
279
+ [`total-${e.id}`]: !0
280
+ }),
281
+ style: v(e.isSticky ? t(B)[e.id] : null)
282
+ }, [
283
+ c(l.$slots, `total-${e.id}`, { column: e }, () => [
284
+ u === 0 ? (i(), D(t(w), {
285
+ key: 0,
286
+ variant: "h6"
287
+ }, {
288
+ default: $(() => [
289
+ R("Totals")
290
+ ]),
291
+ _: 1
292
+ })) : n("", !0)
262
293
  ])
263
- ], 14, He))), 128))
264
- ])
294
+ ], 6))), 128))
295
+ ])) : n("", !0)
265
296
  ], 2),
266
- u("tbody", null, [
267
- t(V).length > 0 ? (i(), d("div", M({
297
+ h("tbody", null, [
298
+ t(E).length > 0 ? (i(), o("div", M({
268
299
  key: 0,
269
300
  class: "table-body-wrapper",
270
- "data-testid": `${s.testId}-${t(y).BODY_WRAPPER}`
271
- }, t(W)), [
272
- (i(!0), d(p, null, I(t(V), (e) => (i(), d("tr", {
301
+ "data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
302
+ }, t(j)), [
303
+ (i(!0), o(x, null, T(t(E), (e) => (i(), o("tr", {
273
304
  key: s.getRowKey(e.data, e.index),
274
- class: S(["table-row", {
275
- loading: s.isLoading || s.isLoading && !e.data || t(O).includes(e.index),
276
- active: t($) === e.index,
277
- activeMenu: t(ee) === e.index,
278
- expanded: t(R) && t(P)(e.index),
279
- [Y(e.index)]: !0
305
+ class: y(["table-row", {
306
+ loading: s.isLoading || s.isLoading && !e.data || t(z).includes(e.index),
307
+ active: t(H) === e.index,
308
+ activeMenu: t(te) === e.index,
309
+ expanded: t(p) && t(V)(e.index),
310
+ [Q(e.index)]: !0
280
311
  }]),
281
- onMouseenter: (v) => $.value = e.index,
282
- onClick: (v) => f("clickRow", e.index)
312
+ style: v(t(L)[e.index]),
313
+ onMouseenter: (u) => H.value = e.index,
314
+ onClick: (u) => k("clickRow", e.index)
283
315
  }, [
284
- t(D) ? (i(), d("td", M({
316
+ t(F) ? (i(), o("td", M({
285
317
  key: 0,
286
318
  class: "checkbox-cell"
287
- }, t(U)), [
288
- h(t(G), {
289
- "is-checked": C(s.getRowId(e.data, e.index)),
290
- "onUpdate:isChecked": (v) => le(s.getRowId(e.data, e.index))
319
+ }, t(O), {
320
+ style: t(L)[e.index]
321
+ }), [
322
+ f(t(Y), {
323
+ "is-checked": I(s.getRowId(e.data, e.index)),
324
+ "onUpdate:isChecked": (u) => ie(s.getRowId(e.data, e.index))
291
325
  }, null, 8, ["is-checked", "onUpdate:isChecked"])
292
- ], 16)) : r("", !0),
293
- t(R) ? (i(), d("td", Ve, [
294
- h(ge, {
295
- expanded: t(P)(e.index),
296
- onClick: (v) => t(J)(e.index, v)
326
+ ], 16)) : n("", !0),
327
+ t(p) ? (i(), o("td", {
328
+ key: 1,
329
+ class: "expand-toggle-cell",
330
+ style: v(t(L)[e.index])
331
+ }, [
332
+ f(Ce, {
333
+ expanded: t(V)(e.index),
334
+ onClick: (u) => t(_)(e.index, u)
297
335
  }, null, 8, ["expanded", "onClick"])
298
- ])) : r("", !0),
299
- (i(!0), d(p, null, I(s.columns, (v, n) => (i(), d("td", {
300
- key: n,
301
- class: S({
302
- sticky: s.columns[n].isSticky,
303
- isStickyRight: s.columns[n].isStickyRight,
304
- bordered: s.columns[n].isBordered,
305
- isTextRight: s.columns[n].isTextRight,
306
- [`column-${s.columns[n].id}`]: !0
336
+ ], 4)) : n("", !0),
337
+ (i(!0), o(x, null, T(s.columns, (u, r) => (i(), o("td", {
338
+ key: r,
339
+ class: y({
340
+ sticky: s.columns[r].isSticky,
341
+ isStickyRight: s.columns[r].isStickyRight,
342
+ bordered: s.columns[r].isBordered,
343
+ isTextRight: s.columns[r].isTextRight,
344
+ [`column-${s.columns[r].id}`]: !0
307
345
  }),
308
- style: T(
309
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
310
- )
346
+ style: v([
347
+ s.columns[r].isSticky ? t(B)[s.columns[r].id] : null,
348
+ t(L)[e.index]
349
+ ])
311
350
  }, [
312
- !s.isLoading || s.isLoading && e.data[n] ? (i(), d("div", {
351
+ !s.isLoading || s.isLoading && e.data[r] ? (i(), o("div", {
313
352
  key: 0,
314
- class: S(["table-cell", { last: n === e.data.length - 1 }])
353
+ class: y(["table-cell", { last: r === e.data.length - 1 }])
315
354
  }, [
316
- c(a.$slots, `cell-${s.columns[n].id}`, {
317
- cell: e.data[n],
318
- isLoading: t(O).includes(e.index),
319
- cellIndex: n,
355
+ c(l.$slots, `cell-${s.columns[r].id}`, {
356
+ cell: e.data[r],
357
+ isLoading: t(z).includes(e.index),
358
+ cellIndex: r,
320
359
  row: e,
321
360
  rowIndex: e.index
322
361
  }, () => [
323
- h(t(A), { variant: "body1" }, {
324
- default: w(() => [
325
- E(B(e.data[n]), 1)
362
+ f(t(w), { variant: "body1" }, {
363
+ default: $(() => [
364
+ R(P(e.data[r]), 1)
326
365
  ]),
327
366
  _: 2
328
367
  }, 1024)
329
368
  ])
330
- ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
331
- h(t(ye), { round: "" })
369
+ ], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
370
+ f(t(ke), { round: "" })
332
371
  ])
333
372
  ], 6))), 128)),
334
- t(R) && t(P)(e.index) ? (i(), d("div", Ne, [
335
- c(a.$slots, "expanded", {
373
+ t(p) && t(V)(e.index) ? (i(), o("div", Ke, [
374
+ c(l.$slots, "expanded", {
336
375
  row: e,
337
- gridColumnTemplate: t(N)
376
+ gridColumnTemplate: t(K)
338
377
  })
339
- ])) : r("", !0),
340
- de(e.index) ? (i(), d("div", Fe, [
341
- c(a.$slots, "floating-row", {
378
+ ])) : n("", !0),
379
+ de(e.index) ? (i(), o("div", Ue, [
380
+ c(l.$slots, "floating-row", {
342
381
  row: e,
343
382
  rowIndex: e.index
344
383
  })
345
- ])) : r("", !0)
346
- ], 42, Me))), 128))
347
- ], 16, Le)) : (i(), d("div", Oe, [
348
- c(a.$slots, "empty-state", {}, () => [
349
- h(t(fe), {
384
+ ])) : n("", !0)
385
+ ], 46, De))), 128))
386
+ ], 16, Oe)) : (i(), o("div", ze, [
387
+ c(l.$slots, "empty-state", {}, () => [
388
+ f(t(ge), {
350
389
  class: "empty-state",
351
390
  title: s.emptyStateTitle,
352
- subtitle: t(ne),
353
- variant: t(oe),
391
+ subtitle: t(re),
392
+ variant: t(ne),
354
393
  "icon-name": "file-search",
355
- "test-id": `${s.testId}-${t(y).EMPTY_STATE}`
394
+ "test-id": `${s.testId}-${t(S).EMPTY_STATE}`
356
395
  }, null, 8, ["title", "subtitle", "variant", "test-id"])
357
396
  ])
358
397
  ]))
359
398
  ])
360
- ], 46, Ce),
361
- t(K) ? (i(), d("div", De, [
362
- c(a.$slots, "footer")
363
- ])) : r("", !0)
364
- ], 40, Re));
399
+ ], 46, Ee),
400
+ t(G) ? (i(), o("div", Ge, [
401
+ c(l.$slots, "footer")
402
+ ])) : n("", !0)
403
+ ], 40, we));
365
404
  }
366
405
  });
367
406
  export {
368
- et as default
407
+ at as default
369
408
  };
@@ -140,6 +140,9 @@ declare const DataGridTypes: () => (({
140
140
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
141
141
  default: any;
142
142
  };
143
+ showTotalsRow: {
144
+ type: import("vue").PropType<boolean>;
145
+ };
143
146
  rowCustomClassKey: {
144
147
  type: import("vue").PropType<string>;
145
148
  default: string;
@@ -286,6 +289,9 @@ declare const DataGridTypes: () => (({
286
289
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
287
290
  default: any;
288
291
  };
292
+ showTotalsRow: {
293
+ type: import("vue").PropType<boolean>;
294
+ };
289
295
  rowCustomClassKey: {
290
296
  type: import("vue").PropType<string>;
291
297
  default: string;
@@ -480,6 +486,9 @@ declare const DataGridTypes: () => (({
480
486
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
481
487
  default: any;
482
488
  };
489
+ showTotalsRow: {
490
+ type: import("vue").PropType<boolean>;
491
+ };
483
492
  rowCustomClassKey: {
484
493
  type: import("vue").PropType<string>;
485
494
  default: string;
@@ -618,6 +627,9 @@ declare const DataGridTypes: () => (({
618
627
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
619
628
  default: any;
620
629
  };
630
+ showTotalsRow: {
631
+ type: import("vue").PropType<boolean>;
632
+ };
621
633
  rowCustomClassKey: {
622
634
  type: import("vue").PropType<string>;
623
635
  default: string;
@@ -690,6 +702,8 @@ declare const DataGridTypes: () => (({
690
702
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
691
703
  $slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
692
704
  column: import("../common/Table.types").Column;
705
+ }) => any>> & Partial<Record<`total-${string}`, (_: {
706
+ column: import("../common/Table.types").Column;
693
707
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
694
708
  cell: unknown;
695
709
  isLoading: boolean;
@@ -11,3 +11,5 @@ export declare const exampleObjectRows: {
11
11
  rowData: string[];
12
12
  customClass: string;
13
13
  }[];
14
+ export declare const exampleNumbersRows: string[][];
15
+ export declare const exampleNumbersRowsExtra: string[][];
package/index.d.ts CHANGED
@@ -5901,6 +5901,9 @@ declare const _default: {
5901
5901
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
5902
5902
  default: any;
5903
5903
  };
5904
+ showTotalsRow: {
5905
+ type: import("vue").PropType<boolean>;
5906
+ };
5904
5907
  rowCustomClassKey: {
5905
5908
  type: import("vue").PropType<string>;
5906
5909
  default: string;
@@ -6047,6 +6050,9 @@ declare const _default: {
6047
6050
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
6048
6051
  default: any;
6049
6052
  };
6053
+ showTotalsRow: {
6054
+ type: import("vue").PropType<boolean>;
6055
+ };
6050
6056
  rowCustomClassKey: {
6051
6057
  type: import("vue").PropType<string>;
6052
6058
  default: string;
@@ -6241,6 +6247,9 @@ declare const _default: {
6241
6247
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
6242
6248
  default: any;
6243
6249
  };
6250
+ showTotalsRow: {
6251
+ type: import("vue").PropType<boolean>;
6252
+ };
6244
6253
  rowCustomClassKey: {
6245
6254
  type: import("vue").PropType<string>;
6246
6255
  default: string;
@@ -6379,6 +6388,9 @@ declare const _default: {
6379
6388
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
6380
6389
  default: any;
6381
6390
  };
6391
+ showTotalsRow: {
6392
+ type: import("vue").PropType<boolean>;
6393
+ };
6382
6394
  rowCustomClassKey: {
6383
6395
  type: import("vue").PropType<string>;
6384
6396
  default: string;
@@ -6451,6 +6463,8 @@ declare const _default: {
6451
6463
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
6452
6464
  $slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
6453
6465
  column: tableV3.Column;
6466
+ }) => any>> & Partial<Record<`total-${string}`, (_: {
6467
+ column: tableV3.Column;
6454
6468
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
6455
6469
  cell: unknown;
6456
6470
  isLoading: boolean;
@@ -6709,6 +6723,9 @@ declare const _default: {
6709
6723
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
6710
6724
  default: any;
6711
6725
  };
6726
+ showTotalsRow: {
6727
+ type: import("vue").PropType<boolean>;
6728
+ };
6712
6729
  rowCustomClassKey: {
6713
6730
  type: import("vue").PropType<string>;
6714
6731
  default: string;
@@ -6855,6 +6872,9 @@ declare const _default: {
6855
6872
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
6856
6873
  default: any;
6857
6874
  };
6875
+ showTotalsRow: {
6876
+ type: import("vue").PropType<boolean>;
6877
+ };
6858
6878
  rowCustomClassKey: {
6859
6879
  type: import("vue").PropType<string>;
6860
6880
  default: string;
@@ -7049,6 +7069,9 @@ declare const _default: {
7049
7069
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
7050
7070
  default: any;
7051
7071
  };
7072
+ showTotalsRow: {
7073
+ type: import("vue").PropType<boolean>;
7074
+ };
7052
7075
  rowCustomClassKey: {
7053
7076
  type: import("vue").PropType<string>;
7054
7077
  default: string;
@@ -7187,6 +7210,9 @@ declare const _default: {
7187
7210
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
7188
7211
  default: any;
7189
7212
  };
7213
+ showTotalsRow: {
7214
+ type: import("vue").PropType<boolean>;
7215
+ };
7190
7216
  rowCustomClassKey: {
7191
7217
  type: import("vue").PropType<string>;
7192
7218
  default: string;
@@ -7259,6 +7285,8 @@ declare const _default: {
7259
7285
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
7260
7286
  $slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
7261
7287
  column: tableV3.Column;
7288
+ }) => any>> & Partial<Record<`total-${string}`, (_: {
7289
+ column: tableV3.Column;
7262
7290
  }) => any>> & Partial<Record<`cell-${string}`, (_: {
7263
7291
  cell: unknown;
7264
7292
  isLoading: boolean;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
1
+ import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-test.70",
3
+ "version": "2.1.12-test.71",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .sticky[data-v-86ea5d2a]{position:sticky}.table-container[data-v-86ea5d2a]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-86ea5d2a]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-86ea5d2a]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-86ea5d2a]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-86ea5d2a]{width:13.75rem}.table-header.isStickyHeader[data-v-86ea5d2a]{z-index:calc(var(--1d1d1477) + 3);top:0}.table-head-container[data-v-86ea5d2a]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-86ea5d2a]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-86ea5d2a]{display:inline-table}.table-header-pre-search-content[data-v-86ea5d2a]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-86ea5d2a]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-86ea5d2a]{position:relative}.table-row.loading[data-v-86ea5d2a]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-86ea5d2a]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-86ea5d2a]{border-bottom:none}.expanded-row[data-v-86ea5d2a]{grid-column:var(--2f1951ab);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-86ea5d2a]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-86ea5d2a]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-86ea5d2a],table th[data-v-86ea5d2a]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-86ea5d2a]:first-of-type,table th[data-v-86ea5d2a]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-86ea5d2a]:last-of-type,table th[data-v-86ea5d2a]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-86ea5d2a],table th.expand-toggle-cell[data-v-86ea5d2a]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-86ea5d2a]{border-bottom:none;z-index:calc(var(--1d1d1477) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-86ea5d2a]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--d450b438)}table>thead>tr>th[data-v-86ea5d2a]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-86ea5d2a]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-86ea5d2a]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-86ea5d2a]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-86ea5d2a]{cursor:pointer}table>thead.sticky[data-v-86ea5d2a]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-86ea5d2a]{z-index:calc(var(--1d1d1477) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-86ea5d2a]{display:block}table>tbody>*>tr[data-v-86ea5d2a]{background-color:var(--background-default);min-height:var(--43af326c);height:auto;display:grid;align-items:center;grid-template-columns:var(--d450b438)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-86ea5d2a]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-86ea5d2a],table>tbody>*>tr.activeMenu>td[data-v-86ea5d2a]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-86ea5d2a]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--43af326c);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-86ea5d2a]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-86ea5d2a]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-86ea5d2a]{justify-content:flex-end;text-align:right}.section-container[data-v-86ea5d2a]{left:0}.sections[data-v-86ea5d2a]{display:flex}.section[data-v-86ea5d2a]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-86ea5d2a]{width:100%}.empty-state[data-v-86ea5d2a]{min-height:250px}.floating-row[data-v-86ea5d2a]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--1d1d1477) + 1)}.floating-row *[data-v-86ea5d2a-s]{pointer-events:auto}