@ironsource/shared-ui 2.1.7-rc.7 → 2.1.7-rc.9

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
+ .multi-table-container[data-v-1bdca43d]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-1bdca43d]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-1bdca43d]{position:sticky;top:0;z-index:calc(var(--4c643133) + 3)}.multi-table-container[data-v-1bdca43d] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-1bdca43d] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-1bdca43d] thead.sticky{top:62px}
@@ -1,7 +1,7 @@
1
- import e from "./MultipleDataGrid.vue2.js";
2
- /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_efbbc0bc_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-efbbc0bc"]]);
1
+ import o from "./MultipleDataGrid.vue2.js";
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; //*');
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bdca43d"]]);
5
5
  export {
6
- p as default
6
+ d as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_efbbc0bc_lang.css"; import { defineComponent as L, useCssVars as R, computed as V, openBlock as l, createElementBlock as d, createElementVNode as y, normalizeClass as z, unref as o, createBlock as c, createCommentVNode as m, isRef as E, Fragment as $, renderList as g, createSlots as p, withCtx as D, renderSlot as M } from "vue";
2
- import S from "./DataGrid.vue.js";
1
+ import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; import { defineComponent as L, useCssVars as V, computed as E, openBlock as l, createElementBlock as d, createElementVNode as y, normalizeClass as $, unref as o, createBlock as c, createCommentVNode as m, isRef as z, Fragment as D, renderList as g, createSlots as M, withCtx as N, renderSlot as O } from "vue";
2
+ import h from "./DataGrid.vue.js";
3
3
  import "./DataGridMenu.vue.js";
4
- import N from "./DataGridRowsCounter.vue.js";
4
+ import A from "./DataGridRowsCounter.vue.js";
5
5
  import "./MultipleDataGrid.vue.js";
6
- import O from "../../search/v4/SearchV4.vue.js";
7
- import { useVModel as G } from "@vueuse/core";
8
- import { TableTestIdModifiers as P } from "../../../testids/index.js";
9
- const A = ["data-testid"], F = {
6
+ import G from "../../search/v4/SearchV4.vue.js";
7
+ import { useVModel as P } from "@vueuse/core";
8
+ import { TableTestIdModifiers as S } from "../../../testids/index.js";
9
+ const p = ["data-testid"], H = ["data-testid"], F = {
10
10
  key: 0,
11
11
  class: "tables-container"
12
- }, X = /* @__PURE__ */ L({
12
+ }, Y = /* @__PURE__ */ L({
13
13
  __name: "MultipleDataGrid",
14
14
  props: {
15
15
  tablesSettings: { default: () => [] },
@@ -34,45 +34,46 @@ const A = ["data-testid"], F = {
34
34
  emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
35
35
  setup(t, { emit: n }) {
36
36
  const r = t;
37
- R((e) => ({
38
- "3e16946e": t.zIndexBase
37
+ V((e) => ({
38
+ "4c643133": t.zIndexBase
39
39
  }));
40
- const h = V(
40
+ const w = E(
41
41
  () => r.isLoading || !r.tablesSettings.flatMap((e) => e.rows).length
42
- ), u = G(r, "search", n), f = (e) => `cell-${e.id}`, w = (e) => {
42
+ ), u = P(r, "search", n), f = (e) => `cell-${e.id}`, k = (e) => {
43
43
  n("onScroll", e.target.scrollTop);
44
- }, k = () => n("onClearSearch"), x = (e, s) => n("clickRow", e, s);
44
+ }, x = () => n("onClearSearch"), C = (e, s) => n("clickRow", e, s);
45
45
  return (e, s) => (l(), d("div", {
46
46
  class: "multi-table-container",
47
- onScrollPassive: w
47
+ onScrollPassive: k
48
48
  }, [
49
49
  y("div", {
50
- class: z(["table-header-container", { sticky: t.isSticky }])
50
+ class: $(["table-header-container", { sticky: t.isSticky }]),
51
+ "data-testid": `${t.testId}-${o(S).HEADER}`
51
52
  }, [
52
53
  y("div", {
53
54
  class: "rows-counter-container",
54
- "data-testid": `${t.testId}-${o(P).TITLE}`
55
+ "data-testid": `${t.testId}-${o(S).TITLE}`
55
56
  }, [
56
- t.isLoading ? m("", !0) : (l(), c(o(N), {
57
+ t.isLoading ? m("", !0) : (l(), c(o(A), {
57
58
  key: 0,
58
59
  count: t.count,
59
60
  "total-count": t.totalCount,
60
61
  "total-text": t.totalText,
61
62
  "displaying-text": t.displayingText,
62
63
  "out-of-text": t.outOfText,
63
- testid: t.testId
64
- }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "testid"]))
65
- ], 8, A),
66
- t.showSearch ? (l(), c(o(O), {
64
+ "test-id": t.testId
65
+ }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
66
+ ], 8, H),
67
+ t.showSearch ? (l(), c(o(G), {
67
68
  key: 0,
68
69
  modelValue: o(u),
69
- "onUpdate:modelValue": s[0] || (s[0] = (a) => E(u) ? u.value = a : null),
70
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => z(u) ? u.value = a : null),
70
71
  placeholder: t.searchPlaceholder,
71
72
  "test-id": t.testId,
72
- onOnClear: k
73
+ onOnClear: x
73
74
  }, null, 8, ["modelValue", "placeholder", "test-id"])) : m("", !0)
74
- ], 2),
75
- o(h) ? (l(), c(o(S), {
75
+ ], 10, p),
76
+ o(w) ? (l(), c(o(h), {
76
77
  key: 1,
77
78
  "is-loading": t.isLoading,
78
79
  columns: t.loadingAndEmptyStatesColumns,
@@ -83,11 +84,11 @@ const A = ["data-testid"], F = {
83
84
  "empty-state-subtitle": t.emptyStateSubtitle,
84
85
  "loading-row-count": t.loadingRowCount
85
86
  }, null, 8, ["is-loading", "columns", "test-id", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "loading-row-count"])) : (l(), d("div", F, [
86
- (l(!0), d($, null, g(t.tablesSettings, (a, C) => (l(), d("div", {
87
+ (l(!0), d(D, null, g(t.tablesSettings, (a, b) => (l(), d("div", {
87
88
  key: a.testId,
88
89
  class: "table-wrapper"
89
90
  }, [
90
- a.rows.length ? (l(), c(o(S), {
91
+ a.rows.length ? (l(), c(o(h), {
91
92
  key: 0,
92
93
  sections: a.sections,
93
94
  columns: a.columns,
@@ -96,21 +97,21 @@ const A = ["data-testid"], F = {
96
97
  "is-sticky": t.isSticky,
97
98
  "z-index-base": t.zIndexBase,
98
99
  "test-id": a.testId,
99
- onClickRow: (i) => x(i, C)
100
- }, p({ _: 2 }, [
100
+ onClickRow: (i) => C(i, b)
101
+ }, M({ _: 2 }, [
101
102
  g(a.columns, (i) => ({
102
103
  name: f(i),
103
- fn: D(({
104
- cell: b,
104
+ fn: N(({
105
+ cell: I,
105
106
  rowIndex: T,
106
- isLoading: I,
107
- cellIndex: v,
107
+ isLoading: v,
108
+ cellIndex: R,
108
109
  row: B
109
110
  }) => [
110
- M(e.$slots, `${f(i)}`, {
111
- cell: b,
112
- isLoading: I,
113
- cellIndex: v,
111
+ O(e.$slots, `${f(i)}`, {
112
+ cell: I,
113
+ isLoading: v,
114
+ cellIndex: R,
114
115
  row: B,
115
116
  rowIndex: T
116
117
  }, void 0, !0)
@@ -123,5 +124,5 @@ const A = ["data-testid"], F = {
123
124
  }
124
125
  });
125
126
  export {
126
- X as default
127
+ Y as default
127
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.7-rc.7",
3
+ "version": "2.1.7-rc.9",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .multi-table-container[data-v-efbbc0bc]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-efbbc0bc]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-efbbc0bc]{position:sticky;top:0;z-index:calc(var(--3e16946e) + 3)}.multi-table-container[data-v-efbbc0bc] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-efbbc0bc] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-efbbc0bc] thead.sticky{top:62px}