@ironsource/shared-ui 2.1.3-rc.2 → 2.1.3-rc.21
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/Alert.vue_vue_type_style_index_0_scoped_72bcdcd0_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_f9d4e49d_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +75 -0
- package/components/alert/Alert.vue.js +7 -0
- package/components/alert/Alert.vue2.js +87 -0
- package/components/alert/index.d.ts +220 -0
- package/components/alert/index.js +6 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +29 -26
- package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +99 -0
- package/components/autocomplete/index.d.ts +459 -0
- package/components/autocomplete/index.js +6 -0
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v3/IconButton.vue.d.ts +1 -1
- package/components/button/v3/index.d.ts +34 -34
- package/components/button/v4/ButtonV4.vue.d.ts +1 -1
- package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
- package/components/button/v4/index.d.ts +40 -40
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/index.d.ts +12 -12
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v4/index.d.ts +17 -17
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
- package/components/dropdown/v3/index.d.ts +159 -159
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
- package/components/dropdown/v4/index.d.ts +705 -610
- package/components/dropdown/v4/index.js +16 -10
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/FormCard.vue.d.ts +5 -0
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +62 -36
- package/components/forms/FormRow.vue.d.ts +10 -0
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +22 -29
- package/components/forms/index.d.ts +59 -2
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
- package/components/includeExclude/index.d.ts +168 -168
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +7 -7
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +84 -91
- package/components/input/v4/index.d.ts +122 -122
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- package/components/search/v3/Search.vue.d.ts +1 -1
- package/components/search/v3/index.d.ts +9 -9
- package/components/shared/FieldMaxLength.vue.d.ts +34 -0
- package/components/shared/FieldMaxLength.vue.js +7 -0
- package/components/shared/FieldMaxLength.vue2.js +24 -0
- package/components/skeleton/v4/index.d.ts +2 -2
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
- package/components/table/common/Table.types.d.ts +3 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +129 -123
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- package/components/table/v4/HelpIcon.vue.d.ts +40 -0
- package/components/table/v4/HelpIcon.vue.js +7 -0
- package/components/table/v4/HelpIcon.vue2.js +32 -0
- package/components/table/v4/index.d.ts +39 -39
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/tabs/v3/Tabs.vue.d.ts +1 -1
- package/components/tabs/v3/index.d.ts +20 -20
- package/components/textArea/v3/TextArea.vue.js +7 -0
- package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
- package/components/textArea/v4/TextAreaV4.vue.js +7 -0
- package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
- package/components/textArea/v4/index.d.ts +136 -0
- package/components/textArea/v4/index.js +6 -0
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +28 -28
- package/components/typography/index.d.ts +12 -12
- package/index.d.ts +2479 -1935
- package/index.js +131 -123
- package/package.json +11 -2
- package/testids/index.d.ts +9 -1
- package/testids/index.js +25 -24
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +0 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
- package/components/textArea/TextArea.vue.js +0 -7
- /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
- /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/textArea/{index.js → v3/index.js} +0 -0
|
@@ -16,10 +16,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
title?: string;
|
|
17
17
|
zIndex?: number;
|
|
18
18
|
actionButtons: (Partial<{
|
|
19
|
+
variant: "text" | "contained" | "outlined";
|
|
19
20
|
disabled: boolean;
|
|
20
21
|
size: "small" | "medium" | "large" | "extraLarge";
|
|
21
22
|
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
22
|
-
variant: "text" | "contained" | "outlined";
|
|
23
23
|
content: string;
|
|
24
24
|
loading: boolean;
|
|
25
25
|
testId: string;
|
|
@@ -28,6 +28,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
28
|
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
29
29
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
30
30
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
variant: {
|
|
32
|
+
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
disabled: {
|
|
32
36
|
type: import("vue").PropType<boolean>;
|
|
33
37
|
default: boolean;
|
|
@@ -40,10 +44,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
44
|
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
41
45
|
default: string;
|
|
42
46
|
};
|
|
43
|
-
variant: {
|
|
44
|
-
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
47
|
content: {
|
|
48
48
|
type: import("vue").PropType<string>;
|
|
49
49
|
default: string;
|
|
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
72
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
75
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "size" | "color" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
76
76
|
testId: string;
|
|
77
77
|
}>, {
|
|
78
78
|
type: string;
|
|
@@ -101,10 +101,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
101
101
|
title?: string;
|
|
102
102
|
zIndex?: number;
|
|
103
103
|
actionButtons: (Partial<{
|
|
104
|
+
variant: "text" | "contained" | "outlined";
|
|
104
105
|
disabled: boolean;
|
|
105
106
|
size: "small" | "medium" | "large" | "extraLarge";
|
|
106
107
|
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
107
|
-
variant: "text" | "contained" | "outlined";
|
|
108
108
|
content: string;
|
|
109
109
|
loading: boolean;
|
|
110
110
|
testId: string;
|
|
@@ -113,6 +113,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
113
113
|
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
114
114
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
115
115
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
116
|
+
variant: {
|
|
117
|
+
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
116
120
|
disabled: {
|
|
117
121
|
type: import("vue").PropType<boolean>;
|
|
118
122
|
default: boolean;
|
|
@@ -125,10 +129,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
129
|
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
126
130
|
default: string;
|
|
127
131
|
};
|
|
128
|
-
variant: {
|
|
129
|
-
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
132
|
content: {
|
|
133
133
|
type: import("vue").PropType<string>;
|
|
134
134
|
default: string;
|
|
@@ -157,7 +157,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
157
157
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
158
158
|
default: string;
|
|
159
159
|
};
|
|
160
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
160
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "size" | "color" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
161
161
|
testId: string;
|
|
162
162
|
}>, {
|
|
163
163
|
type: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
1
2
|
export type Row = unknown[];
|
|
2
3
|
export type Column = {
|
|
3
4
|
id: string;
|
|
@@ -9,6 +10,8 @@ export type Column = {
|
|
|
9
10
|
width?: number;
|
|
10
11
|
isTextRight?: boolean;
|
|
11
12
|
isStickyRight?: boolean;
|
|
13
|
+
helpText?: string;
|
|
14
|
+
helpTextPlacement?: TooltipPositions;
|
|
12
15
|
};
|
|
13
16
|
export type Section = {
|
|
14
17
|
id: string;
|
|
@@ -128,10 +128,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
128
128
|
title: string;
|
|
129
129
|
search: string;
|
|
130
130
|
testId: string;
|
|
131
|
+
isLoading: boolean;
|
|
132
|
+
searchAutoFocus: boolean;
|
|
131
133
|
searchPlaceholder: string;
|
|
132
134
|
selection: unknown[];
|
|
133
|
-
searchAutoFocus: boolean;
|
|
134
|
-
isLoading: boolean;
|
|
135
135
|
isSticky: boolean;
|
|
136
136
|
sections: Section[];
|
|
137
137
|
isStickyHeader: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9b108af3"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; import { defineComponent as se, useCssVars as ae, unref as e, useSlots as ie, computed as g, openBlock as i, createElementBlock as l, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
|
|
2
|
+
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as f } from "../../../testids/index.js";
|
|
7
7
|
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
8
|
import re from "./SortIcon.vue.js";
|
|
9
|
-
import ue from "./
|
|
10
|
-
import he from "
|
|
11
|
-
import
|
|
12
|
-
|
|
9
|
+
import ue from "./HelpIcon.vue.js";
|
|
10
|
+
import he from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ye from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as fe } from "@vueuse/core";
|
|
13
|
+
const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "checkbox-cell"
|
|
15
16
|
}, Te = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "expand-toggle-cell"
|
|
18
|
-
}, Ce = ["onClick"],
|
|
19
|
+
}, Ce = ["onClick"], Ee = { class: "table-head-container" }, Be = ["data-testid"], Ie = ["onMouseenter"], pe = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "checkbox-cell"
|
|
21
22
|
}, we = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "expand-toggle-cell"
|
|
24
|
-
},
|
|
25
|
+
}, Pe = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "expanded-row"
|
|
27
|
-
},
|
|
28
|
+
}, Ve = { key: 1 }, He = {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "table-footer"
|
|
30
|
-
},
|
|
31
|
+
}, We = /* @__PURE__ */ se({
|
|
31
32
|
__name: "DataGrid",
|
|
32
33
|
props: {
|
|
33
34
|
title: { default: "" },
|
|
@@ -59,38 +60,38 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
59
60
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
|
|
60
61
|
setup(s, { emit: S }) {
|
|
61
62
|
const o = s;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
63
|
+
ae((a) => ({
|
|
64
|
+
"634e78fd": s.zIndexBase,
|
|
65
|
+
"279a8c9e": e(J),
|
|
66
|
+
"7237246a": e(L),
|
|
67
|
+
"79cce51c": e(q)
|
|
67
68
|
}));
|
|
68
|
-
const
|
|
69
|
-
list:
|
|
69
|
+
const v = ie(), {
|
|
70
|
+
list: H,
|
|
70
71
|
containerProps: U,
|
|
71
72
|
wrapperProps: G,
|
|
72
|
-
activeRow:
|
|
73
|
-
gridColumnTemplate:
|
|
74
|
-
toggleSortOrder:
|
|
75
|
-
columnsStickyPositions:
|
|
76
|
-
hasSearchSlot:
|
|
77
|
-
containerStyle:
|
|
78
|
-
onScroll:
|
|
79
|
-
savingRows:
|
|
80
|
-
hasExpandSlot:
|
|
81
|
-
toggleExpandRow:
|
|
82
|
-
cssRowHeight:
|
|
83
|
-
cssExpandGridCol:
|
|
84
|
-
isRowExpanded:
|
|
85
|
-
hasCheckboxes:
|
|
86
|
-
activeMenuRow:
|
|
87
|
-
} = ce(o, S),
|
|
73
|
+
activeRow: w,
|
|
74
|
+
gridColumnTemplate: L,
|
|
75
|
+
toggleSortOrder: Y,
|
|
76
|
+
columnsStickyPositions: M,
|
|
77
|
+
hasSearchSlot: Q,
|
|
78
|
+
containerStyle: W,
|
|
79
|
+
onScroll: A,
|
|
80
|
+
savingRows: N,
|
|
81
|
+
hasExpandSlot: b,
|
|
82
|
+
toggleExpandRow: j,
|
|
83
|
+
cssRowHeight: q,
|
|
84
|
+
cssExpandGridCol: J,
|
|
85
|
+
isRowExpanded: P,
|
|
86
|
+
hasCheckboxes: F,
|
|
87
|
+
activeMenuRow: K
|
|
88
|
+
} = ce(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), V = g(() => {
|
|
88
89
|
const a = o.rows.map((d, t) => o.getRowId(d, t));
|
|
89
90
|
return a.length && a.every((d) => $(d));
|
|
90
|
-
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1,
|
|
91
|
+
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
|
|
91
92
|
$(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
|
|
92
|
-
},
|
|
93
|
-
if (
|
|
93
|
+
}, _ = () => {
|
|
94
|
+
if (V.value)
|
|
94
95
|
R([]);
|
|
95
96
|
else {
|
|
96
97
|
const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
|
|
@@ -98,72 +99,72 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
98
99
|
}
|
|
99
100
|
}, R = (a) => {
|
|
100
101
|
S("update:selection", a);
|
|
101
|
-
},
|
|
102
|
-
() => o.emptyStateVariant ?? (
|
|
103
|
-
),
|
|
104
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
102
|
+
}, ee = g(
|
|
103
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
104
|
+
), te = g(
|
|
105
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
105
106
|
);
|
|
106
107
|
return (a, d) => (i(), l("div", {
|
|
107
108
|
class: "table-container",
|
|
108
109
|
"data-testid": `${s.testId}-${e(f).CONTAINER}`,
|
|
109
|
-
onMouseleave: d[2] || (d[2] = (t) =>
|
|
110
|
+
onMouseleave: d[2] || (d[2] = (t) => w.value = null)
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
+
u("table", {
|
|
112
113
|
ref: e(U).ref,
|
|
113
|
-
style:
|
|
114
|
+
style: x(e(W)),
|
|
114
115
|
class: y({
|
|
115
|
-
hasFooter: e(
|
|
116
|
+
hasFooter: e(O)
|
|
116
117
|
}),
|
|
117
118
|
"data-testid": `${s.testId}-${e(f).TABLE}`,
|
|
118
119
|
onScrollPassive: d[1] || (d[1] = //@ts-ignore
|
|
119
|
-
(...t) => e(
|
|
120
|
+
(...t) => e(A) && e(A)(...t))
|
|
120
121
|
}, [
|
|
121
|
-
s.title || e(
|
|
122
|
+
s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
|
|
122
123
|
key: 0,
|
|
123
124
|
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
124
125
|
"data-testid": `${s.testId}-${e(f).HEADER}`
|
|
125
126
|
}, [
|
|
126
|
-
|
|
127
|
+
u("div", {
|
|
127
128
|
class: "table-title",
|
|
128
129
|
"data-testid": `${s.testId}-${e(f).TITLE}`
|
|
129
130
|
}, [
|
|
130
131
|
c(a.$slots, "title", {}, () => [
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
h(e(p), { variant: "h3" }, {
|
|
133
|
+
default: T(() => [
|
|
134
|
+
C(E(s.title), 1)
|
|
134
135
|
]),
|
|
135
136
|
_: 1
|
|
136
137
|
})
|
|
137
138
|
], !0)
|
|
138
|
-
], 8,
|
|
139
|
-
|
|
139
|
+
], 8, ge),
|
|
140
|
+
u("div", {
|
|
140
141
|
class: "table-header-right",
|
|
141
142
|
"data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
|
|
142
143
|
}, [
|
|
143
144
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
modelValue: e(
|
|
147
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) =>
|
|
145
|
+
u("div", be, [
|
|
146
|
+
h(e(ye), {
|
|
147
|
+
modelValue: e(m),
|
|
148
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
|
|
148
149
|
placeholder: s.searchPlaceholder,
|
|
149
150
|
"auto-focus": s.searchAutoFocus,
|
|
150
151
|
"test-id": s.testId
|
|
151
152
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
152
153
|
])
|
|
153
|
-
], !0) :
|
|
154
|
-
], 8,
|
|
155
|
-
e(
|
|
154
|
+
], !0) : r("", !0)
|
|
155
|
+
], 8, ve),
|
|
156
|
+
e(v)["table-header-actions"] ? (i(), l("div", {
|
|
156
157
|
key: 0,
|
|
157
158
|
class: "table-header-actions",
|
|
158
159
|
"data-testid": `${s.testId}-${e(f).ACTIONS}`
|
|
159
160
|
}, [
|
|
160
161
|
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
161
|
-
], 8,
|
|
162
|
-
], 10, ke)) :
|
|
163
|
-
|
|
162
|
+
], 8, $e)) : r("", !0)
|
|
163
|
+
], 10, ke)) : r("", !0),
|
|
164
|
+
u("thead", {
|
|
164
165
|
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
165
166
|
}, [
|
|
166
|
-
|
|
167
|
+
u("div", {
|
|
167
168
|
class: "sections",
|
|
168
169
|
"data-testid": `${s.testId}-${e(f).SECTIONS}`
|
|
169
170
|
}, [
|
|
@@ -172,32 +173,32 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
172
173
|
class: y(["section-container", { sticky: t.isSticky }])
|
|
173
174
|
}, [
|
|
174
175
|
c(a.$slots, `section-${t.id}`, {}, () => [
|
|
175
|
-
|
|
176
|
-
style:
|
|
176
|
+
u("div", {
|
|
177
|
+
style: x({ width: t.width + "px" }),
|
|
177
178
|
class: y({ section: !0 })
|
|
178
179
|
}, [
|
|
179
|
-
|
|
180
|
-
default:
|
|
181
|
-
|
|
180
|
+
h(e(p), { variant: "body2" }, {
|
|
181
|
+
default: T(() => [
|
|
182
|
+
C(E(t.title), 1)
|
|
182
183
|
]),
|
|
183
184
|
_: 2
|
|
184
185
|
}, 1024)
|
|
185
186
|
], 4)
|
|
186
187
|
], !0)
|
|
187
188
|
], 2))), 128))
|
|
188
|
-
], 8,
|
|
189
|
-
|
|
190
|
-
e(
|
|
189
|
+
], 8, Re),
|
|
190
|
+
u("tr", null, [
|
|
191
|
+
e(F) ? (i(), l("th", xe, [
|
|
191
192
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
192
|
-
|
|
193
|
+
h(e(D), {
|
|
193
194
|
disabled: s.isLoading,
|
|
194
|
-
"is-checked": e(
|
|
195
|
-
"is-indeterminate": !e(
|
|
196
|
-
"onUpdate:isChecked":
|
|
195
|
+
"is-checked": e(V),
|
|
196
|
+
"is-indeterminate": !e(V) && e(X) > 0,
|
|
197
|
+
"onUpdate:isChecked": _
|
|
197
198
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
198
199
|
], !0)
|
|
199
|
-
])) :
|
|
200
|
-
e(
|
|
200
|
+
])) : r("", !0),
|
|
201
|
+
e(b) ? (i(), l("th", Te)) : r("", !0),
|
|
201
202
|
(i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
|
|
202
203
|
key: t.id,
|
|
203
204
|
class: y({
|
|
@@ -208,56 +209,61 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
208
209
|
isSortable: t.isSortable,
|
|
209
210
|
[`column-${t.id}`]: !0
|
|
210
211
|
}),
|
|
211
|
-
style:
|
|
212
|
-
onClick: (
|
|
212
|
+
style: x(t.isSticky ? e(M)[t.id] : null),
|
|
213
|
+
onClick: (k) => t.isSortable ? e(Y)(t) : null
|
|
213
214
|
}, [
|
|
214
|
-
|
|
215
|
+
u("div", Ee, [
|
|
215
216
|
c(a.$slots, `header-${t.id}`, { column: t }, () => [
|
|
216
|
-
|
|
217
|
-
default:
|
|
218
|
-
|
|
217
|
+
h(e(p), { variant: "tableLabel" }, {
|
|
218
|
+
default: T(() => [
|
|
219
|
+
C(E(t.title), 1)
|
|
219
220
|
]),
|
|
220
221
|
_: 2
|
|
221
222
|
}, 1024)
|
|
222
223
|
], !0),
|
|
223
|
-
t.
|
|
224
|
+
t.helpText ? (i(), z(ue, {
|
|
224
225
|
key: 0,
|
|
226
|
+
"hover-help-text": t.helpText,
|
|
227
|
+
"hover-help-text-placement": t.helpTextPlacement
|
|
228
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
229
|
+
t.isSortable && t.id === s.sort?.sortBy ? (i(), z(re, {
|
|
230
|
+
key: 1,
|
|
225
231
|
"sort-order": s.sort.sortOrder
|
|
226
|
-
}, null, 8, ["sort-order"])) :
|
|
232
|
+
}, null, 8, ["sort-order"])) : r("", !0)
|
|
227
233
|
])
|
|
228
234
|
], 14, Ce))), 128))
|
|
229
235
|
])
|
|
230
236
|
], 2),
|
|
231
|
-
|
|
232
|
-
e(
|
|
237
|
+
u("tbody", null, [
|
|
238
|
+
e(H).length > 0 ? (i(), l("div", de({
|
|
233
239
|
key: 0,
|
|
234
240
|
class: "table-body-wrapper",
|
|
235
241
|
"data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
|
|
236
242
|
}, e(G)), [
|
|
237
|
-
(i(!0), l(B, null, I(e(
|
|
243
|
+
(i(!0), l(B, null, I(e(H), (t) => (i(), l("tr", {
|
|
238
244
|
key: t.index,
|
|
239
245
|
class: y(["table-row", {
|
|
240
|
-
loading: s.isLoading || s.isLoading && !t.data || e(
|
|
241
|
-
active: e(
|
|
242
|
-
activeMenu: e(
|
|
243
|
-
expanded: e(
|
|
246
|
+
loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
|
|
247
|
+
active: e(w) === t.index,
|
|
248
|
+
activeMenu: e(K) === t.index,
|
|
249
|
+
expanded: e(b) && e(P)(t.index)
|
|
244
250
|
}]),
|
|
245
|
-
onMouseenter: (
|
|
251
|
+
onMouseenter: (k) => w.value = t.index
|
|
246
252
|
}, [
|
|
247
|
-
e(
|
|
248
|
-
|
|
253
|
+
e(F) ? (i(), l("td", pe, [
|
|
254
|
+
h(e(D), {
|
|
249
255
|
"is-checked": $(s.getRowId(t.data, t.index)),
|
|
250
256
|
size: "sm",
|
|
251
|
-
"onUpdate:isChecked": (
|
|
257
|
+
"onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
|
|
252
258
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
253
|
-
])) :
|
|
254
|
-
e(
|
|
255
|
-
|
|
256
|
-
expanded: e(
|
|
257
|
-
onClick: (
|
|
259
|
+
])) : r("", !0),
|
|
260
|
+
e(b) ? (i(), l("td", we, [
|
|
261
|
+
h(he, {
|
|
262
|
+
expanded: e(P)(t.index),
|
|
263
|
+
onClick: (k) => e(j)(t.index, k)
|
|
258
264
|
}, null, 8, ["expanded", "onClick"])
|
|
259
|
-
])) :
|
|
260
|
-
(i(!0), l(B, null, I(s.columns, (
|
|
265
|
+
])) : r("", !0),
|
|
266
|
+
(i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
|
|
261
267
|
key: n,
|
|
262
268
|
class: y({
|
|
263
269
|
sticky: s.columns[n].isSticky,
|
|
@@ -266,8 +272,8 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
266
272
|
isTextRight: s.columns[n].isTextRight,
|
|
267
273
|
[`column-${s.columns[n].id}`]: !0
|
|
268
274
|
}),
|
|
269
|
-
style:
|
|
270
|
-
s.columns[n].isSticky ? e(
|
|
275
|
+
style: x(
|
|
276
|
+
s.columns[n].isSticky ? e(M)[s.columns[n].id] : null
|
|
271
277
|
)
|
|
272
278
|
}, [
|
|
273
279
|
!s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
|
|
@@ -276,48 +282,48 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
276
282
|
}, [
|
|
277
283
|
c(a.$slots, `cell-${s.columns[n].id}`, {
|
|
278
284
|
cell: t.data[n],
|
|
279
|
-
isLoading: e(
|
|
285
|
+
isLoading: e(N).includes(t.index),
|
|
280
286
|
cellIndex: n,
|
|
281
287
|
row: t,
|
|
282
288
|
rowIndex: t.index
|
|
283
289
|
}, () => [
|
|
284
|
-
|
|
285
|
-
default:
|
|
286
|
-
|
|
290
|
+
h(e(p), { variant: "body1" }, {
|
|
291
|
+
default: T(() => [
|
|
292
|
+
C(E(t.data[n]), 1)
|
|
287
293
|
]),
|
|
288
294
|
_: 2
|
|
289
295
|
}, 1024)
|
|
290
296
|
], !0)
|
|
291
297
|
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
292
|
-
|
|
298
|
+
h(e(oe), { round: "" })
|
|
293
299
|
], !0)
|
|
294
300
|
], 6))), 128)),
|
|
295
|
-
e(
|
|
301
|
+
e(b) && e(P)(t.index) ? (i(), l("div", Pe, [
|
|
296
302
|
c(a.$slots, "expanded", {
|
|
297
303
|
row: t,
|
|
298
|
-
gridColumnTemplate: e(
|
|
304
|
+
gridColumnTemplate: e(L)
|
|
299
305
|
}, void 0, !0)
|
|
300
|
-
])) :
|
|
301
|
-
], 42,
|
|
302
|
-
], 16,
|
|
306
|
+
])) : r("", !0)
|
|
307
|
+
], 42, Ie))), 128))
|
|
308
|
+
], 16, Be)) : (i(), l("div", Ve, [
|
|
303
309
|
c(a.$slots, "empty-state", {}, () => [
|
|
304
|
-
|
|
310
|
+
h(e(ne), {
|
|
305
311
|
class: "empty-state",
|
|
306
312
|
title: s.emptyStateTitle,
|
|
307
|
-
subtitle: e(
|
|
308
|
-
variant: e(
|
|
313
|
+
subtitle: e(te),
|
|
314
|
+
variant: e(ee),
|
|
309
315
|
"test-id": `${s.testId}-${e(f).EMPTY_STATE}`
|
|
310
316
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
311
317
|
], !0)
|
|
312
318
|
]))
|
|
313
319
|
])
|
|
314
|
-
], 46,
|
|
315
|
-
e(
|
|
320
|
+
], 46, me),
|
|
321
|
+
e(O) ? (i(), l("div", He, [
|
|
316
322
|
c(a.$slots, "footer", {}, void 0, !0)
|
|
317
|
-
])) :
|
|
318
|
-
], 40,
|
|
323
|
+
])) : r("", !0)
|
|
324
|
+
], 40, Se));
|
|
319
325
|
}
|
|
320
326
|
});
|
|
321
327
|
export {
|
|
322
|
-
|
|
328
|
+
We as default
|
|
323
329
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as
|
|
1
|
+
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as n, createVNode as l, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
|
|
2
2
|
import g from "../../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
+
import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
7
9
|
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
8
10
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
9
11
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
10
|
-
const
|
|
12
|
+
const T = /* @__PURE__ */ p({
|
|
11
13
|
__name: "DataGridMenu",
|
|
12
14
|
props: {
|
|
13
15
|
menuItems: { default: () => [] },
|
|
@@ -15,33 +17,33 @@ const O = /* @__PURE__ */ p({
|
|
|
15
17
|
},
|
|
16
18
|
emits: ["selected"],
|
|
17
19
|
setup(r, { emit: u }) {
|
|
18
|
-
const t = r, i = y("DataGridMenu"), s = (
|
|
20
|
+
const t = r, i = y("DataGridMenu"), s = (m) => m.text, c = () => {
|
|
19
21
|
t.rowIndex && i.setActiveMenuRow(t.rowIndex);
|
|
20
22
|
}, a = () => {
|
|
21
23
|
t.rowIndex && i.setActiveMenuRow(null);
|
|
22
24
|
};
|
|
23
|
-
return f(a), (
|
|
25
|
+
return f(a), (m, d) => (x(), w(o(g), {
|
|
24
26
|
class: "data-grid-menu",
|
|
25
27
|
options: r.menuItems,
|
|
26
28
|
"display-value": s,
|
|
27
29
|
"predefined-trigger": "icon-button",
|
|
28
30
|
placement: "left-start",
|
|
29
31
|
skidding: -4,
|
|
30
|
-
"onUpdate:selected":
|
|
32
|
+
"onUpdate:selected": d[0] || (d[0] = (e) => u("selected", e)),
|
|
31
33
|
onOpened: c,
|
|
32
34
|
onClosed: a
|
|
33
35
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
default:
|
|
36
|
+
default: n(({ option: e }) => [
|
|
37
|
+
l(o(C), { option: e }, I({
|
|
38
|
+
default: n(() => [
|
|
37
39
|
v(" " + M(s(e)), 1)
|
|
38
40
|
]),
|
|
39
41
|
_: 2
|
|
40
42
|
}, [
|
|
41
43
|
e.icon ? {
|
|
42
44
|
name: "icon-start",
|
|
43
|
-
fn:
|
|
44
|
-
|
|
45
|
+
fn: n(() => [
|
|
46
|
+
l(o(k), {
|
|
45
47
|
class: "menu-icon",
|
|
46
48
|
name: e.icon,
|
|
47
49
|
size: "20px"
|
|
@@ -56,5 +58,5 @@ const O = /* @__PURE__ */ p({
|
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
export {
|
|
59
|
-
|
|
61
|
+
T as default
|
|
60
62
|
};
|