@ironsource/shared-ui 2.1.11-rc.51 → 2.1.11-rc.53
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_026d82c5_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css +1 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +110 -105
- package/components/chart/mockData.d.ts +8 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +102 -90
- package/components/dropdown/v4/index.d.ts +11 -0
- package/index.d.ts +22 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-container[data-v-026d82c5]{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-026d82c5]{height:76px}.chart-content[data-v-026d82c5]{width:100%}.chart-content.with-legend[data-v-026d82c5]{width:calc(100% - 221px)}.chart-sidebar[data-v-026d82c5]{border-left:1px solid var(--common-divider)}.chart[data-v-026d82c5]{width:100%;height:312px;position:relative}.chart__canvas[data-v-026d82c5]{width:100%;height:100%}.chart__tooltip[data-v-026d82c5]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-03022bc9]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-03022bc9]{width:100%}.contain-accept[data-v-03022bc9]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-03022bc9]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-03022bc9]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Chart.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-026d82c5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "../../Chart.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import { Chart as
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css"; import { defineComponent as J, computed as i, ref as T, onMounted as Q, watch as C, nextTick as Y, openBlock as d, createElementBlock as k, Fragment as F, createBlock as v, unref as u, isRef as N, withCtx as x, renderSlot as L, createCommentVNode as y, createElementVNode as p, normalizeClass as _, createVNode as H, normalizeStyle as ee } from "vue";
|
|
2
|
+
import { useVModel as te } from "@vueuse/core";
|
|
3
|
+
import { Chart as P, ArcElement as ae, LineElement as oe, BarElement as ie, PointElement as le, LineController as re, BarController as ne, PieController as se, ScatterController as de, CategoryScale as ue, LinearScale as ce, Filler as pe, Tooltip as he } from "chart.js";
|
|
4
4
|
import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
|
|
5
|
-
import { formatValue as
|
|
6
|
-
import { DEFAULT_TICK_COUNT as
|
|
5
|
+
import { formatValue as U, calcStepSize as fe } from "./utils/utils.js";
|
|
6
|
+
import { DEFAULT_TICK_COUNT as ve, DEFAULT_MIN_VISIBLE as ye, DEFAULT_MAX_VISIBLE as be, COLOR_PALETTE as ge, POINT_BORDER_COLOR as Te, TICK_LABEL_COLOR as z, TICK_LABEL_FONT as M, GRID_LINE_COLOR as $ } 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 Ce } from "./composables/useTooltipPosition.js";
|
|
9
|
+
import ke from "./ChartTooltip.vue.js";
|
|
10
|
+
import xe from "./ChartLegend.vue.js";
|
|
11
|
+
import Le from "./ChartHeader.vue.js";
|
|
12
|
+
import { hexColorToRgba as Se } from "../../utils/color.js";
|
|
13
|
+
import { useChartValues as we } from "./composables/useChartValues.js";
|
|
14
|
+
import Be from "./ChartLoader.vue.js";
|
|
15
|
+
import Ie from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
16
|
+
import Ae from "./SettingsHeader.vue.js";
|
|
17
|
+
const Ee = { class: "chart-container" }, Ve = { class: "header-wrapper" }, Re = { class: "chart" }, De = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "chart-sidebar"
|
|
20
|
-
},
|
|
20
|
+
}, Je = /* @__PURE__ */ J({
|
|
21
21
|
__name: "Chart",
|
|
22
22
|
props: {
|
|
23
23
|
dataSets: { default: () => [] },
|
|
@@ -26,13 +26,13 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
26
26
|
parsing: { default: void 0 },
|
|
27
27
|
xAxisFormat: { default: "string" },
|
|
28
28
|
yAxisFormat: { default: "number" },
|
|
29
|
-
tickCount: { default:
|
|
29
|
+
tickCount: { default: ve },
|
|
30
30
|
header: { default: "" },
|
|
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: ye },
|
|
35
|
+
maxVisible: { default: be },
|
|
36
36
|
loading: { type: Boolean, default: !1 },
|
|
37
37
|
noDataIcon: { default: "file-x" },
|
|
38
38
|
noDataTitle: { default: "No data to display" },
|
|
@@ -42,10 +42,9 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
42
42
|
withAnimation: { type: Boolean, default: !0 }
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:chartType", "update:visibleIds"],
|
|
45
|
-
setup(a, { emit:
|
|
45
|
+
setup(a, { emit: S }) {
|
|
46
46
|
const t = a;
|
|
47
|
-
|
|
48
|
-
te,
|
|
47
|
+
P.register(
|
|
49
48
|
ae,
|
|
50
49
|
oe,
|
|
51
50
|
ie,
|
|
@@ -57,50 +56,55 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
57
56
|
ue,
|
|
58
57
|
ce,
|
|
59
58
|
pe,
|
|
59
|
+
he,
|
|
60
60
|
me
|
|
61
61
|
);
|
|
62
|
-
const c =
|
|
62
|
+
const c = te(t, "chartType", S), K = i(
|
|
63
63
|
() => t.withAnimation ? "" : "none"
|
|
64
|
-
),
|
|
64
|
+
), h = T(null);
|
|
65
65
|
let s = null;
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
s && (s.data.datasets =
|
|
66
|
+
const w = i(() => t.dataSets.length === 0), B = i(() => !t.loading && !w.value), b = () => {
|
|
67
|
+
h.value && (s && s.destroy(), s = new P(h.value, E.value));
|
|
68
|
+
}, W = () => {
|
|
69
|
+
s && (s.data.datasets = g.value, s.options = E.value.options, s.update(K.value));
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
e && (await
|
|
73
|
-
}),
|
|
74
|
-
const
|
|
71
|
+
Q(b), C(() => t.chartType, b), C(B, async (e) => {
|
|
72
|
+
e && (await Y(), b());
|
|
73
|
+
}), C([() => t.visibleIds, () => t.dataSets], W);
|
|
74
|
+
const m = i(
|
|
75
75
|
() => t.chartType === n.StackedLine || t.chartType === n.StackedBar
|
|
76
|
-
),
|
|
76
|
+
), I = i(
|
|
77
77
|
() => t.chartType === n.Line || t.chartType === n.StackedLine
|
|
78
|
-
),
|
|
78
|
+
), f = i(
|
|
79
79
|
() => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
|
|
80
|
-
),
|
|
81
|
-
const
|
|
80
|
+
), g = i(() => f.value.map((e, o) => {
|
|
81
|
+
const l = e.color || ge[o] || "#000000";
|
|
82
82
|
return {
|
|
83
83
|
...e,
|
|
84
|
-
fill:
|
|
85
|
-
backgroundColor:
|
|
86
|
-
|
|
84
|
+
fill: m.value ? "start" : void 0,
|
|
85
|
+
backgroundColor: Se(
|
|
86
|
+
l,
|
|
87
87
|
t.chartType === n.StackedLine ? 10 : 70
|
|
88
88
|
),
|
|
89
|
-
borderColor:
|
|
90
|
-
pointBackgroundColor:
|
|
91
|
-
pointHoverBorderColor:
|
|
89
|
+
borderColor: l,
|
|
90
|
+
pointBackgroundColor: l,
|
|
91
|
+
pointHoverBorderColor: l,
|
|
92
92
|
maxBarThickness: 50,
|
|
93
93
|
clip: 5,
|
|
94
94
|
// draw a bit outside the chart area
|
|
95
95
|
icon: e.icon || null,
|
|
96
96
|
iconType: e.iconType || "branded"
|
|
97
97
|
};
|
|
98
|
-
})),
|
|
98
|
+
})), A = i(
|
|
99
|
+
() => f.value.length && f.value.every(
|
|
100
|
+
(e) => e.data.length === 1
|
|
101
|
+
)
|
|
102
|
+
), E = i(
|
|
99
103
|
() => ({
|
|
100
104
|
type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
|
|
101
105
|
// Chart Data
|
|
102
106
|
data: {
|
|
103
|
-
datasets:
|
|
107
|
+
datasets: g.value
|
|
104
108
|
},
|
|
105
109
|
// Chart Options
|
|
106
110
|
options: {
|
|
@@ -114,7 +118,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
114
118
|
plugins: {
|
|
115
119
|
legend: { display: !1 },
|
|
116
120
|
title: { display: !1 },
|
|
117
|
-
hoverVerticalLine:
|
|
121
|
+
hoverVerticalLine: I.value,
|
|
118
122
|
// tooltip
|
|
119
123
|
tooltip: {
|
|
120
124
|
enabled: !1,
|
|
@@ -124,7 +128,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
124
128
|
},
|
|
125
129
|
callbacks: {
|
|
126
130
|
footer: (e) => {
|
|
127
|
-
const o = e.reduce((
|
|
131
|
+
const o = e.reduce((l, q) => l + (q.parsed.y || 0), 0);
|
|
128
132
|
return ["Total", String(o)];
|
|
129
133
|
}
|
|
130
134
|
}
|
|
@@ -147,12 +151,12 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
147
151
|
tension: 0.3
|
|
148
152
|
},
|
|
149
153
|
point: {
|
|
150
|
-
radius: 1,
|
|
154
|
+
radius: A.value ? 3 : 1,
|
|
151
155
|
hitRadius: 8,
|
|
152
156
|
borderWidth: 0,
|
|
153
157
|
hoverRadius: 4,
|
|
154
158
|
hoverBorderWidth: 2,
|
|
155
|
-
pointHoverBackgroundColor:
|
|
159
|
+
pointHoverBackgroundColor: Te
|
|
156
160
|
},
|
|
157
161
|
bar: {
|
|
158
162
|
borderRadius: 4
|
|
@@ -162,16 +166,17 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
162
166
|
// Horizontal Axis (X)
|
|
163
167
|
x: {
|
|
164
168
|
beginAtZero: !0,
|
|
169
|
+
offset: !I.value || A.value,
|
|
165
170
|
border: { display: !1 },
|
|
166
|
-
stacked:
|
|
171
|
+
stacked: m.value,
|
|
167
172
|
// stack on top of each other
|
|
168
173
|
// ticks
|
|
169
174
|
ticks: {
|
|
170
|
-
color:
|
|
171
|
-
font:
|
|
175
|
+
color: z,
|
|
176
|
+
font: M,
|
|
172
177
|
padding: 4,
|
|
173
178
|
callback: function(e) {
|
|
174
|
-
return
|
|
179
|
+
return U(
|
|
175
180
|
this.getLabelForValue(e),
|
|
176
181
|
t.xAxisFormat
|
|
177
182
|
);
|
|
@@ -179,7 +184,7 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
179
184
|
},
|
|
180
185
|
// grid lines
|
|
181
186
|
grid: {
|
|
182
|
-
color:
|
|
187
|
+
color: $,
|
|
183
188
|
drawOnChartArea: !1,
|
|
184
189
|
drawTicks: !0,
|
|
185
190
|
drawBorder: !1,
|
|
@@ -191,21 +196,21 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
191
196
|
beginAtZero: !0,
|
|
192
197
|
border: { display: !1 },
|
|
193
198
|
// hide left borderline
|
|
194
|
-
stacked:
|
|
199
|
+
stacked: m.value,
|
|
195
200
|
// stack on top of each other
|
|
196
201
|
// ticks
|
|
197
202
|
ticks: {
|
|
198
|
-
color:
|
|
199
|
-
font:
|
|
203
|
+
color: z,
|
|
204
|
+
font: M,
|
|
200
205
|
padding: 8,
|
|
201
|
-
stepSize:
|
|
202
|
-
min:
|
|
203
|
-
max:
|
|
204
|
-
callback: (e) =>
|
|
206
|
+
stepSize: O.value,
|
|
207
|
+
min: D.value,
|
|
208
|
+
max: O.value * t.tickCount,
|
|
209
|
+
callback: (e) => U(e, t.yAxisFormat)
|
|
205
210
|
},
|
|
206
211
|
// grid lines
|
|
207
212
|
grid: {
|
|
208
|
-
color:
|
|
213
|
+
color: $,
|
|
209
214
|
drawOnChartArea: !0,
|
|
210
215
|
drawTicks: !1
|
|
211
216
|
}
|
|
@@ -213,78 +218,78 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
213
218
|
}
|
|
214
219
|
}
|
|
215
220
|
})
|
|
216
|
-
),
|
|
217
|
-
() =>
|
|
218
|
-
),
|
|
221
|
+
), Z = i(
|
|
222
|
+
() => g.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
|
|
223
|
+
), G = i(() => t.dataSets.map((e) => ({
|
|
219
224
|
id: e.id,
|
|
220
225
|
label: e.label,
|
|
221
226
|
caption: e.caption || null,
|
|
222
|
-
color:
|
|
227
|
+
color: Z.value[e.id] || null,
|
|
223
228
|
icon: e.icon || null,
|
|
224
229
|
iconType: e.iconType || "branded"
|
|
225
|
-
}))),
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
}))), V = T(null), r = T(null), { position: R } = Ce(
|
|
231
|
+
h,
|
|
232
|
+
V,
|
|
228
233
|
r
|
|
229
|
-
),
|
|
230
|
-
left: `${
|
|
231
|
-
top: `${
|
|
234
|
+
), X = i(() => ({
|
|
235
|
+
left: `${R.value.left}px`,
|
|
236
|
+
top: `${R.value.top}px`,
|
|
232
237
|
opacity: r.value?.opacity || 0
|
|
233
|
-
})), { minValue:
|
|
238
|
+
})), { minValue: D, maxValue: j } = we({
|
|
234
239
|
parsingConfig: t.parsing,
|
|
235
|
-
dataSets:
|
|
236
|
-
isStacked:
|
|
237
|
-
}),
|
|
238
|
-
() =>
|
|
240
|
+
dataSets: f,
|
|
241
|
+
isStacked: m
|
|
242
|
+
}), O = i(
|
|
243
|
+
() => fe(D.value, j.value, t.tickCount)
|
|
239
244
|
);
|
|
240
|
-
return (e, o) => (d(),
|
|
241
|
-
a.withSettingsHeader ? (d(),
|
|
245
|
+
return (e, o) => (d(), k(F, null, [
|
|
246
|
+
a.withSettingsHeader ? (d(), v(Ae, {
|
|
242
247
|
key: 0,
|
|
243
248
|
"chart-type": u(c),
|
|
244
|
-
"onUpdate:chart-type": o[0] || (o[0] = (
|
|
249
|
+
"onUpdate:chart-type": o[0] || (o[0] = (l) => N(c) ? c.value = l : null),
|
|
245
250
|
"hide-legend": a.hideLegend
|
|
246
251
|
}, {
|
|
247
|
-
metric:
|
|
248
|
-
|
|
252
|
+
metric: x(() => [
|
|
253
|
+
L(e.$slots, "metric", {}, void 0, !0)
|
|
249
254
|
]),
|
|
250
|
-
breakdowns:
|
|
251
|
-
|
|
255
|
+
breakdowns: x(() => [
|
|
256
|
+
L(e.$slots, "breakdowns", {}, void 0, !0)
|
|
252
257
|
]),
|
|
253
258
|
_: 3
|
|
254
|
-
}, 8, ["chart-type", "hide-legend"])) :
|
|
255
|
-
p("div",
|
|
256
|
-
u(
|
|
259
|
+
}, 8, ["chart-type", "hide-legend"])) : y("", !0),
|
|
260
|
+
p("div", Ee, [
|
|
261
|
+
u(B) ? (d(), k(F, { key: 0 }, [
|
|
257
262
|
p("section", {
|
|
258
|
-
class:
|
|
263
|
+
class: _(["chart-content", [{ "with-legend": !a.hideLegend }]])
|
|
259
264
|
}, [
|
|
260
|
-
p("div",
|
|
261
|
-
|
|
265
|
+
p("div", Ve, [
|
|
266
|
+
H(Le, {
|
|
262
267
|
"chart-type": u(c),
|
|
263
|
-
"onUpdate:chart-type": o[1] || (o[1] = (
|
|
268
|
+
"onUpdate:chart-type": o[1] || (o[1] = (l) => N(c) ? c.value = l : null),
|
|
264
269
|
"with-settings-header": a.withSettingsHeader,
|
|
265
270
|
header: a.header,
|
|
266
271
|
subheader: a.subheader,
|
|
267
272
|
"with-subheader-tooltip": a.withSubheaderTooltip
|
|
268
273
|
}, {
|
|
269
|
-
"subheader-tooltip":
|
|
270
|
-
|
|
274
|
+
"subheader-tooltip": x(() => [
|
|
275
|
+
L(e.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
271
276
|
]),
|
|
272
277
|
_: 3
|
|
273
278
|
}, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
|
|
274
279
|
]),
|
|
275
|
-
p("div",
|
|
280
|
+
p("div", Re, [
|
|
276
281
|
p("canvas", {
|
|
277
282
|
ref_key: "chartRef",
|
|
278
|
-
ref:
|
|
283
|
+
ref: h,
|
|
279
284
|
class: "chart__canvas"
|
|
280
285
|
}, null, 512),
|
|
281
286
|
p("div", {
|
|
282
287
|
ref_key: "tooltipRef",
|
|
283
|
-
ref:
|
|
288
|
+
ref: V,
|
|
284
289
|
class: "chart__tooltip",
|
|
285
|
-
style:
|
|
290
|
+
style: ee(u(X))
|
|
286
291
|
}, [
|
|
287
|
-
r.value ? (d(),
|
|
292
|
+
r.value ? (d(), v(ke, {
|
|
288
293
|
key: 0,
|
|
289
294
|
title: String(r.value.title),
|
|
290
295
|
"data-points": r.value.dataPoints,
|
|
@@ -292,28 +297,28 @@ const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve =
|
|
|
292
297
|
"y-axis-format": a.yAxisFormat,
|
|
293
298
|
"total-label": r.value.footer[0],
|
|
294
299
|
"total-value": Number(r.value.footer[1])
|
|
295
|
-
}, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) :
|
|
300
|
+
}, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : y("", !0)
|
|
296
301
|
], 4)
|
|
297
302
|
])
|
|
298
303
|
], 2),
|
|
299
|
-
a.hideLegend ?
|
|
300
|
-
|
|
301
|
-
items: u(
|
|
304
|
+
a.hideLegend ? y("", !0) : (d(), k("section", De, [
|
|
305
|
+
H(xe, {
|
|
306
|
+
items: u(G),
|
|
302
307
|
"visible-ids": a.visibleIds,
|
|
303
308
|
"max-limit-tooltip-text": a.maxLimitTooltipText,
|
|
304
|
-
"onUpdate:visibleIds": o[2] || (o[2] = (
|
|
309
|
+
"onUpdate:visibleIds": o[2] || (o[2] = (l) => S("update:visibleIds", l))
|
|
305
310
|
}, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
|
|
306
311
|
]))
|
|
307
|
-
], 64)) : a.loading ? (d(),
|
|
312
|
+
], 64)) : a.loading ? (d(), v(Be, { key: 1 })) : u(w) ? (d(), v(u(Ie), {
|
|
308
313
|
key: 2,
|
|
309
314
|
title: a.noDataTitle,
|
|
310
315
|
subtitle: a.noDataSubtitle,
|
|
311
316
|
"icon-name": a.noDataIcon
|
|
312
|
-
}, null, 8, ["title", "subtitle", "icon-name"])) :
|
|
317
|
+
}, null, 8, ["title", "subtitle", "icon-name"])) : y("", !0)
|
|
313
318
|
])
|
|
314
319
|
], 64));
|
|
315
320
|
}
|
|
316
321
|
});
|
|
317
322
|
export {
|
|
318
|
-
|
|
323
|
+
Je as default
|
|
319
324
|
};
|
|
@@ -34,4 +34,12 @@ export declare const MULTIPLE_DATASETS_DATE: ({
|
|
|
34
34
|
value: number;
|
|
35
35
|
}[];
|
|
36
36
|
})[];
|
|
37
|
+
export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
data: {
|
|
41
|
+
date: string;
|
|
42
|
+
value: number;
|
|
43
|
+
}[];
|
|
44
|
+
}[];
|
|
37
45
|
export declare const generateMockData: (numSeries?: number) => any[];
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
optionIconKey?: string;
|
|
26
26
|
optionImageKey?: string;
|
|
27
27
|
optionIconType?: IconTypes;
|
|
28
|
+
loadingOverride?: boolean;
|
|
28
29
|
}>, {
|
|
29
30
|
label: string;
|
|
30
31
|
testId: string;
|
|
@@ -42,10 +43,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
42
43
|
optionIconKey: string;
|
|
43
44
|
optionImageKey: string;
|
|
44
45
|
optionIconType: any;
|
|
46
|
+
loadingOverride: boolean;
|
|
45
47
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
48
|
"update:selectedCondition": (value: SelectedCondition) => void;
|
|
47
49
|
"update:appliedSelections": (value: unknown) => void;
|
|
48
50
|
clear: () => void;
|
|
51
|
+
closed: () => void;
|
|
49
52
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
50
53
|
selectedCondition: SelectedCondition | null;
|
|
51
54
|
appliedSelections: unknown | unknown[];
|
|
@@ -67,6 +70,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
70
|
optionIconKey?: string;
|
|
68
71
|
optionImageKey?: string;
|
|
69
72
|
optionIconType?: IconTypes;
|
|
73
|
+
loadingOverride?: boolean;
|
|
70
74
|
}>, {
|
|
71
75
|
label: string;
|
|
72
76
|
testId: string;
|
|
@@ -84,8 +88,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
84
88
|
optionIconKey: string;
|
|
85
89
|
optionImageKey: string;
|
|
86
90
|
optionIconType: any;
|
|
91
|
+
loadingOverride: boolean;
|
|
87
92
|
}>>> & {
|
|
88
93
|
onClear?: () => any;
|
|
94
|
+
onClosed?: () => any;
|
|
89
95
|
"onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
|
|
90
96
|
"onUpdate:appliedSelections"?: (value: unknown) => any;
|
|
91
97
|
}, {
|
|
@@ -105,6 +111,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
105
111
|
loadMoreFn: () => Promise<any[]>;
|
|
106
112
|
fetchDataDebounceTime: number;
|
|
107
113
|
autoFocusSearch: boolean;
|
|
114
|
+
loadingOverride: boolean;
|
|
108
115
|
}>;
|
|
109
116
|
export default _default;
|
|
110
117
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ConditionalDropdown.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ConditionalDropdown.
|
|
4
|
-
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-03022bc9"]]);
|
|
5
5
|
export {
|
|
6
6
|
n as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as k, onMounted as q, openBlock as L, createBlock as G, unref as d, withCtx as f, createVNode as y, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
|
|
2
2
|
import N from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import ae from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import te from "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
12
|
+
import ne from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import ie from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as ue } from "@vueuse/core";
|
|
15
|
+
const re = { class: "conditional-container" }, se = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
},
|
|
18
|
+
}, Ke = /* @__PURE__ */ W({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -37,49 +37,51 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
37
37
|
optionFlagKey: { default: "" },
|
|
38
38
|
optionIconKey: { default: "" },
|
|
39
39
|
optionImageKey: { default: "" },
|
|
40
|
-
optionIconType: { default: null }
|
|
40
|
+
optionIconType: { default: null },
|
|
41
|
+
loadingOverride: { type: Boolean, default: !1 }
|
|
41
42
|
},
|
|
42
|
-
emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
|
|
43
|
-
setup(
|
|
44
|
-
const e =
|
|
43
|
+
emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
|
|
44
|
+
setup(u, { emit: h }) {
|
|
45
|
+
const e = u, S = O({
|
|
45
46
|
get: () => e.appliedSelections,
|
|
46
47
|
set: (l) => {
|
|
47
|
-
|
|
48
|
+
h("update:appliedSelections", l);
|
|
48
49
|
}
|
|
49
|
-
}), n =
|
|
50
|
+
}), n = O({
|
|
50
51
|
get: () => e.selectedCondition || e.conditionalOptions[0],
|
|
51
52
|
set: (l) => {
|
|
52
|
-
|
|
53
|
+
h("update:selectedCondition", l);
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
}), F = () => {
|
|
56
|
+
const { appliedSelections: l } = e;
|
|
57
|
+
return l ? Array.isArray(l) ? l : [l] : [];
|
|
58
|
+
}, w = s(null), c = s(!0), a = s([]), r = s(F()), K = s(!0), p = s(!1), C = s(!1), i = s(e.searchQuery), B = s(""), m = s(e.label), T = s([]), U = O(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), I = O(() => {
|
|
57
59
|
const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
58
60
|
if (e.groupedOptions) {
|
|
59
61
|
let o = 0;
|
|
60
|
-
return a.value.forEach((
|
|
61
|
-
|
|
62
|
+
return a.value.forEach((g) => {
|
|
63
|
+
g.options && (o = o + g.options.length);
|
|
62
64
|
}), o > 4 ? o : l;
|
|
63
65
|
}
|
|
64
66
|
return t > l ? t : l;
|
|
65
|
-
}),
|
|
66
|
-
if (e.infiniteLoading && n.value.multi && Array.isArray(
|
|
67
|
-
const o = [],
|
|
67
|
+
}), M = (l, t) => {
|
|
68
|
+
if (e.infiniteLoading && n.value.multi && Array.isArray(r.value) && r.value.length && l && t.length) {
|
|
69
|
+
const o = [], g = r.value.filter(
|
|
68
70
|
(v) => v[e.optionNameKey].includes(l)
|
|
69
71
|
);
|
|
70
72
|
return t.forEach((v) => {
|
|
71
|
-
|
|
72
|
-
(
|
|
73
|
+
g.find(
|
|
74
|
+
(j) => j[e.comparingKey] === v[e.comparingKey]
|
|
73
75
|
) && o.push(v[e.comparingKey]);
|
|
74
|
-
}),
|
|
76
|
+
}), g.filter(
|
|
75
77
|
(v) => !o.includes(v[e.comparingKey])
|
|
76
78
|
);
|
|
77
79
|
}
|
|
78
80
|
return [];
|
|
79
|
-
},
|
|
81
|
+
}, A = async (l) => {
|
|
80
82
|
try {
|
|
81
83
|
p.value = !0;
|
|
82
|
-
const t = await e.fetchFnCallback(l), o =
|
|
84
|
+
const t = await e.fetchFnCallback(l), o = M(
|
|
83
85
|
l,
|
|
84
86
|
t
|
|
85
87
|
);
|
|
@@ -87,21 +89,21 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
87
89
|
} catch (t) {
|
|
88
90
|
p.value = !1, console.error("Error fetching data:", t);
|
|
89
91
|
}
|
|
90
|
-
},
|
|
92
|
+
}, E = async () => {
|
|
91
93
|
if (e.infiniteLoading)
|
|
92
94
|
try {
|
|
93
|
-
|
|
95
|
+
C.value = !0;
|
|
94
96
|
const l = await e.loadMoreFn();
|
|
95
|
-
|
|
97
|
+
C.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
|
|
96
98
|
} catch (l) {
|
|
97
|
-
|
|
99
|
+
C.value = !1, console.error("Error fetching data:", l);
|
|
98
100
|
}
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
+
}, V = ue(
|
|
102
|
+
A,
|
|
101
103
|
e.fetchDataDebounceTime
|
|
102
104
|
), b = (l) => {
|
|
103
|
-
l.length >= e.minCharsToStart ? (
|
|
104
|
-
},
|
|
105
|
+
l.length >= e.minCharsToStart ? (V(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
|
|
106
|
+
}, x = () => {
|
|
105
107
|
i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
106
108
|
name: i.value,
|
|
107
109
|
conditionalOptions: !0,
|
|
@@ -116,119 +118,129 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
116
118
|
},
|
|
117
119
|
...a.value
|
|
118
120
|
] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
|
|
119
|
-
},
|
|
120
|
-
c.value &&
|
|
121
|
+
}, D = () => {
|
|
122
|
+
c.value && r.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
|
|
121
123
|
};
|
|
122
|
-
|
|
124
|
+
k(i, () => {
|
|
123
125
|
b(i.value);
|
|
124
|
-
}),
|
|
125
|
-
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
}), k([n, a], () => {
|
|
127
|
+
x();
|
|
128
|
+
}), k(
|
|
129
|
+
() => e.loadingOverride,
|
|
130
|
+
(l, t) => {
|
|
131
|
+
!l && t && !e.infiniteLoading && A(e.searchQuery);
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
const P = () => {
|
|
135
|
+
c.value && r.value.length === 0 ? (n.value = null, S.value = [], n.value = null) : (B.value = i.value, S.value = c.value ? [...r.value] : { ...r.value }, K.value = c.value), D();
|
|
129
136
|
};
|
|
130
|
-
|
|
131
|
-
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (
|
|
137
|
+
k(n, (l, t) => {
|
|
138
|
+
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (r.value = e.appliedSelections), setTimeout(() => {
|
|
132
139
|
p.value = !1, c.value = !0;
|
|
133
140
|
}, 100)) : setTimeout(() => {
|
|
134
141
|
c.value = !1;
|
|
135
142
|
}, 100);
|
|
136
143
|
});
|
|
137
|
-
const
|
|
144
|
+
const Q = (l) => {
|
|
138
145
|
T.value = l;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
l && n.value.multi && e.infiniteLoading &&
|
|
146
|
+
}, R = () => {
|
|
147
|
+
r.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
|
|
148
|
+
}, z = (l) => {
|
|
149
|
+
l && n.value.multi && e.infiniteLoading && r.value && (a.value = r.value, i.value && b(i.value));
|
|
150
|
+
};
|
|
151
|
+
q(() => {
|
|
152
|
+
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), D();
|
|
153
|
+
});
|
|
154
|
+
const $ = () => {
|
|
155
|
+
h("closed");
|
|
143
156
|
};
|
|
144
|
-
return
|
|
145
|
-
(e.searchQuery || !e.infiniteLoading) && b(e.searchQuery), A();
|
|
146
|
-
}), (l, t) => (D(), W(d(N), {
|
|
157
|
+
return (l, t) => (L(), G(d(N), {
|
|
147
158
|
ref_key: "dropdownRef",
|
|
148
159
|
ref: w,
|
|
149
|
-
selected:
|
|
150
|
-
"onUpdate:selected": t[2] || (t[2] = (o) =>
|
|
160
|
+
selected: r.value,
|
|
161
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => r.value = o),
|
|
151
162
|
"predefined-trigger": "chip",
|
|
152
|
-
"display-value": (o) => o?.[
|
|
163
|
+
"display-value": (o) => o?.[u.optionNameKey],
|
|
153
164
|
multi: c.value,
|
|
154
165
|
options: a.value,
|
|
155
166
|
placeholder: m.value,
|
|
156
167
|
"search-placeholder": "Search",
|
|
157
|
-
"option-name-key":
|
|
168
|
+
"option-name-key": u.optionNameKey,
|
|
158
169
|
"with-conditions": "",
|
|
159
170
|
"inline-search": "",
|
|
160
|
-
"custom-number-of-displayed-options": d(
|
|
171
|
+
"custom-number-of-displayed-options": d(I),
|
|
161
172
|
"options-list-width": "330px",
|
|
162
|
-
loading: p.value,
|
|
163
|
-
"load-more-loading":
|
|
164
|
-
"comparing-key":
|
|
165
|
-
"is-open":
|
|
166
|
-
"infinite-loading":
|
|
167
|
-
"show-select-all": !
|
|
168
|
-
"grouped-options":
|
|
169
|
-
"option-flag-key":
|
|
170
|
-
"option-image-key":
|
|
171
|
-
"option-icon-key":
|
|
172
|
-
"option-icon-type":
|
|
173
|
-
"onUpdate:isOpen":
|
|
173
|
+
loading: p.value || u.loadingOverride,
|
|
174
|
+
"load-more-loading": C.value,
|
|
175
|
+
"comparing-key": u.comparingKey,
|
|
176
|
+
"is-open": u.isOpen,
|
|
177
|
+
"infinite-loading": u.infiniteLoading,
|
|
178
|
+
"show-select-all": !u.infiniteLoading && !i.value,
|
|
179
|
+
"grouped-options": u.groupedOptions,
|
|
180
|
+
"option-flag-key": u.optionFlagKey,
|
|
181
|
+
"option-image-key": u.optionImageKey,
|
|
182
|
+
"option-icon-key": u.optionIconKey,
|
|
183
|
+
"option-icon-type": u.optionIconType,
|
|
184
|
+
"onUpdate:isOpen": z,
|
|
174
185
|
onOnsearch: b,
|
|
175
|
-
onApply:
|
|
176
|
-
onLoadMore:
|
|
177
|
-
onUnsavedSelectionUpdate:
|
|
186
|
+
onApply: P,
|
|
187
|
+
onLoadMore: E,
|
|
188
|
+
onUnsavedSelectionUpdate: Q,
|
|
189
|
+
onClosed: $
|
|
178
190
|
}, {
|
|
179
191
|
"dropdown-trigger": f(({ defaultTriggerProps: o }) => [
|
|
180
|
-
|
|
192
|
+
y(d(ae), H(o, {
|
|
181
193
|
label: m.value,
|
|
182
|
-
"selected-option": d(
|
|
194
|
+
"selected-option": d(S),
|
|
183
195
|
multi: K.value,
|
|
184
196
|
"cancel-all-selected-display": "",
|
|
185
|
-
"display-value-in-quotes": !Array.isArray(
|
|
186
|
-
onClear:
|
|
197
|
+
"display-value-in-quotes": !Array.isArray(r.value) && r.value.conditionalOptions,
|
|
198
|
+
onClear: R
|
|
187
199
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
188
200
|
]),
|
|
189
201
|
"dropdown-conditions": f(() => [
|
|
190
|
-
|
|
191
|
-
|
|
202
|
+
J("div", re, [
|
|
203
|
+
y(d(N), {
|
|
192
204
|
selected: d(n),
|
|
193
|
-
"onUpdate:selected": t[0] || (t[0] = (o) =>
|
|
194
|
-
options:
|
|
205
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => X(n) ? n.value = o : null),
|
|
206
|
+
options: u.conditionalOptions,
|
|
195
207
|
"option-name-key": "label",
|
|
196
208
|
"display-value": (o) => o?.label,
|
|
197
209
|
container: ".conditional-container",
|
|
198
210
|
size: "small"
|
|
199
211
|
}, {
|
|
200
212
|
"dropdown-trigger": f(({ buttonTriggerProps: o }) => [
|
|
201
|
-
|
|
213
|
+
y(d(te), Y(Z(o)), null, 16)
|
|
202
214
|
]),
|
|
203
215
|
_: 1
|
|
204
216
|
}, 8, ["selected", "options", "display-value"])
|
|
205
217
|
])
|
|
206
218
|
]),
|
|
207
219
|
"inline-search": f(() => [
|
|
208
|
-
|
|
220
|
+
y(d(ne), {
|
|
209
221
|
modelValue: i.value,
|
|
210
222
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
|
|
211
223
|
class: "inline-search",
|
|
212
224
|
placeholder: "Search",
|
|
213
225
|
variant: "transparent",
|
|
214
226
|
size: "md",
|
|
215
|
-
"auto-focus":
|
|
227
|
+
"auto-focus": u.autoFocusSearch
|
|
216
228
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
217
229
|
]),
|
|
218
230
|
"custom-list-area": f(() => [
|
|
219
|
-
!a.value.length && !p.value ? (
|
|
220
|
-
|
|
231
|
+
!a.value.length && !p.value ? (L(), _("div", se, [
|
|
232
|
+
y(ie, { variant: "body1" }, {
|
|
221
233
|
default: f(() => [
|
|
222
|
-
|
|
234
|
+
ee(le(d(U)), 1)
|
|
223
235
|
]),
|
|
224
236
|
_: 1
|
|
225
237
|
})
|
|
226
|
-
])) :
|
|
238
|
+
])) : oe("", !0)
|
|
227
239
|
]),
|
|
228
240
|
_: 1
|
|
229
241
|
}, 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
242
|
}
|
|
231
243
|
});
|
|
232
244
|
export {
|
|
233
|
-
|
|
245
|
+
Ke as default
|
|
234
246
|
};
|
|
@@ -3651,6 +3651,10 @@ declare const DropdownTypes: () => (({
|
|
|
3651
3651
|
type: import("vue").PropType<boolean>;
|
|
3652
3652
|
default: boolean;
|
|
3653
3653
|
};
|
|
3654
|
+
loadingOverride: {
|
|
3655
|
+
type: import("vue").PropType<boolean>;
|
|
3656
|
+
default: boolean;
|
|
3657
|
+
};
|
|
3654
3658
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3655
3659
|
"update:selectedCondition": (value: {
|
|
3656
3660
|
label: string;
|
|
@@ -3659,6 +3663,7 @@ declare const DropdownTypes: () => (({
|
|
|
3659
3663
|
}) => void;
|
|
3660
3664
|
"update:appliedSelections": (value: unknown) => void;
|
|
3661
3665
|
clear: () => void;
|
|
3666
|
+
closed: () => void;
|
|
3662
3667
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3663
3668
|
label: {
|
|
3664
3669
|
type: import("vue").PropType<string>;
|
|
@@ -3751,8 +3756,13 @@ declare const DropdownTypes: () => (({
|
|
|
3751
3756
|
type: import("vue").PropType<boolean>;
|
|
3752
3757
|
default: boolean;
|
|
3753
3758
|
};
|
|
3759
|
+
loadingOverride: {
|
|
3760
|
+
type: import("vue").PropType<boolean>;
|
|
3761
|
+
default: boolean;
|
|
3762
|
+
};
|
|
3754
3763
|
}>> & {
|
|
3755
3764
|
onClear?: () => any;
|
|
3765
|
+
onClosed?: () => any;
|
|
3756
3766
|
"onUpdate:selectedCondition"?: (value: {
|
|
3757
3767
|
label: string;
|
|
3758
3768
|
value: string;
|
|
@@ -3776,5 +3786,6 @@ declare const DropdownTypes: () => (({
|
|
|
3776
3786
|
loadMoreFn: () => Promise<any[]>;
|
|
3777
3787
|
fetchDataDebounceTime: number;
|
|
3778
3788
|
autoFocusSearch: boolean;
|
|
3789
|
+
loadingOverride: boolean;
|
|
3779
3790
|
}>)[];
|
|
3780
3791
|
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, TreeDropdown, ConditionalDropdown, };
|
package/index.d.ts
CHANGED
|
@@ -22817,6 +22817,10 @@ declare const _default: {
|
|
|
22817
22817
|
type: import("vue").PropType<boolean>;
|
|
22818
22818
|
default: boolean;
|
|
22819
22819
|
};
|
|
22820
|
+
loadingOverride: {
|
|
22821
|
+
type: import("vue").PropType<boolean>;
|
|
22822
|
+
default: boolean;
|
|
22823
|
+
};
|
|
22820
22824
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22821
22825
|
"update:selectedCondition": (value: {
|
|
22822
22826
|
label: string;
|
|
@@ -22825,6 +22829,7 @@ declare const _default: {
|
|
|
22825
22829
|
}) => void;
|
|
22826
22830
|
"update:appliedSelections": (value: unknown) => void;
|
|
22827
22831
|
clear: () => void;
|
|
22832
|
+
closed: () => void;
|
|
22828
22833
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22829
22834
|
label: {
|
|
22830
22835
|
type: import("vue").PropType<string>;
|
|
@@ -22917,8 +22922,13 @@ declare const _default: {
|
|
|
22917
22922
|
type: import("vue").PropType<boolean>;
|
|
22918
22923
|
default: boolean;
|
|
22919
22924
|
};
|
|
22925
|
+
loadingOverride: {
|
|
22926
|
+
type: import("vue").PropType<boolean>;
|
|
22927
|
+
default: boolean;
|
|
22928
|
+
};
|
|
22920
22929
|
}>> & {
|
|
22921
22930
|
onClear?: () => any;
|
|
22931
|
+
onClosed?: () => any;
|
|
22922
22932
|
"onUpdate:selectedCondition"?: (value: {
|
|
22923
22933
|
label: string;
|
|
22924
22934
|
value: string;
|
|
@@ -22942,6 +22952,7 @@ declare const _default: {
|
|
|
22942
22952
|
loadMoreFn: () => Promise<any[]>;
|
|
22943
22953
|
fetchDataDebounceTime: number;
|
|
22944
22954
|
autoFocusSearch: boolean;
|
|
22955
|
+
loadingOverride: boolean;
|
|
22945
22956
|
}>)[];
|
|
22946
22957
|
Option: {
|
|
22947
22958
|
new (...args: any[]): {
|
|
@@ -23984,6 +23995,10 @@ declare const _default: {
|
|
|
23984
23995
|
type: import("vue").PropType<boolean>;
|
|
23985
23996
|
default: boolean;
|
|
23986
23997
|
};
|
|
23998
|
+
loadingOverride: {
|
|
23999
|
+
type: import("vue").PropType<boolean>;
|
|
24000
|
+
default: boolean;
|
|
24001
|
+
};
|
|
23987
24002
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23988
24003
|
"update:selectedCondition": (value: {
|
|
23989
24004
|
label: string;
|
|
@@ -23992,6 +24007,7 @@ declare const _default: {
|
|
|
23992
24007
|
}) => void;
|
|
23993
24008
|
"update:appliedSelections": (value: unknown) => void;
|
|
23994
24009
|
clear: () => void;
|
|
24010
|
+
closed: () => void;
|
|
23995
24011
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23996
24012
|
label: {
|
|
23997
24013
|
type: import("vue").PropType<string>;
|
|
@@ -24084,8 +24100,13 @@ declare const _default: {
|
|
|
24084
24100
|
type: import("vue").PropType<boolean>;
|
|
24085
24101
|
default: boolean;
|
|
24086
24102
|
};
|
|
24103
|
+
loadingOverride: {
|
|
24104
|
+
type: import("vue").PropType<boolean>;
|
|
24105
|
+
default: boolean;
|
|
24106
|
+
};
|
|
24087
24107
|
}>> & {
|
|
24088
24108
|
onClear?: () => any;
|
|
24109
|
+
onClosed?: () => any;
|
|
24089
24110
|
"onUpdate:selectedCondition"?: (value: {
|
|
24090
24111
|
label: string;
|
|
24091
24112
|
value: string;
|
|
@@ -24109,6 +24130,7 @@ declare const _default: {
|
|
|
24109
24130
|
loadMoreFn: () => Promise<any[]>;
|
|
24110
24131
|
fetchDataDebounceTime: number;
|
|
24111
24132
|
autoFocusSearch: boolean;
|
|
24133
|
+
loadingOverride: boolean;
|
|
24112
24134
|
}>;
|
|
24113
24135
|
Label: {
|
|
24114
24136
|
new (...args: any[]): {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css';
|
|
2
2
|
import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as po } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.custom-list-area[data-v-2c6a03f9]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-2c6a03f9]{width:100%}.contain-accept[data-v-2c6a03f9]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-2c6a03f9]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-2c6a03f9]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|