@ironsource/shared-ui 2.1.8-rc.9 → 2.1.8-test.0

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.
@@ -1,15 +1,15 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css"; import { defineComponent as D, useCssVars as H, useSlots as O, computed as G, openBlock as n, createElementBlock as u, createElementVNode as v, normalizeClass as M, unref as s, renderSlot as d, createBlock as C, createCommentVNode as y, createVNode as P, isRef as $, Fragment as U, renderList as h, createSlots as b, withCtx as c } from "vue";
2
- import I 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 F from "./DataGridRowsCounter.vue.js";
4
+ import U from "./DataGridRowsCounter.vue.js";
5
5
  import "./MultipleDataGrid.vue.js";
6
- import Q from "../../search/v4/SearchV4.vue.js";
7
- import { useVModel as j } from "@vueuse/core";
8
- import { TableTestIdModifiers as S } from "../../../testids/index.js";
9
- const p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = ["data-testid"], W = {
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
- }, st = /* @__PURE__ */ D({
12
+ }, ot = /* @__PURE__ */ A({
13
13
  __name: "MultipleDataGrid",
14
14
  props: {
15
15
  tablesSettings: { default: () => [] },
@@ -31,31 +31,31 @@ const p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = ["data-
31
31
  totalText: { default: "total rows" },
32
32
  testId: { default: "" }
33
33
  },
34
- emits: ["update:search", "onScroll", "onClearSearch", "clickRow", "saveRow"],
35
- setup(t, { emit: r }) {
34
+ emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
35
+ setup(t, { emit: c }) {
36
36
  const g = t;
37
- H((e) => ({
38
- "6083f45c": t.zIndexBase
37
+ D((e) => ({
38
+ "5d3fa26e": t.zIndexBase
39
39
  }));
40
- const R = O(), T = G(
40
+ const I = H(), T = O(
41
41
  () => g.isLoading || !g.tablesSettings.flatMap((e) => e.rows).length
42
- ), i = j(g, "search", r), m = (e) => `header-${e.id}`, k = (e) => `cell-${e.id}`, x = (e) => {
43
- r("onScroll", e.target.scrollTop);
44
- }, E = () => r("onClearSearch"), V = (e, l) => r("clickRow", e, l), B = ({ value: e, rowIndex: l, cellIndex: a, confirm: f }, o) => r("saveRow", { value: e, tableIndex: o, rowIndex: l, cellIndex: a, confirm: f });
45
- return (e, l) => (n(), u("div", {
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
47
  onScrollPassive: x
48
48
  }, [
49
- v("div", {
50
- class: M(["table-header-container", { sticky: t.isSticky }]),
51
- "data-testid": `${t.testId}-${s(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
- v("div", {
53
+ w("div", {
54
54
  class: "rows-counter-container",
55
- "data-testid": `${t.testId}-${s(S).TITLE}`
55
+ "data-testid": `${t.testId}-${o(h).TITLE}`
56
56
  }, [
57
- d(e.$slots, "title", {}, () => [
58
- t.isLoading ? y("", !0) : (n(), C(s(F), {
57
+ n(e.$slots, "title", {}, () => [
58
+ t.isLoading ? f("", !0) : (s(), C(o(U), {
59
59
  key: 0,
60
60
  count: t.count,
61
61
  "total-count": t.totalCount,
@@ -65,33 +65,33 @@ const p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = ["data-
65
65
  "test-id": t.testId
66
66
  }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
67
67
  ], !0)
68
- ], 8, q),
69
- v("div", {
68
+ ], 8, p),
69
+ w("div", {
70
70
  class: "table-header-right",
71
- "data-testid": `${t.testId}-${s(S).HEADER_RIGHT}`
71
+ "data-testid": `${t.testId}-${o(h).HEADER_RIGHT}`
72
72
  }, [
73
- t.showSearch ? d(e.$slots, "search", { key: 0 }, () => [
74
- P(s(Q), {
75
- modelValue: s(i),
76
- "onUpdate:modelValue": l[0] || (l[0] = (a) => $(i) ? i.value = a : null),
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
77
  placeholder: t.searchPlaceholder,
78
78
  "test-id": t.testId,
79
- onOnClear: E
79
+ onOnClear: R
80
80
  }, null, 8, ["modelValue", "placeholder", "test-id"])
81
- ], !0) : y("", !0),
82
- s(R)["table-header-actions"] ? (n(), u("div", {
81
+ ], !0) : f("", !0),
82
+ o(I)["table-header-actions"] ? (s(), r("div", {
83
83
  key: 1,
84
84
  class: "table-header-actions",
85
- "data-testid": `${t.testId}-${s(S).ACTIONS}`
85
+ "data-testid": `${t.testId}-${o(h).ACTIONS}`
86
86
  }, [
87
- d(e.$slots, "table-header-actions", {}, void 0, !0)
88
- ], 8, K)) : y("", !0)
89
- ], 8, J)
90
- ], 10, p),
91
- s(T) ? (n(), C(s(I), {
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), {
92
92
  key: 1,
93
- search: s(i),
94
- "onUpdate:search": l[1] || (l[1] = (a) => $(i) ? i.value = a : null),
93
+ search: o(d),
94
+ "onUpdate:search": i[1] || (i[1] = (a) => $(d) ? d.value = a : null),
95
95
  rows: [],
96
96
  columns: t.loadingAndEmptyStatesColumns,
97
97
  "is-loading": t.isLoading,
@@ -101,23 +101,23 @@ const p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = ["data-
101
101
  "empty-state-subtitle": t.emptyStateSubtitle,
102
102
  "test-id": t.testId
103
103
  }, b({
104
- "empty-state": c(() => [
105
- d(e.$slots, "empty-state", {}, void 0, !0)
104
+ "empty-state": u(() => [
105
+ n(e.$slots, "empty-state", {}, void 0, !0)
106
106
  ]),
107
107
  _: 2
108
108
  }, [
109
- h(t.loadingAndEmptyStatesColumns, (a) => ({
109
+ y(t.loadingAndEmptyStatesColumns, (a) => ({
110
110
  name: m(a),
111
- fn: c(() => [
112
- d(e.$slots, `${m(a)}`, { column: a }, void 0, !0)
111
+ fn: u(() => [
112
+ n(e.$slots, `${m(a)}`, { column: a }, void 0, !0)
113
113
  ])
114
114
  }))
115
- ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (n(), u("div", W, [
116
- (n(!0), u(U, null, h(t.tablesSettings, (a, f) => (n(), u("div", {
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", {
117
117
  key: a.testId,
118
118
  class: "table-wrapper"
119
119
  }, [
120
- a.rows.length ? (n(), C(s(I), {
120
+ a.rows.length ? (s(), C(o(v), {
121
121
  key: 0,
122
122
  sections: a.sections,
123
123
  columns: a.columns,
@@ -126,47 +126,46 @@ const p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = ["data-
126
126
  "is-sticky": t.isSticky,
127
127
  "z-index-base": t.zIndexBase,
128
128
  "test-id": a.testId,
129
- onClickRow: (o) => V(o, f),
130
- onSaveRow: (o) => B(o, f)
129
+ onClickRow: (l) => E(l, V)
131
130
  }, b({
132
- "floating-row": c(({ row: o, rowIndex: w }) => [
133
- d(e.$slots, "floating-row", {
134
- row: o,
135
- rowIndex: w
131
+ "floating-row": u(({ row: l, rowIndex: S }) => [
132
+ n(e.$slots, "floating-row", {
133
+ row: l,
134
+ rowIndex: S
136
135
  }, void 0, !0)
137
136
  ]),
138
137
  _: 2
139
138
  }, [
140
- h(a.columns, (o) => ({
141
- name: m(o),
142
- fn: c(() => [
143
- d(e.$slots, `${m(o)}`, { column: o }, void 0, !0)
139
+ y(a.columns, (l) => ({
140
+ name: m(l),
141
+ fn: u(() => [
142
+ n(e.$slots, `${m(l)}`, { column: l }, void 0, !0)
144
143
  ])
145
144
  })),
146
- h(a.columns, (o) => ({
147
- name: k(o),
148
- fn: c(({
149
- cell: w,
150
- rowIndex: L,
151
- isLoading: N,
152
- cellIndex: z,
153
- row: A
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
154
153
  }) => [
155
- d(e.$slots, `${k(o)}`, {
156
- cell: w,
157
- isLoading: N,
158
- cellIndex: z,
159
- row: A,
160
- rowIndex: L
154
+ n(e.$slots, `${k(l)}`, {
155
+ cell: S,
156
+ isLoading: L,
157
+ cellIndex: N,
158
+ row: z,
159
+ rowIndex: B
161
160
  }, void 0, !0)
162
161
  ])
163
162
  }))
164
- ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow", "onSaveRow"])) : y("", !0)
163
+ ]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : f("", !0)
165
164
  ]))), 128))
166
165
  ]))
167
166
  ], 32));
168
167
  }
169
168
  });
170
169
  export {
171
- st as default
170
+ ot as default
172
171
  };
@@ -146,7 +146,12 @@ declare const DataGridTypes: () => (({
146
146
  "onUpdate:search"?: (query: string) => any;
147
147
  onOnScroll?: (event: Event) => any;
148
148
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
149
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
149
+ onSaveRow?: (args_0: {
150
+ value: unknown;
151
+ confirm: () => void;
152
+ rowIndex: number;
153
+ cellIndex: number;
154
+ }) => any;
150
155
  onLoadMore?: () => any;
151
156
  onOnClearSearch?: () => any;
152
157
  "onUpdate:selection"?: (selection: unknown[]) => any;
@@ -164,7 +169,12 @@ declare const DataGridTypes: () => (({
164
169
  }>;
165
170
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
166
171
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
167
- $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "loadMore") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
172
+ $emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: {
173
+ value: unknown;
174
+ confirm: () => void;
175
+ rowIndex: number;
176
+ cellIndex: number;
177
+ }) => void) & ((event: "loadMore") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
168
178
  $el: any;
169
179
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
170
180
  sort: {
@@ -280,7 +290,12 @@ declare const DataGridTypes: () => (({
280
290
  "onUpdate:search"?: (query: string) => any;
281
291
  onOnScroll?: (event: Event) => any;
282
292
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
283
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
293
+ onSaveRow?: (args_0: {
294
+ value: unknown;
295
+ confirm: () => void;
296
+ rowIndex: number;
297
+ cellIndex: number;
298
+ }) => any;
284
299
  onLoadMore?: () => any;
285
300
  onOnClearSearch?: () => any;
286
301
  "onUpdate:selection"?: (selection: unknown[]) => any;
@@ -294,7 +309,12 @@ declare const DataGridTypes: () => (({
294
309
  "update:selection": (selection: unknown[]) => void;
295
310
  onScroll: (event: Event) => void;
296
311
  onClearSearch: () => void;
297
- saveRow: (args_0: import("../common/Table.types").SaveRowEvent) => void;
312
+ saveRow: (args_0: {
313
+ value: unknown;
314
+ confirm: () => void;
315
+ rowIndex: number;
316
+ cellIndex: number;
317
+ }) => void;
298
318
  loadMore: () => void;
299
319
  selectAll: (value: boolean) => void;
300
320
  selectRow: (value: boolean) => void;
@@ -459,7 +479,12 @@ declare const DataGridTypes: () => (({
459
479
  "onUpdate:search"?: (query: string) => any;
460
480
  onOnScroll?: (event: Event) => any;
461
481
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
462
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
482
+ onSaveRow?: (args_0: {
483
+ value: unknown;
484
+ confirm: () => void;
485
+ rowIndex: number;
486
+ cellIndex: number;
487
+ }) => any;
463
488
  onLoadMore?: () => any;
464
489
  onOnClearSearch?: () => any;
465
490
  "onUpdate:selection"?: (selection: unknown[]) => any;
@@ -585,7 +610,12 @@ declare const DataGridTypes: () => (({
585
610
  "onUpdate:search"?: (query: string) => any;
586
611
  onOnScroll?: (event: Event) => any;
587
612
  "onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
588
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
613
+ onSaveRow?: (args_0: {
614
+ value: unknown;
615
+ confirm: () => void;
616
+ rowIndex: number;
617
+ cellIndex: number;
618
+ }) => any;
589
619
  onLoadMore?: () => any;
590
620
  onOnClearSearch?: () => any;
591
621
  "onUpdate:selection"?: (selection: unknown[]) => any;
@@ -599,7 +629,12 @@ declare const DataGridTypes: () => (({
599
629
  "update:selection": (selection: unknown[]) => void;
600
630
  onScroll: (event: Event) => void;
601
631
  onClearSearch: () => void;
602
- saveRow: (args_0: import("../common/Table.types").SaveRowEvent) => void;
632
+ saveRow: (args_0: {
633
+ value: unknown;
634
+ confirm: () => void;
635
+ rowIndex: number;
636
+ cellIndex: number;
637
+ }) => void;
603
638
  loadMore: () => void;
604
639
  selectAll: (value: boolean) => void;
605
640
  selectRow: (value: boolean) => void;
@@ -850,9 +885,6 @@ declare const DataGridTypes: () => (({
850
885
  }>> & {
851
886
  "onUpdate:search"?: (query: string) => any;
852
887
  onOnScroll?: (scrollTop: number) => any;
853
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent & {
854
- tableIndex: number;
855
- }) => any;
856
888
  onOnClearSearch?: () => any;
857
889
  onClickRow?: (rowIndex: number, tableIndex: number) => any;
858
890
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "searchPlaceholder" | "count" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "emptyStateSubtitle" | "emptyStateVariant" | "zIndexBase" | "totalCount" | "displayingText" | "outOfText" | "totalText" | "tablesSettings" | "loadingAndEmptyStatesColumns">;
@@ -867,9 +899,7 @@ declare const DataGridTypes: () => (({
867
899
  }>;
868
900
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
869
901
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
870
- $emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
871
- tableIndex: number;
872
- }) => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
902
+ $emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "update:search", query: string) => void) & ((event: "onClearSearch") => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
873
903
  $el: any;
874
904
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
875
905
  search: {
@@ -949,9 +979,6 @@ declare const DataGridTypes: () => (({
949
979
  }>> & {
950
980
  "onUpdate:search"?: (query: string) => any;
951
981
  onOnScroll?: (scrollTop: number) => any;
952
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent & {
953
- tableIndex: number;
954
- }) => any;
955
982
  onOnClearSearch?: () => any;
956
983
  onClickRow?: (rowIndex: number, tableIndex: number) => any;
957
984
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -959,9 +986,6 @@ declare const DataGridTypes: () => (({
959
986
  onScroll: (scrollTop: number) => void;
960
987
  onClearSearch: () => void;
961
988
  clickRow: (rowIndex: number, tableIndex: number) => void;
962
- saveRow: (args_0: import("../common/Table.types").SaveRowEvent & {
963
- tableIndex: number;
964
- }) => void;
965
989
  }, string, {
966
990
  search: string;
967
991
  testId: string;
@@ -1079,9 +1103,6 @@ declare const DataGridTypes: () => (({
1079
1103
  }>> & {
1080
1104
  "onUpdate:search"?: (query: string) => any;
1081
1105
  onOnScroll?: (scrollTop: number) => any;
1082
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent & {
1083
- tableIndex: number;
1084
- }) => any;
1085
1106
  onOnClearSearch?: () => any;
1086
1107
  onClickRow?: (rowIndex: number, tableIndex: number) => any;
1087
1108
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -1166,9 +1187,6 @@ declare const DataGridTypes: () => (({
1166
1187
  }>> & {
1167
1188
  "onUpdate:search"?: (query: string) => any;
1168
1189
  onOnScroll?: (scrollTop: number) => any;
1169
- onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent & {
1170
- tableIndex: number;
1171
- }) => any;
1172
1190
  onOnClearSearch?: () => any;
1173
1191
  onClickRow?: (rowIndex: number, tableIndex: number) => any;
1174
1192
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1176,9 +1194,6 @@ declare const DataGridTypes: () => (({
1176
1194
  onScroll: (scrollTop: number) => void;
1177
1195
  onClearSearch: () => void;
1178
1196
  clickRow: (rowIndex: number, tableIndex: number) => void;
1179
- saveRow: (args_0: import("../common/Table.types").SaveRowEvent & {
1180
- tableIndex: number;
1181
- }) => void;
1182
1197
  }, string, {
1183
1198
  search: string;
1184
1199
  testId: string;