@ironsource/shared-ui 2.1.11-rc.47 → 2.1.11-rc.49
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/Chart.vue_vue_type_style_index_0_scoped_277fde76_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_8f96cf5a_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +69 -66
- package/components/chart/index.d.ts +20 -1
- package/components/dropdown/common/Dropdown.common.js +36 -34
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +55 -40
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +20 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +136 -97
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +7 -7
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +86 -86
- package/components/dropdown/v4/index.d.ts +43 -1
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +78 -70
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v4/DataGrid.vue.d.ts +10 -5
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +173 -171
- package/components/table/v4/index.d.ts +39 -20
- package/index.d.ts +164 -42
- package/index.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +1 -0
- package/testids/index.js +13 -13
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-container[data-v-277fde76]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;height:388px;border-radius:0 0 6px 6px;width:100%}.header-wrapper[data-v-277fde76]{height:76px}.chart-content[data-v-277fde76]{width:100%}.chart-content.with-legend[data-v-277fde76]{width:calc(100% - 221px)}.chart-sidebar[data-v-277fde76]{border-left:1px solid var(--common-divider)}.chart[data-v-277fde76]{width:100%;height:312px;position:relative}.chart__canvas[data-v-277fde76]{width:100%;height:100%}.chart__tooltip[data-v-277fde76]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chip-trigger[data-v-e43ac1c9]{border:1px solid var(--default-outlined-border);padding:.3125rem .3125rem .3125rem .4375rem;border-radius:100px;cursor:pointer;user-select:none;display:inline-flex;max-width:250px}.chip-trigger[data-v-e43ac1c9]:hover{border-color:var(--action-active);background:var(--action-selected)}.chip-trigger.active[data-v-e43ac1c9]{border:none;background:var(--primary-light);padding:.375rem .375rem .375rem .5rem}.chip-trigger.active .chip-trigger--content[data-v-e43ac1c9]{color:var(--primary-contrast-text)}.chip-trigger.active[data-v-e43ac1c9]:hover{border:.0625rem solid var(--primary-main-50-p);padding:.3125rem .3125rem .3125rem .4375rem}.chip-trigger.open[data-v-e43ac1c9]{border:.125rem solid var(--action-active);padding:.25rem .25rem .25rem .375rem;background:var(--action-selected)}.chip-trigger.open.active[data-v-e43ac1c9]{border:.125rem solid var(--primary-main-50-p);background:var(--primary-light);padding:.25rem .25rem .25rem .375rem}.chip-trigger.disabled[data-v-e43ac1c9]{cursor:auto}.chip-trigger--content[data-v-e43ac1c9]{color:var(--text-primary);display:flex;width:100%}.chip-trigger--content .x-circle-wrapper[data-v-e43ac1c9]{margin-left:4px;color:var(--primary-dark)}.chip-trigger--content .x-circle-wrapper[data-v-e43ac1c9]:hover{color:var(--primary-darker)}.chip-trigger--text[data-v-e43ac1c9]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;width:100%}.chip-trigger--suffix[data-v-e43ac1c9]{white-space:nowrap}.chip-trigger--icon[data-v-e43ac1c9]{margin-left:4px;color:var(--action-active)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-8f96cf5a]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8f96cf5a]{width:100%}.contain-accept[data-v-8f96cf5a]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8f96cf5a]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8f96cf5a]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-26488faf]{position:sticky}.table-container[data-v-26488faf]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-26488faf]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-26488faf]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-26488faf]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-26488faf]{width:13.75rem}.table-header.isStickyHeader[data-v-26488faf]{z-index:calc(var(--7552e08c) + 3);top:0}.table-head-container[data-v-26488faf]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-26488faf]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-26488faf]{display:inline-table}.table-header-actions[data-v-26488faf]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-26488faf]{position:relative}.table-row.loading[data-v-26488faf]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-26488faf]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-26488faf]{border-bottom:none}.expanded-row[data-v-26488faf]{grid-column:var(--7f4c0eae);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-26488faf]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-26488faf]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-26488faf],table th[data-v-26488faf]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-26488faf]:first-of-type,table th[data-v-26488faf]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-26488faf]:last-of-type,table th[data-v-26488faf]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-26488faf],table th.expand-toggle-cell[data-v-26488faf]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-26488faf]{border-bottom:none;z-index:calc(var(--7552e08c) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-26488faf]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--b761a3b2)}table>thead>tr>th[data-v-26488faf]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-26488faf]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-26488faf]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-26488faf]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-26488faf]{cursor:pointer}table>thead.sticky[data-v-26488faf]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-26488faf]{z-index:calc(var(--7552e08c) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-26488faf]{display:block}table>tbody>*>tr[data-v-26488faf]{background-color:var(--background-default);min-height:var(--79122e22);height:auto;display:grid;align-items:center;grid-template-columns:var(--b761a3b2)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-26488faf]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-26488faf],table>tbody>*>tr.activeMenu>td[data-v-26488faf]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-26488faf]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--79122e22);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-26488faf]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-26488faf]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-26488faf]{justify-content:flex-end;text-align:right}.section-container[data-v-26488faf]{left:0}.sections[data-v-26488faf]{display:flex}.section[data-v-26488faf]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-26488faf]{width:100%}.empty-state[data-v-26488faf]{min-height:250px}.floating-row[data-v-26488faf]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--7552e08c) + 1)}.floating-row *[data-v-26488faf-s]{pointer-events:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-75002075],.v-leave-active[data-v-75002075]{transition:opacity .25s ease}ol[data-v-75002075],ul[data-v-75002075],menu[data-v-75002075]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-75002075],.dropdown.full-width .button__container[data-v-75002075]{width:100%}.dropdown-list-wrapper[data-v-75002075]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-75002075]{padding:.5rem}.list-container--multi[data-v-75002075]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-75002075]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-75002075]{width:100%}.inline-search .list-container[data-v-75002075]{padding-top:0}.no-result-container[data-v-75002075]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-75002075]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-75002075]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-75002075]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-75002075]{min-height:0;margin-bottom:0}.image-slot[data-v-75002075]{margin-right:.5rem}.actions-wrapper[data-v-75002075]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-75002075]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.child-options[data-v-b883d1fa]{padding-left:1rem}.tree-search[data-v-b883d1fa]{width:100%}
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
noDataSubtitle?: string;
|
|
20
20
|
withSettingsHeader?: boolean;
|
|
21
21
|
maxLimitTooltipText?: string;
|
|
22
|
+
withAnimation?: boolean;
|
|
22
23
|
}>, {
|
|
23
24
|
chartType: ChartType;
|
|
24
25
|
dataSets: () => any[];
|
|
@@ -40,6 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
41
|
withSettingsHeader: boolean;
|
|
41
42
|
withSubheaderTooltip: boolean;
|
|
42
43
|
maxLimitTooltipText: string;
|
|
44
|
+
withAnimation: boolean;
|
|
43
45
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
46
|
"update:chartType": (chartType: ChartType) => void;
|
|
45
47
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
@@ -63,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
65
|
noDataSubtitle?: string;
|
|
64
66
|
withSettingsHeader?: boolean;
|
|
65
67
|
maxLimitTooltipText?: string;
|
|
68
|
+
withAnimation?: boolean;
|
|
66
69
|
}>, {
|
|
67
70
|
chartType: ChartType;
|
|
68
71
|
dataSets: () => any[];
|
|
@@ -84,6 +87,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
84
87
|
withSettingsHeader: boolean;
|
|
85
88
|
withSubheaderTooltip: boolean;
|
|
86
89
|
maxLimitTooltipText: string;
|
|
90
|
+
withAnimation: boolean;
|
|
87
91
|
}>>> & {
|
|
88
92
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
89
93
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
@@ -107,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
107
111
|
noDataIcon: string;
|
|
108
112
|
noDataTitle: string;
|
|
109
113
|
noDataSubtitle: string;
|
|
114
|
+
withAnimation: boolean;
|
|
110
115
|
}>, {
|
|
111
116
|
metric?(_: {}): any;
|
|
112
117
|
breakdowns?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Chart.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-277fde76"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "../../Chart.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import { Chart as N, ArcElement as
|
|
4
|
-
import { HoverVerticalLine as
|
|
5
|
-
import { formatValue as H, calcStepSize as
|
|
6
|
-
import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; import { defineComponent as q, computed as l, ref as g, onMounted as J, watch as T, nextTick as Q, openBlock as d, createElementBlock as C, Fragment as O, createBlock as f, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Y, createVNode as F, normalizeStyle as _ } from "vue";
|
|
2
|
+
import { useVModel as ee } from "@vueuse/core";
|
|
3
|
+
import { Chart as N, ArcElement as te, LineElement as ae, BarElement as oe, PointElement as ie, LineController as le, BarController as re, PieController as ne, ScatterController as se, CategoryScale as de, LinearScale as ue, Filler as ce, Tooltip as pe } from "chart.js";
|
|
4
|
+
import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
|
|
5
|
+
import { formatValue as H, calcStepSize as he } from "./utils/utils.js";
|
|
6
|
+
import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as ve, DEFAULT_MAX_VISIBLE as ye, COLOR_PALETTE as be, POINT_BORDER_COLOR as ge, TICK_LABEL_COLOR as U, TICK_LABEL_FONT as P, GRID_LINE_COLOR as z } from "./consts.js";
|
|
7
7
|
import { ChartType as n } from "./types.js";
|
|
8
|
-
import { useTooltipPosition as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { hexColorToRgba as
|
|
13
|
-
import { useChartValues as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
8
|
+
import { useTooltipPosition as Te } from "./composables/useTooltipPosition.js";
|
|
9
|
+
import Ce from "./ChartTooltip.vue.js";
|
|
10
|
+
import ke from "./ChartLegend.vue.js";
|
|
11
|
+
import xe from "./ChartHeader.vue.js";
|
|
12
|
+
import { hexColorToRgba as Le } from "../../utils/color.js";
|
|
13
|
+
import { useChartValues as Se } from "./composables/useChartValues.js";
|
|
14
|
+
import we from "./ChartLoader.vue.js";
|
|
15
|
+
import Be from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
16
|
+
import Ie from "./SettingsHeader.vue.js";
|
|
17
|
+
const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve = { class: "chart" }, Re = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "chart-sidebar"
|
|
20
|
-
},
|
|
20
|
+
}, qe = /* @__PURE__ */ q({
|
|
21
21
|
__name: "Chart",
|
|
22
22
|
props: {
|
|
23
23
|
dataSets: { default: () => [] },
|
|
@@ -31,20 +31,20 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
31
31
|
subheader: { default: "" },
|
|
32
32
|
withSubheaderTooltip: { type: Boolean, default: !1 },
|
|
33
33
|
hideLegend: { type: Boolean, default: !1 },
|
|
34
|
-
minVisible: { default:
|
|
35
|
-
maxVisible: { default:
|
|
34
|
+
minVisible: { default: ve },
|
|
35
|
+
maxVisible: { default: ye },
|
|
36
36
|
loading: { type: Boolean, default: !1 },
|
|
37
37
|
noDataIcon: { default: "file-x" },
|
|
38
38
|
noDataTitle: { default: "No data to display" },
|
|
39
39
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
40
40
|
withSettingsHeader: { type: Boolean, default: !0 },
|
|
41
|
-
maxLimitTooltipText: { default: "" }
|
|
41
|
+
maxLimitTooltipText: { default: "" },
|
|
42
|
+
withAnimation: { type: Boolean, default: !0 }
|
|
42
43
|
},
|
|
43
44
|
emits: ["update:chartType", "update:visibleIds"],
|
|
44
45
|
setup(a, { emit: L }) {
|
|
45
46
|
const t = a;
|
|
46
47
|
N.register(
|
|
47
|
-
ee,
|
|
48
48
|
te,
|
|
49
49
|
ae,
|
|
50
50
|
oe,
|
|
@@ -56,30 +56,33 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
56
56
|
de,
|
|
57
57
|
ue,
|
|
58
58
|
ce,
|
|
59
|
-
pe
|
|
59
|
+
pe,
|
|
60
|
+
me
|
|
60
61
|
);
|
|
61
|
-
const c =
|
|
62
|
+
const c = ee(t, "chartType", L), M = l(
|
|
63
|
+
() => t.withAnimation ? "" : "none"
|
|
64
|
+
), m = g(null);
|
|
62
65
|
let s = null;
|
|
63
66
|
const S = l(() => t.dataSets.length === 0), w = l(() => !t.loading && !S.value), y = () => {
|
|
64
67
|
m.value && (s && s.destroy(), s = new N(m.value, I.value));
|
|
65
|
-
},
|
|
66
|
-
s && (s.data.datasets = b.value, s.options = I.value.options, s.update());
|
|
68
|
+
}, $ = () => {
|
|
69
|
+
s && (s.data.datasets = b.value, s.options = I.value.options, s.update(M.value));
|
|
67
70
|
};
|
|
68
|
-
|
|
69
|
-
e && (await
|
|
70
|
-
}), T([() => t.visibleIds, () => t.dataSets],
|
|
71
|
-
const
|
|
71
|
+
J(y), T(() => t.chartType, y), T(w, async (e) => {
|
|
72
|
+
e && (await Q(), y());
|
|
73
|
+
}), T([() => t.visibleIds, () => t.dataSets], $);
|
|
74
|
+
const h = l(
|
|
72
75
|
() => t.chartType === n.StackedLine || t.chartType === n.StackedBar
|
|
73
|
-
),
|
|
76
|
+
), K = l(
|
|
74
77
|
() => t.chartType === n.Line || t.chartType === n.StackedLine
|
|
75
78
|
), B = l(
|
|
76
79
|
() => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
|
|
77
80
|
), b = l(() => B.value.map((e, o) => {
|
|
78
|
-
const i = e.color ||
|
|
81
|
+
const i = e.color || be[o] || "#000000";
|
|
79
82
|
return {
|
|
80
83
|
...e,
|
|
81
|
-
fill:
|
|
82
|
-
backgroundColor:
|
|
84
|
+
fill: h.value ? "start" : void 0,
|
|
85
|
+
backgroundColor: Le(
|
|
83
86
|
i,
|
|
84
87
|
t.chartType === n.StackedLine ? 10 : 70
|
|
85
88
|
),
|
|
@@ -111,7 +114,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
111
114
|
plugins: {
|
|
112
115
|
legend: { display: !1 },
|
|
113
116
|
title: { display: !1 },
|
|
114
|
-
hoverVerticalLine:
|
|
117
|
+
hoverVerticalLine: K.value,
|
|
115
118
|
// tooltip
|
|
116
119
|
tooltip: {
|
|
117
120
|
enabled: !1,
|
|
@@ -121,7 +124,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
121
124
|
},
|
|
122
125
|
callbacks: {
|
|
123
126
|
footer: (e) => {
|
|
124
|
-
const o = e.reduce((i,
|
|
127
|
+
const o = e.reduce((i, j) => i + (j.parsed.y || 0), 0);
|
|
125
128
|
return ["Total", String(o)];
|
|
126
129
|
}
|
|
127
130
|
}
|
|
@@ -149,7 +152,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
149
152
|
borderWidth: 0,
|
|
150
153
|
hoverRadius: 4,
|
|
151
154
|
hoverBorderWidth: 2,
|
|
152
|
-
pointHoverBackgroundColor:
|
|
155
|
+
pointHoverBackgroundColor: ge
|
|
153
156
|
},
|
|
154
157
|
bar: {
|
|
155
158
|
borderRadius: 4
|
|
@@ -160,12 +163,12 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
160
163
|
x: {
|
|
161
164
|
beginAtZero: !0,
|
|
162
165
|
border: { display: !1 },
|
|
163
|
-
stacked:
|
|
166
|
+
stacked: h.value,
|
|
164
167
|
// stack on top of each other
|
|
165
168
|
// ticks
|
|
166
169
|
ticks: {
|
|
167
|
-
color:
|
|
168
|
-
font:
|
|
170
|
+
color: U,
|
|
171
|
+
font: P,
|
|
169
172
|
padding: 4,
|
|
170
173
|
callback: function(e) {
|
|
171
174
|
return H(
|
|
@@ -188,16 +191,16 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
188
191
|
beginAtZero: !0,
|
|
189
192
|
border: { display: !1 },
|
|
190
193
|
// hide left borderline
|
|
191
|
-
stacked:
|
|
194
|
+
stacked: h.value,
|
|
192
195
|
// stack on top of each other
|
|
193
196
|
// ticks
|
|
194
197
|
ticks: {
|
|
195
|
-
color:
|
|
196
|
-
font:
|
|
198
|
+
color: U,
|
|
199
|
+
font: P,
|
|
197
200
|
padding: 8,
|
|
198
|
-
stepSize:
|
|
199
|
-
min:
|
|
200
|
-
max:
|
|
201
|
+
stepSize: R.value,
|
|
202
|
+
min: V.value,
|
|
203
|
+
max: R.value * t.tickCount,
|
|
201
204
|
callback: (e) => H(e, t.yAxisFormat)
|
|
202
205
|
},
|
|
203
206
|
// grid lines
|
|
@@ -210,32 +213,32 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
})
|
|
213
|
-
),
|
|
216
|
+
), W = l(
|
|
214
217
|
() => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
|
|
215
|
-
),
|
|
218
|
+
), Z = l(() => t.dataSets.map((e) => ({
|
|
216
219
|
id: e.id,
|
|
217
220
|
label: e.label,
|
|
218
221
|
caption: e.caption || null,
|
|
219
|
-
color:
|
|
222
|
+
color: W.value[e.id] || null,
|
|
220
223
|
icon: e.icon || null,
|
|
221
224
|
iconType: e.iconType || "branded"
|
|
222
|
-
}))), A = g(null), r = g(null), { position: E } =
|
|
225
|
+
}))), A = g(null), r = g(null), { position: E } = Te(
|
|
223
226
|
m,
|
|
224
227
|
A,
|
|
225
228
|
r
|
|
226
|
-
),
|
|
229
|
+
), G = l(() => ({
|
|
227
230
|
left: `${E.value.left}px`,
|
|
228
231
|
top: `${E.value.top}px`,
|
|
229
232
|
opacity: r.value?.opacity || 0
|
|
230
|
-
})), { minValue:
|
|
233
|
+
})), { minValue: V, maxValue: X } = Se({
|
|
231
234
|
parsingConfig: t.parsing,
|
|
232
235
|
dataSets: B,
|
|
233
|
-
isStacked:
|
|
234
|
-
}),
|
|
235
|
-
() =>
|
|
236
|
+
isStacked: h
|
|
237
|
+
}), R = l(
|
|
238
|
+
() => he(V.value, X.value, t.tickCount)
|
|
236
239
|
);
|
|
237
240
|
return (e, o) => (d(), C(O, null, [
|
|
238
|
-
a.withSettingsHeader ? (d(),
|
|
241
|
+
a.withSettingsHeader ? (d(), f(Ie, {
|
|
239
242
|
key: 0,
|
|
240
243
|
"chart-type": u(c),
|
|
241
244
|
"onUpdate:chart-type": o[0] || (o[0] = (i) => D(c) ? c.value = i : null),
|
|
@@ -249,13 +252,13 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
249
252
|
]),
|
|
250
253
|
_: 3
|
|
251
254
|
}, 8, ["chart-type", "hide-legend"])) : v("", !0),
|
|
252
|
-
p("div",
|
|
255
|
+
p("div", Ae, [
|
|
253
256
|
u(w) ? (d(), C(O, { key: 0 }, [
|
|
254
257
|
p("section", {
|
|
255
|
-
class:
|
|
258
|
+
class: Y(["chart-content", [{ "with-legend": !a.hideLegend }]])
|
|
256
259
|
}, [
|
|
257
|
-
p("div",
|
|
258
|
-
F(
|
|
260
|
+
p("div", Ee, [
|
|
261
|
+
F(xe, {
|
|
259
262
|
"chart-type": u(c),
|
|
260
263
|
"onUpdate:chart-type": o[1] || (o[1] = (i) => D(c) ? c.value = i : null),
|
|
261
264
|
"with-settings-header": a.withSettingsHeader,
|
|
@@ -269,7 +272,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
269
272
|
_: 3
|
|
270
273
|
}, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
|
|
271
274
|
]),
|
|
272
|
-
p("div",
|
|
275
|
+
p("div", Ve, [
|
|
273
276
|
p("canvas", {
|
|
274
277
|
ref_key: "chartRef",
|
|
275
278
|
ref: m,
|
|
@@ -279,9 +282,9 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
279
282
|
ref_key: "tooltipRef",
|
|
280
283
|
ref: A,
|
|
281
284
|
class: "chart__tooltip",
|
|
282
|
-
style:
|
|
285
|
+
style: _(u(G))
|
|
283
286
|
}, [
|
|
284
|
-
r.value ? (d(),
|
|
287
|
+
r.value ? (d(), f(Ce, {
|
|
285
288
|
key: 0,
|
|
286
289
|
title: String(r.value.title),
|
|
287
290
|
"data-points": r.value.dataPoints,
|
|
@@ -294,14 +297,14 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
294
297
|
])
|
|
295
298
|
], 2),
|
|
296
299
|
a.hideLegend ? v("", !0) : (d(), C("section", Re, [
|
|
297
|
-
F(
|
|
298
|
-
items: u(
|
|
300
|
+
F(ke, {
|
|
301
|
+
items: u(Z),
|
|
299
302
|
"visible-ids": a.visibleIds,
|
|
300
303
|
"max-limit-tooltip-text": a.maxLimitTooltipText,
|
|
301
304
|
"onUpdate:visibleIds": o[2] || (o[2] = (i) => L("update:visibleIds", i))
|
|
302
305
|
}, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
|
|
303
306
|
]))
|
|
304
|
-
], 64)) : a.loading ? (d(),
|
|
307
|
+
], 64)) : a.loading ? (d(), f(we, { key: 1 })) : u(S) ? (d(), f(u(Be), {
|
|
305
308
|
key: 2,
|
|
306
309
|
title: a.noDataTitle,
|
|
307
310
|
subtitle: a.noDataSubtitle,
|
|
@@ -312,5 +315,5 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
312
315
|
}
|
|
313
316
|
});
|
|
314
317
|
export {
|
|
315
|
-
|
|
318
|
+
qe as default
|
|
316
319
|
};
|
|
@@ -23,6 +23,7 @@ declare const ChartTypes: () => ({
|
|
|
23
23
|
noDataIcon: string;
|
|
24
24
|
noDataTitle: string;
|
|
25
25
|
noDataSubtitle: string;
|
|
26
|
+
withAnimation: boolean;
|
|
26
27
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
27
28
|
header: {
|
|
28
29
|
type: import("vue").PropType<string>;
|
|
@@ -102,10 +103,14 @@ declare const ChartTypes: () => ({
|
|
|
102
103
|
type: import("vue").PropType<string>;
|
|
103
104
|
default: string;
|
|
104
105
|
};
|
|
106
|
+
withAnimation: {
|
|
107
|
+
type: import("vue").PropType<boolean>;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
105
110
|
}>> & {
|
|
106
111
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
107
112
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
108
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "xAxisFormat" | "yAxisFormat" | "parsing" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "chartType" | "withSettingsHeader" | "subheader" | "withSubheaderTooltip" | "dataSets" | "hideLegend" | "tickCount" | "noDataIcon" | "noDataTitle" | "noDataSubtitle">;
|
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "xAxisFormat" | "yAxisFormat" | "parsing" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "chartType" | "withSettingsHeader" | "subheader" | "withSubheaderTooltip" | "dataSets" | "hideLegend" | "tickCount" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation">;
|
|
109
114
|
$attrs: {
|
|
110
115
|
[x: string]: unknown;
|
|
111
116
|
};
|
|
@@ -198,6 +203,10 @@ declare const ChartTypes: () => ({
|
|
|
198
203
|
type: import("vue").PropType<string>;
|
|
199
204
|
default: string;
|
|
200
205
|
};
|
|
206
|
+
withAnimation: {
|
|
207
|
+
type: import("vue").PropType<boolean>;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
201
210
|
}>> & {
|
|
202
211
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
203
212
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -224,6 +233,7 @@ declare const ChartTypes: () => ({
|
|
|
224
233
|
noDataIcon: string;
|
|
225
234
|
noDataTitle: string;
|
|
226
235
|
noDataSubtitle: string;
|
|
236
|
+
withAnimation: boolean;
|
|
227
237
|
}, {}, string> & {
|
|
228
238
|
beforeCreate?: (() => void) | (() => void)[];
|
|
229
239
|
created?: (() => void) | (() => void)[];
|
|
@@ -323,6 +333,10 @@ declare const ChartTypes: () => ({
|
|
|
323
333
|
type: import("vue").PropType<string>;
|
|
324
334
|
default: string;
|
|
325
335
|
};
|
|
336
|
+
withAnimation: {
|
|
337
|
+
type: import("vue").PropType<boolean>;
|
|
338
|
+
default: boolean;
|
|
339
|
+
};
|
|
326
340
|
}>> & {
|
|
327
341
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
328
342
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -409,6 +423,10 @@ declare const ChartTypes: () => ({
|
|
|
409
423
|
type: import("vue").PropType<string>;
|
|
410
424
|
default: string;
|
|
411
425
|
};
|
|
426
|
+
withAnimation: {
|
|
427
|
+
type: import("vue").PropType<boolean>;
|
|
428
|
+
default: boolean;
|
|
429
|
+
};
|
|
412
430
|
}>> & {
|
|
413
431
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
414
432
|
"onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
|
|
@@ -435,6 +453,7 @@ declare const ChartTypes: () => ({
|
|
|
435
453
|
noDataIcon: string;
|
|
436
454
|
noDataTitle: string;
|
|
437
455
|
noDataSubtitle: string;
|
|
456
|
+
withAnimation: boolean;
|
|
438
457
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
439
458
|
$slots: {
|
|
440
459
|
metric?(_: {}): any;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useToggle as _e } from "../../../composables/useToggle.js";
|
|
2
2
|
import { inject as Ve, ref as r, computed as c, watch as b, useSlots as ke, toRaw as P, nextTick as K, provide as Ge, onMounted as Le } from "vue";
|
|
3
3
|
import { isObjectInArray as ae } from "../../../utils/array.js";
|
|
4
|
-
import { objectsEqual as
|
|
5
|
-
import { useClamp as
|
|
4
|
+
import { objectsEqual as Ue } from "../../../utils/object.js";
|
|
5
|
+
import { useClamp as Be, useVirtualList as He, onClickOutside as ne, useInfiniteScroll as qe } from "@vueuse/core";
|
|
6
6
|
import { Mode as T, Type as L, DropdownContext as Xe } from "./DropdownContext.js";
|
|
7
7
|
import { pxToRem as $e } from "../../../utils/style.js";
|
|
8
8
|
import { useEditableContext as je } from "../../table-cells/common/EditableContext.js";
|
|
9
9
|
import { useGroupedOptions as ze } from "./useGroupedOptions.js";
|
|
10
|
-
const tl = (l,
|
|
11
|
-
const
|
|
12
|
-
sortOutGroups:
|
|
10
|
+
const tl = (l, v, g) => {
|
|
11
|
+
const U = Ve("isTreeDropdown", !1), {
|
|
12
|
+
sortOutGroups: B,
|
|
13
13
|
flattenAndMarkGroupOptions: ue,
|
|
14
|
-
isGroup:
|
|
14
|
+
isGroup: H,
|
|
15
15
|
selectAllWithGroups: ie,
|
|
16
16
|
isIndeterminateGrouped: re,
|
|
17
17
|
allSelectedGrouped: q,
|
|
@@ -30,7 +30,7 @@ const tl = (l, f, g) => {
|
|
|
30
30
|
return R?.value?.value ?? a.value;
|
|
31
31
|
},
|
|
32
32
|
set(e) {
|
|
33
|
-
R.onChange?.(e), R.onClose?.(),
|
|
33
|
+
R.onChange?.(e), R.onClose?.(), v("update:selected", e);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
b(
|
|
@@ -56,9 +56,9 @@ const tl = (l, f, g) => {
|
|
|
56
56
|
return l.isOpen;
|
|
57
57
|
},
|
|
58
58
|
set(e) {
|
|
59
|
-
|
|
59
|
+
v("update:isOpen", e);
|
|
60
60
|
}
|
|
61
|
-
}), Oe = c(() => o.value.length - 1),
|
|
61
|
+
}), Oe = c(() => o.value.length - 1), f = Be(0, 0, Oe), Z = c(() => n.value ? l.displayValue(n.value) : ""), Se = (e) => {
|
|
62
62
|
if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
|
|
63
63
|
return l.placeholder;
|
|
64
64
|
const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
@@ -92,13 +92,13 @@ const tl = (l, f, g) => {
|
|
|
92
92
|
) > -1 : d.value.includes(i)) ? "selected" : "notSelected";
|
|
93
93
|
e[u].push(i);
|
|
94
94
|
});
|
|
95
|
-
const t = l.groupedOptions ?
|
|
95
|
+
const t = l.groupedOptions ? B(e.notSelected) : e.notSelected;
|
|
96
96
|
return [].concat(e.selected, t);
|
|
97
97
|
}), o = c(() => {
|
|
98
|
-
const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !
|
|
98
|
+
const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !U ? be.value : N.value;
|
|
99
99
|
if (l.onSearch) {
|
|
100
|
-
const t = e.filter((i) => l.groupedOptions &&
|
|
101
|
-
return l.groupedOptions ?
|
|
100
|
+
const t = e.filter((i) => l.groupedOptions && H(i) ? i : l.onSearch(i, h.value));
|
|
101
|
+
return l.groupedOptions ? B(t) : t;
|
|
102
102
|
} else
|
|
103
103
|
return e;
|
|
104
104
|
}), Pe = c(() => y.value[0]?.hasSubtitle), F = c(() => s.mode === T.Multi), p = c(
|
|
@@ -108,7 +108,7 @@ const tl = (l, f, g) => {
|
|
|
108
108
|
containerProps: V,
|
|
109
109
|
wrapperProps: Te,
|
|
110
110
|
scrollTo: C
|
|
111
|
-
} =
|
|
111
|
+
} = He(o, {
|
|
112
112
|
itemHeight: p.value,
|
|
113
113
|
overscan: l.disableVirtualScroll ? 1 / 0 : 2
|
|
114
114
|
});
|
|
@@ -120,20 +120,20 @@ const tl = (l, f, g) => {
|
|
|
120
120
|
), b([x], async () => {
|
|
121
121
|
await K();
|
|
122
122
|
}), b(
|
|
123
|
-
[O,
|
|
123
|
+
[O, f, x],
|
|
124
124
|
async ([e], [t]) => {
|
|
125
125
|
O.value && (await K(), x.value !== -1 && e !== t && setTimeout(() => {
|
|
126
126
|
l.multi && g.VERSION === 4 || C(x.value);
|
|
127
|
-
}),
|
|
128
|
-
C(
|
|
127
|
+
}), f.value && setTimeout(() => {
|
|
128
|
+
C(f.value);
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
131
|
), b(h, () => {
|
|
132
|
-
|
|
132
|
+
v("onsearch", h.value), C(0);
|
|
133
133
|
});
|
|
134
134
|
const A = (e, t = !1) => {
|
|
135
135
|
l.disabled || (Y(e), K(() => {
|
|
136
|
-
O.value &&
|
|
136
|
+
O.value && v("opened"), O.value || v("closed"), w.value && t && w.value.focus();
|
|
137
137
|
}));
|
|
138
138
|
};
|
|
139
139
|
b(O, (e) => {
|
|
@@ -158,12 +158,12 @@ const tl = (l, f, g) => {
|
|
|
158
158
|
}
|
|
159
159
|
a.value = o.value;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
v("selectAll");
|
|
162
162
|
}
|
|
163
163
|
}, Ie = () => {
|
|
164
164
|
we(), g.VERSION !== 4 && (n.value = a.value);
|
|
165
165
|
}, xe = (e = !0) => {
|
|
166
|
-
a.value = [], e && (n.value = [], d.value = []),
|
|
166
|
+
a.value = [], e && (n.value = [], d.value = []), v("clear");
|
|
167
167
|
}, k = (e, t) => {
|
|
168
168
|
if (e = P(e), g.VERSION === 4 ? e[l.disabledOptionKey] : y.value[t]?.disabled)
|
|
169
169
|
return;
|
|
@@ -181,14 +181,14 @@ const tl = (l, f, g) => {
|
|
|
181
181
|
if (ae(S, e) || l.comparingKey && S.findIndex(
|
|
182
182
|
(u) => u[l.comparingKey] === e[l.comparingKey]
|
|
183
183
|
) > -1) {
|
|
184
|
-
a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !
|
|
184
|
+
a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !Ue(u, e));
|
|
185
185
|
return;
|
|
186
186
|
} else {
|
|
187
187
|
a.value = [...S, e];
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
}, De = (e) => y.value[e]?.disabled, s = {
|
|
191
|
-
activeIndex:
|
|
191
|
+
activeIndex: f,
|
|
192
192
|
options: y,
|
|
193
193
|
selectedOption: n,
|
|
194
194
|
labelRef: j,
|
|
@@ -213,17 +213,17 @@ const tl = (l, f, g) => {
|
|
|
213
213
|
goToOption: async (e) => {
|
|
214
214
|
if (!O.value)
|
|
215
215
|
return;
|
|
216
|
-
let t =
|
|
216
|
+
let t = f.value + e;
|
|
217
217
|
const i = y.value.filter(
|
|
218
218
|
(u) => u.disabled
|
|
219
219
|
).length, S = o.value.length - i;
|
|
220
220
|
for (t > S && (t = S + 1); ; ) {
|
|
221
221
|
if (!y.value[t]?.disabled) {
|
|
222
|
-
E.value = o.value[t],
|
|
222
|
+
E.value = o.value[t], f.value = t;
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(
|
|
226
|
-
E.value = o.value[t],
|
|
225
|
+
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(f.value)) {
|
|
226
|
+
E.value = o.value[t], f.value = t;
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -260,13 +260,13 @@ const tl = (l, f, g) => {
|
|
|
260
260
|
Le(async () => {
|
|
261
261
|
l.autoFocus && (await K(), setTimeout(() => {
|
|
262
262
|
$.value.focus();
|
|
263
|
-
})), s.goToOption(0), l.multi && !
|
|
263
|
+
})), s.goToOption(0), l.multi && !U && (l.groupedOptions ? D.value = q(
|
|
264
264
|
o,
|
|
265
265
|
a
|
|
266
266
|
) : D.value = l.options.length === l.selected.length);
|
|
267
267
|
});
|
|
268
268
|
const le = () => {
|
|
269
|
-
l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())),
|
|
269
|
+
l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), v("apply", n.value), v("allSelectedChanged", M.value), A(!1), Me();
|
|
270
270
|
}, te = () => {
|
|
271
271
|
F.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), h.value = "", A(!1);
|
|
272
272
|
}, Ne = (e) => {
|
|
@@ -318,7 +318,7 @@ const tl = (l, f, g) => {
|
|
|
318
318
|
A(!0);
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
|
-
k(o.value[
|
|
321
|
+
k(o.value[f.value], f.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -337,10 +337,12 @@ const tl = (l, f, g) => {
|
|
|
337
337
|
return qe(
|
|
338
338
|
V.ref,
|
|
339
339
|
() => {
|
|
340
|
-
!l.loadMoreLoading && l.infiniteLoading &&
|
|
340
|
+
!l.loadMoreLoading && l.infiniteLoading && v("loadMore");
|
|
341
341
|
},
|
|
342
342
|
{ distance: l.infiniteScrollThreshold }
|
|
343
|
-
), {
|
|
343
|
+
), b(a, () => {
|
|
344
|
+
v("unsavedSelectionUpdate", a.value);
|
|
345
|
+
}), {
|
|
344
346
|
onKeydown: Ce,
|
|
345
347
|
location: fe,
|
|
346
348
|
open: O,
|
|
@@ -363,7 +365,7 @@ const tl = (l, f, g) => {
|
|
|
363
365
|
selectedOptionPrevious: d,
|
|
364
366
|
selectedValue: Z,
|
|
365
367
|
onSelect: k,
|
|
366
|
-
activeIndex:
|
|
368
|
+
activeIndex: f,
|
|
367
369
|
onCancel: te,
|
|
368
370
|
onApply: le,
|
|
369
371
|
scrollTo: C,
|
|
@@ -376,7 +378,7 @@ const tl = (l, f, g) => {
|
|
|
376
378
|
triggerRef: de,
|
|
377
379
|
clearAll: J,
|
|
378
380
|
onClearAllSelections: xe,
|
|
379
|
-
isGroup:
|
|
381
|
+
isGroup: H
|
|
380
382
|
};
|
|
381
383
|
};
|
|
382
384
|
export {
|