@astrato-io/visualizations 0.0.0-stage → 0.6.5
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/CHANGELOG.md +23 -0
- package/LICENSE +93 -0
- package/README.md +843 -2
- package/THIRD_PARTY_NOTICES.md +8477 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
- package/chunks/LinearProgress-B1FeWaen.js +253 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
- package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
- package/chunks/builder-B6dWSIdD.js +12289 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-B1XAfg6b.js +664 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/definitions-D3OVqmXl.js +2102 -0
- package/chunks/escobar-eDjtGpkC.js +34606 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-DBsyRBJt.js +70 -0
- package/chunks/filtering-tqjAyJH5.js +1072 -0
- package/chunks/grouping-type-On4s9Thj.js +3 -0
- package/chunks/handlers-VTBfIZYZ.js +13072 -0
- package/chunks/isEqual-BDxAhUo8.js +7514 -0
- package/chunks/line.compiler-CzdM5Ld0.js +198 -0
- package/chunks/metadata-BGElBy5Z.js +28 -0
- package/chunks/number.compiler-G-R7y16P.js +53 -0
- package/chunks/operations-CTNUX6Sy.js +26249 -0
- package/chunks/range-CiwTbMig.js +22 -0
- package/chunks/registry-CsQQzukD.js +920 -0
- package/chunks/requirements-DYjZCFyf.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CBvcC5YV.js +1218 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/standalone-0M4HlmDW2.js +3944 -0
- package/chunks/standalone-0ashe9w1.js +411 -0
- package/chunks/standalone-B7jax8wa.js +339 -0
- package/chunks/standalone-BK0VYU-l.js +463 -0
- package/chunks/standalone-BMIbT1b2.js +4619 -0
- package/chunks/standalone-BZV5vOwA.js +6 -0
- package/chunks/standalone-BhDrWj4p.js +1980 -0
- package/chunks/standalone-BtSHCp2U2.js +673 -0
- package/chunks/standalone-BvaKdky9.js +344 -0
- package/chunks/standalone-BwtM31-f.js +2 -0
- package/chunks/standalone-C3gg736V.js +1129 -0
- package/chunks/standalone-CC1VUjO32.js +299 -0
- package/chunks/standalone-C_rYnZ0N.js +741 -0
- package/chunks/standalone-CoLrAxRV.js +13198 -0
- package/chunks/standalone-DC-aUgXC.js +3855 -0
- package/chunks/standalone-DCtRoTWg.js +675 -0
- package/chunks/standalone-DUDFTBqL.js +833 -0
- package/chunks/standalone-DhZkX9Td.js +2 -0
- package/chunks/standalone-DtLElfuM.js +512 -0
- package/chunks/standalone-G9Q4Uczu.js +726 -0
- package/chunks/standalone-JuLF-OoH.js +1762 -0
- package/chunks/standalone-_DeX21JJ.js +383 -0
- package/chunks/standalone-gFhKZh8m.js +179 -0
- package/chunks/standalone-tDNy-SFH.js +281 -0
- package/chunks/standalone-v1oxfU20.js +68 -0
- package/chunks/standalone-vzBY6q0I2.js +140 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-tb914oj3.js +222 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/ui-DQWtv2iM.js +63551 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-BvdcoJRl.js +7 -0
- package/chunks/utils-Bg7K-t6K.js +32379 -0
- package/chunks/view-Bn83C8d9.js +12466 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +6968 -0
- package/docs/operations/combo.md +5804 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3082 -0
- package/docs/operations/dot.md +5570 -0
- package/docs/operations/filter.md +1483 -0
- package/docs/operations/gauge.md +3316 -0
- package/docs/operations/heatMap.md +5944 -0
- package/docs/operations/histogram.md +1856 -0
- package/docs/operations/iframe.md +56 -0
- package/docs/operations/image.md +177 -0
- package/docs/operations/index.md +46 -0
- package/docs/operations/line.md +6391 -0
- package/docs/operations/number.md +3903 -0
- package/docs/operations/pie.md +5956 -0
- package/docs/operations/radar.md +4566 -0
- package/docs/operations/sankey.md +3088 -0
- package/docs/operations/scatter.md +5969 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +699 -0
- package/docs/operations/slider.md +220 -0
- package/docs/operations/table.md +8800 -0
- package/docs/operations/tree.md +2867 -0
- package/docs/operations/treemap.md +3527 -0
- package/docs/operations/waterfall.md +2928 -0
- package/docs/operations/word-cloud.md +3000 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +185 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/model/definitions/available-fields.d.ts +35 -0
- package/src/definitions/model/definitions/compilers/compile.d.ts +7 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
- package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
- package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
- package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
- package/src/definitions/model/definitions/index.d.ts +23 -0
- package/src/definitions/model/definitions/registry/compile.d.ts +2 -0
- package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
- package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
- package/src/definitions/model/definitions/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +303 -0
- package/src/definitions/model/definitions/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +72 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +21 -0
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +215 -0
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +458 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +36 -0
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -0
- package/src/definitions/model/definitions/types/descriptor.types.d.ts +39 -0
- package/src/definitions/model/definitions/types/index.d.ts +3 -0
- package/src/definitions/model/definitions/validation.d.ts +3 -0
- package/src/getters/index.d.ts +30 -0
- package/src/index.d.ts +4 -0
- package/src/metadata/index.d.ts +4 -0
- package/src/operations/index.d.ts +30 -0
- package/src/registry/index.d.ts +6 -0
- package/src/runtime/index.d.ts +2 -0
- package/src/types.d.ts +307 -0
- package/src/visualization-catalog.d.ts +82 -0
- package/src/web-components/index.d.ts +12 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lineVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
5
|
+
fieldKey: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
8
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
ref: z.ZodString;
|
|
11
|
+
showNullValues: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
temporalGrouping: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
dateLevel: z.ZodType<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown, z.core.$ZodTypeInternals<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown>>;
|
|
14
|
+
mode: z.ZodLiteral<"level">;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
datePart: z.ZodType<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown, z.core.$ZodTypeInternals<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown>>;
|
|
17
|
+
mode: z.ZodLiteral<"part">;
|
|
18
|
+
}, z.core.$strict>], "mode">>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
measures: z.ZodArray<z.ZodObject<{
|
|
21
|
+
aggregation: z.ZodOptional<z.ZodString>;
|
|
22
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
24
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
26
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
27
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
fieldKey: z.ZodString;
|
|
30
|
+
ref: z.ZodString;
|
|
31
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
primary: "primary";
|
|
33
|
+
secondary: "secondary";
|
|
34
|
+
}>>;
|
|
35
|
+
dataPointShape: z.ZodType<"bar" | "circle" | "triangle" | "square" | "star" | "cross" | "diamond" | "n-polygon" | "rectangle" | "saltire" | "vertical-bar" | null | undefined, unknown, z.core.$ZodTypeInternals<"bar" | "circle" | "triangle" | "square" | "star" | "cross" | "diamond" | "n-polygon" | "rectangle" | "saltire" | "vertical-bar" | null | undefined, unknown>>;
|
|
36
|
+
}, z.core.$strict>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
filterGroup: z.ZodOptional<z.ZodType<import("./common.schema").VisualizationStaticFilterGroup, unknown, z.core.$ZodTypeInternals<import("./common.schema").VisualizationStaticFilterGroup, unknown>>>;
|
|
39
|
+
limiting: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
queryLimit: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
axes: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
dimension: z.ZodOptional<typeof import("./common.schema").axisDefinitionSchema>;
|
|
45
|
+
primaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
46
|
+
secondaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
legend: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
position: z.ZodOptional<z.ZodType<"top" | "bottom" | "left" | "right", unknown, z.core.$ZodTypeInternals<"top" | "bottom" | "left" | "right", unknown>>>;
|
|
50
|
+
title: z.ZodOptional<z.ZodString>;
|
|
51
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
orientation: z.ZodOptional<z.ZodType<"horizontal" | "vertical", unknown, z.core.$ZodTypeInternals<"horizontal" | "vertical", unknown>>>;
|
|
54
|
+
coloring: z.ZodOptional<z.ZodType<import("./common.schema").ColoringDefinition, unknown, z.core.$ZodTypeInternals<import("./common.schema").ColoringDefinition, unknown>>>;
|
|
55
|
+
dataLabels: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
density: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
low: "low";
|
|
58
|
+
medium: "medium";
|
|
59
|
+
high: "high";
|
|
60
|
+
}>>;
|
|
61
|
+
visible: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
sorting: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
by: z.ZodString;
|
|
66
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
67
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
69
|
+
type: z.ZodLiteral<"line">;
|
|
70
|
+
version: z.ZodLiteral<1>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export type LineVisualizationDefinition = z.infer<typeof lineVisualizationDefinitionSchema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const numberVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
measure: z.ZodObject<{
|
|
5
|
+
aggregation: z.ZodOptional<z.ZodString>;
|
|
6
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
8
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
10
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
11
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
fieldKey: z.ZodString;
|
|
14
|
+
ref: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
filterGroup: z.ZodOptional<z.ZodType<import("./common.schema").VisualizationStaticFilterGroup, unknown, z.core.$ZodTypeInternals<import("./common.schema").VisualizationStaticFilterGroup, unknown>>>;
|
|
18
|
+
type: z.ZodLiteral<"number">;
|
|
19
|
+
version: z.ZodLiteral<1>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export type NumberVisualizationDefinition = z.infer<typeof numberVisualizationDefinitionSchema>;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const datePickerVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
field: z.ZodObject<{
|
|
5
|
+
fieldKey: z.ZodString;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
settings: z.ZodOptional<z.ZodType<{
|
|
10
|
+
responsive?: boolean | undefined;
|
|
11
|
+
weekStart?: "0" | "1" | undefined;
|
|
12
|
+
pickerState?: "expanded" | "collapsed" | undefined;
|
|
13
|
+
pickerType?: "range" | "inputRange" | "inputSingle" | undefined;
|
|
14
|
+
startDateLabel?: string | {
|
|
15
|
+
type: "variable";
|
|
16
|
+
variableName: string;
|
|
17
|
+
} | null | undefined;
|
|
18
|
+
endDateLabel?: string | {
|
|
19
|
+
type: "variable";
|
|
20
|
+
variableName: string;
|
|
21
|
+
} | null | undefined;
|
|
22
|
+
quickSelect?: boolean | undefined;
|
|
23
|
+
timePickerVisibility?: "always" | "never" | "whenTimestampSelected" | undefined;
|
|
24
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
25
|
+
responsive?: boolean | undefined;
|
|
26
|
+
weekStart?: "0" | "1" | undefined;
|
|
27
|
+
pickerState?: "expanded" | "collapsed" | undefined;
|
|
28
|
+
pickerType?: "range" | "inputRange" | "inputSingle" | undefined;
|
|
29
|
+
startDateLabel?: string | {
|
|
30
|
+
type: "variable";
|
|
31
|
+
variableName: string;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
endDateLabel?: string | {
|
|
34
|
+
type: "variable";
|
|
35
|
+
variableName: string;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
quickSelect?: boolean | undefined;
|
|
38
|
+
timePickerVisibility?: "always" | "never" | "whenTimestampSelected" | undefined;
|
|
39
|
+
}, unknown>>>;
|
|
40
|
+
type: z.ZodLiteral<"date-picker">;
|
|
41
|
+
version: z.ZodLiteral<1>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export declare const iframeVisualizationDefinitionSchema: z.ZodObject<{
|
|
44
|
+
settings: z.ZodObject<{
|
|
45
|
+
url: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
type: z.ZodLiteral<"iframe">;
|
|
48
|
+
version: z.ZodLiteral<1>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const imageVisualizationDefinitionSchema: z.ZodObject<{
|
|
51
|
+
settings: z.ZodType<{
|
|
52
|
+
blur?: number | undefined;
|
|
53
|
+
fit?: "none" | "fill" | "contain" | "cover" | undefined;
|
|
54
|
+
opacity?: number | undefined;
|
|
55
|
+
saturation?: number | undefined;
|
|
56
|
+
shadow?: boolean | undefined;
|
|
57
|
+
source?: {
|
|
58
|
+
sourceKind: "url";
|
|
59
|
+
imageUrl: string;
|
|
60
|
+
} | {
|
|
61
|
+
sourceKind: "mediaItem";
|
|
62
|
+
mediaItemId: string;
|
|
63
|
+
} | {
|
|
64
|
+
sourceKind: "variable";
|
|
65
|
+
variableName: string;
|
|
66
|
+
} | {
|
|
67
|
+
sourceKind: "none";
|
|
68
|
+
} | undefined;
|
|
69
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
70
|
+
blur?: number | undefined;
|
|
71
|
+
fit?: "none" | "fill" | "contain" | "cover" | undefined;
|
|
72
|
+
opacity?: number | undefined;
|
|
73
|
+
saturation?: number | undefined;
|
|
74
|
+
shadow?: boolean | undefined;
|
|
75
|
+
source?: {
|
|
76
|
+
sourceKind: "url";
|
|
77
|
+
imageUrl: string;
|
|
78
|
+
} | {
|
|
79
|
+
sourceKind: "mediaItem";
|
|
80
|
+
mediaItemId: string;
|
|
81
|
+
} | {
|
|
82
|
+
sourceKind: "variable";
|
|
83
|
+
variableName: string;
|
|
84
|
+
} | {
|
|
85
|
+
sourceKind: "none";
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, unknown>>;
|
|
88
|
+
type: z.ZodLiteral<"image">;
|
|
89
|
+
version: z.ZodLiteral<1>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export declare const shapeVisualizationDefinitionSchema: z.ZodObject<{
|
|
92
|
+
settings: z.ZodType<{
|
|
93
|
+
shape?: "line" | "circle" | "hexagon" | "triangle" | "square" | "arrow" | "rectangle" | "elbow" | undefined;
|
|
94
|
+
backgroundColor?: {
|
|
95
|
+
code: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
backgroundType?: "image" | "color" | undefined;
|
|
98
|
+
borderRadius?: number | undefined;
|
|
99
|
+
strokeColor?: {
|
|
100
|
+
code: string;
|
|
101
|
+
} | undefined;
|
|
102
|
+
rotate?: number | undefined;
|
|
103
|
+
borderEnabled?: boolean | undefined;
|
|
104
|
+
imageFit?: "none" | "xMidYMid slice" | undefined;
|
|
105
|
+
scale?: number | undefined;
|
|
106
|
+
imageURL?: string | undefined;
|
|
107
|
+
lineThickness?: number | undefined;
|
|
108
|
+
preserveAspectRatio?: boolean | undefined;
|
|
109
|
+
heightBasedSize?: boolean | undefined;
|
|
110
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
111
|
+
shape?: "line" | "circle" | "hexagon" | "triangle" | "square" | "arrow" | "rectangle" | "elbow" | undefined;
|
|
112
|
+
backgroundColor?: {
|
|
113
|
+
code: string;
|
|
114
|
+
} | undefined;
|
|
115
|
+
backgroundType?: "image" | "color" | undefined;
|
|
116
|
+
borderRadius?: number | undefined;
|
|
117
|
+
strokeColor?: {
|
|
118
|
+
code: string;
|
|
119
|
+
} | undefined;
|
|
120
|
+
rotate?: number | undefined;
|
|
121
|
+
borderEnabled?: boolean | undefined;
|
|
122
|
+
imageFit?: "none" | "xMidYMid slice" | undefined;
|
|
123
|
+
scale?: number | undefined;
|
|
124
|
+
imageURL?: string | undefined;
|
|
125
|
+
lineThickness?: number | undefined;
|
|
126
|
+
preserveAspectRatio?: boolean | undefined;
|
|
127
|
+
heightBasedSize?: boolean | undefined;
|
|
128
|
+
}, unknown>>;
|
|
129
|
+
type: z.ZodLiteral<"shape">;
|
|
130
|
+
version: z.ZodLiteral<1>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export declare const textVisualizationDefinitionSchema: z.ZodObject<{
|
|
133
|
+
settings: z.ZodType<{
|
|
134
|
+
align?: "left" | "right" | "justify" | "center" | undefined;
|
|
135
|
+
content?: string | undefined;
|
|
136
|
+
fontFamily?: string | null | undefined;
|
|
137
|
+
fontSize?: number | undefined;
|
|
138
|
+
position?: "top" | "bottom" | "auto" | "middle" | undefined;
|
|
139
|
+
representation?: "html" | "text" | "markdown" | undefined;
|
|
140
|
+
responsive?: boolean | undefined;
|
|
141
|
+
textColor?: string | null | undefined;
|
|
142
|
+
wordWrap?: boolean | undefined;
|
|
143
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
144
|
+
align?: "left" | "right" | "justify" | "center" | undefined;
|
|
145
|
+
content?: string | undefined;
|
|
146
|
+
fontFamily?: string | null | undefined;
|
|
147
|
+
fontSize?: number | undefined;
|
|
148
|
+
position?: "top" | "bottom" | "auto" | "middle" | undefined;
|
|
149
|
+
representation?: "html" | "text" | "markdown" | undefined;
|
|
150
|
+
responsive?: boolean | undefined;
|
|
151
|
+
textColor?: string | null | undefined;
|
|
152
|
+
wordWrap?: boolean | undefined;
|
|
153
|
+
}, unknown>>;
|
|
154
|
+
type: z.ZodLiteral<"simpleTextObject">;
|
|
155
|
+
version: z.ZodLiteral<1>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
export declare const atomicInputVisualizationDefinitionSchema: z.ZodObject<{
|
|
158
|
+
settings: z.ZodType<{
|
|
159
|
+
customLabel?: {
|
|
160
|
+
enabled: boolean;
|
|
161
|
+
text?: string | null | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
hideLabel?: boolean | undefined;
|
|
164
|
+
inputType?: "slider" | "date" | "checkbox" | "dropdown" | "numeric" | "text" | "textArea" | "toggle" | "range-slider" | undefined;
|
|
165
|
+
placeholder?: string | null | undefined;
|
|
166
|
+
responsive?: boolean | undefined;
|
|
167
|
+
variableId?: string | null | undefined;
|
|
168
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
169
|
+
customLabel?: {
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
text?: string | null | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
hideLabel?: boolean | undefined;
|
|
174
|
+
inputType?: "slider" | "date" | "checkbox" | "dropdown" | "numeric" | "text" | "textArea" | "toggle" | "range-slider" | undefined;
|
|
175
|
+
placeholder?: string | null | undefined;
|
|
176
|
+
responsive?: boolean | undefined;
|
|
177
|
+
variableId?: string | null | undefined;
|
|
178
|
+
}, unknown>>;
|
|
179
|
+
type: z.ZodLiteral<"atomic-input">;
|
|
180
|
+
version: z.ZodLiteral<1>;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
export declare const sliderVisualizationDefinitionSchema: z.ZodObject<{
|
|
183
|
+
data: z.ZodObject<{
|
|
184
|
+
field: z.ZodObject<{
|
|
185
|
+
fieldKey: z.ZodString;
|
|
186
|
+
ref: z.ZodString;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
settings: z.ZodOptional<z.ZodType<{
|
|
190
|
+
layout?: "auto" | "single" | "multi" | undefined;
|
|
191
|
+
quickSelect?: boolean | undefined;
|
|
192
|
+
range?: {
|
|
193
|
+
min: number;
|
|
194
|
+
max: number;
|
|
195
|
+
} | undefined;
|
|
196
|
+
step?: number | undefined;
|
|
197
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
198
|
+
layout?: "auto" | "single" | "multi" | undefined;
|
|
199
|
+
quickSelect?: boolean | undefined;
|
|
200
|
+
range?: {
|
|
201
|
+
min: number;
|
|
202
|
+
max: number;
|
|
203
|
+
} | undefined;
|
|
204
|
+
step?: number | undefined;
|
|
205
|
+
}, unknown>>>;
|
|
206
|
+
type: z.ZodLiteral<"slider">;
|
|
207
|
+
version: z.ZodLiteral<1>;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
export type AtomicInputVisualizationDefinition = z.infer<typeof atomicInputVisualizationDefinitionSchema>;
|
|
210
|
+
export type DatePickerVisualizationDefinition = z.infer<typeof datePickerVisualizationDefinitionSchema>;
|
|
211
|
+
export type IframeVisualizationDefinition = z.infer<typeof iframeVisualizationDefinitionSchema>;
|
|
212
|
+
export type ImageVisualizationDefinition = z.infer<typeof imageVisualizationDefinitionSchema>;
|
|
213
|
+
export type ShapeVisualizationDefinition = z.infer<typeof shapeVisualizationDefinitionSchema>;
|
|
214
|
+
export type SliderVisualizationDefinition = z.infer<typeof sliderVisualizationDefinitionSchema>;
|
|
215
|
+
export type TextVisualizationDefinition = z.infer<typeof textVisualizationDefinitionSchema>;
|