@ironsource/shared-ui 2.1.7-test.1 → 2.1.7-test.10
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/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/README.md +1 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +57 -45
- package/components/autocomplete/index.d.ts +20 -1
- package/components/chart/Chart.vue.js +7 -0
- package/components/chart/Chart.vue2.js +281 -0
- package/components/chart/ChartHeader.vue.js +7 -0
- package/components/chart/ChartHeader.vue2.js +51 -0
- package/components/chart/ChartLegend.vue.js +7 -0
- package/components/chart/ChartLegend.vue2.js +65 -0
- package/components/chart/ChartLoader.vue.js +25 -0
- package/components/chart/ChartLoader.vue2.js +0 -0
- package/components/chart/ChartTooltip.vue.js +7 -0
- package/components/chart/ChartTooltip.vue2.js +81 -0
- package/components/chart/composables/useChartValues.js +32 -0
- package/components/chart/composables/useTooltipPosition.js +22 -0
- package/components/chart/consts.js +21 -0
- package/components/chart/index.js +6 -0
- package/components/chart/plugins/HoverVerticalLine.js +12 -0
- package/components/chart/types.js +4 -0
- package/components/chart/utils/formatNumber.js +11 -0
- package/components/chart/utils/utils.js +12 -0
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +39 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +256 -224
- package/components/dropdown/v4/OptionV4.vue.d.ts +36 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +99 -59
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
- package/components/dropdown/v4/index.d.ts +528 -83
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +6 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +95 -90
- package/components/input/v4/index.d.ts +20 -1
- package/components/popover/common/Popover.common.d.ts +6 -0
- package/components/popover/common/Popover.common.js +17 -0
- package/components/popover/v3/Popover.vue.js +8 -0
- package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
- package/components/popover/v4/PopoverV4.vue.js +7 -0
- package/components/popover/v4/PopoverV4.vue2.js +54 -0
- package/components/popover/v4/index.d.ts +209 -0
- package/components/popover/v4/index.js +6 -0
- package/components/shared/FieldMaxLength.vue.js +3 -3
- package/components/shared/FieldMaxLength.vue2.js +2 -2
- package/components/shared/commonTypes.d.ts +2 -0
- package/components/sortableList/SortableItem.vue.js +7 -0
- package/components/sortableList/SortableItem.vue2.js +140 -0
- package/components/sortableList/SortableItemLabel.vue.js +7 -0
- package/components/sortableList/SortableItemLabel.vue2.js +60 -0
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +7 -0
- package/components/sortableList/SortableList.vue2.js +160 -0
- package/components/sortableList/composables/useHoverEffect.js +19 -0
- package/components/sortableList/consts.js +4 -0
- package/components/sortableList/index.d.ts +88 -2
- package/components/sortableList/index.js +6 -0
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +4 -4
- package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
- package/components/table/v4/index.d.ts +101 -75
- package/components/table-cells/common/Editable.common.js +37 -26
- 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 +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
- package/components/textArea/v4/index.d.ts +9 -0
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +9608 -7356
- package/index.js +136 -131
- package/mocks/options.d.ts +12 -0
- package/package.json +15 -3
- package/testids/index.d.ts +5 -0
- package/testids/index.js +27 -25
- package/utils/search.js +4 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
- package/components/popover/Popover.vue.js +0 -8
- /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
- /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/popover/{index.js → v3/index.js} +0 -0
|
@@ -13,6 +13,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
endIconKey?: string;
|
|
14
14
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
15
15
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
16
|
+
treeMainOption?: boolean;
|
|
17
|
+
treeMainOptionExpanded?: boolean;
|
|
18
|
+
stopOptionClickEventPropagation?: boolean;
|
|
19
|
+
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
20
|
+
optionTwoLinesKey?: string;
|
|
21
|
+
treeChildShown?: boolean;
|
|
16
22
|
}>, {
|
|
17
23
|
subtitle: string;
|
|
18
24
|
disabled: boolean;
|
|
@@ -27,7 +33,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
33
|
endIconKey: any;
|
|
28
34
|
endIconType: string;
|
|
29
35
|
toolTipPlacement: string;
|
|
30
|
-
|
|
36
|
+
treeMainOption: boolean;
|
|
37
|
+
treeMainOptionExpanded: boolean;
|
|
38
|
+
stopOptionClickEventPropagation: boolean;
|
|
39
|
+
optionTwoLinesVariant: any;
|
|
40
|
+
optionTwoLinesKey: any;
|
|
41
|
+
treeChildShown: boolean;
|
|
42
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
toggleTreeCollapse: (option: unknown) => void;
|
|
44
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
31
45
|
option?: unknown;
|
|
32
46
|
subtitle?: string;
|
|
33
47
|
disabled?: boolean;
|
|
@@ -42,6 +56,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
56
|
endIconKey?: string;
|
|
43
57
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
44
58
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
59
|
+
treeMainOption?: boolean;
|
|
60
|
+
treeMainOptionExpanded?: boolean;
|
|
61
|
+
stopOptionClickEventPropagation?: boolean;
|
|
62
|
+
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
63
|
+
optionTwoLinesKey?: string;
|
|
64
|
+
treeChildShown?: boolean;
|
|
45
65
|
}>, {
|
|
46
66
|
subtitle: string;
|
|
47
67
|
disabled: boolean;
|
|
@@ -56,11 +76,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
76
|
endIconKey: any;
|
|
57
77
|
endIconType: string;
|
|
58
78
|
toolTipPlacement: string;
|
|
59
|
-
|
|
79
|
+
treeMainOption: boolean;
|
|
80
|
+
treeMainOptionExpanded: boolean;
|
|
81
|
+
stopOptionClickEventPropagation: boolean;
|
|
82
|
+
optionTwoLinesVariant: any;
|
|
83
|
+
optionTwoLinesKey: any;
|
|
84
|
+
treeChildShown: boolean;
|
|
85
|
+
}>>> & {
|
|
86
|
+
onToggleTreeCollapse?: (option: unknown) => any;
|
|
87
|
+
}, {
|
|
60
88
|
option: any;
|
|
61
89
|
disabled: boolean;
|
|
62
90
|
active: boolean;
|
|
63
91
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
92
|
+
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
93
|
+
optionTwoLinesKey: string;
|
|
64
94
|
isIndeterminate: boolean;
|
|
65
95
|
subtitle: string;
|
|
66
96
|
selectAllOption: boolean;
|
|
@@ -70,6 +100,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
100
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
71
101
|
endIconKey: string;
|
|
72
102
|
toolTipPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
103
|
+
treeMainOption: boolean;
|
|
104
|
+
treeMainOptionExpanded: boolean;
|
|
105
|
+
stopOptionClickEventPropagation: boolean;
|
|
106
|
+
treeChildShown: boolean;
|
|
73
107
|
}>, {
|
|
74
108
|
image?(_: {}): any;
|
|
75
109
|
"icon-start"?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-77509f61"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css"; import { defineComponent as V, ref as x, watch as M, openBlock as i, createBlock as g, unref as o, withCtx as u, createElementVNode as s, normalizeClass as m, createCommentVNode as n, createElementBlock as l, renderSlot as f, createVNode as c, toDisplayString as k, createTextVNode as b, withModifiers as K } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import S from "../../typography/Text.vue.js";
|
|
4
|
+
import L from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import y from "../../icon/v4/IconV4.vue.js";
|
|
6
6
|
import "../../icon/v4/IconFlag.vue.js";
|
|
7
|
-
import { NOOP as
|
|
8
|
-
import { optionCommon as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { isElementTruncated as
|
|
12
|
-
|
|
7
|
+
import { NOOP as N } from "@vue/shared";
|
|
8
|
+
import { optionCommon as j } from "../common/Option.common.js";
|
|
9
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
10
|
+
import R from "../../tooltip/v4/TooltipV4.vue.js";
|
|
11
|
+
import { isElementTruncated as A } from "../../../utils/text.js";
|
|
12
|
+
import { promiseTimeout as D } from "@vueuse/core";
|
|
13
|
+
const q = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "image"
|
|
15
|
-
},
|
|
16
|
+
}, F = ["src"], G = {
|
|
16
17
|
key: 2,
|
|
17
18
|
class: "start-icon"
|
|
18
|
-
},
|
|
19
|
+
}, H = { class: "main-text" }, J = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "caption-text"
|
|
22
|
+
}, Q = {
|
|
19
23
|
key: 3,
|
|
20
24
|
class: "end-icon"
|
|
21
|
-
},
|
|
25
|
+
}, U = ["onClick"], W = { key: 0 }, ce = /* @__PURE__ */ V({
|
|
22
26
|
__name: "OptionV4",
|
|
23
27
|
props: {
|
|
24
28
|
option: { default: null },
|
|
@@ -34,109 +38,145 @@ const R = {
|
|
|
34
38
|
iconType: { default: "regular" },
|
|
35
39
|
endIconKey: { default: null },
|
|
36
40
|
endIconType: { default: "regular" },
|
|
37
|
-
toolTipPlacement: { default: "right" }
|
|
41
|
+
toolTipPlacement: { default: "right" },
|
|
42
|
+
treeMainOption: { type: Boolean, default: !1 },
|
|
43
|
+
treeMainOptionExpanded: { type: Boolean, default: !1 },
|
|
44
|
+
stopOptionClickEventPropagation: { type: Boolean, default: !1 },
|
|
45
|
+
optionTwoLinesVariant: { default: void 0 },
|
|
46
|
+
optionTwoLinesKey: { default: void 0 },
|
|
47
|
+
treeChildShown: { type: Boolean, default: !1 }
|
|
38
48
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
emits: ["toggleTreeCollapse"],
|
|
50
|
+
setup(e, { emit: I }) {
|
|
51
|
+
const a = e, { selected: p, isMulti: T, id: B, onClick: O, api: v } = j(a), $ = (t) => {
|
|
52
|
+
a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? N() : O(t);
|
|
53
|
+
}, d = x(null), h = x(!1);
|
|
54
|
+
M([() => a.treeChildShown, d], async () => {
|
|
55
|
+
await D(100), h.value = d.value && A(d.value);
|
|
56
|
+
});
|
|
57
|
+
const z = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : h.value ? t[a.nameKey] : "", E = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, P = () => {
|
|
58
|
+
I("toggleTreeCollapse", a.option);
|
|
59
|
+
};
|
|
60
|
+
return (t, r) => (i(), g(o(R), {
|
|
61
|
+
text: z(e.option),
|
|
62
|
+
"test-id": E(e.option),
|
|
46
63
|
placement: e.toolTipPlacement,
|
|
47
64
|
class: "tooltip-option"
|
|
48
65
|
}, {
|
|
49
|
-
default:
|
|
66
|
+
default: u(() => [
|
|
50
67
|
s("div", {
|
|
51
68
|
ref: "el",
|
|
52
|
-
class:
|
|
69
|
+
class: m(["item-container", {
|
|
53
70
|
"item-container--disabled": e.disabled,
|
|
54
71
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
55
|
-
"item-container--selected":
|
|
56
|
-
"item-container--multi":
|
|
72
|
+
"item-container--selected": o(p),
|
|
73
|
+
"item-container--multi": o(T)
|
|
57
74
|
}])
|
|
58
75
|
}, [
|
|
59
76
|
s("div", {
|
|
60
|
-
class:
|
|
61
|
-
"item--multi":
|
|
77
|
+
class: m(["item", {
|
|
78
|
+
"item--multi": o(T),
|
|
62
79
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
63
80
|
}])
|
|
64
81
|
}, [
|
|
65
|
-
|
|
82
|
+
o(T) ? (i(), g(o(L), {
|
|
66
83
|
key: 0,
|
|
67
|
-
id:
|
|
84
|
+
id: o(B).toString(),
|
|
68
85
|
tabindex: "-1",
|
|
69
86
|
class: "checkbox",
|
|
70
|
-
"is-checked":
|
|
87
|
+
"is-checked": o(p),
|
|
71
88
|
"is-indeterminate": e.isIndeterminate,
|
|
72
|
-
onClick:
|
|
73
|
-
}, null, 8, ["id", "is-checked", "is-indeterminate"])) :
|
|
74
|
-
t.$slots.image || e.imageKey ? (
|
|
75
|
-
|
|
76
|
-
e.imageKey ? (
|
|
89
|
+
onClick: r[0] || (r[0] = (C) => $(C))
|
|
90
|
+
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : n("", !0),
|
|
91
|
+
t.$slots.image || e.imageKey ? (i(), l("div", q, [
|
|
92
|
+
f(t.$slots, "image", {}, () => [
|
|
93
|
+
e.imageKey ? (i(), l("img", {
|
|
77
94
|
key: 0,
|
|
78
95
|
src: e.option[e.imageKey]
|
|
79
|
-
}, null, 8,
|
|
96
|
+
}, null, 8, F)) : n("", !0)
|
|
80
97
|
], !0)
|
|
81
|
-
])) :
|
|
82
|
-
t.$slots["icon-start"] || e.iconKey ? (
|
|
83
|
-
|
|
84
|
-
|
|
98
|
+
])) : n("", !0),
|
|
99
|
+
t.$slots["icon-start"] || e.iconKey ? (i(), l("div", G, [
|
|
100
|
+
f(t.$slots, "icon-start", {}, () => [
|
|
101
|
+
c(o(y), {
|
|
85
102
|
type: e.iconType,
|
|
86
103
|
name: e.option[e.iconKey],
|
|
87
104
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
88
105
|
}, null, 8, ["type", "name", "size"])
|
|
89
106
|
], !0)
|
|
90
|
-
])) :
|
|
107
|
+
])) : n("", !0),
|
|
91
108
|
s("div", {
|
|
92
109
|
ref_key: "textContainerRef",
|
|
93
|
-
ref:
|
|
110
|
+
ref: d,
|
|
94
111
|
class: "text-container"
|
|
95
112
|
}, [
|
|
96
|
-
|
|
113
|
+
c(o(w), {
|
|
97
114
|
class: "option-text",
|
|
98
115
|
variant: "body2"
|
|
99
116
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
102
|
-
|
|
117
|
+
default: u(() => [
|
|
118
|
+
f(t.$slots, "default", {}, () => [
|
|
119
|
+
s("div", {
|
|
120
|
+
class: m(`option-content-${e.optionTwoLinesVariant || "horizontal"}`)
|
|
121
|
+
}, [
|
|
122
|
+
s("div", H, k(e.option[e.nameKey]), 1),
|
|
123
|
+
e.optionTwoLinesKey ? (i(), l("div", J, [
|
|
124
|
+
c(o(w), { variant: "caption" }, {
|
|
125
|
+
default: u(() => [
|
|
126
|
+
b(k(e.option[e.optionTwoLinesKey]), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
])) : n("", !0)
|
|
131
|
+
], 2)
|
|
103
132
|
], !0)
|
|
104
133
|
]),
|
|
105
134
|
_: 3
|
|
106
135
|
}),
|
|
107
|
-
e.subtitle ? (
|
|
136
|
+
e.subtitle ? (i(), g(o(S), {
|
|
108
137
|
key: 0,
|
|
109
138
|
class: "subtitle",
|
|
110
139
|
size: "xs"
|
|
111
140
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
141
|
+
default: u(() => [
|
|
142
|
+
b(k(e.subtitle), 1)
|
|
114
143
|
]),
|
|
115
144
|
_: 1
|
|
116
|
-
})) :
|
|
145
|
+
})) : n("", !0)
|
|
117
146
|
], 512),
|
|
118
|
-
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (
|
|
119
|
-
|
|
120
|
-
|
|
147
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), l("div", Q, [
|
|
148
|
+
f(t.$slots, "icon-end", {}, () => [
|
|
149
|
+
c(o(y), {
|
|
121
150
|
type: e.endIconType,
|
|
122
151
|
name: e.option[e.endIconKey],
|
|
123
152
|
size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
|
|
124
153
|
}, null, 8, ["type", "name", "size"])
|
|
125
154
|
], !0)
|
|
126
|
-
])) :
|
|
155
|
+
])) : n("", !0),
|
|
156
|
+
e.treeMainOption ? (i(), l("div", {
|
|
157
|
+
key: 4,
|
|
158
|
+
class: "tree-main-arrow-wrapper",
|
|
159
|
+
onClick: K(P, ["stop"])
|
|
160
|
+
}, [
|
|
161
|
+
c(o(y), {
|
|
162
|
+
name: "caret-down",
|
|
163
|
+
size: "16px",
|
|
164
|
+
class: m(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
165
|
+
}, null, 8, ["class"])
|
|
166
|
+
], 8, U)) : n("", !0)
|
|
127
167
|
], 2),
|
|
128
|
-
|
|
168
|
+
o(v).clearable && o(p) ? (i(), l("div", W, [
|
|
129
169
|
s("button", {
|
|
130
170
|
class: "clear-button",
|
|
131
|
-
onClick:
|
|
171
|
+
onClick: r[1] || (r[1] = K((C) => o(v).clearSelection(), ["prevent", "stop"]))
|
|
132
172
|
}, [
|
|
133
|
-
|
|
173
|
+
c(o(y), {
|
|
134
174
|
name: "close",
|
|
135
175
|
width: "8",
|
|
136
176
|
height: "8"
|
|
137
177
|
})
|
|
138
178
|
])
|
|
139
|
-
])) :
|
|
179
|
+
])) : n("", !0)
|
|
140
180
|
], 2)
|
|
141
181
|
]),
|
|
142
182
|
_: 3
|
|
@@ -144,5 +184,5 @@ const R = {
|
|
|
144
184
|
}
|
|
145
185
|
});
|
|
146
186
|
export {
|
|
147
|
-
|
|
187
|
+
ce as default
|
|
148
188
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
options: unknown[];
|
|
4
3
|
selected?: unknown[];
|
|
5
4
|
isOpen?: boolean;
|
|
6
5
|
placeholder?: string;
|
|
7
6
|
inlineSearchPlaceholder?: string;
|
|
8
|
-
size?:
|
|
7
|
+
size?: "small" | "medium" | "large";
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
testId?: string;
|
|
11
10
|
displayValue: (option: unknown) => string;
|
|
12
11
|
optionNameKey?: string;
|
|
13
12
|
optionIconKey?: string;
|
|
14
13
|
optionImageKey?: string;
|
|
15
|
-
optionIconType?:
|
|
14
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
16
15
|
optionEndIconKey?: string;
|
|
17
|
-
optionEndIconType?:
|
|
16
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
18
17
|
valueToCopy?: string;
|
|
19
18
|
disabledOptionKey?: string;
|
|
20
|
-
optionChildrenKey
|
|
19
|
+
optionChildrenKey: string;
|
|
20
|
+
optionUniqueIdKey: string;
|
|
21
21
|
}>, {
|
|
22
22
|
selected: any;
|
|
23
23
|
placeholder: string;
|
|
@@ -33,7 +33,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
33
|
optionEndIconType: any;
|
|
34
34
|
valueToCopy: any;
|
|
35
35
|
disabledOptionKey: string;
|
|
36
|
-
optionChildrenKey: string;
|
|
37
36
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
37
|
"update:selected": (value: unknown) => void;
|
|
39
38
|
"update:isOpen": (value: unknown) => void;
|
|
@@ -43,19 +42,20 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
42
|
isOpen?: boolean;
|
|
44
43
|
placeholder?: string;
|
|
45
44
|
inlineSearchPlaceholder?: string;
|
|
46
|
-
size?:
|
|
45
|
+
size?: "small" | "medium" | "large";
|
|
47
46
|
disabled?: boolean;
|
|
48
47
|
testId?: string;
|
|
49
48
|
displayValue: (option: unknown) => string;
|
|
50
49
|
optionNameKey?: string;
|
|
51
50
|
optionIconKey?: string;
|
|
52
51
|
optionImageKey?: string;
|
|
53
|
-
optionIconType?:
|
|
52
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
54
53
|
optionEndIconKey?: string;
|
|
55
|
-
optionEndIconType?:
|
|
54
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
56
55
|
valueToCopy?: string;
|
|
57
56
|
disabledOptionKey?: string;
|
|
58
|
-
optionChildrenKey
|
|
57
|
+
optionChildrenKey: string;
|
|
58
|
+
optionUniqueIdKey: string;
|
|
59
59
|
}>, {
|
|
60
60
|
selected: any;
|
|
61
61
|
placeholder: string;
|
|
@@ -71,13 +71,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
71
71
|
optionEndIconType: any;
|
|
72
72
|
valueToCopy: any;
|
|
73
73
|
disabledOptionKey: string;
|
|
74
|
-
optionChildrenKey: string;
|
|
75
74
|
}>>> & {
|
|
76
75
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
77
76
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
78
77
|
}, {
|
|
79
78
|
disabled: boolean;
|
|
80
|
-
size:
|
|
79
|
+
size: "small" | "medium" | "large";
|
|
81
80
|
testId: string;
|
|
82
81
|
selected: unknown[];
|
|
83
82
|
placeholder: string;
|
|
@@ -85,12 +84,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
85
84
|
optionNameKey: string;
|
|
86
85
|
optionIconKey: string;
|
|
87
86
|
optionImageKey: string;
|
|
88
|
-
optionIconType:
|
|
87
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
89
88
|
optionEndIconKey: string;
|
|
90
|
-
optionEndIconType:
|
|
89
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
91
90
|
valueToCopy: string;
|
|
92
91
|
disabledOptionKey: string;
|
|
93
|
-
|
|
92
|
+
}>, {
|
|
93
|
+
"trigger-end-icon"?(_: {}): any;
|
|
94
94
|
}>;
|
|
95
95
|
export default _default;
|
|
96
96
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -110,3 +110,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
110
110
|
type __VLS_Prettify<T> = {
|
|
111
111
|
[K in keyof T]: T[K];
|
|
112
112
|
} & {};
|
|
113
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
114
|
+
new (): {
|
|
115
|
+
$slots: S;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TreeDropdown.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TreeDropdown.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-dbd80d49"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|