react-semaphor 0.1.525 → 0.1.527
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/DATA_APP_SDK.md +5 -1
- package/dist/analytics-protocol/index.js +1179 -296
- package/dist/brand-studio/index.js +31 -31
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-DEhjPSr-.js} +77 -76
- package/dist/chunks/{card-config-utils-CAyjC5Tp.js → card-config-utils-BlIbwkuD.js} +62 -59
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-BilVIEyw.js → dashboard-briefing-launcher-D9pFByPh.js} +274 -267
- package/dist/chunks/{dashboard-controls-DyLPcvCK.js → dashboard-controls-CJI5ZWMq.js} +740 -692
- package/dist/chunks/dashboard-json-DLdrFry-.js +65 -0
- package/dist/chunks/{edit-dashboard-visual-DtmKNNdE.js → edit-dashboard-visual-D5LjWle1.js} +6760 -6728
- package/dist/chunks/editor-action-buttons-G91NQKxU.js +2070 -0
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-ON7Gpvcv.js → index-BvJOYbNv.js} +760 -750
- package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
- package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
- package/dist/chunks/{matrix-control-sources-B1K7x0SL.js → matrix-control-sources-BypfLZsK.js} +36 -36
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
- package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
- package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
- package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
- package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
- package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
- package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
- package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
- package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
- package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
- package/dist/chunks/report-preferences-dialog-D3hxu4sE.js +1231 -0
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-CvCBQbl2.js → selection-reducer-C7Um5XN-.js} +3 -3
- package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
- package/dist/chunks/{index-DYOaHuLS.js → semaphor-ready-indicator-D46I_4g7.js} +145070 -146854
- package/dist/chunks/slider-B6LELqx6.js +876 -0
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/{switch-CWPcwAZ4.js → switch-_7uBAbYx.js} +7950 -8545
- package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
- package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
- package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
- package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +138 -137
- package/dist/data-app-sdk/index.js +30 -29
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +27 -26
- package/dist/format-utils/index.js +247 -329
- package/dist/index.js +435 -246
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +4 -5
- package/dist/types/briefings/index.d.ts +3 -0
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +1 -1
- package/dist/types/components/editor/editor-main/text-card.d.ts +1 -1
- package/dist/types/components/editor/editor.d.ts +1 -1
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
- package/dist/types/components/providers/semaphor-context-provider.d.ts +1 -1
- package/dist/types/components/providers/theme-provider-context.d.ts +1 -1
- package/dist/types/components/providers/theme-provider.d.ts +1 -1
- package/dist/types/components/shared/unsaved-changes/use-pristine-snapshot-initializer.d.ts +1 -1
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
- package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +8 -29
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
- package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
- package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
- package/dist/types/components/visual/column-display-utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/components/visual/settings/color-format.d.ts +1 -1
- package/dist/types/components/visual/visual-utils.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/actions/data-point-click-action.d.ts +2 -1
- package/dist/types/lib/api/exports-api.d.ts +3 -0
- package/dist/types/lib/csv-download.d.ts +9 -0
- package/dist/types/lib/csv-encoding-options.d.ts +6 -0
- package/dist/types/lib/dashboard/normalize-dashboard-for-dirty-check.d.ts +1 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
- package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
- package/dist/types/lib/export-utils.d.ts +17 -15
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
- package/dist/types/lib/hooks/explorer/use-schemas.d.ts +1 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +2 -2
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +1 -2
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
- package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
- package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
- package/dist/types/lib/stores/editor-store.d.ts +1 -2
- package/dist/types/lib/stores/table-actions.d.ts +2 -1
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
- package/dist/types/lib/types/common-types.d.ts +5 -0
- package/dist/types/lib/types/explorer-types.d.ts +14 -0
- package/dist/types/lib/types/token-types.d.ts +0 -13
- package/dist/types/lib/utils/card-definition.d.ts +1 -1
- package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
- package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
- package/dist/types/lib/utils.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
- package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
- package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
- package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
- package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
- package/dist/types/shared/temporal/index.d.ts +5 -0
- package/dist/types/shared/temporal/relative-date.d.ts +21 -0
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
- package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
- package/package.json +2 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- package/dist/chunks/dashboard-json-QEoU-mx4.js +0 -75
- package/dist/chunks/editor-action-buttons-B9VRW3Bh.js +0 -2019
- package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
- package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
- package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
- package/dist/chunks/report-preferences-dialog-BLaFmlE2.js +0 -723
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
- package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
- package/dist/data-app-builder/index.js +0 -3666
- package/dist/data-app-builder-browser-runtime/index.js +0 -8
- package/dist/data-app-codegen/index.js +0 -22
- package/dist/data-app-codegen-node/index.js +0 -1807
- package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
- package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
- package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
- package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
- package/dist/types/data-app-builder/constants.d.ts +0 -14
- package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
- package/dist/types/data-app-builder/index.d.ts +0 -1
- package/dist/types/data-app-builder/lib/api.d.ts +0 -36
- package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
- package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
- package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
- package/dist/types/data-app-builder/types.d.ts +0 -558
- package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
- package/dist/types/data-app-builder.d.ts +0 -2
- package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
- package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
- package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
- package/dist/types/data-app-codegen/index.d.ts +0 -6
- package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
- package/dist/types/data-app-codegen/node.d.ts +0 -2
- package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
- package/dist/types/data-app-codegen/validation.d.ts +0 -8
- package/dist/types/data-app-codegen-node.d.ts +0 -2
- package/dist/types/data-app-codegen.d.ts +0 -2
- package/dist/types/lib/encrypt-utils.d.ts +0 -9
- package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
- package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
- package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-DEhjPSr-.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
var de = Object.defineProperty;
|
|
2
2
|
var ce = (e, t, n) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var q = (e, t, n) => ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import {
|
|
5
|
-
import "./matrix-operation-contract-
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { E as D, F as M, G as A, aq as le, N as P, az as ue, y as fe, aa as pe, r as H, t as W, bn as me, C as G } from "./validators-CQcG0EPN.js";
|
|
5
|
+
import "./matrix-operation-contract-BV02rLhu.js";
|
|
6
|
+
import "zod";
|
|
7
|
+
import { m as he, h as ge, j as Ie } from "./field-aggregations-DeVQLIsP.js";
|
|
8
|
+
import { g as J } from "./matrix-analytical-definition-BJyH5-99.js";
|
|
8
9
|
import { s as $ } from "./stable-serialize-CfqXeiBP.js";
|
|
9
10
|
const ye = (e, t) => {
|
|
10
11
|
const n = {};
|
|
@@ -24,7 +25,7 @@ const ye = (e, t) => {
|
|
|
24
25
|
if (!E(o, s))
|
|
25
26
|
if (Array.isArray(o) && Array.isArray(s))
|
|
26
27
|
n[i] = s;
|
|
27
|
-
else if (
|
|
28
|
+
else if (K(o) && K(s)) {
|
|
28
29
|
const a = ye(o, s);
|
|
29
30
|
Object.keys(a).length > 0 && (n[i] = a);
|
|
30
31
|
} else
|
|
@@ -40,7 +41,7 @@ const ye = (e, t) => {
|
|
|
40
41
|
return n.length !== r.length ? !1 : n.every((i) => E(e[i], t[i]));
|
|
41
42
|
}
|
|
42
43
|
return !1;
|
|
43
|
-
},
|
|
44
|
+
}, K = (e) => e !== null && typeof e == "object" && !Array.isArray(e), C = (e) => {
|
|
44
45
|
if (e === null || typeof e != "object")
|
|
45
46
|
return e;
|
|
46
47
|
if (e instanceof Date)
|
|
@@ -86,7 +87,7 @@ function be(e, t) {
|
|
|
86
87
|
}))
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function at(e, t) {
|
|
90
91
|
return {
|
|
91
92
|
...e.targets !== void 0 ? { targets: e.targets && re(e.targets, t) } : {},
|
|
92
93
|
...e.cardMappings !== void 0 ? {
|
|
@@ -97,7 +98,7 @@ function ot(e, t) {
|
|
|
97
98
|
} : {}
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function st(e, t) {
|
|
101
102
|
return t ? {
|
|
102
103
|
...e,
|
|
103
104
|
targets: t.targets === void 0 ? e.targets : t.targets ?? j,
|
|
@@ -105,18 +106,18 @@ function at(e, t) {
|
|
|
105
106
|
} : e;
|
|
106
107
|
}
|
|
107
108
|
const O = (e, t) => JSON.stringify(e) === JSON.stringify(t);
|
|
108
|
-
function
|
|
109
|
+
function dt(e, t) {
|
|
109
110
|
const n = {};
|
|
110
111
|
return O(e.targets, t.targets) || (n.targets = O(e.targets, j) ? null : e.targets), O(e.cardMappings, t.cardMappings) || (n.cardMappings = e.cardMappings.length ? e.cardMappings : null), Object.keys(n).length ? n : void 0;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function ct(e, t) {
|
|
113
114
|
return {
|
|
114
115
|
...e,
|
|
115
116
|
targets: (t == null ? void 0 : t.targets) ?? j,
|
|
116
117
|
cardMappings: (t == null ? void 0 : t.cardMappings) ?? []
|
|
117
118
|
};
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function lt(e) {
|
|
120
121
|
const t = Object.values(e.linkedInteractionTargetOverrides ?? {});
|
|
121
122
|
if (!t.length) return;
|
|
122
123
|
const n = {};
|
|
@@ -144,7 +145,7 @@ function ct(e) {
|
|
|
144
145
|
}
|
|
145
146
|
return Object.keys(n).length ? n : void 0;
|
|
146
147
|
}
|
|
147
|
-
const
|
|
148
|
+
const U = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Y = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
148
149
|
function ve(e) {
|
|
149
150
|
const t = [];
|
|
150
151
|
let n = 0;
|
|
@@ -168,7 +169,7 @@ function ie(e) {
|
|
|
168
169
|
return [];
|
|
169
170
|
const t = /* @__PURE__ */ new Set();
|
|
170
171
|
let n;
|
|
171
|
-
for (
|
|
172
|
+
for (U.lastIndex = 0; (n = U.exec(e)) !== null; ) {
|
|
172
173
|
const o = (r = n[1]) == null ? void 0 : r.trim();
|
|
173
174
|
o && t.add(o);
|
|
174
175
|
}
|
|
@@ -179,7 +180,7 @@ function ie(e) {
|
|
|
179
180
|
}
|
|
180
181
|
return Array.from(t);
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function ut(e) {
|
|
183
184
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
184
185
|
for (const r of e.controlBindings || [])
|
|
185
186
|
t.add(r.controlId), r.target === "sql_param" && n.set(r.paramId, r.controlId);
|
|
@@ -222,7 +223,7 @@ function oe(e, t) {
|
|
|
222
223
|
inputId: ((o = t.inputIds) == null ? void 0 : o[r.inputId]) ?? r.inputId
|
|
223
224
|
} : r;
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
+
function ft(e, t) {
|
|
226
227
|
var i;
|
|
227
228
|
const n = {};
|
|
228
229
|
for (const o of [
|
|
@@ -242,7 +243,7 @@ function ut(e, t) {
|
|
|
242
243
|
r[o] = oe(s, t);
|
|
243
244
|
return Object.keys(r).length && (n.inputAliases = r), n;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function pt(e, t) {
|
|
246
247
|
var i, o, s, a;
|
|
247
248
|
const n = C(e);
|
|
248
249
|
n.controlBindings = _e(
|
|
@@ -384,7 +385,7 @@ function De({
|
|
|
384
385
|
)
|
|
385
386
|
});
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
+
function mt({
|
|
388
389
|
filterDefinitions: e,
|
|
389
390
|
filterValues: t
|
|
390
391
|
}) {
|
|
@@ -408,7 +409,7 @@ function pt({
|
|
|
408
409
|
});
|
|
409
410
|
return r ? i : t;
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function ht(e) {
|
|
412
413
|
const t = Te({
|
|
413
414
|
fieldName: e.column,
|
|
414
415
|
definition: e
|
|
@@ -480,7 +481,7 @@ function $e(e, t) {
|
|
|
480
481
|
const n = ee(t), r = ee(e.field);
|
|
481
482
|
return se(t.dataType, e.field.dataType) && [...r].some((i) => n.has(i));
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function gt(e) {
|
|
484
485
|
const t = e.candidates.filter(
|
|
485
486
|
(n) => $e(
|
|
486
487
|
n,
|
|
@@ -489,7 +490,7 @@ function ht(e) {
|
|
|
489
490
|
);
|
|
490
491
|
return t.length === 1 ? { status: "matched", target: t[0] } : t.length > 1 ? { status: "ambiguous" } : { status: "notApplicable" };
|
|
491
492
|
}
|
|
492
|
-
function
|
|
493
|
+
function It(e) {
|
|
493
494
|
const t = [];
|
|
494
495
|
for (const n of e.acceptedTargets)
|
|
495
496
|
!se(
|
|
@@ -504,7 +505,7 @@ const xe = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Ae = /\{\{-?\s*filters\s*\
|
|
|
504
505
|
function Se(e) {
|
|
505
506
|
return e != null && e.trim() ? xe.test(e) || Ae.test(e) : !1;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function yt(e) {
|
|
508
509
|
return !(e != null && e.trim()) || Se(e) ? null : Ne.test(e) ? {
|
|
509
510
|
helper: "{{ filters | and }}",
|
|
510
511
|
description: "For queries with an existing WHERE clause."
|
|
@@ -516,7 +517,7 @@ function It(e) {
|
|
|
516
517
|
function Oe(e) {
|
|
517
518
|
return (e.field.sourceField || e.field.name).trim() || void 0;
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function bt(e) {
|
|
520
521
|
if (e.inventory.kind !== "sql" || e.target.kind !== "field")
|
|
521
522
|
return { status: "ineligible" };
|
|
522
523
|
const t = he(
|
|
@@ -616,7 +617,7 @@ function Ee(e) {
|
|
|
616
617
|
}
|
|
617
618
|
};
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function vt(e) {
|
|
620
621
|
const { dependencies: t } = e, n = /* @__PURE__ */ new Set([
|
|
621
622
|
e.targetInputId,
|
|
622
623
|
...t.excludeInputIds || []
|
|
@@ -625,7 +626,7 @@ function bt(e) {
|
|
|
625
626
|
(r) => !n.has(r)
|
|
626
627
|
) : e.peerInputIds.filter((r) => !n.has(r));
|
|
627
628
|
}
|
|
628
|
-
function
|
|
629
|
+
function kt(e, t, n) {
|
|
629
630
|
if (t === n) return e;
|
|
630
631
|
let r = !1;
|
|
631
632
|
const i = (s) => s != null && s.includes(t) ? (r = !0, Array.from(
|
|
@@ -645,7 +646,7 @@ function vt(e, t, n) {
|
|
|
645
646
|
});
|
|
646
647
|
return r ? o : e;
|
|
647
648
|
}
|
|
648
|
-
function
|
|
649
|
+
function _t(e, t) {
|
|
649
650
|
const n = Ce(
|
|
650
651
|
e.dependencies,
|
|
651
652
|
t
|
|
@@ -795,7 +796,7 @@ function He(e, t, n) {
|
|
|
795
796
|
function We(e) {
|
|
796
797
|
return h(e) && h(e.source) && e.source.kind === "semantic";
|
|
797
798
|
}
|
|
798
|
-
function
|
|
799
|
+
function Ge(e, t, n, r, i, o) {
|
|
799
800
|
var d;
|
|
800
801
|
if (v(t.bindingId) || i.push({
|
|
801
802
|
code: "invalid_binding_id",
|
|
@@ -866,7 +867,7 @@ function Ue(e, t, n, r, i, o) {
|
|
|
866
867
|
bindingId: t.bindingId
|
|
867
868
|
});
|
|
868
869
|
}
|
|
869
|
-
function
|
|
870
|
+
function Je(e, t, n, r, i, o) {
|
|
870
871
|
if (t === void 0) return;
|
|
871
872
|
if (!h(t) || t.kind !== "cardMappings" || !Array.isArray(t.cards)) {
|
|
872
873
|
i.push({
|
|
@@ -909,7 +910,7 @@ function Ge(e, t, n, r, i, o) {
|
|
|
909
910
|
});
|
|
910
911
|
return;
|
|
911
912
|
}
|
|
912
|
-
a.kind === "bound" ?
|
|
913
|
+
a.kind === "bound" ? Ge(
|
|
913
914
|
e,
|
|
914
915
|
a,
|
|
915
916
|
d,
|
|
@@ -925,7 +926,7 @@ function Ge(e, t, n, r, i, o) {
|
|
|
925
926
|
});
|
|
926
927
|
});
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Ke({
|
|
929
930
|
inputs: e,
|
|
930
931
|
dashboardFilters: t,
|
|
931
932
|
cards: n = [],
|
|
@@ -1062,7 +1063,7 @@ function Je({
|
|
|
1062
1063
|
path: `${f}.scope`,
|
|
1063
1064
|
message: `${f}.scope must be allSheets or sheets when cardMappings are present.`,
|
|
1064
1065
|
inputId: u.id
|
|
1065
|
-
}),
|
|
1066
|
+
}), Je(
|
|
1066
1067
|
u.id,
|
|
1067
1068
|
u.application,
|
|
1068
1069
|
`${f}.application`,
|
|
@@ -1092,15 +1093,15 @@ function Je({
|
|
|
1092
1093
|
});
|
|
1093
1094
|
}), i.length ? { ok: !1, inputs: a, issues: i } : { ok: !0, inputs: a });
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
-
const t =
|
|
1096
|
+
function Ft(e) {
|
|
1097
|
+
const t = Ke(e);
|
|
1097
1098
|
if (!t.ok) throw new Pe(t.issues);
|
|
1098
1099
|
return t.inputs;
|
|
1099
1100
|
}
|
|
1100
|
-
function
|
|
1101
|
+
function Tt(e = () => globalThis.crypto.randomUUID()) {
|
|
1101
1102
|
return e();
|
|
1102
1103
|
}
|
|
1103
|
-
const
|
|
1104
|
+
const Ue = {
|
|
1104
1105
|
date: /* @__PURE__ */ new Set([
|
|
1105
1106
|
"between",
|
|
1106
1107
|
"not between",
|
|
@@ -1143,8 +1144,8 @@ function Ye(e) {
|
|
|
1143
1144
|
const t = M(e);
|
|
1144
1145
|
return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
|
|
1145
1146
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return typeof t != "string" ? !1 :
|
|
1147
|
+
function Dt(e, t) {
|
|
1148
|
+
return typeof t != "string" ? !1 : Ue[Ye(e)].has(t);
|
|
1148
1149
|
}
|
|
1149
1150
|
function te(e, t, n = (r) => {
|
|
1150
1151
|
var i;
|
|
@@ -1152,7 +1153,7 @@ function te(e, t, n = (r) => {
|
|
|
1152
1153
|
}) {
|
|
1153
1154
|
return t === "sql_param" || t === "presentation_currency" ? [] : t === "config_metric_selector" || t === "config_aggregation" ? e.measures.flatMap((r) => r.kind === "aggregate" ? [{ id: r.id, kind: "measure", measure: r }] : []) : ["rows", "columns"].flatMap((r) => e[r].filter((i) => t !== "config_grain" || ue(n(i.field))).map((i) => ({ id: i.id, kind: "level", axis: r, level: i })));
|
|
1154
1155
|
}
|
|
1155
|
-
function
|
|
1156
|
+
function wt(e, t, n, r) {
|
|
1156
1157
|
const i = [...e.rows, ...e.columns].find((d) => d.id === t);
|
|
1157
1158
|
if (!i) throw new Error("Matrix level is no longer present.");
|
|
1158
1159
|
if (r === t) return { kind: "structure", rows: e.rows, columns: e.columns };
|
|
@@ -1160,7 +1161,7 @@ function Dt(e, t, n, r) {
|
|
|
1160
1161
|
return a.splice(c < 0 ? a.length : c, 0, i), { kind: "structure", rows: o, columns: s };
|
|
1161
1162
|
}
|
|
1162
1163
|
function B(e, t) {
|
|
1163
|
-
const n =
|
|
1164
|
+
const n = J(e), r = J(t), i = (a, c) => $(n[a][c]) === $(r[a][c]), o = (a) => {
|
|
1164
1165
|
const c = n.rankings.find((p) => p.id === a), d = r.rankings.find((p) => p.id === a);
|
|
1165
1166
|
return !!c && !!d && $(c) === $(d);
|
|
1166
1167
|
};
|
|
@@ -1205,7 +1206,7 @@ function Ve(e, t, n = !1) {
|
|
|
1205
1206
|
), d;
|
|
1206
1207
|
}), { spec: (n ? fe : pe).parse(r), notices: i };
|
|
1207
1208
|
}
|
|
1208
|
-
function
|
|
1209
|
+
function $t(e, t, n = [], r, i = !1) {
|
|
1209
1210
|
const o = [];
|
|
1210
1211
|
if (t.kind !== "structure") {
|
|
1211
1212
|
const l = t.kind === "presentation" ? { ...e, presentation: t.presentation } : t.kind === "defaults" ? { ...e, defaultView: t.defaultView } : t.kind === "sorts" ? { ...e, spec: { ...e.spec, sorts: t.sorts } } : {
|
|
@@ -1312,12 +1313,12 @@ function wt(e, t, n = [], r, i = !1) {
|
|
|
1312
1313
|
};
|
|
1313
1314
|
}
|
|
1314
1315
|
function Qe(e) {
|
|
1315
|
-
return !e.entityName || e.entityName ===
|
|
1316
|
+
return !e.entityName || e.entityName === G || e.entityName === "calculated_fields" || e.qualifiedEntityName === G || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
|
|
1316
1317
|
}
|
|
1317
1318
|
function Xe(e) {
|
|
1318
1319
|
return ["domain", e.role || "field", Qe(e), e.name].join("::");
|
|
1319
1320
|
}
|
|
1320
|
-
function
|
|
1321
|
+
function xt(e) {
|
|
1321
1322
|
var i, o;
|
|
1322
1323
|
if (e.fieldScope !== "domain") return;
|
|
1323
1324
|
const t = e.calculatedFieldOrigin;
|
|
@@ -1327,47 +1328,47 @@ function $t(e) {
|
|
|
1327
1328
|
return Xe({ ...e, role: r });
|
|
1328
1329
|
}
|
|
1329
1330
|
export {
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
Xe as A,
|
|
1332
|
+
xt as B,
|
|
1333
|
+
Re as C,
|
|
1333
1334
|
Pe as D,
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1335
|
+
Me as E,
|
|
1336
|
+
Ee as F,
|
|
1337
|
+
vt as G,
|
|
1338
|
+
kt as H,
|
|
1339
|
+
_t as I,
|
|
1340
|
+
Ce as J,
|
|
1341
|
+
C as K,
|
|
1341
1342
|
ye as L,
|
|
1342
1343
|
ke as M,
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1344
|
+
ht as N,
|
|
1345
|
+
ut as O,
|
|
1346
|
+
mt as P,
|
|
1346
1347
|
ie as Q,
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1348
|
+
gt as a,
|
|
1349
|
+
It as b,
|
|
1350
|
+
bt as c,
|
|
1350
1351
|
$e as d,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1352
|
+
Ft as e,
|
|
1353
|
+
Tt as f,
|
|
1354
|
+
yt as g,
|
|
1354
1355
|
Se as h,
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1356
|
+
Ye as i,
|
|
1357
|
+
Dt as j,
|
|
1358
|
+
ft as k,
|
|
1359
|
+
pt as l,
|
|
1359
1360
|
De as m,
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1361
|
+
Ke as n,
|
|
1362
|
+
at as o,
|
|
1363
|
+
st as p,
|
|
1364
|
+
dt as q,
|
|
1364
1365
|
be as r,
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1366
|
+
ct as s,
|
|
1367
|
+
lt as t,
|
|
1368
|
+
te as u,
|
|
1369
|
+
wt as v,
|
|
1370
|
+
ne as w,
|
|
1371
|
+
Ve as x,
|
|
1372
|
+
$t as y,
|
|
1373
|
+
Qe as z
|
|
1373
1374
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { v as U, am as G, F as L, G as S, t as j } from "./validators-CQcG0EPN.js";
|
|
2
|
+
import { a9 as N } from "./matrix-operation-contract-BV02rLhu.js";
|
|
3
|
+
import "zod";
|
|
3
4
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
4
5
|
import "../value-format-preferences/index.js";
|
|
5
|
-
import { v as A } from "./temporal-bucket-
|
|
6
|
-
import { A as b, f as
|
|
6
|
+
import { v as A } from "./temporal-bucket-DlFuhCnT.js";
|
|
7
|
+
import { A as b, f as T } from "./field-aggregations-DeVQLIsP.js";
|
|
7
8
|
import { S as W, a as k } from "./color-CJvdlFM_.js";
|
|
8
|
-
import { b as V, g as Q, a as
|
|
9
|
-
import { i as
|
|
9
|
+
import { b as V, g as Q, a as H } from "./matrix-definition-Cdn3LoxW.js";
|
|
10
|
+
import { i as K } from "./matrix-card-DY45yiUM.js";
|
|
10
11
|
let v;
|
|
11
|
-
const
|
|
12
|
-
function
|
|
12
|
+
const $ = new Uint8Array(16);
|
|
13
|
+
function z() {
|
|
13
14
|
if (!v && (v = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !v))
|
|
14
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
15
|
-
return v(
|
|
16
|
+
return v($);
|
|
16
17
|
}
|
|
17
18
|
const g = [];
|
|
18
19
|
for (let e = 0; e < 256; ++e)
|
|
@@ -27,7 +28,7 @@ function Te(e, t, a) {
|
|
|
27
28
|
if (M.randomUUID && !e)
|
|
28
29
|
return M.randomUUID();
|
|
29
30
|
e = e || {};
|
|
30
|
-
const r = e.random || (e.rng ||
|
|
31
|
+
const r = e.random || (e.rng || z)();
|
|
31
32
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, J(r);
|
|
32
33
|
}
|
|
33
34
|
function Ee(e) {
|
|
@@ -112,7 +113,7 @@ function te(e) {
|
|
|
112
113
|
if (!(e.granularity !== void 0 && e.granularity !== null))
|
|
113
114
|
return L(e.dataType) === "date" ? { granularity: "day", assumedDay: !0 } : void 0;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function ke(e) {
|
|
116
117
|
const t = te(e);
|
|
117
118
|
if (!t)
|
|
118
119
|
return {
|
|
@@ -150,11 +151,11 @@ function Se(e) {
|
|
|
150
151
|
} : {}
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
|
-
var
|
|
154
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
154
155
|
function re(e) {
|
|
155
156
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
+
function Be(e) {
|
|
158
159
|
if (e.__esModule) return e;
|
|
159
160
|
var t = e.default;
|
|
160
161
|
if (typeof t == "function") {
|
|
@@ -173,12 +174,12 @@ function Me(e) {
|
|
|
173
174
|
});
|
|
174
175
|
}), a;
|
|
175
176
|
}
|
|
176
|
-
var R = {}, P = {},
|
|
177
|
+
var R = {}, P = {}, E = { exports: {} }, s = String, x = function() {
|
|
177
178
|
return { isColorSupported: !1, reset: s, bold: s, dim: s, italic: s, underline: s, inverse: s, hidden: s, strikethrough: s, black: s, red: s, green: s, yellow: s, blue: s, magenta: s, cyan: s, white: s, gray: s, bgBlack: s, bgRed: s, bgGreen: s, bgYellow: s, bgBlue: s, bgMagenta: s, bgCyan: s, bgWhite: s, blackBright: s, redBright: s, greenBright: s, yellowBright: s, blueBright: s, magentaBright: s, cyanBright: s, whiteBright: s, bgBlackBright: s, bgRedBright: s, bgGreenBright: s, bgYellowBright: s, bgBlueBright: s, bgMagentaBright: s, bgCyanBright: s, bgWhiteBright: s };
|
|
178
179
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var ae =
|
|
180
|
+
E.exports = x();
|
|
181
|
+
E.exports.createColors = x;
|
|
182
|
+
var ae = E.exports;
|
|
182
183
|
(function(e) {
|
|
183
184
|
Object.defineProperty(e, "__esModule", {
|
|
184
185
|
value: !0
|
|
@@ -598,11 +599,11 @@ function se(e) {
|
|
|
598
599
|
const t = e.dataset.semaphorTheme;
|
|
599
600
|
return t === "dark" || t === "light" ? t : e.classList.contains("dark") ? "dark" : "light";
|
|
600
601
|
}
|
|
601
|
-
const
|
|
602
|
+
const Ye = !1, Re = [
|
|
602
603
|
"table",
|
|
603
604
|
"view",
|
|
604
605
|
"materialized view"
|
|
605
|
-
],
|
|
606
|
+
], Pe = ["_forecast"], xe = "dm", De = "semaphor_calculated_fields", Ie = "calculated_fields", Oe = ["lg", "md", "sm", "xs", "xxs"], qe = {
|
|
606
607
|
// dashboardHeader: ' font-mono border-b-2 border-red-700',
|
|
607
608
|
default: {
|
|
608
609
|
dashboardPanel: "",
|
|
@@ -893,11 +894,11 @@ const de = {
|
|
|
893
894
|
function I(e, t) {
|
|
894
895
|
var n, i;
|
|
895
896
|
if ((n = e.config) != null && n.matrix) return e.config.matrix;
|
|
896
|
-
const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ?
|
|
897
|
+
const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ? T(a[0], e.dataSource) : void 0);
|
|
897
898
|
if (!r) throw new Error("Select a base dataset before configuring Matrix fields or filters.");
|
|
898
899
|
return V({ source: r, rows: [], columns: [], measures: [], sorts: [], rankings: [] });
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function Ue(e) {
|
|
901
902
|
const { spec: t, window: a, queryContext: r, reportContext: n } = e;
|
|
902
903
|
if (!e.cardId) throw new Error("Matrix query requires its card identity.");
|
|
903
904
|
return {
|
|
@@ -911,12 +912,14 @@ function qe(e) {
|
|
|
911
912
|
controlDefinitions: r.controlDefinitions,
|
|
912
913
|
cardControlDefinitions: r.cardControlDefinitions,
|
|
913
914
|
controlBindings: r.controlBindings,
|
|
914
|
-
controlValues: r.controlValues
|
|
915
|
+
controlValues: r.controlValues,
|
|
916
|
+
// Every request after the acquisition's first carries its state (K14).
|
|
917
|
+
...e.temporalState ? { temporalState: e.temporalState } : {}
|
|
915
918
|
};
|
|
916
919
|
}
|
|
917
920
|
function le(e) {
|
|
918
921
|
return (t, a) => {
|
|
919
|
-
const r = e.filter((n) => n.field.name === t.name && !!n.field.source &&
|
|
922
|
+
const r = e.filter((n) => n.field.name === t.name && !!n.field.source && S(n.field.source, t.source ?? a));
|
|
920
923
|
return r.length === 1 ? r[0] : void 0;
|
|
921
924
|
};
|
|
922
925
|
}
|
|
@@ -927,13 +930,13 @@ function O(e) {
|
|
|
927
930
|
return (n = t(a, r)) == null ? void 0 : n.resolvedField;
|
|
928
931
|
};
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function Ge(e) {
|
|
931
934
|
const t = O(e);
|
|
932
935
|
return (a, r) => a.derivedField ? void 0 : t(a, r);
|
|
933
936
|
}
|
|
934
937
|
function ce(e, t, a) {
|
|
935
938
|
if (e.derivedField) return e.derivedField.dataType;
|
|
936
|
-
const r = a.filter((i) => !i.derivedField && i.name === e.name &&
|
|
939
|
+
const r = a.filter((i) => !i.derivedField && i.name === e.name && S(i.source ?? t, e.source ?? t));
|
|
937
940
|
return r.length ? new Set(r.map((i) => i.dataType)).size === 1 ? r[0].dataType ?? e.dataType : void 0 : e.dataType;
|
|
938
941
|
}
|
|
939
942
|
function F(e, t, a) {
|
|
@@ -975,14 +978,14 @@ function F(e, t, a) {
|
|
|
975
978
|
derivedField: o.definition
|
|
976
979
|
},
|
|
977
980
|
o.id,
|
|
978
|
-
|
|
981
|
+
H(o, r.presentation)
|
|
979
982
|
),
|
|
980
983
|
role: "metric",
|
|
981
984
|
...o.kind === "aggregate" ? { aggregate: o.aggregate } : {}
|
|
982
985
|
}));
|
|
983
986
|
}
|
|
984
987
|
function ue(e) {
|
|
985
|
-
return
|
|
988
|
+
return K(e, { authoringDraft: !0 });
|
|
986
989
|
}
|
|
987
990
|
function pe(e) {
|
|
988
991
|
return e.type !== "matrixTable";
|
|
@@ -1037,27 +1040,27 @@ function _(e, t = []) {
|
|
|
1037
1040
|
function ge(e) {
|
|
1038
1041
|
return e ? Object.values(q({ config: e })).some((t) => t.length > 0) : !1;
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1043
|
+
function Le(e) {
|
|
1041
1044
|
return _({ type: e }).supportsSql;
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1046
|
+
function je(e, t) {
|
|
1044
1047
|
return e.type !== t && (e.type === "matrixTable" || t === "matrixTable") ? { config: {}, controlBindings: [], sql: "", python: "" } : {};
|
|
1045
1048
|
}
|
|
1046
|
-
function
|
|
1049
|
+
function Ne(e, t) {
|
|
1047
1050
|
var n, i;
|
|
1048
1051
|
const a = e.type === "matrixTable" ? (i = (n = e.config) == null ? void 0 : n.matrix) == null ? void 0 : i.spec.source : void 0;
|
|
1049
1052
|
return !a || (t.selectedEntities ?? []).some((f) => {
|
|
1050
|
-
const d =
|
|
1051
|
-
return d &&
|
|
1053
|
+
const d = T(f, t);
|
|
1054
|
+
return d && S(a, d);
|
|
1052
1055
|
}) ? { dataSource: t } : { dataSource: t, config: {}, controlBindings: [] };
|
|
1053
1056
|
}
|
|
1054
|
-
function
|
|
1057
|
+
function We(e) {
|
|
1055
1058
|
return _(e).joinPlan;
|
|
1056
1059
|
}
|
|
1057
|
-
function
|
|
1060
|
+
function Ve(e, t) {
|
|
1058
1061
|
var i;
|
|
1059
1062
|
if (e.type !== "matrixTable") return { ...e.config, joinPlan: t };
|
|
1060
|
-
const a = (i = e.config) == null ? void 0 : i.matrix, r = t ?
|
|
1063
|
+
const a = (i = e.config) == null ? void 0 : i.matrix, r = t ? T(t.baseEntity, e.dataSource) : a == null ? void 0 : a.spec.source;
|
|
1061
1064
|
if (!r) {
|
|
1062
1065
|
if (!t) return e.config ?? {};
|
|
1063
1066
|
throw new Error("Matrix joins require a configured base source.");
|
|
@@ -1065,10 +1068,10 @@ function We(e, t) {
|
|
|
1065
1068
|
const n = I(e, r);
|
|
1066
1069
|
return { matrix: { ...n, spec: { ...n.spec, source: r, joinPlan: t } } };
|
|
1067
1070
|
}
|
|
1068
|
-
function
|
|
1071
|
+
function Qe(e) {
|
|
1069
1072
|
return e ? _(e).filters : void 0;
|
|
1070
1073
|
}
|
|
1071
|
-
function
|
|
1074
|
+
function He(e, t) {
|
|
1072
1075
|
var r;
|
|
1073
1076
|
if (e.type !== "matrixTable") return { ...e.config, filters: t };
|
|
1074
1077
|
if (!t && !((r = e.config) != null && r.matrix)) return e.config ?? {};
|
|
@@ -1078,7 +1081,7 @@ function Qe(e, t) {
|
|
|
1078
1081
|
function me(e, t) {
|
|
1079
1082
|
return e ? t ? _({ type: t, config: e }).configured : ge(e) : !1;
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1084
|
+
function Ke(e, t) {
|
|
1082
1085
|
var f, d, o;
|
|
1083
1086
|
if (t != null && t.skipSetupCheck || e.type === "text")
|
|
1084
1087
|
return !1;
|
|
@@ -1090,42 +1093,42 @@ function $e(e, t) {
|
|
|
1090
1093
|
return !r || !i && !n;
|
|
1091
1094
|
}
|
|
1092
1095
|
export {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1096
|
+
Be as A,
|
|
1097
|
+
Oe as B,
|
|
1098
|
+
Ie as C,
|
|
1099
|
+
xe as D,
|
|
1100
|
+
Ge as E,
|
|
1098
1101
|
O as F,
|
|
1099
1102
|
Y as G,
|
|
1100
1103
|
q as H,
|
|
1101
1104
|
I,
|
|
1102
|
-
|
|
1105
|
+
De as J,
|
|
1103
1106
|
F as K,
|
|
1104
|
-
|
|
1107
|
+
Pe as M,
|
|
1105
1108
|
Ee as a,
|
|
1106
|
-
|
|
1109
|
+
Ke as b,
|
|
1107
1110
|
l as c,
|
|
1108
1111
|
ue as d,
|
|
1109
|
-
|
|
1112
|
+
Ye as e,
|
|
1110
1113
|
fe as f,
|
|
1111
|
-
|
|
1114
|
+
We as g,
|
|
1112
1115
|
me as h,
|
|
1113
1116
|
pe as i,
|
|
1114
1117
|
w as j,
|
|
1115
|
-
|
|
1118
|
+
Qe as k,
|
|
1116
1119
|
re as l,
|
|
1117
1120
|
ce as m,
|
|
1118
1121
|
_ as n,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1122
|
+
Re as o,
|
|
1123
|
+
He as p,
|
|
1124
|
+
Ne as q,
|
|
1125
|
+
ke as r,
|
|
1126
|
+
Le as s,
|
|
1127
|
+
je as t,
|
|
1128
|
+
qe as u,
|
|
1126
1129
|
Te as v,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
+
Ve as w,
|
|
1131
|
+
Me as x,
|
|
1132
|
+
Ue as y,
|
|
1130
1133
|
le as z
|
|
1131
1134
|
};
|