@luzmo/embed 6.1.4 → 6.1.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 +6 -0
- package/index.cjs +310 -4121
- package/index.js +310 -4121
- package/luzmo-embed.min.js +310 -4121
- package/package.json +3 -3
- package/libs/dashboard-contents-types/index.d.ts +0 -2
- package/libs/dashboard-contents-types/json-schemas.d.ts +0 -45234
- package/libs/dashboard-contents-types/src/index.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +0 -334
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +0 -258
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +0 -310
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +0 -30
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +0 -98
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +0 -41
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +0 -99
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +0 -40
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +0 -138
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +0 -41
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +0 -122
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +0 -259
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +0 -344
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +0 -94
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +0 -146
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +0 -18
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +0 -131
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +0 -83
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +0 -200
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +0 -110
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +0 -29
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +0 -63
- package/libs/dashboard-contents-types/src/lib/image/image.d.ts +0 -16
- package/libs/dashboard-contents-types/src/lib/image/index.d.ts +0 -2
- package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +0 -354
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +0 -39
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +0 -206
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +0 -37
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +0 -124
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +0 -123
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +0 -50
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +0 -213
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +0 -61
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/search-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +0 -56
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +0 -35
- package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +0 -103
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +0 -14
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +0 -32
- package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +0 -30
- package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +0 -24
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +0 -11
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +0 -61
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +0 -13
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +0 -81
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +0 -24
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +0 -11
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +0 -66
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +0 -1
- package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +0 -4
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +0 -174
- package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +0 -31
- package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +0 -37
- package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +0 -6
- package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +0 -10
- package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +0 -25
- package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +0 -373
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +0 -64
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +0 -271
- package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +0 -18
- package/libs/dashboard-contents-types/src/lib/shared/viz-item.d.ts +0 -60
- package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +0 -205
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +0 -28
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +0 -3
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +0 -22
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +0 -17
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +0 -23
- package/libs/dashboard-contents-types/src/lib/text/index.d.ts +0 -2
- package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +0 -53
- package/libs/dashboard-contents-types/src/lib/text/text.d.ts +0 -16
- package/libs/dashboard-contents-types/src/options.d.ts +0 -25
- package/libs/dashboard-contents-types/src/slots.d.ts +0 -24
- package/libs/embed-libs/embed/src/index.d.ts +0 -5
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +0 -6
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +0 -72
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +0 -33
- package/libs/embed-libs/shared-embed/src/index.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +0 -5
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +0 -7
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +0 -5
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +0 -16
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +0 -7
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +0 -8
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +0 -18
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +0 -27
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +0 -4
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +0 -3
- package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +0 -4
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +0 -103
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +0 -45
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +0 -73
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +0 -17
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +0 -32
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +0 -44
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +0 -4
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +0 -2
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +0 -36
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +0 -36
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +0 -14
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +0 -13
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +0 -15
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +0 -14
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +0 -2
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { CombinationChartViewOptions } from './combination-chart-options';
|
|
3
|
-
import { CombinationChartSlots } from './combination-chart-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Combination chart item
|
|
6
|
-
*/
|
|
7
|
-
export interface CombinationChart {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'combination-chart'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the Combination chart item
|
|
14
|
-
* @$ref ./combination-chart-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: CombinationChartViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Combination chart
|
|
19
|
-
* @maxItems 2
|
|
20
|
-
* @$ref ./combination-chart-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: CombinationChartSlots;
|
|
23
|
-
}
|
package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { XAxisLabelPosition, YAxisLabelPosition } from '../shared/axes';
|
|
2
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
3
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
-
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
5
|
-
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
6
|
-
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
7
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
8
|
-
import { ManualValuesRange } from '../shared/ranges';
|
|
9
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
10
|
-
export interface ConditionalNumberViewOptions extends Omit<DropObjectViewOptions, 'interactivity' | 'display'>, TitleViewOptions, InfoTooltipViewOptions, ConditionalNumberInteractivityViewOptions, ConditionalNumberDisplayViewOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Display mode
|
|
13
|
-
* @default "normal"
|
|
14
|
-
*/
|
|
15
|
-
mode?: 'normal' | 'difference' | 'percentage';
|
|
16
|
-
/**
|
|
17
|
-
* Alignment options
|
|
18
|
-
*/
|
|
19
|
-
alignment?: {
|
|
20
|
-
/**
|
|
21
|
-
* Horizontal alignment
|
|
22
|
-
* @default "center"
|
|
23
|
-
*/
|
|
24
|
-
horizontal?: XAxisLabelPosition;
|
|
25
|
-
/**
|
|
26
|
-
* Vertical alignment
|
|
27
|
-
* @default "middle"
|
|
28
|
-
*/
|
|
29
|
-
vertical?: YAxisLabelPosition;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Conditional color manual values
|
|
33
|
-
*/
|
|
34
|
-
manualValues?: {
|
|
35
|
-
conditional?: ManualValuesRange[];
|
|
36
|
-
/**
|
|
37
|
-
* Display as background color
|
|
38
|
-
*/
|
|
39
|
-
asBackgroundColor?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Target
|
|
42
|
-
*/
|
|
43
|
-
target?: number;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
interface ConditionalNumberDisplayViewOptions extends DisplayTitleViewOptions {
|
|
47
|
-
/**
|
|
48
|
-
* Display options
|
|
49
|
-
*/
|
|
50
|
-
display?: {
|
|
51
|
-
/**
|
|
52
|
-
* Show or hide the title
|
|
53
|
-
* @default true
|
|
54
|
-
*/
|
|
55
|
-
title?: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
56
|
-
/**
|
|
57
|
-
* Is label displayed
|
|
58
|
-
*/
|
|
59
|
-
label?: boolean;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
interface ConditionalNumberInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
63
|
-
/**
|
|
64
|
-
* Interactivity options
|
|
65
|
-
*/
|
|
66
|
-
interactivity?: {
|
|
67
|
-
/**
|
|
68
|
-
* Go to URL interactivity option
|
|
69
|
-
* @default { "target": "_blank", "url": null }
|
|
70
|
-
*/
|
|
71
|
-
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
72
|
-
/**
|
|
73
|
-
* An array of measure dimension picker configurations
|
|
74
|
-
* @default [[]]
|
|
75
|
-
*/
|
|
76
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
77
|
-
/**
|
|
78
|
-
* Custom events interactivity option
|
|
79
|
-
* @default null
|
|
80
|
-
*/
|
|
81
|
-
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
82
|
-
/**
|
|
83
|
-
* Available export types interactivity option
|
|
84
|
-
* @default ["xlsx", "csv", "png"]
|
|
85
|
-
*/
|
|
86
|
-
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
87
|
-
/**
|
|
88
|
-
* Export types interactivity option
|
|
89
|
-
* @default ["xlsx", "csv", "png"]
|
|
90
|
-
*/
|
|
91
|
-
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
export {};
|
package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Measure slot definition of the Conditional number, This is a required slot
|
|
4
|
-
*/
|
|
5
|
-
interface MeasureSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'measure';
|
|
7
|
-
/**
|
|
8
|
-
* Measure slot definition
|
|
9
|
-
* @maxItems 1
|
|
10
|
-
*/
|
|
11
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Target slot definition of the Conditional number
|
|
15
|
-
*/
|
|
16
|
-
interface TargetSlot extends DashboardContentVizItemSlot {
|
|
17
|
-
name: 'target';
|
|
18
|
-
/**
|
|
19
|
-
* Target slot definition
|
|
20
|
-
* @maxItems 1
|
|
21
|
-
*/
|
|
22
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Data definition of the Conditional number
|
|
26
|
-
* @maxItems 2
|
|
27
|
-
*/
|
|
28
|
-
export type ConditionalNumberSlots = (MeasureSlot | TargetSlot)[];
|
|
29
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { ConditionalNumberViewOptions } from './conditional-number-options';
|
|
3
|
-
import { ConditionalNumberSlots } from './conditional-number-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Conditional number item
|
|
6
|
-
*/
|
|
7
|
-
export interface ConditionalNumber {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'conditional-number'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the Conditional number item
|
|
14
|
-
* @$ref ./conditional-number-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: ConditionalNumberViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Conditional number
|
|
19
|
-
* @maxItems 2
|
|
20
|
-
* @$ref ./conditional-number-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: ConditionalNumberSlots;
|
|
23
|
-
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
2
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
3
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
-
import { PlaceholderViewOptions } from '../shared/placeholder';
|
|
5
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
6
|
-
export interface DateFilterViewOptions extends DropObjectViewOptions, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, PlaceholderViewOptions, DateFilterInteractivityViewOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Padding of the date filter
|
|
9
|
-
*/
|
|
10
|
-
padding?: {
|
|
11
|
-
/**
|
|
12
|
-
* Padding left
|
|
13
|
-
* @default 16
|
|
14
|
-
*/
|
|
15
|
-
left?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Padding right
|
|
18
|
-
* @default 16
|
|
19
|
-
*/
|
|
20
|
-
right?: number;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Date filter range options
|
|
24
|
-
*/
|
|
25
|
-
dateRange?: {
|
|
26
|
-
/**
|
|
27
|
-
* Toggle if calendar should always be shown or only if custom range is selected
|
|
28
|
-
* @default true
|
|
29
|
-
*/
|
|
30
|
-
alwaysShowCalendars: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Hide the apply and cancel buttons, and automatically apply a new date range as soon as two dates are clicked.
|
|
33
|
-
* Defaults to false if used column is of type datetime, otherwise true.
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
autoApply: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Toggle dropdown of month and year selection
|
|
39
|
-
* @default true
|
|
40
|
-
*/
|
|
41
|
-
showDropdowns: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Toggle week numbers
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
showISOWeekNumbers: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Toggle to choose a single date instead of a date range.
|
|
49
|
-
* @default false
|
|
50
|
-
* @TJS-ignore
|
|
51
|
-
*/
|
|
52
|
-
singleDatePicker: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* @TJS-ignore
|
|
55
|
-
*/
|
|
56
|
-
linkedCalendars: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @TJS-ignore
|
|
59
|
-
*/
|
|
60
|
-
singleCalendar: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Toggle timepicker
|
|
63
|
-
* @TJS-ignore
|
|
64
|
-
*/
|
|
65
|
-
timePicker24Hour: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Toggle custom range label
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
showCustomRangeLabel: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Toggle to mark unavailable dates
|
|
73
|
-
*/
|
|
74
|
-
markUnavailable: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* First day of the week (0 - Sunday, 1 - Monday, 2 - Tuesday, etc…)
|
|
77
|
-
* @default 1
|
|
78
|
-
*/
|
|
79
|
-
firstDay?: number;
|
|
80
|
-
/**
|
|
81
|
-
* Toggle to display ranges
|
|
82
|
-
*/
|
|
83
|
-
displayRanges: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Date filter ranges
|
|
86
|
-
*/
|
|
87
|
-
ranges: DateFilterRange[];
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Interactivity options
|
|
91
|
-
*/
|
|
92
|
-
interactivity?: {
|
|
93
|
-
/**
|
|
94
|
-
* An array of measure dimension picker configurations
|
|
95
|
-
* @default [[]]
|
|
96
|
-
*/
|
|
97
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
type DateFilterInteractivityViewOptions = InteractivityMeasureDimensionPickerViewOptions;
|
|
101
|
-
export interface DateFilterRange {
|
|
102
|
-
/**
|
|
103
|
-
* Predefined list of keys to select from
|
|
104
|
-
* @examples ["last", "last_now", "last_completed", "ago", "next_now", "next_full", "custom"]
|
|
105
|
-
*/
|
|
106
|
-
key: string;
|
|
107
|
-
/**
|
|
108
|
-
* Unit of the range (e.g. 1 for year, 2 for quarter, 3 for month, 4 for week, 5 for day, 6 for hour, 7 for minute, 8 for second)
|
|
109
|
-
*/
|
|
110
|
-
unit: number;
|
|
111
|
-
/**
|
|
112
|
-
* Quantity of the range
|
|
113
|
-
* @examples [0, 7, 30, 60, 90]
|
|
114
|
-
*/
|
|
115
|
-
quantity: number;
|
|
116
|
-
/**
|
|
117
|
-
* Unique identifier for the range
|
|
118
|
-
*/
|
|
119
|
-
rangeId?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Display label. The key is the language code and the value is the content in that language.
|
|
122
|
-
* @examples [{"en": "Hello World", "de": "Hallo Welt"}]
|
|
123
|
-
* @TJS-type object
|
|
124
|
-
*/
|
|
125
|
-
displayLabel?: Record<string, string>;
|
|
126
|
-
/**
|
|
127
|
-
* Label for the range
|
|
128
|
-
* When passing ranges manually in flex, displayLabel will be used as the label
|
|
129
|
-
* @TJS-ignore
|
|
130
|
-
*/
|
|
131
|
-
label?: string;
|
|
132
|
-
/**
|
|
133
|
-
* Custom range configuration object (if key passed is 'custom')
|
|
134
|
-
*/
|
|
135
|
-
customRange?: {
|
|
136
|
-
/**
|
|
137
|
-
* Custom range start date. It should be valid date (in any format)
|
|
138
|
-
*/
|
|
139
|
-
from: string;
|
|
140
|
-
/**
|
|
141
|
-
* Custom range end date. It should be valid date (in any format)
|
|
142
|
-
*/
|
|
143
|
-
to: string;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Time slot definition of the date filter. It can accept only datetime type column, and it's a required slot.
|
|
4
|
-
* This can include multiple time slots to filter on multiple columns at once.
|
|
5
|
-
*/
|
|
6
|
-
interface TimeSlot extends DashboardContentVizItemSlot {
|
|
7
|
-
name: 'time';
|
|
8
|
-
/**
|
|
9
|
-
* Time slot definition
|
|
10
|
-
*/
|
|
11
|
-
content: DateTimeSlotContent[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Data definition of the Date filter
|
|
15
|
-
* @maxItems 1
|
|
16
|
-
*/
|
|
17
|
-
export type DateFilterSlots = (TimeSlot)[];
|
|
18
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { DateFilterViewOptions } from './date-filter-options';
|
|
3
|
-
import { DateFilterSlots } from './date-filter-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Date filter item
|
|
6
|
-
*/
|
|
7
|
-
export interface DateFilter {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'date-filter'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the date filter item
|
|
14
|
-
* @$ref ./date-filter-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: DateFilterViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Date filter
|
|
19
|
-
* @maxItems 1
|
|
20
|
-
* @$ref ./date-filter-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: DateFilterSlots;
|
|
23
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { InteractivityFilterOnSelectViewOptions } from '../shared';
|
|
2
|
-
import type { LimitViewOptions } from '../shared/common';
|
|
3
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
4
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
5
|
-
import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-custom-events';
|
|
6
|
-
import { InteractivityCustomTooltipViewOptions } from '../shared/interactivity-custom-tooltip';
|
|
7
|
-
import { InteractivityDrilldownViewOptions } from '../shared/interactivity-drilldown';
|
|
8
|
-
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
9
|
-
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
10
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
11
|
-
import { DisplayLegendViewOptions, LegendViewOptions } from '../shared/legend';
|
|
12
|
-
import { SortViewOptions } from '../shared/sort';
|
|
13
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
14
|
-
export interface DonutChartViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, LegendViewOptions, TitleViewOptions, LimitViewOptions, SortViewOptions, DonutChartDisplayViewOptions, DonutChartInteractivityViewOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Mode of the Donut chart: donut or pie
|
|
17
|
-
* @default "donut"
|
|
18
|
-
*/
|
|
19
|
-
mode?: 'donut' | 'pie';
|
|
20
|
-
/**
|
|
21
|
-
* If it's set fine-tunes the 'mode' option. When it's 'pie' or 'half-pie the 'mode' will become 'pie' otherwise 'donut'.
|
|
22
|
-
* @TJS-ignore
|
|
23
|
-
*/
|
|
24
|
-
startWithSubType?: DonutSubtype;
|
|
25
|
-
/**
|
|
26
|
-
* Slice configuration options
|
|
27
|
-
*/
|
|
28
|
-
slices?: {
|
|
29
|
-
/**
|
|
30
|
-
* Toggle half slices
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
half?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Set width of the slices
|
|
36
|
-
* @default .35
|
|
37
|
-
*/
|
|
38
|
-
width?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Set maximum number of slices
|
|
41
|
-
* @default 12
|
|
42
|
-
*/
|
|
43
|
-
maxNumber?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Set minimum percentage of slices
|
|
46
|
-
* @default 3
|
|
47
|
-
*/
|
|
48
|
-
minPercentage?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Set rounded corners of the slices
|
|
51
|
-
*/
|
|
52
|
-
roundedCorners?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Set padding between the slices
|
|
55
|
-
*/
|
|
56
|
-
padding?: number;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
interface DonutChartDisplayViewOptions extends DisplayLegendViewOptions, DisplayTitleViewOptions {
|
|
60
|
-
/**
|
|
61
|
-
* General display options of the Bar chart: title, legend and mode option
|
|
62
|
-
*/
|
|
63
|
-
display: {
|
|
64
|
-
/**
|
|
65
|
-
* Show or hide the title
|
|
66
|
-
* @default true
|
|
67
|
-
*/
|
|
68
|
-
title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
69
|
-
/**
|
|
70
|
-
* Show or hide the legend
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
74
|
-
/**
|
|
75
|
-
* Show or hide the values in the chart: none, percentage or absolute
|
|
76
|
-
*/
|
|
77
|
-
values?: 'none' | 'percentage' | 'absolute';
|
|
78
|
-
/**
|
|
79
|
-
* Show or hide the category labels in the chart
|
|
80
|
-
*/
|
|
81
|
-
categoryLabels?: boolean;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
interface DonutChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
85
|
-
/**
|
|
86
|
-
* Interactivity options
|
|
87
|
-
*/
|
|
88
|
-
interactivity?: {
|
|
89
|
-
/**
|
|
90
|
-
* Available export types interactivity option
|
|
91
|
-
* @default ["xlsx", "csv", "png"]
|
|
92
|
-
*/
|
|
93
|
-
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
94
|
-
/**
|
|
95
|
-
* Custom events interactivity option
|
|
96
|
-
* @default null
|
|
97
|
-
*/
|
|
98
|
-
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
99
|
-
/**
|
|
100
|
-
* Custom tooltip interactivity option, in format {locale: "tooltip"}, for example, {en: "Total Revenue"}
|
|
101
|
-
* @default null
|
|
102
|
-
*/
|
|
103
|
-
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
104
|
-
/**
|
|
105
|
-
* Drilldown interactivity option
|
|
106
|
-
*/
|
|
107
|
-
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
108
|
-
/**
|
|
109
|
-
* Export types interactivity option
|
|
110
|
-
* @default ["xlsx", "csv", "png"]
|
|
111
|
-
*/
|
|
112
|
-
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
113
|
-
/**
|
|
114
|
-
* An array of measure dimension picker configurations
|
|
115
|
-
* @default [[]]
|
|
116
|
-
*/
|
|
117
|
-
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
118
|
-
/**
|
|
119
|
-
* Filter on select interactivity option
|
|
120
|
-
* @default true
|
|
121
|
-
*/
|
|
122
|
-
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
123
|
-
/**
|
|
124
|
-
* Go to URL interactivity option
|
|
125
|
-
* @default { "target": "_blank", "url": null }
|
|
126
|
-
*/
|
|
127
|
-
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
export type DonutSubtype = 'pie' | 'donut' | 'half-pie' | 'half-donut';
|
|
131
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Measure slot definition of the donut chart. A donut chart can contain any number of measures.
|
|
4
|
-
*/
|
|
5
|
-
interface MeasureSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'measure';
|
|
7
|
-
/**
|
|
8
|
-
* Measure slot definition
|
|
9
|
-
*/
|
|
10
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Category slot definition of the donut chart.
|
|
14
|
-
*/
|
|
15
|
-
interface CategorySlot extends DashboardContentVizItemSlot {
|
|
16
|
-
name: 'category';
|
|
17
|
-
/**
|
|
18
|
-
* Y-axis slot definition
|
|
19
|
-
* @maxItems 1
|
|
20
|
-
*/
|
|
21
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Data definition of the Donut chart
|
|
25
|
-
* @maxItems 2
|
|
26
|
-
*/
|
|
27
|
-
export type DonutChartSlots = (MeasureSlot | CategorySlot)[];
|
|
28
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizItemType } from '../shared/common';
|
|
2
|
-
import { DonutChartViewOptions } from './donut-chart-options';
|
|
3
|
-
import { DonutChartSlots } from './donut-chart-slots';
|
|
4
|
-
/**
|
|
5
|
-
* Donut chart item
|
|
6
|
-
*/
|
|
7
|
-
export interface DonutChart {
|
|
8
|
-
/**
|
|
9
|
-
* Type of the item
|
|
10
|
-
*/
|
|
11
|
-
type: Extract<VizItemType, 'donut-chart'>;
|
|
12
|
-
/**
|
|
13
|
-
* Options of the donut chart item
|
|
14
|
-
* @$ref ./donut-chart-options.schema.json/
|
|
15
|
-
*/
|
|
16
|
-
options: DonutChartViewOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Data definition of the Donut chart
|
|
19
|
-
* @maxItems 2
|
|
20
|
-
* @$ref ./donut-chart-slots.schema.json
|
|
21
|
-
*/
|
|
22
|
-
slots: DonutChartSlots;
|
|
23
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { LimitViewOptions } from '../shared/common';
|
|
2
|
-
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
3
|
-
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
-
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
5
|
-
import { PlaceholderViewOptions } from '../shared/placeholder';
|
|
6
|
-
import { SortViewOptions } from '../shared/sort';
|
|
7
|
-
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
8
|
-
export interface DropdownFilterViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, LimitViewOptions, SortViewOptions, PlaceholderViewOptions, DropdownFilterDisplayViewOptions, DropdownFilterInteractivityViewOptions {
|
|
9
|
-
/**
|
|
10
|
-
* Toggle multiple option selection for the Dropdown filter
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
multiselect?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether to auto apply filters or add the apply button
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
applyFiltersWithButton?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Show or hide checkboxes for the Dropdown filter
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
showCheckboxes?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Update left or right padding of the Dropdown filter
|
|
26
|
-
*/
|
|
27
|
-
padding?: {
|
|
28
|
-
/**
|
|
29
|
-
* Update left padding of the Dropdown filter
|
|
30
|
-
* @default 16
|
|
31
|
-
*/
|
|
32
|
-
left?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Update right padding of the Dropdown filter
|
|
35
|
-
* @default 16
|
|
36
|
-
*/
|
|
37
|
-
right?: number;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Search options for the Dropdown filter
|
|
41
|
-
*/
|
|
42
|
-
search?: {
|
|
43
|
-
/**
|
|
44
|
-
* Toggle case sensitivity for the search
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
caseSensitive: boolean;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
interface DropdownFilterDisplayViewOptions extends DisplayTitleViewOptions {
|
|
51
|
-
/**
|
|
52
|
-
* General display options of the Dropdown filter: title, label, placeholder, search and clear
|
|
53
|
-
*/
|
|
54
|
-
display: {
|
|
55
|
-
/**
|
|
56
|
-
* Show or hide the title
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
60
|
-
/**
|
|
61
|
-
* Show or hide the label of the Dropdown filter
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
label?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Show or hide the placeholder
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
placeholder?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Show or hide the search bar
|
|
72
|
-
* @default true
|
|
73
|
-
*/
|
|
74
|
-
search?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Show or hide the clear button
|
|
77
|
-
* @default true
|
|
78
|
-
*/
|
|
79
|
-
clear?: boolean;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
type DropdownFilterInteractivityViewOptions = InteractivityMeasureDimensionPickerViewOptions;
|
|
83
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DashboardContentVizItemSlot, HierarchySlotContent, NumericSlotContent, DateTimeSlotContent } from '../shared/slots';
|
|
2
|
-
/**
|
|
3
|
-
* Dimension slot definition of the Dropdown filter. Dimension slot is a required slot and it can have multiple columns.
|
|
4
|
-
*/
|
|
5
|
-
interface DimensionSlot extends DashboardContentVizItemSlot {
|
|
6
|
-
name: 'dimension';
|
|
7
|
-
/**
|
|
8
|
-
* Dimension slot definition
|
|
9
|
-
*/
|
|
10
|
-
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Data definition of the Dropdown filter
|
|
14
|
-
* @maxItems 1
|
|
15
|
-
*/
|
|
16
|
-
export type DropdownFilterSlots = (DimensionSlot)[];
|
|
17
|
-
export {};
|