@ironsource/shared-ui 2.0.0-rc.8 → 2.0.0-rc.9
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/Button.vue_vue_type_style_index_0_scoped_35545b8c_lang.css +1 -0
- package/CardPanel.vue_vue_type_style_index_0_scoped_3cda0f04_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_51b5b56d_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_bb7d27f9_lang.css +1 -0
- package/MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ef31fecc_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_21f12d1a_lang.css +1 -0
- package/components/appTrigger/AppTrigger.vue2.js +19 -20
- package/components/button/v3/Button.vue.js +3 -3
- package/components/button/v3/Button.vue2.js +1 -1
- package/components/button/v3/ScrollButton.vue2.js +4 -5
- package/components/includeExclude/IncludeExcludeAppTrigger.vue2.js +15 -16
- package/components/includeExclude/IncludeExcludeOption.vue2.js +6 -7
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue2.js +16 -17
- package/components/input/v3/Input.vue2.js +3 -4
- package/components/input/v4/TextField.vue2.js +8 -8
- package/components/layout/CardPanel.vue.d.ts +36 -0
- package/components/layout/CardPanel.vue.js +7 -0
- package/components/layout/CardPanel.vue2.js +25 -0
- package/components/layout/FoldableSection.vue.d.ts +50 -0
- package/components/layout/FoldableSection.vue.js +7 -0
- package/components/layout/FoldableSection.vue2.js +57 -0
- package/components/layout/FormCard.vue.d.ts +74 -0
- package/components/layout/FormCard.vue.js +7 -0
- package/components/layout/FormCard.vue2.js +74 -0
- package/components/layout/index.d.ts +405 -0
- package/components/layout/index.js +10 -0
- package/components/menuItem/MenuItem.vue.js +5 -24
- package/components/menuItem/MenuItem.vue2.js +23 -0
- package/components/shared/FieldLabel.vue2.js +3 -3
- package/components/table/common/Table.common.js +20 -20
- package/components/toggle/v4/ToggleV4.vue.js +7 -0
- package/components/toggle/v4/ToggleV4.vue2.js +95 -0
- package/components/toggle/v4/index.d.ts +313 -0
- package/components/toggle/v4/index.js +6 -0
- package/components/tooltip/v3/Tooltip.vue.js +6 -3
- package/components/tooltip/v3/Tooltip.vue2.js +3 -3
- package/components/tooltip/v3/index.js +3 -4
- package/components/tooltip/v4/TooltipV4.vue.js +6 -65
- package/components/tooltip/v4/TooltipV4.vue2.js +67 -0
- package/components/tooltip/v4/index.js +2 -2
- package/index.d.ts +623 -1
- package/index.js +137 -129
- package/package.json +17 -5
- package/testids/index.d.ts +11 -0
- package/testids/index.js +16 -14
- package/Button.vue_vue_type_style_index_0_scoped_bfe31a93_lang.css +0 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_c7e837fa_lang.css +0 -1
- package/components/tooltip/v4/TooltipV4.vue3.js +0 -4
- /package/{Tooltip.vue_vue_type_style_index_0_lang.css → Tooltip.vue_vue_type_style_index_1_lang.css} +0 -0
- /package/{TooltipV4.vue_vue_type_style_index_0_lang.css → TooltipV4.vue_vue_type_style_index_1_lang.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-35545b8c]{color:#41454d}.flex[data-v-35545b8c]{display:flex;align-items:center;justify-content:center;grid-column-gap:6px}button.with-left-icon.sm[data-v-35545b8c] .flex{grid-column-gap:4px}button.with-left-icon.sm[data-v-35545b8c] .content{margin:0 12px 0 8px}button.with-left-icon.md[data-v-35545b8c] .content{margin:0 16px 0 12px}button.with-left-icon.lg[data-v-35545b8c] .content{margin:0 24px 0 12px}button.with-right-icon.sm[data-v-35545b8c] .flex{grid-column-gap:4px}button.with-right-icon.sm[data-v-35545b8c] .content{margin:0 8px 0 12px}button.with-right-icon.md[data-v-35545b8c] .content{margin:0 12px 0 16px}button.with-right-icon.lg[data-v-35545b8c] .content{margin:0 12px 0 24px}.icon[data-v-35545b8c],.loading[data-v-35545b8c]{vertical-align:middle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.card-panel[data-v-3cda0f04]{border-radius:var(--border-radius-sm);border:1px solid var(--common-divider);background:var(--background-paper);padding:calc(var(--spacing-300) - 2px) var(--spacing-300)}.card-panel--has-next[data-v-3cda0f04]{border-bottom-right-radius:0;border-bottom-left-radius:0}.card-panel--has-next+.card-panel[data-v-3cda0f04]{border-top:0;border-top-right-radius:0;border-top-left-radius:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.title-wrapper[data-v-51b5b56d]{display:flex;align-items:center;gap:var(--spacing-50);color:var(--text-primary);margin-bottom:var(--spacing-100);max-width:fit-content;cursor:pointer}.toggle-icon[data-v-51b5b56d]{color:var(--action-active)}.v-enter-active[data-v-51b5b56d],.v-leave-active[data-v-51b5b56d]{transition:opacity .25s ease}.v-enter-from[data-v-51b5b56d],.v-leave-to[data-v-51b5b56d]{opacity:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-card[data-v-bb7d27f9]{border-radius:var(--border-radius-sm);border:1px solid var(--common-divider);background:var(--background-default)}.card-header[data-v-bb7d27f9]{display:flex;flex-direction:row;align-items:center;min-height:var(--spacing-700);border-radius:calc(var(--border-radius-sm) - 1px) calc(var(--border-radius-sm) - 1px) 0 0;color:var(--text-primary);background:var(--background-paper-elevation-0);padding:0 var(--spacing-300)}.card-content[data-v-bb7d27f9]{padding:var(--spacing-300) var(--spacing-400)}.card-content--no-padding[data-v-bb7d27f9]{padding:0}.form-actions[data-v-bb7d27f9]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;min-height:var(--spacing-700)}.form-action[data-v-bb7d27f9]{margin-left:var(--spacing-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-67e53b85]{color:#41454d}.menu-item[data-v-67e53b85]{display:flex;padding:12px 8px;align-items:center;border-radius:8px;cursor:pointer;color:#41454d}.menu-item[data-v-67e53b85]:hover{background:#f7f8f9}.start-icon[data-v-67e53b85]{margin-right:8px;color:#b7bbc0;display:flex}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.toggle .toggle-body[data-v-ef31fecc]:hover{outline-color:var(--action-active)}.toggle .toggle-disabled[data-v-ef31fecc]{background-color:var(--action-disabled-background);outline-color:var(--action-outlined-border)}.toggle .toggle-disabled .toggle-head[data-v-ef31fecc]{background-color:var(--action-disabled)}.toggle .toggle-disabled[data-v-ef31fecc]:hover{outline-color:var(--action-outlined-border)}.toggle--color-primary .toggle-active[data-v-ef31fecc]{background-color:var(--primary-main);outline-color:var(--primary-dark)}.toggle--color-primary .toggle-active .toggle-head[data-v-ef31fecc]{background-color:var(--common-white)}.toggle--color-primary .toggle-active .loader[data-v-ef31fecc]{border-color:var(--primary-darker);border-bottom-color:transparent}.toggle--color-primary .toggle-active[data-v-ef31fecc]:hover{background-color:var(--primary-main-50-p);outline-color:var(--primary-main)}.toggle--color-primary .toggle-active.toggle-disabled[data-v-ef31fecc]{background-color:var(--primary-main-8-p);outline-color:var(--primary-main-50-p)}.toggle--color-primary .toggle-active.toggle-disabled .toggle-head[data-v-ef31fecc]{background-color:var(--primary-main-50-p)}.toggle--color-test .toggle-active[data-v-ef31fecc]{background-color:var(--warning-main);outline-color:var(--warning-dark)}.toggle--color-test .toggle-active .toggle-head[data-v-ef31fecc]{background-color:var(--common-white)}.toggle--color-test .toggle-active .loader[data-v-ef31fecc]{border-color:var(--warning-darker);border-bottom-color:transparent}.toggle--color-test .toggle-active[data-v-ef31fecc]:hover{background-color:var(--warning-main-50-p);outline-color:var(--warning-dark)}.toggle--color-test .toggle-active.toggle-disabled[data-v-ef31fecc]{background-color:var(--warning-main-8-p);outline-color:var(--warning-main-50-p)}.toggle--color-test .toggle-active.toggle-disabled .toggle-head[data-v-ef31fecc]{background-color:var(--warning-main-50-p)}.toggle--size-small .toggle-body[data-v-ef31fecc],.toggle--size-small .toggle-wrap[data-v-ef31fecc]{height:1rem}.toggle--size-small .toggle-active .toggle-head[data-v-ef31fecc]{transform:translate(.75rem)}.toggle--size-small .toggle-head[data-v-ef31fecc]{width:.75rem;height:.75rem}.toggle--size-small .toggle-body[data-v-ef31fecc]{width:1.75rem}.toggle--size-small .loader[data-v-ef31fecc]{width:9px;height:9px}.toggle--size-medium .toggle-body[data-v-ef31fecc],.toggle--size-medium .toggle-wrap[data-v-ef31fecc]{height:1.25rem}.toggle--size-medium .toggle-active .toggle-head[data-v-ef31fecc]{transform:translate(1rem)}.toggle--size-medium .toggle-head[data-v-ef31fecc]{width:1rem;height:1rem}.toggle--size-medium .toggle-body[data-v-ef31fecc]{width:2.25rem}.toggle--size-medium .loader[data-v-ef31fecc]{width:12px;height:12px}.toggle-wrap[data-v-ef31fecc]{display:flex;align-items:center;gap:var(--spacing-50)}.toggle-body[data-v-ef31fecc]{border-radius:100px;background-color:var(--action-hover);outline:1px solid var(--action-outlined-border);outline-offset:-1px;position:relative;cursor:pointer;display:inline-block;margin-right:var(--spacing-100)}.toggle-body.toggle-disabled[data-v-ef31fecc]{cursor:default}.toggle-head[data-v-ef31fecc]{border-radius:100px;background-color:var(--action-active);position:absolute;left:.125rem;top:.125rem;transition:transform .25s linear,background-color .25s linear;display:flex;justify-content:center;align-items:center}.toggle-checkbox[data-v-ef31fecc]{display:none}.toggle-text[data-v-ef31fecc]{color:var(--text-primary)}.feedback-text[data-v-ef31fecc]{display:block;padding-top:var(--spacing-150)}.info-icon[data-v-ef31fecc]{color:var(--action-active)}.loader[data-v-ef31fecc]{border:1px solid var(--action-active);border-bottom-color:transparent;border-radius:100%;display:inline-block;box-sizing:border-box;animation:rotation-ef31fecc 1s linear infinite}.loader.loader-active[data-v-ef31fecc]{border-bottom-color:transparent}@keyframes rotation-ef31fecc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
div[data-v-9020a179]{display:block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
div[data-v-21f12d1a]{display:block}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "../../AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css"; import { defineComponent as w, computed as t, openBlock as
|
|
1
|
+
import "../../AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css"; import { defineComponent as w, computed as t, openBlock as m, createElementBlock as L, normalizeClass as S, unref as e, renderSlot as c, createElementVNode as f, createBlock as v, createCommentVNode as D, createVNode as s, withCtx as p, createTextVNode as z, toDisplayString as N } from "vue";
|
|
2
2
|
import V from "../appIcon/AppIcon.vue.js";
|
|
3
3
|
import "../button/v3/Button.vue.js";
|
|
4
4
|
import X from "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
6
6
|
import T from "../icon/v3/Icon.vue.js";
|
|
7
|
-
import "../tooltip/v3/Tooltip.vue.js";
|
|
7
|
+
import O from "../tooltip/v3/Tooltip.vue.js";
|
|
8
8
|
import "../typography/Heading.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import k from "../typography/Text.vue.js";
|
|
10
10
|
import { AppTriggerTestIdModifiers as o } from "../../testids/index.js";
|
|
11
|
-
|
|
12
|
-
const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__PURE__ */ w({
|
|
11
|
+
const b = ["data-testid"], G = { class: "app-trigger__left-image" }, Z = /* @__PURE__ */ w({
|
|
13
12
|
__name: "AppTrigger",
|
|
14
13
|
props: {
|
|
15
14
|
selected: { default: null },
|
|
@@ -19,22 +18,22 @@ const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__
|
|
|
19
18
|
testId: { default: "" }
|
|
20
19
|
},
|
|
21
20
|
setup(l) {
|
|
22
|
-
const n = l, y = "All apps selected", B = "No apps to select", $ = t(() => n.singleAppSelection && h.value ? B : n.singleAppSelection && u.value ? `${i.value?.name}` :
|
|
21
|
+
const n = l, y = "All apps selected", B = "No apps to select", $ = t(() => n.singleAppSelection && h.value ? B : n.singleAppSelection && u.value ? `${i.value?.name}` : g.value ? y : u.value ? `${i.value?.name}` : `${a.value} apps selected`), C = "widgetsz", x = "cube-background", P = t(
|
|
23
22
|
() => n.singleAppSelection && h.value ? x : C
|
|
24
|
-
), I = t(() => !
|
|
25
|
-
return (d, M) => (
|
|
23
|
+
), I = t(() => !g.value || n.singleAppSelection && u.value ? i.value.platform.toLowerCase() : null), A = t(() => !a.value || !r.value ? "" : i.value?.icon), _ = t(() => n.loading ? "" : u.value ? i.value.appKey : g.value ? R.value : a.value <= 0 ? `${i.value?.name}` : `${i.value?.name} and ${a.value - 1}+`), a = t(() => n.selected?.length || 0), r = t(() => n.options?.length || 0), u = t(() => a.value === 1), h = t(() => r.value === 0), g = t(() => n.loading || r.value === a.value || !a.value), R = t(() => r.value === 1 ? `${E.value?.name}` : `${E.value?.name} and ${r.value - 1}+`), i = t(() => n.selected?.[0]), E = t(() => n.options?.[0]);
|
|
24
|
+
return (d, M) => (m(), L("div", {
|
|
26
25
|
class: S(["app-trigger", {
|
|
27
|
-
"app-trigger--with-icons": e(a) > 0 || e(
|
|
26
|
+
"app-trigger--with-icons": e(a) > 0 || e(g)
|
|
28
27
|
}]),
|
|
29
28
|
"data-testid": `${l.testId}-${e(o).WRAPPER}`
|
|
30
29
|
}, [
|
|
31
30
|
c(d.$slots, "left-image", {}, () => [
|
|
32
31
|
f("div", G, [
|
|
33
|
-
e(
|
|
32
|
+
e(A) ? (m(), v(e(V), {
|
|
34
33
|
key: 0,
|
|
35
34
|
size: "xl",
|
|
36
|
-
src: e(
|
|
37
|
-
}, null, 8, ["src"])) : (
|
|
35
|
+
src: e(A)
|
|
36
|
+
}, null, 8, ["src"])) : (m(), v(e(T), {
|
|
38
37
|
key: 1,
|
|
39
38
|
class: "trigger-icon",
|
|
40
39
|
"font-size": "2rem",
|
|
@@ -43,7 +42,7 @@ const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__
|
|
|
43
42
|
])
|
|
44
43
|
], !0),
|
|
45
44
|
c(d.$slots, "left-icon", {}, () => [
|
|
46
|
-
e(I) ? (
|
|
45
|
+
e(I) ? (m(), v(e(T), {
|
|
47
46
|
key: 0,
|
|
48
47
|
class: "app-trigger__left-icon",
|
|
49
48
|
name: e(I),
|
|
@@ -57,12 +56,12 @@ const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__
|
|
|
57
56
|
}])
|
|
58
57
|
}, [
|
|
59
58
|
c(d.$slots, "title", {}, () => [
|
|
60
|
-
s(e(
|
|
59
|
+
s(e(O), {
|
|
61
60
|
text: e($),
|
|
62
61
|
"data-testid": `${l.testId}-${e(o).TITLE_TOOLTIP_TEXT}`
|
|
63
62
|
}, {
|
|
64
63
|
default: p(() => [
|
|
65
|
-
s(e(
|
|
64
|
+
s(e(k), {
|
|
66
65
|
strong: "",
|
|
67
66
|
class: "title",
|
|
68
67
|
"is-truncated": "",
|
|
@@ -80,19 +79,19 @@ const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__
|
|
|
80
79
|
], !0),
|
|
81
80
|
c(d.$slots, "description", {}, () => [
|
|
82
81
|
f("div", null, [
|
|
83
|
-
s(e(
|
|
84
|
-
text: e(
|
|
82
|
+
s(e(O), {
|
|
83
|
+
text: e(_),
|
|
85
84
|
"data-testid": `${l.testId}-${e(o).DESCRIPTION_TOOLTIP_TEXT}`
|
|
86
85
|
}, {
|
|
87
86
|
default: p(() => [
|
|
88
|
-
s(e(
|
|
87
|
+
s(e(k), {
|
|
89
88
|
class: "app-trigger__description",
|
|
90
89
|
size: "xs",
|
|
91
90
|
"is-truncated": "",
|
|
92
91
|
"test-id": `${l.testId}-${e(o).DESCRIPTION_TEXT}`
|
|
93
92
|
}, {
|
|
94
93
|
default: p(() => [
|
|
95
|
-
z(N(e(
|
|
94
|
+
z(N(e(_)), 1)
|
|
96
95
|
]),
|
|
97
96
|
_: 1
|
|
98
97
|
}, 8, ["test-id"])
|
|
@@ -121,5 +120,5 @@ const b = ["data-testid"], G = { class: "app-trigger__left-image" }, ee = /* @__
|
|
|
121
120
|
}
|
|
122
121
|
});
|
|
123
122
|
export {
|
|
124
|
-
|
|
123
|
+
Z as default
|
|
125
124
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Button.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../Button.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../Button.vue_vue_type_style_index_0_scoped_35545b8c_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35545b8c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../Button.
|
|
1
|
+
import "../../../Button.vue_vue_type_style_index_0_scoped_35545b8c_lang.css"; import { defineComponent as d, computed as f, openBlock as n, createBlock as a, mergeProps as u, createSlots as I, withCtx as m, createElementVNode as z, normalizeClass as N, unref as o, createCommentVNode as s, renderSlot as c } from "vue";
|
|
2
2
|
import r from "../../icon/v3/Icon.vue.js";
|
|
3
3
|
import h from "./ButtonBase.vue.js";
|
|
4
4
|
import { iconSizeMap as g } from "../common/consts.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "../../../ScrollButton.vue_vue_type_style_index_0_scoped_35ed2cfe_lang.css"; import { defineComponent as r, openBlock as i, createBlock as c, unref as o, normalizeClass as m, withCtx as e, createVNode as l, createCommentVNode as s } from "vue";
|
|
2
2
|
import u from "../../icon/v3/Icon.vue.js";
|
|
3
3
|
import "./Button.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import d from "./IconButton.vue.js";
|
|
5
5
|
import "./ScrollButton.vue.js";
|
|
6
|
-
import "../../tooltip/v3/Tooltip.vue.js";
|
|
7
|
-
import d from "../../tooltip/v3/Tooltip.vue2.js";
|
|
6
|
+
import f from "../../tooltip/v3/Tooltip.vue.js";
|
|
8
7
|
const g = /* @__PURE__ */ r({
|
|
9
8
|
__name: "ScrollButton",
|
|
10
9
|
props: {
|
|
@@ -18,7 +17,7 @@ const g = /* @__PURE__ */ r({
|
|
|
18
17
|
const a = () => {
|
|
19
18
|
n("scrolled");
|
|
20
19
|
};
|
|
21
|
-
return (p, h) => t.show ? (i(), c(o(
|
|
20
|
+
return (p, h) => t.show ? (i(), c(o(d), {
|
|
22
21
|
key: 0,
|
|
23
22
|
class: m(["scroll-button", t.position]),
|
|
24
23
|
theme: "third",
|
|
@@ -27,7 +26,7 @@ const g = /* @__PURE__ */ r({
|
|
|
27
26
|
onClick: a
|
|
28
27
|
}, {
|
|
29
28
|
default: e(() => [
|
|
30
|
-
l(o(
|
|
29
|
+
l(o(f), {
|
|
31
30
|
text: t.tooltipText,
|
|
32
31
|
delay: 400
|
|
33
32
|
}, {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import "../../IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f738b223_lang.css"; import { defineComponent as A, computed as t, openBlock as d, createElementBlock as N, normalizeClass as y, unref as e, renderSlot as u, createElementVNode as g, createBlock as f, createCommentVNode as
|
|
1
|
+
import "../../IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f738b223_lang.css"; import { defineComponent as A, computed as t, openBlock as d, createElementBlock as N, normalizeClass as y, unref as e, renderSlot as u, createElementVNode as g, createBlock as f, createCommentVNode as V, createVNode as i, withCtx as s, createTextVNode as I, toDisplayString as w } from "vue";
|
|
2
2
|
import "../button/v3/Button.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import _ from "../button/v3/IconButton.vue.js";
|
|
4
4
|
import "../button/v3/ScrollButton.vue.js";
|
|
5
5
|
import "../typography/Heading.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import B from "../typography/Text.vue.js";
|
|
7
7
|
import v from "../icon/v3/Icon.vue.js";
|
|
8
|
-
import "../tooltip/v3/Tooltip.vue.js";
|
|
8
|
+
import C from "../tooltip/v3/Tooltip.vue.js";
|
|
9
9
|
import E from "../appIcon/AppIcon.vue.js";
|
|
10
|
-
|
|
11
|
-
const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A({
|
|
10
|
+
const D = { class: "include-exclude-trigger-left-image" }, J = /* @__PURE__ */ A({
|
|
12
11
|
__name: "IncludeExcludeAppTrigger",
|
|
13
12
|
props: {
|
|
14
13
|
selected: { default: null },
|
|
@@ -16,7 +15,7 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
16
15
|
loading: { type: Boolean, default: !1 }
|
|
17
16
|
},
|
|
18
17
|
setup(m) {
|
|
19
|
-
const n = m,
|
|
18
|
+
const n = m, S = "All apps selected", x = t(() => c.value ? S : p.value ? `${r.value?.name}` : `${l.value} apps selected`), $ = t(() => c.value ? null : r.value.platform.toLowerCase()), h = t(() => !l.value || !a.value ? "" : r.value?.icon), z = t(() => n.loading ? "" : p.value ? r.value.appKey : c.value ? T.value : l.value <= 0 ? `${r.value?.name}` : `${r.value?.name} and ${l.value - 1}+`), l = t(() => n.selected?.length || 0), a = t(() => n.options?.length || 0), p = t(() => l.value === 1), c = t(() => n.loading || a.value === l.value || !l.value), T = t(() => a.value === 1 ? `${k.value?.name}` : `${k.value?.name} and ${a.value - 1}+`), r = t(() => n.selected?.[0]), k = t(() => n.options?.[0]);
|
|
20
19
|
return (o, K) => (d(), N("div", {
|
|
21
20
|
class: y(["include-exclude-trigger-container", {
|
|
22
21
|
"include-exclude-trigger-container--with-icons": e(l) > 0 || e(c)
|
|
@@ -42,7 +41,7 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
42
41
|
class: "include-exclude-trigger-left-icon",
|
|
43
42
|
name: e($),
|
|
44
43
|
"font-size": "md"
|
|
45
|
-
}, null, 8, ["name"])) :
|
|
44
|
+
}, null, 8, ["name"])) : V("", !0)
|
|
46
45
|
], !0),
|
|
47
46
|
g("div", {
|
|
48
47
|
class: y(["include-exclude-trigger-middle-section", {
|
|
@@ -51,16 +50,16 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
51
50
|
}])
|
|
52
51
|
}, [
|
|
53
52
|
u(o.$slots, "title", {}, () => [
|
|
54
|
-
i(e(
|
|
53
|
+
i(e(C), { text: e(x) }, {
|
|
55
54
|
default: s(() => [
|
|
56
|
-
i(e(
|
|
55
|
+
i(e(B), {
|
|
57
56
|
strong: "",
|
|
58
57
|
class: "title",
|
|
59
58
|
"is-truncated": "",
|
|
60
59
|
size: "sm"
|
|
61
60
|
}, {
|
|
62
61
|
default: s(() => [
|
|
63
|
-
I(
|
|
62
|
+
I(w(e(x)), 1)
|
|
64
63
|
]),
|
|
65
64
|
_: 1
|
|
66
65
|
})
|
|
@@ -70,15 +69,15 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
70
69
|
], !0),
|
|
71
70
|
u(o.$slots, "description", {}, () => [
|
|
72
71
|
g("div", null, [
|
|
73
|
-
i(e(
|
|
72
|
+
i(e(C), { text: e(z) }, {
|
|
74
73
|
default: s(() => [
|
|
75
|
-
i(e(
|
|
74
|
+
i(e(B), {
|
|
76
75
|
class: "include-exclude-trigger-description",
|
|
77
76
|
size: "xs",
|
|
78
77
|
"is-truncated": ""
|
|
79
78
|
}, {
|
|
80
79
|
default: s(() => [
|
|
81
|
-
I(
|
|
80
|
+
I(w(e(z)), 1)
|
|
82
81
|
]),
|
|
83
82
|
_: 1
|
|
84
83
|
})
|
|
@@ -89,7 +88,7 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
89
88
|
], !0)
|
|
90
89
|
], 2),
|
|
91
90
|
u(o.$slots, "right-icon", {}, () => [
|
|
92
|
-
i(e(
|
|
91
|
+
i(e(_), {
|
|
93
92
|
class: "include-exclude-trigger-right-icon",
|
|
94
93
|
theme: "third"
|
|
95
94
|
}, {
|
|
@@ -106,5 +105,5 @@ const D = { class: "include-exclude-trigger-left-image" }, P = /* @__PURE__ */ A
|
|
|
106
105
|
}
|
|
107
106
|
});
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
J as default
|
|
110
109
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; import { defineComponent as
|
|
1
|
+
import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; import { defineComponent as T, ref as E, computed as v, openBlock as o, createElementBlock as a, normalizeClass as k, unref as e, createElementVNode as m, createBlock as p, createCommentVNode as n, renderSlot as x, createVNode as c, withCtx as d, createTextVNode as h, toDisplayString as y, withModifiers as N } from "vue";
|
|
2
2
|
import "../typography/Heading.vue.js";
|
|
3
3
|
import C from "../typography/Text.vue.js";
|
|
4
4
|
import { useIncludeExcludeContext as z } from "./IncludeExcludeContext.js";
|
|
5
5
|
import { useId as S } from "../../composables/useId.js";
|
|
6
6
|
import V from "../checkbox/v3/Checkbox.vue.js";
|
|
7
|
-
import "../tooltip/v3/Tooltip.vue.js";
|
|
7
|
+
import $ from "../tooltip/v3/Tooltip.vue.js";
|
|
8
8
|
import D from "../icon/v3/Icon.vue.js";
|
|
9
9
|
import { NOOP as M } from "@vue/shared";
|
|
10
|
-
import $ from "../tooltip/v3/Tooltip.vue2.js";
|
|
11
10
|
const P = {
|
|
12
11
|
key: 1,
|
|
13
12
|
class: "image"
|
|
14
13
|
}, j = {
|
|
15
14
|
key: 2,
|
|
16
15
|
class: "start-icon"
|
|
17
|
-
}, q = { class: "text-container" }, A = { key: 0 },
|
|
16
|
+
}, q = { class: "text-container" }, A = { key: 0 }, W = /* @__PURE__ */ T({
|
|
18
17
|
__name: "IncludeExcludeOption",
|
|
19
18
|
props: {
|
|
20
19
|
option: null,
|
|
@@ -25,7 +24,7 @@ const P = {
|
|
|
25
24
|
titleText: { default: "" }
|
|
26
25
|
},
|
|
27
26
|
setup(t) {
|
|
28
|
-
const r = t, l = z("IncludeExcludeOption"), g = S().value, w =
|
|
27
|
+
const r = t, l = z("IncludeExcludeOption"), g = S().value, w = E(null), B = () => {
|
|
29
28
|
l.select(r.option);
|
|
30
29
|
}, f = !0, b = 200, I = v(() => l.activeIndex.value !== null ? l.activeOption.value === r.option : !1), u = v(() => l.selectedOption.value.includes(r.option));
|
|
31
30
|
return (i, s) => (o(), a("div", {
|
|
@@ -103,7 +102,7 @@ const P = {
|
|
|
103
102
|
t.clearable && e(u) ? (o(), a("div", A, [
|
|
104
103
|
m("button", {
|
|
105
104
|
class: "clear-button",
|
|
106
|
-
onClick: s[1] || (s[1] =
|
|
105
|
+
onClick: s[1] || (s[1] = N((O) => e(l).removeSelection(t.option), ["prevent", "stop"]))
|
|
107
106
|
}, [
|
|
108
107
|
c(e(D), { name: "close-bold" })
|
|
109
108
|
])
|
|
@@ -112,5 +111,5 @@ const P = {
|
|
|
112
111
|
}
|
|
113
112
|
});
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
W as default
|
|
116
115
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import "../../IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css"; import { defineComponent as
|
|
1
|
+
import "../../IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css"; import { defineComponent as T, ref as w, computed as b, openBlock as o, createElementBlock as a, unref as t, normalizeClass as v, createElementVNode as d, renderSlot as p, createCommentVNode as n, createVNode as s, withCtx as r, createTextVNode as y, toDisplayString as x, createBlock as z, withModifiers as B } from "vue";
|
|
2
2
|
import "../typography/Heading.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import { useIncludeExcludeContext as
|
|
3
|
+
import h from "../typography/Text.vue.js";
|
|
4
|
+
import { useIncludeExcludeContext as E } from "./IncludeExcludeContext.js";
|
|
5
5
|
import { useId as N } from "../../composables/useId.js";
|
|
6
|
-
import "../tooltip/v3/Tooltip.vue.js";
|
|
6
|
+
import k from "../tooltip/v3/Tooltip.vue.js";
|
|
7
7
|
import O from "../icon/v3/Icon.vue.js";
|
|
8
|
-
import h from "../tooltip/v3/Tooltip.vue2.js";
|
|
9
8
|
const S = ["id"], V = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "image"
|
|
12
11
|
}, D = {
|
|
13
12
|
key: 1,
|
|
14
13
|
class: "start-icon"
|
|
15
|
-
}, M = { class: "text-container" }, j = { key: 0 },
|
|
14
|
+
}, M = { class: "text-container" }, j = { key: 0 }, P = /* @__PURE__ */ T({
|
|
16
15
|
__name: "IncludeExcludeOptionDraggable",
|
|
17
16
|
props: {
|
|
18
17
|
option: null,
|
|
@@ -22,9 +21,9 @@ const S = ["id"], V = {
|
|
|
22
21
|
titleText: { default: "" }
|
|
23
22
|
},
|
|
24
23
|
setup(e) {
|
|
25
|
-
const
|
|
24
|
+
const c = e, l = E("IncludeExcludeOption"), $ = N().value, C = w(null), u = !0, m = 200, I = b(() => l.activeIndex.value !== null ? l.activeOption.value === c.option : !1), f = b(() => l.selectedOption.value.includes(c.option));
|
|
26
25
|
return (i, g) => (o(), a("div", {
|
|
27
|
-
id: t(
|
|
26
|
+
id: t($).toString(),
|
|
28
27
|
ref_key: "el",
|
|
29
28
|
ref: C,
|
|
30
29
|
class: v(["item-container-draggable", {
|
|
@@ -35,7 +34,7 @@ const S = ["id"], V = {
|
|
|
35
34
|
"item-container-draggable--two-lines": e.subtitle?.length
|
|
36
35
|
}])
|
|
37
36
|
}, [
|
|
38
|
-
|
|
37
|
+
d("div", {
|
|
39
38
|
class: v(["item", {
|
|
40
39
|
"item--multi": u,
|
|
41
40
|
"item--with-icon": i.$slots["icon-start"] || i.$slots.image,
|
|
@@ -48,13 +47,13 @@ const S = ["id"], V = {
|
|
|
48
47
|
i.$slots["icon-start"] ? (o(), a("div", D, [
|
|
49
48
|
p(i.$slots, "icon-start", {}, void 0, !0)
|
|
50
49
|
])) : n("", !0),
|
|
51
|
-
|
|
52
|
-
s(t(
|
|
50
|
+
d("div", M, [
|
|
51
|
+
s(t(k), {
|
|
53
52
|
delay: m,
|
|
54
53
|
text: e.titleText
|
|
55
54
|
}, {
|
|
56
55
|
default: r(() => [
|
|
57
|
-
s(t(
|
|
56
|
+
s(t(h), {
|
|
58
57
|
size: "sm",
|
|
59
58
|
"is-truncated": ""
|
|
60
59
|
}, {
|
|
@@ -66,12 +65,12 @@ const S = ["id"], V = {
|
|
|
66
65
|
]),
|
|
67
66
|
_: 1
|
|
68
67
|
}, 8, ["text"]),
|
|
69
|
-
s(t(
|
|
68
|
+
s(t(k), {
|
|
70
69
|
delay: m,
|
|
71
70
|
text: e.subtitle
|
|
72
71
|
}, {
|
|
73
72
|
default: r(() => [
|
|
74
|
-
e.subtitle ? (o(),
|
|
73
|
+
e.subtitle ? (o(), z(t(h), {
|
|
75
74
|
key: 0,
|
|
76
75
|
class: "subtitle",
|
|
77
76
|
size: "caption",
|
|
@@ -88,9 +87,9 @@ const S = ["id"], V = {
|
|
|
88
87
|
])
|
|
89
88
|
], 2),
|
|
90
89
|
e.clearable && t(f) ? (o(), a("div", j, [
|
|
91
|
-
|
|
90
|
+
d("button", {
|
|
92
91
|
class: "clear-button",
|
|
93
|
-
onClick: g[0] || (g[0] =
|
|
92
|
+
onClick: g[0] || (g[0] = B((q) => t(l).removeSelection(e.option), ["prevent", "stop"]))
|
|
94
93
|
}, [
|
|
95
94
|
s(t(O), {
|
|
96
95
|
"font-size": "sm",
|
|
@@ -103,5 +102,5 @@ const S = ["id"], V = {
|
|
|
103
102
|
}
|
|
104
103
|
});
|
|
105
104
|
export {
|
|
106
|
-
|
|
105
|
+
P as default
|
|
107
106
|
};
|
|
@@ -3,12 +3,11 @@ import "../../button/v3/Button.vue.js";
|
|
|
3
3
|
import w from "../../button/v3/IconButton.vue.js";
|
|
4
4
|
import "../../button/v3/ScrollButton.vue.js";
|
|
5
5
|
import b from "../../icon/v3/Icon.vue.js";
|
|
6
|
-
import "../../tooltip/v3/Tooltip.vue.js";
|
|
6
|
+
import A from "../../tooltip/v3/Tooltip.vue.js";
|
|
7
7
|
import "../../typography/Heading.vue.js";
|
|
8
8
|
import T from "../../typography/Text.vue.js";
|
|
9
9
|
import { InputTestIdModifiers as s } from "../../../testids/index.js";
|
|
10
10
|
import { inputCommon as V } from "../common/Input.common.js";
|
|
11
|
-
import A from "../../tooltip/v3/Tooltip.vue2.js";
|
|
12
11
|
const P = ["data-testid"], F = ["data-testid"], K = { class: "info-icon-wrapper" }, M = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "icon-container icon-before"
|
|
@@ -17,7 +16,7 @@ const P = ["data-testid"], F = ["data-testid"], K = { class: "info-icon-wrapper"
|
|
|
17
16
|
class: "icon-container icon-after"
|
|
18
17
|
}, W = { key: 2 }, Y = { key: 3 }, j = ["data-testid"], q = {
|
|
19
18
|
inheritAttrs: !1
|
|
20
|
-
},
|
|
19
|
+
}, oe = /* @__PURE__ */ L({
|
|
21
20
|
...q,
|
|
22
21
|
__name: "Input",
|
|
23
22
|
props: {
|
|
@@ -208,5 +207,5 @@ const P = ["data-testid"], F = ["data-testid"], K = { class: "info-icon-wrapper"
|
|
|
208
207
|
}
|
|
209
208
|
});
|
|
210
209
|
export {
|
|
211
|
-
|
|
210
|
+
oe as default
|
|
212
211
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css"; import { defineComponent as K, computed as w, ref as G, openBlock as l, createElementBlock as o, mergeProps as y, unref as t, createBlock as u, createCommentVNode as n, createElementVNode as g, normalizeClass as M, renderSlot as F, withCtx as v, createTextVNode as h, toDisplayString as x, withKeys as W, withModifiers as
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css"; import { defineComponent as K, computed as w, ref as G, openBlock as l, createElementBlock as o, mergeProps as y, unref as t, createBlock as u, createCommentVNode as n, createElementVNode as g, normalizeClass as M, renderSlot as F, withCtx as v, createTextVNode as h, toDisplayString as x, withKeys as W, withModifiers as S, createVNode as p, pushScopeId as j, popScopeId as q } from "vue";
|
|
2
2
|
import b from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import J from "../../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
-
|
|
4
|
+
import T from "../../typography/v4/Typography.vue.js";
|
|
5
5
|
import { InputTestIdModifiers as f } from "../../../testids/index.js";
|
|
6
6
|
import { inputCommon as Q } from "../common/Input.common.js";
|
|
7
7
|
import U from "../../shared/FieldLabel.vue.js";
|
|
@@ -24,7 +24,7 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
24
24
|
class: "max-length"
|
|
25
25
|
}, oe = /* @__PURE__ */ Z(() => /* @__PURE__ */ g("span", { class: "max-length__divider" }, "/", -1)), de = {
|
|
26
26
|
inheritAttrs: !1
|
|
27
|
-
},
|
|
27
|
+
}, xe = /* @__PURE__ */ K({
|
|
28
28
|
...de,
|
|
29
29
|
__name: "TextField",
|
|
30
30
|
props: {
|
|
@@ -55,7 +55,7 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
55
55
|
inlineErrorText: { default: "" }
|
|
56
56
|
},
|
|
57
57
|
emits: ["update:modelValue", "apply"],
|
|
58
|
-
setup(e, { expose:
|
|
58
|
+
setup(e, { expose: $, emit: I }) {
|
|
59
59
|
const s = e, c = Y(s.testId, f), P = () => {
|
|
60
60
|
s.showApply ? I("apply") : d?.confirmable && O();
|
|
61
61
|
}, z = () => A.value.focus(), {
|
|
@@ -70,7 +70,7 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
70
70
|
handleInput: C,
|
|
71
71
|
handleKeypress: E
|
|
72
72
|
} = Q(s, I), L = w(() => d.value?.value ?? s.modelValue), H = w(() => (L.value || "").length), m = G(!1), R = w(() => m.value && s.type === "password" ? "text" : s.type);
|
|
73
|
-
return
|
|
73
|
+
return $({
|
|
74
74
|
manualFocus: z
|
|
75
75
|
}), (r, a) => (l(), o("div", y({
|
|
76
76
|
class: {
|
|
@@ -128,7 +128,7 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
128
128
|
(...i) => t(C) && t(C)(...i)),
|
|
129
129
|
onFocus: a[1] || (a[1] = (i) => k.value = !0),
|
|
130
130
|
onBlur: a[2] || (a[2] = (i) => k.value = !1),
|
|
131
|
-
onKeyup: a[3] || (a[3] = W(
|
|
131
|
+
onKeyup: a[3] || (a[3] = W(S(
|
|
132
132
|
//@ts-ignore
|
|
133
133
|
(...i) => t(B) && t(B)(...i),
|
|
134
134
|
["prevent"]
|
|
@@ -139,7 +139,7 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
139
139
|
e.showApply || t(d)?.confirmable && !t(d)?.error?.value ? (l(), o("div", {
|
|
140
140
|
key: 2,
|
|
141
141
|
class: "apply-button",
|
|
142
|
-
onClick:
|
|
142
|
+
onClick: S(P, ["stop", "prevent"])
|
|
143
143
|
}, [
|
|
144
144
|
p(t(b), {
|
|
145
145
|
name: "check",
|
|
@@ -215,5 +215,5 @@ const Z = (e) => (j("data-v-d4dc4582"), e = e(), q(), e), _ = {
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
export {
|
|
218
|
-
|
|
218
|
+
xe as default
|
|
219
219
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
noPadding?: boolean;
|
|
3
|
+
}>, {
|
|
4
|
+
noPadding: boolean;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
noPadding?: boolean;
|
|
7
|
+
}>, {
|
|
8
|
+
noPadding: boolean;
|
|
9
|
+
}>>>, {
|
|
10
|
+
noPadding: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./CardPanel.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../CardPanel.vue_vue_type_style_index_0_scoped_3cda0f04_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3cda0f04"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../../CardPanel.vue_vue_type_style_index_0_scoped_3cda0f04_lang.css"; import { defineComponent as t, ref as a, onMounted as r, openBlock as s, createElementBlock as d, normalizeClass as c, renderSlot as f } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ t({
|
|
3
|
+
__name: "CardPanel",
|
|
4
|
+
props: {
|
|
5
|
+
noPadding: { type: Boolean, default: !1 }
|
|
6
|
+
},
|
|
7
|
+
setup(l) {
|
|
8
|
+
const e = a(null), n = a(!1);
|
|
9
|
+
return r(() => {
|
|
10
|
+
n.value = e.value?.nextSibling?.classList?.contains("card-panel") || null;
|
|
11
|
+
}), (o, i) => (s(), d("div", {
|
|
12
|
+
ref_key: "rootRef",
|
|
13
|
+
ref: e,
|
|
14
|
+
class: c(["card-panel", {
|
|
15
|
+
"card-panel--no-padding": l.noPadding,
|
|
16
|
+
"card-panel--has-next": n.value
|
|
17
|
+
}])
|
|
18
|
+
}, [
|
|
19
|
+
f(o.$slots, "default", {}, void 0, !0)
|
|
20
|
+
], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
u as default
|
|
25
|
+
};
|