@sisense/sdk-ui 2.22.0 → 2.23.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 +17 -17
- package/dist/ai.js +57 -57
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +2177 -1176
- package/dist/analytics-composer.cjs +47 -47
- package/dist/analytics-composer.js +135 -131
- package/dist/dimensions-2t18RSZC.cjs +1 -0
- package/dist/dimensions-C0BmtTH2.js +204 -0
- package/dist/execute-query-CHYTupEo.js +5866 -0
- package/dist/execute-query-DmAyVFF5.cjs +1 -0
- package/dist/{index-kxX21arA.js → index-DCAC0mJe.js} +18 -1
- package/dist/{index-NyouhE_A.cjs → index-Dx6wvLd3.cjs} +1 -1
- package/dist/index.cjs +335 -322
- package/dist/index.js +15230 -15097
- package/dist/index.umd.js +687 -634
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +24 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +23 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
- package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
- package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +5 -231
- package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
- package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +34 -0
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +8 -6
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +12 -5
- package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
- package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
- package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +2 -1
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +4 -4
- package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
- package/dist/packages/sdk-ui/src/types.d.ts +3 -3
- package/dist/{quota-notification-D6oMJal8.js → quota-notification-CVl0isIV.js} +17901 -16770
- package/dist/quota-notification-RAaHp-eO.cjs +713 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +19 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +19 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +19 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +19 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +19 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +19 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +19 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +19 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +19 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +19 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +19 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +19 -2
- package/dist/{types-ixSwJkxM.js → types-B96nVbgX.js} +1 -1
- package/dist/{types-CoY6F8Ma.cjs → types-DZ4vWh8j.cjs} +1 -1
- package/dist/{utils-C8YMrOdw.cjs → utils-CgV-jWWQ.cjs} +33 -33
- package/dist/{utils-BP-BglHE.js → utils-ChqSLRbz.js} +3742 -3774
- package/dist/{widget-composer-DI4sHaNe.cjs → widget-composer-Blul90Zb.cjs} +1 -1
- package/dist/{widget-composer-CUUFoCb9.js → widget-composer-Cf_CN3Ux.js} +8 -8
- package/package.json +10 -8
- package/dist/dimensions-BiLyFpCg.js +0 -202
- package/dist/dimensions-X4_igtmO.cjs +0 -1
- package/dist/execute-query-BEeqqDl6.js +0 -5795
- package/dist/execute-query-DJDE0zRU.cjs +0 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
- package/dist/quota-notification-z3dv2KoH.cjs +0 -672
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var Xs = Object.defineProperty, Zs = Object.defineProperties;
|
|
2
2
|
var en = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ve = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var Jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var lt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s), tn = (s) => {
|
|
6
6
|
throw TypeError(s);
|
|
7
7
|
};
|
|
8
8
|
var at = (s, e, t) => e in s ? Xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
|
|
9
9
|
for (var t in e || (e = {}))
|
|
10
|
-
|
|
10
|
+
Jt.call(e, t) && at(s, t, e[t]);
|
|
11
11
|
if (ve)
|
|
12
12
|
for (var t of ve(e))
|
|
13
|
-
|
|
13
|
+
Vt.call(e, t) && at(s, t, e[t]);
|
|
14
14
|
return s;
|
|
15
15
|
}, G = (s, e) => Zs(s, en(e));
|
|
16
16
|
var Qt = (s, e) => {
|
|
17
17
|
var t = {};
|
|
18
18
|
for (var n in s)
|
|
19
|
-
|
|
19
|
+
Jt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
|
|
20
20
|
if (s != null && ve)
|
|
21
21
|
for (var n of ve(s))
|
|
22
|
-
e.indexOf(n) < 0 &&
|
|
22
|
+
e.indexOf(n) < 0 && Vt.call(s, n) && (t[n] = s[n]);
|
|
23
23
|
return t;
|
|
24
24
|
};
|
|
25
25
|
var ct = (s, e, t) => at(s, typeof e != "symbol" ? e + "" : e, t);
|
|
@@ -59,14 +59,14 @@ var d = (s) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in e && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { E as Yt, a as nn } from "./types-
|
|
63
|
-
import { b as xi, i as zi, e as Xi, d as Zi } from "./types-
|
|
64
|
-
import { s as rn, c as on, p as ln, v as an, g as cn, a as
|
|
65
|
-
import { k as tr, m as sr, j as nr, l as ir, i as rr, w as or } from "./widget-composer-
|
|
66
|
-
import { n as fn, d as un, i as hn, a as dn } from "./utils-
|
|
67
|
-
import { CustomSuperJSON as ar,
|
|
68
|
-
import { k as pn,
|
|
69
|
-
const Lt = Symbol.for("yaml.alias"), bt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), os = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === Lt, ge = (s) => !!s && typeof s == "object" && s[F] === bt, be = (s) => !!s && typeof s == "object" && s[F] === H,
|
|
62
|
+
import { E as Yt, a as nn } from "./types-B96nVbgX.js";
|
|
63
|
+
import { b as xi, i as zi, e as Xi, d as Zi } from "./types-B96nVbgX.js";
|
|
64
|
+
import { s as rn, c as on, p as ln, v as an, g as cn, a as V, b as Ye, d as Tt, e as It, f as Et, h as At, C as Te } from "./widget-composer-Cf_CN3Ux.js";
|
|
65
|
+
import { k as tr, m as sr, j as nr, l as ir, i as rr, w as or } from "./widget-composer-Cf_CN3Ux.js";
|
|
66
|
+
import { n as fn, d as un, i as hn, a as dn } from "./utils-ChqSLRbz.js";
|
|
67
|
+
import { CustomSuperJSON as ar, translateChartFromJSON as cr, translateChartToJSON as fr, translatePivotTableFromJSON as ur, translatePivotTableToJSON as hr, translateQueryFromJSON as dr, translateQueryToJSON as pr, translateQueryToJaql as mr } from "./analytics-composer/node.js";
|
|
68
|
+
import { k as pn, m as Wt, l as mn } from "./execute-query-CHYTupEo.js";
|
|
69
|
+
const Lt = Symbol.for("yaml.alias"), bt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), os = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === Lt, ge = (s) => !!s && typeof s == "object" && s[F] === bt, be = (s) => !!s && typeof s == "object" && s[F] === H, A = (s) => !!s && typeof s == "object" && s[F] === os, E = (s) => !!s && typeof s == "object" && s[F] === W, we = (s) => !!s && typeof s == "object" && s[F] === ye;
|
|
70
70
|
function C(s) {
|
|
71
71
|
if (s && typeof s == "object")
|
|
72
72
|
switch (s[F]) {
|
|
@@ -87,7 +87,7 @@ function M(s) {
|
|
|
87
87
|
}
|
|
88
88
|
return !1;
|
|
89
89
|
}
|
|
90
|
-
const yn = (s) => (
|
|
90
|
+
const yn = (s) => (E(s) || C(s)) && !!s.anchor, P = Symbol("break visit"), ls = Symbol("skip children"), Q = Symbol("remove node");
|
|
91
91
|
function x(s, e) {
|
|
92
92
|
const t = as(e);
|
|
93
93
|
ge(s) ? ae(null, s.contents, t, Object.freeze([s])) === Q && (s.contents = null) : ae(null, s, t, Object.freeze([]));
|
|
@@ -97,7 +97,7 @@ x.SKIP = ls;
|
|
|
97
97
|
x.REMOVE = Q;
|
|
98
98
|
function ae(s, e, t, n) {
|
|
99
99
|
const i = cs(s, e, t, n);
|
|
100
|
-
if (M(i) ||
|
|
100
|
+
if (M(i) || A(i))
|
|
101
101
|
return fs(s, n, i), ae(s, i, t, n);
|
|
102
102
|
if (typeof i != "symbol") {
|
|
103
103
|
if (C(e)) {
|
|
@@ -112,7 +112,7 @@ function ae(s, e, t, n) {
|
|
|
112
112
|
o === Q && (e.items.splice(r, 1), r -= 1);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
} else if (
|
|
115
|
+
} else if (A(e)) {
|
|
116
116
|
n = Object.freeze(n.concat(e));
|
|
117
117
|
const r = ae("key", e.key, t, n);
|
|
118
118
|
if (r === P)
|
|
@@ -138,7 +138,7 @@ We.REMOVE = Q;
|
|
|
138
138
|
function ce(s, e, t, n) {
|
|
139
139
|
return ft(this, null, function* () {
|
|
140
140
|
const i = yield cs(s, e, t, n);
|
|
141
|
-
if (M(i) ||
|
|
141
|
+
if (M(i) || A(i))
|
|
142
142
|
return fs(s, n, i), ce(s, i, t, n);
|
|
143
143
|
if (typeof i != "symbol") {
|
|
144
144
|
if (C(e)) {
|
|
@@ -153,7 +153,7 @@ function ce(s, e, t, n) {
|
|
|
153
153
|
o === Q && (e.items.splice(r, 1), r -= 1);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
} else if (
|
|
156
|
+
} else if (A(e)) {
|
|
157
157
|
n = Object.freeze(n.concat(e));
|
|
158
158
|
const r = yield ce("key", e.key, t, n);
|
|
159
159
|
if (r === P)
|
|
@@ -191,9 +191,9 @@ function cs(s, e, t, n) {
|
|
|
191
191
|
return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
|
|
192
192
|
if (we(e))
|
|
193
193
|
return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
|
|
194
|
-
if (E(e))
|
|
195
|
-
return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
|
|
196
194
|
if (A(e))
|
|
195
|
+
return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
|
|
196
|
+
if (E(e))
|
|
197
197
|
return (l = t.Scalar) == null ? void 0 : l.call(t, s, e, n);
|
|
198
198
|
if (ie(e))
|
|
199
199
|
return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
|
|
@@ -202,7 +202,7 @@ function fs(s, e, t) {
|
|
|
202
202
|
const n = e[e.length - 1];
|
|
203
203
|
if (C(n))
|
|
204
204
|
n.items[s] = t;
|
|
205
|
-
else if (
|
|
205
|
+
else if (A(n))
|
|
206
206
|
s === "key" ? n.key = t : n.value = t;
|
|
207
207
|
else if (ge(n))
|
|
208
208
|
n.contents = t;
|
|
@@ -368,7 +368,7 @@ function wn(s, e) {
|
|
|
368
368
|
setAnchors: () => {
|
|
369
369
|
for (const r of t) {
|
|
370
370
|
const o = n.get(r);
|
|
371
|
-
if (typeof o == "object" && o.anchor && (
|
|
371
|
+
if (typeof o == "object" && o.anchor && (E(o.node) || C(o.node)))
|
|
372
372
|
o.node.anchor = o.anchor;
|
|
373
373
|
else {
|
|
374
374
|
const l = new Error("Failed to resolve repeated object (this should not happen)");
|
|
@@ -510,7 +510,7 @@ function Ke(s, e, t) {
|
|
|
510
510
|
r > n && (n = r);
|
|
511
511
|
}
|
|
512
512
|
return n;
|
|
513
|
-
} else if (
|
|
513
|
+
} else if (A(e)) {
|
|
514
514
|
const n = Ke(s, e.key, t), i = Ke(s, e.value, t);
|
|
515
515
|
return Math.max(n, i);
|
|
516
516
|
}
|
|
@@ -547,11 +547,11 @@ function kn(s, e, t) {
|
|
|
547
547
|
return ((r = i.identify) == null ? void 0 : r.call(i, s)) && !i.format;
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Ae(s, e, t) {
|
|
551
551
|
var f, p, m;
|
|
552
552
|
if (ge(s) && (s = s.contents), M(s))
|
|
553
553
|
return s;
|
|
554
|
-
if (
|
|
554
|
+
if (A(s)) {
|
|
555
555
|
const y = (p = (f = t.schema[H]).createNode) == null ? void 0 : p.call(f, t.schema, null, t);
|
|
556
556
|
return y.items.push(s), y;
|
|
557
557
|
}
|
|
@@ -586,7 +586,7 @@ function Ue(s, e, t) {
|
|
|
586
586
|
} else
|
|
587
587
|
n = /* @__PURE__ */ new Map([[r, n]]);
|
|
588
588
|
}
|
|
589
|
-
return
|
|
589
|
+
return Ae(n, void 0, {
|
|
590
590
|
aliasDuplicateObjects: !1,
|
|
591
591
|
keepUndefined: !1,
|
|
592
592
|
onAnchor: () => {
|
|
@@ -613,7 +613,7 @@ class ms extends Ct {
|
|
|
613
613
|
*/
|
|
614
614
|
clone(e) {
|
|
615
615
|
const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
616
|
-
return e && (t.schema = e), t.items = t.items.map((n) => M(n) ||
|
|
616
|
+
return e && (t.schema = e), t.items = t.items.map((n) => M(n) || A(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* Adds a value to the collection. For `!!map` and `!!omap` the value must
|
|
@@ -653,14 +653,14 @@ class ms extends Ct {
|
|
|
653
653
|
*/
|
|
654
654
|
getIn(e, t) {
|
|
655
655
|
const [n, ...i] = e, r = this.get(n, !0);
|
|
656
|
-
return i.length === 0 ? !t &&
|
|
656
|
+
return i.length === 0 ? !t && E(r) ? r.value : r : C(r) ? r.getIn(i, t) : void 0;
|
|
657
657
|
}
|
|
658
658
|
hasAllNullValues(e) {
|
|
659
659
|
return this.items.every((t) => {
|
|
660
|
-
if (!
|
|
660
|
+
if (!A(t))
|
|
661
661
|
return !1;
|
|
662
662
|
const n = t.value;
|
|
663
|
-
return n == null || e &&
|
|
663
|
+
return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
/**
|
|
@@ -801,7 +801,7 @@ function Nn(s, e, t) {
|
|
|
801
801
|
}
|
|
802
802
|
return !0;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Ee(s, e) {
|
|
805
805
|
const t = JSON.stringify(s);
|
|
806
806
|
if (e.options.doubleQuotedAsJSON)
|
|
807
807
|
return t;
|
|
@@ -865,7 +865,7 @@ function Ae(s, e) {
|
|
|
865
865
|
function St(s, e) {
|
|
866
866
|
if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
|
|
867
867
|
`) || /[ \t]\n|\n[ \t]/.test(s))
|
|
868
|
-
return
|
|
868
|
+
return Ee(s, e);
|
|
869
869
|
const t = e.indent || (ze(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
870
870
|
${t}`) + "'";
|
|
871
871
|
return e.implicitKey ? n : He(n, t, ys, xe(e, !1));
|
|
@@ -874,10 +874,10 @@ function ue(s, e) {
|
|
|
874
874
|
const { singleQuote: t } = e.options;
|
|
875
875
|
let n;
|
|
876
876
|
if (t === !1)
|
|
877
|
-
n =
|
|
877
|
+
n = Ee;
|
|
878
878
|
else {
|
|
879
879
|
const i = s.includes('"'), r = s.includes("'");
|
|
880
|
-
i && !r ? n = St : r && !i ? n =
|
|
880
|
+
i && !r ? n = St : r && !i ? n = Ee : n = t ? St : Ee;
|
|
881
881
|
}
|
|
882
882
|
return n(s, e);
|
|
883
883
|
}
|
|
@@ -973,7 +973,7 @@ function $e(s, e, t, n) {
|
|
|
973
973
|
case O.BLOCK_LITERAL:
|
|
974
974
|
return i || r ? ue(o.value, e) : Fe(o, e, t, n);
|
|
975
975
|
case O.QUOTE_DOUBLE:
|
|
976
|
-
return
|
|
976
|
+
return Ee(o.value, e);
|
|
977
977
|
case O.QUOTE_SINGLE:
|
|
978
978
|
return St(o.value, e);
|
|
979
979
|
case O.PLAIN:
|
|
@@ -1039,7 +1039,7 @@ function In(s, e) {
|
|
|
1039
1039
|
return (i = a.find((c) => c.format === e.format)) != null ? i : a[0];
|
|
1040
1040
|
}
|
|
1041
1041
|
let t, n;
|
|
1042
|
-
if (
|
|
1042
|
+
if (E(e)) {
|
|
1043
1043
|
n = e.value;
|
|
1044
1044
|
const a = s.filter((c) => {
|
|
1045
1045
|
var h;
|
|
@@ -1054,17 +1054,17 @@ function In(s, e) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return t;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function En(s, e, { anchors: t, doc: n }) {
|
|
1058
1058
|
if (!n.directives)
|
|
1059
1059
|
return "";
|
|
1060
|
-
const i = [], r = (
|
|
1060
|
+
const i = [], r = (E(s) || C(s)) && s.anchor;
|
|
1061
1061
|
r && us(r) && (t.add(r), i.push(`&${r}`));
|
|
1062
1062
|
const o = s.tag ? s.tag : e.default ? null : e.tag;
|
|
1063
1063
|
return o && i.push(n.directives.tagString(o)), i.join(" ");
|
|
1064
1064
|
}
|
|
1065
1065
|
function pe(s, e, t, n) {
|
|
1066
1066
|
var a, c;
|
|
1067
|
-
if (
|
|
1067
|
+
if (A(s))
|
|
1068
1068
|
return s.toString(e, t, n);
|
|
1069
1069
|
if (ie(s)) {
|
|
1070
1070
|
if (e.doc.directives)
|
|
@@ -1076,13 +1076,13 @@ function pe(s, e, t, n) {
|
|
|
1076
1076
|
let i;
|
|
1077
1077
|
const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
|
|
1078
1078
|
i || (i = In(e.doc.schema.tags, r));
|
|
1079
|
-
const o =
|
|
1079
|
+
const o = En(r, i, e);
|
|
1080
1080
|
o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
|
|
1081
|
-
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) :
|
|
1082
|
-
return o ?
|
|
1081
|
+
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? $e(r, e, t, n) : r.toString(e, t, n);
|
|
1082
|
+
return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
|
|
1083
1083
|
${e.indent}${l}` : l;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function An({ key: s, value: e }, t, n, i) {
|
|
1086
1086
|
var $, w;
|
|
1087
1087
|
const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
|
|
1088
1088
|
let p = M(s) && s.comment || null;
|
|
@@ -1094,7 +1094,7 @@ function En({ key: s, value: e }, t, n, i) {
|
|
|
1094
1094
|
throw new Error(L);
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
let m = !f && (!s || p && e == null && !t.inFlow || C(s) || (
|
|
1097
|
+
let m = !f && (!s || p && e == null && !t.inFlow || C(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
|
|
1098
1098
|
t = Object.assign({}, t, {
|
|
1099
1099
|
allNullValues: !1,
|
|
1100
1100
|
implicitKey: !m && (f || !r),
|
|
@@ -1114,7 +1114,7 @@ function En({ key: s, value: e }, t, n, i) {
|
|
|
1114
1114
|
y && (p = null), m ? (p && (g += ee(g, t.indent, c(p))), g = `? ${g}
|
|
1115
1115
|
${l}:`) : (g = `${g}:`, p && (g += ee(g, t.indent, c(p))));
|
|
1116
1116
|
let b, S, I;
|
|
1117
|
-
M(e) ? (b = !!e.spaceBefore, S = e.commentBefore, I = e.comment) : (b = !1, S = null, I = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !m && !p &&
|
|
1117
|
+
M(e) ? (b = !!e.spaceBefore, S = e.commentBefore, I = e.comment) : (b = !1, S = null, I = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !m && !p && E(e) && (t.indentAtStart = g.length + 1), u = !1, !h && a.length >= 2 && !t.inFlow && !m && we(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
1118
1118
|
let k = !1;
|
|
1119
1119
|
const N = pe(e, t, () => k = !0, () => u = !0);
|
|
1120
1120
|
let T = " ";
|
|
@@ -1178,7 +1178,7 @@ function ws(s, e, { key: t, value: n }) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
return e;
|
|
1180
1180
|
}
|
|
1181
|
-
const Ln = (s) => s === Ht ||
|
|
1181
|
+
const Ln = (s) => s === Ht || E(s) && s.value === Ht && (!s.type || s.type === O.PLAIN);
|
|
1182
1182
|
function ut(s, e, t) {
|
|
1183
1183
|
const n = s && ie(t) ? t.resolve(s.doc) : t;
|
|
1184
1184
|
if (!be(n))
|
|
@@ -1214,7 +1214,7 @@ function Cn(s, e, t) {
|
|
|
1214
1214
|
return JSON.stringify(e);
|
|
1215
1215
|
}
|
|
1216
1216
|
function $t(s, e, t) {
|
|
1217
|
-
const n =
|
|
1217
|
+
const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
|
|
1218
1218
|
return new j(n, i);
|
|
1219
1219
|
}
|
|
1220
1220
|
class j {
|
|
@@ -1230,7 +1230,7 @@ class j {
|
|
|
1230
1230
|
return ws(t, n, this);
|
|
1231
1231
|
}
|
|
1232
1232
|
toString(e, t, n) {
|
|
1233
|
-
return e != null && e.doc ?
|
|
1233
|
+
return e != null && e.doc ? An(this, e, t, n) : JSON.stringify(this);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
function Ss(s, e, t) {
|
|
@@ -1245,10 +1245,10 @@ function $n({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
|
|
|
1245
1245
|
const u = e[y];
|
|
1246
1246
|
let g = null;
|
|
1247
1247
|
if (M(u))
|
|
1248
|
-
!f && u.spaceBefore && p.push(""),
|
|
1249
|
-
else if (
|
|
1248
|
+
!f && u.spaceBefore && p.push(""), Je(t, p, u.commentBefore, f), u.comment && (g = u.comment);
|
|
1249
|
+
else if (A(u)) {
|
|
1250
1250
|
const S = M(u.key) ? u.key : null;
|
|
1251
|
-
S && (!f && S.spaceBefore && p.push(""),
|
|
1251
|
+
S && (!f && S.spaceBefore && p.push(""), Je(t, p, S.commentBefore, f));
|
|
1252
1252
|
}
|
|
1253
1253
|
f = !1;
|
|
1254
1254
|
let b = pe(u, h, () => g = null, () => f = !0);
|
|
@@ -1283,10 +1283,10 @@ function _n({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
|
1283
1283
|
const u = s[y];
|
|
1284
1284
|
let g = null;
|
|
1285
1285
|
if (M(u))
|
|
1286
|
-
u.spaceBefore && f.push(""),
|
|
1287
|
-
else if (
|
|
1286
|
+
u.spaceBefore && f.push(""), Je(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
|
|
1287
|
+
else if (A(u)) {
|
|
1288
1288
|
const S = M(u.key) ? u.key : null;
|
|
1289
|
-
S && (S.spaceBefore && f.push(""),
|
|
1289
|
+
S && (S.spaceBefore && f.push(""), Je(e, f, S.commentBefore, !1), S.comment && (c = !0));
|
|
1290
1290
|
const I = M(u.value) ? u.value : null;
|
|
1291
1291
|
I ? (I.comment && (g = I.comment), I.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (g = S.comment);
|
|
1292
1292
|
}
|
|
@@ -1313,16 +1313,16 @@ ${i}${m}`;
|
|
|
1313
1313
|
} else
|
|
1314
1314
|
return `${p}${o}${f.join(" ")}${o}${m}`;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Je({ indent: s, options: { commentString: e } }, t, n, i) {
|
|
1317
1317
|
if (n && i && (n = n.replace(/^\n+/, "")), n) {
|
|
1318
1318
|
const r = Y(e(n), s);
|
|
1319
1319
|
t.push(r.trimStart());
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
function te(s, e) {
|
|
1323
|
-
const t =
|
|
1323
|
+
const t = E(e) ? e.value : e;
|
|
1324
1324
|
for (const n of s)
|
|
1325
|
-
if (
|
|
1325
|
+
if (A(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
|
|
1326
1326
|
return n;
|
|
1327
1327
|
}
|
|
1328
1328
|
class K extends ms {
|
|
@@ -1361,12 +1361,12 @@ class K extends ms {
|
|
|
1361
1361
|
add(e, t) {
|
|
1362
1362
|
var o;
|
|
1363
1363
|
let n;
|
|
1364
|
-
|
|
1364
|
+
A(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new j(e, e == null ? void 0 : e.value) : n = new j(e.key, e.value);
|
|
1365
1365
|
const i = te(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
|
|
1366
1366
|
if (i) {
|
|
1367
1367
|
if (!t)
|
|
1368
1368
|
throw new Error(`Key ${n.key} already set`);
|
|
1369
|
-
|
|
1369
|
+
E(i.value) && ps(n.value) ? i.value.value = n.value : i.value = n.value;
|
|
1370
1370
|
} else if (r) {
|
|
1371
1371
|
const l = this.items.findIndex((a) => r(n, a) < 0);
|
|
1372
1372
|
l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
|
|
@@ -1380,7 +1380,7 @@ class K extends ms {
|
|
|
1380
1380
|
get(e, t) {
|
|
1381
1381
|
var r;
|
|
1382
1382
|
const n = te(this.items, e), i = n == null ? void 0 : n.value;
|
|
1383
|
-
return (r = !t &&
|
|
1383
|
+
return (r = !t && E(i) ? i.value : i) != null ? r : void 0;
|
|
1384
1384
|
}
|
|
1385
1385
|
has(e) {
|
|
1386
1386
|
return !!te(this.items, e);
|
|
@@ -1404,7 +1404,7 @@ class K extends ms {
|
|
|
1404
1404
|
if (!e)
|
|
1405
1405
|
return JSON.stringify(this);
|
|
1406
1406
|
for (const i of this.items)
|
|
1407
|
-
if (!
|
|
1407
|
+
if (!A(i))
|
|
1408
1408
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
|
|
1409
1409
|
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Ss(this, e, {
|
|
1410
1410
|
blockItemPrefix: "",
|
|
@@ -1452,7 +1452,7 @@ class z extends ms {
|
|
|
1452
1452
|
if (typeof n != "number")
|
|
1453
1453
|
return;
|
|
1454
1454
|
const i = this.items[n];
|
|
1455
|
-
return !t &&
|
|
1455
|
+
return !t && E(i) ? i.value : i;
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Checks if the collection includes a value with the key `key`.
|
|
@@ -1476,7 +1476,7 @@ class z extends ms {
|
|
|
1476
1476
|
if (typeof n != "number")
|
|
1477
1477
|
throw new Error(`Expected a valid index, not ${e}.`);
|
|
1478
1478
|
const i = this.items[n];
|
|
1479
|
-
|
|
1479
|
+
E(i) && ps(t) ? i.value = t : this.items[n] = t;
|
|
1480
1480
|
}
|
|
1481
1481
|
toJSON(e, t) {
|
|
1482
1482
|
const n = [];
|
|
@@ -1504,14 +1504,14 @@ class z extends ms {
|
|
|
1504
1504
|
const a = t instanceof Set ? l : String(o++);
|
|
1505
1505
|
l = i.call(t, a, l);
|
|
1506
1506
|
}
|
|
1507
|
-
r.items.push(
|
|
1507
|
+
r.items.push(Ae(l, void 0, n));
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
1510
|
return r;
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
function Be(s) {
|
|
1514
|
-
let e =
|
|
1514
|
+
let e = E(s) ? s.value : s;
|
|
1515
1515
|
return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
|
|
1516
1516
|
}
|
|
1517
1517
|
const ke = {
|
|
@@ -1554,7 +1554,7 @@ const ke = {
|
|
|
1554
1554
|
return e ? t.options.trueStr : t.options.falseStr;
|
|
1555
1555
|
}
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function J({ format: s, minFractionDigits: e, tag: t, value: n }) {
|
|
1558
1558
|
if (typeof n == "bigint")
|
|
1559
1559
|
return String(n);
|
|
1560
1560
|
const i = typeof n == "number" ? n : Number(n);
|
|
@@ -1576,7 +1576,7 @@ const ks = {
|
|
|
1576
1576
|
tag: "tag:yaml.org,2002:float",
|
|
1577
1577
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
1578
1578
|
resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
1579
|
-
stringify:
|
|
1579
|
+
stringify: J
|
|
1580
1580
|
}, Os = {
|
|
1581
1581
|
identify: (s) => typeof s == "number",
|
|
1582
1582
|
default: !0,
|
|
@@ -1586,7 +1586,7 @@ const ks = {
|
|
|
1586
1586
|
resolve: (s) => parseFloat(s),
|
|
1587
1587
|
stringify(s) {
|
|
1588
1588
|
const e = Number(s.value);
|
|
1589
|
-
return isFinite(e) ? e.toExponential() :
|
|
1589
|
+
return isFinite(e) ? e.toExponential() : J(s);
|
|
1590
1590
|
}
|
|
1591
1591
|
}, Ns = {
|
|
1592
1592
|
identify: (s) => typeof s == "number",
|
|
@@ -1597,11 +1597,11 @@ const ks = {
|
|
|
1597
1597
|
const e = new O(parseFloat(s)), t = s.indexOf(".");
|
|
1598
1598
|
return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
|
|
1599
1599
|
},
|
|
1600
|
-
stringify:
|
|
1600
|
+
stringify: J
|
|
1601
1601
|
}, et = (s) => typeof s == "bigint" || Number.isInteger(s), Mt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
|
|
1602
1602
|
function Ts(s, e, t) {
|
|
1603
1603
|
const { value: n } = s;
|
|
1604
|
-
return et(n) && n >= 0 ? t + n.toString(e) :
|
|
1604
|
+
return et(n) && n >= 0 ? t + n.toString(e) : J(s);
|
|
1605
1605
|
}
|
|
1606
1606
|
const Is = {
|
|
1607
1607
|
identify: (s) => et(s) && s >= 0,
|
|
@@ -1611,14 +1611,14 @@ const Is = {
|
|
|
1611
1611
|
test: /^0o[0-7]+$/,
|
|
1612
1612
|
resolve: (s, e, t) => Mt(s, 2, 8, t),
|
|
1613
1613
|
stringify: (s) => Ts(s, 8, "0o")
|
|
1614
|
-
},
|
|
1614
|
+
}, Es = {
|
|
1615
1615
|
identify: et,
|
|
1616
1616
|
default: !0,
|
|
1617
1617
|
tag: "tag:yaml.org,2002:int",
|
|
1618
1618
|
test: /^[-+]?[0-9]+$/,
|
|
1619
1619
|
resolve: (s, e, t) => Mt(s, 0, 10, t),
|
|
1620
|
-
stringify:
|
|
1621
|
-
},
|
|
1620
|
+
stringify: J
|
|
1621
|
+
}, As = {
|
|
1622
1622
|
identify: (s) => et(s) && s >= 0,
|
|
1623
1623
|
default: !0,
|
|
1624
1624
|
tag: "tag:yaml.org,2002:int",
|
|
@@ -1633,8 +1633,8 @@ const Is = {
|
|
|
1633
1633
|
Ze,
|
|
1634
1634
|
_t,
|
|
1635
1635
|
Is,
|
|
1636
|
-
As,
|
|
1637
1636
|
Es,
|
|
1637
|
+
As,
|
|
1638
1638
|
ks,
|
|
1639
1639
|
Os,
|
|
1640
1640
|
Ns
|
|
@@ -1741,7 +1741,7 @@ function Ls(s, e) {
|
|
|
1741
1741
|
if (we(s))
|
|
1742
1742
|
for (let n = 0; n < s.items.length; ++n) {
|
|
1743
1743
|
let i = s.items[n];
|
|
1744
|
-
if (!
|
|
1744
|
+
if (!A(i)) {
|
|
1745
1745
|
if (be(i)) {
|
|
1746
1746
|
i.items.length > 1 && e("Each pair must have its own sequence indicator");
|
|
1747
1747
|
const r = i.items[0] || new j(new O(null));
|
|
@@ -1753,7 +1753,7 @@ ${o.comment}` : i.comment;
|
|
|
1753
1753
|
}
|
|
1754
1754
|
i = r;
|
|
1755
1755
|
}
|
|
1756
|
-
s.items[n] =
|
|
1756
|
+
s.items[n] = A(i) ? i : new j(i);
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
1759
|
else
|
|
@@ -1807,7 +1807,7 @@ class he extends z {
|
|
|
1807
1807
|
t != null && t.onCreate && t.onCreate(n);
|
|
1808
1808
|
for (const i of this.items) {
|
|
1809
1809
|
let r, o;
|
|
1810
|
-
if (
|
|
1810
|
+
if (A(i) ? (r = q(i.key, "", t), o = q(i.value, r, t)) : r = q(i, "", t), n.has(r))
|
|
1811
1811
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
1812
1812
|
n.set(r, o);
|
|
1813
1813
|
}
|
|
@@ -1828,7 +1828,7 @@ const jt = {
|
|
|
1828
1828
|
resolve(s, e) {
|
|
1829
1829
|
const t = Ls(s, e), n = [];
|
|
1830
1830
|
for (const { key: i } of t.items)
|
|
1831
|
-
|
|
1831
|
+
E(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
|
|
1832
1832
|
return Object.assign(new he(), t);
|
|
1833
1833
|
},
|
|
1834
1834
|
createNode: (s, e, t) => he.from(s, e, t)
|
|
@@ -1856,7 +1856,7 @@ const _s = {
|
|
|
1856
1856
|
tag: "tag:yaml.org,2002:float",
|
|
1857
1857
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
1858
1858
|
resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
1859
|
-
stringify:
|
|
1859
|
+
stringify: J
|
|
1860
1860
|
}, Pn = {
|
|
1861
1861
|
identify: (s) => typeof s == "number",
|
|
1862
1862
|
default: !0,
|
|
@@ -1866,7 +1866,7 @@ const _s = {
|
|
|
1866
1866
|
resolve: (s) => parseFloat(s.replace(/_/g, "")),
|
|
1867
1867
|
stringify(s) {
|
|
1868
1868
|
const e = Number(s.value);
|
|
1869
|
-
return isFinite(e) ? e.toExponential() :
|
|
1869
|
+
return isFinite(e) ? e.toExponential() : J(s);
|
|
1870
1870
|
}
|
|
1871
1871
|
}, Kn = {
|
|
1872
1872
|
identify: (s) => typeof s == "number",
|
|
@@ -1881,7 +1881,7 @@ const _s = {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
return e;
|
|
1883
1883
|
},
|
|
1884
|
-
stringify:
|
|
1884
|
+
stringify: J
|
|
1885
1885
|
}, _e = (s) => typeof s == "bigint" || Number.isInteger(s);
|
|
1886
1886
|
function tt(s, e, t, { intAsBigInt: n }) {
|
|
1887
1887
|
const i = s[0];
|
|
@@ -1909,7 +1909,7 @@ function Dt(s, e, t) {
|
|
|
1909
1909
|
const i = n.toString(e);
|
|
1910
1910
|
return n < 0 ? "-" + t + i.substr(1) : t + i;
|
|
1911
1911
|
}
|
|
1912
|
-
return
|
|
1912
|
+
return J(s);
|
|
1913
1913
|
}
|
|
1914
1914
|
const qn = {
|
|
1915
1915
|
identify: _e,
|
|
@@ -1933,7 +1933,7 @@ const qn = {
|
|
|
1933
1933
|
tag: "tag:yaml.org,2002:int",
|
|
1934
1934
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
1935
1935
|
resolve: (s, e, t) => tt(s, 0, 10, t),
|
|
1936
|
-
stringify:
|
|
1936
|
+
stringify: J
|
|
1937
1937
|
}, Un = {
|
|
1938
1938
|
identify: _e,
|
|
1939
1939
|
default: !0,
|
|
@@ -1949,7 +1949,7 @@ class de extends K {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
add(e) {
|
|
1951
1951
|
let t;
|
|
1952
|
-
|
|
1952
|
+
A(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new j(e.key, null) : t = new j(e, null), te(this.items, t.key) || this.items.push(t);
|
|
1953
1953
|
}
|
|
1954
1954
|
/**
|
|
1955
1955
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
@@ -1957,7 +1957,7 @@ class de extends K {
|
|
|
1957
1957
|
*/
|
|
1958
1958
|
get(e, t) {
|
|
1959
1959
|
const n = te(this.items, e);
|
|
1960
|
-
return !t &&
|
|
1960
|
+
return !t && A(n) ? E(n.key) ? n.key.value : n.key : n;
|
|
1961
1961
|
}
|
|
1962
1962
|
set(e, t) {
|
|
1963
1963
|
if (typeof t != "boolean")
|
|
@@ -2010,7 +2010,7 @@ function vs(s) {
|
|
|
2010
2010
|
if (typeof e == "bigint")
|
|
2011
2011
|
t = (o) => BigInt(o);
|
|
2012
2012
|
else if (isNaN(e) || !isFinite(e))
|
|
2013
|
-
return
|
|
2013
|
+
return J(s);
|
|
2014
2014
|
let n = "";
|
|
2015
2015
|
e < 0 && (n = "-", e *= t(-1));
|
|
2016
2016
|
const i = t(60), r = [e % i];
|
|
@@ -2088,8 +2088,8 @@ const Bs = {
|
|
|
2088
2088
|
floatExp: Os,
|
|
2089
2089
|
floatNaN: ks,
|
|
2090
2090
|
floatTime: js,
|
|
2091
|
-
int:
|
|
2092
|
-
intHex:
|
|
2091
|
+
int: Es,
|
|
2092
|
+
intHex: As,
|
|
2093
2093
|
intOct: Is,
|
|
2094
2094
|
intTime: Bs,
|
|
2095
2095
|
map: Se,
|
|
@@ -2099,7 +2099,7 @@ const Bs = {
|
|
|
2099
2099
|
seq: ke,
|
|
2100
2100
|
set: Pt,
|
|
2101
2101
|
timestamp: st
|
|
2102
|
-
},
|
|
2102
|
+
}, Jn = {
|
|
2103
2103
|
"tag:yaml.org,2002:binary": vt,
|
|
2104
2104
|
"tag:yaml.org,2002:omap": jt,
|
|
2105
2105
|
"tag:yaml.org,2002:pairs": Bt,
|
|
@@ -2129,10 +2129,10 @@ function ht(s, e) {
|
|
|
2129
2129
|
throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
|
-
const
|
|
2132
|
+
const Vn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2133
2133
|
class nt {
|
|
2134
2134
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
|
|
2135
|
-
this.compat = Array.isArray(e) ? ht(e, "compat") : e ? ht(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ?
|
|
2135
|
+
this.compat = Array.isArray(e) ? ht(e, "compat") : e ? ht(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Jn : {}, this.tags = ht(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, H, { value: Se }), Object.defineProperty(this, W, { value: Xe }), Object.defineProperty(this, ye, { value: ke }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Vn : null;
|
|
2136
2136
|
}
|
|
2137
2137
|
clone() {
|
|
2138
2138
|
const e = Object.create(nt.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -2257,7 +2257,7 @@ class Oe {
|
|
|
2257
2257
|
replacer: i,
|
|
2258
2258
|
schema: this.schema,
|
|
2259
2259
|
sourceObjects: m
|
|
2260
|
-
}, u =
|
|
2260
|
+
}, u = Ae(e, h, y);
|
|
2261
2261
|
return l && C(u) && (u.flow = !0), p(), u;
|
|
2262
2262
|
}
|
|
2263
2263
|
/**
|
|
@@ -2296,7 +2296,7 @@ class Oe {
|
|
|
2296
2296
|
* `true` (collections are always returned intact).
|
|
2297
2297
|
*/
|
|
2298
2298
|
getIn(e, t) {
|
|
2299
|
-
return Ie(e) ? !t &&
|
|
2299
|
+
return Ie(e) ? !t && E(this.contents) ? this.contents.value : this.contents : C(this.contents) ? this.contents.getIn(e, t) : void 0;
|
|
2300
2300
|
}
|
|
2301
2301
|
/**
|
|
2302
2302
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -2412,7 +2412,7 @@ class Ds extends qt {
|
|
|
2412
2412
|
super("YAMLWarning", e, t, n);
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
const
|
|
2415
|
+
const Ve = (s, e) => (t) => {
|
|
2416
2416
|
if (t.pos[0] === -1)
|
|
2417
2417
|
return;
|
|
2418
2418
|
t.linePos = t.pos.map((l) => e.linePos(l));
|
|
@@ -2533,7 +2533,7 @@ function Ps(s, e, t) {
|
|
|
2533
2533
|
const { uniqueKeys: n } = s.options;
|
|
2534
2534
|
if (n === !1)
|
|
2535
2535
|
return !1;
|
|
2536
|
-
const i = typeof n == "function" ? n : (r, o) => r === o ||
|
|
2536
|
+
const i = typeof n == "function" ? n : (r, o) => r === o || E(r) && E(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
|
|
2537
2537
|
return e.some((r) => i(r.key, t));
|
|
2538
2538
|
}
|
|
2539
2539
|
const es = "All mapping items must start at the same column";
|
|
@@ -2685,7 +2685,7 @@ function Gn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
if (L) {
|
|
2687
2687
|
let _ = c.items[c.items.length - 1];
|
|
2688
|
-
|
|
2688
|
+
A(_) && (_ = (b = _.value) != null ? b : _.key), _.comment ? _.comment += `
|
|
2689
2689
|
` + L : _.comment = L, w.comment = w.comment.substring(L.length + 1);
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
@@ -3071,7 +3071,7 @@ function Rs(s, e, t, n) {
|
|
|
3071
3071
|
let h;
|
|
3072
3072
|
try {
|
|
3073
3073
|
const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
|
|
3074
|
-
h =
|
|
3074
|
+
h = E(f) ? f : new O(f);
|
|
3075
3075
|
} catch (f) {
|
|
3076
3076
|
const p = f instanceof Error ? f.message : String(f);
|
|
3077
3077
|
n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), h = new O(i);
|
|
@@ -3238,7 +3238,7 @@ ${n}` : n;
|
|
|
3238
3238
|
e.commentBefore = n;
|
|
3239
3239
|
else if (C(r) && !r.flow && r.items.length > 0) {
|
|
3240
3240
|
let o = r.items[0];
|
|
3241
|
-
|
|
3241
|
+
A(o) && (o = o.key);
|
|
3242
3242
|
const l = o.commentBefore;
|
|
3243
3243
|
o.commentBefore = l ? `${n}
|
|
3244
3244
|
${l}` : n;
|
|
@@ -3374,7 +3374,7 @@ function ui(s, e) {
|
|
|
3374
3374
|
`, m = [
|
|
3375
3375
|
{ type: "block-scalar-header", offset: r, indent: n, source: f }
|
|
3376
3376
|
];
|
|
3377
|
-
return
|
|
3377
|
+
return Js(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
|
|
3378
3378
|
` }), { type: "block-scalar", offset: r, indent: n, props: m, source: p };
|
|
3379
3379
|
}
|
|
3380
3380
|
case '"':
|
|
@@ -3439,14 +3439,14 @@ function di(s, e) {
|
|
|
3439
3439
|
const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
|
|
3440
3440
|
{ type: "block-scalar-header", offset: r, indent: o, source: n }
|
|
3441
3441
|
];
|
|
3442
|
-
|
|
3442
|
+
Js(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
|
|
3443
3443
|
` });
|
|
3444
3444
|
for (const a of Object.keys(s))
|
|
3445
3445
|
a !== "type" && a !== "offset" && delete s[a];
|
|
3446
3446
|
Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
|
-
function
|
|
3449
|
+
function Js(s, e) {
|
|
3450
3450
|
if (e)
|
|
3451
3451
|
for (const t of e)
|
|
3452
3452
|
switch (t.type) {
|
|
@@ -3539,13 +3539,13 @@ function Re({ start: s, key: e, sep: t, value: n }) {
|
|
|
3539
3539
|
i += r.source;
|
|
3540
3540
|
return n && (i += Qe(n)), i;
|
|
3541
3541
|
}
|
|
3542
|
-
const Nt = Symbol("break visit"), mi = Symbol("skip children"),
|
|
3542
|
+
const Nt = Symbol("break visit"), mi = Symbol("skip children"), Vs = Symbol("remove item");
|
|
3543
3543
|
function ne(s, e) {
|
|
3544
3544
|
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Qs(Object.freeze([]), s, e);
|
|
3545
3545
|
}
|
|
3546
3546
|
ne.BREAK = Nt;
|
|
3547
3547
|
ne.SKIP = mi;
|
|
3548
|
-
ne.REMOVE =
|
|
3548
|
+
ne.REMOVE = Vs;
|
|
3549
3549
|
ne.itemAtPath = (s, e) => {
|
|
3550
3550
|
let t = s;
|
|
3551
3551
|
for (const [n, i] of e) {
|
|
@@ -3577,7 +3577,7 @@ function Qs(s, e, t) {
|
|
|
3577
3577
|
else {
|
|
3578
3578
|
if (l === Nt)
|
|
3579
3579
|
return Nt;
|
|
3580
|
-
l ===
|
|
3580
|
+
l === Vs && (r.items.splice(o, 1), o -= 1);
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
typeof n == "function" && i === "key" && (n = n(e, s));
|
|
@@ -4766,7 +4766,7 @@ function Oi(s, e = {}) {
|
|
|
4766
4766
|
const { lineCounter: t, prettyErrors: n } = xs(e), i = new Ut(t == null ? void 0 : t.addNewLine), r = new Rt(e), o = Array.from(r.compose(i.parse(s)));
|
|
4767
4767
|
if (n && t)
|
|
4768
4768
|
for (const l of o)
|
|
4769
|
-
l.errors.forEach(
|
|
4769
|
+
l.errors.forEach(Ve(s, t)), l.warnings.forEach(Ve(s, t));
|
|
4770
4770
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
|
|
4771
4771
|
}
|
|
4772
4772
|
function zs(s, e = {}) {
|
|
@@ -4779,7 +4779,7 @@ function zs(s, e = {}) {
|
|
|
4779
4779
|
o.errors.push(new se(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
4780
4780
|
break;
|
|
4781
4781
|
}
|
|
4782
|
-
return n && t && (o.errors.forEach(
|
|
4782
|
+
return n && t && (o.errors.forEach(Ve(s, t)), o.warnings.forEach(Ve(s, t))), o;
|
|
4783
4783
|
}
|
|
4784
4784
|
function Ni(s, e, t) {
|
|
4785
4785
|
let n;
|
|
@@ -4830,8 +4830,8 @@ const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4830
4830
|
isDocument: ge,
|
|
4831
4831
|
isMap: be,
|
|
4832
4832
|
isNode: M,
|
|
4833
|
-
isPair:
|
|
4834
|
-
isScalar:
|
|
4833
|
+
isPair: A,
|
|
4834
|
+
isScalar: E,
|
|
4835
4835
|
isSeq: we,
|
|
4836
4836
|
parse: Ni,
|
|
4837
4837
|
parseAllDocuments: Oi,
|
|
@@ -5130,20 +5130,20 @@ class Qi {
|
|
|
5130
5130
|
return { jaql: o, chartRecommendations: l, queryTitle: r };
|
|
5131
5131
|
}
|
|
5132
5132
|
}
|
|
5133
|
-
const
|
|
5133
|
+
const Ei = (s, e) => {
|
|
5134
5134
|
const t = {
|
|
5135
5135
|
chart: "chartWidgetPropsTmpl",
|
|
5136
5136
|
pivot: "pivotTableWidgetPropsTmpl"
|
|
5137
5137
|
};
|
|
5138
5138
|
return `[${s.map((n) => cn(n, e, t)).join(`,
|
|
5139
5139
|
`)}]`;
|
|
5140
|
-
},
|
|
5140
|
+
}, Ai = "dashboardByIdTmpl", Li = "dashboardTmpl", Ci = ({
|
|
5141
5141
|
dashboardOid: s,
|
|
5142
5142
|
uiFramework: e = "react",
|
|
5143
5143
|
config: t
|
|
5144
5144
|
}) => {
|
|
5145
|
-
const i = t && Object.keys(t).length > 0 ?
|
|
5146
|
-
return Ye(
|
|
5145
|
+
const i = t && Object.keys(t).length > 0 ? V(t, Te) : "{}";
|
|
5146
|
+
return Ye(Ai, {
|
|
5147
5147
|
dashboardOid: s,
|
|
5148
5148
|
configString: i
|
|
5149
5149
|
}, e);
|
|
@@ -5157,14 +5157,14 @@ const Ai = (s, e) => {
|
|
|
5157
5157
|
), i = {
|
|
5158
5158
|
titleString: s.title,
|
|
5159
5159
|
defaultDataSourceString: It(s.defaultDataSource),
|
|
5160
|
-
widgetsString:
|
|
5161
|
-
filtersString:
|
|
5160
|
+
widgetsString: Ei(s.widgets, e),
|
|
5161
|
+
filtersString: Et(s.filters),
|
|
5162
5162
|
componentString: "Dashboard",
|
|
5163
|
-
extraImportsString:
|
|
5163
|
+
extraImportsString: At(
|
|
5164
5164
|
s.filters || s.widgets.map((o) => "filters" in o ? o.filters : []).flat().filter((o) => o !== void 0) || [],
|
|
5165
5165
|
n
|
|
5166
5166
|
),
|
|
5167
|
-
configString:
|
|
5167
|
+
configString: V(
|
|
5168
5168
|
{
|
|
5169
5169
|
toolbar: { visible: !0 },
|
|
5170
5170
|
filtersPanel: { visible: !0 },
|
|
@@ -5172,13 +5172,13 @@ const Ai = (s, e) => {
|
|
|
5172
5172
|
},
|
|
5173
5173
|
Te
|
|
5174
5174
|
),
|
|
5175
|
-
layoutOptionsString:
|
|
5176
|
-
widgetsOptionsString:
|
|
5175
|
+
layoutOptionsString: V(s.layoutOptions || {}, Te),
|
|
5176
|
+
widgetsOptionsString: V(
|
|
5177
5177
|
s.widgetsOptions || {},
|
|
5178
5178
|
Te,
|
|
5179
5179
|
!0
|
|
5180
5180
|
),
|
|
5181
|
-
styleOptionsString:
|
|
5181
|
+
styleOptionsString: V(s.styleOptions || {}, Te)
|
|
5182
5182
|
};
|
|
5183
5183
|
return Ye(t, i, e);
|
|
5184
5184
|
}, _i = (s) => nn(s) ? Ci(s) : $i(s), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5187,20 +5187,20 @@ const Ai = (s, e) => {
|
|
|
5187
5187
|
}, Symbol.toStringTag, { value: "Module" })), Mi = "executeQueryTmpl", vi = "executePivotQueryTmpl", Bi = (s, e, t) => {
|
|
5188
5188
|
const n = Tt(s), i = {
|
|
5189
5189
|
dataSourceString: It(s.dataSource),
|
|
5190
|
-
dimensionsString:
|
|
5191
|
-
measuresString:
|
|
5192
|
-
filtersString:
|
|
5193
|
-
highlightsString:
|
|
5194
|
-
extraImportsString:
|
|
5190
|
+
dimensionsString: V(s.dimensions || []),
|
|
5191
|
+
measuresString: V(s.measures || []),
|
|
5192
|
+
filtersString: Et(s.filters),
|
|
5193
|
+
highlightsString: V(s.highlights || []),
|
|
5194
|
+
extraImportsString: At(s.filters || [], n)
|
|
5195
5195
|
};
|
|
5196
5196
|
return Ye(t, i, e);
|
|
5197
5197
|
}, ji = (s, e, t) => {
|
|
5198
5198
|
const n = Tt(s), i = {
|
|
5199
5199
|
dataSourceString: It(s.dataSource),
|
|
5200
|
-
rowsString:
|
|
5201
|
-
valuesString:
|
|
5202
|
-
filtersString:
|
|
5203
|
-
extraImportsString:
|
|
5200
|
+
rowsString: V(s.rows || []),
|
|
5201
|
+
valuesString: V(s.values || []),
|
|
5202
|
+
filtersString: Et(s.filters),
|
|
5203
|
+
extraImportsString: At(s.filters || [], n)
|
|
5204
5204
|
};
|
|
5205
5205
|
return Ye(t, i, e);
|
|
5206
5206
|
}, Di = ({
|
|
@@ -5230,8 +5230,12 @@ export {
|
|
|
5230
5230
|
Xi as isClientSideDashboardCodeParams,
|
|
5231
5231
|
Zi as isClientSideWidgetCodeParams,
|
|
5232
5232
|
rr as simplifyMetadataItem,
|
|
5233
|
-
cr as
|
|
5234
|
-
fr as
|
|
5235
|
-
ur as
|
|
5233
|
+
cr as translateChartFromJSON,
|
|
5234
|
+
fr as translateChartToJSON,
|
|
5235
|
+
ur as translatePivotTableFromJSON,
|
|
5236
|
+
hr as translatePivotTableToJSON,
|
|
5237
|
+
dr as translateQueryFromJSON,
|
|
5238
|
+
pr as translateQueryToJSON,
|
|
5239
|
+
mr as translateQueryToJaql,
|
|
5236
5240
|
or as widgetComposer
|
|
5237
5241
|
};
|