@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.6

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 (49) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  5. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  6. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  7. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  8. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  9. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  10. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  11. package/components/input/v4/TextField.vue.js +3 -3
  12. package/components/input/v4/TextField.vue2.js +1 -1
  13. package/components/sortableList/SortableList.vue.d.ts +25 -0
  14. package/components/sortableList/SortableList.vue.js +4 -4
  15. package/components/sortableList/SortableList.vue2.js +129 -89
  16. package/components/sortableList/index.d.ts +88 -2
  17. package/components/table/common/Table.common.js +71 -68
  18. package/components/table/v3/Table.vue.d.ts +2 -2
  19. package/components/table/v3/index.d.ts +39 -39
  20. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  21. package/components/table/v4/DataGrid.vue.js +4 -4
  22. package/components/table/v4/DataGrid.vue2.js +103 -100
  23. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  24. package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
  25. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  26. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  27. package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
  28. package/components/table/v4/index.d.ts +126 -75
  29. package/components/table/v4/storyUtils.d.ts +4 -0
  30. package/components/table-cells/common/Editable.common.js +37 -26
  31. package/components/table-cells/common/EditableContext.d.ts +1 -0
  32. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  33. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  34. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  35. package/components/table-cells/v4/index.d.ts +20 -1
  36. package/components/tabs/v4/TabsV4.vue.js +4 -4
  37. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  38. package/index.d.ts +546 -234
  39. package/package.json +1 -1
  40. package/utils/formatNumbers.d.ts +4 -0
  41. package/utils/formatNumbers.js +11 -0
  42. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  43. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
  44. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  45. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  46. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  47. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  48. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  49. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
@@ -1,15 +1,15 @@
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";
1
+ import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css"; import { defineComponent as A, useCssVars as D, useSlots as H, computed as O, openBlock as s, createElementBlock as r, createElementVNode as w, normalizeClass as G, unref as o, renderSlot as n, createBlock as C, createCommentVNode as f, createVNode as M, isRef as $, Fragment as P, renderList as y, createSlots as b, withCtx as u } from "vue";
2
+ import v from "./DataGrid.vue.js";
3
3
  import "./DataGridMenu.vue.js";
4
- import A from "./DataGridRowsCounter.vue.js";
4
+ import U from "./DataGridRowsCounter.vue.js";
5
5
  import "./MultipleDataGrid.vue.js";
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 = {
6
+ import F from "../../search/v4/SearchV4.vue.js";
7
+ import { useVModel as Q } from "@vueuse/core";
8
+ import { TableTestIdModifiers as h } from "../../../testids/index.js";
9
+ const j = ["data-testid"], p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = {
10
10
  key: 0,
11
11
  class: "tables-container"
12
- }, Y = /* @__PURE__ */ L({
12
+ }, ot = /* @__PURE__ */ A({
13
13
  __name: "MultipleDataGrid",
14
14
  props: {
15
15
  tablesSettings: { default: () => [] },
@@ -32,63 +32,92 @@ const p = ["data-testid"], H = ["data-testid"], F = {
32
32
  testId: { default: "" }
33
33
  },
34
34
  emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
35
- setup(t, { emit: n }) {
36
- const r = t;
37
- V((e) => ({
38
- "4c643133": t.zIndexBase
35
+ setup(t, { emit: c }) {
36
+ const g = t;
37
+ D((e) => ({
38
+ "5d3fa26e": t.zIndexBase
39
39
  }));
40
- const w = E(
41
- () => r.isLoading || !r.tablesSettings.flatMap((e) => e.rows).length
42
- ), u = P(r, "search", n), f = (e) => `cell-${e.id}`, k = (e) => {
43
- n("onScroll", e.target.scrollTop);
44
- }, x = () => n("onClearSearch"), C = (e, s) => n("clickRow", e, s);
45
- return (e, s) => (l(), d("div", {
40
+ const I = H(), T = O(
41
+ () => g.isLoading || !g.tablesSettings.flatMap((e) => e.rows).length
42
+ ), d = Q(g, "search", c), m = (e) => `header-${e.id}`, k = (e) => `cell-${e.id}`, x = (e) => {
43
+ c("onScroll", e.target.scrollTop);
44
+ }, R = () => c("onClearSearch"), E = (e, i) => c("clickRow", e, i);
45
+ return (e, i) => (s(), r("div", {
46
46
  class: "multi-table-container",
47
- onScrollPassive: k
47
+ onScrollPassive: x
48
48
  }, [
49
- y("div", {
50
- class: $(["table-header-container", { sticky: t.isSticky }]),
51
- "data-testid": `${t.testId}-${o(S).HEADER}`
49
+ w("div", {
50
+ class: G(["table-header-container", { sticky: t.isSticky }]),
51
+ "data-testid": `${t.testId}-${o(h).HEADER}`
52
52
  }, [
53
- y("div", {
53
+ w("div", {
54
54
  class: "rows-counter-container",
55
- "data-testid": `${t.testId}-${o(S).TITLE}`
55
+ "data-testid": `${t.testId}-${o(h).TITLE}`
56
56
  }, [
57
- t.isLoading ? m("", !0) : (l(), c(o(A), {
58
- key: 0,
59
- count: t.count,
60
- "total-count": t.totalCount,
61
- "total-text": t.totalText,
62
- "displaying-text": t.displayingText,
63
- "out-of-text": t.outOfText,
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), {
68
- key: 0,
69
- modelValue: o(u),
70
- "onUpdate:modelValue": s[0] || (s[0] = (a) => z(u) ? u.value = a : null),
71
- placeholder: t.searchPlaceholder,
72
- "test-id": t.testId,
73
- onOnClear: x
74
- }, null, 8, ["modelValue", "placeholder", "test-id"])) : m("", !0)
75
- ], 10, p),
76
- o(w) ? (l(), c(o(h), {
57
+ n(e.$slots, "title", {}, () => [
58
+ t.isLoading ? f("", !0) : (s(), C(o(U), {
59
+ key: 0,
60
+ count: t.count,
61
+ "total-count": t.totalCount,
62
+ "total-text": t.totalText,
63
+ "displaying-text": t.displayingText,
64
+ "out-of-text": t.outOfText,
65
+ "test-id": t.testId
66
+ }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
67
+ ], !0)
68
+ ], 8, p),
69
+ w("div", {
70
+ class: "table-header-right",
71
+ "data-testid": `${t.testId}-${o(h).HEADER_RIGHT}`
72
+ }, [
73
+ t.showSearch ? n(e.$slots, "search", { key: 0 }, () => [
74
+ M(o(F), {
75
+ modelValue: o(d),
76
+ "onUpdate:modelValue": i[0] || (i[0] = (a) => $(d) ? d.value = a : null),
77
+ placeholder: t.searchPlaceholder,
78
+ "test-id": t.testId,
79
+ onOnClear: R
80
+ }, null, 8, ["modelValue", "placeholder", "test-id"])
81
+ ], !0) : f("", !0),
82
+ o(I)["table-header-actions"] ? (s(), r("div", {
83
+ key: 1,
84
+ class: "table-header-actions",
85
+ "data-testid": `${t.testId}-${o(h).ACTIONS}`
86
+ }, [
87
+ n(e.$slots, "table-header-actions", {}, void 0, !0)
88
+ ], 8, J)) : f("", !0)
89
+ ], 8, q)
90
+ ], 10, j),
91
+ o(T) ? (s(), C(o(v), {
77
92
  key: 1,
78
- "is-loading": t.isLoading,
79
- columns: t.loadingAndEmptyStatesColumns,
93
+ search: o(d),
94
+ "onUpdate:search": i[1] || (i[1] = (a) => $(d) ? d.value = a : null),
80
95
  rows: [],
81
- "test-id": t.testId,
96
+ columns: t.loadingAndEmptyStatesColumns,
97
+ "is-loading": t.isLoading,
98
+ "loading-row-count": t.loadingRowCount,
82
99
  "empty-state-variant": t.emptyStateVariant,
83
100
  "empty-state-title": t.emptyStateTitle,
84
101
  "empty-state-subtitle": t.emptyStateSubtitle,
85
- "loading-row-count": t.loadingRowCount
86
- }, null, 8, ["is-loading", "columns", "test-id", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "loading-row-count"])) : (l(), d("div", F, [
87
- (l(!0), d(D, null, g(t.tablesSettings, (a, b) => (l(), d("div", {
102
+ "test-id": t.testId
103
+ }, b({
104
+ "empty-state": u(() => [
105
+ n(e.$slots, "empty-state", {}, void 0, !0)
106
+ ]),
107
+ _: 2
108
+ }, [
109
+ y(t.loadingAndEmptyStatesColumns, (a) => ({
110
+ name: m(a),
111
+ fn: u(() => [
112
+ n(e.$slots, `${m(a)}`, { column: a }, void 0, !0)
113
+ ])
114
+ }))
115
+ ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (s(), r("div", K, [
116
+ (s(!0), r(P, null, y(t.tablesSettings, (a, V) => (s(), r("div", {
88
117
  key: a.testId,
89
118
  class: "table-wrapper"
90
119
  }, [
91
- a.rows.length ? (l(), c(o(h), {
120
+ a.rows.length ? (s(), C(o(v), {
92
121
  key: 0,
93
122
  sections: a.sections,
94
123
  columns: a.columns,
@@ -97,32 +126,46 @@ const p = ["data-testid"], H = ["data-testid"], F = {
97
126
  "is-sticky": t.isSticky,
98
127
  "z-index-base": t.zIndexBase,
99
128
  "test-id": a.testId,
100
- onClickRow: (i) => C(i, b)
101
- }, M({ _: 2 }, [
102
- g(a.columns, (i) => ({
103
- name: f(i),
104
- fn: N(({
105
- cell: I,
106
- rowIndex: T,
107
- isLoading: v,
108
- cellIndex: R,
109
- row: B
129
+ onClickRow: (l) => E(l, V)
130
+ }, b({
131
+ "floating-row": u(({ row: l, rowIndex: S }) => [
132
+ n(e.$slots, "floating-row", {
133
+ row: l,
134
+ rowIndex: S
135
+ }, void 0, !0)
136
+ ]),
137
+ _: 2
138
+ }, [
139
+ y(a.columns, (l) => ({
140
+ name: m(l),
141
+ fn: u(() => [
142
+ n(e.$slots, `${m(l)}`, { column: l }, void 0, !0)
143
+ ])
144
+ })),
145
+ y(a.columns, (l) => ({
146
+ name: k(l),
147
+ fn: u(({
148
+ cell: S,
149
+ rowIndex: B,
150
+ isLoading: L,
151
+ cellIndex: N,
152
+ row: z
110
153
  }) => [
111
- O(e.$slots, `${f(i)}`, {
112
- cell: I,
113
- isLoading: v,
114
- cellIndex: R,
115
- row: B,
116
- rowIndex: T
154
+ n(e.$slots, `${k(l)}`, {
155
+ cell: S,
156
+ isLoading: L,
157
+ cellIndex: N,
158
+ row: z,
159
+ rowIndex: B
117
160
  }, void 0, !0)
118
161
  ])
119
162
  }))
120
- ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : m("", !0)
163
+ ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : f("", !0)
121
164
  ]))), 128))
122
165
  ]))
123
166
  ], 32));
124
167
  }
125
168
  });
126
169
  export {
127
- Y as default
170
+ ot as default
128
171
  };