@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.91
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_604dfc6f_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +1 -1
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +180 -169
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
- package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +58 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +234 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
- package/components/dropdown/v4/index.d.ts +203 -35
- package/components/dropdown/v4/index.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +40 -26
- package/components/popover/v4/index.d.ts +46 -8
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +82 -74
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1093 -204
- package/index.js +1 -1
- package/mocks/words.d.ts +1 -1
- package/package.json +3 -3
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
- package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
- package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
- package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; import { defineComponent as c, openBlock as s, createBlock as u, unref as o, normalizeClass as m, withCtx as n, renderSlot as f, createElementVNode as p, normalizeStyle as y, createVNode as h, createTextVNode as b, toDisplayString as x } from "vue";
|
|
2
|
+
import T 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
|
-
|
|
6
|
+
import B from "../../typography/v4/Typography.vue.js";
|
|
7
|
+
const W = /* @__PURE__ */ c({
|
|
7
8
|
__name: "ButtonDropdownTrigger",
|
|
8
9
|
props: {
|
|
9
10
|
label: null,
|
|
@@ -14,26 +15,47 @@ const p = /* @__PURE__ */ l({
|
|
|
14
15
|
startIconName: { default: null },
|
|
15
16
|
startIconType: { default: "regular" },
|
|
16
17
|
hideEndIcon: { type: Boolean, default: !1 },
|
|
17
|
-
testId: { default: "" }
|
|
18
|
+
testId: { default: "" },
|
|
19
|
+
maxWidth: { default: 0 },
|
|
20
|
+
withTooltip: { type: Boolean, default: !0 },
|
|
21
|
+
tooltipPlacement: { default: "top" }
|
|
18
22
|
},
|
|
19
23
|
emits: ["click"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
setup(t, { emit: i }) {
|
|
25
|
+
const e = t, a = 40, d = e.maxWidth > a ? { maxWidth: `${e.maxWidth - a}px` } : {};
|
|
26
|
+
return (r, l) => (s(), u(o(T), {
|
|
27
|
+
class: m(["button-trigger", { open: t.open }]),
|
|
28
|
+
disabled: t.disabled,
|
|
24
29
|
color: "default",
|
|
25
|
-
variant:
|
|
26
|
-
size:
|
|
27
|
-
"start-icon-name":
|
|
28
|
-
"start-icon-type":
|
|
29
|
-
"end-icon-name":
|
|
30
|
-
content:
|
|
31
|
-
"test-id":
|
|
32
|
-
onClick:
|
|
30
|
+
variant: t.variant,
|
|
31
|
+
size: t.size,
|
|
32
|
+
"start-icon-name": t.startIconName,
|
|
33
|
+
"start-icon-type": t.startIconType,
|
|
34
|
+
"end-icon-name": t.hideEndIcon ? null : "caret-down",
|
|
35
|
+
content: t.label,
|
|
36
|
+
"test-id": t.testId,
|
|
37
|
+
onClick: l[0] || (l[0] = (g) => i("click"))
|
|
33
38
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
default: n(() => [
|
|
40
|
+
f(r.$slots, "default", {}, () => [
|
|
41
|
+
p("div", {
|
|
42
|
+
style: y(o(d)),
|
|
43
|
+
class: "label-wrapper"
|
|
44
|
+
}, [
|
|
45
|
+
h(B, {
|
|
46
|
+
variant: "button",
|
|
47
|
+
class: "label-text",
|
|
48
|
+
"is-truncated": "",
|
|
49
|
+
"with-tooltip": t.withTooltip,
|
|
50
|
+
"tooltip-text": t.label,
|
|
51
|
+
"tooltip-placement": t.tooltipPlacement
|
|
52
|
+
}, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
b(x(t.label), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["with-tooltip", "tooltip-text", "tooltip-placement"])
|
|
58
|
+
], 4)
|
|
37
59
|
], !0)
|
|
38
60
|
]),
|
|
39
61
|
_: 3
|
|
@@ -41,5 +63,5 @@ const p = /* @__PURE__ */ l({
|
|
|
41
63
|
}
|
|
42
64
|
});
|
|
43
65
|
export {
|
|
44
|
-
|
|
66
|
+
W as default
|
|
45
67
|
};
|
|
@@ -10,6 +10,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
10
|
selectedOption: unknown | unknown[];
|
|
11
11
|
displayValue: (option: unknown) => string;
|
|
12
12
|
multi: boolean;
|
|
13
|
+
cancelAllSelectedDisplay?: boolean;
|
|
14
|
+
displayValueInQuotes?: boolean;
|
|
13
15
|
}>, {
|
|
14
16
|
label: string;
|
|
15
17
|
open: boolean;
|
|
@@ -18,6 +20,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
20
|
feedbackVariant: string;
|
|
19
21
|
displayedValue: string;
|
|
20
22
|
allSelected: boolean;
|
|
23
|
+
cancelAllSelectedDisplay: boolean;
|
|
24
|
+
displayValueInQuotes: boolean;
|
|
21
25
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
26
|
clear: () => void;
|
|
23
27
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -32,6 +36,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
32
36
|
selectedOption: unknown | unknown[];
|
|
33
37
|
displayValue: (option: unknown) => string;
|
|
34
38
|
multi: boolean;
|
|
39
|
+
cancelAllSelectedDisplay?: boolean;
|
|
40
|
+
displayValueInQuotes?: boolean;
|
|
35
41
|
}>, {
|
|
36
42
|
label: string;
|
|
37
43
|
open: boolean;
|
|
@@ -40,6 +46,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
40
46
|
feedbackVariant: string;
|
|
41
47
|
displayedValue: string;
|
|
42
48
|
allSelected: boolean;
|
|
49
|
+
cancelAllSelectedDisplay: boolean;
|
|
50
|
+
displayValueInQuotes: boolean;
|
|
43
51
|
}>>> & {
|
|
44
52
|
onClear?: () => any;
|
|
45
53
|
}, {
|
|
@@ -50,6 +58,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
50
58
|
feedbackVariant: string;
|
|
51
59
|
allSelected: boolean;
|
|
52
60
|
displayedValue: any;
|
|
61
|
+
cancelAllSelectedDisplay: boolean;
|
|
62
|
+
displayValueInQuotes: boolean;
|
|
53
63
|
}>;
|
|
54
64
|
export default _default;
|
|
55
65
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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
|
|
3
|
+
// import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e43ac1c9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../ChipDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; import { defineComponent as k, ref as f, computed as m, watch as D, openBlock as I, createBlock as S, unref as t, withCtx as y, createElementVNode as c, mergeProps as p, createVNode as d, createTextVNode as V, toDisplayString as v, withDirectives as x, vShow as _, withModifiers as $ } from "vue";
|
|
2
|
+
import b from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { DropdownTestIdModifiers as
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
import { isElementTruncated as
|
|
8
|
-
import { promiseTimeout as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
4
|
+
import C from "../../typography/v4/Typography.vue.js";
|
|
5
|
+
import { DropdownTestIdModifiers as i } from "../../../testids/index.js";
|
|
6
|
+
import { useTestIdAttrs as E } from "../../../utils/testIds.js";
|
|
7
|
+
import { isElementTruncated as U } from "../../../utils/text.js";
|
|
8
|
+
import { promiseTimeout as F } from "@vueuse/core";
|
|
9
|
+
import L from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */ k({
|
|
11
11
|
__name: "ChipDropdownTrigger",
|
|
12
12
|
props: {
|
|
13
13
|
label: { default: "Status" },
|
|
@@ -20,70 +20,89 @@ const U = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
|
|
|
20
20
|
options: null,
|
|
21
21
|
selectedOption: null,
|
|
22
22
|
displayValue: null,
|
|
23
|
-
multi: { type: Boolean }
|
|
23
|
+
multi: { type: Boolean },
|
|
24
|
+
cancelAllSelectedDisplay: { type: Boolean, default: !1 },
|
|
25
|
+
displayValueInQuotes: { type: Boolean, default: !1 }
|
|
24
26
|
},
|
|
25
27
|
emits: ["clear"],
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
28
|
-
|
|
29
|
-
}, o =
|
|
28
|
+
setup(u, { emit: A }) {
|
|
29
|
+
const e = u, B = () => {
|
|
30
|
+
A("clear");
|
|
31
|
+
}, o = f(null), r = f(!0), T = f(!1), h = (l) => {
|
|
30
32
|
let a = l;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
Array.isArray(l) && (l.length > 1 ? a = `${l[0]}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
|
|
34
|
+
let O = a;
|
|
35
|
+
return e.displayValueInQuotes && (O = `"${a}"`), a ? `${e.label}: ${O}` : e.label;
|
|
36
|
+
}, g = (l) => {
|
|
37
|
+
let a = "";
|
|
38
|
+
return Array.isArray(l) && l.length > 1 && (a = `, +${l[1]}`), a;
|
|
39
|
+
}, N = m(
|
|
33
40
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
34
|
-
),
|
|
41
|
+
), s = E(e.testId, i), n = m(() => {
|
|
35
42
|
if (!e.multi)
|
|
36
43
|
return e.selectedOption ? e.displayValue(e.selectedOption) : "";
|
|
37
44
|
if (Array.isArray(e.selectedOption))
|
|
38
|
-
return e.selectedOption.length ? e.allSelected ? ["All"] : e.selectedOption.length == 1 && e.displayValue ? [e.displayValue(e.selectedOption[0])] : [
|
|
45
|
+
return e.selectedOption.length ? e.allSelected && !e.cancelAllSelectedDisplay ? ["All"] : e.selectedOption.length == 1 && e.displayValue ? [e.displayValue(e.selectedOption[0])] : [
|
|
39
46
|
e.displayValue(e.selectedOption[0]),
|
|
40
47
|
e.selectedOption.length - 1
|
|
41
48
|
] : [];
|
|
42
49
|
});
|
|
43
|
-
|
|
44
|
-
await
|
|
50
|
+
D([() => e.selectedOption, o], async () => {
|
|
51
|
+
await F(100), T.value = o.value && U(o.value);
|
|
45
52
|
});
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
const w = m(() => T.value ? `${h(n.value)}${g(
|
|
54
|
+
n.value
|
|
55
|
+
)}` : "");
|
|
56
|
+
return (l, a) => (I(), S(t(L), {
|
|
57
|
+
text: t(w),
|
|
58
|
+
class: "tooltip-option",
|
|
59
|
+
placement: "top"
|
|
50
60
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
class: ["chip-trigger", [t(
|
|
54
|
-
}, t(
|
|
55
|
-
|
|
61
|
+
default: y(() => [
|
|
62
|
+
c("div", p({
|
|
63
|
+
class: ["chip-trigger", [t(N), { active: r.value, disabled: u.disabled, open: u.open }]]
|
|
64
|
+
}, t(s)[t(i).BUTTON]), [
|
|
65
|
+
c("div", {
|
|
56
66
|
ref_key: "textContainerRef",
|
|
57
67
|
ref: o,
|
|
58
68
|
class: "chip-trigger--content"
|
|
59
69
|
}, [
|
|
60
|
-
|
|
70
|
+
d(t(C), p({
|
|
61
71
|
class: "chip-trigger--text",
|
|
62
72
|
variant: "chipLabel"
|
|
63
|
-
}, t(
|
|
64
|
-
default:
|
|
65
|
-
|
|
73
|
+
}, t(s)[t(i).BUTTON_CONTENT]), {
|
|
74
|
+
default: y(() => [
|
|
75
|
+
V(v(h(t(n))), 1)
|
|
66
76
|
]),
|
|
67
77
|
_: 1
|
|
68
78
|
}, 16),
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
d(t(C), p({
|
|
80
|
+
class: "chip-trigger--suffix",
|
|
81
|
+
variant: "chipLabel"
|
|
82
|
+
}, t(s)[t(i).BUTTON_CONTENT_SUFFIX]), {
|
|
83
|
+
default: y(() => [
|
|
84
|
+
V(v(g(t(n))), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 16),
|
|
88
|
+
x(c("div", R, [
|
|
89
|
+
d(t(b), {
|
|
71
90
|
name: "caret-down",
|
|
72
91
|
size: "16px"
|
|
73
92
|
})
|
|
74
93
|
], 512), [
|
|
75
|
-
[
|
|
94
|
+
[_, !r.value]
|
|
76
95
|
]),
|
|
77
|
-
|
|
78
|
-
onClick:
|
|
96
|
+
x(c("div", p({ class: "x-circle-wrapper" }, t(s)[t(i).BUTTON_CLEAR], {
|
|
97
|
+
onClick: $(B, ["stop"])
|
|
79
98
|
}), [
|
|
80
|
-
|
|
99
|
+
d(t(b), {
|
|
81
100
|
name: "x-circle",
|
|
82
101
|
size: "16px",
|
|
83
102
|
type: "fill"
|
|
84
103
|
})
|
|
85
104
|
], 16, z), [
|
|
86
|
-
[
|
|
105
|
+
[_, r.value]
|
|
87
106
|
])
|
|
88
107
|
], 512)
|
|
89
108
|
], 16)
|
package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
|
|
1
2
|
type SelectedCondition = {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
@@ -13,15 +14,38 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
14
|
fetchFnCallback: (q: string) => Promise<unknown[]>;
|
|
14
15
|
optionNameKey: string;
|
|
15
16
|
minCharsToStart?: number;
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
searchQuery?: string;
|
|
19
|
+
loadMoreFn?: () => Promise<any[]>;
|
|
20
|
+
infiniteLoading?: boolean;
|
|
21
|
+
fetchDataDebounceTime?: number;
|
|
22
|
+
autoFocusSearch?: boolean;
|
|
23
|
+
groupedOptions?: boolean;
|
|
24
|
+
optionFlagKey?: string;
|
|
25
|
+
optionIconKey?: string;
|
|
26
|
+
optionImageKey?: string;
|
|
27
|
+
optionIconType?: IconTypes;
|
|
16
28
|
}>, {
|
|
17
29
|
label: string;
|
|
18
30
|
testId: string;
|
|
19
31
|
comparingKey: string;
|
|
20
32
|
optionNameKey: string;
|
|
21
33
|
minCharsToStart: number;
|
|
34
|
+
isOpen: boolean;
|
|
35
|
+
searchQuery: string;
|
|
36
|
+
loadMoreFn: any;
|
|
37
|
+
infiniteLoading: boolean;
|
|
38
|
+
fetchDataDebounceTime: number;
|
|
39
|
+
autoFocusSearch: boolean;
|
|
40
|
+
groupedOptions: boolean;
|
|
41
|
+
optionFlagKey: string;
|
|
42
|
+
optionIconKey: string;
|
|
43
|
+
optionImageKey: string;
|
|
44
|
+
optionIconType: any;
|
|
22
45
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
46
|
"update:selectedCondition": (value: SelectedCondition) => void;
|
|
24
47
|
"update:appliedSelections": (value: unknown) => void;
|
|
48
|
+
clear: () => void;
|
|
25
49
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
26
50
|
selectedCondition: SelectedCondition | null;
|
|
27
51
|
appliedSelections: unknown | unknown[];
|
|
@@ -32,21 +56,55 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
32
56
|
fetchFnCallback: (q: string) => Promise<unknown[]>;
|
|
33
57
|
optionNameKey: string;
|
|
34
58
|
minCharsToStart?: number;
|
|
59
|
+
isOpen?: boolean;
|
|
60
|
+
searchQuery?: string;
|
|
61
|
+
loadMoreFn?: () => Promise<any[]>;
|
|
62
|
+
infiniteLoading?: boolean;
|
|
63
|
+
fetchDataDebounceTime?: number;
|
|
64
|
+
autoFocusSearch?: boolean;
|
|
65
|
+
groupedOptions?: boolean;
|
|
66
|
+
optionFlagKey?: string;
|
|
67
|
+
optionIconKey?: string;
|
|
68
|
+
optionImageKey?: string;
|
|
69
|
+
optionIconType?: IconTypes;
|
|
35
70
|
}>, {
|
|
36
71
|
label: string;
|
|
37
72
|
testId: string;
|
|
38
73
|
comparingKey: string;
|
|
39
74
|
optionNameKey: string;
|
|
40
75
|
minCharsToStart: number;
|
|
76
|
+
isOpen: boolean;
|
|
77
|
+
searchQuery: string;
|
|
78
|
+
loadMoreFn: any;
|
|
79
|
+
infiniteLoading: boolean;
|
|
80
|
+
fetchDataDebounceTime: number;
|
|
81
|
+
autoFocusSearch: boolean;
|
|
82
|
+
groupedOptions: boolean;
|
|
83
|
+
optionFlagKey: string;
|
|
84
|
+
optionIconKey: string;
|
|
85
|
+
optionImageKey: string;
|
|
86
|
+
optionIconType: any;
|
|
41
87
|
}>>> & {
|
|
88
|
+
onClear?: () => any;
|
|
42
89
|
"onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
|
|
43
90
|
"onUpdate:appliedSelections"?: (value: unknown) => any;
|
|
44
91
|
}, {
|
|
45
92
|
label: string;
|
|
46
93
|
testId: string;
|
|
94
|
+
isOpen: boolean;
|
|
95
|
+
infiniteLoading: boolean;
|
|
47
96
|
optionNameKey: string;
|
|
97
|
+
optionIconKey: string;
|
|
98
|
+
optionImageKey: string;
|
|
99
|
+
optionIconType: IconTypes;
|
|
100
|
+
optionFlagKey: string;
|
|
101
|
+
groupedOptions: boolean;
|
|
48
102
|
comparingKey: string;
|
|
49
103
|
minCharsToStart: number;
|
|
104
|
+
searchQuery: string;
|
|
105
|
+
loadMoreFn: () => Promise<any[]>;
|
|
106
|
+
fetchDataDebounceTime: number;
|
|
107
|
+
autoFocusSearch: boolean;
|
|
50
108
|
}>;
|
|
51
109
|
export default _default;
|
|
52
110
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ConditionalDropdown.vue2.js";
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2c6a03f9"]]);
|
|
5
|
+
export {
|
|
6
|
+
n as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css"; import { defineComponent as $, computed as C, ref as s, watch as O, onMounted as j, openBlock as D, createBlock as W, unref as d, withCtx as f, createVNode as g, mergeProps as q, createElementVNode as G, isRef as H, normalizeProps as J, guardReactiveProps as X, createElementBlock as Y, createTextVNode as Z, toDisplayString as _, createCommentVNode as ee } from "vue";
|
|
2
|
+
import N from "./DropdownV4.vue.js";
|
|
3
|
+
import "./DefaultDropdownTrigger.vue.js";
|
|
4
|
+
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
+
import le from "./ChipDropdownTrigger.vue.js";
|
|
6
|
+
import "./AppDropdownTrigger.vue.js";
|
|
7
|
+
import oe from "./ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
|
+
import "./TreeDropdown.vue.js";
|
|
10
|
+
import "./OptionV4.vue.js";
|
|
11
|
+
import "./ConditionalDropdown.vue.js";
|
|
12
|
+
import ae from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import te from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as ne } from "@vueuse/core";
|
|
15
|
+
const ie = { class: "conditional-container" }, ue = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "custom-list-area"
|
|
18
|
+
}, Oe = /* @__PURE__ */ $({
|
|
19
|
+
__name: "ConditionalDropdown",
|
|
20
|
+
props: {
|
|
21
|
+
selectedCondition: null,
|
|
22
|
+
appliedSelections: null,
|
|
23
|
+
conditionalOptions: null,
|
|
24
|
+
label: { default: "" },
|
|
25
|
+
testId: { default: "" },
|
|
26
|
+
comparingKey: { default: "id" },
|
|
27
|
+
fetchFnCallback: null,
|
|
28
|
+
optionNameKey: { default: "name" },
|
|
29
|
+
minCharsToStart: { default: 3 },
|
|
30
|
+
isOpen: { type: Boolean, default: !1 },
|
|
31
|
+
searchQuery: { default: "" },
|
|
32
|
+
loadMoreFn: { type: Function, default: null },
|
|
33
|
+
infiniteLoading: { type: Boolean, default: !1 },
|
|
34
|
+
fetchDataDebounceTime: { default: 400 },
|
|
35
|
+
autoFocusSearch: { type: Boolean, default: !0 },
|
|
36
|
+
groupedOptions: { type: Boolean, default: !1 },
|
|
37
|
+
optionFlagKey: { default: "" },
|
|
38
|
+
optionIconKey: { default: "" },
|
|
39
|
+
optionImageKey: { default: "" },
|
|
40
|
+
optionIconType: { default: null }
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
|
|
43
|
+
setup(r, { emit: k }) {
|
|
44
|
+
const e = r, h = C({
|
|
45
|
+
get: () => e.appliedSelections,
|
|
46
|
+
set: (l) => {
|
|
47
|
+
k("update:appliedSelections", l);
|
|
48
|
+
}
|
|
49
|
+
}), n = C({
|
|
50
|
+
get: () => e.selectedCondition || e.conditionalOptions[0],
|
|
51
|
+
set: (l) => {
|
|
52
|
+
k("update:selectedCondition", l);
|
|
53
|
+
}
|
|
54
|
+
}), w = s(null), c = s(!0), a = s([]), u = s(
|
|
55
|
+
Array.isArray(e.appliedSelections) ? e.appliedSelections : [e.appliedSelections]
|
|
56
|
+
), K = s(!0), p = s(!1), S = s(!1), i = s(e.searchQuery), L = s(""), m = s(e.label), T = s([]), F = C(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = C(() => {
|
|
57
|
+
const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
58
|
+
if (e.groupedOptions) {
|
|
59
|
+
let o = 0;
|
|
60
|
+
return a.value.forEach((y) => {
|
|
61
|
+
y.options && (o = o + y.options.length);
|
|
62
|
+
}), o > 4 ? o : l;
|
|
63
|
+
}
|
|
64
|
+
return t > l ? t : l;
|
|
65
|
+
}), B = (l, t) => {
|
|
66
|
+
if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l && t.length) {
|
|
67
|
+
const o = [], y = u.value.filter(
|
|
68
|
+
(v) => v[e.optionNameKey].includes(l)
|
|
69
|
+
);
|
|
70
|
+
return t.forEach((v) => {
|
|
71
|
+
y.find(
|
|
72
|
+
(z) => z[e.comparingKey] === v[e.comparingKey]
|
|
73
|
+
) && o.push(v[e.comparingKey]);
|
|
74
|
+
}), y.filter(
|
|
75
|
+
(v) => !o.includes(v[e.comparingKey])
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return [];
|
|
79
|
+
}, I = async (l) => {
|
|
80
|
+
try {
|
|
81
|
+
p.value = !0;
|
|
82
|
+
const t = await e.fetchFnCallback(l), o = B(
|
|
83
|
+
l,
|
|
84
|
+
t
|
|
85
|
+
);
|
|
86
|
+
a.value = [...o, ...t], p.value = !1;
|
|
87
|
+
} catch (t) {
|
|
88
|
+
p.value = !1, console.error("Error fetching data:", t);
|
|
89
|
+
}
|
|
90
|
+
}, M = async () => {
|
|
91
|
+
if (e.infiniteLoading)
|
|
92
|
+
try {
|
|
93
|
+
S.value = !0;
|
|
94
|
+
const l = await e.loadMoreFn();
|
|
95
|
+
S.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
|
|
96
|
+
} catch (l) {
|
|
97
|
+
S.value = !1, console.error("Error fetching data:", l);
|
|
98
|
+
}
|
|
99
|
+
}, E = ne(
|
|
100
|
+
I,
|
|
101
|
+
e.fetchDataDebounceTime
|
|
102
|
+
), b = (l) => {
|
|
103
|
+
l.length >= e.minCharsToStart ? (E(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
|
|
104
|
+
}, V = () => {
|
|
105
|
+
i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
106
|
+
name: i.value,
|
|
107
|
+
conditionalOptions: !0,
|
|
108
|
+
conditionalName: n.value.label,
|
|
109
|
+
[e.comparingKey]: i.value
|
|
110
|
+
} : a.value = [
|
|
111
|
+
{
|
|
112
|
+
name: i.value,
|
|
113
|
+
conditionalOptions: !0,
|
|
114
|
+
conditionalName: n.value.label,
|
|
115
|
+
[e.comparingKey]: i.value
|
|
116
|
+
},
|
|
117
|
+
...a.value
|
|
118
|
+
] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
|
|
119
|
+
}, A = () => {
|
|
120
|
+
c.value && u.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
|
|
121
|
+
};
|
|
122
|
+
O(i, () => {
|
|
123
|
+
b(i.value);
|
|
124
|
+
}), O([n, a], () => {
|
|
125
|
+
V();
|
|
126
|
+
});
|
|
127
|
+
const x = () => {
|
|
128
|
+
c.value && u.value.length === 0 ? (n.value = null, h.value = [], n.value = null) : (L.value = i.value, h.value = c.value ? [...u.value] : { ...u.value }, K.value = c.value), A();
|
|
129
|
+
};
|
|
130
|
+
O(n, (l, t) => {
|
|
131
|
+
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
|
|
132
|
+
p.value = !1, c.value = !0;
|
|
133
|
+
}, 100)) : setTimeout(() => {
|
|
134
|
+
c.value = !1;
|
|
135
|
+
}, 100);
|
|
136
|
+
});
|
|
137
|
+
const P = (l) => {
|
|
138
|
+
T.value = l;
|
|
139
|
+
}, Q = () => {
|
|
140
|
+
u.value = [], h.value = [], n.value = null, m.value = e.label, i.value = "", k("clear");
|
|
141
|
+
}, R = (l) => {
|
|
142
|
+
l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && b(i.value));
|
|
143
|
+
};
|
|
144
|
+
return j(() => {
|
|
145
|
+
(e.searchQuery || !e.infiniteLoading) && b(e.searchQuery), A();
|
|
146
|
+
}), (l, t) => (D(), W(d(N), {
|
|
147
|
+
ref_key: "dropdownRef",
|
|
148
|
+
ref: w,
|
|
149
|
+
selected: u.value,
|
|
150
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => u.value = o),
|
|
151
|
+
"predefined-trigger": "chip",
|
|
152
|
+
"display-value": (o) => o?.[r.optionNameKey],
|
|
153
|
+
multi: c.value,
|
|
154
|
+
options: a.value,
|
|
155
|
+
placeholder: m.value,
|
|
156
|
+
"search-placeholder": "Search",
|
|
157
|
+
"option-name-key": r.optionNameKey,
|
|
158
|
+
"with-conditions": "",
|
|
159
|
+
"inline-search": "",
|
|
160
|
+
"custom-number-of-displayed-options": d(U),
|
|
161
|
+
"options-list-width": "330px",
|
|
162
|
+
loading: p.value,
|
|
163
|
+
"load-more-loading": S.value,
|
|
164
|
+
"comparing-key": r.comparingKey,
|
|
165
|
+
"is-open": r.isOpen,
|
|
166
|
+
"infinite-loading": r.infiniteLoading,
|
|
167
|
+
"show-select-all": !r.infiniteLoading && !i.value,
|
|
168
|
+
"grouped-options": r.groupedOptions,
|
|
169
|
+
"option-flag-key": r.optionFlagKey,
|
|
170
|
+
"option-image-key": r.optionImageKey,
|
|
171
|
+
"option-icon-key": r.optionIconKey,
|
|
172
|
+
"option-icon-type": r.optionIconType,
|
|
173
|
+
"onUpdate:isOpen": R,
|
|
174
|
+
onOnsearch: b,
|
|
175
|
+
onApply: x,
|
|
176
|
+
onLoadMore: M,
|
|
177
|
+
onUnsavedSelectionUpdate: P
|
|
178
|
+
}, {
|
|
179
|
+
"dropdown-trigger": f(({ defaultTriggerProps: o }) => [
|
|
180
|
+
g(d(le), q(o, {
|
|
181
|
+
label: m.value,
|
|
182
|
+
"selected-option": d(h),
|
|
183
|
+
multi: K.value,
|
|
184
|
+
"cancel-all-selected-display": "",
|
|
185
|
+
"display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
|
|
186
|
+
onClear: Q
|
|
187
|
+
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
188
|
+
]),
|
|
189
|
+
"dropdown-conditions": f(() => [
|
|
190
|
+
G("div", ie, [
|
|
191
|
+
g(d(N), {
|
|
192
|
+
selected: d(n),
|
|
193
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => H(n) ? n.value = o : null),
|
|
194
|
+
options: r.conditionalOptions,
|
|
195
|
+
"option-name-key": "label",
|
|
196
|
+
"display-value": (o) => o?.label,
|
|
197
|
+
container: ".conditional-container",
|
|
198
|
+
size: "small"
|
|
199
|
+
}, {
|
|
200
|
+
"dropdown-trigger": f(({ buttonTriggerProps: o }) => [
|
|
201
|
+
g(d(oe), J(X(o)), null, 16)
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["selected", "options", "display-value"])
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
"inline-search": f(() => [
|
|
208
|
+
g(d(ae), {
|
|
209
|
+
modelValue: i.value,
|
|
210
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
|
|
211
|
+
class: "inline-search",
|
|
212
|
+
placeholder: "Search",
|
|
213
|
+
variant: "transparent",
|
|
214
|
+
size: "md",
|
|
215
|
+
"auto-focus": r.autoFocusSearch
|
|
216
|
+
}, null, 8, ["modelValue", "auto-focus"])
|
|
217
|
+
]),
|
|
218
|
+
"custom-list-area": f(() => [
|
|
219
|
+
!a.value.length && !p.value ? (D(), Y("div", ue, [
|
|
220
|
+
g(te, { variant: "body1" }, {
|
|
221
|
+
default: f(() => [
|
|
222
|
+
Z(_(d(F)), 1)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
})
|
|
226
|
+
])) : ee("", !0)
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type"]));
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
export {
|
|
233
|
+
Oe as default
|
|
234
|
+
};
|