@ironsource/shared-ui 2.1.9-test.0 → 2.1.9-test.1
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +1 -0
- package/components/alert/Alert.vue2.js +3 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -1
- package/components/autocomplete/index.d.ts +20 -20
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +65 -0
- package/components/button/v4/ToggleButtonGroupAB.vue.js +7 -0
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +95 -0
- package/components/button/v4/index.d.ts +170 -1
- package/components/button/v4/index.js +10 -3
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +9 -8
- package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +5 -5
- package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
- package/components/dialog/v4/DialogV4.vue2.js +6 -5
- package/components/dialog/v4/index.d.ts +5 -5
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +51 -51
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +17 -11
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +17 -9
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +23 -22
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +59 -45
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -2
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +6 -5
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +4 -3
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/index.d.ts +133 -65
- package/components/emptyState/v4/EmptyStateV4.vue2.js +13 -12
- package/components/forms/FormCard.vue2.js +13 -12
- package/components/includeExclude/index.d.ts +56 -56
- package/components/input/v3/Input.vue.d.ts +1 -1
- package/components/input/v3/index.d.ts +32 -32
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/index.d.ts +20 -20
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/MultiBar.vue2.js +3 -2
- package/components/multibar/index.d.ts +9 -9
- package/components/popover/v3/Popover.vue.d.ts +1 -1
- package/components/popover/v3/index.d.ts +20 -20
- package/components/popover/v4/PopoverV4.vue.d.ts +7 -3
- package/components/popover/v4/PopoverV4.vue.js +3 -3
- package/components/popover/v4/PopoverV4.vue2.js +23 -20
- package/components/popover/v4/index.d.ts +36 -24
- package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/v3/index.d.ts +6 -6
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +6 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
- package/components/radioButton/v4/RadioButtonV4.vue2.js +59 -46
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
- package/components/radioButton/v4/index.d.ts +26 -7
- package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
- package/components/sortableList/SortableItem.vue.d.ts +1 -1
- package/components/switch/v3/index.d.ts +16 -16
- package/components/switch/v4/SwitchV4.vue2.js +6 -5
- package/components/switch/v4/index.d.ts +8 -8
- package/components/table/v4/DataGrid.vue.d.ts +5 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +45 -44
- package/components/table/v4/ExpandRowToggle.vue2.js +6 -5
- package/components/table/v4/MultipleDataGrid.vue.d.ts +23 -2
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +82 -73
- package/components/table/v4/index.d.ts +98 -2
- package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
- package/components/textArea/v4/index.d.ts +9 -9
- package/components/toggle/v3/index.d.ts +8 -8
- package/components/toggle/v4/index.d.ts +16 -16
- package/consts/configs.d.ts +1 -0
- package/consts/configs.js +4 -0
- package/index.d.ts +1320 -447
- package/index.js +1 -1
- package/mocks/options.d.ts +4 -0
- package/package.json +2 -2
- package/testids/index.d.ts +8 -1
- package/testids/index.js +14 -13
- package/utils/testIds.d.ts +1 -1
- package/utils/testIds.js +6 -6
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d27e1304_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_119e4bc3_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
2
|
label: string;
|
|
4
|
-
variant?:
|
|
5
|
-
size?:
|
|
3
|
+
variant?: "text" | "outlined";
|
|
4
|
+
size?: "small" | "medium";
|
|
6
5
|
open?: boolean;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
startIconName?: string;
|
|
9
|
-
startIconType?:
|
|
8
|
+
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
10
9
|
hideEndIcon?: boolean;
|
|
11
10
|
testId?: string;
|
|
12
11
|
}>, {
|
|
@@ -22,12 +21,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
21
|
click: () => void;
|
|
23
22
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
24
23
|
label: string;
|
|
25
|
-
variant?:
|
|
26
|
-
size?:
|
|
24
|
+
variant?: "text" | "outlined";
|
|
25
|
+
size?: "small" | "medium";
|
|
27
26
|
open?: boolean;
|
|
28
27
|
disabled?: boolean;
|
|
29
28
|
startIconName?: string;
|
|
30
|
-
startIconType?:
|
|
29
|
+
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
31
30
|
hideEndIcon?: boolean;
|
|
32
31
|
testId?: string;
|
|
33
32
|
}>, {
|
|
@@ -43,13 +42,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
42
|
onClick?: () => any;
|
|
44
43
|
}, {
|
|
45
44
|
testId: string;
|
|
46
|
-
variant:
|
|
45
|
+
variant: "text" | "outlined";
|
|
47
46
|
disabled: boolean;
|
|
48
|
-
size:
|
|
47
|
+
size: "small" | "medium";
|
|
49
48
|
open: boolean;
|
|
50
49
|
startIconName: string;
|
|
51
|
-
startIconType:
|
|
50
|
+
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
52
51
|
hideEndIcon: boolean;
|
|
52
|
+
}>, {
|
|
53
|
+
default?(_: {}): any;
|
|
53
54
|
}>;
|
|
54
55
|
export default _default;
|
|
55
56
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -69,3 +70,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
69
70
|
type __VLS_Prettify<T> = {
|
|
70
71
|
[K in keyof T]: T[K];
|
|
71
72
|
} & {};
|
|
73
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
74
|
+
new (): {
|
|
75
|
+
$slots: S;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ButtonDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-76c74f58"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../../../ButtonDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css"; import { defineComponent as l, openBlock as o, createBlock as i, unref as d, normalizeClass as r, withCtx as s, renderSlot as c, createTextVNode as u, toDisplayString as f } from "vue";
|
|
2
|
+
import m from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
-
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
+
const p = /* @__PURE__ */ l({
|
|
6
7
|
__name: "ButtonDropdownTrigger",
|
|
7
8
|
props: {
|
|
8
9
|
label: null,
|
|
@@ -16,9 +17,9 @@ const b = /* @__PURE__ */ a({
|
|
|
16
17
|
testId: { default: "" }
|
|
17
18
|
},
|
|
18
19
|
emits: ["click"],
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
return (
|
|
21
|
-
class:
|
|
20
|
+
setup(e, { emit: a }) {
|
|
21
|
+
return (n, t) => (o(), i(d(m), {
|
|
22
|
+
class: r(["button-trigger", { open: e.open }]),
|
|
22
23
|
disabled: e.disabled,
|
|
23
24
|
color: "default",
|
|
24
25
|
variant: e.variant,
|
|
@@ -28,10 +29,17 @@ const b = /* @__PURE__ */ a({
|
|
|
28
29
|
"end-icon-name": e.hideEndIcon ? null : "caret-down",
|
|
29
30
|
content: e.label,
|
|
30
31
|
"test-id": e.testId,
|
|
31
|
-
onClick: t[0] || (t[0] = (
|
|
32
|
-
},
|
|
32
|
+
onClick: t[0] || (t[0] = (b) => a("click"))
|
|
33
|
+
}, {
|
|
34
|
+
default: s(() => [
|
|
35
|
+
c(n.$slots, "default", {}, () => [
|
|
36
|
+
u(f(e.label), 1)
|
|
37
|
+
], !0)
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, ["class", "disabled", "variant", "size", "start-icon-name", "start-icon-type", "end-icon-name", "content", "test-id"]));
|
|
33
41
|
}
|
|
34
42
|
});
|
|
35
43
|
export {
|
|
36
|
-
|
|
44
|
+
p as default
|
|
37
45
|
};
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
feedbackVariant?: string;
|
|
7
7
|
displayedValue: any;
|
|
8
|
+
allSelected?: boolean;
|
|
8
9
|
options: unknown[];
|
|
9
10
|
selectedOption: unknown | unknown[];
|
|
10
11
|
displayValue: (option: unknown) => string;
|
|
@@ -16,6 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
17
|
disabled: boolean;
|
|
17
18
|
feedbackVariant: string;
|
|
18
19
|
displayedValue: string;
|
|
20
|
+
allSelected: boolean;
|
|
19
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
22
|
clear: () => void;
|
|
21
23
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -25,6 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
27
|
disabled?: boolean;
|
|
26
28
|
feedbackVariant?: string;
|
|
27
29
|
displayedValue: any;
|
|
30
|
+
allSelected?: boolean;
|
|
28
31
|
options: unknown[];
|
|
29
32
|
selectedOption: unknown | unknown[];
|
|
30
33
|
displayValue: (option: unknown) => string;
|
|
@@ -36,6 +39,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
39
|
disabled: boolean;
|
|
37
40
|
feedbackVariant: string;
|
|
38
41
|
displayedValue: string;
|
|
42
|
+
allSelected: boolean;
|
|
39
43
|
}>>> & {
|
|
40
44
|
onClear?: () => any;
|
|
41
45
|
}, {
|
|
@@ -44,6 +48,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
44
48
|
disabled: boolean;
|
|
45
49
|
open: boolean;
|
|
46
50
|
feedbackVariant: string;
|
|
51
|
+
allSelected: boolean;
|
|
47
52
|
displayedValue: any;
|
|
48
53
|
}>;
|
|
49
54
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChipDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ChipDropdownTrigger.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-49bd7193"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../../ChipDropdownTrigger.
|
|
1
|
+
import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css"; import { defineComponent as V, ref as b, computed as p, openBlock as _, createElementBlock as C, mergeProps as n, unref as t, createElementVNode as d, createVNode as c, withCtx as w, createTextVNode as B, toDisplayString as k, withDirectives as u, vShow as f, withModifiers as v } from "vue";
|
|
2
2
|
import m from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
5
5
|
import { DropdownTestIdModifiers as o } from "../../../testids/index.js";
|
|
6
|
-
import { useTestIdAttrs as
|
|
6
|
+
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
7
7
|
const N = { class: "chip-trigger--content" }, I = { class: "chip-trigger--icon" }, $ = ["onClick"], M = /* @__PURE__ */ V({
|
|
8
8
|
__name: "ChipDropdownTrigger",
|
|
9
9
|
props: {
|
|
@@ -13,6 +13,7 @@ const N = { class: "chip-trigger--content" }, I = { class: "chip-trigger--icon"
|
|
|
13
13
|
disabled: { type: Boolean, default: !1 },
|
|
14
14
|
feedbackVariant: { default: "" },
|
|
15
15
|
displayedValue: { default: "" },
|
|
16
|
+
allSelected: { type: Boolean, default: !1 },
|
|
16
17
|
options: null,
|
|
17
18
|
selectedOption: null,
|
|
18
19
|
displayValue: null,
|
|
@@ -22,48 +23,48 @@ const N = { class: "chip-trigger--content" }, I = { class: "chip-trigger--icon"
|
|
|
22
23
|
setup(r, { emit: h }) {
|
|
23
24
|
const e = r, y = () => {
|
|
24
25
|
h("clear");
|
|
25
|
-
},
|
|
26
|
-
let
|
|
27
|
-
return Array.isArray(l) && (l.length > 1 ?
|
|
28
|
-
},
|
|
26
|
+
}, i = b(!0), g = (l) => {
|
|
27
|
+
let a = l;
|
|
28
|
+
return Array.isArray(l) && (l.length > 1 ? a = `${l[0]}, +${l[1]}` : a = l[0] ? `${l[0]}` : ""), i.value = !!a, a ? `${e.label}: ${a}` : e.label;
|
|
29
|
+
}, T = p(
|
|
29
30
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
30
|
-
),
|
|
31
|
+
), s = A(e.testId, o), O = p(() => {
|
|
31
32
|
if (!e.multi)
|
|
32
33
|
return e.selectedOption ? e.displayValue(e.selectedOption) : "";
|
|
33
34
|
if (Array.isArray(e.selectedOption))
|
|
34
|
-
return e.selectedOption.length ? e.
|
|
35
|
+
return e.selectedOption.length ? e.allSelected ? ["All"] : e.selectedOption.length == 1 && e.displayValue ? [e.displayValue(e.selectedOption[0])] : [
|
|
35
36
|
e.displayValue(e.selectedOption[0]),
|
|
36
37
|
e.selectedOption.length - 1
|
|
37
38
|
] : [];
|
|
38
39
|
});
|
|
39
|
-
return (l,
|
|
40
|
-
class: ["chip-trigger", [t(
|
|
41
|
-
}, t(
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
return (l, a) => (_(), C("div", n({
|
|
41
|
+
class: ["chip-trigger", [t(T), { active: i.value, disabled: r.disabled, open: r.open }]]
|
|
42
|
+
}, t(s)[t(o).BUTTON]), [
|
|
43
|
+
d("div", N, [
|
|
44
|
+
c(t(x), n({ variant: "chipLabel" }, t(s)[t(o).BUTTON_CONTENT]), {
|
|
44
45
|
default: w(() => [
|
|
45
|
-
k(
|
|
46
|
+
B(k(g(t(O))), 1)
|
|
46
47
|
]),
|
|
47
48
|
_: 1
|
|
48
49
|
}, 16),
|
|
49
|
-
u(
|
|
50
|
-
|
|
50
|
+
u(d("div", I, [
|
|
51
|
+
c(t(m), {
|
|
51
52
|
name: "caret-down",
|
|
52
53
|
size: "16px"
|
|
53
54
|
})
|
|
54
55
|
], 512), [
|
|
55
|
-
[f, !
|
|
56
|
+
[f, !i.value]
|
|
56
57
|
]),
|
|
57
|
-
u(
|
|
58
|
-
onClick:
|
|
58
|
+
u(d("div", n({ class: "x-circle-wrapper" }, t(s)[t(o).BUTTON_CLEAR], {
|
|
59
|
+
onClick: v(y, ["stop"])
|
|
59
60
|
}), [
|
|
60
|
-
|
|
61
|
+
c(t(m), {
|
|
61
62
|
name: "x-circle",
|
|
62
63
|
size: "16px",
|
|
63
64
|
type: "fill"
|
|
64
65
|
})
|
|
65
66
|
], 16, $), [
|
|
66
|
-
[f,
|
|
67
|
+
[f, i.value]
|
|
67
68
|
])
|
|
68
69
|
])
|
|
69
70
|
], 16));
|
|
@@ -23,6 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
optionIconKey?: string;
|
|
24
24
|
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
25
25
|
showAllSelectedText?: boolean;
|
|
26
|
+
allSelected?: boolean;
|
|
27
|
+
optionFlagKey?: string;
|
|
26
28
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
27
29
|
}>, {
|
|
28
30
|
placeholder: string;
|
|
@@ -48,6 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
50
|
optionIconKey: any;
|
|
49
51
|
optionIconType: any;
|
|
50
52
|
showAllSelectedText: boolean;
|
|
53
|
+
allSelected: boolean;
|
|
54
|
+
optionFlagKey: any;
|
|
51
55
|
statusDotType: any;
|
|
52
56
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
57
|
click: () => void;
|
|
@@ -76,6 +80,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
76
80
|
optionIconKey?: string;
|
|
77
81
|
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
78
82
|
showAllSelectedText?: boolean;
|
|
83
|
+
allSelected?: boolean;
|
|
84
|
+
optionFlagKey?: string;
|
|
79
85
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
80
86
|
}>, {
|
|
81
87
|
placeholder: string;
|
|
@@ -101,6 +107,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
101
107
|
optionIconKey: any;
|
|
102
108
|
optionIconType: any;
|
|
103
109
|
showAllSelectedText: boolean;
|
|
110
|
+
allSelected: boolean;
|
|
111
|
+
optionFlagKey: any;
|
|
104
112
|
statusDotType: any;
|
|
105
113
|
}>>> & {
|
|
106
114
|
onClick?: () => any;
|
|
@@ -124,13 +132,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
132
|
optionIconKey: string;
|
|
125
133
|
optionImageKey: string;
|
|
126
134
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
135
|
+
allSelected: boolean;
|
|
127
136
|
selectedOption: any;
|
|
128
137
|
showFeedbackIcon: boolean;
|
|
129
138
|
brandIconType: "android" | "ios";
|
|
130
139
|
showAllSelectedText: boolean;
|
|
140
|
+
optionFlagKey: string;
|
|
131
141
|
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
132
142
|
}>, {
|
|
133
143
|
image?(_: {}): any;
|
|
144
|
+
flag?(_: {}): any;
|
|
134
145
|
"icon-start"?(_: {}): any;
|
|
135
146
|
"displayed-value"?(_: {}): any;
|
|
136
147
|
"end-icon"?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9fa84b26"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
2
|
-
import
|
|
3
|
-
import { DropdownTestIdModifiers as
|
|
4
|
-
import
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css"; import { defineComponent as I, computed as r, openBlock as a, createElementBlock as n, createBlock as O, createCommentVNode as s, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as u, withCtx as $, createTextVNode as A, toDisplayString as B } from "vue";
|
|
2
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
4
|
+
import g from "../../icon/v4/IconV4.vue.js";
|
|
5
5
|
import "../../icon/v4/IconFlag.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
import
|
|
9
|
-
|
|
6
|
+
import D from "../../shared/FieldLabel.vue.js";
|
|
7
|
+
import { useTestIdAttrs as S } from "../../../utils/testIds.js";
|
|
8
|
+
import K from "../../statusDot/StatusDot.vue.js";
|
|
9
|
+
import { SHARED_ASSETS_CDN_DOMAIN as V } from "../../../consts/configs.js";
|
|
10
|
+
const N = { class: "default-dropdown-wrapper" }, C = { class: "content" }, x = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "image"
|
|
12
|
-
},
|
|
13
|
+
}, E = ["src"], F = {
|
|
13
14
|
key: 1,
|
|
14
|
-
class: "
|
|
15
|
-
}, P = {
|
|
15
|
+
class: "flag"
|
|
16
|
+
}, H = ["src"], P = {
|
|
16
17
|
key: 2,
|
|
18
|
+
class: "start-icon"
|
|
19
|
+
}, z = {
|
|
20
|
+
key: 3,
|
|
17
21
|
class: "status-dot"
|
|
18
|
-
},
|
|
22
|
+
}, R = { key: 0 }, U = { class: "caret-down" }, Z = /* @__PURE__ */ I({
|
|
19
23
|
__name: "DefaultDropdownTrigger",
|
|
20
24
|
props: {
|
|
21
25
|
placeholder: { default: "Select" },
|
|
@@ -42,24 +46,26 @@ const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
42
46
|
optionIconKey: { default: null },
|
|
43
47
|
optionIconType: { default: null },
|
|
44
48
|
showAllSelectedText: { type: Boolean, default: !0 },
|
|
49
|
+
allSelected: { type: Boolean, default: !1 },
|
|
50
|
+
optionFlagKey: { default: null },
|
|
45
51
|
statusDotType: { default: null }
|
|
46
52
|
},
|
|
47
53
|
emits: ["click"],
|
|
48
|
-
setup(t, { emit:
|
|
49
|
-
const e = t,
|
|
54
|
+
setup(t, { emit: v }) {
|
|
55
|
+
const e = t, T = r(
|
|
50
56
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
51
|
-
),
|
|
52
|
-
|
|
53
|
-
},
|
|
57
|
+
), b = () => {
|
|
58
|
+
v("click");
|
|
59
|
+
}, p = S(e.testId, f), k = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.allSelected ? `All selected (${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 = r(() => {
|
|
54
60
|
if (!e.selectedOption)
|
|
55
61
|
return null;
|
|
56
62
|
if (!e.multi)
|
|
57
63
|
return e.selectedOption;
|
|
58
64
|
if (Array.isArray(e.selectedOption))
|
|
59
65
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
60
|
-
});
|
|
61
|
-
return (o,
|
|
62
|
-
t.label ? (a(),
|
|
66
|
+
}), y = r(() => e.optionFlagKey && d.value ? `${V}/assets/flags/v4/${d.value[e.optionFlagKey]?.toLowerCase()}.svg` : null);
|
|
67
|
+
return (o, m) => (a(), n("div", N, [
|
|
68
|
+
t.label ? (a(), O(D, {
|
|
63
69
|
key: 0,
|
|
64
70
|
label: t.label,
|
|
65
71
|
mandatory: t.mandatory,
|
|
@@ -68,47 +74,55 @@ const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
68
74
|
disabled: t.disabled,
|
|
69
75
|
"test-id": t.testId,
|
|
70
76
|
class: "dropdown-field-label"
|
|
71
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
72
|
-
|
|
73
|
-
class: ["dropdown-trigger", [t.size, l(
|
|
74
|
-
}, l(
|
|
75
|
-
onClick:
|
|
77
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : s("", !0),
|
|
78
|
+
c("div", h({
|
|
79
|
+
class: ["dropdown-trigger", [t.size, l(T), { open: t.open, disabled: t.disabled }]]
|
|
80
|
+
}, l(p)[l(f).BUTTON_WRAPPER], {
|
|
81
|
+
onClick: m[0] || (m[0] = (L) => b())
|
|
76
82
|
}), [
|
|
77
|
-
|
|
78
|
-
o.$slots.image || l(
|
|
83
|
+
c("div", C, [
|
|
84
|
+
o.$slots.image || l(d) && t.optionImageKey ? (a(), n("div", x, [
|
|
79
85
|
i(o.$slots, "image", {}, () => [
|
|
80
86
|
t.optionImageKey ? (a(), n("img", {
|
|
81
87
|
key: 0,
|
|
82
|
-
src: l(
|
|
83
|
-
}, null, 8,
|
|
88
|
+
src: l(d)[t.optionImageKey]
|
|
89
|
+
}, null, 8, E)) : s("", !0)
|
|
90
|
+
], !0)
|
|
91
|
+
])) : s("", !0),
|
|
92
|
+
o.$slots.flag || l(d) && t.optionFlagKey ? (a(), n("div", F, [
|
|
93
|
+
i(o.$slots, "flag", {}, () => [
|
|
94
|
+
l(y) ? (a(), n("img", {
|
|
95
|
+
key: 0,
|
|
96
|
+
src: l(y)
|
|
97
|
+
}, null, 8, H)) : s("", !0)
|
|
84
98
|
], !0)
|
|
85
|
-
])) :
|
|
86
|
-
o.$slots["icon-start"] || l(
|
|
99
|
+
])) : s("", !0),
|
|
100
|
+
o.$slots["icon-start"] || l(d) && t.optionIconKey ? (a(), n("div", P, [
|
|
87
101
|
i(o.$slots, "icon-start", {}, () => [
|
|
88
|
-
|
|
102
|
+
u(l(g), {
|
|
89
103
|
type: t.optionIconType,
|
|
90
|
-
name: l(
|
|
104
|
+
name: l(d)[t.optionIconKey],
|
|
91
105
|
size: "20px"
|
|
92
106
|
}, null, 8, ["type", "name"])
|
|
93
107
|
], !0)
|
|
94
|
-
])) :
|
|
95
|
-
t.statusDotType ? (a(), n("div",
|
|
96
|
-
|
|
97
|
-
])) :
|
|
108
|
+
])) : s("", !0),
|
|
109
|
+
t.statusDotType ? (a(), n("div", z, [
|
|
110
|
+
u(l(K), { type: t.statusDotType }, null, 8, ["type"])
|
|
111
|
+
])) : s("", !0),
|
|
98
112
|
i(o.$slots, "displayed-value", {}, () => [
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
B(
|
|
113
|
+
u(l(w), h({ variant: "body1" }, l(p)[l(f).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
114
|
+
default: $(() => [
|
|
115
|
+
A(B(l(k)), 1)
|
|
102
116
|
]),
|
|
103
117
|
_: 1
|
|
104
118
|
}, 16)
|
|
105
119
|
], !0)
|
|
106
120
|
]),
|
|
107
|
-
o.$slots["end-icon"] ? (a(), n("div",
|
|
121
|
+
o.$slots["end-icon"] ? (a(), n("div", R, [
|
|
108
122
|
i(o.$slots, "end-icon", {}, void 0, !0)
|
|
109
|
-
])) :
|
|
110
|
-
|
|
111
|
-
|
|
123
|
+
])) : s("", !0),
|
|
124
|
+
c("div", U, [
|
|
125
|
+
u(l(g), {
|
|
112
126
|
name: "caret-down",
|
|
113
127
|
size: "20px"
|
|
114
128
|
})
|
|
@@ -118,5 +132,5 @@ const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
|
118
132
|
}
|
|
119
133
|
});
|
|
120
134
|
export {
|
|
121
|
-
|
|
135
|
+
Z as default
|
|
122
136
|
};
|
|
@@ -251,9 +251,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
251
251
|
size: "small" | "medium" | "large";
|
|
252
252
|
flip: boolean;
|
|
253
253
|
mandatory: boolean;
|
|
254
|
+
skidding: number;
|
|
255
|
+
modelValue: any;
|
|
254
256
|
selected: any;
|
|
255
257
|
onClear: () => void;
|
|
256
|
-
modelValue: any;
|
|
257
258
|
placeholder: string;
|
|
258
259
|
multi: boolean;
|
|
259
260
|
showSelectAll: boolean;
|
|
@@ -262,7 +263,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
262
263
|
autoSize: boolean;
|
|
263
264
|
disableKeyboardEvents: boolean;
|
|
264
265
|
isOnTop: boolean;
|
|
265
|
-
skidding: number;
|
|
266
266
|
triggerLabel: string;
|
|
267
267
|
triggerHelperText: string;
|
|
268
268
|
triggerFeedbackText: string;
|
|
@@ -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_360883b1_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-360883b1"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ce, computed as G, openBlock as i, createElementBlock as a, mergeProps as c, unref as t, renderSlot as T, createElementVNode as m, createVNode as n, withCtx as s, Transition as ye, normalizeClass as K, normalizeStyle as fe, createTextVNode as p, createCommentVNode as d, isRef as me, toDisplayString as U, withModifiers as W, Fragment as pe, renderList as ge, toRaw as I, createBlock as M, resolveDynamicComponent as Te } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
5
6
|
import "./DropdownV4.vue.js";
|
|
6
7
|
import ke from "./DefaultDropdownTrigger.vue.js";
|
|
7
8
|
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
@@ -34,7 +35,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
34
35
|
}, xe = { key: 2 }, $e = ["aria-selected", "aria-disabled", "onClick"], He = {
|
|
35
36
|
key: 1,
|
|
36
37
|
class: "actions-wrapper"
|
|
37
|
-
}, Ge = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" },
|
|
38
|
+
}, Ge = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, gt = /* @__PURE__ */ ce({
|
|
38
39
|
__name: "DropdownV4",
|
|
39
40
|
props: {
|
|
40
41
|
modelValue: { default: null },
|
|
@@ -258,7 +259,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
258
259
|
}
|
|
259
260
|
), {
|
|
260
261
|
default: s(() => [
|
|
261
|
-
p("Select all ")
|
|
262
|
+
p(" Select all ")
|
|
262
263
|
]),
|
|
263
264
|
_: 1
|
|
264
265
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
@@ -348,7 +349,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
348
349
|
class: "apply-button"
|
|
349
350
|
}, t(f)[t(y).ACTION_APPLY], { onClick: t(oe) }), {
|
|
350
351
|
default: s(() => [
|
|
351
|
-
p("Apply ")
|
|
352
|
+
p(" Apply ")
|
|
352
353
|
]),
|
|
353
354
|
_: 1
|
|
354
355
|
}, 16, ["onClick"])
|
|
@@ -472,5 +473,5 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
472
473
|
}
|
|
473
474
|
});
|
|
474
475
|
export {
|
|
475
|
-
|
|
476
|
+
gt as default
|
|
476
477
|
};
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
import "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import m from "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
-
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
+
const _ = /* @__PURE__ */ e({
|
|
6
7
|
__name: "IconButtonDropdownTrigger",
|
|
7
8
|
props: {
|
|
8
9
|
testId: { default: "" }
|
|
9
10
|
},
|
|
10
11
|
setup(o) {
|
|
11
12
|
const t = o;
|
|
12
|
-
return (s,
|
|
13
|
+
return (s, i) => (r(), n(p(m), c({
|
|
13
14
|
"icon-name": "dots-three",
|
|
14
15
|
type: "bold"
|
|
15
16
|
}, t), null, 16));
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
_ as default
|
|
20
21
|
};
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
20
20
|
optionTwoLinesKey?: string;
|
|
21
21
|
treeChildShown?: boolean;
|
|
22
|
+
optionFlagKey?: string;
|
|
22
23
|
}>, {
|
|
23
24
|
subtitle: string;
|
|
24
25
|
disabled: boolean;
|
|
@@ -39,6 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
40
|
optionTwoLinesVariant: any;
|
|
40
41
|
optionTwoLinesKey: any;
|
|
41
42
|
treeChildShown: boolean;
|
|
43
|
+
optionFlagKey: any;
|
|
42
44
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
45
|
toggleTreeCollapse: (option: unknown) => void;
|
|
44
46
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -62,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
62
64
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
63
65
|
optionTwoLinesKey?: string;
|
|
64
66
|
treeChildShown?: boolean;
|
|
67
|
+
optionFlagKey?: string;
|
|
65
68
|
}>, {
|
|
66
69
|
subtitle: string;
|
|
67
70
|
disabled: boolean;
|
|
@@ -82,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
82
85
|
optionTwoLinesVariant: any;
|
|
83
86
|
optionTwoLinesKey: any;
|
|
84
87
|
treeChildShown: boolean;
|
|
88
|
+
optionFlagKey: any;
|
|
85
89
|
}>>> & {
|
|
86
90
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
87
91
|
}, {
|
|
@@ -92,6 +96,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
96
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
93
97
|
optionTwoLinesKey: string;
|
|
94
98
|
isIndeterminate: boolean;
|
|
99
|
+
optionFlagKey: string;
|
|
95
100
|
subtitle: string;
|
|
96
101
|
selectAllOption: boolean;
|
|
97
102
|
nameKey: string;
|
|
@@ -106,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
111
|
treeChildShown: boolean;
|
|
107
112
|
}>, {
|
|
108
113
|
image?(_: {}): any;
|
|
114
|
+
flag?(_: {}): any;
|
|
109
115
|
"icon-start"?(_: {}): any;
|
|
110
116
|
default?(_: {}): any;
|
|
111
117
|
"icon-end"?(_: {}): any;
|