react-semaphor 0.1.526 → 0.1.528
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 +1190 -296
- package/dist/brand-studio/index.js +15 -15
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DUu-tCQw.js} +66 -65
- package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-BkskKMck.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
- package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
- package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
- package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-CbjuruKe.js → index-CTYnXU85.js} +781 -780
- 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-DhykwdZs.js} +7 -6
- package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.js} +11 -11
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-1Mm8x8w7.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-Dp7kFpVk.js +1383 -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-CZa3556D.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-Bqdtknud.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-BcH-0lR-.js → report-preferences-dialog-VV0-Ro6F.js} +131 -132
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-IZjBSU6Z.js} +47 -26
- package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
- package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
- package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/switch-C4YH-W1X.js +24003 -0
- 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 +12 -12
- 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 +165 -168
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/index.d.ts +3 -0
- 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/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/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/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/index.js +5 -5
- 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-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/use-relative-date-summarizer.d.ts +7 -0
- 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/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/semantic-types.d.ts +4 -2
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
- 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/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +15 -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 +61 -6
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
- 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 +1 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
- package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- 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/pre-block-Cq1RqhZX.js +0 -3987
- package/dist/chunks/search-CJz-QQ0Q.js +0 -24
- package/dist/chunks/switch-XaAACBrJ.js +0 -2234
- 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/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
|
@@ -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 { ak as N } from "./matrix-operation-contract-Dp7kFpVk.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-CdXSo1pb.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-DhykwdZs.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
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
Ke as b,
|
|
1110
|
+
l as c,
|
|
1111
|
+
ue as d,
|
|
1112
|
+
Ye as e,
|
|
1113
|
+
fe as f,
|
|
1114
|
+
We as g,
|
|
1112
1115
|
me as h,
|
|
1113
1116
|
pe as i,
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
+
w as j,
|
|
1118
|
+
Qe as k,
|
|
1119
|
+
re as l,
|
|
1117
1120
|
ce as m,
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1121
|
+
_ as n,
|
|
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
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-DbA4mVQL.js";
|
|
3
|
+
function p(e) {
|
|
4
|
+
if (typeof window > "u")
|
|
5
|
+
return null;
|
|
6
|
+
const { preferences: r } = e;
|
|
7
|
+
return /* @__PURE__ */ a(o, { FallbackComponent: d, children: /* @__PURE__ */ a(i, { dashboardProps: e, children: /* @__PURE__ */ n(s, { children: [
|
|
8
|
+
/* @__PURE__ */ a(c, { componentType: "dashboard", componentId: e.id }),
|
|
9
|
+
/* @__PURE__ */ a(l, { appearance: e.appearance, children: /* @__PURE__ */ a(t, { preferences: r, children: /* @__PURE__ */ a("main", { className: "flex h-full flex-col", children: /* @__PURE__ */ a(h, { ...e, type: "dashboard", children: /* @__PURE__ */ a(f, {}) }) }) }) })
|
|
10
|
+
] }) }) });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
p as D
|
|
14
|
+
};
|