@luzmo/dashboard-contents-types 0.1.89 → 1.0.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/assets/json-schemas/area-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/area-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/bar-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/bar-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/box-plot-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/box-plot-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/bubble-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/bubble-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/bullet-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/bullet-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/choropleth-map-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/choropleth-map-slots.schema.json.d.ts +131 -24
- package/assets/json-schemas/circular-gauge-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/circular-gauge-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/column-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/column-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/combination-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/combination-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/date-filter-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/date-filter-slots.schema.json.d.ts +32 -5
- package/assets/json-schemas/donut-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/donut-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/dropdown-filter-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/dropdown-filter-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/evolution-number-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/evolution-number-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/funnel-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/funnel-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/line-chart-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/line-chart-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/pivot-table-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/pivot-table-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/regular-table-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/regular-table-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/sankey-diagram-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/sankey-diagram-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/scatter-plot-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/scatter-plot-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/slicer-filter-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/slicer-filter-slots.schema.json.d.ts +99 -19
- package/assets/json-schemas/slider-filter-options.schema.json.d.ts +40 -14
- package/assets/json-schemas/slider-filter-slots.schema.json.d.ts +67 -14
- package/assets/json-schemas/viz-item-type.schema.json.d.ts +1 -0
- package/index.d.ts +0 -1
- package/index.js +357 -111
- package/index.mjs +3623 -1203
- package/json-schemas.d.ts +2564 -720
- package/json-schemas.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.d.ts.map +1 -1
- package/src/lib/area-chart/area-chart-options.d.ts +13 -15
- package/src/lib/area-chart/area-chart-options.d.ts.map +1 -1
- package/src/lib/area-chart/area-chart-slots.d.ts +0 -2
- package/src/lib/area-chart/area-chart.d.ts +2 -4
- package/src/lib/area-chart/index.d.ts +0 -1
- package/src/lib/bar-chart/bar-chart-options.d.ts +14 -16
- package/src/lib/bar-chart/bar-chart-options.d.ts.map +1 -1
- package/src/lib/bar-chart/bar-chart.d.ts +2 -4
- package/src/lib/bar-chart/bar-chart.slots.d.ts +0 -2
- package/src/lib/bar-chart/index.d.ts +0 -1
- package/src/lib/box-plot/box-plot-options.d.ts +13 -15
- package/src/lib/box-plot/box-plot-options.d.ts.map +1 -1
- package/src/lib/box-plot/box-plot-slots.d.ts +0 -2
- package/src/lib/box-plot/box-plot.d.ts +2 -4
- package/src/lib/box-plot/index.d.ts +0 -1
- package/src/lib/bubble-chart/bubble-chart-options.d.ts +12 -14
- package/src/lib/bubble-chart/bubble-chart-options.d.ts.map +1 -1
- package/src/lib/bubble-chart/bubble-chart-slots.d.ts +0 -2
- package/src/lib/bubble-chart/bubble-chart.d.ts +2 -4
- package/src/lib/bubble-chart/index.d.ts +0 -1
- package/src/lib/bullet-chart/bullet-chart-options.d.ts +11 -13
- package/src/lib/bullet-chart/bullet-chart-options.d.ts.map +1 -1
- package/src/lib/bullet-chart/bullet-chart-slots.d.ts +0 -2
- package/src/lib/bullet-chart/bullet-chart.d.ts +2 -4
- package/src/lib/bullet-chart/index.d.ts +0 -1
- package/src/lib/choropleth-map/choropleth-map-options.d.ts +11 -13
- package/src/lib/choropleth-map/choropleth-map-slots.d.ts +0 -2
- package/src/lib/choropleth-map/choropleth-map.d.ts +2 -4
- package/src/lib/choropleth-map/index.d.ts +0 -1
- package/src/lib/circular-gauge/circular-gauge-options.d.ts +7 -9
- package/src/lib/circular-gauge/circular-gauge-slots.d.ts +0 -2
- package/src/lib/circular-gauge/circular-gauge.d.ts +2 -4
- package/src/lib/circular-gauge/index.d.ts +0 -1
- package/src/lib/column-chart/column-chart-options.d.ts +14 -16
- package/src/lib/column-chart/column-chart-options.d.ts.map +1 -1
- package/src/lib/column-chart/column-chart-slots.d.ts +0 -2
- package/src/lib/column-chart/column-chart.d.ts +2 -4
- package/src/lib/column-chart/index.d.ts +0 -1
- package/src/lib/combination-chart/combination-chart-options.d.ts +14 -16
- package/src/lib/combination-chart/combination-chart-options.d.ts.map +1 -1
- package/src/lib/combination-chart/combination-chart-slots.d.ts +0 -2
- package/src/lib/combination-chart/combination-chart.d.ts +2 -4
- package/src/lib/combination-chart/index.d.ts +0 -1
- package/src/lib/conditional-number/conditional-number-options.d.ts +9 -11
- package/src/lib/conditional-number/conditional-number-options.d.ts.map +1 -1
- package/src/lib/conditional-number/conditional-number-slots.d.ts +0 -2
- package/src/lib/conditional-number/conditional-number.d.ts +2 -4
- package/src/lib/conditional-number/index.d.ts +0 -1
- package/src/lib/date-filter/date-filter-options.d.ts +4 -6
- package/src/lib/date-filter/date-filter-slots.d.ts +0 -2
- package/src/lib/date-filter/date-filter.d.ts +2 -4
- package/src/lib/date-filter/index.d.ts +0 -1
- package/src/lib/donut-chart/donut-chart-options.d.ts +13 -15
- package/src/lib/donut-chart/donut-chart-options.d.ts.map +1 -1
- package/src/lib/donut-chart/donut-chart-slots.d.ts +0 -2
- package/src/lib/donut-chart/donut-chart.d.ts +2 -4
- package/src/lib/donut-chart/index.d.ts +0 -1
- package/src/lib/dropdown-filter/dropdown-filter-options.d.ts +6 -8
- package/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +0 -2
- package/src/lib/dropdown-filter/dropdown-filter.d.ts +2 -4
- package/src/lib/dropdown-filter/index.d.ts +0 -1
- package/src/lib/evolution-number/evolution-number-options.d.ts +7 -9
- package/src/lib/evolution-number/evolution-number-options.d.ts.map +1 -1
- package/src/lib/evolution-number/evolution-number-slots.d.ts +0 -2
- package/src/lib/evolution-number/evolution-number.d.ts +2 -4
- package/src/lib/evolution-number/index.d.ts +0 -1
- package/src/lib/funnel-chart/funnel-chart-options.d.ts +13 -15
- package/src/lib/funnel-chart/funnel-chart-options.d.ts.map +1 -1
- package/src/lib/funnel-chart/funnel-chart-slots.d.ts +0 -2
- package/src/lib/funnel-chart/funnel-chart.d.ts +2 -4
- package/src/lib/funnel-chart/index.d.ts +0 -1
- package/src/lib/image/image-options.d.ts +3 -5
- package/src/lib/image/image.d.ts +1 -3
- package/src/lib/image/index.d.ts +0 -1
- package/src/lib/line-chart/index.d.ts +0 -1
- package/src/lib/line-chart/line-chart-options.d.ts +13 -15
- package/src/lib/line-chart/line-chart-options.d.ts.map +1 -1
- package/src/lib/line-chart/line-chart-slots.d.ts +0 -2
- package/src/lib/line-chart/line-chart.d.ts +2 -4
- package/src/lib/pivot-table/index.d.ts +0 -1
- package/src/lib/pivot-table/pivot-table-options.d.ts +10 -12
- package/src/lib/pivot-table/pivot-table-slots.d.ts +0 -2
- package/src/lib/pivot-table/pivot-table.d.ts +2 -4
- package/src/lib/regular-table/index.d.ts +0 -1
- package/src/lib/regular-table/regular-table-options.d.ts +9 -11
- package/src/lib/regular-table/regular-table-slots.d.ts +0 -2
- package/src/lib/regular-table/regular-table.d.ts +2 -4
- package/src/lib/sankey-diagram/index.d.ts +0 -1
- package/src/lib/sankey-diagram/sankey-diagram-options.d.ts +9 -11
- package/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +0 -2
- package/src/lib/sankey-diagram/sankey-diagram.d.ts +2 -4
- package/src/lib/scatter-plot/index.d.ts +0 -1
- package/src/lib/scatter-plot/scatter-plot-options.d.ts +12 -14
- package/src/lib/scatter-plot/scatter-plot-options.d.ts.map +1 -1
- package/src/lib/scatter-plot/scatter-plot-slots.d.ts +0 -2
- package/src/lib/scatter-plot/scatter-plot.d.ts +2 -4
- package/src/lib/search-filter/index.d.ts +3 -0
- package/src/lib/search-filter/index.d.ts.map +1 -0
- package/src/lib/search-filter/search-filter-options.d.ts +56 -0
- package/src/lib/search-filter/search-filter-options.d.ts.map +1 -0
- package/src/lib/search-filter/search-filter-slots.d.ts +17 -0
- package/src/lib/search-filter/search-filter-slots.d.ts.map +1 -0
- package/src/lib/search-filter/search-filter.d.ts +23 -0
- package/src/lib/search-filter/search-filter.d.ts.map +1 -0
- package/src/lib/shared/axes.d.ts +0 -1
- package/src/lib/shared/axis-view-options.d.ts +0 -2
- package/src/lib/shared/common.d.ts +2 -4
- package/src/lib/shared/common.d.ts.map +1 -1
- package/src/lib/shared/drop-object-view-options.d.ts +0 -2
- package/src/lib/shared/filters.d.ts +0 -1
- package/src/lib/shared/formula.d.ts +0 -2
- package/src/lib/shared/index.d.ts +0 -1
- package/src/lib/shared/info-tooltip-options.d.ts +0 -1
- package/src/lib/shared/interactivity-brush.d.ts +0 -1
- package/src/lib/shared/interactivity-custom-events.d.ts +0 -2
- package/src/lib/shared/interactivity-custom-tooltip.d.ts +0 -1
- package/src/lib/shared/interactivity-drilldown.d.ts +0 -2
- package/src/lib/shared/interactivity-export.d.ts +0 -1
- package/src/lib/shared/interactivity-filter.d.ts +0 -1
- package/src/lib/shared/interactivity-go-to-url.d.ts +0 -1
- package/src/lib/shared/interactivity-measure-dimension-picker.d.ts +1 -3
- package/src/lib/shared/interactivity-target.d.ts +0 -1
- package/src/lib/shared/interpolation.d.ts +0 -1
- package/src/lib/shared/item-filter-group.d.ts +54 -3
- package/src/lib/shared/item-filter-group.d.ts.map +1 -1
- package/src/lib/shared/legend.d.ts +0 -2
- package/src/lib/shared/map-object-view-options.d.ts +2 -4
- package/src/lib/shared/object-view-options.d.ts +2 -4
- package/src/lib/shared/placeholder.d.ts +0 -1
- package/src/lib/shared/query.d.ts +0 -1
- package/src/lib/shared/ranges.d.ts +0 -1
- package/src/lib/shared/slots.d.ts +60 -6
- package/src/lib/shared/slots.d.ts.map +1 -1
- package/src/lib/shared/sort.d.ts +0 -2
- package/src/lib/shared/theme.d.ts +0 -1
- package/src/lib/shared/title.d.ts +0 -1
- package/src/lib/slicer-filter/index.d.ts +0 -1
- package/src/lib/slicer-filter/slicer-filter-options.d.ts +6 -8
- package/src/lib/slicer-filter/slicer-filter-slots.d.ts +0 -2
- package/src/lib/slicer-filter/slicer-filter.d.ts +2 -4
- package/src/lib/slider-filter/index.d.ts +0 -1
- package/src/lib/slider-filter/slider-filter-options.d.ts +5 -7
- package/src/lib/slider-filter/slider-filter-slots.d.ts +0 -2
- package/src/lib/slider-filter/slider-filter.d.ts +2 -4
- package/src/lib/text/index.d.ts +0 -1
- package/src/lib/text/text-options.d.ts +1 -3
- package/src/lib/text/text.d.ts +1 -3
- package/src/options.d.ts +23 -25
- package/src/slots.d.ts +21 -23
- package/README.md +0 -154
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BasicItemQueryAggregation, ItemQueryAggregation } from './query';
|
|
2
|
-
import { FormulaSubtype, FormulaType } from './formula';
|
|
3
1
|
import { DatetimeDisplayMode } from './common';
|
|
4
|
-
|
|
2
|
+
import { FormulaSubtype, FormulaType } from './formula';
|
|
3
|
+
import { BasicItemQueryAggregation, ItemQueryAggregation } from './query';
|
|
5
4
|
export type SlotName = 'x-axis' | 'y-axis' | 'category' | 'measure' | 'coordinates' | 'legend' | 'geo' | 'image' | 'color' | 'levels' | 'slidermetric' | 'dimension' | 'destination' | 'source' | 'time' | 'identifier' | 'target' | 'size' | 'name' | 'columns' | 'column' | 'row' | 'evolution' | 'close' | 'open' | 'low' | 'high' | 'order' | 'route';
|
|
6
5
|
export interface DashboardContentVizItemSlot {
|
|
7
6
|
/**
|
|
@@ -89,18 +88,31 @@ export interface GenericSlotContent {
|
|
|
89
88
|
/**
|
|
90
89
|
* Dataset id
|
|
91
90
|
* @format uuid
|
|
91
|
+
* @TJS-ignore
|
|
92
|
+
* @deprecated use datasetId instead.
|
|
92
93
|
*/
|
|
93
94
|
set?: string;
|
|
94
95
|
/**
|
|
95
96
|
* Column id
|
|
96
97
|
* @format uuid
|
|
98
|
+
* @TJS-ignore
|
|
99
|
+
* @deprecated use columnId instead.
|
|
97
100
|
*/
|
|
98
101
|
column?: string;
|
|
99
102
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @format uuid
|
|
103
|
+
* A dataset formula id or an ad-hoc formula. A formula is an entity similar to a column. You can add formulas on the dataset details page or use ad-hoc formulas.
|
|
102
104
|
*/
|
|
103
105
|
formula?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Dataset id
|
|
108
|
+
* @format uuid
|
|
109
|
+
*/
|
|
110
|
+
datasetId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Column id
|
|
113
|
+
* @format uuid
|
|
114
|
+
*/
|
|
115
|
+
columnId?: string;
|
|
104
116
|
/**
|
|
105
117
|
* D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
|
|
106
118
|
* It can also be used for "hierarchy" formatting but when it's used in the measure slot.
|
|
@@ -121,13 +133,27 @@ export interface GenericSlotContent {
|
|
|
121
133
|
/**
|
|
122
134
|
* Dataset id
|
|
123
135
|
* @format uuid
|
|
136
|
+
* @TJS-ignore
|
|
137
|
+
* @deprecated use datasetId instead.
|
|
124
138
|
*/
|
|
125
139
|
set: string;
|
|
126
140
|
/**
|
|
127
141
|
* Column id
|
|
128
142
|
* @format uuid
|
|
143
|
+
* @TJS-ignore
|
|
144
|
+
* @deprecated use columnId instead.
|
|
129
145
|
*/
|
|
130
146
|
column: string;
|
|
147
|
+
/**
|
|
148
|
+
* Dataset id
|
|
149
|
+
* @format uuid
|
|
150
|
+
*/
|
|
151
|
+
datasetId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Column id
|
|
154
|
+
* @format uuid
|
|
155
|
+
*/
|
|
156
|
+
columnId?: string;
|
|
131
157
|
/**
|
|
132
158
|
* Column subtype
|
|
133
159
|
*/
|
|
@@ -255,6 +281,35 @@ export interface GenericSlotContent {
|
|
|
255
281
|
* @TJS-ignore
|
|
256
282
|
*/
|
|
257
283
|
model?: any;
|
|
284
|
+
/**
|
|
285
|
+
* Settings to configure period over period comparison
|
|
286
|
+
*/
|
|
287
|
+
periodOverPeriod?: {
|
|
288
|
+
/**
|
|
289
|
+
* Period over period comparison type:
|
|
290
|
+
* 'none' - turned off,
|
|
291
|
+
* 'past' - absolute value comparison to the past,
|
|
292
|
+
* 'change' - percentage change comparison to the past
|
|
293
|
+
*/
|
|
294
|
+
type: 'none' | 'past' | 'change';
|
|
295
|
+
/**
|
|
296
|
+
* 0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond
|
|
297
|
+
*/
|
|
298
|
+
level: number;
|
|
299
|
+
/**
|
|
300
|
+
* number of periods
|
|
301
|
+
*/
|
|
302
|
+
quantity: number;
|
|
303
|
+
/**
|
|
304
|
+
* period to date comparison
|
|
305
|
+
*/
|
|
306
|
+
periodToDate: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* category date level to disallow smaller levels. For internal use only
|
|
309
|
+
* @TJS-ignore
|
|
310
|
+
*/
|
|
311
|
+
minLevel: number;
|
|
312
|
+
};
|
|
258
313
|
}
|
|
259
314
|
export interface NumericSlotContent extends Omit<GenericSlotContent, 'level' | 'lowestLevel' | 'include_nonoccurring' | 'datetimeDisplayMode' | 'weekStart' | 'weekDayNameFormat' | 'monthNameFormat'> {
|
|
260
315
|
/**
|
|
@@ -315,4 +370,3 @@ export type Slot = {
|
|
|
315
370
|
rotate?: boolean;
|
|
316
371
|
type?: 'numeric' | 'categorical' | 'mixed';
|
|
317
372
|
};
|
|
318
|
-
//# sourceMappingURL=slots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../libs/dashboard-contents-types/src/lib/shared/slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,SAAS,GACT,aAAa,GACb,QAAQ,GACR,KAAK,GACL,OAAO,GACP,OAAO,GACP,QAAQ,GACR,cAAc,GACd,WAAW,GACX,aAAa,GACb,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,KAAK,GACL,WAAW,GACX,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,G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c';
|
|
4
3
|
export interface DashboardContentVizItemSort {
|
|
5
4
|
/**
|
|
@@ -63,4 +62,3 @@ export interface DashboardContentVizItemSort {
|
|
|
63
62
|
export interface SortViewOptions {
|
|
64
63
|
sort?: DashboardContentVizItemSort;
|
|
65
64
|
}
|
|
66
|
-
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SortViewOptions } from '../shared/sort';
|
|
3
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
-
import { FilterViewOptions } from '../shared/filters';
|
|
5
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
1
|
+
import type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
6
2
|
import { LimitViewOptions, RankingViewOptions } from '../shared/common';
|
|
7
|
-
import {
|
|
8
|
-
|
|
3
|
+
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
+
import { FilterViewOptions } from '../shared/filters';
|
|
5
|
+
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
6
|
+
import { SortViewOptions } from '../shared/sort';
|
|
7
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
9
8
|
export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, FilterViewOptions, TitleViewOptions, InfoTooltipViewOptions, LimitViewOptions, RankingViewOptions, SortViewOptions, SlicerFilterDisplayViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
10
9
|
/**
|
|
11
10
|
* Rank
|
|
@@ -204,4 +203,3 @@ interface SlicerFilterDisplayViewOptions extends DisplayTitleViewOptions {
|
|
|
204
203
|
}
|
|
205
204
|
export type SlicerSubtype = 'vertical' | 'horizontal' | 'table' | 'rank-vertical';
|
|
206
205
|
export {};
|
|
207
|
-
//# sourceMappingURL=slicer-filter-options.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Measure slot definition of the Slicer filter
|
|
5
4
|
*/
|
|
@@ -27,4 +26,3 @@ interface DimensionSlot extends DashboardContentVizItemSlot {
|
|
|
27
26
|
*/
|
|
28
27
|
export type SlicerFilterSlots = (MeasureSlot | DimensionSlot)[];
|
|
29
28
|
export {};
|
|
30
|
-
//# sourceMappingURL=slicer-filter-slots.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SlicerFilterSlots } from './slicer-filter-slots';
|
|
2
|
-
import { SlicerFilterViewOptions } from './slicer-filter-options';
|
|
3
1
|
import { VizItemType } from '../shared/common';
|
|
4
|
-
|
|
2
|
+
import { SlicerFilterViewOptions } from './slicer-filter-options';
|
|
3
|
+
import { SlicerFilterSlots } from './slicer-filter-slots';
|
|
5
4
|
/**
|
|
6
5
|
* Slicer filter item
|
|
7
6
|
*/
|
|
@@ -22,4 +21,3 @@ export interface SlicerFilter {
|
|
|
22
21
|
*/
|
|
23
22
|
slots: SlicerFilterSlots;
|
|
24
23
|
}
|
|
25
|
-
//# sourceMappingURL=slicer-filter.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import type { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
2
|
+
import type { LimitViewOptions } from '../shared/common';
|
|
3
|
+
import type { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
+
import type { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
5
|
+
import type { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
7
6
|
export interface SliderFilterViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
8
7
|
/**
|
|
9
8
|
* Padding of the slider filter
|
|
@@ -21,4 +20,3 @@ export interface SliderFilterViewOptions extends Omit<DropObjectViewOptions, 'in
|
|
|
21
20
|
right?: number;
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
|
-
//# sourceMappingURL=slider-filter-options.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DashboardContentVizItemSlot, DateTimeSlotContent, NumericSlotContent } from '../shared/slots';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Slider metric slot definition of the slider filter.
|
|
5
4
|
*/
|
|
@@ -16,4 +15,3 @@ interface SliderMetricSlot extends DashboardContentVizItemSlot {
|
|
|
16
15
|
*/
|
|
17
16
|
export type SliderFilterSlots = (SliderMetricSlot)[];
|
|
18
17
|
export {};
|
|
19
|
-
//# sourceMappingURL=slider-filter-slots.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SliderFilterSlots } from './slider-filter-slots';
|
|
2
|
-
import { SliderFilterViewOptions } from './slider-filter-options';
|
|
3
1
|
import { VizItemType } from '../shared/common';
|
|
4
|
-
|
|
2
|
+
import { SliderFilterViewOptions } from './slider-filter-options';
|
|
3
|
+
import { SliderFilterSlots } from './slider-filter-slots';
|
|
5
4
|
/**
|
|
6
5
|
* Slider filter item
|
|
7
6
|
*/
|
|
@@ -22,4 +21,3 @@ export interface SliderFilter {
|
|
|
22
21
|
*/
|
|
23
22
|
slots: SliderFilterSlots;
|
|
24
23
|
}
|
|
25
|
-
//# sourceMappingURL=slider-filter.d.ts.map
|
package/src/lib/text/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
2
1
|
import { ObjectViewOptions } from '../shared/object-view-options';
|
|
3
|
-
|
|
2
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
4
3
|
export interface TextViewOptions extends Omit<ObjectViewOptions, 'display'>, TitleViewOptions, TextViewDisplayOptions {
|
|
5
4
|
/**
|
|
6
5
|
* Content of the text item. The key is the language code and the value is the content in that language.
|
|
@@ -52,4 +51,3 @@ interface TextViewDisplayOptions extends DisplayTitleViewOptions {
|
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
53
|
export {};
|
|
55
|
-
//# sourceMappingURL=text-options.d.ts.map
|
package/src/lib/text/text.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TextViewOptions } from './text-options';
|
|
2
1
|
import { VizItemType } from '../shared/common';
|
|
3
|
-
|
|
2
|
+
import { TextViewOptions } from './text-options';
|
|
4
3
|
/**
|
|
5
4
|
* Text item
|
|
6
5
|
*/
|
|
@@ -15,4 +14,3 @@ export interface Text {
|
|
|
15
14
|
*/
|
|
16
15
|
options: TextViewOptions;
|
|
17
16
|
}
|
|
18
|
-
//# sourceMappingURL=text.d.ts.map
|
package/src/options.d.ts
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import { TextViewOptions } from './lib/text';
|
|
2
|
-
import { SliderFilterViewOptions } from './lib/slider-filter';
|
|
3
|
-
import { SlicerFilterViewOptions } from './lib/slicer-filter';
|
|
4
|
-
import { ScatterPlotViewOptions } from './lib/scatter-plot';
|
|
5
|
-
import { SankeyDiagramViewOptions } from './lib/sankey-diagram';
|
|
6
|
-
import { RegularTableViewOptions } from './lib/regular-table';
|
|
7
|
-
import { PivotTableViewOptions } from './lib/pivot-table';
|
|
8
|
-
import { LineChartViewOptions } from './lib/line-chart';
|
|
9
|
-
import { ImageViewOptions } from './lib/image';
|
|
10
|
-
import { FunnelChartViewOptions } from './lib/funnel-chart';
|
|
11
|
-
import { EvolutionNumberViewOptions } from './lib/evolution-number';
|
|
12
|
-
import { DropdownFilterViewOptions } from './lib/dropdown-filter';
|
|
13
|
-
import { DonutChartViewOptions } from './lib/donut-chart';
|
|
14
|
-
import { DateFilterViewOptions } from './lib/date-filter';
|
|
15
|
-
import { ConditionalNumberViewOptions } from './lib/conditional-number';
|
|
16
|
-
import { CombinationChartViewOptions } from './lib/combination-chart';
|
|
17
|
-
import { ColumnChartViewOptions } from './lib/column-chart';
|
|
18
|
-
import { CircularGaugeViewOptions } from './lib/circular-gauge';
|
|
19
|
-
import { ChoroplethMapViewOptions } from './lib/choropleth-map';
|
|
20
|
-
import { BulletChartViewOptions } from './lib/bullet-chart';
|
|
21
|
-
import { BubbleChartViewOptions } from './lib/bubble-chart';
|
|
22
|
-
import { BarChartViewOptions } from './lib/bar-chart';
|
|
23
|
-
import { BoxPlotViewOptions } from './lib/box-plot';
|
|
24
1
|
import { AreaChartViewOptions } from './lib/area-chart';
|
|
25
|
-
|
|
2
|
+
import { BoxPlotViewOptions } from './lib/box-plot';
|
|
3
|
+
import { BarChartViewOptions } from './lib/bar-chart';
|
|
4
|
+
import { BubbleChartViewOptions } from './lib/bubble-chart';
|
|
5
|
+
import { BulletChartViewOptions } from './lib/bullet-chart';
|
|
6
|
+
import { ChoroplethMapViewOptions } from './lib/choropleth-map';
|
|
7
|
+
import { CircularGaugeViewOptions } from './lib/circular-gauge';
|
|
8
|
+
import { ColumnChartViewOptions } from './lib/column-chart';
|
|
9
|
+
import { CombinationChartViewOptions } from './lib/combination-chart';
|
|
10
|
+
import { ConditionalNumberViewOptions } from './lib/conditional-number';
|
|
11
|
+
import { DateFilterViewOptions } from './lib/date-filter';
|
|
12
|
+
import { DonutChartViewOptions } from './lib/donut-chart';
|
|
13
|
+
import { DropdownFilterViewOptions } from './lib/dropdown-filter';
|
|
14
|
+
import { EvolutionNumberViewOptions } from './lib/evolution-number';
|
|
15
|
+
import { FunnelChartViewOptions } from './lib/funnel-chart';
|
|
16
|
+
import { ImageViewOptions } from './lib/image';
|
|
17
|
+
import { LineChartViewOptions } from './lib/line-chart';
|
|
18
|
+
import { PivotTableViewOptions } from './lib/pivot-table';
|
|
19
|
+
import { RegularTableViewOptions } from './lib/regular-table';
|
|
20
|
+
import { SankeyDiagramViewOptions } from './lib/sankey-diagram';
|
|
21
|
+
import { ScatterPlotViewOptions } from './lib/scatter-plot';
|
|
22
|
+
import { SlicerFilterViewOptions } from './lib/slicer-filter';
|
|
23
|
+
import { SliderFilterViewOptions } from './lib/slider-filter';
|
|
24
|
+
import { TextViewOptions } from './lib/text';
|
|
26
25
|
export type Options = AreaChartViewOptions | BarChartViewOptions | BoxPlotViewOptions | BubbleChartViewOptions | BulletChartViewOptions | ChoroplethMapViewOptions | CircularGaugeViewOptions | ColumnChartViewOptions | CombinationChartViewOptions | ConditionalNumberViewOptions | DateFilterViewOptions | DonutChartViewOptions | DropdownFilterViewOptions | EvolutionNumberViewOptions | FunnelChartViewOptions | ImageViewOptions | LineChartViewOptions | PivotTableViewOptions | RegularTableViewOptions | SankeyDiagramViewOptions | ScatterPlotViewOptions | SlicerFilterViewOptions | SliderFilterViewOptions | TextViewOptions;
|
|
27
|
-
//# sourceMappingURL=options.d.ts.map
|
package/src/slots.d.ts
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { SliderFilterSlots } from './lib/slider-filter';
|
|
2
|
-
import { SlicerFilterSlots } from './lib/slicer-filter';
|
|
3
|
-
import { ScatterPlotSlots } from './lib/scatter-plot';
|
|
4
|
-
import { SankeyDiagramSlots } from './lib/sankey-diagram';
|
|
5
|
-
import { RegularTableSlots } from './lib/regular-table';
|
|
6
|
-
import { PivotTableSlots } from './lib/pivot-table';
|
|
7
|
-
import { LineChartSlots } from './lib/line-chart';
|
|
8
|
-
import { FunnelChartSlots } from './lib/funnel-chart';
|
|
9
|
-
import { EvolutionNumberSlots } from './lib/evolution-number';
|
|
10
|
-
import { DropdownFilterSlots } from './lib/dropdown-filter';
|
|
11
|
-
import { DonutChartSlots } from './lib/donut-chart';
|
|
12
|
-
import { DateFilterSlots } from './lib/date-filter';
|
|
13
|
-
import { ConditionalNumberSlots } from './lib/conditional-number';
|
|
14
|
-
import { CombinationChartSlots } from './lib/combination-chart';
|
|
15
|
-
import { ColumnChartSlots } from './lib/column-chart';
|
|
16
|
-
import { CircularGaugeSlots } from './lib/circular-gauge';
|
|
17
|
-
import { ChoroplethMapSlots } from './lib/choropleth-map';
|
|
18
|
-
import { BulletChartSlots } from './lib/bullet-chart';
|
|
19
|
-
import { BubbleChartSlots } from './lib/bubble-chart';
|
|
20
|
-
import { BoxPlotSlots } from './lib/box-plot';
|
|
21
|
-
import { BarChartSlots } from './lib/bar-chart';
|
|
22
1
|
import { AreaChartSlots } from './lib/area-chart';
|
|
23
|
-
|
|
2
|
+
import { BarChartSlots } from './lib/bar-chart';
|
|
3
|
+
import { BoxPlotSlots } from './lib/box-plot';
|
|
4
|
+
import { BubbleChartSlots } from './lib/bubble-chart';
|
|
5
|
+
import { BulletChartSlots } from './lib/bullet-chart';
|
|
6
|
+
import { ChoroplethMapSlots } from './lib/choropleth-map';
|
|
7
|
+
import { CircularGaugeSlots } from './lib/circular-gauge';
|
|
8
|
+
import { ColumnChartSlots } from './lib/column-chart';
|
|
9
|
+
import { CombinationChartSlots } from './lib/combination-chart';
|
|
10
|
+
import { ConditionalNumberSlots } from './lib/conditional-number';
|
|
11
|
+
import { DateFilterSlots } from './lib/date-filter';
|
|
12
|
+
import { DonutChartSlots } from './lib/donut-chart';
|
|
13
|
+
import { DropdownFilterSlots } from './lib/dropdown-filter';
|
|
14
|
+
import { EvolutionNumberSlots } from './lib/evolution-number';
|
|
15
|
+
import { FunnelChartSlots } from './lib/funnel-chart';
|
|
16
|
+
import { LineChartSlots } from './lib/line-chart';
|
|
17
|
+
import { PivotTableSlots } from './lib/pivot-table';
|
|
18
|
+
import { RegularTableSlots } from './lib/regular-table';
|
|
19
|
+
import { SankeyDiagramSlots } from './lib/sankey-diagram';
|
|
20
|
+
import { ScatterPlotSlots } from './lib/scatter-plot';
|
|
21
|
+
import { SlicerFilterSlots } from './lib/slicer-filter';
|
|
22
|
+
import { SliderFilterSlots } from './lib/slider-filter';
|
|
24
23
|
export type Slots = AreaChartSlots | BarChartSlots | BoxPlotSlots | BubbleChartSlots | BulletChartSlots | ChoroplethMapSlots | CircularGaugeSlots | ColumnChartSlots | CombinationChartSlots | ConditionalNumberSlots | DateFilterSlots | DonutChartSlots | DropdownFilterSlots | EvolutionNumberSlots | FunnelChartSlots | LineChartSlots | PivotTableSlots | RegularTableSlots | SankeyDiagramSlots | ScatterPlotSlots | SlicerFilterSlots | SliderFilterSlots;
|
|
25
24
|
export type VizItemSlots = Slots;
|
|
26
|
-
//# sourceMappingURL=slots.d.ts.map
|
package/README.md
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# Types and JSON schemas for Luzmo dashboard contents
|
|
2
|
-
|
|
3
|
-
This packages contains different dashboard contents' types and JSON schemas for Luzmo dashboard contents.
|
|
4
|
-
|
|
5
|
-
## Content Item Types
|
|
6
|
-
|
|
7
|
-
Here is the list of some types for content items. There are more types available in the package.
|
|
8
|
-
|
|
9
|
-
| Type | Description |
|
|
10
|
-
|--------------------------------|-------------------------------------------------------|
|
|
11
|
-
| `AreaChart` | An Area Chart type. |
|
|
12
|
-
| `AreaChartViewOptions` | An Area Chart options type. |
|
|
13
|
-
| `AreaChartSlots` | An Area Chart slots type. |
|
|
14
|
-
| `BarChart` | A Bar Chart type. |
|
|
15
|
-
| `BarChartViewOptions` | A Bar Chart options type. |
|
|
16
|
-
| `BarChartSlots` | A Bar Chart slots type. |
|
|
17
|
-
| `BoxPlot` | A Box Plot type. |
|
|
18
|
-
| `BoxPlotViewOptions` | A Box Plot options type. |
|
|
19
|
-
| `BoxPlotSlots` | A Box Plot slots type. |
|
|
20
|
-
| `BubbleChart` | A Bubble Chart type. |
|
|
21
|
-
| `BubbleChartViewOptions` | A Bubble Chart options type. |
|
|
22
|
-
| `BubbleChartSlots` | A Bubble Chart slots type. |
|
|
23
|
-
| `BulletChart` | A Bullet Chart type. |
|
|
24
|
-
| `BulletChartViewOptions` | A Bullet Chart options type. |
|
|
25
|
-
| `BulletChartSlots` | A Bullet Chart slots type. |
|
|
26
|
-
| `ChoroplethMap` | A Choropleth Map type. |
|
|
27
|
-
| `ChoroplethMapViewOptions` | A Choropleth Map options type. |
|
|
28
|
-
| `ChoroplethMapSlots` | A Choropleth Map slots type. |
|
|
29
|
-
| `CircularGauge` | A Circular Gauge type. |
|
|
30
|
-
| `CircularGaugeViewOptions` | A Circular Gauge options type. |
|
|
31
|
-
| `CircularGaugeSlots` | A Circular Gauge slots type. |
|
|
32
|
-
| `ColumnChart` | A Column Chart type. |
|
|
33
|
-
| `ColumnChartViewOptions` | A Column Chart options type. |
|
|
34
|
-
| `ColumnChartSlots` | A Column Chart slots type. |
|
|
35
|
-
| `CombinationChart` | A Combination Chart type. |
|
|
36
|
-
| `CombinationChartViewOptions` | A Combination Chart options type. |
|
|
37
|
-
| `CombinationChartSlots` | A Combination Chart slots type. |
|
|
38
|
-
| `ConditionalNumber` | A Conditional Number type. |
|
|
39
|
-
| `ConditionalNumberViewOptions` | A Conditional Number options type. |
|
|
40
|
-
| `ConditionalNumberSlots` | A Conditional Number slots type. |
|
|
41
|
-
| `DateFilter` | A Date Filter type. |
|
|
42
|
-
| `DateFilterViewOptions` | A Date Filter options type. |
|
|
43
|
-
| `DateFilterSlots` | A Date Filter slots type. |
|
|
44
|
-
| `DonutChart` | A Donut Chart type. |
|
|
45
|
-
| `DonutChartViewOptions` | A Donut Chart options type. |
|
|
46
|
-
| `DonutChartSlots` | A Donut Chart slots type. |
|
|
47
|
-
| `DropdownFilter` | A Dropdown Filter type. |
|
|
48
|
-
| `DropdownFilterViewOptions` | A Dropdown Filter options type. |
|
|
49
|
-
| `DropdownFilterSlots` | A Dropdown Filter slots type. |
|
|
50
|
-
| `EvolutionNumber` | An Evolution Number type. |
|
|
51
|
-
| `EvolutionNumberViewOptions` | An Evolution Number options type. |
|
|
52
|
-
| `EvolutionNumberSlots` | An Evolution Number slots type. |
|
|
53
|
-
| `FunnelChart` | A Funnel Chart type. |
|
|
54
|
-
| `FunnelChartViewOptions` | A Funnel Chart options type. |
|
|
55
|
-
| `FunnelChartSlots` | A Funnel Chart slots type. |
|
|
56
|
-
| `Image` | An Image type. |
|
|
57
|
-
| `ImageViewOptions` | An Image options type. |
|
|
58
|
-
| `LineChart` | A Line Chart type. |
|
|
59
|
-
| `LineChartViewOptions` | A Line Chart options type. |
|
|
60
|
-
| `LineChartSlots` | A Line Chart slots type. |
|
|
61
|
-
| `PivotTable` | A Pivot Table type. |
|
|
62
|
-
| `PivotTableViewOptions` | A Pivot Table options type. |
|
|
63
|
-
| `PivotTableSlots` | A Pivot Table slots type. |
|
|
64
|
-
| `RegularTable` | A Regular Table type. |
|
|
65
|
-
| `RegularTableViewOptions` | A Regular Table options type. |
|
|
66
|
-
| `RegularTableSlots` | A Regular Table slots type. |
|
|
67
|
-
| `SankeyDiagram` | A ScatterPlot type. |
|
|
68
|
-
| `SankeyDiagramViewOptions` | A Sankey Diagram options type. |
|
|
69
|
-
| `SankeyDiagramSlots` | A Sankey Diagram slots type. |
|
|
70
|
-
| `ScatterPlot` | A Scatter Plot type. |
|
|
71
|
-
| `ScatterPlotViewOptions` | A Scatter Plot options type. |
|
|
72
|
-
| `ScatterPlotSlots` | A Scatter Plot slots type. |
|
|
73
|
-
| `SlicerFilter` | A Slicer Filter type. |
|
|
74
|
-
| `SlicerFilterViewOptions` | A Slicer Filter options type. |
|
|
75
|
-
| `SlicerFilterSlots` | A Slicer Filter slots type. |
|
|
76
|
-
| `SliderFilter` | A Slider Filter type. |
|
|
77
|
-
| `SliderFilterViewOptions` | A Slider Filter options type. |
|
|
78
|
-
| `SliderFilterSlots` | A Slider Filter slots type. |
|
|
79
|
-
| `Text` | A Text type. |
|
|
80
|
-
| `TextViewOptions` | A Text options type. |
|
|
81
|
-
| `VizItemType` | A union type for content item types. |
|
|
82
|
-
| `Options` | A union type for all the options from all the charts. |
|
|
83
|
-
| `Slots` | A union type for all the slots from all the charts. |
|
|
84
|
-
|
|
85
|
-
## JSON Schemas
|
|
86
|
-
|
|
87
|
-
The library also provides JSON schemas for the content items. The schemas are provided as an object with the schema name as the key and the schema as the value.
|
|
88
|
-
|
|
89
|
-
```typescript
|
|
90
|
-
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
91
|
-
|
|
92
|
-
console.log(JSON_SCHEMAS);
|
|
93
|
-
console.log(JSON_SCHEMAS['text-options.schema.json']);
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
The JSON schemas are not dereferenced. You can use a library like [json-schema-ref-parser](https://github.com/APIDevTools/json-schema-ref-parser) to dereference the schemas. `json-schema-ref-parser` is a Node library so to use it in a browser environment you should add a [configuration](https://github.com/APIDevTools/json-schema-ref-parser?tab=readme-ov-file#browser-support) for that.
|
|
97
|
-
|
|
98
|
-
```typescript
|
|
99
|
-
import * as refParser from '@apidevtools/json-schema-ref-parser';
|
|
100
|
-
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
101
|
-
|
|
102
|
-
const refParserResolver = {
|
|
103
|
-
order: 101,
|
|
104
|
-
canRead: /^https:\/\/developer\.luzmo\.com/,
|
|
105
|
-
read: (file, callback) => {
|
|
106
|
-
const name = file.url.split('/').pop();
|
|
107
|
-
const schema = JSON_SCHEMAS[name];
|
|
108
|
-
|
|
109
|
-
if (schema) {
|
|
110
|
-
callback(null, JSON.stringify(schema));
|
|
111
|
-
} else {
|
|
112
|
-
callback(new Error('Schema not found'));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const refParserOptions = {
|
|
118
|
-
mutateInputSchema: false,
|
|
119
|
-
resolve: {
|
|
120
|
-
http: refParserResolver,
|
|
121
|
-
external: true
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
refParser.dereference(JSON_SCHEMAS['area-chart-slots.schema.json'], refParserOptions)
|
|
126
|
-
.then((dereferencedSchema) => {
|
|
127
|
-
console.log(dereferencedSchema);
|
|
128
|
-
})
|
|
129
|
-
.catch((err) => {
|
|
130
|
-
console.error(err);
|
|
131
|
-
});
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
To validate a content item against a schema, you can use a library like [ajv](https://github.com/ajv-validator/ajv).
|
|
135
|
-
|
|
136
|
-
```typescript
|
|
137
|
-
import Ajv from "ajv";
|
|
138
|
-
import ajvAddFormats from 'ajv-formats';
|
|
139
|
-
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
140
|
-
|
|
141
|
-
const ajv = new Ajv({
|
|
142
|
-
schemas: Object.keys(JSON_SCHEMAS).map(key => JSON_SCHEMAS[key]),
|
|
143
|
-
allowUnionTypes: true,
|
|
144
|
-
strictTuples: false
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
ajvAddFormats(ajv);
|
|
148
|
-
|
|
149
|
-
const schemaId = 'https://developer.luzmo.com/assets/json-schemas/0.1.89/text-options.schema.json';
|
|
150
|
-
const validate = ajv.getSchema(schemaId);
|
|
151
|
-
const isValid = validate('VALUE TO VALIDATE');
|
|
152
|
-
|
|
153
|
-
console.log(isValid);
|
|
154
|
-
```
|