@ironsource/shared-ui 2.2.0-test.2 → 2.2.0-test.20
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/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_3ed9f4bc_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +43 -44
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +14 -12
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +73 -49
- package/components/chart/ChartPlane.vue.d.ts +5 -0
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +33 -31
- package/components/chart/ChartStoryArgs.d.ts +6 -0
- package/components/chart/index.d.ts +20 -1
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +39 -38
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +8 -3
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +27 -8
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +8 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +27 -8
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/includeExclude/index.d.ts +16 -16
- package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +80 -51
- package/components/inlineCopy/index.d.ts +27 -0
- package/components/snackbar/common/notify.js +25 -25
- package/components/snackbar/common/snackbar.common.js +19 -19
- package/components/snackbar/common/snackbar.types.d.ts +2 -1
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
- package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +82 -80
- package/components/table/v4/index.d.ts +7 -1
- package/components/table-cells/v3/Editable.vue.d.ts +1 -1
- package/components/table-cells/v3/index.d.ts +20 -20
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/tag/Tag.vue.d.ts +112 -0
- package/components/tag/Tag.vue.js +7 -0
- package/components/tag/Tag.vue2.js +221 -0
- package/components/tag/index.d.ts +161 -0
- package/components/tag/index.js +6 -0
- package/components/tagsField/index.d.ts +42 -3
- package/components/tagsField/index.js +6 -4
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +20 -1
- package/design-foundation.stories/colors/ColorsData.d.ts +1 -0
- package/index.d.ts +281 -82
- package/index.js +84 -78
- package/package.json +2 -7
- package/style/v4/colors.scss +1 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_afe44a65_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_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_cd41c5ca_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css"; import { defineComponent as $, computed as O, onMounted as x, nextTick as z, openBlock as s, createBlock as l, Transition as V, withCtx as y, withDirectives as I, createElementVNode as r, mergeProps as c, unref as e, createElementBlock as g, createVNode as U, createTextVNode as b, toDisplayString as B, createCommentVNode as u, renderSlot as N, vShow as S, Fragment as D, renderList as H, withModifiers as q } from "vue";
|
|
2
|
+
import F from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import G from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import P from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { snackbarCommon as
|
|
10
|
-
import { useTestIdAttrs as
|
|
8
|
+
import p from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import { snackbarCommon as R } from "../common/snackbar.common.js";
|
|
10
|
+
import { useTestIdAttrs as j } from "../../../utils/testIds.js";
|
|
11
11
|
import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
|
|
12
|
-
|
|
12
|
+
import J from "../../loader/v4/Loader.vue.js";
|
|
13
|
+
const K = ["id"], Q = { class: "container" }, W = { class: "texts" }, X = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "snackbar-icon-loading"
|
|
16
|
+
}, Y = { class: "message" }, Z = { class: "action-wrapper" }, _ = {
|
|
13
17
|
key: 0,
|
|
14
18
|
class: "actions"
|
|
15
|
-
},
|
|
19
|
+
}, ee = { class: "close-button-wrapper" }, fe = /* @__PURE__ */ $({
|
|
16
20
|
__name: "SnackbarV4",
|
|
17
21
|
props: {
|
|
18
22
|
customClass: null,
|
|
@@ -29,18 +33,19 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
29
33
|
title: { default: "" },
|
|
30
34
|
zIndex: { default: 0 },
|
|
31
35
|
actionButtons: null,
|
|
32
|
-
testId: { default: "" }
|
|
36
|
+
testId: { default: "" },
|
|
37
|
+
isLoading: { type: Boolean, default: !1 }
|
|
33
38
|
},
|
|
34
39
|
emits: ["destroy"],
|
|
35
|
-
setup(
|
|
36
|
-
const m =
|
|
37
|
-
visible:
|
|
38
|
-
horizontalClass:
|
|
39
|
-
positionStyle:
|
|
40
|
-
clearTimer:
|
|
41
|
-
startTimer:
|
|
42
|
-
close:
|
|
43
|
-
} =
|
|
40
|
+
setup(t, { expose: w }) {
|
|
41
|
+
const m = t, {
|
|
42
|
+
visible: L,
|
|
43
|
+
horizontalClass: A,
|
|
44
|
+
positionStyle: E,
|
|
45
|
+
clearTimer: C,
|
|
46
|
+
startTimer: v,
|
|
47
|
+
close: f
|
|
48
|
+
} = R(m), h = {
|
|
44
49
|
info: {
|
|
45
50
|
iconName: "info",
|
|
46
51
|
class: "snackbar-icon-info"
|
|
@@ -52,86 +57,102 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
52
57
|
success: {
|
|
53
58
|
iconName: "check-circle",
|
|
54
59
|
class: "snackbar-icon-success"
|
|
60
|
+
},
|
|
61
|
+
loading: {
|
|
62
|
+
iconName: "circle-notch"
|
|
55
63
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
64
|
+
}, k = O(() => h[m.type]), d = j(m.testId, i);
|
|
65
|
+
x(() => {
|
|
66
|
+
z(() => {
|
|
67
|
+
document.querySelectorAll(".snackbar-icon-loading circle").forEach((o) => {
|
|
68
|
+
o.setAttribute("r", "45%");
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
const M = ({ closeOnClick: a, onClick: o }) => () => {
|
|
73
|
+
a && f(), o && o();
|
|
58
74
|
};
|
|
59
|
-
return (
|
|
75
|
+
return w({
|
|
76
|
+
close: f
|
|
77
|
+
}), (a, o) => (s(), l(V, {
|
|
60
78
|
name: "snackbar",
|
|
61
|
-
onBeforeLeave:
|
|
62
|
-
onAfterLeave: o[3] || (o[3] = (
|
|
79
|
+
onBeforeLeave: t.onClose,
|
|
80
|
+
onAfterLeave: o[3] || (o[3] = (n) => a.$emit("destroy"))
|
|
63
81
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
I(
|
|
66
|
-
id:
|
|
67
|
-
class: ["snackbar light-theme-v4", [
|
|
68
|
-
style:
|
|
82
|
+
default: y(() => [
|
|
83
|
+
I(r("div", c({
|
|
84
|
+
id: t.id,
|
|
85
|
+
class: ["snackbar light-theme-v4", [t.customClass, e(A)]],
|
|
86
|
+
style: e(E),
|
|
69
87
|
role: "alert"
|
|
70
|
-
},
|
|
88
|
+
}, e(d)[e(i).CONTAINER], {
|
|
71
89
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
72
|
-
(...
|
|
90
|
+
(...n) => e(C) && e(C)(...n)),
|
|
73
91
|
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
74
|
-
(...
|
|
92
|
+
(...n) => e(v) && e(v)(...n)),
|
|
75
93
|
onClick: o[2] || (o[2] = //@ts-ignore
|
|
76
|
-
(...
|
|
94
|
+
(...n) => t.onClick && t.onClick(...n))
|
|
77
95
|
}), [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
r("div", Q, [
|
|
97
|
+
r("div", W, [
|
|
98
|
+
t.title ? (s(), l(e(p), c({
|
|
81
99
|
key: 0,
|
|
82
100
|
variant: "h4",
|
|
83
101
|
class: "title"
|
|
84
|
-
},
|
|
85
|
-
default:
|
|
86
|
-
|
|
87
|
-
|
|
102
|
+
}, e(d)[e(i).TITLE]), {
|
|
103
|
+
default: y(() => [
|
|
104
|
+
e(k) === h.loading ? (s(), g("div", X, [
|
|
105
|
+
U(J, { "stroke-width": 1 })
|
|
106
|
+
])) : (s(), l(e(F), c({
|
|
107
|
+
key: 1,
|
|
108
|
+
name: e(k).iconName,
|
|
88
109
|
type: "fill",
|
|
89
110
|
size: "20px",
|
|
90
|
-
class: [
|
|
91
|
-
},
|
|
92
|
-
|
|
111
|
+
class: [e(k).class, "icon-container"]
|
|
112
|
+
}, e(d)[e(i).ICON]), null, 16, ["name", "class"])),
|
|
113
|
+
b(" " + B(t.title), 1)
|
|
93
114
|
]),
|
|
94
115
|
_: 1
|
|
95
116
|
}, 16)) : u("", !0),
|
|
96
|
-
I(
|
|
97
|
-
|
|
98
|
-
|
|
117
|
+
I(r("div", Y, [
|
|
118
|
+
N(a.$slots, "default", {}, () => [
|
|
119
|
+
t.dangerouslyUseHTMLString ? u("", !0) : (s(), l(e(p), c({
|
|
99
120
|
key: 0,
|
|
100
121
|
variant: "body2"
|
|
101
|
-
},
|
|
102
|
-
default:
|
|
103
|
-
|
|
122
|
+
}, e(d)[e(i).MESSAGE]), {
|
|
123
|
+
default: y(() => [
|
|
124
|
+
b(B(t.message), 1)
|
|
104
125
|
]),
|
|
105
126
|
_: 1
|
|
106
127
|
}, 16))
|
|
107
128
|
], !0)
|
|
108
129
|
], 512), [
|
|
109
|
-
[
|
|
130
|
+
[S, t.message]
|
|
110
131
|
]),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
(
|
|
115
|
-
key:
|
|
116
|
-
"data-testid":
|
|
132
|
+
r("div", Z, [
|
|
133
|
+
N(a.$slots, "actions", {}, () => [
|
|
134
|
+
t.actionButtons ? (s(), g("div", _, [
|
|
135
|
+
(s(!0), g(D, null, H(t.actionButtons, (n, T) => (s(), l(e(G), c({
|
|
136
|
+
key: T,
|
|
137
|
+
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${T}` : "",
|
|
117
138
|
size: "small"
|
|
118
|
-
}, { ...
|
|
139
|
+
}, { ...n, onClick: M(n) }), null, 16, ["data-testid"]))), 128))
|
|
119
140
|
])) : u("", !0)
|
|
120
141
|
], !0)
|
|
121
142
|
])
|
|
122
143
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
r("div", ee, [
|
|
145
|
+
t.showClose ? (s(), l(e(P), c({
|
|
125
146
|
key: 0,
|
|
126
147
|
"icon-name": "x",
|
|
127
148
|
size: "small"
|
|
128
|
-
},
|
|
129
|
-
onClick:
|
|
149
|
+
}, e(d)[e(i).CLOSE], {
|
|
150
|
+
onClick: q(e(f), ["stop"])
|
|
130
151
|
}), null, 16, ["onClick"])) : u("", !0)
|
|
131
152
|
])
|
|
132
153
|
])
|
|
133
|
-
], 16,
|
|
134
|
-
[
|
|
154
|
+
], 16, K), [
|
|
155
|
+
[S, e(L)]
|
|
135
156
|
])
|
|
136
157
|
]),
|
|
137
158
|
_: 3
|
|
@@ -139,5 +160,5 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
139
160
|
}
|
|
140
161
|
});
|
|
141
162
|
export {
|
|
142
|
-
|
|
163
|
+
fe as default
|
|
143
164
|
};
|
|
@@ -7,12 +7,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
iconKey?: string;
|
|
8
8
|
tooltipTextKey?: string;
|
|
9
9
|
tooltipPlacement?: TooltipPositions;
|
|
10
|
+
iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
10
11
|
}>, {
|
|
11
12
|
testId: string;
|
|
12
13
|
variant: string;
|
|
13
14
|
iconKey: string;
|
|
14
15
|
tooltipTextKey: string;
|
|
15
16
|
tooltipPlacement: string;
|
|
17
|
+
iconSize: string;
|
|
16
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
19
|
"update:modelValue": (...args: any[]) => void;
|
|
18
20
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -23,18 +25,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
25
|
iconKey?: string;
|
|
24
26
|
tooltipTextKey?: string;
|
|
25
27
|
tooltipPlacement?: TooltipPositions;
|
|
28
|
+
iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
26
29
|
}>, {
|
|
27
30
|
testId: string;
|
|
28
31
|
variant: string;
|
|
29
32
|
iconKey: string;
|
|
30
33
|
tooltipTextKey: string;
|
|
31
34
|
tooltipPlacement: string;
|
|
35
|
+
iconSize: string;
|
|
32
36
|
}>>> & {
|
|
33
37
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
34
38
|
}, {
|
|
35
39
|
testId: string;
|
|
36
40
|
variant: 'primary' | 'default';
|
|
37
41
|
tooltipPlacement: TooltipPositions;
|
|
42
|
+
iconSize: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
|
|
38
43
|
iconKey: string;
|
|
39
44
|
tooltipTextKey: string;
|
|
40
45
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SwitchV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SwitchV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b71a806e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../../SwitchV4.
|
|
1
|
+
import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as u, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
|
|
2
2
|
import { useVModel as I } from "@vueuse/core";
|
|
3
|
-
import { SwitchTestIdModifiers as
|
|
3
|
+
import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
|
|
4
4
|
import "../../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import $ from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import z from "../../tooltip/v4/TooltipV4.vue.js";
|
|
9
|
+
const B = ["data-testid"], A = /* @__PURE__ */ T({
|
|
10
10
|
__name: "SwitchV4",
|
|
11
11
|
props: {
|
|
12
12
|
options: null,
|
|
@@ -15,7 +15,8 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
15
15
|
testId: { default: "" },
|
|
16
16
|
iconKey: { default: "icon" },
|
|
17
17
|
tooltipTextKey: { default: "tooltipText" },
|
|
18
|
-
tooltipPlacement: { default: "top" }
|
|
18
|
+
tooltipPlacement: { default: "top" },
|
|
19
|
+
iconSize: { default: "small" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:modelValue"],
|
|
21
22
|
setup(t, { emit: f }) {
|
|
@@ -28,11 +29,11 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
28
29
|
const v = (e, s) => {
|
|
29
30
|
n.value = s, p.value = e;
|
|
30
31
|
};
|
|
31
|
-
return (e, s) => (c(),
|
|
32
|
+
return (e, s) => (c(), u("div", {
|
|
32
33
|
class: m(["switch", [`switch--variant-${t.variant}`]]),
|
|
33
|
-
"data-testid": `${t.testId}-${a(
|
|
34
|
+
"data-testid": `${t.testId}-${a(r).WRAPPER}`
|
|
34
35
|
}, [
|
|
35
|
-
(c(!0),
|
|
36
|
+
(c(!0), u(x, null, V(t.options, (o, l) => (c(), w(a(z), {
|
|
36
37
|
key: l,
|
|
37
38
|
text: o[t.tooltipTextKey],
|
|
38
39
|
disabled: !o[t.tooltipTextKey],
|
|
@@ -43,15 +44,15 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
|
43
44
|
C(a($), {
|
|
44
45
|
class: m(["option", { "option--selected": d(l) }]),
|
|
45
46
|
"icon-name": o[t.iconKey],
|
|
46
|
-
size:
|
|
47
|
+
size: t.iconSize,
|
|
47
48
|
color: d(l) ? t.variant : "default",
|
|
48
|
-
"data-testid": `${t.testId}-${a(
|
|
49
|
-
onClick: (
|
|
50
|
-
}, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
|
|
49
|
+
"data-testid": `${t.testId}-${a(r).BUTTON}`,
|
|
50
|
+
onClick: (K) => v(o, l)
|
|
51
|
+
}, null, 8, ["class", "icon-name", "size", "color", "data-testid", "onClick"])
|
|
51
52
|
]),
|
|
52
53
|
_: 2
|
|
53
54
|
}, 1032, ["text", "disabled", "placement"]))), 128))
|
|
54
|
-
], 10,
|
|
55
|
+
], 10, B));
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
export {
|
|
@@ -16,6 +16,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
16
16
|
type: import("vue").PropType<unknown>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
+
iconSize: {
|
|
20
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
19
23
|
options: {
|
|
20
24
|
type: import("vue").PropType<unknown[]>;
|
|
21
25
|
required: true;
|
|
@@ -48,6 +52,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
48
52
|
type: import("vue").PropType<unknown>;
|
|
49
53
|
required: true;
|
|
50
54
|
};
|
|
55
|
+
iconSize: {
|
|
56
|
+
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
51
59
|
options: {
|
|
52
60
|
type: import("vue").PropType<unknown[]>;
|
|
53
61
|
required: true;
|
|
@@ -66,6 +74,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
66
74
|
testId: string;
|
|
67
75
|
variant: "default" | "primary";
|
|
68
76
|
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
77
|
+
iconSize: "small" | "medium" | "large" | "extraLarge" | "extraSmall";
|
|
69
78
|
iconKey: string;
|
|
70
79
|
tooltipTextKey: string;
|
|
71
80
|
}>[];
|
|
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
77
|
selectAll: (value: boolean) => void;
|
|
78
78
|
selectRow: (value: boolean) => void;
|
|
79
79
|
clickRow: (rowIndex: number) => void;
|
|
80
|
+
columnHover: (column: Column) => void;
|
|
80
81
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
81
82
|
title?: string;
|
|
82
83
|
columns: Column[];
|
|
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
153
154
|
onOnClearSearch?: () => any;
|
|
154
155
|
onClickRow?: (rowIndex: number) => any;
|
|
155
156
|
onSelectRow?: (value: boolean) => any;
|
|
157
|
+
onColumnHover?: (column: Column) => any;
|
|
156
158
|
}, {
|
|
157
159
|
sort: Sort;
|
|
158
160
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|