@ironsource/shared-ui 2.1.6-test.13 → 2.1.6-test.15
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_06e0871a_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/README.md +35 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +28 -0
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +67 -46
- package/components/alert/index.d.ts +104 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +6 -5
- package/components/autocomplete/index.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +7 -7
- package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
- package/components/button/v4/index.d.ts +61 -61
- package/components/chip/v4/Chip.types.d.ts +6 -0
- package/components/chip/v4/ChipV4.vue.d.ts +28 -35
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +28 -59
- package/components/chip/v4/index.d.ts +45 -148
- package/components/datePicker/common/DatePicker.common.js +14 -14
- package/components/datePicker/v4/DatePickerV4.vue2.js +3 -2
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +4 -3
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dropdown/common/Dropdown.common.js +80 -75
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +14 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
- package/components/dropdown/v4/DropdownV4.vue.d.ts +22 -6
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +81 -73
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +51 -45
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +332 -49
- package/components/dropdown/v4/index.js +7 -4
- package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
- package/components/emptyState/v3/index.d.ts +47 -47
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/icon/v4/Icon.types.d.ts +1 -1
- package/components/icon/v4/IconV4.vue.d.ts +16 -6
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +1 -1
- package/components/layout/FoldableSection.vue.js +5 -5
- package/components/layout/FoldableSection.vue2.js +1 -1
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +5 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +166 -162
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/components/table/v4/index.d.ts +16 -4
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/toggle/v4/index.d.ts +20 -20
- package/composables/useFormValidation.js +19 -13
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +1091 -632
- package/mocks/apps.d.ts +1 -0
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_1cc45a5d_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
- package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
|
@@ -4,27 +4,37 @@ declare const IconTypes: () => ({
|
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
name: string;
|
|
7
|
-
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
8
|
-
size: string;
|
|
7
|
+
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
9
8
|
color: string;
|
|
9
|
+
size: string;
|
|
10
|
+
height: string;
|
|
11
|
+
width: string;
|
|
10
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
11
13
|
name: {
|
|
12
14
|
type: import("vue").PropType<string>;
|
|
13
15
|
default: any;
|
|
14
16
|
};
|
|
15
17
|
type: {
|
|
16
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
18
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
17
19
|
default: string;
|
|
18
20
|
};
|
|
21
|
+
color: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
19
25
|
size: {
|
|
20
26
|
type: import("vue").PropType<string>;
|
|
21
27
|
default: any;
|
|
22
28
|
};
|
|
23
|
-
|
|
29
|
+
height: {
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
width: {
|
|
24
34
|
type: import("vue").PropType<string>;
|
|
25
35
|
default: any;
|
|
26
36
|
};
|
|
27
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "size" | "
|
|
37
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width">;
|
|
28
38
|
$attrs: {
|
|
29
39
|
[x: string]: unknown;
|
|
30
40
|
};
|
|
@@ -44,22 +54,32 @@ declare const IconTypes: () => ({
|
|
|
44
54
|
default: any;
|
|
45
55
|
};
|
|
46
56
|
type: {
|
|
47
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
57
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
48
58
|
default: string;
|
|
49
59
|
};
|
|
60
|
+
color: {
|
|
61
|
+
type: import("vue").PropType<string>;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
50
64
|
size: {
|
|
51
65
|
type: import("vue").PropType<string>;
|
|
52
66
|
default: any;
|
|
53
67
|
};
|
|
54
|
-
|
|
68
|
+
height: {
|
|
69
|
+
type: import("vue").PropType<string>;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
width: {
|
|
55
73
|
type: import("vue").PropType<string>;
|
|
56
74
|
default: any;
|
|
57
75
|
};
|
|
58
76
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
59
77
|
name: string;
|
|
60
|
-
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
61
|
-
size: string;
|
|
78
|
+
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
62
79
|
color: string;
|
|
80
|
+
size: string;
|
|
81
|
+
height: string;
|
|
82
|
+
width: string;
|
|
63
83
|
}, {}, string> & {
|
|
64
84
|
beforeCreate?: (() => void) | (() => void)[];
|
|
65
85
|
created?: (() => void) | (() => void)[];
|
|
@@ -86,14 +106,22 @@ declare const IconTypes: () => ({
|
|
|
86
106
|
default: any;
|
|
87
107
|
};
|
|
88
108
|
type: {
|
|
89
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
109
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
90
110
|
default: string;
|
|
91
111
|
};
|
|
112
|
+
color: {
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
114
|
+
default: any;
|
|
115
|
+
};
|
|
92
116
|
size: {
|
|
93
117
|
type: import("vue").PropType<string>;
|
|
94
118
|
default: any;
|
|
95
119
|
};
|
|
96
|
-
|
|
120
|
+
height: {
|
|
121
|
+
type: import("vue").PropType<string>;
|
|
122
|
+
default: any;
|
|
123
|
+
};
|
|
124
|
+
width: {
|
|
97
125
|
type: import("vue").PropType<string>;
|
|
98
126
|
default: any;
|
|
99
127
|
};
|
|
@@ -107,22 +135,32 @@ declare const IconTypes: () => ({
|
|
|
107
135
|
default: any;
|
|
108
136
|
};
|
|
109
137
|
type: {
|
|
110
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
138
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
111
139
|
default: string;
|
|
112
140
|
};
|
|
141
|
+
color: {
|
|
142
|
+
type: import("vue").PropType<string>;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
113
145
|
size: {
|
|
114
146
|
type: import("vue").PropType<string>;
|
|
115
147
|
default: any;
|
|
116
148
|
};
|
|
117
|
-
|
|
149
|
+
height: {
|
|
150
|
+
type: import("vue").PropType<string>;
|
|
151
|
+
default: any;
|
|
152
|
+
};
|
|
153
|
+
width: {
|
|
118
154
|
type: import("vue").PropType<string>;
|
|
119
155
|
default: any;
|
|
120
156
|
};
|
|
121
157
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
122
158
|
name: string;
|
|
123
|
-
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
124
|
-
size: string;
|
|
159
|
+
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
125
160
|
color: string;
|
|
161
|
+
size: string;
|
|
162
|
+
height: string;
|
|
163
|
+
width: string;
|
|
126
164
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
127
165
|
$slots: {
|
|
128
166
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InlineCopy.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../InlineCopy.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-893a203c"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../InlineCopy.
|
|
1
|
+
import "../../InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css"; import { defineComponent as f, computed as y, openBlock as i, createElementBlock as x, createBlock as T, unref as e, mergeProps as c, withCtx as n, createTextVNode as C, toDisplayString as h, createCommentVNode as z, createVNode as r } from "vue";
|
|
2
2
|
import I from "../icon/v4/IconV4.vue.js";
|
|
3
3
|
import k from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import { useClipboard as S } from "@vueuse/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../FoldableSection.
|
|
4
|
-
const
|
|
1
|
+
import e from "./FoldableSection.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1a5f0e2e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../FoldableSection.
|
|
1
|
+
import "../../FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css"; import { defineComponent as f, ref as v, watch as T, openBlock as s, createElementBlock as i, createElementVNode as g, mergeProps as d, unref as t, createVNode as a, withCtx as p, createTextVNode as h, toDisplayString as I, Transition as _, normalizeProps as y, renderSlot as N, createCommentVNode as C } from "vue";
|
|
2
2
|
import k from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import w from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import { useTestIdAttrs as x } from "../../utils/testIds.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; import { defineComponent as
|
|
1
|
+
import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; import { defineComponent as a, openBlock as l, createBlock as p, unref as t, withCtx as i, createVNode as m, createSlots as u, createTextVNode as c, toDisplayString as f } from "vue";
|
|
2
2
|
import b from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -6,41 +6,42 @@ import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
7
|
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
|
+
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
9
10
|
import g from "../dropdown/v4/OptionV4.vue.js";
|
|
10
11
|
import x from "../icon/v4/IconV4.vue.js";
|
|
11
|
-
const
|
|
12
|
+
const N = /* @__PURE__ */ a({
|
|
12
13
|
__name: "MultiBarMenu",
|
|
13
14
|
props: {
|
|
14
15
|
menuItems: { default: () => [] },
|
|
15
16
|
testId: { default: "" }
|
|
16
17
|
},
|
|
17
18
|
emits: ["selected"],
|
|
18
|
-
setup(o, { emit:
|
|
19
|
-
const
|
|
20
|
-
return (
|
|
19
|
+
setup(o, { emit: s }) {
|
|
20
|
+
const r = (n) => n.title;
|
|
21
|
+
return (n, d) => (l(), p(t(b), {
|
|
21
22
|
class: "multi-bar-menu",
|
|
22
23
|
options: o.menuItems,
|
|
23
|
-
"display-value":
|
|
24
|
+
"display-value": r,
|
|
24
25
|
"predefined-trigger": "icon-button",
|
|
25
26
|
placement: "right-end",
|
|
26
27
|
skidding: -20,
|
|
27
28
|
"test-id": o.testId,
|
|
28
|
-
"onUpdate:selected": d[0] || (d[0] = (e) =>
|
|
29
|
+
"onUpdate:selected": d[0] || (d[0] = (e) => s("selected", e))
|
|
29
30
|
}, {
|
|
30
31
|
default: i(({ option: e }) => [
|
|
31
|
-
|
|
32
|
+
m(t(g), {
|
|
32
33
|
option: e,
|
|
33
34
|
disabled: e.disabled
|
|
34
35
|
}, u({
|
|
35
36
|
default: i(() => [
|
|
36
|
-
c(" " + f(
|
|
37
|
+
c(" " + f(r(e)), 1)
|
|
37
38
|
]),
|
|
38
39
|
_: 2
|
|
39
40
|
}, [
|
|
40
41
|
e.icon ? {
|
|
41
42
|
name: "icon-start",
|
|
42
43
|
fn: i(() => [
|
|
43
|
-
|
|
44
|
+
m(t(x), {
|
|
44
45
|
name: e.icon,
|
|
45
46
|
size: "20px"
|
|
46
47
|
}, null, 8, ["name"])
|
|
@@ -54,5 +55,5 @@ const M = /* @__PURE__ */ m({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
N as default
|
|
58
59
|
};
|
|
@@ -18,15 +18,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
actionButtons: (Partial<{
|
|
19
19
|
variant: "text" | "contained" | "outlined";
|
|
20
20
|
disabled: boolean;
|
|
21
|
-
size: "small" | "medium" | "large" | "extraLarge";
|
|
22
21
|
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
22
|
+
size: "small" | "medium" | "large" | "extraLarge";
|
|
23
23
|
content: string;
|
|
24
24
|
loading: boolean;
|
|
25
25
|
testId: string;
|
|
26
26
|
startIconName: string;
|
|
27
27
|
endIconName: string;
|
|
28
|
-
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
29
|
-
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
28
|
+
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
29
|
+
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
30
30
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
variant: {
|
|
32
32
|
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
@@ -36,14 +36,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
36
|
type: import("vue").PropType<boolean>;
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
|
-
size: {
|
|
40
|
-
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
39
|
color: {
|
|
44
40
|
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
45
41
|
default: string;
|
|
46
42
|
};
|
|
43
|
+
size: {
|
|
44
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
47
|
content: {
|
|
48
48
|
type: import("vue").PropType<string>;
|
|
49
49
|
default: string;
|
|
@@ -65,14 +65,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
65
65
|
default: any;
|
|
66
66
|
};
|
|
67
67
|
startIconType: {
|
|
68
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
68
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
71
|
endIconType: {
|
|
72
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
72
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "
|
|
75
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "color" | "size" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
76
76
|
testId: string;
|
|
77
77
|
}>, {
|
|
78
78
|
type: string;
|
|
@@ -103,15 +103,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
103
103
|
actionButtons: (Partial<{
|
|
104
104
|
variant: "text" | "contained" | "outlined";
|
|
105
105
|
disabled: boolean;
|
|
106
|
-
size: "small" | "medium" | "large" | "extraLarge";
|
|
107
106
|
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
107
|
+
size: "small" | "medium" | "large" | "extraLarge";
|
|
108
108
|
content: string;
|
|
109
109
|
loading: boolean;
|
|
110
110
|
testId: string;
|
|
111
111
|
startIconName: string;
|
|
112
112
|
endIconName: string;
|
|
113
|
-
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
114
|
-
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
113
|
+
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
114
|
+
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
115
115
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
116
116
|
variant: {
|
|
117
117
|
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
@@ -121,14 +121,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
121
121
|
type: import("vue").PropType<boolean>;
|
|
122
122
|
default: boolean;
|
|
123
123
|
};
|
|
124
|
-
size: {
|
|
125
|
-
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
124
|
color: {
|
|
129
125
|
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
130
126
|
default: string;
|
|
131
127
|
};
|
|
128
|
+
size: {
|
|
129
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
132
|
content: {
|
|
133
133
|
type: import("vue").PropType<string>;
|
|
134
134
|
default: string;
|
|
@@ -150,14 +150,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
150
150
|
default: any;
|
|
151
151
|
};
|
|
152
152
|
startIconType: {
|
|
153
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
153
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
154
154
|
default: string;
|
|
155
155
|
};
|
|
156
156
|
endIconType: {
|
|
157
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
157
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
158
158
|
default: string;
|
|
159
159
|
};
|
|
160
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "
|
|
160
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "variant" | "disabled" | "color" | "size" | "content" | "loading" | "testId" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
161
161
|
testId: string;
|
|
162
162
|
}>, {
|
|
163
163
|
type: string;
|
|
@@ -24,6 +24,7 @@ export declare const tableCommon: (props: any, emit: any) => {
|
|
|
24
24
|
showBackToTopButton: import("vue").ComputedRef<boolean>;
|
|
25
25
|
containerStyle: import("vue").ComputedRef<CSSProperties>;
|
|
26
26
|
onScroll: (event: any) => void;
|
|
27
|
+
scrollTo: (index: number) => void;
|
|
27
28
|
savingRows: import("vue").Ref<any[]>;
|
|
28
29
|
floatingActionPosition: import("vue").Ref<number>;
|
|
29
30
|
hasExpandSlot: import("vue").ComputedRef<boolean>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { useVirtualList as
|
|
3
|
-
import { TableContext as
|
|
4
|
-
const
|
|
5
|
-
const m =
|
|
6
|
-
|
|
7
|
-
onClose({ rowIndex: t, cellIndex:
|
|
1
|
+
import { useSlots as K, ref as c, provide as N, computed as s, onMounted as V, nextTick as j } from "vue";
|
|
2
|
+
import { useVirtualList as q, useInfiniteScroll as F } from "@vueuse/core";
|
|
3
|
+
import { TableContext as J } from "./TableContext.js";
|
|
4
|
+
const Q = 46, U = 46, tt = (o, a) => {
|
|
5
|
+
const m = K(), u = c([]);
|
|
6
|
+
N(J, {
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
|
|
8
8
|
n && (u.value = [...u.value, t], a("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
10
|
-
cellIndex:
|
|
10
|
+
cellIndex: e,
|
|
11
11
|
value: n,
|
|
12
12
|
confirm: () => {
|
|
13
13
|
u.value = u.value.filter(
|
|
14
|
-
(
|
|
14
|
+
(l) => l !== t
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
@@ -20,99 +20,103 @@ const J = 46, Q = 46, p = (e, a) => {
|
|
|
20
20
|
C.value = t;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const x =
|
|
24
|
-
const t = (x.value ? `${
|
|
25
|
-
return
|
|
26
|
-
const
|
|
27
|
-
return `${
|
|
23
|
+
const x = s(() => !!o.selection), T = s(() => {
|
|
24
|
+
const t = (x.value ? `${U}px ` : "") + (g.value ? `${Q}px ` : "");
|
|
25
|
+
return o.columns.reduce((e, n) => {
|
|
26
|
+
const l = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
|
|
27
|
+
return `${e} ${l}`;
|
|
28
28
|
}, t);
|
|
29
|
-
}), g =
|
|
30
|
-
Array(
|
|
31
|
-
)), $ =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
}), g = s(() => !!m.expanded), y = c(null), C = c(null), H = s(() => Array(o.loadingRowCount).fill(
|
|
30
|
+
Array(o.columns.length).fill("")
|
|
31
|
+
)), $ = s(() => o.isLoading ? [...o.rows, ...H.value] : o.rows), { list: R, containerProps: i, wrapperProps: b, scrollTo: k } = q(
|
|
32
|
+
$,
|
|
33
|
+
{
|
|
34
|
+
itemHeight: g.value ? (t) => w[t] ?? o.rowHeight : o.rowHeight
|
|
35
|
+
}
|
|
36
|
+
), B = c(null), h = c(0), I = s(() => !!m.search), O = (t) => {
|
|
37
|
+
i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, a("onScroll", t.target.scrollTop);
|
|
35
38
|
};
|
|
36
|
-
|
|
37
|
-
h.value =
|
|
38
|
-
|
|
39
|
-
top:
|
|
39
|
+
V(() => {
|
|
40
|
+
h.value = i.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
|
|
41
|
+
i.ref.value?.scrollTo({
|
|
42
|
+
top: o.defaultScrollPosition,
|
|
40
43
|
behavior: "smooth"
|
|
41
44
|
});
|
|
42
45
|
}, 300);
|
|
43
46
|
});
|
|
44
|
-
const
|
|
47
|
+
const P = s(() => {
|
|
45
48
|
const [t] = R.value;
|
|
46
49
|
return t && t.index > 0;
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
}), A = s(() => i.style), E = s(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = _(e)), t), {}));
|
|
51
|
+
F(
|
|
52
|
+
i.ref,
|
|
50
53
|
() => {
|
|
51
|
-
|
|
54
|
+
o.isInfiniteScroll && a("loadMore");
|
|
52
55
|
},
|
|
53
|
-
{ distance:
|
|
56
|
+
{ distance: o.infiniteScrollThreshold }
|
|
54
57
|
);
|
|
55
|
-
function
|
|
56
|
-
|
|
58
|
+
function L() {
|
|
59
|
+
i.ref.value?.scrollTo({
|
|
57
60
|
top: 0,
|
|
58
61
|
behavior: "smooth"
|
|
59
62
|
});
|
|
60
63
|
}
|
|
61
|
-
function
|
|
62
|
-
if (!
|
|
64
|
+
function M(t) {
|
|
65
|
+
if (!o.sort)
|
|
63
66
|
return;
|
|
64
|
-
const
|
|
67
|
+
const e = o.sort.sortBy === t.id;
|
|
65
68
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
66
69
|
return;
|
|
67
|
-
let
|
|
68
|
-
|
|
70
|
+
let l = o.sort.sortOrder, f = o.sort.sortBy;
|
|
71
|
+
e ? l = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, a("update:sort", { sortBy: f, sortOrder: l });
|
|
69
72
|
}
|
|
70
|
-
function
|
|
71
|
-
const { isSticky:
|
|
72
|
-
if (!
|
|
73
|
+
function _(t) {
|
|
74
|
+
const { isSticky: e, width: n } = t;
|
|
75
|
+
if (!e || !n)
|
|
73
76
|
return null;
|
|
74
|
-
const
|
|
77
|
+
const l = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, v, S) => S < l ? r + v.width : r, 0), G = o.columns.reduce((r, v, S) => S > l ? r + v.width : r, 0);
|
|
75
78
|
return {
|
|
76
|
-
...t.isStickyRight ? { right: `${
|
|
79
|
+
...t.isStickyRight ? { right: `${G}px` } : { left: `${f}px` },
|
|
77
80
|
zIndex: 1
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
|
-
const d = c([]), w = {},
|
|
83
|
+
const d = c([]), w = {}, D = (t) => d.value.includes(t), W = async (t, e) => {
|
|
81
84
|
const n = d.value.indexOf(t);
|
|
82
85
|
if (n === -1) {
|
|
83
86
|
d.value.push(t);
|
|
84
|
-
const
|
|
85
|
-
await
|
|
87
|
+
const l = e.target.closest("tr");
|
|
88
|
+
await j(), l && (w[t] = l.offsetHeight);
|
|
86
89
|
} else
|
|
87
90
|
d.value.splice(n, 1), delete w[t];
|
|
88
|
-
},
|
|
89
|
-
() => `1 / span ${
|
|
91
|
+
}, X = s(() => `${o.rowHeight}px`), z = s(
|
|
92
|
+
() => `1 / span ${o.columns.length + 1}`
|
|
90
93
|
);
|
|
91
94
|
return {
|
|
92
95
|
list: R,
|
|
93
|
-
containerProps:
|
|
96
|
+
containerProps: i,
|
|
94
97
|
wrapperProps: b,
|
|
95
98
|
activeRow: y,
|
|
96
99
|
gridColumnTemplate: T,
|
|
97
|
-
floatingActionRef:
|
|
98
|
-
scrollToTop:
|
|
99
|
-
toggleSortOrder:
|
|
100
|
-
columnsStickyPositions:
|
|
101
|
-
hasSearchSlot:
|
|
102
|
-
showBackToTopButton:
|
|
103
|
-
containerStyle:
|
|
104
|
-
onScroll:
|
|
100
|
+
floatingActionRef: B,
|
|
101
|
+
scrollToTop: L,
|
|
102
|
+
toggleSortOrder: M,
|
|
103
|
+
columnsStickyPositions: E,
|
|
104
|
+
hasSearchSlot: I,
|
|
105
|
+
showBackToTopButton: P,
|
|
106
|
+
containerStyle: A,
|
|
107
|
+
onScroll: O,
|
|
108
|
+
scrollTo: k,
|
|
105
109
|
savingRows: u,
|
|
106
110
|
floatingActionPosition: h,
|
|
107
111
|
hasExpandSlot: g,
|
|
108
112
|
hasCheckboxes: x,
|
|
109
|
-
toggleExpandRow:
|
|
110
|
-
isRowExpanded:
|
|
111
|
-
cssRowHeight:
|
|
112
|
-
cssExpandGridCol:
|
|
113
|
+
toggleExpandRow: W,
|
|
114
|
+
isRowExpanded: D,
|
|
115
|
+
cssRowHeight: X,
|
|
116
|
+
cssExpandGridCol: z,
|
|
113
117
|
activeMenuRow: C
|
|
114
118
|
};
|
|
115
119
|
};
|
|
116
120
|
export {
|
|
117
|
-
|
|
121
|
+
tt as tableCommon
|
|
118
122
|
};
|
|
@@ -49,7 +49,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
49
|
searchPlaceholder: string;
|
|
50
50
|
searchAutoFocus: boolean;
|
|
51
51
|
zIndexBase: number;
|
|
52
|
-
}>, {
|
|
52
|
+
}>, {
|
|
53
|
+
scrollTo: (index: number) => void;
|
|
54
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
55
|
"update:sort": (newSort: Sort) => void;
|
|
54
56
|
"update:search": (query: string) => void;
|
|
55
57
|
"update:selection": (selection: unknown[]) => void;
|
|
@@ -64,6 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
66
|
loadMore: () => void;
|
|
65
67
|
selectAll: (value: boolean) => void;
|
|
66
68
|
selectRow: (value: boolean) => void;
|
|
69
|
+
clickRow: (rowIndex: number) => void;
|
|
67
70
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
68
71
|
title?: string;
|
|
69
72
|
columns: Column[];
|
|
@@ -129,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
129
132
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
130
133
|
onOnClearSearch?: () => any;
|
|
131
134
|
onSelectRow?: (value: boolean) => any;
|
|
135
|
+
onClickRow?: (rowIndex: number) => any;
|
|
132
136
|
}, {
|
|
133
137
|
sort: Sort;
|
|
134
138
|
title: string;
|
|
@@ -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
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-057abdf5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|