@ironsource/shared-ui 2.1.7-test.3 → 2.1.7-test.5

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