@ironsource/shared-ui 2.1.7-rc.11 → 2.1.7-rc.13

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 (31) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  2. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  3. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  4. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  5. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  6. package/components/input/v4/TextField.vue.js +3 -3
  7. package/components/input/v4/TextField.vue2.js +1 -1
  8. package/components/table/v4/DataGrid.vue.d.ts +4 -0
  9. package/components/table/v4/DataGrid.vue.js +3 -3
  10. package/components/table/v4/DataGrid.vue2.js +130 -122
  11. package/components/table/v4/MultipleDataGrid.vue.d.ts +11 -0
  12. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  13. package/components/table/v4/MultipleDataGrid.vue2.js +114 -87
  14. package/components/table/v4/index.d.ts +15 -0
  15. package/components/table-cells/common/Editable.common.js +37 -26
  16. package/components/table-cells/common/EditableContext.d.ts +1 -0
  17. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  18. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  19. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  20. package/components/table-cells/v4/index.d.ts +20 -1
  21. package/components/tabs/v4/TabsV4.vue.js +4 -4
  22. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  23. package/index.d.ts +70 -2
  24. package/package.json +1 -1
  25. package/DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css +0 -1
  26. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  27. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css +0 -1
  28. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  29. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  30. package/components/table/v4/utils/utils.d.ts +0 -3
  31. package/components/table/v4/utils/utils.js +0 -5
@@ -1,17 +1,15 @@
1
- import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; import { defineComponent as z, useCssVars as D, computed as m, openBlock as l, createElementBlock as c, createElementVNode as g, normalizeClass as M, unref as e, createBlock as u, createCommentVNode as f, isRef as N, Fragment as A, renderList as h, createSlots as O, withCtx as w, renderSlot as k, createVNode as P } from "vue";
2
- import x 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 H from "../../search/v4/SearchV4.vue.js";
7
- import { useVModel as F } from "@vueuse/core";
8
- import Q from "../../emptyState/v4/EmptyStateV4.vue.js";
9
- import { TableTestIdModifiers as y } from "../../../testids/index.js";
10
- import { getEmptyVariant as U, getEmptySubtitle as Y } from "./utils/utils.js";
11
- const j = ["data-testid"], q = ["data-testid"], J = {
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 = {
12
10
  key: 0,
13
11
  class: "tables-container"
14
- }, st = /* @__PURE__ */ z({
12
+ }, ot = /* @__PURE__ */ A({
15
13
  __name: "MultipleDataGrid",
16
14
  props: {
17
15
  tablesSettings: { default: () => [] },
@@ -34,102 +32,131 @@ const j = ["data-testid"], q = ["data-testid"], J = {
34
32
  testId: { default: "" }
35
33
  },
36
34
  emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
37
- setup(t, { emit: i }) {
38
- const s = t;
39
- D((a) => ({
40
- c8ad7474: t.zIndexBase
35
+ setup(t, { emit: c }) {
36
+ const g = t;
37
+ D((e) => ({
38
+ "5d3fa26e": t.zIndexBase
41
39
  }));
42
- const C = m(
43
- () => s.isLoading || !s.tablesSettings.flatMap((a) => a.rows).length
44
- ), n = F(s, "search", i), b = m(
45
- () => U(s.emptyStateVariant, n.value)
46
- ), T = m(
47
- () => Y(s.emptyStateSubtitle, n.value)
48
- ), S = (a) => `cell-${a.id}`, I = (a) => {
49
- i("onScroll", a.target.scrollTop);
50
- }, E = () => i("onClearSearch"), v = (a, d) => i("clickRow", a, d);
51
- return (a, d) => (l(), c("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", {
52
46
  class: "multi-table-container",
53
- onScrollPassive: I
47
+ onScrollPassive: x
54
48
  }, [
55
- g("div", {
56
- class: M(["table-header-container", { sticky: t.isSticky }]),
57
- "data-testid": `${t.testId}-${e(y).HEADER}`
49
+ w("div", {
50
+ class: G(["table-header-container", { sticky: t.isSticky }]),
51
+ "data-testid": `${t.testId}-${o(h).HEADER}`
58
52
  }, [
59
- g("div", {
53
+ w("div", {
60
54
  class: "rows-counter-container",
61
- "data-testid": `${t.testId}-${e(y).TITLE}`
55
+ "data-testid": `${t.testId}-${o(h).TITLE}`
62
56
  }, [
63
- t.isLoading ? f("", !0) : (l(), u(e(G), {
64
- key: 0,
65
- count: t.count,
66
- "total-count": t.totalCount,
67
- "total-text": t.totalText,
68
- "displaying-text": t.displayingText,
69
- "out-of-text": t.outOfText,
70
- "test-id": t.testId
71
- }, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
72
- ], 8, q),
73
- t.showSearch ? (l(), u(e(H), {
74
- key: 0,
75
- modelValue: e(n),
76
- "onUpdate:modelValue": d[0] || (d[0] = (o) => N(n) ? n.value = o : null),
77
- placeholder: t.searchPlaceholder,
78
- "test-id": t.testId,
79
- onOnClear: E
80
- }, null, 8, ["modelValue", "placeholder", "test-id"])) : f("", !0)
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)
81
90
  ], 10, j),
82
- e(C) ? (l(), u(e(x), {
91
+ o(T) ? (s(), C(o(v), {
83
92
  key: 1,
93
+ search: o(d),
94
+ "onUpdate:search": i[1] || (i[1] = (a) => $(d) ? d.value = a : null),
84
95
  rows: [],
85
96
  columns: t.loadingAndEmptyStatesColumns,
86
97
  "is-loading": t.isLoading,
87
98
  "loading-row-count": t.loadingRowCount,
99
+ "empty-state-variant": t.emptyStateVariant,
100
+ "empty-state-title": t.emptyStateTitle,
101
+ "empty-state-subtitle": t.emptyStateSubtitle,
88
102
  "test-id": t.testId
89
- }, {
90
- "empty-state": w(() => [
91
- k(a.$slots, "empty-state", {}, () => [
92
- P(e(Q), {
93
- class: "empty-state",
94
- title: t.emptyStateTitle,
95
- subtitle: e(T),
96
- variant: e(b),
97
- "test-id": `${t.testId}-${e(y).EMPTY_STATE}`
98
- }, null, 8, ["title", "subtitle", "variant", "test-id"])
99
- ], !0)
103
+ }, b({
104
+ "empty-state": u(() => [
105
+ n(e.$slots, "empty-state", {}, void 0, !0)
100
106
  ]),
101
- _: 3
102
- }, 8, ["columns", "is-loading", "loading-row-count", "test-id"])) : (l(), c("div", J, [
103
- (l(!0), c(A, null, h(t.tablesSettings, (o, V) => (l(), c("div", {
104
- key: o.testId,
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", {
117
+ key: a.testId,
105
118
  class: "table-wrapper"
106
119
  }, [
107
- o.rows.length ? (l(), u(e(x), {
120
+ a.rows.length ? (s(), C(o(v), {
108
121
  key: 0,
109
- sections: o.sections,
110
- columns: o.columns,
111
- rows: o.rows,
112
- "row-height": o.rowHeight,
122
+ sections: a.sections,
123
+ columns: a.columns,
124
+ rows: a.rows,
125
+ "row-height": a.rowHeight,
113
126
  "is-sticky": t.isSticky,
114
127
  "z-index-base": t.zIndexBase,
115
- "test-id": o.testId,
116
- onClickRow: (r) => v(r, V)
117
- }, O({ _: 2 }, [
118
- h(o.columns, (r) => ({
119
- name: S(r),
120
- fn: w(({
121
- cell: R,
122
- rowIndex: $,
123
- isLoading: B,
124
- cellIndex: L,
125
- row: p
128
+ "test-id": a.testId,
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
126
153
  }) => [
127
- k(a.$slots, `${S(r)}`, {
128
- cell: R,
129
- isLoading: B,
130
- cellIndex: L,
131
- row: p,
132
- rowIndex: $
154
+ n(e.$slots, `${k(l)}`, {
155
+ cell: S,
156
+ isLoading: L,
157
+ cellIndex: N,
158
+ row: z,
159
+ rowIndex: B
133
160
  }, void 0, !0)
134
161
  ])
135
162
  }))
@@ -140,5 +167,5 @@ const j = ["data-testid"], q = ["data-testid"], J = {
140
167
  }
141
168
  });
142
169
  export {
143
- st as default
170
+ ot as default
144
171
  };
@@ -646,6 +646,10 @@ declare const DataGridTypes: () => (({
646
646
  row: import("@vueuse/core").UseVirtualListItem<import("../common/Table.types").Row>;
647
647
  gridColumnTemplate: any;
648
648
  }): any;
649
+ "floating-row"?(_: {
650
+ row: import("@vueuse/core").UseVirtualListItem<import("../common/Table.types").Row>;
651
+ rowIndex: number;
652
+ }): any;
649
653
  "empty-state"?(_: {}): any;
650
654
  footer?(_: {}): any;
651
655
  };
@@ -1173,12 +1177,23 @@ declare const DataGridTypes: () => (({
1173
1177
  loadingAndEmptyStatesColumns: import("../common/Table.types").Column[];
1174
1178
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
1175
1179
  $slots: Partial<Record<string, (_: {
1180
+ column: import("../common/Table.types").Column;
1181
+ }) => any>> & Partial<Record<string, (_: {
1176
1182
  cell: any;
1177
1183
  isLoading: any;
1178
1184
  cellIndex: any;
1179
1185
  row: any;
1180
1186
  rowIndex: any;
1187
+ }) => any>> & Partial<Record<string, (_: {
1188
+ column: import("../common/Table.types").Column;
1181
1189
  }) => any>> & {
1190
+ title?(_: {}): any;
1191
+ search?(_: {}): any;
1192
+ "table-header-actions"?(_: {}): any;
1193
+ "floating-row"?(_: {
1194
+ row: import("@vueuse/core").UseVirtualListItem<import("../common/Table.types").Row>;
1195
+ rowIndex: number;
1196
+ }): any;
1182
1197
  "empty-state"?(_: {}): any;
1183
1198
  };
1184
1199
  })))[];
@@ -1,39 +1,50 @@
1
- import { ref as a, provide as v } from "vue";
2
- import { useTableContext as s } from "../../table/common/TableContext.js";
3
- import { EditableContext as d } from "./EditableContext.js";
4
- import { onClickOutside as f } from "@vueuse/core";
5
- const g = (e) => {
6
- const l = a(!1), n = a(e.cell), u = a(null), r = s("Editable"), o = a(null);
7
- v(d, {
1
+ import { ref as t, provide as d } from "vue";
2
+ import { useTableContext as f } from "../../table/common/TableContext.js";
3
+ import { EditableContext as C } from "./EditableContext.js";
4
+ import { onClickOutside as m } from "@vueuse/core";
5
+ const k = (e) => {
6
+ const l = t(!1), n = t(e.cell), o = t(e.saveOnClickOutside), i = t(null), r = f("Editable"), a = t(null), v = () => {
7
+ if (e.cell === n.value) {
8
+ l.value = !1;
9
+ return;
10
+ }
11
+ const u = e.validateFunction?.(n.value);
12
+ a.value = u, !u && (r.onClose({
13
+ rowIndex: e.rowIndex,
14
+ cellIndex: e.cellIndex,
15
+ value: n.value
16
+ }), l.value = !1);
17
+ };
18
+ d(C, {
8
19
  focusable: !0,
9
20
  value: n,
10
- error: o,
21
+ error: a,
11
22
  confirmable: !0,
12
- onChange(t) {
13
- n.value = t, o.value = e.validateFunction?.(n.value);
23
+ saveOnClickOutside: o.value,
24
+ onChange(u) {
25
+ n.value = u, a.value = e.validateFunction?.(n.value);
14
26
  },
15
- onClose: () => {
16
- const t = e.validateFunction?.(n.value);
17
- o.value = t, !t && (r.onClose({
18
- rowIndex: e.rowIndex,
19
- cellIndex: e.cellIndex,
20
- value: n.value
21
- }), l.value = !1);
22
- }
27
+ onClose: v
23
28
  });
24
- const i = () => {
29
+ const c = () => {
25
30
  l.value || e.isLoading || (l.value = !l.value);
26
- }, c = () => {
27
- n.value = e.cell, o.value = null;
31
+ }, s = () => {
32
+ n.value = e.cell, a.value = null;
28
33
  };
29
- return f(u, () => {
30
- l.value = !1, c(), r.onClose();
34
+ return m(i, () => {
35
+ if (l.value) {
36
+ if (o.value) {
37
+ v();
38
+ return;
39
+ }
40
+ l.value = !1, s(), r.onClose();
41
+ }
31
42
  }), {
32
- onEdit: i,
33
- target: u,
43
+ onEdit: c,
44
+ target: i,
34
45
  isEditing: l
35
46
  };
36
47
  };
37
48
  export {
38
- g as editableCommon
49
+ k as editableCommon
39
50
  };
@@ -6,6 +6,7 @@ export interface EditableContextProps {
6
6
  error?: Ref<string>;
7
7
  value?: Ref<unknown>;
8
8
  confirmable?: boolean;
9
+ saveOnClickOutside?: boolean;
9
10
  }
10
11
  export declare const EditableContext: InjectionKey<EditableContextProps>;
11
12
  export declare function useEditableContext(): EditableContextProps;
@@ -4,12 +4,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  rowIndex: number;
5
5
  cellIndex: number;
6
6
  type: "input" | "dropdown";
7
+ saveOnClickOutside?: boolean;
7
8
  validateFunction?: (value: unknown) => string | boolean;
8
9
  displayValue?: (option: unknown) => unknown;
9
10
  }>, {
10
11
  cell: string;
11
12
  isLoading: boolean;
12
13
  type: string;
14
+ saveOnClickOutside: boolean;
13
15
  validateFunction: () => false;
14
16
  displayValue: (cell: unknown) => unknown;
15
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -18,17 +20,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
20
  rowIndex: number;
19
21
  cellIndex: number;
20
22
  type: "input" | "dropdown";
23
+ saveOnClickOutside?: boolean;
21
24
  validateFunction?: (value: unknown) => string | boolean;
22
25
  displayValue?: (option: unknown) => unknown;
23
26
  }>, {
24
27
  cell: string;
25
28
  isLoading: boolean;
26
29
  type: string;
30
+ saveOnClickOutside: boolean;
27
31
  validateFunction: () => false;
28
32
  displayValue: (cell: unknown) => unknown;
29
33
  }>>>, {
30
34
  type: "input" | "dropdown";
31
35
  cell: string;
36
+ saveOnClickOutside: boolean;
32
37
  validateFunction: (value: unknown) => string | boolean;
33
38
  isLoading: boolean;
34
39
  displayValue: (option: unknown) => unknown;
@@ -1,7 +1,7 @@
1
- import o from "./EditableV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-31bfb722"]]);
1
+ import e from "./EditableV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e0c047b4"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
- import { editableCommon as x } from "../common/Editable.common.js";
3
- import v from "../../typography/v4/Typography.vue.js";
4
- import w from "../../input/v4/TextField.vue.js";
5
- import C from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
+ import { editableCommon as v } from "../common/Editable.common.js";
3
+ import x from "../../typography/v4/Typography.vue.js";
4
+ import C from "../../input/v4/TextField.vue.js";
5
+ import w from "../../icon/v4/IconV4.vue.js";
6
6
  import "../../icon/v4/IconFlag.vue.js";
7
- const E = { class: "editable-wrapper" }, B = {
7
+ const B = { class: "editable-wrapper" }, E = {
8
8
  key: 1,
9
9
  class: "editable-content"
10
- }, _ = /* @__PURE__ */ m({
10
+ }, S = /* @__PURE__ */ m({
11
11
  __name: "EditableV4",
12
12
  props: {
13
13
  cell: { default: "" },
@@ -15,30 +15,31 @@ const E = { class: "editable-wrapper" }, B = {
15
15
  rowIndex: null,
16
16
  cellIndex: null,
17
17
  type: { default: "input" },
18
+ saveOnClickOutside: { type: Boolean, default: !0 },
18
19
  validateFunction: { type: Function, default: () => !1 },
19
20
  displayValue: { type: Function, default: (e) => e }
20
21
  },
21
22
  setup(e) {
22
- const c = e, { onEdit: n, target: s, isEditing: p } = x(c);
23
+ const s = e, { onEdit: n, target: c, isEditing: u } = v(s);
23
24
  return (l, a) => (o(), i("div", {
24
25
  ref_key: "target",
25
- ref: s,
26
+ ref: c,
26
27
  class: "editable",
27
28
  onClick: a[0] || (a[0] = //@ts-ignore
28
- (...u) => t(n) && t(n)(...u))
29
+ (...p) => t(n) && t(n)(...p))
29
30
  }, [
30
- f("div", E, [
31
- t(p) ? r(l.$slots, "input", { key: 0 }, () => [
32
- d(t(w))
33
- ], !0) : (o(), i("div", B, [
31
+ f("div", B, [
32
+ t(u) ? r(l.$slots, "input", { key: 0 }, () => [
33
+ d(t(C))
34
+ ], !0) : (o(), i("div", E, [
34
35
  r(l.$slots, "content", {}, () => [
35
- d(t(v), { variant: "body1" }, {
36
+ d(t(x), { variant: "body1" }, {
36
37
  default: y(() => [
37
38
  k(V(e.displayValue(e.cell)), 1)
38
39
  ]),
39
40
  _: 1
40
41
  }),
41
- e.type === "dropdown" ? (o(), b(t(C), {
42
+ e.type === "dropdown" ? (o(), b(t(w), {
42
43
  key: 0,
43
44
  class: "caret-icon",
44
45
  name: "caret-down",
@@ -51,5 +52,5 @@ const E = { class: "editable-wrapper" }, B = {
51
52
  }
52
53
  });
53
54
  export {
54
- _ as default
55
+ S as default
55
56
  };
@@ -6,6 +6,7 @@ declare const EditableTypes: () => ({
6
6
  $props: Partial<{
7
7
  type: "input" | "dropdown";
8
8
  cell: string;
9
+ saveOnClickOutside: boolean;
9
10
  validateFunction: (value: unknown) => string | boolean;
10
11
  isLoading: boolean;
11
12
  displayValue: (option: unknown) => unknown;
@@ -19,6 +20,10 @@ declare const EditableTypes: () => ({
19
20
  type: import("vue").PropType<string>;
20
21
  default: string;
21
22
  };
23
+ saveOnClickOutside: {
24
+ type: import("vue").PropType<boolean>;
25
+ default: boolean;
26
+ };
22
27
  validateFunction: {
23
28
  type: import("vue").PropType<(value: unknown) => string | boolean>;
24
29
  default: () => false;
@@ -39,7 +44,7 @@ declare const EditableTypes: () => ({
39
44
  type: import("vue").PropType<(option: unknown) => unknown>;
40
45
  default: (cell: unknown) => unknown;
41
46
  };
42
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "validateFunction" | "isLoading" | "displayValue">;
47
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "saveOnClickOutside" | "validateFunction" | "isLoading" | "displayValue">;
43
48
  $attrs: {
44
49
  [x: string]: unknown;
45
50
  };
@@ -63,6 +68,10 @@ declare const EditableTypes: () => ({
63
68
  type: import("vue").PropType<string>;
64
69
  default: string;
65
70
  };
71
+ saveOnClickOutside: {
72
+ type: import("vue").PropType<boolean>;
73
+ default: boolean;
74
+ };
66
75
  validateFunction: {
67
76
  type: import("vue").PropType<(value: unknown) => string | boolean>;
68
77
  default: () => false;
@@ -86,6 +95,7 @@ declare const EditableTypes: () => ({
86
95
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
87
96
  type: "input" | "dropdown";
88
97
  cell: string;
98
+ saveOnClickOutside: boolean;
89
99
  validateFunction: (value: unknown) => string | boolean;
90
100
  isLoading: boolean;
91
101
  displayValue: (option: unknown) => unknown;
@@ -119,6 +129,10 @@ declare const EditableTypes: () => ({
119
129
  type: import("vue").PropType<string>;
120
130
  default: string;
121
131
  };
132
+ saveOnClickOutside: {
133
+ type: import("vue").PropType<boolean>;
134
+ default: boolean;
135
+ };
122
136
  validateFunction: {
123
137
  type: import("vue").PropType<(value: unknown) => string | boolean>;
124
138
  default: () => false;
@@ -153,6 +167,10 @@ declare const EditableTypes: () => ({
153
167
  type: import("vue").PropType<string>;
154
168
  default: string;
155
169
  };
170
+ saveOnClickOutside: {
171
+ type: import("vue").PropType<boolean>;
172
+ default: boolean;
173
+ };
156
174
  validateFunction: {
157
175
  type: import("vue").PropType<(value: unknown) => string | boolean>;
158
176
  default: () => false;
@@ -176,6 +194,7 @@ declare const EditableTypes: () => ({
176
194
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
177
195
  type: "input" | "dropdown";
178
196
  cell: string;
197
+ saveOnClickOutside: boolean;
179
198
  validateFunction: (value: unknown) => string | boolean;
180
199
  isLoading: boolean;
181
200
  displayValue: (option: unknown) => unknown;
@@ -1,7 +1,7 @@
1
1
  import o from "./TabsV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bab40cfe"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css"; //*');
4
+ const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f9433b11"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };