@ironsource/shared-ui 2.1.8-rc.6 → 2.1.8-rc.8
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/ButtonGroup.vue_vue_type_style_index_0_scoped_5497abe6_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +1 -0
- package/components/alert/Alert.vue2.js +3 -2
- package/components/button/v4/ButtonGroup.vue.d.ts +46 -0
- package/components/button/v4/ButtonGroup.vue.js +7 -0
- package/components/button/v4/ButtonGroup.vue2.js +19 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/button/v4/index.d.ts +72 -224
- package/components/button/v4/index.js +4 -2
- package/components/chart/Chart.vue.d.ts +15 -2
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +160 -141
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +31 -29
- package/components/chart/SettingsHeader.vue.d.ts +30 -0
- package/components/chart/SettingsHeader.vue.js +7 -0
- package/components/chart/SettingsHeader.vue2.js +57 -0
- package/components/chart/consts.d.ts +2 -0
- package/components/chart/consts.js +17 -11
- package/components/chart/index.d.ts +320 -74
- package/components/chart/types.d.ts +4 -0
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +21 -20
- package/components/dateRange/v4/DateRangeV4.vue2.js +3 -2
- package/components/dialog/v4/DialogV4.vue2.js +9 -8
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +5 -4
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +33 -31
- package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +6 -5
- package/components/dropdown/v4/index.d.ts +1 -0
- package/components/emptyState/v4/EmptyStateV4.vue2.js +15 -14
- package/components/forms/FormCard.vue2.js +3 -2
- package/components/loader/v4/index.js +6 -0
- package/components/multibar/MultiBar.vue2.js +19 -18
- package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
- package/components/switch/v4/SwitchV4.vue2.js +8 -7
- package/components/table/v4/ExpandRowToggle.vue2.js +9 -8
- package/index.d.ts +376 -156
- package/index.js +128 -126
- package/package.json +5 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_8c3b0c3f_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_1726ad49_lang.css +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; import { defineComponent as A, openBlock as o, createBlock as c, Teleport as w, createVNode as b, Transition as
|
|
2
|
-
import { NOOP as
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css"; import { defineComponent as A, openBlock as o, createBlock as c, Teleport as w, createVNode as b, Transition as p, withCtx as u, unref as e, createElementBlock as m, createElementVNode as C, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as d } from "vue";
|
|
2
|
+
import { NOOP as I } from "@vue/shared";
|
|
3
3
|
import T from "../../typography/v4/Typography.vue.js";
|
|
4
4
|
import N from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import V from "../../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
7
|
import { Reason as g } from "../common/Reason.js";
|
|
7
8
|
import { dialogCommon as D } from "../common/Dialog.common.js";
|
|
8
9
|
import { DialogTestIdModifiers as l } from "../../../testids/index.js";
|
|
@@ -14,7 +15,7 @@ const S = {
|
|
|
14
15
|
}, F = { class: "title" }, U = {
|
|
15
16
|
key: 1,
|
|
16
17
|
class: "footer"
|
|
17
|
-
},
|
|
18
|
+
}, X = /* @__PURE__ */ A({
|
|
18
19
|
__name: "DialogV4",
|
|
19
20
|
props: {
|
|
20
21
|
modelValue: { type: Boolean },
|
|
@@ -46,13 +47,13 @@ const S = {
|
|
|
46
47
|
});
|
|
47
48
|
const E = () => {
|
|
48
49
|
const { closeOnClickOutside: r, saveButtonLoading: n } = i;
|
|
49
|
-
r && !n ? y(g.Backdrop) :
|
|
50
|
+
r && !n ? y(g.Backdrop) : I();
|
|
50
51
|
};
|
|
51
52
|
return (r, n) => (o(), c(w, {
|
|
52
53
|
to: "body",
|
|
53
54
|
disabled: !t.appendToBody
|
|
54
55
|
}, [
|
|
55
|
-
b(
|
|
56
|
+
b(p, null, {
|
|
56
57
|
default: u(() => [
|
|
57
58
|
e(h) ? (o(), m("div", S, [
|
|
58
59
|
C("div", s({
|
|
@@ -85,7 +86,7 @@ const S = {
|
|
|
85
86
|
})) : d("", !0)
|
|
86
87
|
], !0)
|
|
87
88
|
]),
|
|
88
|
-
t.showCloseButton ? (o(), c(e(
|
|
89
|
+
t.showCloseButton ? (o(), c(e(V), s({
|
|
89
90
|
key: 0,
|
|
90
91
|
class: "close-button",
|
|
91
92
|
"icon-name": "x",
|
|
@@ -151,5 +152,5 @@ const S = {
|
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
154
|
export {
|
|
154
|
-
|
|
155
|
+
X as default
|
|
155
156
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css"; import { defineComponent as a, openBlock as l, createBlock as o, unref as i, normalizeClass as d } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import r from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
-
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
const b = /* @__PURE__ */ a({
|
|
5
6
|
__name: "ButtonDropdownTrigger",
|
|
6
7
|
props: {
|
|
7
8
|
label: null,
|
|
@@ -16,7 +17,7 @@ const I = /* @__PURE__ */ a({
|
|
|
16
17
|
},
|
|
17
18
|
emits: ["click"],
|
|
18
19
|
setup(e, { emit: n }) {
|
|
19
|
-
return (
|
|
20
|
+
return (c, t) => (l(), o(i(r), {
|
|
20
21
|
class: d(["button-trigger", { open: e.open }]),
|
|
21
22
|
disabled: e.disabled,
|
|
22
23
|
color: "default",
|
|
@@ -32,5 +33,5 @@ const I = /* @__PURE__ */ a({
|
|
|
32
33
|
}
|
|
33
34
|
});
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
b as default
|
|
36
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-fd7a490e"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css"; import { defineComponent as O, computed as c, openBlock as a, createElementBlock as n, createBlock as k, createCommentVNode as d, createElementVNode as u, mergeProps as m, unref as l, renderSlot as i, createVNode as r, withCtx as I, createTextVNode as B, toDisplayString as w } from "vue";
|
|
2
2
|
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
4
4
|
import h from "../../icon/v4/IconV4.vue.js";
|
|
5
5
|
import "../../icon/v4/IconFlag.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import A from "../../shared/FieldLabel.vue.js";
|
|
7
|
+
import { useTestIdAttrs as $ } from "../../../utils/testIds.js";
|
|
8
|
+
import x from "../../statusDot/StatusDot.vue.js";
|
|
9
|
+
const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "image"
|
|
12
12
|
}, C = ["src"], S = {
|
|
@@ -46,11 +46,11 @@ const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["click"],
|
|
48
48
|
setup(t, { emit: T }) {
|
|
49
|
-
const e = t, g =
|
|
49
|
+
const e = t, g = c(
|
|
50
50
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
51
|
-
),
|
|
51
|
+
), v = () => {
|
|
52
52
|
T("click");
|
|
53
|
-
}, f =
|
|
53
|
+
}, f = $(e.testId, p), b = c(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), s = c(() => {
|
|
54
54
|
if (!e.selectedOption)
|
|
55
55
|
return null;
|
|
56
56
|
if (!e.multi)
|
|
@@ -58,8 +58,8 @@ const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
58
58
|
if (Array.isArray(e.selectedOption))
|
|
59
59
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
60
60
|
});
|
|
61
|
-
return (
|
|
62
|
-
t.label ? (
|
|
61
|
+
return (o, y) => (a(), n("div", D, [
|
|
62
|
+
t.label ? (a(), k(A, {
|
|
63
63
|
key: 0,
|
|
64
64
|
label: t.label,
|
|
65
65
|
mandatory: t.mandatory,
|
|
@@ -69,44 +69,46 @@ const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
69
69
|
"test-id": t.testId,
|
|
70
70
|
class: "dropdown-field-label"
|
|
71
71
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : d("", !0),
|
|
72
|
-
|
|
72
|
+
u("div", m({
|
|
73
73
|
class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
|
|
74
74
|
}, l(f)[l(p).BUTTON_WRAPPER], {
|
|
75
|
-
onClick: y[0] || (y[0] = (H) =>
|
|
75
|
+
onClick: y[0] || (y[0] = (H) => v())
|
|
76
76
|
}), [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
t.optionImageKey ? (
|
|
77
|
+
u("div", N, [
|
|
78
|
+
o.$slots.image || l(s) && t.optionImageKey ? (a(), n("div", K, [
|
|
79
|
+
i(o.$slots, "image", {}, () => [
|
|
80
|
+
t.optionImageKey ? (a(), n("img", {
|
|
81
81
|
key: 0,
|
|
82
82
|
src: l(s)[t.optionImageKey]
|
|
83
83
|
}, null, 8, C)) : d("", !0)
|
|
84
84
|
], !0)
|
|
85
85
|
])) : d("", !0),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), n("div", S, [
|
|
87
|
+
i(o.$slots, "icon-start", {}, () => [
|
|
88
|
+
r(l(h), {
|
|
89
89
|
type: t.optionIconType,
|
|
90
90
|
name: l(s)[t.optionIconKey],
|
|
91
91
|
size: "20px"
|
|
92
92
|
}, null, 8, ["type", "name"])
|
|
93
93
|
], !0)
|
|
94
94
|
])) : d("", !0),
|
|
95
|
-
t.statusDotType ? (
|
|
96
|
-
|
|
95
|
+
t.statusDotType ? (a(), n("div", P, [
|
|
96
|
+
r(l(x), { type: t.statusDotType }, null, 8, ["type"])
|
|
97
97
|
])) : d("", !0),
|
|
98
|
-
i(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
i(o.$slots, "displayed-value", {}, () => [
|
|
99
|
+
r(l(V), m({ variant: "body1" }, l(f)[l(p).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
100
|
+
default: I(() => [
|
|
101
|
+
B(w(l(b)), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 16)
|
|
105
|
+
], !0)
|
|
104
106
|
]),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
o.$slots["end-icon"] ? (a(), n("div", z, [
|
|
108
|
+
i(o.$slots, "end-icon", {}, void 0, !0)
|
|
107
109
|
])) : d("", !0),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
u("div", E, [
|
|
111
|
+
r(l(h), {
|
|
110
112
|
name: "caret-down",
|
|
111
113
|
size: "20px"
|
|
112
114
|
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as se, computed as H, openBlock as i, createElementBlock as n, mergeProps as u, unref as t, renderSlot as I, createElementVNode as m, createVNode as a, withCtx as c, Transition as ue, normalizeClass as K, normalizeStyle as ce, isRef as ye, createCommentVNode as r, createTextVNode as T, toDisplayString as fe, withModifiers as U, Fragment as me, renderList as pe, toRaw as w, createBlock as W, resolveDynamicComponent as ge } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
4
5
|
import "./DropdownV4.vue.js";
|
|
5
6
|
import Te from "./DefaultDropdownTrigger.vue.js";
|
|
6
7
|
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
@@ -32,7 +33,7 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
|
|
|
32
33
|
}, Pe = { key: 2 }, Re = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
33
34
|
key: 1,
|
|
34
35
|
class: "actions-wrapper"
|
|
35
|
-
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" },
|
|
36
|
+
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, ct = /* @__PURE__ */ se({
|
|
36
37
|
__name: "DropdownV4",
|
|
37
38
|
props: {
|
|
38
39
|
modelValue: { default: null },
|
|
@@ -449,5 +450,5 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be
|
|
|
449
450
|
}
|
|
450
451
|
});
|
|
451
452
|
export {
|
|
452
|
-
|
|
453
|
+
ct as default
|
|
453
454
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import "../../../IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css"; import { defineComponent as
|
|
1
|
+
import "../../../IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css"; import { defineComponent as e, openBlock as r, createBlock as n, unref as p, mergeProps as c } from "vue";
|
|
2
2
|
import "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import m from "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
-
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
const l = /* @__PURE__ */ e({
|
|
5
6
|
__name: "IconButtonDropdownTrigger",
|
|
6
7
|
props: {
|
|
7
8
|
testId: { default: "" }
|
|
8
9
|
},
|
|
9
10
|
setup(o) {
|
|
10
|
-
const
|
|
11
|
+
const t = o;
|
|
11
12
|
return (s, u) => (r(), n(p(m), c({
|
|
12
13
|
"icon-name": "dots-three",
|
|
13
14
|
type: "bold"
|
|
14
|
-
},
|
|
15
|
+
}, t), null, 16));
|
|
15
16
|
}
|
|
16
17
|
});
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
l as default
|
|
19
20
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css"; import
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css"; import p from "../../../_virtual/dynamic-import-helper.js";
|
|
2
|
+
import { defineComponent as v, computed as y, defineAsyncComponent as b, openBlock as e, createElementBlock as k, createBlock as n, unref as i, createCommentVNode as a, createElementVNode as N, renderSlot as m, withCtx as c, createTextVNode as r, toDisplayString as l } from "vue";
|
|
3
3
|
import I from "../../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
|
+
import u from "../../typography/v4/Typography.vue.js";
|
|
6
7
|
import { capitalizeFirstLetter as C, snakeCaseToCamelCase as T } from "../../../utils/string.js";
|
|
7
8
|
import S from "../../icon/v4/IconV4.vue.js";
|
|
8
9
|
import "../../icon/v4/IconFlag.vue.js";
|
|
9
|
-
const g = { class: "empty-state" }, x = { class: "title-wrapper" },
|
|
10
|
+
const g = { class: "empty-state" }, x = { class: "title-wrapper" }, R = /* @__PURE__ */ v({
|
|
10
11
|
__name: "EmptyStateV4",
|
|
11
12
|
props: {
|
|
12
13
|
title: { default: "No data to display" },
|
|
@@ -19,9 +20,9 @@ const g = { class: "empty-state" }, x = { class: "title-wrapper" }, F = /* @__PU
|
|
|
19
20
|
},
|
|
20
21
|
emits: ["click"],
|
|
21
22
|
setup(t) {
|
|
22
|
-
const d = t, f =
|
|
23
|
+
const d = t, f = y(() => {
|
|
23
24
|
const o = C(T(d.variant));
|
|
24
|
-
return b(() =>
|
|
25
|
+
return b(() => p(/* @__PURE__ */ Object.assign({ "./icons/IconError.vue": () => import("./icons/IconError.vue.js"), "./icons/IconFiles.vue": () => import("./icons/IconFiles.vue.js"), "./icons/IconNoAccess.vue": () => import("./icons/IconNoAccess.vue.js"), "./icons/IconNoData.vue": () => import("./icons/IconNoData.vue.js"), "./icons/IconNoResults.vue": () => import("./icons/IconNoResults.vue.js"), "./icons/IconSettings.vue": () => import("./icons/IconSettings.vue.js") }), `./icons/Icon${o}.vue`));
|
|
25
26
|
});
|
|
26
27
|
return (o, s) => (e(), k("div", g, [
|
|
27
28
|
t.variant && !t.iconName ? (e(), n(i(f), {
|
|
@@ -36,30 +37,30 @@ const g = { class: "empty-state" }, x = { class: "title-wrapper" }, F = /* @__PU
|
|
|
36
37
|
type: t.iconType
|
|
37
38
|
}, null, 8, ["name", "size", "type"])) : a("", !0),
|
|
38
39
|
N("div", x, [
|
|
39
|
-
|
|
40
|
-
t.title ? (e(), n(i(
|
|
40
|
+
m(o.$slots, "content", {}, () => [
|
|
41
|
+
t.title ? (e(), n(i(u), {
|
|
41
42
|
key: 0,
|
|
42
43
|
variant: "h4",
|
|
43
44
|
class: "title"
|
|
44
45
|
}, {
|
|
45
46
|
default: c(() => [
|
|
46
|
-
l(
|
|
47
|
+
r(l(t.title), 1)
|
|
47
48
|
]),
|
|
48
49
|
_: 1
|
|
49
50
|
})) : a("", !0),
|
|
50
|
-
t.subtitle ? (e(), n(i(
|
|
51
|
+
t.subtitle ? (e(), n(i(u), {
|
|
51
52
|
key: 1,
|
|
52
53
|
variant: "body1",
|
|
53
54
|
class: "subtitle"
|
|
54
55
|
}, {
|
|
55
56
|
default: c(() => [
|
|
56
|
-
l(
|
|
57
|
+
r(l(t.subtitle), 1)
|
|
57
58
|
]),
|
|
58
59
|
_: 1
|
|
59
60
|
})) : a("", !0)
|
|
60
61
|
], !0)
|
|
61
62
|
]),
|
|
62
|
-
|
|
63
|
+
m(o.$slots, "button", {}, () => [
|
|
63
64
|
t.buttonText ? (e(), n(i(I), {
|
|
64
65
|
key: 0,
|
|
65
66
|
variant: "outlined",
|
|
@@ -68,7 +69,7 @@ const g = { class: "empty-state" }, x = { class: "title-wrapper" }, F = /* @__PU
|
|
|
68
69
|
onClick: s[0] || (s[0] = (z) => o.$emit("click"))
|
|
69
70
|
}, {
|
|
70
71
|
default: c(() => [
|
|
71
|
-
l(
|
|
72
|
+
r(l(t.buttonText), 1)
|
|
72
73
|
]),
|
|
73
74
|
_: 1
|
|
74
75
|
})) : a("", !0)
|
|
@@ -77,5 +78,5 @@ const g = { class: "empty-state" }, x = { class: "title-wrapper" }, F = /* @__PU
|
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
R as default
|
|
81
82
|
};
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import b from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import k from "../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import "../button/v4/IconButtonV4.vue.js";
|
|
5
|
+
import "../button/v4/ButtonGroup.vue.js";
|
|
5
6
|
import { FormCardTestIdModifiers as o } from "../../testids/index.js";
|
|
6
7
|
import { useTestIdAttrs as N } from "../../utils/testIds.js";
|
|
7
8
|
import i from "../skeleton/v4/SkeletonV4.vue.js";
|
|
8
9
|
const h = { class: "form-card" }, p = {
|
|
9
10
|
key: 1,
|
|
10
11
|
class: "content-skeleton-container"
|
|
11
|
-
},
|
|
12
|
+
}, z = /* @__PURE__ */ B({
|
|
12
13
|
__name: "FormCard",
|
|
13
14
|
props: {
|
|
14
15
|
title: { default: "" },
|
|
@@ -97,5 +98,5 @@ const h = { class: "form-card" }, p = {
|
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
z as default
|
|
101
102
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../../MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css"; import { defineComponent as k, computed as v, openBlock as l, createBlock as d, Teleport as x, createVNode as u, Transition as g, withCtx as c, unref as
|
|
1
|
+
import "../../MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css"; import { defineComponent as k, computed as v, openBlock as l, createBlock as d, Teleport as x, createVNode as u, Transition as g, withCtx as c, unref as t, createElementBlock as r, mergeProps as B, createElementVNode as V, createTextVNode as h, toDisplayString as A, createCommentVNode as m, Fragment as z, renderList as M, normalizeClass as N } from "vue";
|
|
2
2
|
import { useVModel as $ } from "@vueuse/core";
|
|
3
3
|
import E from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import S from "../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import P from "../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import "../button/v4/ButtonGroup.vue.js";
|
|
6
7
|
import w from "./MultiBarMenu.vue.js";
|
|
7
8
|
import { useTestIdAttrs as L } from "../../utils/testIds.js";
|
|
8
9
|
import { MultiBarTestIdModifiers as n } from "../../testids/index.js";
|
|
@@ -11,7 +12,7 @@ const O = { class: "multi-bar-panel" }, R = {
|
|
|
11
12
|
class: "count-text"
|
|
12
13
|
}, D = {
|
|
13
14
|
inheritAttrs: !1
|
|
14
|
-
},
|
|
15
|
+
}, Y = /* @__PURE__ */ k({
|
|
15
16
|
...D,
|
|
16
17
|
__name: "MultiBar",
|
|
17
18
|
props: {
|
|
@@ -27,22 +28,22 @@ const O = { class: "multi-bar-panel" }, R = {
|
|
|
27
28
|
},
|
|
28
29
|
emits: ["update:modelValue", "close", "action"],
|
|
29
30
|
setup(o, { emit: s }) {
|
|
30
|
-
const
|
|
31
|
+
const e = o, f = $(e, "modelValue", s), I = () => {
|
|
31
32
|
f.value = !1, s("close");
|
|
32
33
|
}, b = (a) => {
|
|
33
34
|
s("action", a);
|
|
34
35
|
}, p = v(
|
|
35
|
-
() =>
|
|
36
|
+
() => e.actions.length > e.visibleActionsCount ? e.actions.slice(0, e.visibleActionsCount) : e.actions
|
|
36
37
|
), C = v(
|
|
37
|
-
() =>
|
|
38
|
-
), y = L(
|
|
38
|
+
() => e.actions.length > e.visibleActionsCount ? e.actions.slice(e.visibleActionsCount) : []
|
|
39
|
+
), y = L(e.testId, n);
|
|
39
40
|
return (a, F) => (l(), d(x, {
|
|
40
41
|
to: "body",
|
|
41
42
|
disabled: !o.appendToBody
|
|
42
43
|
}, [
|
|
43
44
|
u(g, { name: "multi-bar" }, {
|
|
44
45
|
default: c(() => [
|
|
45
|
-
|
|
46
|
+
t(f) ? (l(), r("div", B({
|
|
46
47
|
key: 0,
|
|
47
48
|
class: ["multi-bar", {
|
|
48
49
|
"light-theme-v4": !0,
|
|
@@ -53,29 +54,29 @@ const O = { class: "multi-bar-panel" }, R = {
|
|
|
53
54
|
"multi-bar--left": o.position === "left"
|
|
54
55
|
}],
|
|
55
56
|
style: { zIndex: o.zIndex }
|
|
56
|
-
}, { ...a.$attrs, ...
|
|
57
|
+
}, { ...a.$attrs, ...t(y)[t(n).WRAPPER] }), [
|
|
57
58
|
V("div", O, [
|
|
58
|
-
u(
|
|
59
|
+
u(t(P), B({
|
|
59
60
|
"icon-name": "x",
|
|
60
61
|
class: "close-icon"
|
|
61
|
-
},
|
|
62
|
+
}, t(y)[t(n).CLOSE_BTN], { onClick: I }), null, 16),
|
|
62
63
|
o.selectedCount ? (l(), r("div", R, [
|
|
63
|
-
u(
|
|
64
|
+
u(t(E), { variant: "body1" }, {
|
|
64
65
|
default: c(() => [
|
|
65
66
|
h(A(o.selectedCount) + " selected ", 1)
|
|
66
67
|
]),
|
|
67
68
|
_: 1
|
|
68
69
|
})
|
|
69
70
|
])) : m("", !0),
|
|
70
|
-
(l(!0), r(z, null, M(
|
|
71
|
+
(l(!0), r(z, null, M(t(p), (i, T) => (l(), d(t(S), {
|
|
71
72
|
key: i.id,
|
|
72
73
|
class: N(["action-button", {
|
|
73
|
-
"action-button--last": T ===
|
|
74
|
+
"action-button--last": T === t(p).length - 1
|
|
74
75
|
}]),
|
|
75
76
|
variant: "text",
|
|
76
77
|
color: "default",
|
|
77
78
|
"start-icon-name": i.icon,
|
|
78
|
-
"data-testid": `${
|
|
79
|
+
"data-testid": `${e.testId}-${t(n).ACTION}-${i.id}`,
|
|
79
80
|
disabled: i.disabled,
|
|
80
81
|
onClick: (U) => b(i)
|
|
81
82
|
}, {
|
|
@@ -84,10 +85,10 @@ const O = { class: "multi-bar-panel" }, R = {
|
|
|
84
85
|
]),
|
|
85
86
|
_: 2
|
|
86
87
|
}, 1032, ["class", "start-icon-name", "data-testid", "disabled", "onClick"]))), 128)),
|
|
87
|
-
|
|
88
|
+
t(C).length ? (l(), d(w, {
|
|
88
89
|
key: 1,
|
|
89
|
-
"menu-items":
|
|
90
|
-
"test-id": `${
|
|
90
|
+
"menu-items": t(C),
|
|
91
|
+
"test-id": `${e.testId}-${t(n).MENU}`,
|
|
91
92
|
onSelected: b
|
|
92
93
|
}, null, 8, ["menu-items", "test-id"])) : m("", !0)
|
|
93
94
|
])
|
|
@@ -99,5 +100,5 @@ const O = { class: "multi-bar-panel" }, R = {
|
|
|
99
100
|
}
|
|
100
101
|
});
|
|
101
102
|
export {
|
|
102
|
-
|
|
103
|
+
Y as default
|
|
103
104
|
};
|
|
@@ -3,6 +3,7 @@ import U from "../../icon/v4/IconV4.vue.js";
|
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
4
|
import D from "../../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import H from "../../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
7
|
import S from "../../typography/v4/Typography.vue.js";
|
|
7
8
|
import { snackbarCommon as F } from "../common/snackbar.common.js";
|
|
8
9
|
import { useTestIdAttrs as G } from "../../../utils/testIds.js";
|
|
@@ -10,7 +11,7 @@ import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
|
|
|
10
11
|
const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { class: "message" }, J = { class: "action-wrapper" }, K = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "actions"
|
|
13
|
-
}, Q = { class: "close-button-wrapper" },
|
|
14
|
+
}, Q = { class: "close-button-wrapper" }, ie = /* @__PURE__ */ M({
|
|
14
15
|
__name: "SnackbarV4",
|
|
15
16
|
props: {
|
|
16
17
|
customClass: null,
|
|
@@ -34,10 +35,10 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
34
35
|
const u = t, {
|
|
35
36
|
visible: b,
|
|
36
37
|
horizontalClass: w,
|
|
37
|
-
positionStyle:
|
|
38
|
+
positionStyle: p,
|
|
38
39
|
clearTimer: k,
|
|
39
40
|
startTimer: C,
|
|
40
|
-
close:
|
|
41
|
+
close: L
|
|
41
42
|
} = F(u), E = {
|
|
42
43
|
info: {
|
|
43
44
|
iconName: "info",
|
|
@@ -61,7 +62,7 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
61
62
|
g(a("div", l({
|
|
62
63
|
id: t.id,
|
|
63
64
|
class: ["snackbar light-theme-v4", [t.customClass, e(w)]],
|
|
64
|
-
style: e(
|
|
65
|
+
style: e(p),
|
|
65
66
|
role: "alert"
|
|
66
67
|
}, e(r)[e(i).CONTAINER], {
|
|
67
68
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
@@ -122,7 +123,7 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
122
123
|
"icon-name": "x",
|
|
123
124
|
size: "small"
|
|
124
125
|
}, e(r)[e(i).CLOSE], {
|
|
125
|
-
onClick: x(e(
|
|
126
|
+
onClick: x(e(L), ["stop"])
|
|
126
127
|
}), null, 16, ["onClick"])) : d("", !0)
|
|
127
128
|
])
|
|
128
129
|
])
|
|
@@ -135,5 +136,5 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
135
136
|
}
|
|
136
137
|
});
|
|
137
138
|
export {
|
|
138
|
-
|
|
139
|
+
ie as default
|
|
139
140
|
};
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { useVModel as C } from "@vueuse/core";
|
|
3
3
|
import "../../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import $ from "../../button/v4/IconButtonV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
|
+
import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
|
|
7
|
+
const w = ["data-testid"], R = /* @__PURE__ */ p({
|
|
7
8
|
__name: "SwitchV4",
|
|
8
9
|
props: {
|
|
9
10
|
options: null,
|
|
@@ -12,8 +13,8 @@ const w = ["data-testid"], P = /* @__PURE__ */ p({
|
|
|
12
13
|
iconKey: { default: "icon" }
|
|
13
14
|
},
|
|
14
15
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(e, { emit:
|
|
16
|
-
const o = e, n = k(), m = C(o, "modelValue",
|
|
16
|
+
setup(e, { emit: u }) {
|
|
17
|
+
const o = e, n = k(), m = C(o, "modelValue", u);
|
|
17
18
|
v(() => {
|
|
18
19
|
n.value = o.options.findIndex(
|
|
19
20
|
(t) => t === o.modelValue
|
|
@@ -24,19 +25,19 @@ const w = ["data-testid"], P = /* @__PURE__ */ p({
|
|
|
24
25
|
};
|
|
25
26
|
return (t, i) => (a(), d("div", {
|
|
26
27
|
class: "switch",
|
|
27
|
-
"data-testid": `${e.testId}-${s(
|
|
28
|
+
"data-testid": `${e.testId}-${s(r).WRAPPER}`
|
|
28
29
|
}, [
|
|
29
30
|
(a(!0), d(I, null, V(e.options, (c, l) => (a(), h(s($), {
|
|
30
31
|
key: l,
|
|
31
32
|
class: B(["option", { "option--selected": n.value === l }]),
|
|
32
33
|
"icon-name": c[e.iconKey],
|
|
33
34
|
size: "small",
|
|
34
|
-
"data-testid": `${e.testId}-${s(
|
|
35
|
+
"data-testid": `${e.testId}-${s(r).BUTTON}`,
|
|
35
36
|
onClick: (y) => f(c, l)
|
|
36
37
|
}, null, 8, ["class", "icon-name", "data-testid", "onClick"]))), 128))
|
|
37
38
|
], 8, w));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
R as default
|
|
42
43
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import "../../../ExpandRowToggle.vue_vue_type_style_index_0_scoped_b053baa6_lang.css"; import { defineComponent as a, openBlock as r, createElementBlock as c, createVNode as l, unref as p } from "vue";
|
|
2
2
|
import "../../button/v4/ButtonV4.vue.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import i from "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
const x = /* @__PURE__ */ a({
|
|
5
6
|
__name: "ExpandRowToggle",
|
|
6
7
|
props: {
|
|
7
8
|
expanded: { type: Boolean, default: !1 }
|
|
8
9
|
},
|
|
9
10
|
emits: ["click"],
|
|
10
|
-
setup(
|
|
11
|
-
return (
|
|
11
|
+
setup(o, { emit: n }) {
|
|
12
|
+
return (d, e) => (r(), c("div", {
|
|
12
13
|
class: "expand-row-toggle",
|
|
13
|
-
onClick: e[0] || (e[0] = (t) =>
|
|
14
|
+
onClick: e[0] || (e[0] = (t) => n("click", t))
|
|
14
15
|
}, [
|
|
15
|
-
l(p(
|
|
16
|
+
l(p(i), {
|
|
16
17
|
class: "expand-button",
|
|
17
|
-
"icon-name":
|
|
18
|
+
"icon-name": o.expanded ? "caret-down" : "caret-right"
|
|
18
19
|
}, null, 8, ["icon-name"])
|
|
19
20
|
]));
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
x as default
|
|
24
25
|
};
|