@ironsource/shared-ui 2.1.3-rc.19 → 2.1.3-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert.vue_vue_type_style_index_0_scoped_72bcdcd0_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +14 -7
- package/components/alert/Alert.vue.js +3 -3
- package/components/alert/Alert.vue2.js +28 -27
- package/components/alert/index.d.ts +176 -38
- package/components/autocomplete/Autocomplete.vue2.js +14 -12
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +124 -114
- package/components/dropdown/v4/index.d.ts +90 -3
- package/components/dropdown/v4/index.js +16 -10
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- package/index.d.ts +262 -3
- package/package.json +1 -1
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b9e03c56_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.alert[data-v-72bcdcd0]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-72bcdcd0]{border-radius:var(--border-radius-lg)}.alert--success[data-v-72bcdcd0]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-72bcdcd0]{color:var(--success-main)}.alert--warning[data-v-72bcdcd0]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-72bcdcd0]{color:var(--warning-main)}.alert--danger[data-v-72bcdcd0]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-72bcdcd0]{color:var(--error-main)}.alert--info[data-v-72bcdcd0]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-72bcdcd0]{color:var(--info-main)}.alert--standard[data-v-72bcdcd0]{outline:none}.alert--outlined[data-v-72bcdcd0]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-72bcdcd0]{align-self:flex-start}.alert-content[data-v-72bcdcd0]{flex:1;margin:0 var(--spacing-150)}.alert-title[data-v-72bcdcd0]{color:var(--text-primary);line-height:20px}.alert-description[data-v-72bcdcd0]{color:var(--text-secondary)}.close-button[data-v-72bcdcd0]{margin-left:var(--spacing-100)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.button-trigger.open[data-v-23e22560]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-trigger.open[data-v-23e22560]:hover{background:var(--action-selected)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.button-filter-dropdown-trigger[data-v-7f750550]{border-radius:var(--border-radius-md);transition:all .2s ease;color:var(--text-primary);display:inline-flex;padding:5px 5.5px;align-items:center}.button-filter-dropdown-trigger[data-v-7f750550]:hover{cursor:pointer;background:var(--action-hover)}.button-filter-dropdown-trigger.outlined[data-v-7f750550]{border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.outlined[data-v-7f750550]:hover{border:1px solid var(--action-active)}.button-filter-dropdown-trigger.outlined.disabled[data-v-7f750550]{background:transparent;border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.open[data-v-7f750550]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-filter-dropdown-trigger.open[data-v-7f750550]:hover{background:var(--action-selected)}.button-filter-dropdown-trigger.disabled[data-v-7f750550]{cursor:default;color:var(--text-disabled)}.button-filter-dropdown-trigger.disabled[data-v-7f750550]:hover{background:transparent}.start-icon[data-v-7f750550]{margin-right:var(--spacing-50)}.end-icon[data-v-7f750550]{margin-left:var(--spacing-50)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-24014c62],.v-leave-active[data-v-24014c62]{transition:opacity .25s ease}ol[data-v-24014c62],ul[data-v-24014c62],menu[data-v-24014c62]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-24014c62],.dropdown.full-width .button__container[data-v-24014c62]{width:100%}.dropdown-list-wrapper[data-v-24014c62]{display:flex;flex-direction:column;padding:.5rem}.list-container--multi[data-v-24014c62]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-24014c62]{padding-bottom:.25rem}.inline-search .list-container[data-v-24014c62]{padding-top:0}.no-result-container[data-v-24014c62]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-24014c62]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-24014c62]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-24014c62]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list li[data-v-24014c62]:last-child .item-container{margin-bottom:0}.image-slot[data-v-24014c62]{margin-right:.5rem}.actions-wrapper[data-v-24014c62]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between}.apply-button[data-v-24014c62]{margin-left:.5rem}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
title?: string;
|
|
3
3
|
description?: string;
|
|
4
|
-
color?:
|
|
5
|
-
variant?:
|
|
4
|
+
color?: "danger" | "info" | "success" | "warning";
|
|
5
|
+
variant?: "outlined" | "standard";
|
|
6
6
|
dismissible?: boolean;
|
|
7
7
|
actionText?: string;
|
|
8
8
|
rounded?: boolean;
|
|
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
21
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
22
|
title?: string;
|
|
23
23
|
description?: string;
|
|
24
|
-
color?:
|
|
25
|
-
variant?:
|
|
24
|
+
color?: "danger" | "info" | "success" | "warning";
|
|
25
|
+
variant?: "outlined" | "standard";
|
|
26
26
|
dismissible?: boolean;
|
|
27
27
|
actionText?: string;
|
|
28
28
|
rounded?: boolean;
|
|
@@ -40,13 +40,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
40
40
|
onClose?: () => any;
|
|
41
41
|
}, {
|
|
42
42
|
title: string;
|
|
43
|
-
variant:
|
|
44
|
-
color:
|
|
43
|
+
variant: "outlined" | "standard";
|
|
44
|
+
color: "danger" | "info" | "success" | "warning";
|
|
45
45
|
testId: string;
|
|
46
46
|
description: string;
|
|
47
47
|
dismissible: boolean;
|
|
48
48
|
actionText: string;
|
|
49
49
|
rounded: boolean;
|
|
50
|
+
}>, {
|
|
51
|
+
default?(_: {}): any;
|
|
50
52
|
}>;
|
|
51
53
|
export default _default;
|
|
52
54
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -66,3 +68,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
66
68
|
type __VLS_Prettify<T> = {
|
|
67
69
|
[K in keyof T]: T[K];
|
|
68
70
|
} & {};
|
|
71
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -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_72bcdcd0_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-72bcdcd0"]]);
|
|
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_72bcdcd0_lang.css"; import { defineComponent as g, computed as v, openBlock as l, createElementBlock as B, mergeProps as r, unref as e, createVNode as I, normalizeClass as x, createElementVNode as N, createBlock as c, withCtx as u, createTextVNode as m, toDisplayString as f, createCommentVNode as a, renderSlot as A } from "vue";
|
|
2
2
|
import T from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useTestIdAttrs as
|
|
3
|
+
import C from "../icon/v4/IconV4.vue.js";
|
|
4
|
+
import E from "../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import S from "../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import { useTestIdAttrs as b } from "../../utils/testIds.js";
|
|
7
7
|
import { AlertTestIdModifiers as o } from "../../testids/index.js";
|
|
8
|
-
const
|
|
8
|
+
const h = { class: "alert-content" }, L = /* @__PURE__ */ g({
|
|
9
9
|
__name: "Alert",
|
|
10
10
|
props: {
|
|
11
11
|
title: { default: "" },
|
|
@@ -19,30 +19,30 @@ const b = { class: "alert-content" }, $ = /* @__PURE__ */ k({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["close"],
|
|
21
21
|
setup(t, { emit: y }) {
|
|
22
|
-
const s = t,
|
|
23
|
-
const
|
|
22
|
+
const s = t, k = v(() => {
|
|
23
|
+
const i = {
|
|
24
24
|
success: "check-circle",
|
|
25
25
|
warning: "warning",
|
|
26
26
|
danger: "warning-octagon",
|
|
27
27
|
info: "info"
|
|
28
28
|
};
|
|
29
|
-
return
|
|
30
|
-
}), n =
|
|
31
|
-
return (
|
|
29
|
+
return i[s.color] || i.success;
|
|
30
|
+
}), n = b(s.testId, o);
|
|
31
|
+
return (i, d) => (l(), B("div", r({
|
|
32
32
|
class: ["alert", {
|
|
33
33
|
[`alert--${t.color}`]: !0,
|
|
34
34
|
[`alert--${t.variant}`]: !0,
|
|
35
35
|
"alert--rounded": t.rounded
|
|
36
36
|
}]
|
|
37
37
|
}, e(n)[e(o).WRAPPER]), [
|
|
38
|
-
I(e(
|
|
39
|
-
name: e(
|
|
40
|
-
class:
|
|
38
|
+
I(e(C), {
|
|
39
|
+
name: e(k),
|
|
40
|
+
class: x(["alert-icon", { "alert-icon--align-top": t.title && t.description }]),
|
|
41
41
|
type: "fill",
|
|
42
42
|
size: "20px"
|
|
43
43
|
}, null, 8, ["name", "class"]),
|
|
44
|
-
N("div",
|
|
45
|
-
t.title ? (l(),
|
|
44
|
+
N("div", h, [
|
|
45
|
+
t.title ? (l(), c(e(T), r({
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "alert-title",
|
|
48
48
|
variant: "h4"
|
|
@@ -51,36 +51,37 @@ const b = { class: "alert-content" }, $ = /* @__PURE__ */ k({
|
|
|
51
51
|
m(f(t.title), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
|
-
}, 16)) :
|
|
55
|
-
t.description ? (l(),
|
|
54
|
+
}, 16)) : a("", !0),
|
|
55
|
+
t.description ? (l(), c(e(T), r({
|
|
56
56
|
key: 1,
|
|
57
57
|
class: "alert-description",
|
|
58
58
|
variant: "body1"
|
|
59
59
|
}, e(n)[e(o).MESSAGE]), {
|
|
60
60
|
default: u(() => [
|
|
61
|
-
m(f(t.description), 1)
|
|
61
|
+
m(f(t.description) + " ", 1),
|
|
62
|
+
t.description ? a("", !0) : A(i.$slots, "default", { key: 0 }, void 0, !0)
|
|
62
63
|
]),
|
|
63
|
-
_:
|
|
64
|
-
}, 16)) :
|
|
64
|
+
_: 3
|
|
65
|
+
}, 16)) : a("", !0)
|
|
65
66
|
]),
|
|
66
|
-
t.actionText ? (l(),
|
|
67
|
+
t.actionText ? (l(), c(e(E), r({
|
|
67
68
|
key: 0,
|
|
68
69
|
variant: "outlined",
|
|
69
70
|
content: t.actionText,
|
|
70
71
|
color: t.color,
|
|
71
72
|
size: "small"
|
|
72
|
-
}, e(n)[e(o).ACTION_BUTTON]), null, 16, ["content", "color"])) :
|
|
73
|
-
t.dismissible ? (l(),
|
|
73
|
+
}, e(n)[e(o).ACTION_BUTTON]), null, 16, ["content", "color"])) : a("", !0),
|
|
74
|
+
t.dismissible ? (l(), c(e(S), r({
|
|
74
75
|
key: 1,
|
|
75
76
|
class: "close-button",
|
|
76
77
|
"icon-name": "x",
|
|
77
78
|
size: "small"
|
|
78
79
|
}, e(n)[e(o).CLOSE_BUTTON], {
|
|
79
|
-
onClick: d[0] || (d[0] = (
|
|
80
|
-
}), null, 16)) :
|
|
80
|
+
onClick: d[0] || (d[0] = (p) => y("close"))
|
|
81
|
+
}), null, 16)) : a("", !0)
|
|
81
82
|
], 16));
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
L as default
|
|
86
87
|
};
|
|
@@ -1,40 +1,172 @@
|
|
|
1
1
|
import Alert from './Alert.vue';
|
|
2
|
-
declare const AlertTypes: () =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
declare const AlertTypes: () => ({
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
title: string;
|
|
8
|
+
variant: "outlined" | "standard";
|
|
9
|
+
color: "danger" | "info" | "success" | "warning";
|
|
10
|
+
testId: string;
|
|
11
|
+
description: string;
|
|
12
|
+
dismissible: boolean;
|
|
13
|
+
actionText: string;
|
|
14
|
+
rounded: boolean;
|
|
15
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
title: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
variant: {
|
|
21
|
+
type: import("vue").PropType<"outlined" | "standard">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
color: {
|
|
25
|
+
type: import("vue").PropType<"danger" | "info" | "success" | "warning">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
testId: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
description: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
dismissible: {
|
|
37
|
+
type: import("vue").PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
actionText: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
rounded: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onClose?: () => any;
|
|
50
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "rounded">;
|
|
51
|
+
$attrs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
$refs: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
$slots: Readonly<{
|
|
58
|
+
[name: string]: import("vue").Slot;
|
|
59
|
+
}>;
|
|
60
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
61
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
62
|
+
$emit: (event: "close") => void;
|
|
63
|
+
$el: any;
|
|
64
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
title: {
|
|
66
|
+
type: import("vue").PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
variant: {
|
|
70
|
+
type: import("vue").PropType<"outlined" | "standard">;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
color: {
|
|
74
|
+
type: import("vue").PropType<"danger" | "info" | "success" | "warning">;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
testId: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
description: {
|
|
82
|
+
type: import("vue").PropType<string>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
dismissible: {
|
|
86
|
+
type: import("vue").PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
actionText: {
|
|
90
|
+
type: import("vue").PropType<string>;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
rounded: {
|
|
94
|
+
type: import("vue").PropType<boolean>;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>> & {
|
|
98
|
+
onClose?: () => any;
|
|
99
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
100
|
+
close: () => void;
|
|
101
|
+
}, string, {
|
|
102
|
+
title: string;
|
|
103
|
+
variant: "outlined" | "standard";
|
|
104
|
+
color: "danger" | "info" | "success" | "warning";
|
|
105
|
+
testId: string;
|
|
106
|
+
description: string;
|
|
107
|
+
dismissible: boolean;
|
|
108
|
+
actionText: string;
|
|
109
|
+
rounded: boolean;
|
|
110
|
+
}, {}, string> & {
|
|
111
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
112
|
+
created?: (() => void) | (() => void)[];
|
|
113
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
114
|
+
mounted?: (() => void) | (() => void)[];
|
|
115
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
116
|
+
updated?: (() => void) | (() => void)[];
|
|
117
|
+
activated?: (() => void) | (() => void)[];
|
|
118
|
+
deactivated?: (() => void) | (() => void)[];
|
|
119
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
120
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
121
|
+
destroyed?: (() => void) | (() => void)[];
|
|
122
|
+
unmounted?: (() => void) | (() => void)[];
|
|
123
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
124
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
125
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
126
|
+
};
|
|
127
|
+
$forceUpdate: () => void;
|
|
128
|
+
$nextTick: typeof import("vue").nextTick;
|
|
129
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
130
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
131
|
+
title: {
|
|
132
|
+
type: import("vue").PropType<string>;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
variant: {
|
|
136
|
+
type: import("vue").PropType<"outlined" | "standard">;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
color: {
|
|
140
|
+
type: import("vue").PropType<"danger" | "info" | "success" | "warning">;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
testId: {
|
|
144
|
+
type: import("vue").PropType<string>;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
description: {
|
|
148
|
+
type: import("vue").PropType<string>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
dismissible: {
|
|
152
|
+
type: import("vue").PropType<boolean>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
actionText: {
|
|
156
|
+
type: import("vue").PropType<string>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
rounded: {
|
|
160
|
+
type: import("vue").PropType<boolean>;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
}>> & {
|
|
164
|
+
onClose?: () => any;
|
|
165
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
166
|
+
__isFragment?: never;
|
|
167
|
+
__isTeleport?: never;
|
|
168
|
+
__isSuspense?: never;
|
|
169
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
38
170
|
title: {
|
|
39
171
|
type: import("vue").PropType<string>;
|
|
40
172
|
default: string;
|
|
@@ -69,7 +201,9 @@ declare const AlertTypes: () => import("vue").DefineComponent<{
|
|
|
69
201
|
};
|
|
70
202
|
}>> & {
|
|
71
203
|
onClose?: () => any;
|
|
72
|
-
}, {
|
|
204
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
205
|
+
close: () => void;
|
|
206
|
+
}, string, {
|
|
73
207
|
title: string;
|
|
74
208
|
variant: "outlined" | "standard";
|
|
75
209
|
color: "danger" | "info" | "success" | "warning";
|
|
@@ -78,5 +212,9 @@ declare const AlertTypes: () => import("vue").DefineComponent<{
|
|
|
78
212
|
dismissible: boolean;
|
|
79
213
|
actionText: string;
|
|
80
214
|
rounded: boolean;
|
|
81
|
-
}>
|
|
215
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
216
|
+
$slots: {
|
|
217
|
+
default?(_: {}): any;
|
|
218
|
+
};
|
|
219
|
+
}))[];
|
|
82
220
|
export { Alert, AlertTypes };
|
|
@@ -4,10 +4,12 @@ import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
+
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
7
9
|
import "../dropdown/v4/OptionV4.vue.js";
|
|
8
10
|
import F from "../input/v4/TextField.vue.js";
|
|
9
11
|
import { useVModel as I } from "@vueuse/core";
|
|
10
|
-
const
|
|
12
|
+
const R = /* @__PURE__ */ h({
|
|
11
13
|
__name: "Autocomplete",
|
|
12
14
|
props: {
|
|
13
15
|
modelValue: { default: "" },
|
|
@@ -28,10 +30,10 @@ const $ = /* @__PURE__ */ h({
|
|
|
28
30
|
},
|
|
29
31
|
emits: ["update:modelValue"],
|
|
30
32
|
setup(e, { emit: p }) {
|
|
31
|
-
const a = e,
|
|
32
|
-
t !== void 0 && (
|
|
33
|
+
const a = e, d = I(a, "modelValue", p), m = (t) => {
|
|
34
|
+
t !== void 0 && (d.value = a.displayValue(t));
|
|
33
35
|
}, c = (t, l) => a.displayValue(t).toLowerCase().replace(/\s+/g, "").includes(l.toLowerCase().replace(/\s+/g, "")), n = b(() => {
|
|
34
|
-
const t =
|
|
36
|
+
const t = d.value.toString();
|
|
35
37
|
return (a.options || []).filter((l) => a.displayValue(l) !== t).filter(
|
|
36
38
|
(l) => a.onSearch !== null ? a.onSearch(l, t) : c(l, t)
|
|
37
39
|
);
|
|
@@ -44,7 +46,7 @@ const $ = /* @__PURE__ */ h({
|
|
|
44
46
|
};
|
|
45
47
|
return (t, l) => (V(), x(s(C), {
|
|
46
48
|
"is-open": o.value,
|
|
47
|
-
"onUpdate:is-open": l[3] || (l[3] = (
|
|
49
|
+
"onUpdate:is-open": l[3] || (l[3] = (i) => o.value = i),
|
|
48
50
|
class: "autocomplete-dropdown",
|
|
49
51
|
"display-value": e.displayValue,
|
|
50
52
|
options: s(n),
|
|
@@ -58,8 +60,8 @@ const $ = /* @__PURE__ */ h({
|
|
|
58
60
|
}, {
|
|
59
61
|
"dropdown-trigger": f(() => [
|
|
60
62
|
w(s(F), {
|
|
61
|
-
modelValue: s(
|
|
62
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
63
|
+
modelValue: s(d),
|
|
64
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => g(d) ? d.value = i : null),
|
|
63
65
|
class: "autocomplete-field",
|
|
64
66
|
placeholder: e.placeholder,
|
|
65
67
|
disabled: e.disabled,
|
|
@@ -70,18 +72,18 @@ const $ = /* @__PURE__ */ h({
|
|
|
70
72
|
"hover-help-text": e.hoverHelpText,
|
|
71
73
|
"hover-help-text-placemen": e.hoverHelpTextPlacement,
|
|
72
74
|
"test-id": e.testId,
|
|
73
|
-
onFocusin: l[1] || (l[1] = (
|
|
74
|
-
onFocusout: l[2] || (l[2] = (
|
|
75
|
+
onFocusin: l[1] || (l[1] = (i) => u.value = !0),
|
|
76
|
+
onFocusout: l[2] || (l[2] = (i) => u.value = !1),
|
|
75
77
|
onClick: v
|
|
76
78
|
}, null, 8, ["modelValue", "placeholder", "disabled", "size", "label", "label-direction", "mandatory", "hover-help-text", "hover-help-text-placemen", "test-id"])
|
|
77
79
|
]),
|
|
78
|
-
default: f((
|
|
79
|
-
S(t.$slots, "default", k(z(
|
|
80
|
+
default: f((i) => [
|
|
81
|
+
S(t.$slots, "default", k(z(i)), void 0, !0)
|
|
80
82
|
]),
|
|
81
83
|
_: 3
|
|
82
84
|
}, 8, ["is-open", "display-value", "options", "option-name-key", "options-list-width", "disabled", "test-id"]));
|
|
83
85
|
}
|
|
84
86
|
});
|
|
85
87
|
export {
|
|
86
|
-
|
|
88
|
+
R as default
|
|
87
89
|
};
|
|
@@ -28,6 +28,7 @@ export declare const dropdownCommon: (props: any, emit: any, commonOptions: any)
|
|
|
28
28
|
virtualOptions: Ref<UseVirtualListItem<unknown>[]>;
|
|
29
29
|
isSelected: (arr: any, element: any) => boolean;
|
|
30
30
|
selectedOption: import("vue").WritableComputedRef<unknown>;
|
|
31
|
+
selectedValue: import("vue").ComputedRef<any>;
|
|
31
32
|
onSelect: (option: any, index?: number) => void;
|
|
32
33
|
activeIndex: Ref<number>;
|
|
33
34
|
onCancel: () => void;
|