@ironsource/shared-ui 2.1.6-rc.24 → 2.1.6-rc.27
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_a9f0dfcc_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +7 -0
- package/components/alert/Alert.vue.js +3 -3
- package/components/alert/Alert.vue2.js +44 -40
- package/components/alert/index.d.ts +27 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +0 -11
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +58 -72
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +42 -44
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +12 -12
- package/components/dropdown/v4/index.d.ts +1 -40
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/index.d.ts +2 -80
- package/mocks/apps.d.ts +0 -1
- package/package.json +1 -1
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_092d0e03_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2e7a89bc_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_89b98201_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.alert[data-v-a9f0dfcc]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-a9f0dfcc]{border-radius:var(--border-radius-lg)}.alert--success[data-v-a9f0dfcc]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-a9f0dfcc]{color:var(--success-main)}.alert--warning[data-v-a9f0dfcc]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-a9f0dfcc]{color:var(--warning-main)}.alert--danger[data-v-a9f0dfcc]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-a9f0dfcc]{color:var(--error-main)}.alert--info[data-v-a9f0dfcc]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-a9f0dfcc]{color:var(--info-main)}.alert--standard[data-v-a9f0dfcc]{outline:none}.alert--outlined[data-v-a9f0dfcc]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-a9f0dfcc]{align-self:flex-start}.alert-content[data-v-a9f0dfcc]{flex:1;margin:0 var(--spacing-150)}.alert-title[data-v-a9f0dfcc]{color:var(--text-primary);line-height:20px}.alert-description[data-v-a9f0dfcc]{color:var(--text-secondary)}.close-button[data-v-a9f0dfcc]{margin-left:var(--spacing-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.app-trigger-wrapper[data-v-39c47ad1]{display:flex}.app-trigger-wrapper.with-copy .app-trigger[data-v-39c47ad1]{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);width:calc(100% - 41px)}.app-trigger-key[data-v-39c47ad1]{flex:none}.app-trigger-key--content[data-v-39c47ad1]{padding:10px;background:var(--default-main);cursor:pointer;border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-left:1px solid var(--common-divider);color:var(--action-active)}.app-trigger-key--content[data-v-39c47ad1]:hover{background:var(--action-selected);color:var(--action-primary)}.app-trigger[data-v-39c47ad1]{width:100%;padding:0 12px;border-radius:var(--border-radius-lg);cursor:pointer;user-select:none;display:inline-flex;background:var(--default-main);height:40px;align-items:center}.app-trigger[data-v-39c47ad1]:hover,.app-trigger.active[data-v-39c47ad1]{background:var(--action-selected)}.app-trigger.disabled[data-v-39c47ad1]{cursor:auto}.app-trigger--content[data-v-39c47ad1]{color:var(--text-primary);display:flex;column-gap:4px;width:calc(100% - 20px);align-items:center}.app-trigger--content .x-circle-wrapper[data-v-39c47ad1]{color:var(--primary-dark)}.app-trigger--content .x-circle-wrapper[data-v-39c47ad1]:hover{color:var(--primary-main)}.app-trigger--icon[data-v-39c47ad1]{display:flex;align-items:center;color:var(--action-active)}.app-trigger .displayed-value[data-v-39c47ad1]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.app-trigger .image[data-v-39c47ad1]{width:28px;height:28px;flex:none}.app-trigger .image img[data-v-39c47ad1]{border-radius:4px;width:100%;height:100%}.app-trigger .start-icon[data-v-39c47ad1]{display:flex;color:var(--action-active)}.app-trigger .label-text[data-v-39c47ad1]{display:flex;align-items:center;gap:8px}.app-trigger .label-text .text-content[data-v-39c47ad1]{display:flex;align-items:center;gap:4px;width:100%}.app-trigger .label-text .text-content .text-content-value[data-v-39c47ad1]{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.app-trigger .label-text .is-mandatory[data-v-39c47ad1]{padding-top:5px;color:var(--error-main)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-0363db63],.v-leave-active[data-v-0363db63]{transition:opacity .25s ease}ol[data-v-0363db63],ul[data-v-0363db63],menu[data-v-0363db63]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-0363db63],.dropdown.full-width .button__container[data-v-0363db63]{width:100%}.dropdown-list-wrapper[data-v-0363db63]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-0363db63]{padding:.5rem}.list-container--multi[data-v-0363db63]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-0363db63]{padding-bottom:.25rem}.inline-search .list-container[data-v-0363db63]{padding-top:0}.no-result-container[data-v-0363db63]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-0363db63]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-0363db63]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-0363db63]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.image-slot[data-v-0363db63]{margin-right:.5rem}.actions-wrapper[data-v-0363db63]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-0363db63]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table-help-icon[data-v-7a611779]{margin-left:var(--spacing-50);color:var(--action-active);margin-right:calc(var(--spacing-50) * -1)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-e0c24b6a]{color:#41454d}.item-container[data-v-e0c24b6a]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-e0c24b6a]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-e0c24b6a]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-e0c24b6a],.item-container[data-v-e0c24b6a]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-e0c24b6a]{background-color:var(--action-selected)}.subtitle[data-v-e0c24b6a]{color:#7b838c;line-height:1rem}.clear-button[data-v-e0c24b6a]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-e0c24b6a]:hover{color:#3083ff}.item[data-v-e0c24b6a]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-e0c24b6a],.item--multi[data-v-e0c24b6a]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-e0c24b6a]{width:20px;height:20px;flex:none}.item .image img[data-v-e0c24b6a]{width:20px;height:20px;border-radius:4px}.item .start-icon[data-v-e0c24b6a],.item .end-icon[data-v-e0c24b6a]{display:flex;color:var(--action-active)}.item .option-text[data-v-e0c24b6a]{line-height:1.1875rem}.text-container[data-v-e0c24b6a]{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.tooltip-option[data-v-e0c24b6a]{display:block}.tooltip-option[data-v-e0c24b6a] .container{width:100%}
|
|
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
variant?: "outlined" | "standard";
|
|
6
6
|
dismissible?: boolean;
|
|
7
7
|
actionText?: string;
|
|
8
|
+
actionIconName?: string;
|
|
8
9
|
rounded?: boolean;
|
|
9
10
|
testId?: string;
|
|
10
11
|
}>, {
|
|
@@ -14,10 +15,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
15
|
color: string;
|
|
15
16
|
dismissible: boolean;
|
|
16
17
|
actionText: string;
|
|
18
|
+
actionIconName: any;
|
|
17
19
|
rounded: boolean;
|
|
18
20
|
testId: string;
|
|
19
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
22
|
close: () => void;
|
|
23
|
+
actionButtonClick: () => void;
|
|
21
24
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
25
|
title?: string;
|
|
23
26
|
description?: string;
|
|
@@ -25,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
28
|
variant?: "outlined" | "standard";
|
|
26
29
|
dismissible?: boolean;
|
|
27
30
|
actionText?: string;
|
|
31
|
+
actionIconName?: string;
|
|
28
32
|
rounded?: boolean;
|
|
29
33
|
testId?: string;
|
|
30
34
|
}>, {
|
|
@@ -34,10 +38,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
38
|
color: string;
|
|
35
39
|
dismissible: boolean;
|
|
36
40
|
actionText: string;
|
|
41
|
+
actionIconName: any;
|
|
37
42
|
rounded: boolean;
|
|
38
43
|
testId: string;
|
|
39
44
|
}>>> & {
|
|
40
45
|
onClose?: () => any;
|
|
46
|
+
onActionButtonClick?: () => any;
|
|
41
47
|
}, {
|
|
42
48
|
title: string;
|
|
43
49
|
variant: "outlined" | "standard";
|
|
@@ -46,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
52
|
description: string;
|
|
47
53
|
dismissible: boolean;
|
|
48
54
|
actionText: string;
|
|
55
|
+
actionIconName: string;
|
|
49
56
|
rounded: boolean;
|
|
50
57
|
}>, {
|
|
51
58
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Alert.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../Alert.
|
|
4
|
-
const
|
|
3
|
+
// import "../../Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a9f0dfcc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../Alert.
|
|
1
|
+
import "../../Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css"; import { defineComponent as C, computed as N, openBlock as l, createElementBlock as m, mergeProps as a, unref as t, createVNode as f, normalizeClass as g, createElementVNode as v, createBlock as s, withCtx as T, createTextVNode as x, toDisplayString as k, createCommentVNode as c, renderSlot as A } from "vue";
|
|
2
2
|
import y from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
import { AlertTestIdModifiers as
|
|
8
|
-
const
|
|
3
|
+
import E from "../icon/v4/IconV4.vue.js";
|
|
4
|
+
import S from "../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import $ from "../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import { useTestIdAttrs as b } from "../../utils/testIds.js";
|
|
7
|
+
import { AlertTestIdModifiers as n } from "../../testids/index.js";
|
|
8
|
+
const p = { class: "alert-content" }, w = { key: 0 }, R = /* @__PURE__ */ C({
|
|
9
9
|
__name: "Alert",
|
|
10
10
|
props: {
|
|
11
11
|
title: { default: "" },
|
|
@@ -14,71 +14,75 @@ const S = { class: "alert-content" }, b = { key: 0 }, R = /* @__PURE__ */ B({
|
|
|
14
14
|
variant: { default: "standard" },
|
|
15
15
|
dismissible: { type: Boolean, default: !1 },
|
|
16
16
|
actionText: { default: "" },
|
|
17
|
+
actionIconName: { default: null },
|
|
17
18
|
rounded: { type: Boolean, default: !0 },
|
|
18
19
|
testId: { default: "" }
|
|
19
20
|
},
|
|
20
|
-
emits: ["close"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
const
|
|
21
|
+
emits: ["close", "actionButtonClick"],
|
|
22
|
+
setup(e, { emit: d }) {
|
|
23
|
+
const u = e, B = N(() => {
|
|
24
|
+
const i = {
|
|
24
25
|
success: "check-circle",
|
|
25
26
|
warning: "warning",
|
|
26
27
|
danger: "warning-octagon",
|
|
27
28
|
info: "info"
|
|
28
29
|
};
|
|
29
|
-
return
|
|
30
|
-
}),
|
|
31
|
-
return (
|
|
30
|
+
return i[u.color] || i.success;
|
|
31
|
+
}), o = b(u.testId, n);
|
|
32
|
+
return (i, r) => (l(), m("div", a({
|
|
32
33
|
class: ["alert", {
|
|
33
|
-
[`alert--${
|
|
34
|
-
[`alert--${
|
|
35
|
-
"alert--rounded":
|
|
34
|
+
[`alert--${e.color}`]: !0,
|
|
35
|
+
[`alert--${e.variant}`]: !0,
|
|
36
|
+
"alert--rounded": e.rounded
|
|
36
37
|
}]
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
name:
|
|
40
|
-
class:
|
|
38
|
+
}, t(o)[t(n).WRAPPER]), [
|
|
39
|
+
f(t(E), {
|
|
40
|
+
name: t(B),
|
|
41
|
+
class: g(["alert-icon", { "alert-icon--align-top": e.title && e.description }]),
|
|
41
42
|
type: "fill",
|
|
42
43
|
size: "20px"
|
|
43
44
|
}, null, 8, ["name", "class"]),
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
v("div", p, [
|
|
46
|
+
e.title ? (l(), s(t(y), a({
|
|
46
47
|
key: 0,
|
|
47
48
|
class: "alert-title",
|
|
48
49
|
variant: "h4"
|
|
49
|
-
},
|
|
50
|
-
default:
|
|
51
|
-
|
|
50
|
+
}, t(o)[t(n).TITLE]), {
|
|
51
|
+
default: T(() => [
|
|
52
|
+
x(k(e.title), 1)
|
|
52
53
|
]),
|
|
53
54
|
_: 1
|
|
54
|
-
}, 16)) :
|
|
55
|
-
|
|
55
|
+
}, 16)) : c("", !0),
|
|
56
|
+
f(t(y), a({
|
|
56
57
|
class: "alert-description",
|
|
57
58
|
variant: "body1"
|
|
58
|
-
},
|
|
59
|
-
default:
|
|
60
|
-
A(
|
|
61
|
-
|
|
59
|
+
}, t(o)[t(n).MESSAGE]), {
|
|
60
|
+
default: T(() => [
|
|
61
|
+
A(i.$slots, "default", {}, () => [
|
|
62
|
+
e.description ? (l(), m("span", w, k(e.description), 1)) : c("", !0)
|
|
62
63
|
], !0)
|
|
63
64
|
]),
|
|
64
65
|
_: 3
|
|
65
66
|
}, 16)
|
|
66
67
|
]),
|
|
67
|
-
|
|
68
|
+
e.actionText ? (l(), s(t(S), a({
|
|
68
69
|
key: 0,
|
|
69
70
|
variant: "outlined",
|
|
70
|
-
content:
|
|
71
|
-
|
|
71
|
+
content: e.actionText,
|
|
72
|
+
"end-icon-name": e.actionIconName,
|
|
73
|
+
color: e.color,
|
|
72
74
|
size: "small"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
+
}, t(o)[t(n).ACTION_BUTTON], {
|
|
76
|
+
onClick: r[0] || (r[0] = (I) => d("actionButtonClick"))
|
|
77
|
+
}), null, 16, ["content", "end-icon-name", "color"])) : c("", !0),
|
|
78
|
+
e.dismissible ? (l(), s(t($), a({
|
|
75
79
|
key: 1,
|
|
76
80
|
class: "close-button",
|
|
77
81
|
"icon-name": "x",
|
|
78
82
|
size: "small"
|
|
79
|
-
},
|
|
80
|
-
onClick:
|
|
81
|
-
}), null, 16)) :
|
|
83
|
+
}, t(o)[t(n).CLOSE_BUTTON], {
|
|
84
|
+
onClick: r[1] || (r[1] = (I) => d("close"))
|
|
85
|
+
}), null, 16)) : c("", !0)
|
|
82
86
|
], 16));
|
|
83
87
|
}
|
|
84
88
|
});
|
|
@@ -11,6 +11,7 @@ declare const AlertTypes: () => ({
|
|
|
11
11
|
description: string;
|
|
12
12
|
dismissible: boolean;
|
|
13
13
|
actionText: string;
|
|
14
|
+
actionIconName: string;
|
|
14
15
|
rounded: boolean;
|
|
15
16
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
title: {
|
|
@@ -41,13 +42,18 @@ declare const AlertTypes: () => ({
|
|
|
41
42
|
type: import("vue").PropType<string>;
|
|
42
43
|
default: string;
|
|
43
44
|
};
|
|
45
|
+
actionIconName: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
44
49
|
rounded: {
|
|
45
50
|
type: import("vue").PropType<boolean>;
|
|
46
51
|
default: boolean;
|
|
47
52
|
};
|
|
48
53
|
}>> & {
|
|
49
54
|
onClose?: () => any;
|
|
50
|
-
|
|
55
|
+
onActionButtonClick?: () => any;
|
|
56
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionIconName" | "rounded">;
|
|
51
57
|
$attrs: {
|
|
52
58
|
[x: string]: unknown;
|
|
53
59
|
};
|
|
@@ -59,7 +65,7 @@ declare const AlertTypes: () => ({
|
|
|
59
65
|
}>;
|
|
60
66
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
61
67
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
62
|
-
$emit: (event: "close") => void;
|
|
68
|
+
$emit: ((event: "close") => void) & ((event: "actionButtonClick") => void);
|
|
63
69
|
$el: any;
|
|
64
70
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
65
71
|
title: {
|
|
@@ -90,14 +96,20 @@ declare const AlertTypes: () => ({
|
|
|
90
96
|
type: import("vue").PropType<string>;
|
|
91
97
|
default: string;
|
|
92
98
|
};
|
|
99
|
+
actionIconName: {
|
|
100
|
+
type: import("vue").PropType<string>;
|
|
101
|
+
default: any;
|
|
102
|
+
};
|
|
93
103
|
rounded: {
|
|
94
104
|
type: import("vue").PropType<boolean>;
|
|
95
105
|
default: boolean;
|
|
96
106
|
};
|
|
97
107
|
}>> & {
|
|
98
108
|
onClose?: () => any;
|
|
109
|
+
onActionButtonClick?: () => any;
|
|
99
110
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
100
111
|
close: () => void;
|
|
112
|
+
actionButtonClick: () => void;
|
|
101
113
|
}, string, {
|
|
102
114
|
title: string;
|
|
103
115
|
variant: "outlined" | "standard";
|
|
@@ -106,6 +118,7 @@ declare const AlertTypes: () => ({
|
|
|
106
118
|
description: string;
|
|
107
119
|
dismissible: boolean;
|
|
108
120
|
actionText: string;
|
|
121
|
+
actionIconName: string;
|
|
109
122
|
rounded: boolean;
|
|
110
123
|
}, {}, string> & {
|
|
111
124
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -156,12 +169,17 @@ declare const AlertTypes: () => ({
|
|
|
156
169
|
type: import("vue").PropType<string>;
|
|
157
170
|
default: string;
|
|
158
171
|
};
|
|
172
|
+
actionIconName: {
|
|
173
|
+
type: import("vue").PropType<string>;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
159
176
|
rounded: {
|
|
160
177
|
type: import("vue").PropType<boolean>;
|
|
161
178
|
default: boolean;
|
|
162
179
|
};
|
|
163
180
|
}>> & {
|
|
164
181
|
onClose?: () => any;
|
|
182
|
+
onActionButtonClick?: () => any;
|
|
165
183
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
166
184
|
__isFragment?: never;
|
|
167
185
|
__isTeleport?: never;
|
|
@@ -195,14 +213,20 @@ declare const AlertTypes: () => ({
|
|
|
195
213
|
type: import("vue").PropType<string>;
|
|
196
214
|
default: string;
|
|
197
215
|
};
|
|
216
|
+
actionIconName: {
|
|
217
|
+
type: import("vue").PropType<string>;
|
|
218
|
+
default: any;
|
|
219
|
+
};
|
|
198
220
|
rounded: {
|
|
199
221
|
type: import("vue").PropType<boolean>;
|
|
200
222
|
default: boolean;
|
|
201
223
|
};
|
|
202
224
|
}>> & {
|
|
203
225
|
onClose?: () => any;
|
|
226
|
+
onActionButtonClick?: () => any;
|
|
204
227
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
205
228
|
close: () => void;
|
|
229
|
+
actionButtonClick: () => void;
|
|
206
230
|
}, string, {
|
|
207
231
|
title: string;
|
|
208
232
|
variant: "outlined" | "standard";
|
|
@@ -211,6 +235,7 @@ declare const AlertTypes: () => ({
|
|
|
211
235
|
description: string;
|
|
212
236
|
dismissible: boolean;
|
|
213
237
|
actionText: string;
|
|
238
|
+
actionIconName: string;
|
|
214
239
|
rounded: boolean;
|
|
215
240
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
216
241
|
$slots: {
|
|
@@ -18,8 +18,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
optionImageKey?: string;
|
|
19
19
|
optionIconKey?: string;
|
|
20
20
|
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
21
|
-
optionEndIconKey?: string;
|
|
22
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
23
21
|
}>, {
|
|
24
22
|
placeholder: string;
|
|
25
23
|
selectedOption: any;
|
|
@@ -43,8 +41,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
41
|
optionImageKey: any;
|
|
44
42
|
optionIconKey: any;
|
|
45
43
|
optionIconType: any;
|
|
46
|
-
optionEndIconKey: any;
|
|
47
|
-
optionEndIconType: any;
|
|
48
44
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
45
|
click: () => void;
|
|
50
46
|
copyToClipboard: () => void;
|
|
@@ -68,8 +64,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
68
64
|
optionImageKey?: string;
|
|
69
65
|
optionIconKey?: string;
|
|
70
66
|
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
71
|
-
optionEndIconKey?: string;
|
|
72
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
73
67
|
}>, {
|
|
74
68
|
placeholder: string;
|
|
75
69
|
selectedOption: any;
|
|
@@ -93,8 +87,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
87
|
optionImageKey: any;
|
|
94
88
|
optionIconKey: any;
|
|
95
89
|
optionIconType: any;
|
|
96
|
-
optionEndIconKey: any;
|
|
97
|
-
optionEndIconType: any;
|
|
98
90
|
}>>> & {
|
|
99
91
|
onClick?: () => any;
|
|
100
92
|
onCopyToClipboard?: () => any;
|
|
@@ -114,15 +106,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
114
106
|
optionIconKey: string;
|
|
115
107
|
optionImageKey: string;
|
|
116
108
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
117
|
-
optionEndIconKey: string;
|
|
118
|
-
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
119
109
|
valueToCopy: string;
|
|
120
110
|
selectedOption: any;
|
|
121
111
|
brandIconType: "android" | "ios";
|
|
122
112
|
}>, {
|
|
123
113
|
image?(_: {}): any;
|
|
124
114
|
"icon-start"?(_: {}): any;
|
|
125
|
-
"icon-end"?(_: {}): any;
|
|
126
115
|
}>;
|
|
127
116
|
export default _default;
|
|
128
117
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../AppDropdownTrigger.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-39c47ad1"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import "../../../AppDropdownTrigger.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { DropdownTestIdModifiers as
|
|
5
|
-
import { useTestIdAttrs as
|
|
6
|
-
import
|
|
7
|
-
import { useClipboard as
|
|
8
|
-
import { Snackbar as
|
|
9
|
-
const
|
|
1
|
+
import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css"; import { defineComponent as V, computed as p, openBlock as o, createElementBlock as n, normalizeClass as B, createElementVNode as a, mergeProps as O, unref as l, renderSlot as T, createCommentVNode as i, createVNode as s, withCtx as v, toDisplayString as $ } from "vue";
|
|
2
|
+
import r from "../../icon/v4/IconV4.vue.js";
|
|
3
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as K } from "../../../utils/testIds.js";
|
|
6
|
+
import N from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
import { useClipboard as w } from "@vueuse/core";
|
|
8
|
+
import { Snackbar as z } from "../../snackbar/v4/index.js";
|
|
9
|
+
const S = { class: "app-trigger--content" }, D = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "image"
|
|
12
|
-
},
|
|
12
|
+
}, E = ["src"], P = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "start-icon"
|
|
15
15
|
}, R = { class: "label-text" }, U = { key: 0 }, L = { class: "text-content" }, M = { class: "text-content-value" }, W = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "is-mandatory"
|
|
18
|
-
}, j = {
|
|
19
|
-
key: 2,
|
|
20
|
-
class: "end-icon"
|
|
21
|
-
}, q = { class: "app-trigger-key--content" }, ee = /* @__PURE__ */ A({
|
|
18
|
+
}, j = { class: "app-trigger-key--content" }, _ = /* @__PURE__ */ V({
|
|
22
19
|
__name: "AppDropdownTrigger",
|
|
23
20
|
props: {
|
|
24
21
|
placeholder: { default: "Select app" },
|
|
@@ -39,108 +36,97 @@ const w = { class: "app-trigger--content" }, S = {
|
|
|
39
36
|
optionNameKey: { default: null },
|
|
40
37
|
optionImageKey: { default: null },
|
|
41
38
|
optionIconKey: { default: null },
|
|
42
|
-
optionIconType: { default: null }
|
|
43
|
-
optionEndIconKey: { default: null },
|
|
44
|
-
optionEndIconType: { default: null }
|
|
39
|
+
optionIconType: { default: null }
|
|
45
40
|
},
|
|
46
41
|
emits: ["click", "copyToClipboard"],
|
|
47
|
-
setup(t, { emit:
|
|
48
|
-
const e = t, { copy:
|
|
42
|
+
setup(t, { emit: y }) {
|
|
43
|
+
const e = t, { copy: k, copied: C } = w({}), I = p(
|
|
49
44
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
50
45
|
), b = () => {
|
|
51
|
-
|
|
52
|
-
},
|
|
46
|
+
y("click");
|
|
47
|
+
}, f = K(e.testId, u), m = "All apps selected", g = p(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${m} (${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), d = p(() => {
|
|
53
48
|
if (!e.selectedOption)
|
|
54
49
|
return null;
|
|
55
50
|
if (!e.multi)
|
|
56
51
|
return e.selectedOption;
|
|
57
52
|
if (Array.isArray(e.selectedOption))
|
|
58
53
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
59
|
-
}),
|
|
60
|
-
await
|
|
54
|
+
}), A = async () => {
|
|
55
|
+
await k(e.valueToCopy), C.value && (z({
|
|
61
56
|
title: "Copied successfully",
|
|
62
57
|
type: "success",
|
|
63
58
|
duration: 2e3
|
|
64
|
-
}),
|
|
59
|
+
}), y("copyToClipboard"));
|
|
65
60
|
};
|
|
66
|
-
return (
|
|
67
|
-
class:
|
|
61
|
+
return (c, h) => (o(), n("div", {
|
|
62
|
+
class: B(["app-trigger-wrapper", { "with-copy": !!t.valueToCopy }])
|
|
68
63
|
}, [
|
|
69
|
-
|
|
70
|
-
class: ["app-trigger", [t.size,
|
|
64
|
+
a("div", O({
|
|
65
|
+
class: ["app-trigger", [t.size, l(I), { open: t.open, disabled: t.disabled }]],
|
|
71
66
|
style: {
|
|
72
|
-
paddingLeft:
|
|
67
|
+
paddingLeft: c.$slots.image || l(d) && t.optionImageKey ? "8px" : "12px"
|
|
73
68
|
}
|
|
74
|
-
},
|
|
75
|
-
onClick:
|
|
69
|
+
}, l(f)[l(u).BUTTON_WRAPPER], {
|
|
70
|
+
onClick: h[0] || (h[0] = (q) => b())
|
|
76
71
|
}), [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
t.optionImageKey ? (
|
|
72
|
+
a("div", S, [
|
|
73
|
+
c.$slots.image || l(d) && t.optionImageKey ? (o(), n("div", D, [
|
|
74
|
+
T(c.$slots, "image", {}, () => [
|
|
75
|
+
t.optionImageKey ? (o(), n("img", {
|
|
81
76
|
key: 0,
|
|
82
|
-
src:
|
|
83
|
-
}, null, 8,
|
|
77
|
+
src: l(d)[t.optionImageKey]
|
|
78
|
+
}, null, 8, E)) : i("", !0)
|
|
84
79
|
], !0)
|
|
85
|
-
])) :
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
])) : i("", !0),
|
|
81
|
+
c.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), n("div", P, [
|
|
82
|
+
T(c.$slots, "icon-start", {}, () => [
|
|
83
|
+
s(l(r), {
|
|
89
84
|
type: t.optionIconType,
|
|
90
|
-
name:
|
|
85
|
+
name: l(d)[t.optionIconKey],
|
|
91
86
|
size: "20px"
|
|
92
87
|
}, null, 8, ["type", "name"])
|
|
93
88
|
], !0)
|
|
94
|
-
])) :
|
|
95
|
-
|
|
96
|
-
default:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
])) : i("", !0),
|
|
90
|
+
s(l(x), O({ variant: "button" }, l(f)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
91
|
+
default: v(() => [
|
|
92
|
+
a("div", R, [
|
|
93
|
+
l(g) === m ? (o(), n("span", U, [
|
|
94
|
+
s(l(r), {
|
|
100
95
|
name: "cube",
|
|
101
96
|
size: "20px",
|
|
102
97
|
type: "fill"
|
|
103
98
|
})
|
|
104
|
-
])) :
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
t.mandatory && (Array.isArray(t.selectedOption) ? !t.selectedOption.length : !t.selectedOption) ? (
|
|
99
|
+
])) : i("", !0),
|
|
100
|
+
a("div", L, [
|
|
101
|
+
a("div", M, $(l(g)), 1),
|
|
102
|
+
t.mandatory && (Array.isArray(t.selectedOption) ? !t.selectedOption.length : !t.selectedOption) ? (o(), n("span", W, "*")) : i("", !0)
|
|
108
103
|
])
|
|
109
104
|
])
|
|
110
105
|
]),
|
|
111
106
|
_: 1
|
|
112
|
-
}, 16)
|
|
113
|
-
i.$slots["icon-end"] || o(l) && t.optionEndIconKey && o(l)[t.optionEndIconKey] ? (n(), a("div", j, [
|
|
114
|
-
u(i.$slots, "icon-end", {}, () => [
|
|
115
|
-
c(o(p), {
|
|
116
|
-
type: t.optionEndIconType,
|
|
117
|
-
name: o(l)[t.optionEndIconKey],
|
|
118
|
-
size: "24px"
|
|
119
|
-
}, null, 8, ["type", "name"])
|
|
120
|
-
], !0)
|
|
121
|
-
])) : d("", !0)
|
|
107
|
+
}, 16)
|
|
122
108
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
109
|
+
a("div", null, [
|
|
110
|
+
s(l(r), {
|
|
125
111
|
name: "caret-down",
|
|
126
112
|
size: "20px",
|
|
127
113
|
class: "app-trigger--icon"
|
|
128
114
|
})
|
|
129
115
|
])
|
|
130
116
|
], 16),
|
|
131
|
-
t.valueToCopy ? (
|
|
117
|
+
t.valueToCopy ? (o(), n("div", {
|
|
132
118
|
key: 0,
|
|
133
119
|
class: "app-trigger-key",
|
|
134
|
-
onClick:
|
|
120
|
+
onClick: A
|
|
135
121
|
}, [
|
|
136
|
-
|
|
122
|
+
s(l(N), {
|
|
137
123
|
text: t.valueToCopy,
|
|
138
124
|
header: "Copy app key",
|
|
139
125
|
placement: "bottom"
|
|
140
126
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
|
|
143
|
-
|
|
127
|
+
default: v(() => [
|
|
128
|
+
a("div", j, [
|
|
129
|
+
s(l(r), {
|
|
144
130
|
name: "copy",
|
|
145
131
|
size: "20px"
|
|
146
132
|
})
|
|
@@ -148,10 +134,10 @@ const w = { class: "app-trigger--content" }, S = {
|
|
|
148
134
|
]),
|
|
149
135
|
_: 1
|
|
150
136
|
}, 8, ["text"])
|
|
151
|
-
])) :
|
|
137
|
+
])) : i("", !0)
|
|
152
138
|
], 2));
|
|
153
139
|
}
|
|
154
140
|
});
|
|
155
141
|
export {
|
|
156
|
-
|
|
142
|
+
_ as default
|
|
157
143
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0363db63"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|