@astrato-io/visualizations 0.7.0 → 0.9.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/README.md +1 -25
- package/THIRD_PARTY_NOTICES.md +307 -378
- package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
- package/chunks/CircularProgress-DFS-LQb7.js +765 -0
- package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
- package/chunks/LinearProgress-CjIQfkNA.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
- package/chunks/Title-CtFw1bVg.js +1804 -0
- package/chunks/ToggleButton-Br9HCPCv.js +150 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
- package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
- package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
- package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
- package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
- package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
- package/chunks/isFocusVisible-B1_z03UT.js +144 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
- package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
- package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
- package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
- package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
- package/chunks/react-dom-BwZT0N3F.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
- package/chunks/{requirements-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
- package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
- package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
- package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
- package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
- package/chunks/{standalone-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
- package/chunks/standalone-BMoJXGYe.js +2 -0
- package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
- package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
- package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
- package/chunks/standalone-CMJJIi9v.js +2 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
- package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
- package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
- package/chunks/standalone-C_Jd4gkj.js +6 -0
- package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
- package/chunks/standalone-CoQxJ6ov.js +3638 -0
- package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
- package/chunks/standalone-DBeXQrwH.js +468 -0
- package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
- package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
- package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
- package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
- package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
- package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
- package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
- package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-mWrD_uk_.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
- package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
- package/chunks/with-html-element-B0Clt4jY.js +15901 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +1 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +66 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +1191 -3
- package/metadata.js +15 -16
- package/operations.js +5 -5
- package/package.json +67 -102
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
- package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/getters/index.d.ts +3 -3
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +3 -3
- package/src/runtime/index.d.ts +2 -2
- package/src/types.d.ts +4 -8
- package/src/visualization-catalog.d.ts +26 -26
- package/src/web-components/index.d.ts +3 -3
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/registry-KervaxqJ.js +0 -31
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-DT0wKji7.js +0 -6
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/web-components-DqClFkgO.js +0 -1185
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
- package/render.js +0 -10
- package/src/charts/bar.d.ts +0 -1
- package/src/charts/combo.d.ts +0 -1
- package/src/charts/dot.d.ts +0 -1
- package/src/charts/gauge-distribution.d.ts +0 -1
- package/src/charts/gauge.d.ts +0 -1
- package/src/charts/heat-map.d.ts +0 -1
- package/src/charts/histogram.d.ts +0 -1
- package/src/charts/line.d.ts +0 -1
- package/src/charts/pie.d.ts +0 -1
- package/src/charts/radar.d.ts +0 -1
- package/src/charts/sankey.d.ts +0 -1
- package/src/charts/scatter.d.ts +0 -1
- package/src/charts/table.d.ts +0 -1
- package/src/charts/tree.d.ts +0 -1
- package/src/charts/treemap.d.ts +0 -1
- package/src/charts/waterfall.d.ts +0 -1
- package/src/charts/word-cloud.d.ts +0 -1
- package/src/objects/app-filter-bar.d.ts +0 -1
- package/src/objects/date-picker.d.ts +0 -1
- package/src/objects/filter.d.ts +0 -1
- package/src/objects/iframe.d.ts +0 -1
- package/src/objects/image.d.ts +0 -1
- package/src/objects/number.d.ts +0 -1
- package/src/objects/shape.d.ts +0 -1
- package/src/objects/slider.d.ts +0 -1
- package/src/objects/text.d.ts +0 -1
- package/src/registry/create-visualization-registry.d.ts +0 -5
- package/src/render/index.d.ts +0 -34
- /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
package/src/getters/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StandaloneVSpecChange,
|
|
1
|
+
import type { StandaloneVSpecChange, VisualizationRegistry, VisualizationInstance, VisualizationRuntime } from '../types';
|
|
2
2
|
export interface VisualizationGetterVariable {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -17,14 +17,14 @@ export interface ProcessGetterRequestsInput {
|
|
|
17
17
|
getterRequests: VisualizationGetterRequest[];
|
|
18
18
|
variables?: VisualizationGetterVariable[];
|
|
19
19
|
changesQueue?: VisualizationChangeQueueItem[];
|
|
20
|
-
registry?:
|
|
20
|
+
registry?: VisualizationRegistry;
|
|
21
21
|
}
|
|
22
22
|
export interface ProcessGetterRequestsResult {
|
|
23
23
|
results: unknown[];
|
|
24
24
|
}
|
|
25
25
|
export interface ProcessRuntimeGetterRequestsInput extends Omit<ProcessGetterRequestsInput, 'instance'> {
|
|
26
26
|
instanceId: string;
|
|
27
|
-
runtime: VisualizationRuntime
|
|
27
|
+
runtime: VisualizationRuntime;
|
|
28
28
|
}
|
|
29
29
|
export declare const processGetterRequests: (input: ProcessGetterRequestsInput) => ProcessGetterRequestsResult;
|
|
30
30
|
export declare const processRuntimeGetterRequests: (input: ProcessRuntimeGetterRequestsInput) => ProcessGetterRequestsResult;
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createDefaultVSpec, getVisualizationRegistryEntry, listVisualizationRegistryEntries, registry, standaloneVisualizationRegistry, } from './registry';
|
|
2
2
|
export { createVisualizationRuntime } from './runtime';
|
|
3
3
|
export { registerAstratoElements, type AstratoVisualizationElement } from './web-components';
|
|
4
|
-
export type { AstratoClientLike, AstratoEngineServiceLike, AstratoEngineCapabilitiesLike, AstratoHostServicesLike, AstratoObservableLike, AstratoSelectionModeLike, AstratoSelectionServiceLike, AstratoSubscriptionLike, AstratoVariableServiceLike, DataBinding, MountedVisualizationHandle,
|
|
4
|
+
export type { AstratoClientLike, AstratoEngineServiceLike, AstratoEngineCapabilitiesLike, AstratoHostServicesLike, AstratoObservableLike, AstratoSelectionModeLike, AstratoSelectionServiceLike, AstratoSubscriptionLike, AstratoVariableServiceLike, DataBinding, MountedVisualizationHandle, SerializableVisualizationMetadata, StandaloneVisualizationFamily, StandaloneVisualizationType, VisualizationDataOptions, VisualizationDataResult, VisualizationExportConfig, VisualizationExportQuery, VisualizationManifestItemMetadata, VisualizationManifestMetadata, VisualizationBrushField, VisualizationMountStatus, VisualizationInstanceChange, VisualizationInstanceChangeListener, VisualizationInstanceChangeReason, VisualizationInstance, VisualizationInstanceUpdate, VisualizationPresetMetadata, VisualizationRegistry, VisualizationRegistryEntry, VisualizationReadyResult, VisualizationReadyStatus, VisualizationRequirementsMetadata, VisualizationRequirementsValidation, VisualizationRuntime, VisualizationRuntimeLogger, VisualizationRuntimeOptions, VisualizationRuntimeTheme, VisualizationSchemaMetadata, } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StandaloneDataFieldOption, StandaloneVSpec, StandaloneVSpecChange,
|
|
1
|
+
import type { StandaloneDataFieldOption, StandaloneVSpec, StandaloneVSpecChange, VisualizationRegistry, VisualizationInstance, VisualizationRuntime } from '../types';
|
|
2
2
|
export interface VisualizationOperationRequest {
|
|
3
3
|
id?: string;
|
|
4
4
|
name: string;
|
|
@@ -15,7 +15,7 @@ export interface ApplyOperationsInput {
|
|
|
15
15
|
availableFields?: StandaloneDataFieldOption[];
|
|
16
16
|
variables?: unknown[];
|
|
17
17
|
changesQueue?: VisualizationChangeQueueItem[];
|
|
18
|
-
registry?:
|
|
18
|
+
registry?: VisualizationRegistry;
|
|
19
19
|
vTheme?: unknown;
|
|
20
20
|
}
|
|
21
21
|
export interface ApplyOperationsResult {
|
|
@@ -24,7 +24,7 @@ export interface ApplyOperationsResult {
|
|
|
24
24
|
}
|
|
25
25
|
export interface ApplyRuntimeOperationsInput extends Omit<ApplyOperationsInput, 'instance'> {
|
|
26
26
|
instanceId: string;
|
|
27
|
-
runtime: VisualizationRuntime
|
|
27
|
+
runtime: VisualizationRuntime;
|
|
28
28
|
}
|
|
29
29
|
export declare const applyOperations: (input: ApplyOperationsInput) => Promise<ApplyOperationsResult>;
|
|
30
30
|
export declare const applyRuntimeOperations: (input: ApplyRuntimeOperationsInput) => Promise<ApplyOperationsResult>;
|
package/src/runtime/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const createVisualizationRuntime:
|
|
1
|
+
import type { VisualizationRuntime, VisualizationRuntimeOptions } from '../types';
|
|
2
|
+
export declare const createVisualizationRuntime: (options: VisualizationRuntimeOptions) => VisualizationRuntime;
|
package/src/types.d.ts
CHANGED
|
@@ -165,10 +165,6 @@ export interface VisualizationRegistryEntry {
|
|
|
165
165
|
examples?: string[];
|
|
166
166
|
}
|
|
167
167
|
export type VisualizationRegistry = Record<StandaloneVisualizationType, VisualizationRegistryEntry>;
|
|
168
|
-
/**
|
|
169
|
-
* A registry with only some visualization types. A bundle built from it leaves out the other types' implementations.
|
|
170
|
-
*/
|
|
171
|
-
export type PartialVisualizationRegistry = Partial<VisualizationRegistry>;
|
|
172
168
|
export interface SerializableVisualizationMetadata {
|
|
173
169
|
type: StandaloneVisualizationType;
|
|
174
170
|
family: StandaloneVisualizationFamily;
|
|
@@ -206,9 +202,9 @@ export interface VisualizationInstanceChange {
|
|
|
206
202
|
instance?: VisualizationInstance;
|
|
207
203
|
}
|
|
208
204
|
export type VisualizationInstanceChangeListener = (change: VisualizationInstanceChange) => void;
|
|
209
|
-
export interface VisualizationRuntimeOptions
|
|
205
|
+
export interface VisualizationRuntimeOptions {
|
|
210
206
|
client: AstratoClientLike;
|
|
211
|
-
registry:
|
|
207
|
+
registry: VisualizationRegistry;
|
|
212
208
|
instances?: VisualizationInstance[];
|
|
213
209
|
logger?: VisualizationRuntimeLogger;
|
|
214
210
|
/**
|
|
@@ -283,9 +279,9 @@ export interface VisualizationBrushField {
|
|
|
283
279
|
*/
|
|
284
280
|
values: Array<string | number | boolean>;
|
|
285
281
|
}
|
|
286
|
-
export interface VisualizationRuntime
|
|
282
|
+
export interface VisualizationRuntime {
|
|
287
283
|
client: AstratoClientLike;
|
|
288
|
-
registry:
|
|
284
|
+
registry: VisualizationRegistry;
|
|
289
285
|
createInstance(instance: VisualizationInstance): VisualizationInstance;
|
|
290
286
|
updateInstance(instanceId: string, update: VisualizationInstanceUpdate): VisualizationInstance;
|
|
291
287
|
getInstance(instanceId: string): VisualizationInstance;
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
export declare const standaloneVisualizationCatalog: {
|
|
2
2
|
readonly bar: {
|
|
3
|
-
readonly family:
|
|
3
|
+
readonly family: 'chart';
|
|
4
4
|
};
|
|
5
5
|
readonly combo: {
|
|
6
|
-
readonly family:
|
|
6
|
+
readonly family: 'chart';
|
|
7
7
|
};
|
|
8
8
|
readonly 'distribution-gauge': {
|
|
9
|
-
readonly family:
|
|
9
|
+
readonly family: 'chart';
|
|
10
10
|
};
|
|
11
11
|
readonly dot: {
|
|
12
|
-
readonly family:
|
|
12
|
+
readonly family: 'chart';
|
|
13
13
|
};
|
|
14
14
|
readonly gauge: {
|
|
15
|
-
readonly family:
|
|
15
|
+
readonly family: 'chart';
|
|
16
16
|
};
|
|
17
17
|
readonly heatMap: {
|
|
18
|
-
readonly family:
|
|
18
|
+
readonly family: 'chart';
|
|
19
19
|
};
|
|
20
20
|
readonly histogram: {
|
|
21
|
-
readonly family:
|
|
21
|
+
readonly family: 'chart';
|
|
22
22
|
};
|
|
23
23
|
readonly line: {
|
|
24
|
-
readonly family:
|
|
24
|
+
readonly family: 'chart';
|
|
25
25
|
};
|
|
26
26
|
readonly pie: {
|
|
27
|
-
readonly family:
|
|
27
|
+
readonly family: 'chart';
|
|
28
28
|
};
|
|
29
29
|
readonly radar: {
|
|
30
|
-
readonly family:
|
|
30
|
+
readonly family: 'chart';
|
|
31
31
|
};
|
|
32
32
|
readonly sankey: {
|
|
33
|
-
readonly family:
|
|
33
|
+
readonly family: 'chart';
|
|
34
34
|
};
|
|
35
35
|
readonly scatter: {
|
|
36
|
-
readonly family:
|
|
36
|
+
readonly family: 'chart';
|
|
37
37
|
};
|
|
38
38
|
readonly table: {
|
|
39
|
-
readonly family:
|
|
39
|
+
readonly family: 'chart';
|
|
40
40
|
};
|
|
41
41
|
readonly tree: {
|
|
42
|
-
readonly family:
|
|
42
|
+
readonly family: 'chart';
|
|
43
43
|
};
|
|
44
44
|
readonly treemap: {
|
|
45
|
-
readonly family:
|
|
45
|
+
readonly family: 'chart';
|
|
46
46
|
};
|
|
47
47
|
readonly waterfall: {
|
|
48
|
-
readonly family:
|
|
48
|
+
readonly family: 'chart';
|
|
49
49
|
};
|
|
50
50
|
readonly 'word-cloud': {
|
|
51
|
-
readonly family:
|
|
51
|
+
readonly family: 'chart';
|
|
52
52
|
};
|
|
53
53
|
readonly 'astrato-app-filter-bar': {
|
|
54
|
-
readonly family:
|
|
54
|
+
readonly family: 'filter';
|
|
55
55
|
};
|
|
56
56
|
readonly 'date-picker': {
|
|
57
|
-
readonly family:
|
|
57
|
+
readonly family: 'filter';
|
|
58
58
|
};
|
|
59
59
|
readonly number: {
|
|
60
|
-
readonly family:
|
|
60
|
+
readonly family: 'object';
|
|
61
61
|
};
|
|
62
62
|
readonly filter: {
|
|
63
|
-
readonly family:
|
|
63
|
+
readonly family: 'filter';
|
|
64
64
|
};
|
|
65
65
|
readonly iframe: {
|
|
66
|
-
readonly family:
|
|
66
|
+
readonly family: 'object';
|
|
67
67
|
};
|
|
68
68
|
readonly image: {
|
|
69
|
-
readonly family:
|
|
69
|
+
readonly family: 'object';
|
|
70
70
|
};
|
|
71
71
|
readonly shape: {
|
|
72
|
-
readonly family:
|
|
72
|
+
readonly family: 'object';
|
|
73
73
|
};
|
|
74
74
|
readonly simpleTextObject: {
|
|
75
|
-
readonly family:
|
|
75
|
+
readonly family: 'object';
|
|
76
76
|
};
|
|
77
77
|
readonly slider: {
|
|
78
|
-
readonly family:
|
|
78
|
+
readonly family: 'filter';
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
export type StandaloneVisualizationType = keyof typeof standaloneVisualizationCatalog;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VisualizationReadyResult, VisualizationRuntime } from '../types';
|
|
2
2
|
export interface RegisterAstratoElementsOptions {
|
|
3
|
-
runtime: VisualizationRuntime
|
|
3
|
+
runtime: VisualizationRuntime;
|
|
4
4
|
tagName?: string;
|
|
5
5
|
customElementsRegistry?: CustomElementRegistry;
|
|
6
6
|
}
|
|
7
7
|
export interface AstratoVisualizationElement extends HTMLElement {
|
|
8
8
|
instanceId: string | null;
|
|
9
9
|
ready?: Promise<VisualizationReadyResult>;
|
|
10
|
-
runtime?: VisualizationRuntime
|
|
10
|
+
runtime?: VisualizationRuntime;
|
|
11
11
|
}
|
|
12
12
|
export declare const registerAstratoElements: (options: RegisterAstratoElementsOptions) => void;
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ei as a, Ht as o, K as s, Lt as c, Nt as l, Ot as u, St as d, X as f, Z as p, at as m, bt as h, dt as g, ft as _, kt as v, ot as y, ri as b, xt as x } from "./utils-vdmi_2PK.js";
|
|
3
|
-
var S = (e) => e, C = (() => {
|
|
4
|
-
let e = S;
|
|
5
|
-
return {
|
|
6
|
-
configure(t) {
|
|
7
|
-
e = t;
|
|
8
|
-
},
|
|
9
|
-
generate(t) {
|
|
10
|
-
return e(t);
|
|
11
|
-
},
|
|
12
|
-
reset() {
|
|
13
|
-
e = S;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
function w(e) {
|
|
18
|
-
var t, n, r = "";
|
|
19
|
-
if (typeof e == "string" || typeof e == "number") r += e;
|
|
20
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
21
|
-
var i = e.length;
|
|
22
|
-
for (t = 0; t < i; t++) e[t] && (n = w(e[t])) && (r && (r += " "), r += n);
|
|
23
|
-
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
24
|
-
return r;
|
|
25
|
-
}
|
|
26
|
-
function T() {
|
|
27
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = w(e)) && (r && (r += " "), r += t);
|
|
28
|
-
return r;
|
|
29
|
-
}
|
|
30
|
-
var E = {
|
|
31
|
-
active: "active",
|
|
32
|
-
checked: "checked",
|
|
33
|
-
completed: "completed",
|
|
34
|
-
disabled: "disabled",
|
|
35
|
-
error: "error",
|
|
36
|
-
expanded: "expanded",
|
|
37
|
-
focused: "focused",
|
|
38
|
-
focusVisible: "focusVisible",
|
|
39
|
-
open: "open",
|
|
40
|
-
readOnly: "readOnly",
|
|
41
|
-
required: "required",
|
|
42
|
-
selected: "selected"
|
|
43
|
-
};
|
|
44
|
-
function D(e, t, n = "Mui") {
|
|
45
|
-
let r = E[t];
|
|
46
|
-
return r ? `${n}-${r}` : `${C.generate(e)}-${t}`;
|
|
47
|
-
}
|
|
48
|
-
function O(e, t, n = "Mui") {
|
|
49
|
-
let r = {};
|
|
50
|
-
return t.forEach((t) => {
|
|
51
|
-
r[t] = D(e, t, n);
|
|
52
|
-
}), r;
|
|
53
|
-
}
|
|
54
|
-
var k = /* @__PURE__ */ i(((e) => {
|
|
55
|
-
var t = Symbol.for("react.forward_ref"), n = Symbol.for("react.memo");
|
|
56
|
-
e.ForwardRef = t, e.Memo = n;
|
|
57
|
-
})), A = /* @__PURE__ */ i(((e, t) => {
|
|
58
|
-
t.exports = k();
|
|
59
|
-
}));
|
|
60
|
-
function j(e) {
|
|
61
|
-
let t = `${e}`.match(I);
|
|
62
|
-
return t && t[1] || "";
|
|
63
|
-
}
|
|
64
|
-
function M(e, t = "") {
|
|
65
|
-
return e.displayName || e.name || j(e) || t;
|
|
66
|
-
}
|
|
67
|
-
function N(e, t, n) {
|
|
68
|
-
let r = M(t);
|
|
69
|
-
return e.displayName || (r === "" ? n : `${n}(${r})`);
|
|
70
|
-
}
|
|
71
|
-
function P(e) {
|
|
72
|
-
if (e != null) {
|
|
73
|
-
if (typeof e == "string") return e;
|
|
74
|
-
if (typeof e == "function") return M(e, "Component");
|
|
75
|
-
if (typeof e == "object") switch (e.$$typeof) {
|
|
76
|
-
case F.ForwardRef: return N(e, e.render, "ForwardRef");
|
|
77
|
-
case F.Memo: return N(e, e.type, "memo");
|
|
78
|
-
default: return;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
var F, I, L = t((() => {
|
|
83
|
-
F = A(), I = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
84
|
-
})), R = /* @__PURE__ */ r({
|
|
85
|
-
default: () => P,
|
|
86
|
-
getFunctionName: () => j
|
|
87
|
-
}), z = t((() => {
|
|
88
|
-
L(), L();
|
|
89
|
-
}));
|
|
90
|
-
function B(e, t, n = void 0) {
|
|
91
|
-
let r = {};
|
|
92
|
-
return Object.keys(e).forEach((i) => {
|
|
93
|
-
r[i] = e[i].reduce((e, r) => {
|
|
94
|
-
if (r) {
|
|
95
|
-
let i = t(r);
|
|
96
|
-
i !== "" && e.push(i), n && n[r] && e.push(n[r]);
|
|
97
|
-
}
|
|
98
|
-
return e;
|
|
99
|
-
}, []).join(" ");
|
|
100
|
-
}), r;
|
|
101
|
-
}
|
|
102
|
-
var V = /* @__PURE__ */ i(((e, t) => {
|
|
103
|
-
function n() {
|
|
104
|
-
return t.exports = n = Object.assign ? Object.assign.bind() : function(e) {
|
|
105
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
106
|
-
var n = arguments[t];
|
|
107
|
-
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
108
|
-
}
|
|
109
|
-
return e;
|
|
110
|
-
}, t.exports.__esModule = !0, t.exports.default = t.exports, n.apply(null, arguments);
|
|
111
|
-
}
|
|
112
|
-
t.exports = n, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
113
|
-
})), H = /* @__PURE__ */ i(((e, t) => {
|
|
114
|
-
function n(e, t) {
|
|
115
|
-
if (e == null) return {};
|
|
116
|
-
var n = {};
|
|
117
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
118
|
-
if (t.indexOf(r) !== -1) continue;
|
|
119
|
-
n[r] = e[r];
|
|
120
|
-
}
|
|
121
|
-
return n;
|
|
122
|
-
}
|
|
123
|
-
t.exports = n, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
124
|
-
})), U = /* @__PURE__ */ n((/* @__PURE__ */ i(((t) => {
|
|
125
|
-
var n = f();
|
|
126
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.default = P, t.shouldForwardProp = D, t.systemDefaultTheme = void 0;
|
|
127
|
-
var r = n(V()), i = n(H()), a = w((l(), e(c))), o = (v(), e(u));
|
|
128
|
-
n((x(), e(h))), n((z(), e(R)));
|
|
129
|
-
var s = n((_(), e(g))), d = n((m(), e(y))), p = ["ownerState"], b = ["variants"], S = [
|
|
130
|
-
"name",
|
|
131
|
-
"slot",
|
|
132
|
-
"skipVariantsResolver",
|
|
133
|
-
"skipSx",
|
|
134
|
-
"overridesResolver"
|
|
135
|
-
];
|
|
136
|
-
function C(e) {
|
|
137
|
-
if (typeof WeakMap != "function") return null;
|
|
138
|
-
var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
139
|
-
return (C = function(e) {
|
|
140
|
-
return e ? n : t;
|
|
141
|
-
})(e);
|
|
142
|
-
}
|
|
143
|
-
function w(e, t) {
|
|
144
|
-
if (!t && e && e.__esModule) return e;
|
|
145
|
-
if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
|
|
146
|
-
var n = C(t);
|
|
147
|
-
if (n && n.has(e)) return n.get(e);
|
|
148
|
-
var r = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
149
|
-
for (var a in e) if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
|
|
150
|
-
var o = i ? Object.getOwnPropertyDescriptor(e, a) : null;
|
|
151
|
-
o && (o.get || o.set) ? Object.defineProperty(r, a, o) : r[a] = e[a];
|
|
152
|
-
}
|
|
153
|
-
return r.default = e, n && n.set(e, r), r;
|
|
154
|
-
}
|
|
155
|
-
function T(e) {
|
|
156
|
-
return Object.keys(e).length === 0;
|
|
157
|
-
}
|
|
158
|
-
function E(e) {
|
|
159
|
-
return typeof e == "string" && e.charCodeAt(0) > 96;
|
|
160
|
-
}
|
|
161
|
-
function D(e) {
|
|
162
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
163
|
-
}
|
|
164
|
-
function O(e, t) {
|
|
165
|
-
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
166
|
-
}
|
|
167
|
-
var k = t.systemDefaultTheme = (0, s.default)(), A = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
168
|
-
function j({ defaultTheme: e, theme: t, themeId: n }) {
|
|
169
|
-
return T(t) ? e : t[n] || t;
|
|
170
|
-
}
|
|
171
|
-
function M(e) {
|
|
172
|
-
return e ? (t, n) => n[e] : null;
|
|
173
|
-
}
|
|
174
|
-
function N(e, t, n) {
|
|
175
|
-
let { ownerState: o } = t, s = (0, i.default)(t, p), c = typeof e == "function" ? e((0, r.default)({ ownerState: o }, s)) : e;
|
|
176
|
-
if (Array.isArray(c)) return c.flatMap((e) => N(e, (0, r.default)({ ownerState: o }, s), n));
|
|
177
|
-
if (c && typeof c == "object" && Array.isArray(c.variants)) {
|
|
178
|
-
let { variants: e = [] } = c, t = (0, i.default)(c, b);
|
|
179
|
-
return e.forEach((e) => {
|
|
180
|
-
let i = !0;
|
|
181
|
-
if (typeof e.props == "function" ? i = e.props((0, r.default)({ ownerState: o }, s, o)) : Object.keys(e.props).forEach((t) => {
|
|
182
|
-
o?.[t] !== e.props[t] && s[t] !== e.props[t] && (i = !1);
|
|
183
|
-
}), i) {
|
|
184
|
-
Array.isArray(t) || (t = [t]);
|
|
185
|
-
let i = typeof e.style == "function" ? e.style((0, r.default)({ ownerState: o }, s, o)) : e.style;
|
|
186
|
-
t.push(n ? O((0, a.internal_serializeStyles)(i), n) : i);
|
|
187
|
-
}
|
|
188
|
-
}), t;
|
|
189
|
-
}
|
|
190
|
-
return n ? O((0, a.internal_serializeStyles)(c), n) : c;
|
|
191
|
-
}
|
|
192
|
-
function P(e = {}) {
|
|
193
|
-
let { themeId: t, defaultTheme: n = k, rootShouldForwardProp: s = D, slotShouldForwardProp: c = D } = e, l = (e) => (0, d.default)((0, r.default)({}, e, { theme: j((0, r.default)({}, e, {
|
|
194
|
-
defaultTheme: n,
|
|
195
|
-
themeId: t
|
|
196
|
-
})) }));
|
|
197
|
-
return l.__mui_systemSx = !0, (e, u = {}) => {
|
|
198
|
-
(0, a.internal_processStyles)(e, (e) => e.filter((e) => !(e != null && e.__mui_systemSx)));
|
|
199
|
-
let { name: d, slot: f, skipVariantsResolver: p, skipSx: m, overridesResolver: h = M(A(f)) } = u, g = (0, i.default)(u, S), _ = d && d.startsWith("Mui") || f ? "components" : "custom", v = p === void 0 ? f && f !== "Root" && f !== "root" || !1 : p, y = m || !1, b = D;
|
|
200
|
-
f === "Root" || f === "root" ? b = s : f ? b = c : E(e) && (b = void 0);
|
|
201
|
-
let x = (0, a.default)(e, (0, r.default)({
|
|
202
|
-
shouldForwardProp: b,
|
|
203
|
-
label: void 0
|
|
204
|
-
}, g)), C = (e) => typeof e == "function" && e.__emotion_real !== e || (0, o.isPlainObject)(e) ? (i) => {
|
|
205
|
-
let a = j({
|
|
206
|
-
theme: i.theme,
|
|
207
|
-
defaultTheme: n,
|
|
208
|
-
themeId: t
|
|
209
|
-
});
|
|
210
|
-
return N(e, (0, r.default)({}, i, { theme: a }), a.modularCssLayers ? _ : void 0);
|
|
211
|
-
} : e, w = (i, ...a) => {
|
|
212
|
-
let o = C(i), s = a ? a.map(C) : [];
|
|
213
|
-
d && h && s.push((e) => {
|
|
214
|
-
let i = j((0, r.default)({}, e, {
|
|
215
|
-
defaultTheme: n,
|
|
216
|
-
themeId: t
|
|
217
|
-
}));
|
|
218
|
-
if (!i.components || !i.components[d] || !i.components[d].styleOverrides) return null;
|
|
219
|
-
let a = i.components[d].styleOverrides, o = {};
|
|
220
|
-
return Object.entries(a).forEach(([t, n]) => {
|
|
221
|
-
o[t] = N(n, (0, r.default)({}, e, { theme: i }), i.modularCssLayers ? "theme" : void 0);
|
|
222
|
-
}), h(e, o);
|
|
223
|
-
}), d && !v && s.push((e) => {
|
|
224
|
-
var i;
|
|
225
|
-
let a = j((0, r.default)({}, e, {
|
|
226
|
-
defaultTheme: n,
|
|
227
|
-
themeId: t
|
|
228
|
-
}));
|
|
229
|
-
return N({ variants: a == null || (i = a.components) == null || (i = i[d]) == null ? void 0 : i.variants }, (0, r.default)({}, e, { theme: a }), a.modularCssLayers ? "theme" : void 0);
|
|
230
|
-
}), y || s.push(l);
|
|
231
|
-
let c = s.length - a.length;
|
|
232
|
-
if (Array.isArray(i) && c > 0) {
|
|
233
|
-
let e = Array(c).fill("");
|
|
234
|
-
o = [...i, ...e], o.raw = [...i.raw, ...e];
|
|
235
|
-
}
|
|
236
|
-
let u = x(o, ...s);
|
|
237
|
-
return e.muiName && (u.muiName = e.muiName), u;
|
|
238
|
-
};
|
|
239
|
-
return x.withConfig && (w.withConfig = x.withConfig), w;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
})))());
|
|
243
|
-
function W(e) {
|
|
244
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
245
|
-
}
|
|
246
|
-
var G = (e) => W(e) && e !== "classes", K = (0, U.default)({
|
|
247
|
-
themeId: o,
|
|
248
|
-
defaultTheme: s,
|
|
249
|
-
rootShouldForwardProp: G
|
|
250
|
-
});
|
|
251
|
-
x();
|
|
252
|
-
var q = d;
|
|
253
|
-
a(), b();
|
|
254
|
-
function J(e) {
|
|
255
|
-
return p(e);
|
|
256
|
-
}
|
|
257
|
-
export { W as a, B as c, T as d, C as f, G as i, O as l, q as n, H as o, K as r, V as s, J as t, D as u };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Ar as e, Dr as t, Fr as n, Ir as r, Lr as i, Mr as a, Nr as o, Or as s, Pr as c, Rr as l, jr as u, kr as d, ri as f, zr as p } from "./utils-vdmi_2PK.js";
|
|
2
|
-
import { s as m } from "./logger-DpQtYQnX.js";
|
|
3
|
-
var h = m(), g = f(), _ = ({ fieldType: f, fill: m, isBucketing: _ }) => {
|
|
4
|
-
if (_) return /* @__PURE__ */ (0, g.jsx)(l, { fill: m });
|
|
5
|
-
switch (f) {
|
|
6
|
-
case h.FieldType.BOOLEAN: return /* @__PURE__ */ (0, g.jsx)(p, { fill: m });
|
|
7
|
-
case h.FieldType.DATE: return /* @__PURE__ */ (0, g.jsx)(i, { fill: m });
|
|
8
|
-
case h.FieldType.DECIMAL: return /* @__PURE__ */ (0, g.jsx)(r, { fill: m });
|
|
9
|
-
case h.FieldType.FLOAT: return /* @__PURE__ */ (0, g.jsx)(n, { fill: m });
|
|
10
|
-
case h.FieldType.GROUPED_DIMENSION: return /* @__PURE__ */ (0, g.jsx)(o, { fill: m });
|
|
11
|
-
case h.FieldType.INT: return /* @__PURE__ */ (0, g.jsx)(a, { fill: m });
|
|
12
|
-
case h.FieldType.JSON: return /* @__PURE__ */ (0, g.jsx)(u, { fill: m });
|
|
13
|
-
case h.FieldType.REAL: return /* @__PURE__ */ (0, g.jsx)(a, { fill: m });
|
|
14
|
-
case h.FieldType.STRING: return /* @__PURE__ */ (0, g.jsx)(e, { fill: m });
|
|
15
|
-
case h.FieldType.TIME: return /* @__PURE__ */ (0, g.jsx)(d, { fill: m });
|
|
16
|
-
case h.FieldType.TIMESTAMP: return /* @__PURE__ */ (0, g.jsx)(s, { fill: m });
|
|
17
|
-
case h.FieldType.TIMESTAMP_TZ: return /* @__PURE__ */ (0, g.jsx)(t, { fill: m });
|
|
18
|
-
case h.FieldType.GEOGRAPHY: return /* @__PURE__ */ (0, g.jsx)(c, { fill: m });
|
|
19
|
-
default: return null;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export { _ as t };
|