@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useToggle as Ae } from "../../../composables/useToggle.js";
|
|
2
2
|
import { ref as n, computed as r, watch as b, useSlots as Pe, nextTick as D, toRaw as x, provide as Se, onMounted as Te } from "vue";
|
|
3
|
-
import { isObjectInArray as
|
|
3
|
+
import { isObjectInArray as Q } from "../../../utils/array.js";
|
|
4
4
|
import { objectsEqual as we } from "../../../utils/object.js";
|
|
5
|
-
import { useClamp as xe, useVirtualList as De, onClickOutside as
|
|
5
|
+
import { useClamp as xe, useVirtualList as De, onClickOutside as W } from "@vueuse/core";
|
|
6
6
|
import { Mode as m, Type as k, DropdownContext as Ie } from "./DropdownContext.js";
|
|
7
7
|
import { pxToRem as Me } from "../../../utils/style.js";
|
|
8
8
|
import { useEditableContext as Ce } from "../../table-cells/common/EditableContext.js";
|
|
9
9
|
const Ue = (l, O, A) => {
|
|
10
|
-
const
|
|
10
|
+
const Y = (e, t) => l.multi ? Q(e, t) : x(e) === t;
|
|
11
11
|
let E;
|
|
12
12
|
((e) => {
|
|
13
13
|
e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
|
|
@@ -28,26 +28,26 @@ const Ue = (l, O, A) => {
|
|
|
28
28
|
a.value = l.selected;
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
const
|
|
31
|
+
const Z = Pe(), P = n(null), d = n(null), V = n(null), M = n(null), H = n(null), S = n(null), F = n(), L = n(null), U = n(null), B = n(null), ee = 8, le = r(() => S.value ? S.value.getBoundingClientRect().height + ee + l.distance : 0), c = n([]), T = n(-1), w = n(""), C = n([]), p = () => S.value?.focus(), [v, te, ae] = Ae({
|
|
32
32
|
disabled: l.disabled,
|
|
33
33
|
initialValue: l.defaultOpen
|
|
34
34
|
});
|
|
35
35
|
b(
|
|
36
36
|
() => l.disabled,
|
|
37
37
|
(e) => {
|
|
38
|
-
e !== void 0 &&
|
|
38
|
+
e !== void 0 && ae(e);
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
const q = (e) => {
|
|
42
|
-
|
|
43
|
-
},
|
|
42
|
+
ue.value = te(e);
|
|
43
|
+
}, ue = r({
|
|
44
44
|
get() {
|
|
45
45
|
return l.isOpen;
|
|
46
46
|
},
|
|
47
47
|
set(e) {
|
|
48
48
|
O("update:isOpen", e);
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), ne = r(() => s.value.length - 1), o = xe(0, 0, ne), G = r(() => u.value ? l.displayValue(u.value) : ""), ie = (e) => {
|
|
51
51
|
if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
|
|
52
52
|
return l.placeholder;
|
|
53
53
|
const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
@@ -57,22 +57,22 @@ const Ue = (l, O, A) => {
|
|
|
57
57
|
return u.value ? l.displayValue(u.value) : l.placeholder;
|
|
58
58
|
if (Array.isArray(a.value))
|
|
59
59
|
return ie(a);
|
|
60
|
-
}),
|
|
60
|
+
}), K = r(() => {
|
|
61
61
|
if (Array.isArray(a.value))
|
|
62
62
|
return a.value.length === s.value.length;
|
|
63
63
|
}), oe = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), N = (e) => {
|
|
64
64
|
w.value = e;
|
|
65
65
|
}, s = r(() => l.onSearch ? l.options.filter(
|
|
66
66
|
(e) => l.onSearch(e, w.value)
|
|
67
|
-
) : l.options), se = r(() => c.value[0]?.hasSubtitle),
|
|
67
|
+
) : l.options), se = r(() => c.value[0]?.hasSubtitle), $ = r(() => i.mode === m.Multi), X = r(
|
|
68
68
|
() => se.value ? A.MULTILINE_LIST_HEIGHT : A.LIST_HEIGHT
|
|
69
69
|
), {
|
|
70
|
-
list:
|
|
71
|
-
containerProps:
|
|
70
|
+
list: j,
|
|
71
|
+
containerProps: z,
|
|
72
72
|
wrapperProps: ce,
|
|
73
73
|
scrollTo: R
|
|
74
74
|
} = De(s, {
|
|
75
|
-
itemHeight:
|
|
75
|
+
itemHeight: X.value
|
|
76
76
|
});
|
|
77
77
|
b(
|
|
78
78
|
() => l.isOpen,
|
|
@@ -98,7 +98,7 @@ const Ue = (l, O, A) => {
|
|
|
98
98
|
};
|
|
99
99
|
b(v, (e) => {
|
|
100
100
|
if (e) {
|
|
101
|
-
|
|
101
|
+
$.value && Array.isArray(u.value) && (C.value = x(u.value).slice());
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
p();
|
|
@@ -106,7 +106,7 @@ const Ue = (l, O, A) => {
|
|
|
106
106
|
const ve = () => {
|
|
107
107
|
de(), u.value = a.value;
|
|
108
108
|
}, de = () => {
|
|
109
|
-
if (
|
|
109
|
+
if (K.value) {
|
|
110
110
|
a.value = [];
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
@@ -133,7 +133,7 @@ const Ue = (l, O, A) => {
|
|
|
133
133
|
return;
|
|
134
134
|
d.value?.focus();
|
|
135
135
|
const g = x(a.value);
|
|
136
|
-
if (
|
|
136
|
+
if (Q(g, e)) {
|
|
137
137
|
a.value = g.filter(
|
|
138
138
|
(h) => !we(h, e)
|
|
139
139
|
);
|
|
@@ -150,10 +150,10 @@ const Ue = (l, O, A) => {
|
|
|
150
150
|
activeOption: M,
|
|
151
151
|
listRef: P,
|
|
152
152
|
clearable: l.clearable,
|
|
153
|
-
type:
|
|
153
|
+
type: Z.input ? k.Search : k.Dropdown,
|
|
154
154
|
mode: l.multi ? m.Multi : m.Single,
|
|
155
155
|
query: w,
|
|
156
|
-
selectedValue:
|
|
156
|
+
selectedValue: G,
|
|
157
157
|
toggle: f,
|
|
158
158
|
disabled: l.disabled,
|
|
159
159
|
open: v,
|
|
@@ -193,10 +193,10 @@ const Ue = (l, O, A) => {
|
|
|
193
193
|
c.value = c.value.filter((t) => t.id !== e);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
Se(Ie, i),
|
|
196
|
+
Se(Ie, i), W(
|
|
197
197
|
P,
|
|
198
198
|
() => {
|
|
199
|
-
v.value &&
|
|
199
|
+
v.value && J();
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
ignore: [
|
|
@@ -205,7 +205,7 @@ const Ue = (l, O, A) => {
|
|
|
205
205
|
U,
|
|
206
206
|
B,
|
|
207
207
|
d,
|
|
208
|
-
|
|
208
|
+
z.ref
|
|
209
209
|
]
|
|
210
210
|
}
|
|
211
211
|
);
|
|
@@ -219,8 +219,8 @@ const Ue = (l, O, A) => {
|
|
|
219
219
|
});
|
|
220
220
|
const ye = () => {
|
|
221
221
|
u.value = a.value, O("apply", u.value), f(!1), he();
|
|
222
|
-
},
|
|
223
|
-
|
|
222
|
+
}, J = () => {
|
|
223
|
+
$.value && Array.isArray(C.value) && (u.value = x(C.value).slice()), w.value = "", f(!1);
|
|
224
224
|
}, be = (e) => {
|
|
225
225
|
if (!l.disableKeyboardEvents)
|
|
226
226
|
switch (e.key) {
|
|
@@ -275,43 +275,44 @@ const Ue = (l, O, A) => {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}, Oe = r(() => {
|
|
278
|
-
const e =
|
|
278
|
+
const e = j.value.length, t = l.multi && l.showSelectAll ? 1 : 0, y = e > A.MAX_NUMBER_OF_OPTIONS, g = e + t;
|
|
279
279
|
let h = y ? A.MAX_NUMBER_OF_OPTIONS + 0.1 : g;
|
|
280
280
|
return l.noResultsText && h === 0 && (h = h + 1), Me(
|
|
281
|
-
h *
|
|
281
|
+
h * X.value + A.PADDING_PX
|
|
282
282
|
);
|
|
283
283
|
});
|
|
284
284
|
return {
|
|
285
285
|
onKeydown: me,
|
|
286
|
-
location:
|
|
286
|
+
location: le,
|
|
287
287
|
open: v,
|
|
288
288
|
toggleMenu: f,
|
|
289
289
|
onButtonKeydown: be,
|
|
290
290
|
displayedValue: re,
|
|
291
291
|
labelRef: H,
|
|
292
292
|
query: w,
|
|
293
|
-
containerProps:
|
|
293
|
+
containerProps: z,
|
|
294
294
|
calculateTableHeight: Oe,
|
|
295
295
|
wrapperProps: ce,
|
|
296
296
|
filteredOptions: s,
|
|
297
|
-
allSelected:
|
|
297
|
+
allSelected: K,
|
|
298
298
|
isIndeterminate: oe,
|
|
299
299
|
onSelectAll: ve,
|
|
300
|
-
virtualOptions:
|
|
301
|
-
isSelected:
|
|
300
|
+
virtualOptions: j,
|
|
301
|
+
isSelected: Y,
|
|
302
302
|
selectedOption: u,
|
|
303
|
+
selectedValue: G,
|
|
303
304
|
onSelect: _,
|
|
304
305
|
activeIndex: o,
|
|
305
|
-
onCancel:
|
|
306
|
+
onCancel: J,
|
|
306
307
|
onApply: ye,
|
|
307
308
|
scrollTo: R,
|
|
308
|
-
onClickOutside:
|
|
309
|
+
onClickOutside: W,
|
|
309
310
|
listRef: P,
|
|
310
311
|
buttonRef: S,
|
|
311
312
|
apply: L,
|
|
312
313
|
cancel: U,
|
|
313
314
|
el: V,
|
|
314
|
-
triggerRef:
|
|
315
|
+
triggerRef: F,
|
|
315
316
|
clearAll: B,
|
|
316
317
|
onClearAllSelections: fe
|
|
317
318
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IconTypes } from '@/components/icon/v4/Icon.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
label: string;
|
|
4
|
+
variant?: 'outlined' | 'text';
|
|
5
|
+
size?: 'small' | 'medium';
|
|
6
|
+
open?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
startIconName?: string;
|
|
9
|
+
startIconType?: IconTypes;
|
|
10
|
+
hideEndIcon?: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}>, {
|
|
13
|
+
variant: string;
|
|
14
|
+
size: string;
|
|
15
|
+
open: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
startIconName: any;
|
|
18
|
+
startIconType: string;
|
|
19
|
+
hideEndIcon: boolean;
|
|
20
|
+
testId: string;
|
|
21
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
click: () => void;
|
|
23
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
label: string;
|
|
25
|
+
variant?: 'outlined' | 'text';
|
|
26
|
+
size?: 'small' | 'medium';
|
|
27
|
+
open?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
startIconName?: string;
|
|
30
|
+
startIconType?: IconTypes;
|
|
31
|
+
hideEndIcon?: boolean;
|
|
32
|
+
testId?: string;
|
|
33
|
+
}>, {
|
|
34
|
+
variant: string;
|
|
35
|
+
size: string;
|
|
36
|
+
open: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
startIconName: any;
|
|
39
|
+
startIconType: string;
|
|
40
|
+
hideEndIcon: boolean;
|
|
41
|
+
testId: string;
|
|
42
|
+
}>>> & {
|
|
43
|
+
onClick?: () => any;
|
|
44
|
+
}, {
|
|
45
|
+
variant: 'outlined' | 'text';
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
size: 'small' | 'medium';
|
|
48
|
+
open: boolean;
|
|
49
|
+
testId: string;
|
|
50
|
+
startIconName: string;
|
|
51
|
+
startIconType: IconTypes;
|
|
52
|
+
hideEndIcon: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_WithDefaults<P, D> = {
|
|
65
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
66
|
+
default: D[K];
|
|
67
|
+
}> : P[K];
|
|
68
|
+
};
|
|
69
|
+
type __VLS_Prettify<T> = {
|
|
70
|
+
[K in keyof T]: T[K];
|
|
71
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ButtonDropdownTrigger.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-23e22560"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css"; import { defineComponent as a, openBlock as l, createBlock as o, unref as i, normalizeClass as d } from "vue";
|
|
2
|
+
import c from "../../button/v4/ButtonV4.vue.js";
|
|
3
|
+
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
+
const I = /* @__PURE__ */ a({
|
|
5
|
+
__name: "ButtonDropdownTrigger",
|
|
6
|
+
props: {
|
|
7
|
+
label: null,
|
|
8
|
+
variant: { default: "outlined" },
|
|
9
|
+
size: { default: "medium" },
|
|
10
|
+
open: { type: Boolean, default: !1 },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
startIconName: { default: null },
|
|
13
|
+
startIconType: { default: "regular" },
|
|
14
|
+
hideEndIcon: { type: Boolean, default: !1 },
|
|
15
|
+
testId: { default: "" }
|
|
16
|
+
},
|
|
17
|
+
emits: ["click"],
|
|
18
|
+
setup(e, { emit: n }) {
|
|
19
|
+
return (r, t) => (l(), o(i(c), {
|
|
20
|
+
class: d(["button-trigger", { open: e.open }]),
|
|
21
|
+
disabled: e.disabled,
|
|
22
|
+
color: "default",
|
|
23
|
+
variant: e.variant,
|
|
24
|
+
size: e.size,
|
|
25
|
+
"start-icon-name": e.startIconName,
|
|
26
|
+
"start-icon-type": e.startIconType,
|
|
27
|
+
"end-icon-name": e.hideEndIcon ? null : "caret-down",
|
|
28
|
+
content: e.label,
|
|
29
|
+
"test-id": e.testId,
|
|
30
|
+
onClick: t[0] || (t[0] = (s) => n("click"))
|
|
31
|
+
}, null, 8, ["class", "disabled", "variant", "size", "start-icon-name", "start-icon-type", "end-icon-name", "content", "test-id"]));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
I as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IconTypes } from '@/components/icon/v4/Icon.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
label: string;
|
|
4
|
+
variant?: 'outlined' | 'text';
|
|
5
|
+
open?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
startIconName?: string;
|
|
8
|
+
startIconType?: IconTypes;
|
|
9
|
+
hideEndIcon?: boolean;
|
|
10
|
+
testId?: string;
|
|
11
|
+
}>, {
|
|
12
|
+
variant: string;
|
|
13
|
+
open: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
startIconName: any;
|
|
16
|
+
startIconType: string;
|
|
17
|
+
hideEndIcon: boolean;
|
|
18
|
+
testId: string;
|
|
19
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
click: () => void;
|
|
21
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
|
+
label: string;
|
|
23
|
+
variant?: 'outlined' | 'text';
|
|
24
|
+
open?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
startIconName?: string;
|
|
27
|
+
startIconType?: IconTypes;
|
|
28
|
+
hideEndIcon?: boolean;
|
|
29
|
+
testId?: string;
|
|
30
|
+
}>, {
|
|
31
|
+
variant: string;
|
|
32
|
+
open: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
startIconName: any;
|
|
35
|
+
startIconType: string;
|
|
36
|
+
hideEndIcon: boolean;
|
|
37
|
+
testId: string;
|
|
38
|
+
}>>> & {
|
|
39
|
+
onClick?: () => any;
|
|
40
|
+
}, {
|
|
41
|
+
variant: 'outlined' | 'text';
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
open: boolean;
|
|
44
|
+
testId: string;
|
|
45
|
+
startIconName: string;
|
|
46
|
+
startIconType: IconTypes;
|
|
47
|
+
hideEndIcon: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type __VLS_WithDefaults<P, D> = {
|
|
60
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
61
|
+
default: D[K];
|
|
62
|
+
}> : P[K];
|
|
63
|
+
};
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ButtonFilterDropdownTrigger.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f750550"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css"; import { defineComponent as m, openBlock as a, createElementBlock as u, mergeProps as l, unref as t, createBlock as d, createCommentVNode as i, createVNode as f, withCtx as p, createTextVNode as I, toDisplayString as T } from "vue";
|
|
2
|
+
import y from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import s from "../../icon/v4/IconV4.vue.js";
|
|
4
|
+
import { useTestIdAttrs as N } from "../../../utils/testIds.js";
|
|
5
|
+
import { DropdownTestIdModifiers as o } from "../../../testids/index.js";
|
|
6
|
+
const h = /* @__PURE__ */ m({
|
|
7
|
+
__name: "ButtonFilterDropdownTrigger",
|
|
8
|
+
props: {
|
|
9
|
+
label: null,
|
|
10
|
+
variant: { default: "outlined" },
|
|
11
|
+
open: { type: Boolean, default: !1 },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
startIconName: { default: null },
|
|
14
|
+
startIconType: { default: "regular" },
|
|
15
|
+
hideEndIcon: { type: Boolean, default: !1 },
|
|
16
|
+
testId: { default: "" }
|
|
17
|
+
},
|
|
18
|
+
emits: ["click"],
|
|
19
|
+
setup(e, { emit: c }) {
|
|
20
|
+
const n = N(e.testId, o);
|
|
21
|
+
return (g, r) => (a(), u("div", l({
|
|
22
|
+
class: ["button-filter-dropdown-trigger", [e.variant, { disabled: e.disabled, open: e.open }]]
|
|
23
|
+
}, t(n)[t(o).BUTTON], {
|
|
24
|
+
onClick: r[0] || (r[0] = (k) => c("click"))
|
|
25
|
+
}), [
|
|
26
|
+
e.startIconName ? (a(), d(t(s), {
|
|
27
|
+
key: 0,
|
|
28
|
+
name: e.startIconName,
|
|
29
|
+
type: e.startIconType,
|
|
30
|
+
size: "16px",
|
|
31
|
+
class: "start-icon"
|
|
32
|
+
}, null, 8, ["name", "type"])) : i("", !0),
|
|
33
|
+
f(t(y), l({ variant: "chipLabel" }, t(n)[t(o).BUTTON_CONTENT]), {
|
|
34
|
+
default: p(() => [
|
|
35
|
+
I(T(e.label), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 16),
|
|
39
|
+
e.hideEndIcon ? i("", !0) : (a(), d(t(s), {
|
|
40
|
+
key: 1,
|
|
41
|
+
name: "caret-down",
|
|
42
|
+
size: "16px",
|
|
43
|
+
class: "end-icon"
|
|
44
|
+
}))
|
|
45
|
+
], 16));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
h as default
|
|
50
|
+
};
|
|
@@ -241,7 +241,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
241
241
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
242
242
|
}>, {
|
|
243
243
|
label?(_: {}): any;
|
|
244
|
-
"dropdown-trigger"?(_: {
|
|
244
|
+
"dropdown-trigger"?(_: {
|
|
245
|
+
buttonTriggerProps: {
|
|
246
|
+
open: boolean;
|
|
247
|
+
disabled: boolean;
|
|
248
|
+
label: any;
|
|
249
|
+
onClick: () => void;
|
|
250
|
+
};
|
|
251
|
+
}): any;
|
|
245
252
|
"input-list"?(_: {
|
|
246
253
|
open: true;
|
|
247
254
|
}): any;
|
|
@@ -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_24014c62_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-24014c62"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|