@ironsource/shared-ui 2.1.10-rc.0 → 2.1.10-rc.2
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.
- package/DataGrid.vue_vue_type_style_index_0_scoped_9cab3826_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_60d4a465_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_aafd69f5_lang.css +1 -0
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +5 -0
- package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
- package/components/radioButton/v4/RadioButtonV4.vue2.js +59 -46
- package/components/radioButton/v4/index.d.ts +20 -1
- package/components/table/v4/DataGrid.vue.d.ts +3 -3
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +42 -42
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -2
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +54 -51
- package/components/table/v4/index.d.ts +28 -8
- package/index.d.ts +96 -18
- package/index.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +2 -1
- package/testids/index.js +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d27e1304_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-9cab3826]{position:sticky}.table-container[data-v-9cab3826]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-9cab3826]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-9cab3826]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-9cab3826]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-9cab3826]{width:13.75rem}.table-header.isStickyHeader[data-v-9cab3826]{z-index:calc(var(--1e7437b3) + 3);top:0}.table-head-container[data-v-9cab3826]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-9cab3826]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-9cab3826]{display:inline-table}.table-header-actions[data-v-9cab3826]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-9cab3826]{position:relative}.table-row.loading[data-v-9cab3826]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-9cab3826]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-9cab3826]{border-bottom:none}.expanded-row[data-v-9cab3826]{grid-column:var(--734017e7);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-9cab3826]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-9cab3826]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-9cab3826],table th[data-v-9cab3826]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-9cab3826]:first-of-type,table th[data-v-9cab3826]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-9cab3826]:last-of-type,table th[data-v-9cab3826]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-9cab3826],table th.expand-toggle-cell[data-v-9cab3826]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-9cab3826]{border-bottom:none;z-index:calc(var(--1e7437b3) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-9cab3826]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--6b65cd20)}table>thead>tr>th[data-v-9cab3826]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-9cab3826]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-9cab3826]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-9cab3826]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-9cab3826]{cursor:pointer}table>thead.sticky[data-v-9cab3826]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-9cab3826]{z-index:calc(var(--1e7437b3) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-9cab3826]{display:block}table>tbody>*>tr[data-v-9cab3826]{background-color:var(--background-default);min-height:var(--4bca76a8);height:auto;display:grid;align-items:center;grid-template-columns:var(--6b65cd20)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-9cab3826]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-9cab3826],table>tbody>*>tr.activeMenu>td[data-v-9cab3826]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-9cab3826]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--4bca76a8);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-9cab3826]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-9cab3826]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-9cab3826]{justify-content:flex-end;text-align:right}.section-container[data-v-9cab3826]{left:0}.sections[data-v-9cab3826]{display:flex}.section[data-v-9cab3826]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-9cab3826]{width:100%}.empty-state[data-v-9cab3826]{min-height:250px}.floating-row[data-v-9cab3826]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--1e7437b3) + 1)}.floating-row *[data-v-9cab3826-s]{pointer-events:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.multi-table-container[data-v-60d4a465]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-60d4a465]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-60d4a465]{position:sticky;top:0;z-index:calc(var(--b840474a) + 3)}.multi-table-container[data-v-60d4a465] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-60d4a465] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-60d4a465] thead.sticky{top:62px}.multi-table-container .empty-state[data-v-60d4a465]{min-height:250px}.multi-table-container .table-header-right[data-v-60d4a465]{align-items:center;display:flex;height:100%}.multi-table-container .table-header-right .table-header-actions[data-v-60d4a465]{align-items:center;display:flex;margin-left:var(--spacing-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.radio-button[data-v-aafd69f5]{display:flex;flex-direction:column}.radio-button--disabled[data-v-aafd69f5],.radio-button--disabled .label[data-v-aafd69f5]{cursor:default}.wrapper-with-description[data-v-aafd69f5]{display:flex}.wrapper[data-v-aafd69f5]{display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;background-color:transparent;outline:0;border:0;cursor:pointer;user-select:none;vertical-align:middle;appearance:none;text-decoration:none;border-radius:50%;margin:0 var(--spacing-100) 0 0}.label[data-v-aafd69f5]{cursor:pointer;color:var(--text-primary);flex-direction:column;display:inline-flex}.label--disabled[data-v-aafd69f5]{color:var(--text-disabled)}input[data-v-aafd69f5]{cursor:inherit;position:absolute;opacity:0;width:100%;height:100%;top:0;left:0;margin:0;padding:0;z-index:1}.circle[data-v-aafd69f5]{border-radius:50%;width:var(--spacing-200);height:var(--spacing-200);transition:all .2s ease-in-out 0s;background-color:var(--default-main);box-shadow:var(--default-outlined-border) 0 0 0 1px inset}.circle--selected[data-v-aafd69f5]{background-color:var(--primary-main);box-shadow:var(--primary-dark) 0 0 0 1px inset}.circle--selected[data-v-aafd69f5]:before{display:block;width:var(--spacing-200);height:var(--spacing-200);background-image:radial-gradient(var(--common-white),var(--common-white) 3px,transparent 28%);content:""}.circle--disabled[data-v-aafd69f5]{background-color:var(--action-disabled-background);box-shadow:var(--action-hover) 0 0 0 1px inset}.circle--disabled.circle--selected[data-v-aafd69f5]{background-color:var(--primary-light);box-shadow:var(--primary-main-50-p) 0 0 0 1px inset}.circle--disabled.circle--selected[data-v-aafd69f5]:before{display:block;width:var(--spacing-200);height:var(--spacing-200);background-image:radial-gradient(var(--primary-main-50-p),var(--primary-main-50-p) 3px,transparent 28%);content:""}.radio-button:hover .circle[data-v-aafd69f5]:not(.circle--selected):not(.circle--disabled){box-shadow:var(--action-active) 0 0 0 1px inset}.label-description[data-v-aafd69f5]{color:var(--text-secondary)}
|
|
@@ -4,11 +4,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
name?: string;
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
testId?: string;
|
|
7
|
+
labelDescription?: string;
|
|
7
8
|
}>, {
|
|
8
9
|
label: string;
|
|
9
10
|
name: string;
|
|
10
11
|
modelValue: any;
|
|
11
12
|
testId: string;
|
|
13
|
+
labelDescription: string;
|
|
12
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
15
|
change: (...args: any[]) => void;
|
|
14
16
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -18,11 +20,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
20
|
name?: string;
|
|
19
21
|
modelValue?: string;
|
|
20
22
|
testId?: string;
|
|
23
|
+
labelDescription?: string;
|
|
21
24
|
}>, {
|
|
22
25
|
label: string;
|
|
23
26
|
name: string;
|
|
24
27
|
modelValue: any;
|
|
25
28
|
testId: string;
|
|
29
|
+
labelDescription: string;
|
|
26
30
|
}>>> & {
|
|
27
31
|
onChange?: (...args: any[]) => any;
|
|
28
32
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
@@ -31,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
35
|
label: string;
|
|
32
36
|
testId: string;
|
|
33
37
|
modelValue: string;
|
|
38
|
+
labelDescription: string;
|
|
34
39
|
}>, {
|
|
35
40
|
default?(_: {}): any;
|
|
36
41
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RadioButtonV4.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../RadioButtonV4.
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_aafd69f5_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-aafd69f5"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,67 +1,80 @@
|
|
|
1
|
-
import "../../../RadioButtonV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_aafd69f5_lang.css"; import { defineComponent as R, ref as g, inject as k, computed as c, openBlock as b, createElementBlock as B, normalizeClass as v, unref as e, createElementVNode as l, withDirectives as w, mergeProps as m, isRef as C, vModelRadio as L, renderSlot as N, createVNode as T, withCtx as V, createTextVNode as h, toDisplayString as y, createBlock as A, createCommentVNode as x } from "vue";
|
|
2
|
+
import I from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { radioGroupKey as G } from "../common/useRadio.js";
|
|
4
|
-
import { RadioTestIdModifiers as
|
|
5
|
-
import { useTestIdAttrs as
|
|
6
|
-
const
|
|
4
|
+
import { RadioTestIdModifiers as r } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as S } from "../../../utils/testIds.js";
|
|
6
|
+
const M = { class: "wrapper-with-description" }, P = { class: "wrapper" }, j = ["value", "name", "disabled"], _ = /* @__PURE__ */ R({
|
|
7
7
|
__name: "RadioButtonV4",
|
|
8
8
|
props: {
|
|
9
9
|
value: null,
|
|
10
10
|
label: { default: "" },
|
|
11
11
|
name: { default: "" },
|
|
12
12
|
modelValue: { default: void 0 },
|
|
13
|
-
testId: { default: "" }
|
|
13
|
+
testId: { default: "" },
|
|
14
|
+
labelDescription: { default: "" }
|
|
14
15
|
},
|
|
15
16
|
emits: ["update:modelValue", "change"],
|
|
16
|
-
setup(t, { emit:
|
|
17
|
-
const
|
|
17
|
+
setup(t, { emit: D }) {
|
|
18
|
+
const o = t, n = S(o.testId, r), u = g(), a = k(G, void 0), p = c(() => !!a), d = c(() => a?.disabled), s = c({
|
|
18
19
|
get() {
|
|
19
|
-
return
|
|
20
|
+
return p.value ? a?.modelValue : o.modelValue;
|
|
20
21
|
},
|
|
21
|
-
set(
|
|
22
|
-
|
|
22
|
+
set(i) {
|
|
23
|
+
p.value ? a?.changeEvent(i) : D("update:modelValue", i), u.value && (u.value.checked = o.modelValue === o.value);
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
|
-
return (
|
|
26
|
-
class:
|
|
26
|
+
return (i, f) => (b(), B("label", {
|
|
27
|
+
class: v(["radio-button", { "radio-button--disabled": e(d) }])
|
|
27
28
|
}, [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
l("span", M, [
|
|
30
|
+
l("span", P, [
|
|
31
|
+
w(l("input", m({
|
|
32
|
+
ref_key: "radioRef",
|
|
33
|
+
ref: u,
|
|
34
|
+
"onUpdate:modelValue": f[0] || (f[0] = (E) => C(s) ? s.value = E : null),
|
|
35
|
+
value: t.value,
|
|
36
|
+
name: t.name || e(a)?.name,
|
|
37
|
+
type: "radio",
|
|
38
|
+
disabled: e(d)
|
|
39
|
+
}, e(n)[e(r).FIELD]), null, 16, j), [
|
|
40
|
+
[L, e(s)]
|
|
41
|
+
]),
|
|
42
|
+
l("span", {
|
|
43
|
+
class: v(["circle", {
|
|
44
|
+
"circle--selected": e(s) === t.value,
|
|
45
|
+
"circle--disabled": e(d)
|
|
46
|
+
}])
|
|
47
|
+
}, null, 2)
|
|
39
48
|
]),
|
|
40
|
-
|
|
41
|
-
class:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
l("span", m({
|
|
50
|
+
class: ["label", { "label--disabled": e(d) }]
|
|
51
|
+
}, e(n)[e(r).LABEL]), [
|
|
52
|
+
N(i.$slots, "default", {}, () => [
|
|
53
|
+
T(e(I), {
|
|
54
|
+
variant: "body2",
|
|
55
|
+
"is-truncated": ""
|
|
56
|
+
}, {
|
|
57
|
+
default: V(() => [
|
|
58
|
+
h(y(t.label), 1)
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
], !0)
|
|
63
|
+
], 16)
|
|
46
64
|
]),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
})
|
|
60
|
-
], !0)
|
|
61
|
-
], 16)
|
|
65
|
+
t.labelDescription ? (b(), A(e(I), m({
|
|
66
|
+
key: 0,
|
|
67
|
+
variant: "body2",
|
|
68
|
+
class: "label-description"
|
|
69
|
+
}, e(n)[e(r).LABEL_DESCRIPTION]), {
|
|
70
|
+
default: V(() => [
|
|
71
|
+
h(y(t.labelDescription), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 16)) : x("", !0)
|
|
62
75
|
], 2));
|
|
63
76
|
}
|
|
64
77
|
});
|
|
65
78
|
export {
|
|
66
|
-
|
|
79
|
+
_ as default
|
|
67
80
|
};
|
|
@@ -9,6 +9,7 @@ declare const RadioButtonTypes: () => (({
|
|
|
9
9
|
label: string;
|
|
10
10
|
testId: string;
|
|
11
11
|
modelValue: string;
|
|
12
|
+
labelDescription: string;
|
|
12
13
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
13
14
|
value: {
|
|
14
15
|
type: import("vue").PropType<unknown>;
|
|
@@ -31,10 +32,14 @@ declare const RadioButtonTypes: () => (({
|
|
|
31
32
|
type: import("vue").PropType<string>;
|
|
32
33
|
default: any;
|
|
33
34
|
};
|
|
35
|
+
labelDescription: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
34
39
|
}>> & {
|
|
35
40
|
onChange?: (...args: any[]) => any;
|
|
36
41
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
37
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "label" | "testId" | "modelValue">;
|
|
42
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "label" | "testId" | "modelValue" | "labelDescription">;
|
|
38
43
|
$attrs: {
|
|
39
44
|
[x: string]: unknown;
|
|
40
45
|
};
|
|
@@ -70,6 +75,10 @@ declare const RadioButtonTypes: () => (({
|
|
|
70
75
|
type: import("vue").PropType<string>;
|
|
71
76
|
default: any;
|
|
72
77
|
};
|
|
78
|
+
labelDescription: {
|
|
79
|
+
type: import("vue").PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
73
82
|
}>> & {
|
|
74
83
|
onChange?: (...args: any[]) => any;
|
|
75
84
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
@@ -81,6 +90,7 @@ declare const RadioButtonTypes: () => (({
|
|
|
81
90
|
label: string;
|
|
82
91
|
testId: string;
|
|
83
92
|
modelValue: string;
|
|
93
|
+
labelDescription: string;
|
|
84
94
|
}, {}, string> & {
|
|
85
95
|
beforeCreate?: (() => void) | (() => void)[];
|
|
86
96
|
created?: (() => void) | (() => void)[];
|
|
@@ -123,6 +133,10 @@ declare const RadioButtonTypes: () => (({
|
|
|
123
133
|
type: import("vue").PropType<string>;
|
|
124
134
|
default: any;
|
|
125
135
|
};
|
|
136
|
+
labelDescription: {
|
|
137
|
+
type: import("vue").PropType<string>;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
126
140
|
}>> & {
|
|
127
141
|
onChange?: (...args: any[]) => any;
|
|
128
142
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
@@ -152,6 +166,10 @@ declare const RadioButtonTypes: () => (({
|
|
|
152
166
|
type: import("vue").PropType<string>;
|
|
153
167
|
default: any;
|
|
154
168
|
};
|
|
169
|
+
labelDescription: {
|
|
170
|
+
type: import("vue").PropType<string>;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
155
173
|
}>> & {
|
|
156
174
|
onChange?: (...args: any[]) => any;
|
|
157
175
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
@@ -163,6 +181,7 @@ declare const RadioButtonTypes: () => (({
|
|
|
163
181
|
label: string;
|
|
164
182
|
testId: string;
|
|
165
183
|
modelValue: string;
|
|
184
|
+
labelDescription: string;
|
|
166
185
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
167
186
|
$slots: {
|
|
168
187
|
default?(_: {}): any;
|
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
sections?: Section[];
|
|
7
7
|
sort?: Sort;
|
|
8
8
|
selection?: unknown[];
|
|
9
|
-
getRowId?: (row: Row, index: number) =>
|
|
9
|
+
getRowId?: (row: Row, index: number) => string | number;
|
|
10
10
|
selectedMatcher?: (rowId: unknown, selected: unknown) => boolean;
|
|
11
11
|
isSticky?: boolean;
|
|
12
12
|
isStickyHeader?: boolean;
|
|
@@ -73,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
73
73
|
sections?: Section[];
|
|
74
74
|
sort?: Sort;
|
|
75
75
|
selection?: unknown[];
|
|
76
|
-
getRowId?: (row: Row, index: number) =>
|
|
76
|
+
getRowId?: (row: Row, index: number) => string | number;
|
|
77
77
|
selectedMatcher?: (rowId: unknown, selected: unknown) => boolean;
|
|
78
78
|
isSticky?: boolean;
|
|
79
79
|
isStickyHeader?: boolean;
|
|
@@ -151,7 +151,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
151
151
|
infiniteScrollThreshold: number;
|
|
152
152
|
rowHeight: number | ((index: number) => number);
|
|
153
153
|
defaultScrollPosition: number;
|
|
154
|
-
getRowId: (row: Row, index: number) =>
|
|
154
|
+
getRowId: (row: Row, index: number) => string | number;
|
|
155
155
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
156
156
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
157
157
|
zIndexBase: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9cab3826_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9cab3826"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9cab3826_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as I, isRef as ce, createCommentVNode as r, Fragment as B, renderList as A, createBlock as z, mergeProps as re } from "vue";
|
|
2
|
+
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ue from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import he from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import K from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -13,16 +13,16 @@ import { useVModel as ge } from "@vueuse/core";
|
|
|
13
13
|
const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = ["data-testid"], xe = { class: "search-wrapper" }, Te = ["data-testid"], we = ["data-testid"], Ee = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox-cell"
|
|
16
|
-
},
|
|
16
|
+
}, Ie = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
19
|
+
}, Be = ["onClick"], Ae = { class: "table-head-container" }, Ve = ["data-testid"], Le = ["onMouseenter", "onClick"], Me = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "checkbox-cell"
|
|
22
|
-
},
|
|
22
|
+
}, Pe = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "expand-toggle-cell"
|
|
25
|
-
},
|
|
25
|
+
}, pe = {
|
|
26
26
|
key: 2,
|
|
27
27
|
class: "expanded-row"
|
|
28
28
|
}, He = {
|
|
@@ -66,17 +66,17 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
66
66
|
setup(s, { expose: m, emit: y }) {
|
|
67
67
|
const i = s;
|
|
68
68
|
oe((a) => ({
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
69
|
+
"1e7437b3": s.zIndexBase,
|
|
70
|
+
"734017e7": t(X),
|
|
71
|
+
"6b65cd20": t(p),
|
|
72
|
+
"4bca76a8": t(J)
|
|
73
73
|
}));
|
|
74
74
|
const b = ne(), U = (a) => i.rowCustomClassKey && i.rows[a] ? i.rows[a][i.rowCustomClassKey] : "", {
|
|
75
|
-
list:
|
|
75
|
+
list: P,
|
|
76
76
|
containerProps: G,
|
|
77
77
|
wrapperProps: Y,
|
|
78
78
|
activeRow: $,
|
|
79
|
-
gridColumnTemplate:
|
|
79
|
+
gridColumnTemplate: p,
|
|
80
80
|
toggleSortOrder: Q,
|
|
81
81
|
columnsStickyPositions: H,
|
|
82
82
|
hasSearchSlot: W,
|
|
@@ -87,11 +87,11 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
87
87
|
toggleExpandRow: q,
|
|
88
88
|
cssRowHeight: J,
|
|
89
89
|
cssExpandGridCol: X,
|
|
90
|
-
isRowExpanded:
|
|
90
|
+
isRowExpanded: L,
|
|
91
91
|
hasCheckboxes: O,
|
|
92
92
|
activeMenuRow: Z,
|
|
93
93
|
scrollTo: _
|
|
94
|
-
} = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0),
|
|
94
|
+
} = ye(i, y), D = v(() => !!b.footer), g = ge(i, "search", y), ee = v(() => i.selection.length || 0), M = v(() => {
|
|
95
95
|
const a = i.rows.map((o, e) => i.getRowId(o, e));
|
|
96
96
|
return !!a.length && a.every((o) => C(o));
|
|
97
97
|
}), C = (a) => i.selection.findIndex((o) => i.selectedMatcher(a, o)) !== -1, te = (a) => {
|
|
@@ -101,7 +101,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
101
101
|
)
|
|
102
102
|
), y("selectRow", !1)) : (x([...i.selection, a]), y("selectRow", !0));
|
|
103
103
|
}, se = () => {
|
|
104
|
-
if (
|
|
104
|
+
if (M.value)
|
|
105
105
|
x([]), y("selectAll", !1);
|
|
106
106
|
else {
|
|
107
107
|
const a = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
|
|
@@ -141,9 +141,9 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
141
141
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
142
142
|
}, [
|
|
143
143
|
c(a.$slots, "title", {}, () => [
|
|
144
|
-
h(t(
|
|
144
|
+
h(t(V), { variant: "h3" }, {
|
|
145
145
|
default: w(() => [
|
|
146
|
-
E(
|
|
146
|
+
E(I(s.title), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
})
|
|
@@ -181,7 +181,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
181
181
|
class: "sections",
|
|
182
182
|
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
183
183
|
}, [
|
|
184
|
-
(l(!0), d(
|
|
184
|
+
(l(!0), d(B, null, A(s.sections, (e) => (l(), d("div", {
|
|
185
185
|
key: e.id,
|
|
186
186
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
187
187
|
}, [
|
|
@@ -190,9 +190,9 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
190
190
|
style: T({ width: e.width + "px" }),
|
|
191
191
|
class: f({ section: !0 })
|
|
192
192
|
}, [
|
|
193
|
-
h(t(
|
|
193
|
+
h(t(V), { variant: "body2" }, {
|
|
194
194
|
default: w(() => [
|
|
195
|
-
E(
|
|
195
|
+
E(I(e.title), 1)
|
|
196
196
|
]),
|
|
197
197
|
_: 2
|
|
198
198
|
}, 1024)
|
|
@@ -205,14 +205,14 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
205
205
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
206
206
|
h(t(K), {
|
|
207
207
|
disabled: s.isLoading,
|
|
208
|
-
"is-checked": t(
|
|
209
|
-
"is-indeterminate": !t(
|
|
208
|
+
"is-checked": t(M),
|
|
209
|
+
"is-indeterminate": !t(M) && t(ee) > 0,
|
|
210
210
|
"onUpdate:isChecked": se
|
|
211
211
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
212
212
|
])
|
|
213
213
|
])) : r("", !0),
|
|
214
|
-
t(R) ? (l(), d("th",
|
|
215
|
-
(l(!0), d(
|
|
214
|
+
t(R) ? (l(), d("th", Ie)) : r("", !0),
|
|
215
|
+
(l(!0), d(B, null, A(s.columns, (e) => (l(), d("th", {
|
|
216
216
|
key: e.id,
|
|
217
217
|
class: f({
|
|
218
218
|
sticky: e.isSticky,
|
|
@@ -225,11 +225,11 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
225
225
|
style: T(e.isSticky ? t(H)[e.id] : null),
|
|
226
226
|
onClick: (k) => e.isSortable ? t(Q)(e) : null
|
|
227
227
|
}, [
|
|
228
|
-
u("div",
|
|
228
|
+
u("div", Ae, [
|
|
229
229
|
c(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
230
|
-
h(t(
|
|
230
|
+
h(t(V), { variant: "tableLabel" }, {
|
|
231
231
|
default: w(() => [
|
|
232
|
-
E(
|
|
232
|
+
E(I(e.title), 1)
|
|
233
233
|
]),
|
|
234
234
|
_: 2
|
|
235
235
|
}, 1024)
|
|
@@ -244,40 +244,40 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
244
244
|
"sort-order": s.sort.sortOrder
|
|
245
245
|
}, null, 8, ["sort-order"])) : r("", !0)
|
|
246
246
|
])
|
|
247
|
-
], 14,
|
|
247
|
+
], 14, Be))), 128))
|
|
248
248
|
])
|
|
249
249
|
], 2),
|
|
250
250
|
u("tbody", null, [
|
|
251
|
-
t(
|
|
251
|
+
t(P).length > 0 ? (l(), d("div", re({
|
|
252
252
|
key: 0,
|
|
253
253
|
class: "table-body-wrapper",
|
|
254
254
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
255
255
|
}, t(Y)), [
|
|
256
|
-
(l(!0), d(
|
|
257
|
-
key: e.index,
|
|
256
|
+
(l(!0), d(B, null, A(t(P), (e) => (l(), d("tr", {
|
|
257
|
+
key: s.getRowId(e.data, e.index),
|
|
258
258
|
class: f(["table-row", {
|
|
259
259
|
loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
|
|
260
260
|
active: t($) === e.index,
|
|
261
261
|
activeMenu: t(Z) === e.index,
|
|
262
|
-
expanded: t(R) && t(
|
|
262
|
+
expanded: t(R) && t(L)(e.index),
|
|
263
263
|
[U(e.index)]: !0
|
|
264
264
|
}]),
|
|
265
265
|
onMouseenter: (k) => $.value = e.index,
|
|
266
266
|
onClick: (k) => y("clickRow", e.index)
|
|
267
267
|
}, [
|
|
268
|
-
t(O) ? (l(), d("td",
|
|
268
|
+
t(O) ? (l(), d("td", Me, [
|
|
269
269
|
h(t(K), {
|
|
270
270
|
"is-checked": C(s.getRowId(e.data, e.index)),
|
|
271
271
|
"onUpdate:isChecked": (k) => te(s.getRowId(e.data, e.index))
|
|
272
272
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
273
273
|
])) : r("", !0),
|
|
274
|
-
t(R) ? (l(), d("td",
|
|
274
|
+
t(R) ? (l(), d("td", Pe, [
|
|
275
275
|
h(ke, {
|
|
276
|
-
expanded: t(
|
|
276
|
+
expanded: t(L)(e.index),
|
|
277
277
|
onClick: (k) => t(q)(e.index, k)
|
|
278
278
|
}, null, 8, ["expanded", "onClick"])
|
|
279
279
|
])) : r("", !0),
|
|
280
|
-
(l(!0), d(
|
|
280
|
+
(l(!0), d(B, null, A(s.columns, (k, n) => (l(), d("td", {
|
|
281
281
|
key: n,
|
|
282
282
|
class: f({
|
|
283
283
|
sticky: s.columns[n].isSticky,
|
|
@@ -301,9 +301,9 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
301
301
|
row: e,
|
|
302
302
|
rowIndex: e.index
|
|
303
303
|
}, () => [
|
|
304
|
-
h(t(
|
|
304
|
+
h(t(V), { variant: "body1" }, {
|
|
305
305
|
default: w(() => [
|
|
306
|
-
E(
|
|
306
|
+
E(I(e.data[n]), 1)
|
|
307
307
|
]),
|
|
308
308
|
_: 2
|
|
309
309
|
}, 1024)
|
|
@@ -312,10 +312,10 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
312
312
|
h(t(ue), { round: "" })
|
|
313
313
|
])
|
|
314
314
|
], 6))), 128)),
|
|
315
|
-
t(R) && t(
|
|
315
|
+
t(R) && t(L)(e.index) ? (l(), d("div", pe, [
|
|
316
316
|
c(a.$slots, "expanded", {
|
|
317
317
|
row: e,
|
|
318
|
-
gridColumnTemplate: t(
|
|
318
|
+
gridColumnTemplate: t(p)
|
|
319
319
|
})
|
|
320
320
|
])) : r("", !0),
|
|
321
321
|
ae(e.index) ? (l(), d("div", He, [
|
|
@@ -324,8 +324,8 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
324
324
|
rowIndex: e.index
|
|
325
325
|
})
|
|
326
326
|
])) : r("", !0)
|
|
327
|
-
], 42,
|
|
328
|
-
], 16,
|
|
327
|
+
], 42, Le))), 128))
|
|
328
|
+
], 16, Ve)) : (l(), d("div", Ne, [
|
|
329
329
|
c(a.$slots, "empty-state", {}, () => [
|
|
330
330
|
h(t(he), {
|
|
331
331
|
class: "empty-state",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Column } from '@/components/table/v4';
|
|
2
|
-
import { SaveRowEvent, TableSettings } from '@is-ssp/table/common/Table.types';
|
|
2
|
+
import { Row, SaveRowEvent, TableSettings } from '@is-ssp/table/common/Table.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
tablesSettings: TableSettings[];
|
|
5
5
|
loadingAndEmptyStatesColumns: Column[];
|
|
6
|
+
getRowId?: (row: Row, index: number) => string | number;
|
|
6
7
|
isSticky?: boolean;
|
|
7
8
|
isLoading?: boolean;
|
|
8
9
|
emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
@@ -22,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
23
|
}>, {
|
|
23
24
|
tablesSettings: () => any[];
|
|
24
25
|
loadingAndEmptyStatesColumns: () => any[];
|
|
26
|
+
getRowId: (row: any, index: any) => any;
|
|
25
27
|
isSticky: boolean;
|
|
26
28
|
isLoading: boolean;
|
|
27
29
|
emptyStateVariant: any;
|
|
@@ -49,6 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
51
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
50
52
|
tablesSettings: TableSettings[];
|
|
51
53
|
loadingAndEmptyStatesColumns: Column[];
|
|
54
|
+
getRowId?: (row: Row, index: number) => string | number;
|
|
52
55
|
isSticky?: boolean;
|
|
53
56
|
isLoading?: boolean;
|
|
54
57
|
emptyStateVariant?: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
@@ -68,6 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
68
71
|
}>, {
|
|
69
72
|
tablesSettings: () => any[];
|
|
70
73
|
loadingAndEmptyStatesColumns: () => any[];
|
|
74
|
+
getRowId: (row: any, index: any) => any;
|
|
71
75
|
isSticky: boolean;
|
|
72
76
|
isLoading: boolean;
|
|
73
77
|
emptyStateVariant: any;
|
|
@@ -103,6 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
103
107
|
emptyStateTitle: string;
|
|
104
108
|
isSticky: boolean;
|
|
105
109
|
emptyStateSubtitle: string;
|
|
110
|
+
getRowId: (row: Row, index: number) => string | number;
|
|
106
111
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
107
112
|
zIndexBase: number;
|
|
108
113
|
totalCount: number;
|
|
@@ -126,8 +131,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
126
131
|
search?(_: {}): any;
|
|
127
132
|
"table-header-actions"?(_: {}): any;
|
|
128
133
|
"floating-row"?(_: {
|
|
129
|
-
row: import("@vueuse/core").UseVirtualListItem<
|
|
134
|
+
row: import("@vueuse/core").UseVirtualListItem<Row>;
|
|
130
135
|
rowIndex: number;
|
|
136
|
+
tableIndex: number;
|
|
131
137
|
}): any;
|
|
132
138
|
"empty-state"?(_: {}): any;
|
|
133
139
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../MultipleDataGrid.
|
|
4
|
-
const
|
|
1
|
+
import o from "./MultipleDataGrid.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_60d4a465_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-60d4a465"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|