@ironsource/shared-ui 2.1.12-rc.55 → 2.1.12-rc.57

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,7 +1,7 @@
1
1
  import e from "./DataGridHeader.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css"; //*');
4
- const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-840e700c"]]);
3
+ // import "../../../DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css"; //*');
4
+ const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-0e826456"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,9 +1,10 @@
1
- import "../../../DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css"; import { defineComponent as y, useCssVars as S, useSlots as I, openBlock as r, createElementBlock as i, normalizeClass as b, unref as t, createElementVNode as c, renderSlot as l, createVNode as m, withCtx as v, createTextVNode as E, toDisplayString as C, createCommentVNode as n, isRef as V } from "vue";
1
+ import "../../../DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css"; import { defineComponent as $, useCssVars as I, useSlots as S, openBlock as r, createElementBlock as i, normalizeClass as E, normalizeStyle as b, unref as t, createElementVNode as n, renderSlot as l, createVNode as m, withCtx as v, createTextVNode as A, toDisplayString as C, createCommentVNode as c, isRef as H } from "vue";
2
2
  import { TableTestIdModifiers as s } from "../../../testids/index.js";
3
- import k from "../../typography/v4/Typography.vue.js";
4
- import B from "../../search/v4/SearchV4.vue.js";
5
- import { useVModel as T } from "@vueuse/core";
6
- const A = ["data-testid"], H = ["data-testid"], R = ["data-testid"], D = ["data-testid"], N = { class: "search-wrapper" }, w = ["data-testid"], F = /* @__PURE__ */ y({
3
+ import T from "../../typography/v4/Typography.vue.js";
4
+ import R from "../../search/v4/SearchV4.vue.js";
5
+ import { useVModel as V } from "@vueuse/core";
6
+ import { DATA_GRID_HEADER_HEIGHT as k } from "../common/consts.js";
7
+ const B = ["data-testid"], D = ["data-testid"], p = ["data-testid"], N = ["data-testid"], g = { class: "search-wrapper" }, w = ["data-testid"], O = /* @__PURE__ */ $({
7
8
  __name: "DataGridHeader",
8
9
  props: {
9
10
  title: { default: "" },
@@ -17,66 +18,67 @@ const A = ["data-testid"], H = ["data-testid"], R = ["data-testid"], D = ["data-
17
18
  testId: { default: "" }
18
19
  },
19
20
  emits: ["update:search", "onClearSearch"],
20
- setup(e, { emit: u }) {
21
- const $ = e;
22
- S((a) => ({
23
- c8ef23c8: e.zIndexBase
21
+ setup(e, { emit: h }) {
22
+ const y = e;
23
+ I((a) => ({
24
+ "406e82a6": e.zIndexBase
24
25
  }));
25
- const h = I(), o = T($, "search", u);
26
+ const u = S(), o = V(y, "search", h);
26
27
  return (a, d) => (r(), i("div", {
27
- class: b(["table-header", {
28
+ class: E(["table-header", {
28
29
  isStickyHeader: e.isSticky,
29
30
  "table-header--standalone": e.standalone
30
31
  }]),
32
+ style: b({ height: `${t(k)}px` }),
31
33
  "data-testid": `${e.testId}-${t(s).HEADER}`
32
34
  }, [
33
- c("div", {
35
+ n("div", {
34
36
  class: "table-title",
35
37
  "data-testid": `${e.testId}-${t(s).TITLE}`
36
38
  }, [
37
39
  l(a.$slots, "title", {}, () => [
38
- m(t(k), { variant: "h3" }, {
40
+ m(t(T), { variant: "h3" }, {
39
41
  default: v(() => [
40
- E(C(e.title), 1)
42
+ A(C(e.title), 1)
41
43
  ]),
42
44
  _: 1
43
45
  })
44
46
  ], !0)
45
- ], 8, H),
46
- t(h)["table-header-pre-search"] ? (r(), i("div", {
47
+ ], 8, D),
48
+ t(u)["table-header-pre-search"] ? (r(), i("div", {
47
49
  key: 0,
48
50
  class: "table-header-pre-search-content",
49
51
  "data-testid": `${e.testId}-${t(s).PRE_SEARCH_HEADER}`
50
52
  }, [
51
53
  l(a.$slots, "table-header-pre-search", {}, void 0, !0)
52
- ], 8, R)) : n("", !0),
53
- c("div", {
54
+ ], 8, p)) : c("", !0),
55
+ n("div", {
54
56
  class: "table-header-right",
55
57
  "data-testid": `${e.testId}-${t(s).HEADER_RIGHT}`
56
58
  }, [
57
59
  e.showSearch ? l(a.$slots, "search", { key: 0 }, () => [
58
- c("div", N, [
59
- m(t(B), {
60
+ n("div", g, [
61
+ m(t(R), {
60
62
  modelValue: t(o),
61
- "onUpdate:modelValue": d[0] || (d[0] = (f) => V(o) ? o.value = f : null),
63
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => H(o) ? o.value = f : null),
62
64
  placeholder: e.searchPlaceholder,
63
65
  "auto-focus": e.searchAutoFocus,
64
66
  "test-id": e.testId,
65
- onOnClear: d[1] || (d[1] = (f) => u("onClearSearch"))
67
+ onOnClear: d[1] || (d[1] = (f) => h("onClearSearch"))
66
68
  }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
67
69
  ])
68
- ], !0) : n("", !0)
69
- ], 8, D),
70
- t(h)["table-header-actions"] ? (r(), i("div", {
70
+ ], !0) : c("", !0)
71
+ ], 8, N),
72
+ t(u)["table-header-actions"] ? (r(), i("div", {
71
73
  key: 1,
72
74
  class: "table-header-actions",
73
75
  "data-testid": `${e.testId}-${t(s).ACTIONS}`
74
76
  }, [
75
77
  l(a.$slots, "table-header-actions", {}, void 0, !0)
76
- ], 8, w)) : n("", !0)
77
- ], 10, A));
78
+ ], 8, w)) : c("", !0)
79
+ ], 14, B));
78
80
  }
79
81
  });
80
82
  export {
81
- F as default
83
+ O as default
82
84
  };
@@ -1,14 +1,15 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css"; import { defineComponent as V, useCssVars as E, useSlots as N, computed as G, openBlock as d, createElementBlock as w, createVNode as O, unref as l, isRef as b, createSlots as g, withCtx as n, renderSlot as i, createBlock as S, createCommentVNode as v, Fragment as A, renderList as h } from "vue";
1
+ import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css"; import { defineComponent as V, useCssVars as E, useSlots as N, computed as G, openBlock as d, createElementBlock as w, createVNode as O, unref as l, isRef as b, createSlots as g, withCtx as n, renderSlot as i, createBlock as S, createCommentVNode as v, Fragment as p, renderList as h } from "vue";
2
2
  import R from "./DataGrid.vue.js";
3
3
  import "./DataGridMenu.vue.js";
4
- import F from "./DataGridRowsCounter.vue.js";
5
- import H from "./DataGridHeader.vue.js";
4
+ import A from "./DataGridRowsCounter.vue.js";
5
+ import F from "./DataGridHeader.vue.js";
6
+ import "./DataGridContainer.vue.js";
6
7
  import "./MultipleDataGrid.vue.js";
7
- import { useVModel as M } from "@vueuse/core";
8
- const P = {
8
+ import { useVModel as H } from "@vueuse/core";
9
+ const M = {
9
10
  key: 0,
10
11
  class: "tables-container"
11
- }, X = /* @__PURE__ */ V({
12
+ }, Y = /* @__PURE__ */ V({
12
13
  __name: "MultipleDataGrid",
13
14
  props: {
14
15
  tablesSettings: { default: () => [] },
@@ -42,14 +43,14 @@ const P = {
42
43
  }));
43
44
  const k = N(), x = G(
44
45
  () => f.isLoading || !f.tablesSettings.flatMap((e) => e.rows).length
45
- ), u = M(f, "search", s), y = (e) => `header-${e.id}`, C = (e) => `cell-${e.id}`, $ = (e) => {
46
+ ), u = H(f, "search", s), y = (e) => `header-${e.id}`, C = (e) => `cell-${e.id}`, $ = (e) => {
46
47
  s("onScroll", e.target.scrollTop);
47
48
  }, I = () => s("onClearSearch"), B = (e, r) => s("clickRow", e, r), T = ({ value: e, rowIndex: r, cellIndex: a, confirm: c }, o) => s("saveRow", { value: e, tableIndex: o, rowIndex: r, cellIndex: a, confirm: c });
48
49
  return (e, r) => (d(), w("div", {
49
50
  class: "multi-table-container",
50
51
  onScrollPassive: $
51
52
  }, [
52
- O(l(H), {
53
+ O(l(F), {
53
54
  search: l(u),
54
55
  "onUpdate:search": r[0] || (r[0] = (a) => b(u) ? u.value = a : null),
55
56
  class: "multi-table-header",
@@ -62,7 +63,7 @@ const P = {
62
63
  }, g({
63
64
  title: n(() => [
64
65
  i(e.$slots, "title", {}, () => [
65
- t.isLoading ? v("", !0) : (d(), S(l(F), {
66
+ t.isLoading ? v("", !0) : (d(), S(l(A), {
66
67
  key: 0,
67
68
  count: t.count,
68
69
  "total-count": t.totalCount,
@@ -117,8 +118,8 @@ const P = {
117
118
  i(e.$slots, `${y(a)}`, { column: a }, void 0, !0)
118
119
  ])
119
120
  }))
120
- ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (d(), w("div", P, [
121
- (d(!0), w(A, null, h(t.tablesSettings, (a, c) => (d(), w("div", {
121
+ ]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (d(), w("div", M, [
122
+ (d(!0), w(p, null, h(t.tablesSettings, (a, c) => (d(), w("div", {
122
123
  key: a.testId,
123
124
  class: "table-wrapper"
124
125
  }, [
@@ -178,5 +179,5 @@ const P = {
178
179
  }
179
180
  });
180
181
  export {
181
- X as default
182
+ Y as default
182
183
  };
@@ -2,6 +2,7 @@ import DataGrid from './DataGrid.vue';
2
2
  import DataGridMenu from './DataGridMenu.vue';
3
3
  import DataGridRowsCounter from './DataGridRowsCounter.vue';
4
4
  import DataGridHeader from './DataGridHeader.vue';
5
+ import DataGridContainer from './DataGridContainer.vue';
5
6
  import MultipleDataGrid from './MultipleDataGrid.vue';
6
7
  declare const DataGridTypes: () => (import("vue").DefineComponent<{
7
8
  placement: {
@@ -341,6 +342,53 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
341
342
  search?(_: {}): any;
342
343
  "table-header-actions"?(_: {}): any;
343
344
  };
345
+ })) | ({
346
+ new (...args: any[]): {
347
+ $: import("vue").ComponentInternalInstance;
348
+ $data: {};
349
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
350
+ $attrs: {
351
+ [x: string]: unknown;
352
+ };
353
+ $refs: {
354
+ [x: string]: unknown;
355
+ };
356
+ $slots: Readonly<{
357
+ [name: string]: import("vue").Slot;
358
+ }>;
359
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
360
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
361
+ $emit: (event: string, ...args: any[]) => void;
362
+ $el: any;
363
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
364
+ beforeCreate?: (() => void) | (() => void)[];
365
+ created?: (() => void) | (() => void)[];
366
+ beforeMount?: (() => void) | (() => void)[];
367
+ mounted?: (() => void) | (() => void)[];
368
+ beforeUpdate?: (() => void) | (() => void)[];
369
+ updated?: (() => void) | (() => void)[];
370
+ activated?: (() => void) | (() => void)[];
371
+ deactivated?: (() => void) | (() => void)[];
372
+ beforeDestroy?: (() => void) | (() => void)[];
373
+ beforeUnmount?: (() => void) | (() => void)[];
374
+ destroyed?: (() => void) | (() => void)[];
375
+ unmounted?: (() => void) | (() => void)[];
376
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
377
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
378
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
379
+ };
380
+ $forceUpdate: () => void;
381
+ $nextTick: typeof import("vue").nextTick;
382
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
383
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
384
+ __isFragment?: never;
385
+ __isTeleport?: never;
386
+ __isSuspense?: never;
387
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
388
+ $slots: {
389
+ default?(_: {}): any;
390
+ "side-panel"?(_: {}): any;
391
+ };
344
392
  })) | ({
345
393
  new (...args: any[]): {
346
394
  $: import("vue").ComponentInternalInstance;
@@ -372,6 +420,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
372
420
  rowCustomClassKey: string;
373
421
  rowDataKey: string;
374
422
  helpTooltipVariant: "icon" | "underline";
423
+ useAvailableHeight: boolean;
375
424
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
376
425
  isSelectionSticky: boolean;
377
426
  isSelectionBordered: boolean;
@@ -488,6 +537,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
488
537
  type: import("vue").PropType<"icon" | "underline">;
489
538
  default: string;
490
539
  };
540
+ useAvailableHeight: {
541
+ type: import("vue").PropType<boolean>;
542
+ default: boolean;
543
+ };
491
544
  selectedMatcher: {
492
545
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
493
546
  default: (rowId: any, selectedItem: any) => boolean;
@@ -514,7 +567,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
514
567
  onOnClearSearch?: () => any;
515
568
  onClickRow?: (rowIndex: number) => any;
516
569
  onSelectRow?: (value: boolean) => any;
517
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
570
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
518
571
  $attrs: {
519
572
  [x: string]: unknown;
520
573
  };
@@ -641,6 +694,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
641
694
  type: import("vue").PropType<"icon" | "underline">;
642
695
  default: string;
643
696
  };
697
+ useAvailableHeight: {
698
+ type: import("vue").PropType<boolean>;
699
+ default: boolean;
700
+ };
644
701
  selectedMatcher: {
645
702
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
646
703
  default: (rowId: any, selectedItem: any) => boolean;
@@ -707,6 +764,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
707
764
  rowCustomClassKey: string;
708
765
  rowDataKey: string;
709
766
  helpTooltipVariant: "icon" | "underline";
767
+ useAvailableHeight: boolean;
710
768
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
711
769
  isSelectionSticky: boolean;
712
770
  isSelectionBordered: boolean;
@@ -843,6 +901,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
843
901
  type: import("vue").PropType<"icon" | "underline">;
844
902
  default: string;
845
903
  };
904
+ useAvailableHeight: {
905
+ type: import("vue").PropType<boolean>;
906
+ default: boolean;
907
+ };
846
908
  selectedMatcher: {
847
909
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
848
910
  default: (rowId: any, selectedItem: any) => boolean;
@@ -988,6 +1050,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
988
1050
  type: import("vue").PropType<"icon" | "underline">;
989
1051
  default: string;
990
1052
  };
1053
+ useAvailableHeight: {
1054
+ type: import("vue").PropType<boolean>;
1055
+ default: boolean;
1056
+ };
991
1057
  selectedMatcher: {
992
1058
  type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
993
1059
  default: (rowId: any, selectedItem: any) => boolean;
@@ -1054,6 +1120,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
1054
1120
  rowCustomClassKey: string;
1055
1121
  rowDataKey: string;
1056
1122
  helpTooltipVariant: "icon" | "underline";
1123
+ useAvailableHeight: boolean;
1057
1124
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
1058
1125
  isSelectionSticky: boolean;
1059
1126
  isSelectionBordered: boolean;
@@ -1087,7 +1154,6 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
1087
1154
  }): any;
1088
1155
  "empty-state"?(_: {}): any;
1089
1156
  footer?(_: {}): any;
1090
- "side-panel"?(_: {}): any;
1091
1157
  };
1092
1158
  })) | ({
1093
1159
  new (...args: any[]): {
@@ -1639,4 +1705,4 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
1639
1705
  };
1640
1706
  })))[];
1641
1707
  export type { Column, Sort, MenuItem, TableSettings, } from '../common/Table.types';
1642
- export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes, MultipleDataGrid, DataGridHeader, };
1708
+ export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes, MultipleDataGrid, DataGridHeader, DataGridContainer, };
@@ -2,19 +2,22 @@ import r from "./DataGrid.vue.js";
2
2
  import t from "./DataGridMenu.vue.js";
3
3
  import o from "./DataGridRowsCounter.vue.js";
4
4
  import a from "./DataGridHeader.vue.js";
5
- import i from "./MultipleDataGrid.vue.js";
6
- const G = () => [
5
+ import i from "./DataGridContainer.vue.js";
6
+ import m from "./MultipleDataGrid.vue.js";
7
+ const n = () => [
7
8
  r,
8
9
  t,
9
10
  o,
10
- i,
11
- a
11
+ m,
12
+ a,
13
+ i
12
14
  ];
13
15
  export {
14
16
  r as DataGrid,
17
+ i as DataGridContainer,
15
18
  a as DataGridHeader,
16
19
  t as DataGridMenu,
17
20
  o as DataGridRowsCounter,
18
- G as DataGridTypes,
19
- i as MultipleDataGrid
21
+ n as DataGridTypes,
22
+ m as MultipleDataGrid
20
23
  };