@ironsource/shared-ui 2.1.6-rc.36 → 2.1.6-rc.38
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/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b484da34_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_54adec1e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +6 -5
- package/components/autocomplete/index.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +22 -22
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +43 -40
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +21 -22
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +120 -0
- package/components/dropdown/v4/index.d.ts +189 -2
- package/components/dropdown/v4/index.js +7 -4
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +3 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +169 -166
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/index.d.ts +9 -3
- package/index.d.ts +393 -8
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_ac14037f_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2e7a89bc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_69abfd4a_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css"; import { defineComponent as B, ref as z, computed as N, openBlock as i, createBlock as f, unref as n, withCtx as y, createElementVNode as s, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as c, createVNode as d, createTextVNode as K, toDisplayString as h, withModifiers as V } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import w from "../../typography/Text.vue.js";
|
|
4
4
|
import O from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -39,7 +39,7 @@ const R = {
|
|
|
39
39
|
const g = e, { selected: r, isMulti: u, id: I, onClick: x, api: b } = S(g), m = z(null), p = N(
|
|
40
40
|
() => m.value && M(m.value)
|
|
41
41
|
), C = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : p.value ? t[g.nameKey] : "", $ = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null;
|
|
42
|
-
return (t, a) => (
|
|
42
|
+
return (t, a) => (i(), f(n(j), {
|
|
43
43
|
text: C(e.option),
|
|
44
44
|
"test-id": $(e.option),
|
|
45
45
|
placement: e.toolTipPlacement,
|
|
@@ -51,37 +51,36 @@ const R = {
|
|
|
51
51
|
class: v(["item-container", {
|
|
52
52
|
"item-container--disabled": e.disabled,
|
|
53
53
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
54
|
-
"item-container--selected":
|
|
55
|
-
"item-container--multi":
|
|
54
|
+
"item-container--selected": n(r),
|
|
55
|
+
"item-container--multi": n(u)
|
|
56
56
|
}])
|
|
57
57
|
}, [
|
|
58
58
|
s("div", {
|
|
59
59
|
class: v(["item", {
|
|
60
|
-
"item--multi":
|
|
60
|
+
"item--multi": n(u),
|
|
61
61
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
62
62
|
}])
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
n(u) ? (i(), f(n(O), {
|
|
65
65
|
key: 0,
|
|
66
|
-
id:
|
|
66
|
+
id: n(I).toString(),
|
|
67
67
|
tabindex: "-1",
|
|
68
68
|
class: "checkbox",
|
|
69
|
-
|
|
70
|
-
"is-
|
|
71
|
-
|
|
72
|
-
onClick: a[0] || (a[0] = (k) => e.disabled ? i(P)() : i(x)(k))
|
|
69
|
+
"is-checked": n(r),
|
|
70
|
+
"is-indeterminate": e.isIndeterminate,
|
|
71
|
+
onClick: a[0] || (a[0] = (k) => e.disabled ? n(P)() : n(x)(k))
|
|
73
72
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : o("", !0),
|
|
74
|
-
t.$slots.image || e.imageKey ? (
|
|
73
|
+
t.$slots.image || e.imageKey ? (i(), l("div", R, [
|
|
75
74
|
c(t.$slots, "image", {}, () => [
|
|
76
|
-
e.imageKey ? (
|
|
75
|
+
e.imageKey ? (i(), l("img", {
|
|
77
76
|
key: 0,
|
|
78
77
|
src: e.option[e.imageKey]
|
|
79
78
|
}, null, 8, A)) : o("", !0)
|
|
80
79
|
], !0)
|
|
81
80
|
])) : o("", !0),
|
|
82
|
-
t.$slots["icon-start"] || e.iconKey ? (
|
|
81
|
+
t.$slots["icon-start"] || e.iconKey ? (i(), l("div", D, [
|
|
83
82
|
c(t.$slots, "icon-start", {}, () => [
|
|
84
|
-
d(
|
|
83
|
+
d(n(T), {
|
|
85
84
|
type: e.iconType,
|
|
86
85
|
name: e.option[e.iconKey],
|
|
87
86
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
@@ -93,7 +92,7 @@ const R = {
|
|
|
93
92
|
ref: m,
|
|
94
93
|
class: "text-container"
|
|
95
94
|
}, [
|
|
96
|
-
d(
|
|
95
|
+
d(n(E), {
|
|
97
96
|
class: "option-text",
|
|
98
97
|
variant: "body2"
|
|
99
98
|
}, {
|
|
@@ -104,7 +103,7 @@ const R = {
|
|
|
104
103
|
]),
|
|
105
104
|
_: 3
|
|
106
105
|
}),
|
|
107
|
-
e.subtitle ? (
|
|
106
|
+
e.subtitle ? (i(), f(n(w), {
|
|
108
107
|
key: 0,
|
|
109
108
|
class: "subtitle",
|
|
110
109
|
size: "xs"
|
|
@@ -115,9 +114,9 @@ const R = {
|
|
|
115
114
|
_: 1
|
|
116
115
|
})) : o("", !0)
|
|
117
116
|
], 512),
|
|
118
|
-
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (
|
|
117
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), l("div", q, [
|
|
119
118
|
c(t.$slots, "icon-end", {}, () => [
|
|
120
|
-
d(
|
|
119
|
+
d(n(T), {
|
|
121
120
|
type: e.endIconType,
|
|
122
121
|
name: e.option[e.endIconKey],
|
|
123
122
|
size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
|
|
@@ -125,12 +124,12 @@ const R = {
|
|
|
125
124
|
], !0)
|
|
126
125
|
])) : o("", !0)
|
|
127
126
|
], 2),
|
|
128
|
-
|
|
127
|
+
n(b).clearable && n(r) ? (i(), l("div", F, [
|
|
129
128
|
s("button", {
|
|
130
129
|
class: "clear-button",
|
|
131
|
-
onClick: a[1] || (a[1] = V((k) =>
|
|
130
|
+
onClick: a[1] || (a[1] = V((k) => n(b).clearSelection(), ["prevent", "stop"]))
|
|
132
131
|
}, [
|
|
133
|
-
d(
|
|
132
|
+
d(n(T), {
|
|
134
133
|
name: "close",
|
|
135
134
|
width: "8",
|
|
136
135
|
height: "8"
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
options: unknown[];
|
|
4
|
+
selected?: unknown[];
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
inlineSearchPlaceholder?: string;
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
testId?: string;
|
|
11
|
+
displayValue: (option: unknown) => string;
|
|
12
|
+
optionNameKey?: string;
|
|
13
|
+
optionIconKey?: string;
|
|
14
|
+
optionImageKey?: string;
|
|
15
|
+
optionIconType?: IconTypes;
|
|
16
|
+
optionEndIconKey?: string;
|
|
17
|
+
optionEndIconType?: IconTypes;
|
|
18
|
+
valueToCopy?: string;
|
|
19
|
+
disabledOptionKey?: string;
|
|
20
|
+
optionChildrenKey?: string;
|
|
21
|
+
}>, {
|
|
22
|
+
selected: any;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
inlineSearchPlaceholder: string;
|
|
25
|
+
size: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
testId: string;
|
|
28
|
+
optionNameKey: string;
|
|
29
|
+
optionIconKey: string;
|
|
30
|
+
optionImageKey: string;
|
|
31
|
+
optionIconType: any;
|
|
32
|
+
optionEndIconKey: string;
|
|
33
|
+
optionEndIconType: any;
|
|
34
|
+
valueToCopy: any;
|
|
35
|
+
disabledOptionKey: string;
|
|
36
|
+
optionChildrenKey: string;
|
|
37
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:selected": (value: unknown) => void;
|
|
39
|
+
"update:isOpen": (value: unknown) => void;
|
|
40
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
41
|
+
options: unknown[];
|
|
42
|
+
selected?: unknown[];
|
|
43
|
+
isOpen?: boolean;
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
inlineSearchPlaceholder?: string;
|
|
46
|
+
size?: 'small' | 'medium' | 'large';
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
testId?: string;
|
|
49
|
+
displayValue: (option: unknown) => string;
|
|
50
|
+
optionNameKey?: string;
|
|
51
|
+
optionIconKey?: string;
|
|
52
|
+
optionImageKey?: string;
|
|
53
|
+
optionIconType?: IconTypes;
|
|
54
|
+
optionEndIconKey?: string;
|
|
55
|
+
optionEndIconType?: IconTypes;
|
|
56
|
+
valueToCopy?: string;
|
|
57
|
+
disabledOptionKey?: string;
|
|
58
|
+
optionChildrenKey?: string;
|
|
59
|
+
}>, {
|
|
60
|
+
selected: any;
|
|
61
|
+
placeholder: string;
|
|
62
|
+
inlineSearchPlaceholder: string;
|
|
63
|
+
size: string;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
testId: string;
|
|
66
|
+
optionNameKey: string;
|
|
67
|
+
optionIconKey: string;
|
|
68
|
+
optionImageKey: string;
|
|
69
|
+
optionIconType: any;
|
|
70
|
+
optionEndIconKey: string;
|
|
71
|
+
optionEndIconType: any;
|
|
72
|
+
valueToCopy: any;
|
|
73
|
+
disabledOptionKey: string;
|
|
74
|
+
optionChildrenKey: string;
|
|
75
|
+
}>>> & {
|
|
76
|
+
"onUpdate:selected"?: (value: unknown) => any;
|
|
77
|
+
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
78
|
+
}, {
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
size: 'small' | 'medium' | 'large';
|
|
81
|
+
testId: string;
|
|
82
|
+
selected: unknown[];
|
|
83
|
+
placeholder: string;
|
|
84
|
+
inlineSearchPlaceholder: string;
|
|
85
|
+
optionNameKey: string;
|
|
86
|
+
optionIconKey: string;
|
|
87
|
+
optionImageKey: string;
|
|
88
|
+
optionIconType: IconTypes;
|
|
89
|
+
optionEndIconKey: string;
|
|
90
|
+
optionEndIconType: IconTypes;
|
|
91
|
+
valueToCopy: string;
|
|
92
|
+
disabledOptionKey: string;
|
|
93
|
+
optionChildrenKey: string;
|
|
94
|
+
}>;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
97
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
98
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
99
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
100
|
+
} : {
|
|
101
|
+
type: import('vue').PropType<T[K]>;
|
|
102
|
+
required: true;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
type __VLS_WithDefaults<P, D> = {
|
|
106
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
107
|
+
default: D[K];
|
|
108
|
+
}> : P[K];
|
|
109
|
+
};
|
|
110
|
+
type __VLS_Prettify<T> = {
|
|
111
|
+
[K in keyof T]: T[K];
|
|
112
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./TreeDropdown.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_54adec1e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-54adec1e"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_54adec1e_lang.css"; import { defineComponent as O, ref as S, watch as T, openBlock as s, createBlock as f, unref as d, withCtx as w, createVNode as E, withModifiers as k, createElementBlock as h, Fragment as N, renderList as B, createCommentVNode as z } from "vue";
|
|
2
|
+
import V from "./DropdownV4.vue.js";
|
|
3
|
+
import "./DefaultDropdownTrigger.vue.js";
|
|
4
|
+
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
+
import "./ChipDropdownTrigger.vue.js";
|
|
6
|
+
import "./AppDropdownTrigger.vue.js";
|
|
7
|
+
import "./ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
|
+
import "./TreeDropdown.vue.js";
|
|
10
|
+
import v from "./OptionV4.vue.js";
|
|
11
|
+
import { useChildOptions as x } from "../composables/useChildOptions.js";
|
|
12
|
+
const D = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "child-options"
|
|
15
|
+
}, J = /* @__PURE__ */ O({
|
|
16
|
+
__name: "TreeDropdown",
|
|
17
|
+
props: {
|
|
18
|
+
options: null,
|
|
19
|
+
selected: { default: null },
|
|
20
|
+
isOpen: { type: Boolean },
|
|
21
|
+
placeholder: { default: "Select" },
|
|
22
|
+
inlineSearchPlaceholder: { default: "Search" },
|
|
23
|
+
size: { default: "medium" },
|
|
24
|
+
disabled: { type: Boolean, default: !1 },
|
|
25
|
+
testId: { default: "" },
|
|
26
|
+
displayValue: null,
|
|
27
|
+
optionNameKey: { default: "" },
|
|
28
|
+
optionIconKey: { default: "" },
|
|
29
|
+
optionImageKey: { default: "" },
|
|
30
|
+
optionIconType: { default: null },
|
|
31
|
+
optionEndIconKey: { default: "" },
|
|
32
|
+
optionEndIconType: { default: null },
|
|
33
|
+
valueToCopy: { default: null },
|
|
34
|
+
disabledOptionKey: { default: "disabled" },
|
|
35
|
+
optionChildrenKey: { default: "" }
|
|
36
|
+
},
|
|
37
|
+
emits: ["update:selected", "update:isOpen"],
|
|
38
|
+
setup(e, { emit: u }) {
|
|
39
|
+
const o = e, l = S(o.selected);
|
|
40
|
+
T(
|
|
41
|
+
() => o.selected,
|
|
42
|
+
() => {
|
|
43
|
+
l.value = [...o.selected];
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
const { hasChildren: y, getChildren: a, allChildrenSelected: r, someChildrenSelected: K } = x(l, o.optionChildrenKey), p = (t) => {
|
|
47
|
+
if (y(t)) {
|
|
48
|
+
r(t) ? l.value = l.value.filter(
|
|
49
|
+
(i) => !a(t).includes(i)
|
|
50
|
+
) : l.value = [
|
|
51
|
+
...l.value.filter((i) => !a(t).includes(i)),
|
|
52
|
+
...a(t)
|
|
53
|
+
];
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
l.value.includes(t) ? l.value = l.value.filter(
|
|
57
|
+
(i) => i !== t
|
|
58
|
+
) : l.value = [...l.value, t];
|
|
59
|
+
}, m = (t) => l.value.includes(t), I = () => {
|
|
60
|
+
u("update:selected", l.value);
|
|
61
|
+
}, C = () => {
|
|
62
|
+
l.value = [];
|
|
63
|
+
};
|
|
64
|
+
return (t, i) => (s(), f(d(V), {
|
|
65
|
+
multi: "",
|
|
66
|
+
class: "tree-dropdown",
|
|
67
|
+
"show-select-all": !1,
|
|
68
|
+
"is-open": e.isOpen,
|
|
69
|
+
options: e.options,
|
|
70
|
+
selected: e.selected,
|
|
71
|
+
"display-value": e.displayValue,
|
|
72
|
+
placeholder: e.placeholder,
|
|
73
|
+
"inline-search-placeholder": e.inlineSearchPlaceholder,
|
|
74
|
+
"option-name-key": e.optionNameKey,
|
|
75
|
+
size: e.size,
|
|
76
|
+
"test-id": e.testId,
|
|
77
|
+
disabled: e.disabled,
|
|
78
|
+
"disable-virtual-scroll": "",
|
|
79
|
+
"onUpdate:selected": i[0] || (i[0] = (n) => u("update:selected", n)),
|
|
80
|
+
"onUpdate:isOpen": i[1] || (i[1] = (n) => u("update:isOpen", n)),
|
|
81
|
+
onApply: I,
|
|
82
|
+
onClear: C
|
|
83
|
+
}, {
|
|
84
|
+
default: w(({ option: n, index: b }) => [
|
|
85
|
+
E(d(v), {
|
|
86
|
+
option: n,
|
|
87
|
+
"selected-prop": d(y)(n) ? d(r)(n) : m(n),
|
|
88
|
+
"is-indeterminate": !d(r)(n) && d(K)(n),
|
|
89
|
+
disabled: n[e.disabledOptionKey],
|
|
90
|
+
"name-key": e.optionNameKey,
|
|
91
|
+
"image-key": e.optionImageKey,
|
|
92
|
+
"icon-key": e.optionIconKey,
|
|
93
|
+
"icon-type": e.optionIconType,
|
|
94
|
+
"end-icon-key": e.optionEndIconKey,
|
|
95
|
+
"end-icon-type": e.optionEndIconType,
|
|
96
|
+
onClick: k(() => p(n), ["stop"])
|
|
97
|
+
}, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "onClick"]),
|
|
98
|
+
d(y)(n) ? (s(), h("div", D, [
|
|
99
|
+
(s(!0), h(N, null, B(d(a)(n), (c, g) => (s(), f(d(v), {
|
|
100
|
+
key: `${b}-${g}`,
|
|
101
|
+
option: c,
|
|
102
|
+
"selected-prop": m(c),
|
|
103
|
+
disabled: c[e.disabledOptionKey],
|
|
104
|
+
"name-key": e.optionNameKey,
|
|
105
|
+
"image-key": e.optionImageKey,
|
|
106
|
+
"icon-key": e.optionIconKey,
|
|
107
|
+
"icon-type": e.optionIconType,
|
|
108
|
+
"end-icon-key": e.optionEndIconKey,
|
|
109
|
+
"end-icon-type": e.optionEndIconType,
|
|
110
|
+
onClick: k(() => p(c), ["stop"])
|
|
111
|
+
}, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "onClick"]))), 128))
|
|
112
|
+
])) : z("", !0)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled"]));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
J as default
|
|
120
|
+
};
|
|
@@ -5,6 +5,7 @@ import ChipDropdownTrigger from './ChipDropdownTrigger.vue';
|
|
|
5
5
|
import AppDropdownTrigger from './AppDropdownTrigger.vue';
|
|
6
6
|
import ButtonDropdownTrigger from './ButtonDropdownTrigger.vue';
|
|
7
7
|
import ButtonFilterDropdownTrigger from './ButtonFilterDropdownTrigger.vue';
|
|
8
|
+
import TreeDropdown from './TreeDropdown.vue';
|
|
8
9
|
import Option from './OptionV4.vue';
|
|
9
10
|
declare const DropdownTypes: () => (({
|
|
10
11
|
new (...args: any[]): {
|
|
@@ -1485,6 +1486,7 @@ declare const DropdownTypes: () => (({
|
|
|
1485
1486
|
fullWidth: boolean;
|
|
1486
1487
|
optionsListWidth: string;
|
|
1487
1488
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
1489
|
+
disableVirtualScroll: boolean;
|
|
1488
1490
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1489
1491
|
theme: {
|
|
1490
1492
|
type: import("vue").PropType<string>;
|
|
@@ -1676,6 +1678,10 @@ declare const DropdownTypes: () => (({
|
|
|
1676
1678
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
1677
1679
|
default: any;
|
|
1678
1680
|
};
|
|
1681
|
+
disableVirtualScroll: {
|
|
1682
|
+
type: import("vue").PropType<boolean>;
|
|
1683
|
+
default: boolean;
|
|
1684
|
+
};
|
|
1679
1685
|
}>> & {
|
|
1680
1686
|
onCopyToClipboard?: () => any;
|
|
1681
1687
|
onClear?: () => any;
|
|
@@ -1685,7 +1691,7 @@ declare const DropdownTypes: () => (({
|
|
|
1685
1691
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
1686
1692
|
onOpened?: () => any;
|
|
1687
1693
|
onClosed?: () => any;
|
|
1688
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "disabled" | "size" | "flip" | "mandatory" | "testId" | "container" | "placement" | "distance" | "popperClass" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "fullWidth" | "optionsListWidth" | "statusType">;
|
|
1694
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "disabled" | "size" | "flip" | "mandatory" | "testId" | "container" | "placement" | "distance" | "popperClass" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll">;
|
|
1689
1695
|
$attrs: {
|
|
1690
1696
|
[x: string]: unknown;
|
|
1691
1697
|
};
|
|
@@ -1890,6 +1896,10 @@ declare const DropdownTypes: () => (({
|
|
|
1890
1896
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
1891
1897
|
default: any;
|
|
1892
1898
|
};
|
|
1899
|
+
disableVirtualScroll: {
|
|
1900
|
+
type: import("vue").PropType<boolean>;
|
|
1901
|
+
default: boolean;
|
|
1902
|
+
};
|
|
1893
1903
|
}>> & {
|
|
1894
1904
|
onCopyToClipboard?: () => any;
|
|
1895
1905
|
onClear?: () => any;
|
|
@@ -1956,6 +1966,7 @@ declare const DropdownTypes: () => (({
|
|
|
1956
1966
|
fullWidth: boolean;
|
|
1957
1967
|
optionsListWidth: string;
|
|
1958
1968
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
1969
|
+
disableVirtualScroll: boolean;
|
|
1959
1970
|
}, {}, string> & {
|
|
1960
1971
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1961
1972
|
created?: (() => void) | (() => void)[];
|
|
@@ -2167,6 +2178,10 @@ declare const DropdownTypes: () => (({
|
|
|
2167
2178
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
2168
2179
|
default: any;
|
|
2169
2180
|
};
|
|
2181
|
+
disableVirtualScroll: {
|
|
2182
|
+
type: import("vue").PropType<boolean>;
|
|
2183
|
+
default: boolean;
|
|
2184
|
+
};
|
|
2170
2185
|
}>> & {
|
|
2171
2186
|
onCopyToClipboard?: () => any;
|
|
2172
2187
|
onClear?: () => any;
|
|
@@ -2374,6 +2389,10 @@ declare const DropdownTypes: () => (({
|
|
|
2374
2389
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
2375
2390
|
default: any;
|
|
2376
2391
|
};
|
|
2392
|
+
disableVirtualScroll: {
|
|
2393
|
+
type: import("vue").PropType<boolean>;
|
|
2394
|
+
default: boolean;
|
|
2395
|
+
};
|
|
2377
2396
|
}>> & {
|
|
2378
2397
|
onCopyToClipboard?: () => any;
|
|
2379
2398
|
onClear?: () => any;
|
|
@@ -2440,6 +2459,7 @@ declare const DropdownTypes: () => (({
|
|
|
2440
2459
|
fullWidth: boolean;
|
|
2441
2460
|
optionsListWidth: string;
|
|
2442
2461
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
2462
|
+
disableVirtualScroll: boolean;
|
|
2443
2463
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
2444
2464
|
$slots: {
|
|
2445
2465
|
label?(_: {}): any;
|
|
@@ -2456,6 +2476,7 @@ declare const DropdownTypes: () => (({
|
|
|
2456
2476
|
}): any;
|
|
2457
2477
|
default?(_: {
|
|
2458
2478
|
option: unknown;
|
|
2479
|
+
index: number;
|
|
2459
2480
|
selected: boolean;
|
|
2460
2481
|
active: boolean;
|
|
2461
2482
|
disabled: any;
|
|
@@ -2539,5 +2560,171 @@ declare const DropdownTypes: () => (({
|
|
|
2539
2560
|
startIconName: string;
|
|
2540
2561
|
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
2541
2562
|
hideEndIcon: boolean;
|
|
2563
|
+
}> | import("vue").DefineComponent<{
|
|
2564
|
+
disabled: {
|
|
2565
|
+
type: import("vue").PropType<boolean>;
|
|
2566
|
+
default: boolean;
|
|
2567
|
+
};
|
|
2568
|
+
size: {
|
|
2569
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
2570
|
+
default: string;
|
|
2571
|
+
};
|
|
2572
|
+
testId: {
|
|
2573
|
+
type: import("vue").PropType<string>;
|
|
2574
|
+
default: string;
|
|
2575
|
+
};
|
|
2576
|
+
selected: {
|
|
2577
|
+
type: import("vue").PropType<unknown[]>;
|
|
2578
|
+
default: any;
|
|
2579
|
+
};
|
|
2580
|
+
options: {
|
|
2581
|
+
type: import("vue").PropType<unknown[]>;
|
|
2582
|
+
required: true;
|
|
2583
|
+
};
|
|
2584
|
+
placeholder: {
|
|
2585
|
+
type: import("vue").PropType<string>;
|
|
2586
|
+
default: string;
|
|
2587
|
+
};
|
|
2588
|
+
isOpen: {
|
|
2589
|
+
type: import("vue").PropType<boolean>;
|
|
2590
|
+
};
|
|
2591
|
+
inlineSearchPlaceholder: {
|
|
2592
|
+
type: import("vue").PropType<string>;
|
|
2593
|
+
default: string;
|
|
2594
|
+
};
|
|
2595
|
+
displayValue: {
|
|
2596
|
+
type: import("vue").PropType<(option: unknown) => string>;
|
|
2597
|
+
required: true;
|
|
2598
|
+
};
|
|
2599
|
+
optionNameKey: {
|
|
2600
|
+
type: import("vue").PropType<string>;
|
|
2601
|
+
default: string;
|
|
2602
|
+
};
|
|
2603
|
+
optionIconKey: {
|
|
2604
|
+
type: import("vue").PropType<string>;
|
|
2605
|
+
default: string;
|
|
2606
|
+
};
|
|
2607
|
+
optionImageKey: {
|
|
2608
|
+
type: import("vue").PropType<string>;
|
|
2609
|
+
default: string;
|
|
2610
|
+
};
|
|
2611
|
+
optionIconType: {
|
|
2612
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
2613
|
+
default: any;
|
|
2614
|
+
};
|
|
2615
|
+
optionEndIconKey: {
|
|
2616
|
+
type: import("vue").PropType<string>;
|
|
2617
|
+
default: string;
|
|
2618
|
+
};
|
|
2619
|
+
optionEndIconType: {
|
|
2620
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
2621
|
+
default: any;
|
|
2622
|
+
};
|
|
2623
|
+
valueToCopy: {
|
|
2624
|
+
type: import("vue").PropType<string>;
|
|
2625
|
+
default: any;
|
|
2626
|
+
};
|
|
2627
|
+
disabledOptionKey: {
|
|
2628
|
+
type: import("vue").PropType<string>;
|
|
2629
|
+
default: string;
|
|
2630
|
+
};
|
|
2631
|
+
optionChildrenKey: {
|
|
2632
|
+
type: import("vue").PropType<string>;
|
|
2633
|
+
default: string;
|
|
2634
|
+
};
|
|
2635
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2636
|
+
"update:selected": (value: unknown) => void;
|
|
2637
|
+
"update:isOpen": (value: unknown) => void;
|
|
2638
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2639
|
+
disabled: {
|
|
2640
|
+
type: import("vue").PropType<boolean>;
|
|
2641
|
+
default: boolean;
|
|
2642
|
+
};
|
|
2643
|
+
size: {
|
|
2644
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
2645
|
+
default: string;
|
|
2646
|
+
};
|
|
2647
|
+
testId: {
|
|
2648
|
+
type: import("vue").PropType<string>;
|
|
2649
|
+
default: string;
|
|
2650
|
+
};
|
|
2651
|
+
selected: {
|
|
2652
|
+
type: import("vue").PropType<unknown[]>;
|
|
2653
|
+
default: any;
|
|
2654
|
+
};
|
|
2655
|
+
options: {
|
|
2656
|
+
type: import("vue").PropType<unknown[]>;
|
|
2657
|
+
required: true;
|
|
2658
|
+
};
|
|
2659
|
+
placeholder: {
|
|
2660
|
+
type: import("vue").PropType<string>;
|
|
2661
|
+
default: string;
|
|
2662
|
+
};
|
|
2663
|
+
isOpen: {
|
|
2664
|
+
type: import("vue").PropType<boolean>;
|
|
2665
|
+
};
|
|
2666
|
+
inlineSearchPlaceholder: {
|
|
2667
|
+
type: import("vue").PropType<string>;
|
|
2668
|
+
default: string;
|
|
2669
|
+
};
|
|
2670
|
+
displayValue: {
|
|
2671
|
+
type: import("vue").PropType<(option: unknown) => string>;
|
|
2672
|
+
required: true;
|
|
2673
|
+
};
|
|
2674
|
+
optionNameKey: {
|
|
2675
|
+
type: import("vue").PropType<string>;
|
|
2676
|
+
default: string;
|
|
2677
|
+
};
|
|
2678
|
+
optionIconKey: {
|
|
2679
|
+
type: import("vue").PropType<string>;
|
|
2680
|
+
default: string;
|
|
2681
|
+
};
|
|
2682
|
+
optionImageKey: {
|
|
2683
|
+
type: import("vue").PropType<string>;
|
|
2684
|
+
default: string;
|
|
2685
|
+
};
|
|
2686
|
+
optionIconType: {
|
|
2687
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
2688
|
+
default: any;
|
|
2689
|
+
};
|
|
2690
|
+
optionEndIconKey: {
|
|
2691
|
+
type: import("vue").PropType<string>;
|
|
2692
|
+
default: string;
|
|
2693
|
+
};
|
|
2694
|
+
optionEndIconType: {
|
|
2695
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat">;
|
|
2696
|
+
default: any;
|
|
2697
|
+
};
|
|
2698
|
+
valueToCopy: {
|
|
2699
|
+
type: import("vue").PropType<string>;
|
|
2700
|
+
default: any;
|
|
2701
|
+
};
|
|
2702
|
+
disabledOptionKey: {
|
|
2703
|
+
type: import("vue").PropType<string>;
|
|
2704
|
+
default: string;
|
|
2705
|
+
};
|
|
2706
|
+
optionChildrenKey: {
|
|
2707
|
+
type: import("vue").PropType<string>;
|
|
2708
|
+
default: string;
|
|
2709
|
+
};
|
|
2710
|
+
}>> & {
|
|
2711
|
+
"onUpdate:selected"?: (value: unknown) => any;
|
|
2712
|
+
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
2713
|
+
}, {
|
|
2714
|
+
disabled: boolean;
|
|
2715
|
+
size: "small" | "medium" | "large";
|
|
2716
|
+
testId: string;
|
|
2717
|
+
selected: unknown[];
|
|
2718
|
+
placeholder: string;
|
|
2719
|
+
inlineSearchPlaceholder: string;
|
|
2720
|
+
optionNameKey: string;
|
|
2721
|
+
optionIconKey: string;
|
|
2722
|
+
optionImageKey: string;
|
|
2723
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
2724
|
+
optionEndIconKey: string;
|
|
2725
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
2726
|
+
valueToCopy: string;
|
|
2727
|
+
disabledOptionKey: string;
|
|
2728
|
+
optionChildrenKey: string;
|
|
2542
2729
|
}>)[];
|
|
2543
|
-
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, };
|
|
2730
|
+
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, TreeDropdown, };
|
|
@@ -5,8 +5,9 @@ import t from "./ChipDropdownTrigger.vue.js";
|
|
|
5
5
|
import i from "./AppDropdownTrigger.vue.js";
|
|
6
6
|
import m from "./ButtonDropdownTrigger.vue.js";
|
|
7
7
|
import n from "./ButtonFilterDropdownTrigger.vue.js";
|
|
8
|
+
import e from "./TreeDropdown.vue.js";
|
|
8
9
|
import g from "./OptionV4.vue.js";
|
|
9
|
-
const
|
|
10
|
+
const s = () => [
|
|
10
11
|
o,
|
|
11
12
|
r,
|
|
12
13
|
p,
|
|
@@ -14,7 +15,8 @@ const c = () => [
|
|
|
14
15
|
m,
|
|
15
16
|
n,
|
|
16
17
|
i,
|
|
17
|
-
g
|
|
18
|
+
g,
|
|
19
|
+
e
|
|
18
20
|
];
|
|
19
21
|
export {
|
|
20
22
|
i as AppDropdownTrigger,
|
|
@@ -23,7 +25,8 @@ export {
|
|
|
23
25
|
t as ChipDropdownTrigger,
|
|
24
26
|
r as DefaultDropdownTrigger,
|
|
25
27
|
o as Dropdown,
|
|
26
|
-
|
|
28
|
+
s as DropdownTypes,
|
|
27
29
|
p as IconButtonDropdownTrigger,
|
|
28
|
-
g as Option
|
|
30
|
+
g as Option,
|
|
31
|
+
e as TreeDropdown
|
|
29
32
|
};
|