@ironsource/shared-ui 2.2.0-rc.15 → 2.2.0-rc.17
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/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_77c2a074_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +2 -2
- package/components/columnPicker/ColumnPicker.vue2.js +174 -154
- package/components/columnPicker/index.d.ts +7 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +39 -39
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b16780cd_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-header[data-v-3a061c08]{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}.chart-header--compact[data-v-3a061c08]{padding-top:22px}.chart-header--compact .header-texts[data-v-3a061c08]{flex-direction:row}.chart-header--compact .header-text[data-v-3a061c08]{color:var(--text-secondary)}.header-row[data-v-3a061c08]{display:flex;align-items:flex-end;gap:4px}.header-texts[data-v-3a061c08]{display:flex;flex-direction:column;color:var(--text-primary);gap:4px;cursor:default}.header-actions[data-v-3a061c08]{display:flex;align-items:center;gap:var(--spacing-200)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.column-picker[data-v-77c2a074]{width:37.375rem;border-radius:var(--border-radius-lg);background:var(--background-modal-elevation)}.content[data-v-77c2a074]{min-height:18.75rem;display:grid;grid-template-columns:1fr 1fr}.selected-list-wrapper[data-v-77c2a074]{padding:.25rem 1rem 1rem}.scrollable-list[data-v-77c2a074]{overflow-y:auto;max-height:24.625rem}.search-wrapper[data-v-77c2a074]{height:3rem;padding:1rem 1rem .25rem}.options-list-wrapper[data-v-77c2a074]{border-right:1px solid var(--common-divider)}.options-list[data-v-77c2a074]{margin:0;list-style:none;padding:.3125rem .75rem}.options-list__item[data-v-77c2a074]{margin-bottom:.5rem}.options-list[data-v-77c2a074] .item-container{margin-bottom:1px;min-height:1.9375rem}.selected-list-header[data-v-77c2a074]{height:3rem;padding:.25rem 1rem 0;display:flex;justify-content:space-between;align-items:center}.group-name[data-v-77c2a074]{color:var(--text-secondary)}.inline-group[data-v-77c2a074]{padding:.25rem .5rem}.no-result-container[data-v-77c2a074]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-0967498f]{position:sticky}.table-container[data-v-0967498f]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-0967498f]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-0967498f]{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-0967498f]{display:inline-table}.table-row[data-v-0967498f]{position:relative}.table-row.loading[data-v-0967498f]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-0967498f]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-0967498f]{border-bottom:none}.expanded-row[data-v-0967498f]{grid-column:var(--25787d10);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-0967498f]{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-0967498f]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-0967498f],table th[data-v-0967498f]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-0967498f]:first-of-type,table th[data-v-0967498f]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-0967498f]:last-of-type,table th[data-v-0967498f]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-0967498f],table th.expand-toggle-cell[data-v-0967498f]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-0967498f]{border-bottom:none;z-index:calc(var(--30f420c8) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-0967498f]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--71198c09)}table>thead>tr>th[data-v-0967498f]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-0967498f]{cursor:pointer}table>thead>tr>td[data-v-0967498f]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-0967498f],table>thead>tr>td.bordered[data-v-0967498f]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-0967498f],table>thead>tr>td.bordered.isStickyRight[data-v-0967498f]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-0967498f],table>thead>tr>td.isTextRight[data-v-0967498f]{justify-content:flex-end}table>thead.sticky[data-v-0967498f]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-0967498f]{z-index:calc(var(--30f420c8) + 2);top:var(--31cbe0b7)}table .totals-row[data-v-0967498f]{height:40px}table .totals-row[data-v-0967498f]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-0967498f]{background-color:var(--background-default)}table>tbody[data-v-0967498f]{display:block}table>tbody>*>tr[data-v-0967498f]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--71198c09)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-0967498f]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-0967498f],table>tbody>*>tr.activeMenu>td[data-v-0967498f]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-0967498f]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-0967498f]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-0967498f]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-0967498f]{justify-content:flex-end;text-align:right}.underlined[data-v-0967498f]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-0967498f]:hover{cursor:pointer}.section-container[data-v-0967498f]{left:0}.sections[data-v-0967498f]{display:flex}.section[data-v-0967498f]{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-0967498f]{width:100%}.empty-state[data-v-0967498f]{min-height:250px}.floating-row[data-v-0967498f]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--30f420c8) + 1)}.floating-row *[data-v-0967498f-s]{pointer-events:auto}.bg[data-v-0967498f]{background:var(--background-default)}.useAvailableHeight[data-v-0967498f]{height:100%}.disabled-scrolling[data-v-0967498f]{overflow:hidden}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartHeader.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartHeader.
|
|
4
|
-
const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3a061c08"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ChartHeader.
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css"; import { defineComponent as g, computed as c, openBlock as r, createElementBlock as B, mergeProps as h, unref as t, createElementVNode as n, createVNode as m, createSlots as E, withCtx as d, renderSlot as H, createBlock as l, createTextVNode as b, toDisplayString as v, createCommentVNode as i, normalizeProps as V, isRef as D } from "vue";
|
|
2
2
|
import k from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import N from "../switch/v4/SwitchV4.vue.js";
|
|
4
4
|
import P from "../tooltip/v4/TooltipV4.vue.js";
|
|
@@ -82,7 +82,7 @@ const U = { class: "header-texts" }, z = { class: "header-row" }, M = { class: "
|
|
|
82
82
|
default: d(() => [
|
|
83
83
|
m(t(k), {
|
|
84
84
|
class: "header-text",
|
|
85
|
-
variant: e.compact ? "h5" : "
|
|
85
|
+
variant: e.compact ? "h5" : "h1"
|
|
86
86
|
}, {
|
|
87
87
|
default: d(() => [
|
|
88
88
|
b(v(e.header), 1)
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
34
|
testId: string;
|
|
35
35
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
36
|
"update:selected": (value: unknown[]) => void;
|
|
37
|
+
finishEditing: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
37
38
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
38
39
|
selected: unknown[];
|
|
39
40
|
options: Record<string, unknown>[];
|
|
@@ -70,6 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
71
|
testId: string;
|
|
71
72
|
}>>> & {
|
|
72
73
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
74
|
+
onFinishEditing?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
73
75
|
}, {
|
|
74
76
|
testId: string;
|
|
75
77
|
selected: unknown[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnPicker.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ColumnPicker.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_77c2a074_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-77c2a074"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../ColumnPicker.
|
|
2
|
-
import
|
|
1
|
+
import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_77c2a074_lang.css"; import { defineComponent as ue, ref as c, watch as H, computed as m, provide as re, openBlock as d, createElementBlock as f, Fragment as x, renderSlot as ce, createVNode as u, unref as n, withCtx as p, createElementVNode as r, mergeProps as me, renderList as P, withModifiers as J, createTextVNode as T, toDisplayString as E, withDirectives as fe, createBlock as X, vShow as pe, createCommentVNode as Y, isRef as ve } from "vue";
|
|
2
|
+
import ye from "./OptionChip.vue.js";
|
|
3
3
|
import "../dropdown/v4/DropdownV4.vue.js";
|
|
4
4
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -8,29 +8,29 @@ import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
10
10
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import Z from "../dropdown/v4/OptionV4.vue.js";
|
|
12
12
|
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
13
|
-
import { DropdownContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { matchString as
|
|
13
|
+
import { DropdownContext as he } from "../dropdown/common/DropdownContext.js";
|
|
14
|
+
import L from "../typography/v4/Typography.vue.js";
|
|
15
|
+
import ge from "../dialog/v4/DialogV4.vue.js";
|
|
16
|
+
import Se from "../sortableList/SortableList.vue.js";
|
|
17
|
+
import Ke from "../link/Link.vue.js";
|
|
18
|
+
import ke from "../search/v4/SearchV4.vue.js";
|
|
19
|
+
import { matchString as Ce } from "../../utils/search.js";
|
|
20
20
|
import "../button/v4/ButtonV4.vue.js";
|
|
21
|
-
import
|
|
21
|
+
import be from "../button/v4/IconButtonV4.vue.js";
|
|
22
22
|
import "../button/v4/ButtonGroup.vue.js";
|
|
23
23
|
import "../button/v4/ToggleButtonGroupAB.vue.js";
|
|
24
|
-
import { useTestIdAttrs as
|
|
25
|
-
import { ColumnPickerTestIdModifiers as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import { useTestIdAttrs as xe } from "../../utils/testIds.js";
|
|
25
|
+
import { ColumnPickerTestIdModifiers as F } from "../../testids/index.js";
|
|
26
|
+
import Te from "./RemoveButton.vue.js";
|
|
27
|
+
const Ie = { class: "content" }, Oe = { class: "options-list-wrapper" }, Re = { class: "search-wrapper" }, Ve = { class: "options-list scrollable-list" }, we = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-group"
|
|
30
|
-
},
|
|
30
|
+
}, Be = ["onClick"], De = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Ge = { class: "selected-list-header" }, Pe = { class: "selected-list-wrapper scrollable-list" }, ot = /* @__PURE__ */ ue({
|
|
34
34
|
__name: "ColumnPicker",
|
|
35
35
|
props: {
|
|
36
36
|
selected: { default: () => [] },
|
|
@@ -50,87 +50,107 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
50
50
|
appendToBody: { type: Boolean, default: !0 },
|
|
51
51
|
testId: { default: "" }
|
|
52
52
|
},
|
|
53
|
-
emits: ["update:selected"],
|
|
54
|
-
setup(
|
|
55
|
-
const t =
|
|
56
|
-
t.selected?.length ?
|
|
57
|
-
},
|
|
58
|
-
y.value = !1,
|
|
53
|
+
emits: ["update:selected", "finishEditing"],
|
|
54
|
+
setup(s, { emit: I }) {
|
|
55
|
+
const t = s, o = c([]), v = c([]), h = c(""), y = c(!1), S = c(!1), K = c(!1), k = c(!1), C = c(!1), $ = () => {
|
|
56
|
+
t.selected?.length ? o.value = [...t.selected] : t.defaultSelection?.length ? o.value = [...t.defaultSelection] : o.value = [];
|
|
57
|
+
}, O = (e = !0) => {
|
|
58
|
+
y.value = !1, v.value = [], h.value = "", $(), e && I(
|
|
59
|
+
"finishEditing",
|
|
60
|
+
S.value,
|
|
61
|
+
C.value,
|
|
62
|
+
K.value,
|
|
63
|
+
k.value,
|
|
64
|
+
"Cancel"
|
|
65
|
+
), oe();
|
|
59
66
|
};
|
|
60
|
-
|
|
67
|
+
H(
|
|
61
68
|
[() => t.selected, () => t.defaultSelection],
|
|
62
69
|
() => {
|
|
63
|
-
|
|
70
|
+
$();
|
|
64
71
|
},
|
|
65
72
|
{
|
|
66
73
|
immediate: !0
|
|
67
74
|
}
|
|
68
75
|
);
|
|
69
|
-
const
|
|
76
|
+
const A = () => {
|
|
70
77
|
y.value = !y.value;
|
|
71
|
-
},
|
|
78
|
+
}, R = m({
|
|
72
79
|
get() {
|
|
73
|
-
return
|
|
74
|
-
const
|
|
80
|
+
return o.value.map((e) => {
|
|
81
|
+
const l = ie(e) ? W(e)?.[t.displayKey] + " " : "";
|
|
75
82
|
return {
|
|
76
83
|
id: e[t.idKey],
|
|
77
|
-
displayText:
|
|
78
|
-
isDisabled:
|
|
84
|
+
displayText: l + e[t.displayKey],
|
|
85
|
+
isDisabled: B(e)
|
|
79
86
|
};
|
|
80
87
|
});
|
|
81
88
|
},
|
|
82
89
|
set(e) {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
(
|
|
90
|
+
const l = e.map((i) => i.id);
|
|
91
|
+
o.value = l.map(
|
|
92
|
+
(i) => o.value.find((a) => a[t.idKey] === i)
|
|
86
93
|
);
|
|
87
94
|
}
|
|
88
|
-
}),
|
|
89
|
-
() =>
|
|
90
|
-
),
|
|
95
|
+
}), V = m(
|
|
96
|
+
() => o.value?.length <= t.minSelections
|
|
97
|
+
), w = m(() => {
|
|
91
98
|
if (!t.minSelections)
|
|
92
99
|
return "";
|
|
93
|
-
const e = t.minSelections,
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
96
|
-
(
|
|
97
|
-
),
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
t.disabledKey && e[t.disabledKey] ||
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
(
|
|
100
|
+
const e = t.minSelections, l = t.minSelectionsTooltipMessage;
|
|
101
|
+
return l ? l.replace("%count%", e.toString()) : "";
|
|
102
|
+
}), M = (e) => b(e) && V.value, B = (e) => e[t.disabledKey] || M(e), b = (e) => o.value.some(
|
|
103
|
+
(l) => l[t.idKey] === e[t.idKey]
|
|
104
|
+
), _ = (e) => {
|
|
105
|
+
b(e) ? N(e[t.idKey]) : ee(e);
|
|
106
|
+
}, D = (e) => {
|
|
107
|
+
t.disabledKey && e[t.disabledKey] || _(e);
|
|
108
|
+
}, ee = (e) => {
|
|
109
|
+
o.value.push(e);
|
|
110
|
+
}, N = (e) => {
|
|
111
|
+
o.value = o.value.filter(
|
|
112
|
+
(l) => l[t.idKey] !== e
|
|
106
113
|
);
|
|
107
|
-
},
|
|
114
|
+
}, z = m(() => {
|
|
108
115
|
if (!t.defaultSelection?.length)
|
|
109
116
|
return !1;
|
|
110
|
-
const e =
|
|
111
|
-
return e.length !==
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
(
|
|
116
|
-
),
|
|
117
|
-
const
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
) :
|
|
123
|
-
},
|
|
124
|
-
...
|
|
125
|
-
[t.childrenKey]:
|
|
126
|
-
(
|
|
117
|
+
const e = o.value.map((i) => i[t.idKey]), l = t.defaultSelection.map((i) => i[t.idKey]);
|
|
118
|
+
return e.length !== l.length ? !0 : !l.every((i) => e.includes(i));
|
|
119
|
+
}), te = () => {
|
|
120
|
+
z.value && (o.value = [...t.defaultSelection]), S.value = !0;
|
|
121
|
+
}, U = (e) => Q.value ? !0 : !v.value.includes(e), le = (e) => t.inlineGroupIds?.includes(e), W = (e) => t.options.find(
|
|
122
|
+
(l) => g(l).map((i) => i[t.idKey]).includes(e[t.idKey])
|
|
123
|
+
), ie = (e) => {
|
|
124
|
+
const l = W(e);
|
|
125
|
+
return l ? t.inlineGroupIds?.includes(l[t.idKey]) : !1;
|
|
126
|
+
}, q = (e) => {
|
|
127
|
+
v.value.includes(e) ? (v.value = v.value.filter(
|
|
128
|
+
(l) => l !== e
|
|
129
|
+
), K.value = !0) : (v.value.push(e), k.value = !0);
|
|
130
|
+
}, g = (e) => e[t.childrenKey] || [], se = m(() => o.value.length), G = m(() => h.value?.trim()), Q = m(() => !!G.value), j = m(() => Q.value ? t.options.map((l) => ({
|
|
131
|
+
...l,
|
|
132
|
+
[t.childrenKey]: g(l).filter(
|
|
133
|
+
(i) => Ce(i[t.displayKey], G.value)
|
|
127
134
|
)
|
|
128
135
|
})).filter(
|
|
129
|
-
(
|
|
130
|
-
) : t.options),
|
|
131
|
-
|
|
136
|
+
(l) => g(l).length > 0
|
|
137
|
+
) : t.options), ne = xe(t.testId, F), ae = () => {
|
|
138
|
+
I("update:selected", o.value), I(
|
|
139
|
+
"finishEditing",
|
|
140
|
+
S.value,
|
|
141
|
+
C.value,
|
|
142
|
+
K.value,
|
|
143
|
+
k.value,
|
|
144
|
+
"Save"
|
|
145
|
+
), O(!1);
|
|
132
146
|
};
|
|
133
|
-
|
|
147
|
+
H(G, () => {
|
|
148
|
+
C.value = !0;
|
|
149
|
+
});
|
|
150
|
+
const oe = () => {
|
|
151
|
+
S.value = !1, K.value = !1, k.value = !1, C.value = !1;
|
|
152
|
+
};
|
|
153
|
+
return re(he, {
|
|
134
154
|
activeIndex: null,
|
|
135
155
|
activeOption: null,
|
|
136
156
|
clearSelection: () => {
|
|
@@ -151,8 +171,8 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
151
171
|
toggle: () => {
|
|
152
172
|
},
|
|
153
173
|
placeholder: "",
|
|
154
|
-
select:
|
|
155
|
-
query:
|
|
174
|
+
select: D,
|
|
175
|
+
query: h,
|
|
156
176
|
selectedValue: null,
|
|
157
177
|
goToOption: () => {
|
|
158
178
|
},
|
|
@@ -162,147 +182,147 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
162
182
|
},
|
|
163
183
|
unRegisterOption: () => {
|
|
164
184
|
}
|
|
165
|
-
}), (e,
|
|
166
|
-
|
|
167
|
-
triggerProps: { onClick:
|
|
185
|
+
}), (e, l) => (d(), f(x, null, [
|
|
186
|
+
ce(e.$slots, "trigger", {
|
|
187
|
+
triggerProps: { onClick: A }
|
|
168
188
|
}, () => [
|
|
169
|
-
|
|
189
|
+
u(n(be), {
|
|
170
190
|
"icon-name": "layout",
|
|
171
191
|
variant: "outlined",
|
|
172
|
-
"test-id": `${
|
|
173
|
-
onClick:
|
|
192
|
+
"test-id": `${s.testId}-${n(F).TRIGGER}`,
|
|
193
|
+
onClick: A
|
|
174
194
|
}, null, 8, ["test-id"])
|
|
175
195
|
], !0),
|
|
176
|
-
|
|
196
|
+
u(n(ge), {
|
|
177
197
|
modelValue: y.value,
|
|
178
|
-
"onUpdate:modelValue":
|
|
179
|
-
title:
|
|
198
|
+
"onUpdate:modelValue": l[2] || (l[2] = (i) => y.value = i),
|
|
199
|
+
title: s.headerText,
|
|
180
200
|
"no-padding": "",
|
|
181
201
|
"save-button-label": "Save view",
|
|
182
202
|
"close-on-click-outside": "",
|
|
183
|
-
"append-to-body":
|
|
184
|
-
"test-id":
|
|
185
|
-
onSave:
|
|
186
|
-
onClose:
|
|
187
|
-
onCancel:
|
|
203
|
+
"append-to-body": s.appendToBody,
|
|
204
|
+
"test-id": s.testId,
|
|
205
|
+
onSave: ae,
|
|
206
|
+
onClose: l[3] || (l[3] = () => O),
|
|
207
|
+
onCancel: O
|
|
188
208
|
}, {
|
|
189
209
|
default: p(() => [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
modelValue:
|
|
196
|
-
"onUpdate:modelValue":
|
|
197
|
-
placeholder:
|
|
210
|
+
r("div", me({ class: "column-picker" }, n(ne)[n(F).WRAPPER]), [
|
|
211
|
+
r("div", Ie, [
|
|
212
|
+
r("div", Oe, [
|
|
213
|
+
r("header", Re, [
|
|
214
|
+
u(n(ke), {
|
|
215
|
+
modelValue: h.value,
|
|
216
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => h.value = i),
|
|
217
|
+
placeholder: s.searchPlaceholder,
|
|
198
218
|
variant: "transparent",
|
|
199
219
|
size: "md",
|
|
200
|
-
"auto-focus":
|
|
201
|
-
"test-id":
|
|
220
|
+
"auto-focus": s.searchAutoFocus,
|
|
221
|
+
"test-id": s.testId
|
|
202
222
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
203
223
|
]),
|
|
204
|
-
|
|
205
|
-
(d(!0),
|
|
206
|
-
key: String(
|
|
224
|
+
r("ul", Ve, [
|
|
225
|
+
(d(!0), f(x, null, P(n(j), (i) => (d(), f("li", {
|
|
226
|
+
key: String(i[s.idKey]),
|
|
207
227
|
class: "options-list__item"
|
|
208
228
|
}, [
|
|
209
|
-
|
|
210
|
-
option:
|
|
229
|
+
u(n(Z), {
|
|
230
|
+
option: i,
|
|
211
231
|
"tree-main-option": "",
|
|
212
|
-
"tree-main-option-expanded":
|
|
213
|
-
onClick:
|
|
214
|
-
onToggleTreeCollapse: (
|
|
232
|
+
"tree-main-option-expanded": U(i[s.idKey]),
|
|
233
|
+
onClick: J((a) => q(i[s.idKey]), ["stop"]),
|
|
234
|
+
onToggleTreeCollapse: (a) => q(i[s.idKey])
|
|
215
235
|
}, {
|
|
216
236
|
default: p(() => [
|
|
217
|
-
|
|
237
|
+
u(n(L), {
|
|
218
238
|
variant: "h5",
|
|
219
239
|
class: "group-name"
|
|
220
240
|
}, {
|
|
221
241
|
default: p(() => [
|
|
222
|
-
|
|
242
|
+
T(E(i[s.displayKey]), 1)
|
|
223
243
|
]),
|
|
224
244
|
_: 2
|
|
225
245
|
}, 1024)
|
|
226
246
|
]),
|
|
227
247
|
_: 2
|
|
228
248
|
}, 1032, ["option", "tree-main-option-expanded", "onClick", "onToggleTreeCollapse"]),
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
(d(!0),
|
|
232
|
-
key:
|
|
233
|
-
option:
|
|
234
|
-
"name-key":
|
|
235
|
-
selected:
|
|
236
|
-
disabled:
|
|
237
|
-
"tooltip-text":
|
|
238
|
-
onClick: (
|
|
249
|
+
fe(r("div", null, [
|
|
250
|
+
le(i[s.idKey]) ? (d(), f("div", we, [
|
|
251
|
+
(d(!0), f(x, null, P(g(i), (a) => (d(), X(ye, {
|
|
252
|
+
key: a[s.idKey],
|
|
253
|
+
option: a,
|
|
254
|
+
"name-key": s.displayKey,
|
|
255
|
+
selected: b(a),
|
|
256
|
+
disabled: B(a),
|
|
257
|
+
"tooltip-text": M(a) ? n(w) : null,
|
|
258
|
+
onClick: (de) => D(a)
|
|
239
259
|
}, null, 8, ["option", "name-key", "selected", "disabled", "tooltip-text", "onClick"]))), 128))
|
|
240
|
-
])) : (d(!0),
|
|
241
|
-
key:
|
|
242
|
-
onClick:
|
|
260
|
+
])) : (d(!0), f(x, { key: 1 }, P(g(i), (a) => (d(), f("div", {
|
|
261
|
+
key: a[s.idKey],
|
|
262
|
+
onClick: J((de) => D(a), ["stop"])
|
|
243
263
|
}, [
|
|
244
|
-
|
|
245
|
-
option:
|
|
246
|
-
"selected-prop":
|
|
247
|
-
"name-key":
|
|
248
|
-
disabled:
|
|
249
|
-
"min-max-selection-tooltip-message":
|
|
264
|
+
u(n(Z), {
|
|
265
|
+
option: a,
|
|
266
|
+
"selected-prop": b(a),
|
|
267
|
+
"name-key": s.displayKey,
|
|
268
|
+
disabled: B(a),
|
|
269
|
+
"min-max-selection-tooltip-message": n(w),
|
|
250
270
|
"tooltip-attached-to-text": "",
|
|
251
271
|
"is-multi": ""
|
|
252
272
|
}, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
|
|
253
|
-
], 8,
|
|
273
|
+
], 8, Be))), 128))
|
|
254
274
|
], 512), [
|
|
255
|
-
[
|
|
275
|
+
[pe, U(i[s.idKey])]
|
|
256
276
|
])
|
|
257
277
|
]))), 128)),
|
|
258
|
-
|
|
259
|
-
|
|
278
|
+
n(j).length ? Y("", !0) : (d(), f("li", De, [
|
|
279
|
+
u(n(L), { variant: "body2" }, {
|
|
260
280
|
default: p(() => [
|
|
261
|
-
|
|
281
|
+
T(E(s.noResultsText), 1)
|
|
262
282
|
]),
|
|
263
283
|
_: 1
|
|
264
284
|
})
|
|
265
285
|
]))
|
|
266
286
|
])
|
|
267
287
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
288
|
+
r("div", null, [
|
|
289
|
+
r("header", Ge, [
|
|
290
|
+
u(n(L), {
|
|
271
291
|
variant: "h5",
|
|
272
292
|
class: "selected-count-text"
|
|
273
293
|
}, {
|
|
274
294
|
default: p(() => [
|
|
275
|
-
|
|
295
|
+
T(E(n(se)) + " selected ", 1)
|
|
276
296
|
]),
|
|
277
297
|
_: 1
|
|
278
298
|
}),
|
|
279
|
-
|
|
299
|
+
s.defaultSelection?.length ? (d(), X(n(Ke), {
|
|
280
300
|
key: 0,
|
|
281
301
|
variant: "subtitle2",
|
|
282
|
-
disabled: !
|
|
283
|
-
"test-id":
|
|
284
|
-
onClick:
|
|
302
|
+
disabled: !n(z),
|
|
303
|
+
"test-id": s.testId,
|
|
304
|
+
onClick: te
|
|
285
305
|
}, {
|
|
286
306
|
default: p(() => [
|
|
287
|
-
|
|
307
|
+
T(" Reset to default ")
|
|
288
308
|
]),
|
|
289
309
|
_: 1
|
|
290
|
-
}, 8, ["disabled", "test-id"])) :
|
|
310
|
+
}, 8, ["disabled", "test-id"])) : Y("", !0)
|
|
291
311
|
]),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
items:
|
|
295
|
-
"onUpdate:items":
|
|
296
|
-
"display-value": (
|
|
312
|
+
r("div", Pe, [
|
|
313
|
+
u(n(Se), {
|
|
314
|
+
items: n(R),
|
|
315
|
+
"onUpdate:items": l[1] || (l[1] = (i) => ve(R) ? R.value = i : null),
|
|
316
|
+
"display-value": (i) => i.displayText,
|
|
297
317
|
variant: "compact",
|
|
298
318
|
"draggable-area": "full",
|
|
299
|
-
"test-id":
|
|
319
|
+
"test-id": s.testId
|
|
300
320
|
}, {
|
|
301
|
-
menu: p(({ item:
|
|
302
|
-
|
|
303
|
-
disabled:
|
|
304
|
-
"tooltip-text":
|
|
305
|
-
onClick: (
|
|
321
|
+
menu: p(({ item: i }) => [
|
|
322
|
+
u(Te, {
|
|
323
|
+
disabled: n(V),
|
|
324
|
+
"tooltip-text": n(V) ? n(w) : null,
|
|
325
|
+
onClick: (a) => N(i.id)
|
|
306
326
|
}, null, 8, ["disabled", "tooltip-text", "onClick"])
|
|
307
327
|
]),
|
|
308
328
|
_: 1
|
|
@@ -318,5 +338,5 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
318
338
|
}
|
|
319
339
|
});
|
|
320
340
|
export {
|
|
321
|
-
|
|
341
|
+
ot as default
|
|
322
342
|
};
|
|
@@ -90,6 +90,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
90
90
|
};
|
|
91
91
|
}>> & {
|
|
92
92
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
93
|
+
onFinishEditing?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
93
94
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "selected" | "options" | "minSelections" | "noResultsText" | "searchAutoFocus" | "searchPlaceholder" | "headerText" | "appendToBody" | "defaultSelection" | "inlineGroupIds" | "idKey" | "displayKey" | "childrenKey" | "disabledKey" | "minSelectionsTooltipMessage">;
|
|
94
95
|
$attrs: {
|
|
95
96
|
[x: string]: unknown;
|
|
@@ -102,7 +103,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
102
103
|
}>;
|
|
103
104
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
104
105
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
105
|
-
$emit: (event: "update:selected", value: unknown[]) => void;
|
|
106
|
+
$emit: ((event: "update:selected", value: unknown[]) => void) & ((event: "finishEditing", isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void);
|
|
106
107
|
$el: any;
|
|
107
108
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
108
109
|
testId: {
|
|
@@ -174,8 +175,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
174
175
|
};
|
|
175
176
|
}>> & {
|
|
176
177
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
178
|
+
onFinishEditing?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
177
179
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
178
180
|
"update:selected": (value: unknown[]) => void;
|
|
181
|
+
finishEditing: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
179
182
|
}, string, {
|
|
180
183
|
testId: string;
|
|
181
184
|
selected: unknown[];
|
|
@@ -283,6 +286,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
283
286
|
};
|
|
284
287
|
}>> & {
|
|
285
288
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
289
|
+
onFinishEditing?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
286
290
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
287
291
|
__isFragment?: never;
|
|
288
292
|
__isTeleport?: never;
|
|
@@ -357,8 +361,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
357
361
|
};
|
|
358
362
|
}>> & {
|
|
359
363
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
364
|
+
onFinishEditing?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
360
365
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
361
366
|
"update:selected": (value: unknown[]) => void;
|
|
367
|
+
finishEditing: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
362
368
|
}, string, {
|
|
363
369
|
testId: string;
|
|
364
370
|
selected: unknown[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as f, createBlock as I, isRef as ve, createSlots as pe, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as M, toDisplayString as O, mergeProps as P } from "vue";
|
|
2
2
|
import L from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -20,10 +20,10 @@ import { useElementSize as Ie } from "@vueuse/core";
|
|
|
20
20
|
const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "expand-toggle-cell"
|
|
23
|
-
},
|
|
23
|
+
}, De = ["onClick", "onMouseenter"], Fe = { class: "table-head-container" }, Ne = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "totals-row"
|
|
26
|
-
},
|
|
26
|
+
}, Oe = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
|
|
27
27
|
key: 2,
|
|
28
28
|
class: "expanded-row"
|
|
29
29
|
}, Ke = {
|
|
@@ -73,12 +73,12 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
73
73
|
setup(l, { expose: m, emit: h }) {
|
|
74
74
|
const a = l;
|
|
75
75
|
me((s) => ({
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"
|
|
76
|
+
"30f420c8": l.zIndexBase,
|
|
77
|
+
"25787d10": t(le),
|
|
78
|
+
"71198c09": t(G),
|
|
79
|
+
"31cbe0b7": t(fe)
|
|
80
80
|
}));
|
|
81
|
-
const
|
|
81
|
+
const v = be(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
82
82
|
list: p,
|
|
83
83
|
containerProps: z,
|
|
84
84
|
wrapperProps: J,
|
|
@@ -94,15 +94,15 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
94
94
|
toggleExpandRow: te,
|
|
95
95
|
cssExpandGridCol: le,
|
|
96
96
|
isRowExpanded: V,
|
|
97
|
-
hasCheckboxes:
|
|
97
|
+
hasCheckboxes: D,
|
|
98
98
|
activeMenuRow: se,
|
|
99
99
|
scrollTo: ae
|
|
100
|
-
} = Te(a, h), W = u(() => !!
|
|
101
|
-
() => a.title ||
|
|
100
|
+
} = Te(a, h), W = u(() => !!v.footer), ie = u(
|
|
101
|
+
() => a.title || v.title || _.value || v["table-header-actions"] || v["table-header-pre-search"]
|
|
102
102
|
), x = u({
|
|
103
103
|
get: () => a.search,
|
|
104
104
|
set: (s) => h("update:search", s)
|
|
105
|
-
}), oe = u(() => a.selection.length || 0),
|
|
105
|
+
}), oe = u(() => a.selection.length || 0), F = u(() => {
|
|
106
106
|
const s = a.rows.map((o, e) => a.getRowId(o, e));
|
|
107
107
|
return !!s.length && s.every((o) => E(o));
|
|
108
108
|
}), E = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, de = (s) => {
|
|
@@ -112,7 +112,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
112
112
|
)
|
|
113
113
|
), h("selectRow", !1)) : (B([...a.selection, s]), h("selectRow", !0));
|
|
114
114
|
}, ne = () => {
|
|
115
|
-
if (
|
|
115
|
+
if (F.value)
|
|
116
116
|
B([]), h("selectAll", !1);
|
|
117
117
|
else {
|
|
118
118
|
const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
@@ -124,7 +124,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
124
124
|
() => a.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
|
|
125
125
|
), ue = u(
|
|
126
126
|
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
|
|
127
|
-
),
|
|
127
|
+
), N = u(() => ({
|
|
128
128
|
class: {
|
|
129
129
|
sticky: a.isSelectionSticky,
|
|
130
130
|
bordered: a.isSelectionBordered
|
|
@@ -149,7 +149,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
149
149
|
"data-testid": `${l.testId}-${t($).CONTAINER}`,
|
|
150
150
|
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
151
151
|
}, [
|
|
152
|
-
|
|
152
|
+
b("table", {
|
|
153
153
|
ref: t(z).ref,
|
|
154
154
|
style: S(t(ee)),
|
|
155
155
|
class: f({
|
|
@@ -163,7 +163,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
163
163
|
t(ie) ? (i(), I(t($e), {
|
|
164
164
|
key: 0,
|
|
165
165
|
search: t(x),
|
|
166
|
-
"onUpdate:search": o[0] || (o[0] = (e) =>
|
|
166
|
+
"onUpdate:search": o[0] || (o[0] = (e) => ve(x) ? x.value = e : null),
|
|
167
167
|
title: l.title,
|
|
168
168
|
"is-sticky": l.isStickyHeader,
|
|
169
169
|
"show-search": l.showSearch,
|
|
@@ -181,14 +181,14 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
181
181
|
]),
|
|
182
182
|
_: 2
|
|
183
183
|
}, [
|
|
184
|
-
t(
|
|
184
|
+
t(v)["table-header-pre-search"] ? {
|
|
185
185
|
name: "table-header-pre-search",
|
|
186
186
|
fn: g(() => [
|
|
187
187
|
r(s.$slots, "table-header-pre-search")
|
|
188
188
|
]),
|
|
189
189
|
key: "0"
|
|
190
190
|
} : void 0,
|
|
191
|
-
t(
|
|
191
|
+
t(v)["table-header-actions"] ? {
|
|
192
192
|
name: "table-header-actions",
|
|
193
193
|
fn: g(() => [
|
|
194
194
|
r(s.$slots, "table-header-actions")
|
|
@@ -196,10 +196,10 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
196
196
|
key: "1"
|
|
197
197
|
} : void 0
|
|
198
198
|
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
199
|
-
|
|
199
|
+
b("thead", {
|
|
200
200
|
class: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
b("div", {
|
|
203
203
|
class: "sections",
|
|
204
204
|
"data-testid": `${l.testId}-${t($).SECTIONS}`
|
|
205
205
|
}, [
|
|
@@ -208,13 +208,13 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
208
208
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
209
209
|
}, [
|
|
210
210
|
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
211
|
-
|
|
211
|
+
b("div", {
|
|
212
212
|
style: S({ width: e.width + "px" }),
|
|
213
213
|
class: f({ section: !0 })
|
|
214
214
|
}, [
|
|
215
215
|
k(t(L), { variant: "body2" }, {
|
|
216
216
|
default: g(() => [
|
|
217
|
-
M(
|
|
217
|
+
M(O(e.title), 1)
|
|
218
218
|
]),
|
|
219
219
|
_: 2
|
|
220
220
|
}, 1024)
|
|
@@ -222,18 +222,18 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
222
222
|
])
|
|
223
223
|
], 2))), 128))
|
|
224
224
|
], 8, Le),
|
|
225
|
-
|
|
225
|
+
b("tr", {
|
|
226
226
|
style: S({ height: `${t(j)}px` })
|
|
227
227
|
}, [
|
|
228
|
-
t(
|
|
228
|
+
t(D) ? (i(), d("th", P({
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "checkbox-cell"
|
|
231
|
-
}, t(
|
|
231
|
+
}, t(N)), [
|
|
232
232
|
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
233
233
|
k(t(Q), {
|
|
234
234
|
disabled: l.isLoading,
|
|
235
|
-
"is-checked": t(
|
|
236
|
-
"is-indeterminate": !t(
|
|
235
|
+
"is-checked": t(F),
|
|
236
|
+
"is-indeterminate": !t(F) && t(oe) > 0,
|
|
237
237
|
"onUpdate:isChecked": ne
|
|
238
238
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
239
239
|
])
|
|
@@ -248,9 +248,9 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
248
248
|
}),
|
|
249
249
|
style: S(e.isSticky ? t(H)[e.id] : null),
|
|
250
250
|
onClick: (n) => e.isSortable ? t(Z)(e) : null,
|
|
251
|
-
|
|
251
|
+
onMouseenter: () => h("columnHover", e)
|
|
252
252
|
}, [
|
|
253
|
-
|
|
253
|
+
b("div", Fe, [
|
|
254
254
|
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
255
255
|
k(t(Re), {
|
|
256
256
|
text: e.helpText,
|
|
@@ -266,7 +266,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
266
266
|
})
|
|
267
267
|
}, {
|
|
268
268
|
default: g(() => [
|
|
269
|
-
M(
|
|
269
|
+
M(O(e.title), 1)
|
|
270
270
|
]),
|
|
271
271
|
_: 2
|
|
272
272
|
}, 1032, ["class"])
|
|
@@ -286,13 +286,13 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
286
286
|
"sort-order": l.sort.sortOrder
|
|
287
287
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
288
288
|
])
|
|
289
|
-
], 46,
|
|
289
|
+
], 46, De))), 128))
|
|
290
290
|
], 4),
|
|
291
|
-
l.showTotalsRow && t(p).length > 0 ? (i(), d("tr",
|
|
292
|
-
t(
|
|
291
|
+
l.showTotalsRow && t(p).length > 0 ? (i(), d("tr", Ne, [
|
|
292
|
+
t(D) ? (i(), d("td", P({
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "bg"
|
|
295
|
-
}, t(
|
|
295
|
+
}, t(N)), null, 16)) : c("", !0),
|
|
296
296
|
(i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("td", {
|
|
297
297
|
key: e.id,
|
|
298
298
|
class: f({
|
|
@@ -315,7 +315,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
315
315
|
], 6))), 128))
|
|
316
316
|
])) : c("", !0)
|
|
317
317
|
], 2),
|
|
318
|
-
|
|
318
|
+
b("tbody", null, [
|
|
319
319
|
t(p).length > 0 ? (i(), d("div", P({
|
|
320
320
|
key: 0,
|
|
321
321
|
class: "table-body-wrapper",
|
|
@@ -334,10 +334,10 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
334
334
|
onMouseenter: (y) => T.value = e.index,
|
|
335
335
|
onClick: (y) => h("clickRow", e.index)
|
|
336
336
|
}, [
|
|
337
|
-
t(
|
|
337
|
+
t(D) ? (i(), d("td", P({
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "checkbox-cell"
|
|
340
|
-
}, t(
|
|
340
|
+
}, t(N), {
|
|
341
341
|
style: t(A)[e.index]
|
|
342
342
|
}), [
|
|
343
343
|
k(t(Q), {
|
|
@@ -382,7 +382,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
382
382
|
}, () => [
|
|
383
383
|
k(t(L), { variant: "body1" }, {
|
|
384
384
|
default: g(() => [
|
|
385
|
-
M(
|
|
385
|
+
M(O(e.data[n]), 1)
|
|
386
386
|
]),
|
|
387
387
|
_: 2
|
|
388
388
|
}, 1024)
|
|
@@ -404,7 +404,7 @@ const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
|
404
404
|
})
|
|
405
405
|
])) : c("", !0)
|
|
406
406
|
], 46, ze))), 128))
|
|
407
|
-
], 16,
|
|
407
|
+
], 16, Oe)) : (i(), d("div", {
|
|
408
408
|
key: 1,
|
|
409
409
|
style: S(
|
|
410
410
|
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.chart-header[data-v-9a603520]{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}.chart-header--compact[data-v-9a603520]{padding-top:22px}.chart-header--compact .header-texts[data-v-9a603520]{flex-direction:row}.chart-header--compact .header-text[data-v-9a603520]{color:var(--text-secondary)}.header-row[data-v-9a603520]{display:flex;align-items:flex-end;gap:4px}.header-texts[data-v-9a603520]{display:flex;flex-direction:column;color:var(--text-primary);gap:4px;cursor:default}.header-actions[data-v-9a603520]{display:flex;align-items:center;gap:var(--spacing-200)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.column-picker[data-v-01c4e08f]{width:37.375rem;border-radius:var(--border-radius-lg);background:var(--background-modal-elevation)}.content[data-v-01c4e08f]{min-height:18.75rem;display:grid;grid-template-columns:1fr 1fr}.selected-list-wrapper[data-v-01c4e08f]{padding:.25rem 1rem 1rem}.scrollable-list[data-v-01c4e08f]{overflow-y:auto;max-height:24.625rem}.search-wrapper[data-v-01c4e08f]{height:3rem;padding:1rem 1rem .25rem}.options-list-wrapper[data-v-01c4e08f]{border-right:1px solid var(--common-divider)}.options-list[data-v-01c4e08f]{margin:0;list-style:none;padding:.3125rem .75rem}.options-list__item[data-v-01c4e08f]{margin-bottom:.5rem}.options-list[data-v-01c4e08f] .item-container{margin-bottom:1px;min-height:1.9375rem}.selected-list-header[data-v-01c4e08f]{height:3rem;padding:.25rem 1rem 0;display:flex;justify-content:space-between;align-items:center}.group-name[data-v-01c4e08f]{color:var(--text-secondary)}.inline-group[data-v-01c4e08f]{padding:.25rem .5rem}.no-result-container[data-v-01c4e08f]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sticky[data-v-b16780cd]{position:sticky}.table-container[data-v-b16780cd]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-b16780cd]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-b16780cd]{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-b16780cd]{display:inline-table}.table-row[data-v-b16780cd]{position:relative}.table-row.loading[data-v-b16780cd]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-b16780cd]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-b16780cd]{border-bottom:none}.expanded-row[data-v-b16780cd]{grid-column:var(--5a1e7908);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-b16780cd]{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-b16780cd]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-b16780cd],table th[data-v-b16780cd]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-b16780cd]:first-of-type,table th[data-v-b16780cd]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-b16780cd]:last-of-type,table th[data-v-b16780cd]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-b16780cd],table th.expand-toggle-cell[data-v-b16780cd]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-b16780cd]{border-bottom:none;z-index:calc(var(--0c9e7708) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-b16780cd]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--bccc3116)}table>thead>tr>th[data-v-b16780cd]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-b16780cd]{cursor:pointer}table>thead>tr>td[data-v-b16780cd]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-b16780cd],table>thead>tr>td.bordered[data-v-b16780cd]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-b16780cd],table>thead>tr>td.bordered.isStickyRight[data-v-b16780cd]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-b16780cd],table>thead>tr>td.isTextRight[data-v-b16780cd]{justify-content:flex-end}table>thead.sticky[data-v-b16780cd]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-b16780cd]{z-index:calc(var(--0c9e7708) + 2);top:var(--43a31123)}table .totals-row[data-v-b16780cd]{height:40px}table .totals-row[data-v-b16780cd]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-b16780cd]{background-color:var(--background-default)}table>tbody[data-v-b16780cd]{display:block}table>tbody>*>tr[data-v-b16780cd]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--bccc3116)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-b16780cd]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-b16780cd],table>tbody>*>tr.activeMenu>td[data-v-b16780cd]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-b16780cd]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-b16780cd]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-b16780cd]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-b16780cd]{justify-content:flex-end;text-align:right}.underlined[data-v-b16780cd]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-b16780cd]:hover{cursor:pointer}.section-container[data-v-b16780cd]{left:0}.sections[data-v-b16780cd]{display:flex}.section[data-v-b16780cd]{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-b16780cd]{width:100%}.empty-state[data-v-b16780cd]{min-height:250px}.floating-row[data-v-b16780cd]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--0c9e7708) + 1)}.floating-row *[data-v-b16780cd-s]{pointer-events:auto}.bg[data-v-b16780cd]{background:var(--background-default)}.useAvailableHeight[data-v-b16780cd]{height:100%}.disabled-scrolling[data-v-b16780cd]{overflow:hidden}
|