react-semaphor 0.1.467 → 0.1.469
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +158 -285
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-CMZDRRwo.js → analyze-result-contract-kaCNxjA7.js} +1 -1
- package/dist/chunks/{common-types-Co766x6t.js → common-types-BgI-ymBp.js} +30 -23
- package/dist/chunks/common-types-tRK8fhXV.cjs +1 -0
- package/dist/chunks/{dashboard-briefing-launcher-FbEIrobt.cjs → dashboard-briefing-launcher-BqxcYhO2.cjs} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Ctu63_Di.js → dashboard-briefing-launcher-kKSBCRLE.js} +9 -9
- package/dist/chunks/{dashboard-controls-DeDCphnd.js → dashboard-controls-DP2rftVR.js} +9 -9
- package/dist/chunks/{dashboard-controls-BKm3JIEo.cjs → dashboard-controls-Z8ow3GV6.cjs} +1 -1
- package/dist/chunks/{dashboard-filter-value-compatibility-B8ynE_O1.js → dashboard-filter-value-compatibility-Ce7jUVh-.js} +8 -8
- package/dist/chunks/{dashboard-filter-value-compatibility-Bnl2lsng.cjs → dashboard-filter-value-compatibility-iCPBcrRS.cjs} +1 -1
- package/dist/chunks/{dashboard-input-contract-Px64VWBL.js → dashboard-input-contract-Ciboc347.js} +6 -6
- package/dist/chunks/{dashboard-json-BygDylH8.js → dashboard-json-3qT123Xa.js} +7 -7
- package/dist/chunks/{dashboard-json-BV6wbV2p.cjs → dashboard-json-CPq7IMvR.cjs} +1 -1
- package/dist/chunks/edit-dashboard-visual-7eUCTZnx.cjs +172 -0
- package/dist/chunks/{edit-dashboard-visual-CYOtYa4w.js → edit-dashboard-visual-Clz6LQOX.js} +7164 -7298
- package/dist/chunks/{editor-action-buttons-Baks5RYd.js → editor-action-buttons-CFbMRQSE.js} +6 -6
- package/dist/chunks/{editor-action-buttons-CRRjegRd.cjs → editor-action-buttons-WJFWflfs.cjs} +1 -1
- package/dist/chunks/{index-B31RKKGb.js → index-8Cm77joZ.js} +29054 -28935
- package/dist/chunks/{index-yJRh4x9j.cjs → index-DKaQRhKm.cjs} +179 -167
- package/dist/chunks/{index-BlCnNcaB.js → index-DO4BESNy.js} +9 -9
- package/dist/chunks/matrix-result-contract-ClC6Pd_g.js +822 -0
- package/dist/chunks/matrix-result-contract-DF-qt0jx.cjs +1 -0
- package/dist/chunks/{pivot-header-presentation-CSf6CyOt.js → pivot-header-presentation-OpY8xzdT.js} +2 -2
- package/dist/chunks/{pivot-result-identity-BvT51Nog.js → pivot-result-identity-CCMpd8ZA.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle--NNNPUtG.js → pivot-result-lifecycle-B38AZx4a.js} +19 -19
- package/dist/chunks/{raw-temporal-contract-BqVMduCs.js → raw-temporal-contract-r_EMdR85.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CRNoMzNj.cjs → report-preferences-dialog-C5UOCTwt.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-CZPqG-em.js → report-preferences-dialog-D-NDYRrk.js} +6 -6
- package/dist/chunks/{report-runtime-context-CrTzKt0C.js → report-runtime-context-CcXUjpb-.js} +7 -7
- package/dist/chunks/{saved-temporal-bucket-format-DfqnCGCz.js → saved-temporal-bucket-format-hylaofsQ.js} +29 -29
- package/dist/chunks/{switch-B6rFVSdw.js → switch-BagpmPNw.js} +24 -9
- package/dist/chunks/{switch-BghC7eOM.cjs → switch-DyE2_OmQ.cjs} +2 -2
- package/dist/chunks/{temporal-bucket-DFYIkexB.js → temporal-bucket-Cc9fmx8s.js} +12 -12
- package/dist/chunks/{temporal-bucket-authoring-ZxFzhTmL.js → temporal-bucket-authoring-DjPFtRSF.js} +3 -3
- package/dist/chunks/{temporal-bucket-contract-COPPwwbi.js → temporal-bucket-contract-DT4kU0VY.js} +1 -1
- package/dist/chunks/{token-types-p1M3SA2G.js → token-types-Z889rD6g.js} +1 -1
- package/dist/chunks/{update-policy-BKOA5S76.js → update-policy-Bu5Tw43R.js} +1 -1
- package/dist/chunks/{validators-CCpBY1e0.js → validators-DhTaCK1O.js} +50 -50
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.js +3 -3
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +9 -9
- package/dist/format-utils/index.js +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.js +117 -115
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/analytics-protocol.d.ts +74 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +18 -16
- package/dist/types/main.d.ts +10 -0
- package/dist/types/types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/common-types-o3LJcrpg.cjs +0 -1
- package/dist/chunks/edit-dashboard-visual-DWN052a9.cjs +0 -172
- package/dist/chunks/matrix-result-contract-DQ9_UadF.js +0 -421
- package/dist/chunks/matrix-result-contract-DiHDIyQk.cjs +0 -1
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-DKaQRhKm.cjs"),r=require("../chunks/common-types-tRK8fhXV.cjs"),o=require("../chunks/report-preferences-dialog-C5UOCTwt.cjs");exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.Surfboard=e.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=r.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;exports.ReportPreferencesDialog=o.ReportPreferencesDialog;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as a, a as o } from "../chunks/index-
|
|
2
|
-
import { C as f, E } from "../chunks/common-types-
|
|
3
|
-
import { R as t } from "../chunks/report-preferences-dialog-
|
|
1
|
+
import { b as a, a as o } from "../chunks/index-8Cm77joZ.js";
|
|
2
|
+
import { C as f, E } from "../chunks/common-types-BgI-ymBp.js";
|
|
3
|
+
import { R as t } from "../chunks/report-preferences-dialog-D-NDYRrk.js";
|
|
4
4
|
export {
|
|
5
5
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
6
6
|
a as DisplayFormatPreferencesFields,
|
|
@@ -71,6 +71,13 @@ export declare type CanonicalDashboardRecordsPayload = DashboardRecordsPayload &
|
|
|
71
71
|
|
|
72
72
|
export declare const canonicalDashboardRecordsPayloadSchema: z.ZodType<CanonicalDashboardRecordsPayload>;
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Canonicalizes a persisted metadata path. This does not parse authored SQL;
|
|
76
|
+
* it only unwraps the segment-level double quotes produced by dashboard filter
|
|
77
|
+
* persistence while preserving identifier case.
|
|
78
|
+
*/
|
|
79
|
+
export declare function canonicalizeSemaphorQualifiedSourcePath(value: string | undefined): string | undefined;
|
|
80
|
+
|
|
74
81
|
export declare function canonicalizeSemaphorSourceIdentity(source: SemaphorSemanticSourceRef_2): SemaphorSemanticSourceRef_2;
|
|
75
82
|
|
|
76
83
|
export declare function canonicalizeSemaphorSourceIdentity(source: SemaphorSourceRef): SemaphorSourceRef;
|
|
@@ -238,6 +245,12 @@ export declare function isSemaphorDataAppCodegenSummary(value: unknown): value i
|
|
|
238
245
|
|
|
239
246
|
export declare function isSemaphorMatrixTimeGrain(value: unknown): value is SemaphorMatrixTimeGrain;
|
|
240
247
|
|
|
248
|
+
/**
|
|
249
|
+
* Classifies persisted selected-entity metadata. This is structural metadata
|
|
250
|
+
* handling; it does not inspect or parse authored SQL.
|
|
251
|
+
*/
|
|
252
|
+
export declare function isSemaphorPhysicalSourceEntity(value: unknown): boolean;
|
|
253
|
+
|
|
241
254
|
export declare function isSemaphorTimeGrain(value: unknown): value is SemaphorTimeGrain;
|
|
242
255
|
|
|
243
256
|
export declare type MatrixAxisLevelDescriptor = {
|
|
@@ -715,6 +728,11 @@ export declare function parseSemaphorIsoInstant(value: unknown): Date | null;
|
|
|
715
728
|
|
|
716
729
|
export declare function parseSemaphorIsoTimeWindowBoundary(value: unknown): Date | null;
|
|
717
730
|
|
|
731
|
+
export declare function parseSemaphorQualifiedSourcePath(input: {
|
|
732
|
+
qualifiedName: string | undefined;
|
|
733
|
+
capabilities: Pick<SemaphorConnectionCapabilities, 'prefixLevels'>;
|
|
734
|
+
}): SemaphorSourceCoordinateInput;
|
|
735
|
+
|
|
718
736
|
export declare function preferSemaphorFieldRefMetadata(current: SemaphorFieldRef, next: SemaphorFieldRef): SemaphorFieldRef;
|
|
719
737
|
|
|
720
738
|
export declare function preferSemaphorSourceMetadata(current: SemaphorSourceRef, next: SemaphorSourceRef): SemaphorSourceRef;
|
|
@@ -809,6 +827,13 @@ export declare function resolveMetricComparisonRequest(input: {
|
|
|
809
827
|
/** Stable result-instance identity shared by query producers and consumers. */
|
|
810
828
|
export declare function resolveMetricResultAlias(metric: MetricResultAliasInput): string;
|
|
811
829
|
|
|
830
|
+
/**
|
|
831
|
+
* Resolves one physical source from persisted structural identity hints.
|
|
832
|
+
* Qualified identity takes precedence over conflicting bare hints, while
|
|
833
|
+
* malformed, mutually conflicting, or ambiguous identity fails closed.
|
|
834
|
+
*/
|
|
835
|
+
export declare function resolveSemaphorPhysicalSourceEntity<T>(input: SemaphorPhysicalSourceResolutionInput<T>): SemaphorPhysicalSourceResolution<T>;
|
|
836
|
+
|
|
812
837
|
export declare function resolveTemporalContext(input: ResolveTemporalContextInput): ResolvedTemporalContext;
|
|
813
838
|
|
|
814
839
|
export declare type ResolveTemporalContextInput = {
|
|
@@ -3707,6 +3732,23 @@ export declare type SemaphorPaginationRequest = {
|
|
|
3707
3732
|
pageSize: number;
|
|
3708
3733
|
};
|
|
3709
3734
|
|
|
3735
|
+
export declare function semaphorPhysicalSourceCoordinatesAreCompatible(input: {
|
|
3736
|
+
left: SemaphorSourceCoordinateInput;
|
|
3737
|
+
right: SemaphorSourceCoordinateInput;
|
|
3738
|
+
capabilities: Pick<SemaphorConnectionCapabilities, 'prefixLevels'>;
|
|
3739
|
+
}): boolean;
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* Returns whether an allowed physical source contains every coordinate named
|
|
3743
|
+
* by the requested source. Unlike symmetric compatibility, a missing allowed
|
|
3744
|
+
* coordinate cannot satisfy a more-qualified request.
|
|
3745
|
+
*/
|
|
3746
|
+
export declare function semaphorPhysicalSourceCoordinatesCover(input: {
|
|
3747
|
+
requested: SemaphorSourceCoordinateInput;
|
|
3748
|
+
allowed: SemaphorSourceCoordinateInput;
|
|
3749
|
+
capabilities: Pick<SemaphorConnectionCapabilities, 'prefixLevels'>;
|
|
3750
|
+
}): boolean;
|
|
3751
|
+
|
|
3710
3752
|
export declare const semaphorPhysicalSourceRefSchema: z.ZodObject<{
|
|
3711
3753
|
kind: z.ZodLiteral<"physical">;
|
|
3712
3754
|
connectionId: z.ZodString;
|
|
@@ -3736,6 +3778,38 @@ export declare const semaphorPhysicalSourceRefSchema: z.ZodObject<{
|
|
|
3736
3778
|
dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
|
|
3737
3779
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3738
3780
|
|
|
3781
|
+
export declare type SemaphorPhysicalSourceResolution<T> = {
|
|
3782
|
+
kind: 'resolved';
|
|
3783
|
+
basis: SemaphorPhysicalSourceResolutionBasis;
|
|
3784
|
+
entity: T;
|
|
3785
|
+
coordinates: SemaphorSourceCoordinateInput;
|
|
3786
|
+
} | {
|
|
3787
|
+
kind: 'unqualified';
|
|
3788
|
+
} | {
|
|
3789
|
+
kind: 'malformed';
|
|
3790
|
+
} | {
|
|
3791
|
+
kind: 'conflicting';
|
|
3792
|
+
} | {
|
|
3793
|
+
kind: 'ambiguous';
|
|
3794
|
+
basis: Exclude<SemaphorPhysicalSourceResolutionBasis, 'unqualified'>;
|
|
3795
|
+
} | {
|
|
3796
|
+
kind: 'not_found';
|
|
3797
|
+
basis: Exclude<SemaphorPhysicalSourceResolutionBasis, 'unqualified'>;
|
|
3798
|
+
coordinates?: SemaphorSourceCoordinateInput;
|
|
3799
|
+
} | {
|
|
3800
|
+
kind: 'incompatible_capabilities';
|
|
3801
|
+
};
|
|
3802
|
+
|
|
3803
|
+
export declare type SemaphorPhysicalSourceResolutionBasis = 'qualified' | 'bare' | 'unqualified';
|
|
3804
|
+
|
|
3805
|
+
export declare type SemaphorPhysicalSourceResolutionInput<T> = {
|
|
3806
|
+
entities: readonly T[];
|
|
3807
|
+
connectionType?: string;
|
|
3808
|
+
qualifiedHints?: ReadonlyArray<string | undefined>;
|
|
3809
|
+
bareHints?: ReadonlyArray<string | undefined>;
|
|
3810
|
+
coordinateHint?: SemaphorSourceCoordinateInput;
|
|
3811
|
+
};
|
|
3812
|
+
|
|
3739
3813
|
export declare type SemaphorPivotResultColumnIdentity = {
|
|
3740
3814
|
metricId: string;
|
|
3741
3815
|
/** Collision-safe identity for this configured metric instance. */
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/common-types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/common-types-tRK8fhXV.cjs"),t=require("../chunks/token-types-DALtlgbG.cjs"),E=require("../chunks/pivot-result-identity-gsOwOjHi.cjs"),l=require("../chunks/report-runtime-context-CLtzrZdC.cjs");exports.CALCULATED_FIELD_ENTITY_MARKER=e.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=e.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.LEGACY_CALCULATED_FIELD_ENTITY_MARKER=e.LEGACY_CALCULATED_FIELD_ENTITY_MARKER;exports.PivotMarkerEnum=e.PivotMarkerEnum;exports.getFieldRuntimeColumnName=e.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=e.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=e.hasCalculatedFormulaInputs;exports.hasSyntheticCalculatedFieldOwner=e.hasSyntheticCalculatedFieldOwner;exports.isCalculatedDimension=e.isCalculatedDimension;exports.isCalculatedField=e.isCalculatedField;exports.isCalculatedMetric=e.isCalculatedMetric;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=t.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.resolveQueryColumnKeyMapEntry=E.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=E.resolveUniqueQueryColumnKeyMapEntry;exports.DEFAULT_CALENDAR_CONTEXT=l.DEFAULT_CALENDAR_CONTEXT;
|
package/dist/types/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { a as s, C as
|
|
2
|
-
import { D } from "../chunks/token-types-
|
|
3
|
-
import { r as
|
|
4
|
-
import { D as
|
|
1
|
+
import { a as s, C as E, D as C, E as l, L as r, P as A, g as t, d as _, h as T, e as o, b as u, c as L, i } from "../chunks/common-types-BgI-ymBp.js";
|
|
2
|
+
import { D as n } from "../chunks/token-types-Z889rD6g.js";
|
|
3
|
+
import { r as d, a as F } from "../chunks/pivot-result-identity-CCMpd8ZA.js";
|
|
4
|
+
import { D as c } from "../chunks/report-runtime-context-CcXUjpb-.js";
|
|
5
5
|
export {
|
|
6
6
|
s as CALCULATED_FIELD_ENTITY_MARKER,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
E as CONTROL_CARD_DEFAULT_VALUE,
|
|
8
|
+
C as DATE_FORMAT_VALUES,
|
|
9
|
+
c as DEFAULT_CALENDAR_CONTEXT,
|
|
10
|
+
n as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
11
11
|
l as EMPTY_SELECTION,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
t as
|
|
15
|
-
|
|
12
|
+
r as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
|
|
13
|
+
A as PivotMarkerEnum,
|
|
14
|
+
t as getFieldRuntimeColumnName,
|
|
15
|
+
_ as hasCalculatedFieldMarker,
|
|
16
|
+
T as hasCalculatedFormulaInputs,
|
|
17
|
+
o as hasSyntheticCalculatedFieldOwner,
|
|
16
18
|
u as isCalculatedDimension,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
L as isCalculatedField,
|
|
20
|
+
i as isCalculatedMetric,
|
|
21
|
+
d as resolveQueryColumnKeyMapEntry,
|
|
22
|
+
F as resolveUniqueQueryColumnKeyMapEntry
|
|
21
23
|
};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -4059,6 +4059,13 @@ export declare function hasCalculatedFieldMarker(field: Pick<Field, 'entityName'
|
|
|
4059
4059
|
|
|
4060
4060
|
export declare function hasCalculatedFormulaInputs(field: Field | null | undefined): boolean;
|
|
4061
4061
|
|
|
4062
|
+
/**
|
|
4063
|
+
* Identifies the synthetic owner used by calculated fields. New fields use
|
|
4064
|
+
* CALCULATED_FIELD_ENTITY_MARKER, while persisted dashboards may still carry
|
|
4065
|
+
* the historical `calculated_fields` namespace.
|
|
4066
|
+
*/
|
|
4067
|
+
export declare function hasSyntheticCalculatedFieldOwner(field: Partial<Pick<Field, 'entityName' | 'entityId' | 'qualifiedEntityName'>> | null | undefined): boolean;
|
|
4068
|
+
|
|
4062
4069
|
export declare type HtmlOptions = {
|
|
4063
4070
|
html: string;
|
|
4064
4071
|
};
|
|
@@ -4300,6 +4307,8 @@ export declare type KPICardProps = {
|
|
|
4300
4307
|
renderFilterInfo?: () => JSX_2.Element | null;
|
|
4301
4308
|
};
|
|
4302
4309
|
|
|
4310
|
+
export declare const LEGACY_CALCULATED_FIELD_ENTITY_MARKER: "calculated_fields";
|
|
4311
|
+
|
|
4303
4312
|
export declare type LensInputValuesSnapshot = {
|
|
4304
4313
|
generatedAt: string;
|
|
4305
4314
|
dashboardInputValues: DashboardInputValues;
|
|
@@ -6393,6 +6402,7 @@ declare interface TableActions {
|
|
|
6393
6402
|
updateColumnVisibility: (columnId: string, isVisible: boolean) => void;
|
|
6394
6403
|
updateColumnSizing: (sizing: ColumnSizingState) => void;
|
|
6395
6404
|
updatePageSize: (pageSize: number) => void;
|
|
6405
|
+
updateEnableDevModePagination: (enabled: boolean) => void;
|
|
6396
6406
|
showAllColumns: () => void;
|
|
6397
6407
|
hideAllColumns: () => void;
|
|
6398
6408
|
toggleSelectColumn: (isVisible: boolean) => void;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2457,6 +2457,13 @@ export declare function hasCalculatedFieldMarker(field: Pick<Field, 'entityName'
|
|
|
2457
2457
|
|
|
2458
2458
|
export declare function hasCalculatedFormulaInputs(field: Field | null | undefined): boolean;
|
|
2459
2459
|
|
|
2460
|
+
/**
|
|
2461
|
+
* Identifies the synthetic owner used by calculated fields. New fields use
|
|
2462
|
+
* CALCULATED_FIELD_ENTITY_MARKER, while persisted dashboards may still carry
|
|
2463
|
+
* the historical `calculated_fields` namespace.
|
|
2464
|
+
*/
|
|
2465
|
+
export declare function hasSyntheticCalculatedFieldOwner(field: Partial<Pick<Field, 'entityName' | 'entityId' | 'qualifiedEntityName'>> | null | undefined): boolean;
|
|
2466
|
+
|
|
2460
2467
|
export declare type HtmlOptions = {
|
|
2461
2468
|
html: string;
|
|
2462
2469
|
};
|
|
@@ -2676,6 +2683,8 @@ export declare type KPICardProps = {
|
|
|
2676
2683
|
renderFilterInfo?: () => JSX.Element | null;
|
|
2677
2684
|
};
|
|
2678
2685
|
|
|
2686
|
+
export declare const LEGACY_CALCULATED_FIELD_ENTITY_MARKER: "calculated_fields";
|
|
2687
|
+
|
|
2679
2688
|
export declare type LensInputValuesSnapshot = {
|
|
2680
2689
|
generatedAt: string;
|
|
2681
2690
|
dashboardInputValues: DashboardInputValues;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("./validators-DO-YuzgO.cjs");const e="SEMAPHOR_CALCULATED_FIELD";function u(Y){return(Y==null?void 0:Y.sourceField)||(Y==null?void 0:Y.name)||""}const s=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","YYYY-MM-DD HH:mm","YYYY-MM-DD HH:mm:ss","YYYY-MM-DD HH:mm Z","YYYY-MM-DD HH:mm:ss Z","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];function D(Y){return Y.role==="metric"&&"expression"in Y&&!!Y.expression}function r(Y){return!!Y.expression}function _(Y){return!!Y.expression}function l(Y){var t,n;const M=Y;return!!(M!=null&&M.expression&&((n=(t=M.calculatedFormula)==null?void 0:t.inputFields)!=null&&n.length))}function o(Y){return!!(Y&&(Y.entityName===e||Y.entityId===e))}var a=(Y=>(Y.SUBTOTAL="__SUBTOTAL__",Y.TOTAL="__TOTAL__",Y.ALL="__ALL__",Y))(a||{});const c={database:null,schema:null,table:null},A="__card_default__";exports.CALCULATED_FIELD_ENTITY_MARKER=e;exports.CONTROL_CARD_DEFAULT_VALUE=A;exports.DATE_FORMAT_VALUES=s;exports.EMPTY_SELECTION=c;exports.PivotMarkerEnum=a;exports.getFieldRuntimeColumnName=u;exports.hasCalculatedFieldMarker=o;exports.hasCalculatedFormulaInputs=l;exports.isCalculatedDimension=r;exports.isCalculatedField=_;exports.isCalculatedMetric=D;
|