@sisense/sdk-ui 2.14.0 → 2.15.0
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/dist/ai.cjs +1 -1
- package/dist/ai.js +5 -5
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +4 -4
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-DJUpWKOP.cjs → derive-chart-family-0J_WPLDy.cjs} +45 -30
- package/dist/{derive-chart-family-D_bylSQy.js → derive-chart-family-DHOhho50.js} +5072 -5042
- package/dist/{dimensions-CTUJhW-M.js → dimensions-Biz7anQc.js} +1 -1
- package/dist/{dimensions-CdNGgk9I.cjs → dimensions-CtINdhqK.cjs} +1 -1
- package/dist/{execute-query-DyjkDYHG.js → execute-query-D1JOjJ8n.js} +212 -195
- package/dist/execute-query-k_ytd_Rf.cjs +1 -0
- package/dist/index.cjs +15 -15
- package/dist/index.js +4177 -4109
- package/dist/index.umd.js +253 -238
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +23 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +28 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +28 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/icons/alert-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/dynamic-size-container/default-size.d.ts +20 -5
- package/dist/packages/sdk-ui/src/highcharts-renderer.d.ts +13 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +5 -1
- package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +6 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +12 -0
- package/dist/packages/sdk-ui/src/types.d.ts +88 -1
- package/dist/packages/sdk-ui/src/utils/gradient.d.ts +37 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +2 -0
- package/dist/{types-D1qM-ltg.cjs → types-B8jkBXCe.cjs} +1 -1
- package/dist/{types-DglXXR-Q.js → types-DZhBEm3K.js} +1 -1
- package/dist/{use-common-filters-BGrn7zoW.js → use-common-filters-8MsC7-0N.js} +18093 -18004
- package/dist/{use-common-filters-DxzCHhgF.cjs → use-common-filters-DlP4xqST.cjs} +170 -170
- package/dist/{widget-composer-lBv40CFf.js → widget-composer-D-ktDgUE.js} +3 -3
- package/dist/{widget-composer-C24YJEek.cjs → widget-composer-DBwcb3ao.cjs} +1 -1
- package/package.json +7 -7
- package/dist/execute-query-CNt566O5.cjs +0 -1
- package/dist/packages/sdk-ui/src/highcharts-memorized.d.ts +0 -7
|
@@ -62,14 +62,14 @@ function $s() {
|
|
|
62
62
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
63
63
|
jt = y(y({}, jt), e);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Bp() {
|
|
66
66
|
return jt;
|
|
67
67
|
}
|
|
68
68
|
let Br;
|
|
69
69
|
function Bs(e) {
|
|
70
70
|
Br = e;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Up() {
|
|
73
73
|
return Br;
|
|
74
74
|
}
|
|
75
75
|
const Us = {
|
|
@@ -1905,7 +1905,13 @@ const fa = {
|
|
|
1905
1905
|
},
|
|
1906
1906
|
pivotTable: {
|
|
1907
1907
|
grandTotal: "Grand Total",
|
|
1908
|
-
subTotal: "{{value}} Total"
|
|
1908
|
+
subTotal: "{{value}} Total",
|
|
1909
|
+
limits: {
|
|
1910
|
+
baseNote: "Totals may refer to the complete data if set by the dashboard owner. If available, you can use filters to display fewer rows and columns. To view all your data, download the table to CSV.",
|
|
1911
|
+
rowsLimit: "The Pivot table is limited to {{recordsCount}} records",
|
|
1912
|
+
columnsLimit: "The Pivot table is limited to {{columnsCount}} columns",
|
|
1913
|
+
columnsAndRowsLimit: "The Pivot table is limited to {{recordsCount}} records and {{columnsCount}} columns"
|
|
1914
|
+
}
|
|
1909
1915
|
},
|
|
1910
1916
|
dashboard: {
|
|
1911
1917
|
toolbar: {
|
|
@@ -2303,7 +2309,13 @@ const fa = {
|
|
|
2303
2309
|
},
|
|
2304
2310
|
pivotTable: {
|
|
2305
2311
|
grandTotal: "Загальний підсумок",
|
|
2306
|
-
subTotal: "Усього {{value}}"
|
|
2312
|
+
subTotal: "Усього {{value}}",
|
|
2313
|
+
limits: {
|
|
2314
|
+
baseNote: "Загальні підсумки можуть відноситися до всіх даних, якщо вони встановлені власником дашборду. Якщо доступні, ви можете використовувати фільтри для відображення меншої кількості рядків і стовпців. Щоб побачити всі ваші дані, завантажте таблицю в CSV.",
|
|
2315
|
+
rowsLimit: "Таблиця Pivot обмежена до {{recordsCount}} рядків",
|
|
2316
|
+
columnsLimit: "Таблиця Pivot обмежена до {{columnsCount}} стовпців",
|
|
2317
|
+
columnsAndRowsLimit: "Таблиця Pivot обмежена до {{recordsCount}} рядків і {{columnsCount}} стовпців"
|
|
2318
|
+
}
|
|
2307
2319
|
},
|
|
2308
2320
|
dataBrowser: {
|
|
2309
2321
|
addFilter: "Додати фільтр",
|
|
@@ -3999,7 +4011,7 @@ function v(e, t) {
|
|
|
3999
4011
|
function _r(e, t) {
|
|
4000
4012
|
return At("filterFactory.logic", t)(e);
|
|
4001
4013
|
}
|
|
4002
|
-
function
|
|
4014
|
+
function qp(e, t) {
|
|
4003
4015
|
return At("analyticsFactory", t)(e);
|
|
4004
4016
|
}
|
|
4005
4017
|
function T(e, t) {
|
|
@@ -4092,7 +4104,7 @@ const k = T((e, t, n, r) => new ye(n != null ? n : `${t.toString()} ${e.name}`,
|
|
|
4092
4104
|
}), s.push(")");
|
|
4093
4105
|
const o = s.join("");
|
|
4094
4106
|
return t || (t = `${e.name} rank`), new X(t, o, a);
|
|
4095
|
-
}, "rank"),
|
|
4107
|
+
}, "rank"), zp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4096
4108
|
__proto__: null,
|
|
4097
4109
|
RankingSortTypes: Di,
|
|
4098
4110
|
RankingTypes: Mi,
|
|
@@ -4307,7 +4319,7 @@ class X extends xn {
|
|
|
4307
4319
|
return Object.getOwnPropertyNames(this.context).forEach((s) => r[s] = this.context[s].jaql(!0)), n.jaql.context = r, this._format && (n.format = { number: this._format }), this._sort != D.None && (n.jaql.sort = this._sort == D.Ascending ? "asc" : "desc"), t === !0 ? n.jaql : n;
|
|
4308
4320
|
}
|
|
4309
4321
|
}
|
|
4310
|
-
const
|
|
4322
|
+
const Hp = (e) => !!(e && e.__serializable === "DimensionalCalculatedMeasure");
|
|
4311
4323
|
class Vt extends xn {
|
|
4312
4324
|
constructor(t, n, r, i, s, a, o) {
|
|
4313
4325
|
super(t, w.MeasureTemplate, r, i, s, a, o), this.__serializable = "DimensionalMeasureTemplate", this.attribute = n;
|
|
@@ -4408,7 +4420,7 @@ class Vt extends xn {
|
|
|
4408
4420
|
return wn(this.attribute, void 0, t).sort(this._sort);
|
|
4409
4421
|
}
|
|
4410
4422
|
}
|
|
4411
|
-
const
|
|
4423
|
+
const kp = (e) => !!(e && e.__serializable === "DimensionalMeasureTemplate");
|
|
4412
4424
|
function xf(e, t) {
|
|
4413
4425
|
return St(e, t);
|
|
4414
4426
|
}
|
|
@@ -4847,40 +4859,40 @@ class Rf extends $ {
|
|
|
4847
4859
|
return t.jaqlExpression = this.jaqlExpression, t;
|
|
4848
4860
|
}
|
|
4849
4861
|
}
|
|
4850
|
-
function
|
|
4862
|
+
function Gp(e) {
|
|
4851
4863
|
return e && e.__serializable === "CustomFilter";
|
|
4852
4864
|
}
|
|
4853
|
-
function
|
|
4865
|
+
function Vp(e) {
|
|
4854
4866
|
return e && e.__serializable === "MembersFilter";
|
|
4855
4867
|
}
|
|
4856
|
-
function
|
|
4868
|
+
function Qp(e) {
|
|
4857
4869
|
return e && e.__serializable === "NumericFilter";
|
|
4858
4870
|
}
|
|
4859
|
-
function
|
|
4871
|
+
function Kp(e) {
|
|
4860
4872
|
return e && e.__serializable === "RankingFilter";
|
|
4861
4873
|
}
|
|
4862
|
-
function
|
|
4874
|
+
function Jp(e) {
|
|
4863
4875
|
return e && e.__serializable === "MeasureRankingFilter";
|
|
4864
4876
|
}
|
|
4865
|
-
function
|
|
4877
|
+
function Yp(e) {
|
|
4866
4878
|
return e && e.__serializable === "MeasureFilter";
|
|
4867
4879
|
}
|
|
4868
|
-
function
|
|
4880
|
+
function Xp(e) {
|
|
4869
4881
|
return e && e.__serializable === "ExcludeFilter";
|
|
4870
4882
|
}
|
|
4871
|
-
function
|
|
4883
|
+
function Zp(e) {
|
|
4872
4884
|
return e && e.__serializable === "LogicalAttributeFilter";
|
|
4873
4885
|
}
|
|
4874
4886
|
function Nt(e) {
|
|
4875
4887
|
return e && e.__serializable === "CascadingFilter";
|
|
4876
4888
|
}
|
|
4877
|
-
function
|
|
4889
|
+
function eg(e) {
|
|
4878
4890
|
return e && e.__serializable === "RelativeDateFilter";
|
|
4879
4891
|
}
|
|
4880
|
-
function
|
|
4892
|
+
function tg(e) {
|
|
4881
4893
|
return e && e.__serializable === "TextFilter";
|
|
4882
4894
|
}
|
|
4883
|
-
function
|
|
4895
|
+
function ng(e) {
|
|
4884
4896
|
return e && e.__serializable === "DateRangeFilter";
|
|
4885
4897
|
}
|
|
4886
4898
|
const qi = v((e, t) => new Bi(e, $i.Union, t), "union"), zi = v((e, t) => new Bi(e, $i.Intersection, t), "intersection"), On = v((e, t, n) => new Cf(e, t, n), "exclude"), Hi = v((e, t, n) => new re(e, ne.DoesntContain, t, n), "doesntContain"), ki = v((e, t, n) => new re(e, ne.DoesntEndWith, t, n), "doesntEndWith"), Gi = v((e, t, n) => new re(e, ne.DoesntStartWith, t, n), "doesntStartWith"), Vi = v((e, t, n) => new re(e, ne.Contains, t, n), "contains"), Qi = v((e, t, n) => new re(e, ne.EndsWith, t, n), "endsWith"), Ki = v((e, t, n) => new re(e, ne.StartsWith, t, n), "startsWith"), Lf = v((e, t, n) => new re(e, ne.Like, t, n), "like"), Ji = v((e, t, n) => typeof t == "string" ? new re(e, ne.DoesntEqual, t, n) : ie(e, R.DoesntEqual, t, void 0, void 0, n), "doesntEqual"), Yi = v((e, t, n) => typeof t == "string" ? new re(e, ne.Equals, t, n) : ie(e, R.Equals, t, void 0, void 0, n), "equals"), Xi = v((e, t, n) => ie(e, R.FromNotEqual, t, void 0, void 0, n), "greaterThan"), Zi = v((e, t, n) => ie(e, R.From, t, void 0, void 0, n), "greaterThanOrEqual"), es = v((e, t, n) => ie(e, R.ToNotEqual, t, void 0, void 0, n), "lessThan"), ts = v((e, t, n) => ie(e, R.To, t, void 0, void 0, n), "lessThanOrEqual"), pt = v((e, t, n, r) => ie(e, R.From, t, R.To, n, r), "between"), Ff = v((e, t, n, r) => ie(e, R.FromNotEqual, t, R.ToNotEqual, n, r), "betweenNotEqual"), ie = v((e, t, n, r, i, s) => new Mf(e, t, n, r, i, s), "numeric"), Ct = v((e, t, n) => new Of(e, t, n), "members"), If = v((e, t, n) => _t(e, t, void 0, n), "dateFrom"), Pf = v((e, t, n) => _t(e, void 0, t, n), "dateTo"), _t = v((e, t, n, r) => new Df(e, t, n, r), "dateRange"), jf = v((e, t, n, r, i) => new En(e, t, n, void 0, r, i), "dateRelative"), ns = v((e, t, n, r, i) => new En(e, t, n, We.Next, r, i), "dateRelativeFrom"), xe = v((e, t, n, r, i) => new En(e, t, n, We.Last, r, i), "dateRelativeTo"), $f = v((e, t) => xe(e.Years, 0, 1, void 0, t), "thisYear"), Bf = v((e, t) => xe(e.Months, 0, 1, void 0, t), "thisMonth"), Uf = v((e, t) => xe(e.Quarters, 0, 1, void 0, t), "thisQuarter"), Wf = v((e, t) => xe(e.Days, 0, 1, void 0, t), "today");
|
|
@@ -4911,7 +4923,7 @@ var ve;
|
|
|
4911
4923
|
right: t(r)
|
|
4912
4924
|
}), "or");
|
|
4913
4925
|
})(ve = ve || (ve = {}));
|
|
4914
|
-
const fs = v((e, t, n) => new Rf(e, t, n), "customFilter"),
|
|
4926
|
+
const fs = v((e, t, n) => new Rf(e, t, n), "customFilter"), rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4915
4927
|
__proto__: null,
|
|
4916
4928
|
between: pt,
|
|
4917
4929
|
betweenNotEqual: Ff,
|
|
@@ -5292,7 +5304,12 @@ const Ph = (e, t, n) => _t(e, t.from, t.to, { guid: n }), jh = (e, t, n) => pt(e
|
|
|
5292
5304
|
"timewithtimezone",
|
|
5293
5305
|
"timestampwithtimezone",
|
|
5294
5306
|
"timestamp_with_timezone"
|
|
5295
|
-
].includes(e.toLowerCase()), zh = (e) => ["bool", "boolean", "bit", "logical"].includes(e.toLowerCase()), Hh = (e) => hs(e) ? "number" : Cn(e) ? "datetime" : qh(e) ? "text" : zh(e) ? "boolean" : "text"
|
|
5307
|
+
].includes(e.toLowerCase()), zh = (e) => ["bool", "boolean", "bit", "logical"].includes(e.toLowerCase()), Hh = (e) => hs(e) ? "number" : Cn(e) ? "datetime" : qh(e) ? "text" : zh(e) ? "boolean" : "text";
|
|
5308
|
+
function kh() {
|
|
5309
|
+
const e = new Uint32Array(1);
|
|
5310
|
+
return crypto.getRandomValues(e), e[0] / 4294967296;
|
|
5311
|
+
}
|
|
5312
|
+
const ps = function(e) {
|
|
5296
5313
|
e || (e = 20);
|
|
5297
5314
|
const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), n = new Array(e);
|
|
5298
5315
|
let r = 0, i;
|
|
@@ -5301,10 +5318,10 @@ const Ph = (e, t, n) => _t(e, t.from, t.to, { guid: n }), jh = (e, t, n) => pt(e
|
|
|
5301
5318
|
n[s] = "-";
|
|
5302
5319
|
continue;
|
|
5303
5320
|
}
|
|
5304
|
-
r <= 2 && (r = 33554432 +
|
|
5321
|
+
r <= 2 && (r = 33554432 + kh() * 16777216 | 0), i = r & 15, r = r >> 4, n[s] = t[s == 19 ? i & 3 | 8 : i];
|
|
5305
5322
|
}
|
|
5306
5323
|
return n.join("");
|
|
5307
|
-
},
|
|
5324
|
+
}, ig = (e) => {
|
|
5308
5325
|
if (!e)
|
|
5309
5326
|
return { filters: void 0, relations: void 0 };
|
|
5310
5327
|
if (Array.isArray(e))
|
|
@@ -5318,21 +5335,21 @@ const Ph = (e, t, n) => _t(e, t.from, t.to, { guid: n }), jh = (e, t, n) => pt(e
|
|
|
5318
5335
|
return { left: l, right: d, operator: "AND" };
|
|
5319
5336
|
}
|
|
5320
5337
|
function r(a) {
|
|
5321
|
-
return a && (
|
|
5338
|
+
return a && (Gh(a) ? Nt(a) ? n(a.filters) : (t.add(a), { instanceid: a.config.guid }) : ("left" in a && (a.left = r(a.left)), "right" in a && (a.right = r(a.right)), "composeCode" in a && delete a.composeCode, a));
|
|
5322
5339
|
}
|
|
5323
5340
|
const i = hi(e), s = r(i);
|
|
5324
5341
|
return { filters: Array.from(t), relations: s };
|
|
5325
5342
|
};
|
|
5326
|
-
function
|
|
5343
|
+
function Gh(e) {
|
|
5327
5344
|
return "config" in e && "guid" in e.config;
|
|
5328
5345
|
}
|
|
5329
|
-
function
|
|
5346
|
+
function sg(e) {
|
|
5330
5347
|
return typeof e == "string" ? e : e.title;
|
|
5331
5348
|
}
|
|
5332
5349
|
function gs(e) {
|
|
5333
5350
|
return typeof e == "object" && "type" in e && "title" in e;
|
|
5334
5351
|
}
|
|
5335
|
-
function
|
|
5352
|
+
function ag(e) {
|
|
5336
5353
|
return {
|
|
5337
5354
|
id: e.id,
|
|
5338
5355
|
address: e.address,
|
|
@@ -5349,7 +5366,7 @@ function ms(e) {
|
|
|
5349
5366
|
live: !1
|
|
5350
5367
|
};
|
|
5351
5368
|
}
|
|
5352
|
-
function
|
|
5369
|
+
function og(e) {
|
|
5353
5370
|
var t;
|
|
5354
5371
|
return gs(e) ? {
|
|
5355
5372
|
title: e.title,
|
|
@@ -5361,10 +5378,10 @@ function ag(e) {
|
|
|
5361
5378
|
id: ""
|
|
5362
5379
|
};
|
|
5363
5380
|
}
|
|
5364
|
-
function
|
|
5381
|
+
function Vh(e) {
|
|
5365
5382
|
return e ? e === "asc" ? D.Ascending : D.Descending : D.None;
|
|
5366
5383
|
}
|
|
5367
|
-
function
|
|
5384
|
+
function ug(e) {
|
|
5368
5385
|
switch (e) {
|
|
5369
5386
|
case "sortAsc":
|
|
5370
5387
|
return D.Ascending;
|
|
@@ -5374,7 +5391,7 @@ function og(e) {
|
|
|
5374
5391
|
return D.None;
|
|
5375
5392
|
}
|
|
5376
5393
|
}
|
|
5377
|
-
const
|
|
5394
|
+
const Qh = (e, t, n = !1, r = !1) => {
|
|
5378
5395
|
const i = e.filter.filter && !("turnedOff" in e.filter.filter), s = t || ps(), a = Lr(e, s);
|
|
5379
5396
|
if (i) {
|
|
5380
5397
|
const o = Lr(Object.assign(Object.assign({}, e), { filter: e.filter.filter }), `${t}-bg`), u = a.config;
|
|
@@ -5389,13 +5406,13 @@ function Ee(e) {
|
|
|
5389
5406
|
column: n ? n.replace("(Calendar)", "").trim() : ""
|
|
5390
5407
|
};
|
|
5391
5408
|
}
|
|
5392
|
-
function
|
|
5409
|
+
function lg(e) {
|
|
5393
5410
|
return Ee(e.expression).table;
|
|
5394
5411
|
}
|
|
5395
|
-
function
|
|
5412
|
+
function cg(e) {
|
|
5396
5413
|
return Ee(e.expression).column;
|
|
5397
5414
|
}
|
|
5398
|
-
function
|
|
5415
|
+
function dg(e) {
|
|
5399
5416
|
switch (e) {
|
|
5400
5417
|
case Fe.ASC:
|
|
5401
5418
|
return "sortAsc";
|
|
@@ -5406,7 +5423,7 @@ function cg(e) {
|
|
|
5406
5423
|
}
|
|
5407
5424
|
}
|
|
5408
5425
|
const _n = ({ expression: e, dataType: t, granularity: n, format: r, sort: i, title: s, panel: a, dataSource: o }) => {
|
|
5409
|
-
const u = Ee(e).column, l =
|
|
5426
|
+
const u = Ee(e).column, l = Vh(i);
|
|
5410
5427
|
if (t !== void 0 && Cn(t))
|
|
5411
5428
|
return new Y(s != null ? s : u, e, n || h.Years, r || Y.getDefaultFormatForGranularity(n || h.Years), void 0, l, o, void 0, a);
|
|
5412
5429
|
const f = !t || hs(t) ? w.NumericAttribute : w.TextAttribute;
|
|
@@ -5445,12 +5462,12 @@ const _n = ({ expression: e, dataType: t, granularity: n, format: r, sort: i, ti
|
|
|
5445
5462
|
}
|
|
5446
5463
|
}, bs = (e) => {
|
|
5447
5464
|
var t;
|
|
5448
|
-
const n = Kc((t = e.context) !== null && t !== void 0 ? t : {}, (r) => typeof r == "string" ? r : r &&
|
|
5465
|
+
const n = Kc((t = e.context) !== null && t !== void 0 ? t : {}, (r) => typeof r == "string" ? r : r && Kh(r));
|
|
5449
5466
|
return Ri(e.title, e.formula, n);
|
|
5450
5467
|
};
|
|
5451
|
-
function
|
|
5468
|
+
function Kh(e, t, n) {
|
|
5452
5469
|
if ("filter" in e)
|
|
5453
|
-
return
|
|
5470
|
+
return Qh(e);
|
|
5454
5471
|
if ("formula" in e)
|
|
5455
5472
|
return bs(e);
|
|
5456
5473
|
const s = "datasource" in e ? e.datasource : void 0;
|
|
@@ -5532,7 +5549,7 @@ class Qe extends yn {
|
|
|
5532
5549
|
return t.expression = this.expression, this.getSort() !== D.None && (t.sort = this.getSort()), t;
|
|
5533
5550
|
}
|
|
5534
5551
|
}
|
|
5535
|
-
const
|
|
5552
|
+
const fg = (e) => !!(e && e.__serializable === "DimensionalAttribute");
|
|
5536
5553
|
class Y extends Qe {
|
|
5537
5554
|
constructor(t, n, r, i, s, a, o, u, l) {
|
|
5538
5555
|
if (super(t, n, w.DateLevel, s, a, o, u), this.__serializable = "DimensionalLevelAttribute", this._format = i, this.granularity = r, !u && n) {
|
|
@@ -5758,37 +5775,37 @@ class Y extends Qe {
|
|
|
5758
5775
|
}
|
|
5759
5776
|
}
|
|
5760
5777
|
}
|
|
5761
|
-
const
|
|
5762
|
-
function
|
|
5763
|
-
return e.granularity ?
|
|
5778
|
+
const hg = (e) => !!(e && e.__serializable === "DimensionalLevelAttribute");
|
|
5779
|
+
function pg(e) {
|
|
5780
|
+
return e.granularity ? Jh(e) : new Qe(e.name || e.title, e.attribute || e.expression || e.dim, e.type, e.desc || e.description, e.sort, e.dataSource);
|
|
5764
5781
|
}
|
|
5765
|
-
function
|
|
5782
|
+
function Jh(e) {
|
|
5766
5783
|
return new Y(e.name || e.title, e.attribute || e.expression || e.dim, e.granularity, e.format, e.desc || e.description, e.sort, e.dataSource);
|
|
5767
5784
|
}
|
|
5768
5785
|
function vs(e, t, n, r) {
|
|
5769
5786
|
return (r.length > 0 ? r + "." : "") + be(e) + "." + be(t) + (n && n.length > 0 ? "." + n : "");
|
|
5770
5787
|
}
|
|
5771
|
-
function
|
|
5788
|
+
function gg(e) {
|
|
5772
5789
|
return "granularity" in e;
|
|
5773
5790
|
}
|
|
5774
|
-
function
|
|
5791
|
+
function Yh(e) {
|
|
5775
5792
|
return "attribute" in e;
|
|
5776
5793
|
}
|
|
5777
|
-
function
|
|
5794
|
+
function Xh(e) {
|
|
5778
5795
|
return "measure" in e;
|
|
5779
5796
|
}
|
|
5780
|
-
const
|
|
5797
|
+
const Zh = {
|
|
5781
5798
|
rows: !1,
|
|
5782
5799
|
columns: !1
|
|
5783
5800
|
};
|
|
5784
5801
|
function Jt(e) {
|
|
5785
5802
|
return !!e && "operator" in e && (e.operator === "AND" || e.operator === "OR") && !!e.right && !!e.left;
|
|
5786
5803
|
}
|
|
5787
|
-
function
|
|
5804
|
+
function mg(e = [], t = []) {
|
|
5788
5805
|
if (!Jt(e) && !Jt(t))
|
|
5789
5806
|
return Ir(e, t);
|
|
5790
|
-
const { filters: n, relations: r } = Ss(e), i =
|
|
5791
|
-
return
|
|
5807
|
+
const { filters: n, relations: r } = Ss(e), i = ep(t), s = Ir(n, i), a = np(n, r, s);
|
|
5808
|
+
return tp(s, a);
|
|
5792
5809
|
}
|
|
5793
5810
|
function Ss(e) {
|
|
5794
5811
|
if (!e)
|
|
@@ -5811,10 +5828,10 @@ function Ss(e) {
|
|
|
5811
5828
|
relations: r
|
|
5812
5829
|
};
|
|
5813
5830
|
}
|
|
5814
|
-
function
|
|
5831
|
+
function ep(e) {
|
|
5815
5832
|
return e ? Ss(e).filters : [];
|
|
5816
5833
|
}
|
|
5817
|
-
function
|
|
5834
|
+
function tp(e, t) {
|
|
5818
5835
|
if (!t || Ts(t))
|
|
5819
5836
|
return e;
|
|
5820
5837
|
const n = r(t);
|
|
@@ -5830,14 +5847,14 @@ function ep(e, t) {
|
|
|
5830
5847
|
function Ts(e) {
|
|
5831
5848
|
return !!e && "instanceid" in e;
|
|
5832
5849
|
}
|
|
5833
|
-
function
|
|
5850
|
+
function np(e, t, n) {
|
|
5834
5851
|
if (t === null)
|
|
5835
5852
|
return null;
|
|
5836
|
-
const r =
|
|
5853
|
+
const r = rp(e, n);
|
|
5837
5854
|
return r.length === 0 ? t : r.reduce((i, s) => {
|
|
5838
5855
|
switch (s.type) {
|
|
5839
5856
|
case "add":
|
|
5840
|
-
return
|
|
5857
|
+
return ip(s.payload, i);
|
|
5841
5858
|
case "remove":
|
|
5842
5859
|
return Yt(s.payload, i);
|
|
5843
5860
|
}
|
|
@@ -5846,7 +5863,7 @@ function tp(e, t, n) {
|
|
|
5846
5863
|
function Fr(e, t) {
|
|
5847
5864
|
return e.config.guid === t.config.guid;
|
|
5848
5865
|
}
|
|
5849
|
-
function
|
|
5866
|
+
function bg(e, t, n) {
|
|
5850
5867
|
if (!e)
|
|
5851
5868
|
return null;
|
|
5852
5869
|
return i(e);
|
|
@@ -5862,7 +5879,7 @@ function mg(e, t, n) {
|
|
|
5862
5879
|
throw new Ln();
|
|
5863
5880
|
}
|
|
5864
5881
|
}
|
|
5865
|
-
function
|
|
5882
|
+
function rp(e, t) {
|
|
5866
5883
|
const n = [], r = [...e], i = [...t];
|
|
5867
5884
|
return r.forEach((s) => {
|
|
5868
5885
|
i.some((o) => Fr(s, o)) || n.push({ type: "remove", payload: s });
|
|
@@ -5870,7 +5887,7 @@ function np(e, t) {
|
|
|
5870
5887
|
r.some((o) => Fr(s, o)) || n.push({ type: "add", payload: s });
|
|
5871
5888
|
}), n;
|
|
5872
5889
|
}
|
|
5873
|
-
function
|
|
5890
|
+
function ip(e, t) {
|
|
5874
5891
|
return t ? {
|
|
5875
5892
|
left: t,
|
|
5876
5893
|
right: { instanceid: e.config.guid },
|
|
@@ -5889,21 +5906,21 @@ function Yt(e, t) {
|
|
|
5889
5906
|
operator: t.operator
|
|
5890
5907
|
};
|
|
5891
5908
|
}
|
|
5892
|
-
function
|
|
5909
|
+
function yg(e, t) {
|
|
5893
5910
|
if (!e)
|
|
5894
5911
|
return null;
|
|
5895
5912
|
function n(r) {
|
|
5896
|
-
if (ip(r))
|
|
5897
|
-
return { instanceid: r.instanceId };
|
|
5898
5913
|
if (sp(r))
|
|
5899
|
-
return
|
|
5914
|
+
return { instanceid: r.instanceId };
|
|
5900
5915
|
if (ap(r))
|
|
5916
|
+
return n(r.value);
|
|
5917
|
+
if (op(r))
|
|
5901
5918
|
return {
|
|
5902
5919
|
operator: r.operator,
|
|
5903
5920
|
left: n(r.left),
|
|
5904
5921
|
right: n(r.right)
|
|
5905
5922
|
};
|
|
5906
|
-
if (
|
|
5923
|
+
if (up(r)) {
|
|
5907
5924
|
const i = t.find((s) => {
|
|
5908
5925
|
if (!Nt(s))
|
|
5909
5926
|
return !1;
|
|
@@ -5918,16 +5935,16 @@ function bg(e, t) {
|
|
|
5918
5935
|
}
|
|
5919
5936
|
return n(e);
|
|
5920
5937
|
}
|
|
5921
|
-
function
|
|
5938
|
+
function sp(e) {
|
|
5922
5939
|
return "instanceId" in e;
|
|
5923
5940
|
}
|
|
5924
|
-
function
|
|
5941
|
+
function ap(e) {
|
|
5925
5942
|
return "value" in e;
|
|
5926
5943
|
}
|
|
5927
|
-
function
|
|
5944
|
+
function op(e) {
|
|
5928
5945
|
return "operator" in e;
|
|
5929
5946
|
}
|
|
5930
|
-
function
|
|
5947
|
+
function up(e) {
|
|
5931
5948
|
return "levels" in e && j(e.levels);
|
|
5932
5949
|
}
|
|
5933
5950
|
function Dn(e) {
|
|
@@ -5939,7 +5956,7 @@ function Rn(e) {
|
|
|
5939
5956
|
function As(e) {
|
|
5940
5957
|
return "config" in e && "guid" in e.config;
|
|
5941
5958
|
}
|
|
5942
|
-
function
|
|
5959
|
+
function vg(e, t) {
|
|
5943
5960
|
if (!e)
|
|
5944
5961
|
return;
|
|
5945
5962
|
function n(r) {
|
|
@@ -5968,7 +5985,7 @@ function yg(e, t) {
|
|
|
5968
5985
|
}
|
|
5969
5986
|
return n(e);
|
|
5970
5987
|
}
|
|
5971
|
-
function
|
|
5988
|
+
function Sg(e, t) {
|
|
5972
5989
|
return e.find((n) => n.config.guid === t);
|
|
5973
5990
|
}
|
|
5974
5991
|
class Ln extends Error {
|
|
@@ -5976,16 +5993,16 @@ class Ln extends Error {
|
|
|
5976
5993
|
super("Broken filter relations. Unknown node type.");
|
|
5977
5994
|
}
|
|
5978
5995
|
}
|
|
5979
|
-
function
|
|
5996
|
+
function Tg(e) {
|
|
5980
5997
|
return e.nodeType === "openBracket";
|
|
5981
5998
|
}
|
|
5982
|
-
function
|
|
5999
|
+
function Ag(e) {
|
|
5983
6000
|
return e.nodeType === "closeBracket";
|
|
5984
6001
|
}
|
|
5985
|
-
function
|
|
6002
|
+
function wg(e) {
|
|
5986
6003
|
return e.nodeType === "attribute";
|
|
5987
6004
|
}
|
|
5988
|
-
function
|
|
6005
|
+
function xg(e) {
|
|
5989
6006
|
return e.nodeType === "operator";
|
|
5990
6007
|
}
|
|
5991
6008
|
function Xt(e) {
|
|
@@ -6001,7 +6018,7 @@ function Ir(e = [], t = []) {
|
|
|
6001
6018
|
i !== -1 ? n[i] = r : n.push(r);
|
|
6002
6019
|
}), n;
|
|
6003
6020
|
}
|
|
6004
|
-
function
|
|
6021
|
+
function Eg(e) {
|
|
6005
6022
|
if (!e)
|
|
6006
6023
|
return e;
|
|
6007
6024
|
const t = hi(e);
|
|
@@ -6043,35 +6060,35 @@ se.withOptions = (e, ...t) => {
|
|
|
6043
6060
|
return se.options = ws, n;
|
|
6044
6061
|
};
|
|
6045
6062
|
let Ze;
|
|
6046
|
-
const
|
|
6047
|
-
function
|
|
6063
|
+
const lp = new Uint8Array(16);
|
|
6064
|
+
function cp() {
|
|
6048
6065
|
if (!Ze && (Ze = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ze))
|
|
6049
6066
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6050
|
-
return Ze(
|
|
6067
|
+
return Ze(lp);
|
|
6051
6068
|
}
|
|
6052
6069
|
const F = [];
|
|
6053
6070
|
for (let e = 0; e < 256; ++e)
|
|
6054
6071
|
F.push((e + 256).toString(16).slice(1));
|
|
6055
|
-
function
|
|
6072
|
+
function dp(e, t = 0) {
|
|
6056
6073
|
return F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]];
|
|
6057
6074
|
}
|
|
6058
|
-
const
|
|
6059
|
-
randomUUID:
|
|
6075
|
+
const fp = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jr = {
|
|
6076
|
+
randomUUID: fp
|
|
6060
6077
|
};
|
|
6061
6078
|
function xs(e, t, n) {
|
|
6062
6079
|
if (jr.randomUUID && !t && !e)
|
|
6063
6080
|
return jr.randomUUID();
|
|
6064
6081
|
e = e || {};
|
|
6065
|
-
const r = e.random || (e.rng ||
|
|
6066
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
6082
|
+
const r = e.random || (e.rng || cp)();
|
|
6083
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, dp(r);
|
|
6067
6084
|
}
|
|
6068
|
-
function
|
|
6085
|
+
function hp(e, t) {
|
|
6069
6086
|
const n = t == null ? void 0 : t.find((r) => Es(e) === r.attribute.id);
|
|
6070
6087
|
return n && !n.config.disabled && (n.isScope && (n.isScope = !1), e.jaql.in = {
|
|
6071
6088
|
selected: n.jaql()
|
|
6072
6089
|
}), e;
|
|
6073
6090
|
}
|
|
6074
|
-
function
|
|
6091
|
+
function pp(e, t) {
|
|
6075
6092
|
const n = [], r = [];
|
|
6076
6093
|
return t.forEach((i) => {
|
|
6077
6094
|
e.some((a) => Es(a) === i.attribute.id) ? n.push(i) : r.push(i);
|
|
@@ -6082,7 +6099,7 @@ function Es(e) {
|
|
|
6082
6099
|
let s = `${t}`;
|
|
6083
6100
|
return (n || r) && (s += `_${n || r}`), i && (s += `_${i}`), s;
|
|
6084
6101
|
}
|
|
6085
|
-
var
|
|
6102
|
+
var gp = function(e, t) {
|
|
6086
6103
|
var n = {};
|
|
6087
6104
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6088
6105
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6090,14 +6107,14 @@ var pp = function(e, t) {
|
|
|
6090
6107
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
6091
6108
|
return n;
|
|
6092
6109
|
};
|
|
6093
|
-
function
|
|
6110
|
+
function mp(e, t, n) {
|
|
6094
6111
|
return {
|
|
6095
6112
|
rowsCount: e.length,
|
|
6096
6113
|
columnsCount: t.length,
|
|
6097
6114
|
measuresCount: n.length
|
|
6098
6115
|
};
|
|
6099
6116
|
}
|
|
6100
|
-
function
|
|
6117
|
+
function bp(e) {
|
|
6101
6118
|
switch (e) {
|
|
6102
6119
|
case "sortAsc":
|
|
6103
6120
|
return "asc";
|
|
@@ -6107,8 +6124,8 @@ function mp(e) {
|
|
|
6107
6124
|
return "none";
|
|
6108
6125
|
}
|
|
6109
6126
|
}
|
|
6110
|
-
function
|
|
6111
|
-
const r =
|
|
6127
|
+
function yp(e, t, n) {
|
|
6128
|
+
const r = bp(e.direction), i = t === n.rowsCount - 1, s = {
|
|
6112
6129
|
dir: r,
|
|
6113
6130
|
initialized: !0,
|
|
6114
6131
|
field: e.by && "valuesIndex" in e.by ? n.rowsCount + n.columnsCount + e.by.valuesIndex : t
|
|
@@ -6118,30 +6135,30 @@ function bp(e, t, n) {
|
|
|
6118
6135
|
sortDetails: s
|
|
6119
6136
|
};
|
|
6120
6137
|
}
|
|
6121
|
-
function
|
|
6138
|
+
function vp(e, t) {
|
|
6122
6139
|
if (t.rowsCount === 0)
|
|
6123
6140
|
return;
|
|
6124
|
-
const n = t.rowsCount - 1, r = e[n], i = r.jaql, { sortDetails: s, sort: a } = i, o =
|
|
6141
|
+
const n = t.rowsCount - 1, r = e[n], i = r.jaql, { sortDetails: s, sort: a } = i, o = gp(i, ["sortDetails", "sort"]);
|
|
6125
6142
|
if (s && s.field !== n && s.field < e.length) {
|
|
6126
6143
|
const l = e[s.field];
|
|
6127
6144
|
l.jaql.sortDetails = s, l.jaql.sort = a, r.jaql = o;
|
|
6128
6145
|
}
|
|
6129
6146
|
}
|
|
6130
6147
|
const it = "ComposeSDK";
|
|
6131
|
-
function
|
|
6132
|
-
const { attributes: n, measures: r, filters: i, filterRelations: s, highlights: a, dataSource: o, count: u, offset: l, ungroup: d } = e, f = d && r.length === 0, c = Object.assign({ metadata:
|
|
6148
|
+
function Sp(e, t) {
|
|
6149
|
+
const { attributes: n, measures: r, filters: i, filterRelations: s, highlights: a, dataSource: o, count: u, offset: l, ungroup: d } = e, f = d && r.length === 0, c = Object.assign({ metadata: Ap({ attributes: n, measures: r, filters: i, filterRelations: s, highlights: a }, t) }, wp(o, u, l, f));
|
|
6133
6150
|
return s ? Object.assign(Object.assign({}, c), { filterRelations: s }) : c;
|
|
6134
6151
|
}
|
|
6135
6152
|
function Os(e, t, n, r, i) {
|
|
6136
|
-
const [s, a] =
|
|
6137
|
-
e.forEach((l) =>
|
|
6153
|
+
const [s, a] = pp(e, r);
|
|
6154
|
+
e.forEach((l) => hp(l, s));
|
|
6138
6155
|
const o = (l) => {
|
|
6139
6156
|
const d = l.jaql();
|
|
6140
6157
|
return n ? Array.isArray(d) ? d.map((f) => Object.assign(Object.assign({}, f), { instanceid: l.config.guid })) : Object.assign(Object.assign({}, d), { instanceid: l.config.guid }) : d;
|
|
6141
6158
|
}, u = (i ? t.flatMap((l) => o(l)) : [...t, ...a].flatMap((l) => o(l))).filter((l) => Object.keys(l.jaql.filter || {}).length !== 0);
|
|
6142
6159
|
return i && a.length > 0 && console.warn(`The following highlight filters were not applied due to missing attributes: [${a.map((l) => l.attribute.name).join(", ")}].`), u;
|
|
6143
6160
|
}
|
|
6144
|
-
function
|
|
6161
|
+
function Tp(e) {
|
|
6145
6162
|
var t, n;
|
|
6146
6163
|
const r = (t = e.jaql) === null || t === void 0 ? void 0 : t.formula;
|
|
6147
6164
|
if (!r || !r.includes("trend") && !r.includes("forecast"))
|
|
@@ -6154,20 +6171,20 @@ function Sp(e) {
|
|
|
6154
6171
|
}
|
|
6155
6172
|
return i;
|
|
6156
6173
|
}
|
|
6157
|
-
function
|
|
6158
|
-
const { attributes: n, measures: r, filters: i, filterRelations: s, highlights: a } = e, o = n.map((d) => d.jaql()), u = r.map((d) =>
|
|
6174
|
+
function Ap(e, t) {
|
|
6175
|
+
const { attributes: n, measures: r, filters: i, filterRelations: s, highlights: a } = e, o = n.map((d) => d.jaql()), u = r.map((d) => Tp(d.jaql())), l = Os(o, i, s, a, t);
|
|
6159
6176
|
return [...o, ...u, ...l];
|
|
6160
6177
|
}
|
|
6161
|
-
function
|
|
6178
|
+
function wp(e, t, n, r) {
|
|
6162
6179
|
return Object.assign(Object.assign(Object.assign({ datasource: ms(e), by: it, queryGuid: xs() }, r ? { ungroup: !0 } : {}), t ? { count: t } : {}), n ? { offset: n } : {});
|
|
6163
6180
|
}
|
|
6164
|
-
function
|
|
6165
|
-
const { rowsAttributes: n, columnsAttributes: r, measures: i, filters: s, filterRelations: a, grandTotals: o, highlights: u, dataSource: l, count: d, offset: f } = e, c = Object.assign({ metadata:
|
|
6181
|
+
function Og(e, t) {
|
|
6182
|
+
const { rowsAttributes: n, columnsAttributes: r, measures: i, filters: s, filterRelations: a, grandTotals: o, highlights: u, dataSource: l, count: d, offset: f } = e, c = Object.assign({ metadata: Ep({ rowsAttributes: n, columnsAttributes: r, measures: i, filters: s, highlights: u, filterRelations: a }, t) }, Op(l, o, d, f));
|
|
6166
6183
|
return a ? Object.assign(Object.assign({}, c), { filterRelations: a }) : c;
|
|
6167
6184
|
}
|
|
6168
6185
|
function $r(e, t, n, r) {
|
|
6169
|
-
if (
|
|
6170
|
-
const i = t === "rows" && e.sort && e.sort.direction !== "sortNone", s = Object.assign(Object.assign({}, e.attribute.jaql(!0)), i ?
|
|
6186
|
+
if (Yh(e)) {
|
|
6187
|
+
const i = t === "rows" && e.sort && e.sort.direction !== "sortNone", s = Object.assign(Object.assign({}, e.attribute.jaql(!0)), i ? yp(e.sort, n, r) : {});
|
|
6171
6188
|
e.name && (s.title = e.name);
|
|
6172
6189
|
const a = {
|
|
6173
6190
|
jaql: s,
|
|
@@ -6182,16 +6199,16 @@ function $r(e, t, n, r) {
|
|
|
6182
6199
|
field: { index: n, id: `${t}-${n}` }
|
|
6183
6200
|
};
|
|
6184
6201
|
}
|
|
6185
|
-
function
|
|
6186
|
-
return Object.assign(Object.assign({},
|
|
6202
|
+
function xp(e, t, n) {
|
|
6203
|
+
return Object.assign(Object.assign({}, Xh(e) ? se(e.measure.jaql(), {
|
|
6187
6204
|
jaql: { subtotalAgg: e.totalsCalculation },
|
|
6188
6205
|
format: Object.assign({ databars: e.dataBars || !1 }, e.shouldRequestMinMax && {
|
|
6189
6206
|
color: { type: "range" }
|
|
6190
6207
|
})
|
|
6191
6208
|
}) : e.jaql()), { panel: t, field: { index: n, id: `${t}-${n}` } });
|
|
6192
6209
|
}
|
|
6193
|
-
function
|
|
6194
|
-
const { rowsAttributes: n, columnsAttributes: r, measures: i, filters: s, filterRelations: a, highlights: o } = e, u =
|
|
6210
|
+
function Ep(e, t) {
|
|
6211
|
+
const { rowsAttributes: n, columnsAttributes: r, measures: i, filters: s, filterRelations: a, highlights: o } = e, u = mp(n, r, i);
|
|
6195
6212
|
let l = 0;
|
|
6196
6213
|
const d = n.map((b, x) => $r(b, "rows", x + l, u));
|
|
6197
6214
|
l = l + n.length;
|
|
@@ -6200,11 +6217,11 @@ function xp(e, t) {
|
|
|
6200
6217
|
const c = [
|
|
6201
6218
|
...d,
|
|
6202
6219
|
...f
|
|
6203
|
-
], m = i.map((b, x) =>
|
|
6204
|
-
return
|
|
6220
|
+
], m = i.map((b, x) => xp(b, "measures", x + l)), g = Os(c, s, a, o, t), S = [...c, ...m, ...g];
|
|
6221
|
+
return vp(S, u), S;
|
|
6205
6222
|
}
|
|
6206
|
-
function
|
|
6207
|
-
return Object.assign(Object.assign(Object.assign({ datasource: ms(e), by: it, queryGuid: xs(), dashboard: it, widget: it, format: "pivot" }, n ? { count: n } : {}), r ? { offset: r } : {}), { grandTotals: Object.assign(Object.assign({},
|
|
6223
|
+
function Op(e, t, n, r) {
|
|
6224
|
+
return Object.assign(Object.assign(Object.assign({ datasource: ms(e), by: it, queryGuid: xs(), dashboard: it, widget: it, format: "pivot" }, n ? { count: n } : {}), r ? { offset: r } : {}), { grandTotals: Object.assign(Object.assign({}, Zh), t) });
|
|
6208
6225
|
}
|
|
6209
6226
|
class Mt extends Hr {
|
|
6210
6227
|
constructor(t, n) {
|
|
@@ -6214,22 +6231,22 @@ class Mt extends Hr {
|
|
|
6214
6231
|
}, ma.t);
|
|
6215
6232
|
}
|
|
6216
6233
|
}
|
|
6217
|
-
function
|
|
6234
|
+
function Np(e) {
|
|
6218
6235
|
return "value" in e;
|
|
6219
6236
|
}
|
|
6220
|
-
function
|
|
6237
|
+
function Cp(e) {
|
|
6221
6238
|
return "valuePromise" in e;
|
|
6222
6239
|
}
|
|
6223
|
-
const
|
|
6240
|
+
const _p = (e, t) => {
|
|
6224
6241
|
const n = /* @__PURE__ */ new Map();
|
|
6225
6242
|
return {
|
|
6226
6243
|
withCache: (s) => (...a) => Un(void 0, null, function* () {
|
|
6227
6244
|
const o = e(...a);
|
|
6228
6245
|
if (n.has(o)) {
|
|
6229
6246
|
const u = n.get(o);
|
|
6230
|
-
if (Op(u))
|
|
6231
|
-
return u.value;
|
|
6232
6247
|
if (Np(u))
|
|
6248
|
+
return u.value;
|
|
6249
|
+
if (Cp(u))
|
|
6233
6250
|
return u.valuePromise;
|
|
6234
6251
|
throw new Mt("errors.unexpectedCacheValue");
|
|
6235
6252
|
} else {
|
|
@@ -6240,7 +6257,7 @@ const Cp = (e, t) => {
|
|
|
6240
6257
|
}), u.then((l) => (n.set(o, {
|
|
6241
6258
|
value: l,
|
|
6242
6259
|
createdAt: /* @__PURE__ */ new Date()
|
|
6243
|
-
}), t != null && t.cacheMaxSize && n.size > t.cacheMaxSize &&
|
|
6260
|
+
}), t != null && t.cacheMaxSize && n.size > t.cacheMaxSize && Mp(n), l));
|
|
6244
6261
|
}
|
|
6245
6262
|
}),
|
|
6246
6263
|
clearCache: (s) => {
|
|
@@ -6252,7 +6269,7 @@ const Cp = (e, t) => {
|
|
|
6252
6269
|
}
|
|
6253
6270
|
};
|
|
6254
6271
|
};
|
|
6255
|
-
function
|
|
6272
|
+
function Mp(e) {
|
|
6256
6273
|
const t = Array.from(e.keys()), n = t.reduce((r, i) => {
|
|
6257
6274
|
const s = e.get(i), a = e.get(r);
|
|
6258
6275
|
return s.createdAt < a.createdAt ? i : r;
|
|
@@ -6277,16 +6294,16 @@ const Fn = (e, t) => {
|
|
|
6277
6294
|
ungroup: d
|
|
6278
6295
|
};
|
|
6279
6296
|
};
|
|
6280
|
-
function
|
|
6297
|
+
function Dp(e, t, n) {
|
|
6281
6298
|
const r = Fn(e, t == null ? void 0 : t.defaultDataSource);
|
|
6282
6299
|
return t.queryClient.executeQuery(r, n).resultPromise.catch((i) => {
|
|
6283
6300
|
throw i.message.includes("SecondsLevelIsNotSupportedException") ? new Mt("errors.secondsDateTimeLevelSupportedOnlyForLive") : i;
|
|
6284
6301
|
});
|
|
6285
6302
|
}
|
|
6286
|
-
const
|
|
6303
|
+
const Ng = (e, t, n) => {
|
|
6287
6304
|
const r = Fn(e, t == null ? void 0 : t.defaultDataSource);
|
|
6288
6305
|
return t.queryClient.executeCsvQuery(r, n).resultPromise;
|
|
6289
|
-
},
|
|
6306
|
+
}, Cg = (e, t, n) => {
|
|
6290
6307
|
const { dataSource: r, rows: i = [], columns: s = [], values: a = [], grandTotals: o = {}, filters: u = [], filterRelations: l, highlights: d = [], count: f, offset: c } = e;
|
|
6291
6308
|
u && u.forEach((g) => g.isScope = !0), d && d.forEach((g) => g.isScope = !0);
|
|
6292
6309
|
const m = r || (t == null ? void 0 : t.defaultDataSource);
|
|
@@ -6307,19 +6324,19 @@ const Og = (e, t, n) => {
|
|
|
6307
6324
|
count: f,
|
|
6308
6325
|
offset: c
|
|
6309
6326
|
}, n).resultPromise;
|
|
6310
|
-
},
|
|
6327
|
+
}, Rp = (e) => JSON.stringify(U(y({}, Sp(e, !1)), {
|
|
6311
6328
|
queryGuid: ""
|
|
6312
|
-
})),
|
|
6329
|
+
})), Lp = (e, t) => {
|
|
6313
6330
|
const n = Fn(e, t == null ? void 0 : t.defaultDataSource);
|
|
6314
|
-
return
|
|
6315
|
-
},
|
|
6316
|
-
cacheMaxSize:
|
|
6317
|
-
}),
|
|
6331
|
+
return Rp(n);
|
|
6332
|
+
}, Fp = 250, { withCache: Ip, clearCache: Pp } = _p(Lp, {
|
|
6333
|
+
cacheMaxSize: Fp
|
|
6334
|
+
}), _g = Ip(Dp), Mg = Pp;
|
|
6318
6335
|
export {
|
|
6319
6336
|
tn as $,
|
|
6320
6337
|
A,
|
|
6321
|
-
|
|
6322
|
-
|
|
6338
|
+
Up as B,
|
|
6339
|
+
Bp as C,
|
|
6323
6340
|
yn as D,
|
|
6324
6341
|
fn as E,
|
|
6325
6342
|
ee as F,
|
|
@@ -6347,7 +6364,7 @@ export {
|
|
|
6347
6364
|
be as a,
|
|
6348
6365
|
Hi as a$,
|
|
6349
6366
|
zr as a0,
|
|
6350
|
-
|
|
6367
|
+
pg as a1,
|
|
6351
6368
|
gs as a2,
|
|
6352
6369
|
Ah as a3,
|
|
6353
6370
|
Nh as a4,
|
|
@@ -6355,16 +6372,16 @@ export {
|
|
|
6355
6372
|
p as a6,
|
|
6356
6373
|
Jt as a7,
|
|
6357
6374
|
Ss as a8,
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6375
|
+
tp as a9,
|
|
6376
|
+
Lp as aA,
|
|
6377
|
+
_g as aB,
|
|
6378
|
+
Dp as aC,
|
|
6362
6379
|
$c as aD,
|
|
6363
6380
|
Ct as aE,
|
|
6364
6381
|
_t as aF,
|
|
6365
6382
|
vn as aG,
|
|
6366
6383
|
Sn as aH,
|
|
6367
|
-
|
|
6384
|
+
ng as aI,
|
|
6368
6385
|
We as aJ,
|
|
6369
6386
|
ns as aK,
|
|
6370
6387
|
xe as aL,
|
|
@@ -6383,75 +6400,75 @@ export {
|
|
|
6383
6400
|
us as aY,
|
|
6384
6401
|
ls as aZ,
|
|
6385
6402
|
Vi as a_,
|
|
6386
|
-
|
|
6387
|
-
|
|
6403
|
+
bg as aa,
|
|
6404
|
+
np as ab,
|
|
6388
6405
|
Hr as ac,
|
|
6389
|
-
|
|
6406
|
+
sg as ad,
|
|
6390
6407
|
Hh as ae,
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6408
|
+
Og as af,
|
|
6409
|
+
Mg as ag,
|
|
6410
|
+
Cg as ah,
|
|
6394
6411
|
Hl as ai,
|
|
6395
|
-
|
|
6412
|
+
Kh as aj,
|
|
6396
6413
|
Hd as ak,
|
|
6397
|
-
|
|
6398
|
-
|
|
6414
|
+
ag as al,
|
|
6415
|
+
mg as am,
|
|
6399
6416
|
Dn as an,
|
|
6400
|
-
|
|
6417
|
+
Sg as ao,
|
|
6401
6418
|
Rn as ap,
|
|
6402
6419
|
Ln as aq,
|
|
6403
|
-
|
|
6420
|
+
yg as ar,
|
|
6404
6421
|
Ts as as,
|
|
6405
6422
|
Nf as at,
|
|
6406
6423
|
Nt as au,
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6424
|
+
Vp as av,
|
|
6425
|
+
Kp as aw,
|
|
6426
|
+
lg as ax,
|
|
6427
|
+
cg as ay,
|
|
6428
|
+
vg as az,
|
|
6412
6429
|
_i as b,
|
|
6413
|
-
|
|
6430
|
+
Xp as b$,
|
|
6414
6431
|
Ki as b0,
|
|
6415
6432
|
Gi as b1,
|
|
6416
6433
|
Qi as b2,
|
|
6417
6434
|
ki as b3,
|
|
6418
6435
|
Lf as b4,
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6436
|
+
eg as b5,
|
|
6437
|
+
Yp as b6,
|
|
6438
|
+
tg as b7,
|
|
6439
|
+
Gp as b8,
|
|
6440
|
+
Qp as b9,
|
|
6424
6441
|
Te as bA,
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
+
hg as bB,
|
|
6443
|
+
wd as bC,
|
|
6444
|
+
mn as bD,
|
|
6445
|
+
Cd as bE,
|
|
6446
|
+
xo as bF,
|
|
6447
|
+
Ni as bG,
|
|
6448
|
+
ug as bH,
|
|
6449
|
+
Ld as bI,
|
|
6450
|
+
vi as bJ,
|
|
6451
|
+
Wt as bK,
|
|
6452
|
+
Zl as bL,
|
|
6453
|
+
ft as bM,
|
|
6454
|
+
Kl as bN,
|
|
6455
|
+
$d as bO,
|
|
6456
|
+
pd as bP,
|
|
6457
|
+
zh as bQ,
|
|
6458
|
+
St as bR,
|
|
6442
6459
|
vt as bS,
|
|
6443
6460
|
yt as bT,
|
|
6444
6461
|
Rd as bU,
|
|
6445
6462
|
Xt as bV,
|
|
6446
|
-
|
|
6463
|
+
fg as bW,
|
|
6447
6464
|
Ii as bX,
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6465
|
+
Hp as bY,
|
|
6466
|
+
kp as bZ,
|
|
6467
|
+
Zp as b_,
|
|
6468
|
+
Tg as ba,
|
|
6469
|
+
Ag as bb,
|
|
6470
|
+
wg as bc,
|
|
6471
|
+
xg as bd,
|
|
6455
6472
|
Le as be,
|
|
6456
6473
|
qh as bf,
|
|
6457
6474
|
wn as bg,
|
|
@@ -6461,11 +6478,11 @@ export {
|
|
|
6461
6478
|
Dd as bk,
|
|
6462
6479
|
Ei as bl,
|
|
6463
6480
|
oi as bm,
|
|
6464
|
-
|
|
6465
|
-
|
|
6481
|
+
Ng as bn,
|
|
6482
|
+
Eg as bo,
|
|
6466
6483
|
kr as bp,
|
|
6467
6484
|
Ri as bq,
|
|
6468
|
-
|
|
6485
|
+
qp as br,
|
|
6469
6486
|
Md as bs,
|
|
6470
6487
|
Tt as bt,
|
|
6471
6488
|
Ge as bu,
|
|
@@ -6475,7 +6492,7 @@ export {
|
|
|
6475
6492
|
Wc as by,
|
|
6476
6493
|
ga as bz,
|
|
6477
6494
|
h as c,
|
|
6478
|
-
|
|
6495
|
+
Jp as c0,
|
|
6479
6496
|
X as c1,
|
|
6480
6497
|
Vt as c2,
|
|
6481
6498
|
Rf as c3,
|
|
@@ -6489,10 +6506,10 @@ export {
|
|
|
6489
6506
|
Cf as cb,
|
|
6490
6507
|
Bi as cc,
|
|
6491
6508
|
Of as cd,
|
|
6492
|
-
|
|
6509
|
+
zp as ce,
|
|
6493
6510
|
ve as cf,
|
|
6494
|
-
|
|
6495
|
-
|
|
6511
|
+
rg as cg,
|
|
6512
|
+
gg as ch,
|
|
6496
6513
|
Fn as ci,
|
|
6497
6514
|
Y as d,
|
|
6498
6515
|
Qe as e,
|
|
@@ -6501,7 +6518,7 @@ export {
|
|
|
6501
6518
|
Mn as h,
|
|
6502
6519
|
_n as i,
|
|
6503
6520
|
ys as j,
|
|
6504
|
-
|
|
6521
|
+
dg as k,
|
|
6505
6522
|
ye as l,
|
|
6506
6523
|
hi as m,
|
|
6507
6524
|
vs as n,
|
|
@@ -6511,10 +6528,10 @@ export {
|
|
|
6511
6528
|
xf as r,
|
|
6512
6529
|
Cn as s,
|
|
6513
6530
|
se as t,
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6531
|
+
Qh as u,
|
|
6532
|
+
og as v,
|
|
6533
|
+
ig as w,
|
|
6534
|
+
Sp as x,
|
|
6518
6535
|
ms as y,
|
|
6519
|
-
|
|
6536
|
+
ep as z
|
|
6520
6537
|
};
|