@ironsource/shared-ui 2.1.8-test.0 → 2.1.8-test.1

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