@luzmo/embed 6.0.1 → 6.1.0-beta.2
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 +2 -135
- package/MIGRATIONS.md +1 -1
- package/README.md +121 -15
- package/index.cjs +54463 -28
- package/index.d.ts +4 -1
- package/index.js +54462 -30
- package/lib/dashboard-component/dashboard-base.d.ts +7 -7
- package/lib/viz-item/viz-item-component.d.ts +4 -0
- package/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/dashboard-contents-types/index.d.ts +2 -0
- package/libs/dashboard-contents-types/json-schemas.d.ts +1 -0
- package/libs/dashboard-contents-types/src/index.d.ts +27 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +331 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +258 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart.slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/bar-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +310 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-slots.d.ts +30 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/box-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +98 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bubble-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +99 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-slots.d.ts +40 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/bullet-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +138 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-slots.d.ts +41 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/choropleth-map/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/circular-gauge/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +259 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/column-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +344 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/combination-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +94 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/conditional-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-options.d.ts +147 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter-slots.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/date-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/date-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +131 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/donut-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-options.d.ts +84 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/dropdown-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/dropdown-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +185 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/evolution-number/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +110 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-slots.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/funnel-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/image/image-options.d.ts +63 -0
- package/libs/dashboard-contents-types/src/lib/image/image.d.ts +16 -0
- package/libs/dashboard-contents-types/src/lib/image/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +354 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-slots.d.ts +39 -0
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +206 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-slots.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +124 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +123 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-slots.d.ts +50 -0
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +213 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-slots.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/shared/axes.d.ts +35 -0
- package/libs/dashboard-contents-types/src/lib/shared/axis-view-options.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +102 -0
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +12 -0
- package/libs/dashboard-contents-types/src/lib/shared/filters.d.ts +32 -0
- package/libs/dashboard-contents-types/src/lib/shared/formula.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/index.d.ts +29 -0
- package/libs/dashboard-contents-types/src/lib/shared/info-tooltip-options.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-brush.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-events.d.ts +61 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-custom-tooltip.d.ts +13 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-drilldown.d.ts +81 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +24 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-filter.d.ts +11 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-go-to-url.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-measure-dimension-picker.d.ts +66 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-target.d.ts +1 -0
- package/libs/dashboard-contents-types/src/lib/shared/interpolation.d.ts +4 -0
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +122 -0
- package/libs/dashboard-contents-types/src/lib/shared/legend.d.ts +31 -0
- package/libs/dashboard-contents-types/src/lib/shared/map-object-view-options.d.ts +37 -0
- package/libs/dashboard-contents-types/src/lib/shared/object-view-options.d.ts +5 -0
- package/libs/dashboard-contents-types/src/lib/shared/placeholder.d.ts +10 -0
- package/libs/dashboard-contents-types/src/lib/shared/query.d.ts +25 -0
- package/libs/dashboard-contents-types/src/lib/shared/ranges.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +316 -0
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +64 -0
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +267 -0
- package/libs/dashboard-contents-types/src/lib/shared/title.d.ts +18 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +205 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-slots.d.ts +28 -0
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-options.d.ts +22 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/slider-filter/slider-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/text/index.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/text/text-options.d.ts +53 -0
- package/libs/dashboard-contents-types/src/lib/text/text.d.ts +16 -0
- package/libs/dashboard-contents-types/src/options.d.ts +26 -0
- package/libs/dashboard-contents-types/src/slots.d.ts +24 -0
- package/libs/embed-libs/embed/src/index.d.ts +5 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
- package/libs/embed-libs/embed/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/libs/embed-libs/embed/src/lib/luzmo-service.d.ts +6 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item-component.d.ts +4 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +33 -0
- package/libs/embed-libs/shared-embed/src/index.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/constants/class-constants.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/browser-check.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/default-parameters.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/error.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/extents.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/get-loader.d.ts +5 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/promise-dispatch.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +16 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/set-selected-data-utils.d.ts +7 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/styles.d.ts +8 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/translations.d.ts +18 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/update-iframe-url.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/utils.d.ts +27 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/export-dashboard.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-accessible-dashboards.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-data.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/get-filters.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/refresh-data.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/reload-dashboard.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-authorization.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-edit-mode.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-preview.d.ts +3 -0
- package/libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/common.model.d.ts +103 -0
- package/libs/embed-libs/shared-embed/src/lib/models/dashboard.model.d.ts +45 -0
- package/libs/embed-libs/shared-embed/src/lib/models/events.model.d.ts +73 -0
- package/libs/embed-libs/shared-embed/src/lib/models/filters.model.d.ts +17 -0
- package/libs/embed-libs/shared-embed/src/lib/models/styles.model.d.ts +32 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +44 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +4 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/areachart.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/barchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/choroplethmap.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/circlepack.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/columnchart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/datetime.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/donutchart.model.d.ts +2 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/dropdownfilter.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/index.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/linechart.model.d.ts +36 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/piechart.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/scatterplot.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slicer.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/slider.model.d.ts +13 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/stripplot.model.d.ts +15 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/sunburst.model.d.ts +14 -0
- package/libs/embed-libs/shared-embed/src/lib/models/viz-items/treemap.model.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/service/extend-and-validate.d.ts +2 -0
- package/luzmo-embed.min.js +64279 -2656
- package/package.json +5 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AreaChartViewOptions } from './lib/area-chart';
|
|
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';
|
|
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;
|
|
26
|
+
export type VizItemOptions = Options;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AreaChartSlots } from './lib/area-chart';
|
|
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';
|
|
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;
|
|
24
|
+
export type VizItemSlots = Slots;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type * from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
|
|
3
|
+
export { selectedDataUtils } from '@luzmo/shared-embed';
|
|
4
|
+
export * from './lib/dashboard-component/dashboard-component';
|
|
5
|
+
export * from './lib/viz-item/viz-item-component';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as SharedLib from '@luzmo/shared-embed';
|
|
2
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { LuzmoElement, CombinedSelectedDataInput } from '@luzmo/shared-embed';
|
|
4
|
+
import type { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
5
|
+
/**
|
|
6
|
+
* Luzmo Dashboard
|
|
7
|
+
* Base component isn't registered in customEvents registry so that it can be reused.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
|
|
10
|
+
container: HTMLElement;
|
|
11
|
+
luzmoEmbedContainer: HTMLElement;
|
|
12
|
+
iframe: HTMLIFrameElement;
|
|
13
|
+
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
14
|
+
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
15
|
+
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
16
|
+
language: SharedLib.DashboardInputs['language'];
|
|
17
|
+
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
18
|
+
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
19
|
+
switchScreenModeOnResize: boolean;
|
|
20
|
+
editMode: SharedLib.DashboardInputs['editMode'];
|
|
21
|
+
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
22
|
+
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
23
|
+
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
24
|
+
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
25
|
+
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
26
|
+
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
27
|
+
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
28
|
+
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
29
|
+
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
30
|
+
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
31
|
+
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
32
|
+
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
33
|
+
experimental: boolean;
|
|
34
|
+
_containerId: string;
|
|
35
|
+
_iframeId: string;
|
|
36
|
+
params: SharedLib.DashboardContentParams;
|
|
37
|
+
_iframeUrl?: string;
|
|
38
|
+
iframeLoaded: boolean;
|
|
39
|
+
promises: SharedLib.DashboardPromises;
|
|
40
|
+
iframeStyle: SharedLib.IframeStyles;
|
|
41
|
+
_containerStyle: SharedLib.ContainerStyles;
|
|
42
|
+
_loaderStyle: SharedLib.LoaderStyles;
|
|
43
|
+
_lcStyle: SharedLib.LcStyles;
|
|
44
|
+
_loadingCircleStyle: SharedLib.PlStyles;
|
|
45
|
+
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
46
|
+
_loaderMsg: string;
|
|
47
|
+
containerWidth?: number;
|
|
48
|
+
dimensions?: SharedLib.DashboardDimensions;
|
|
49
|
+
currentScreenMode?: SharedLib.ScreenMode;
|
|
50
|
+
_itemEmbedding: boolean;
|
|
51
|
+
browserError: boolean;
|
|
52
|
+
browserErrorMsg: string;
|
|
53
|
+
dashboardError: boolean;
|
|
54
|
+
browserNotSupported: any[];
|
|
55
|
+
libVersion: string;
|
|
56
|
+
protected isLibraryLoaded: boolean;
|
|
57
|
+
protected dashboardReference: LuzmoElement;
|
|
58
|
+
currentAuthKey: string;
|
|
59
|
+
currentAuthToken: string;
|
|
60
|
+
isInitCalled: boolean;
|
|
61
|
+
private attributesMap;
|
|
62
|
+
_loadTimeoutHandle?: number;
|
|
63
|
+
_onResize: () => void;
|
|
64
|
+
loaderSize: number;
|
|
65
|
+
borderWidth: number;
|
|
66
|
+
minHeight: number;
|
|
67
|
+
iframeHeight?: string;
|
|
68
|
+
iframeWidth?: string;
|
|
69
|
+
_resizeObserver: ResizeObserver;
|
|
70
|
+
constructor();
|
|
71
|
+
connectedCallback(): void;
|
|
72
|
+
disconnectedCallback(): void;
|
|
73
|
+
firstUpdated(): void;
|
|
74
|
+
initComponent(): void;
|
|
75
|
+
setAllAttributes(): void;
|
|
76
|
+
updated(changedProperties: PropertyValues): void;
|
|
77
|
+
_setOptions(): SharedLib.DashboardContentParams;
|
|
78
|
+
_updateIframeUrl(): void;
|
|
79
|
+
_setupLoader(): void;
|
|
80
|
+
_displayError(): void;
|
|
81
|
+
_calculateDimAfterDashboardLoaded(): void;
|
|
82
|
+
_loaderStyles(): void;
|
|
83
|
+
static get styles(): import("lit").CSSResult[];
|
|
84
|
+
render(): TemplateResult;
|
|
85
|
+
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
86
|
+
getData(itemId: string): Promise<SharedLib.ItemData>;
|
|
87
|
+
getFilters(): Promise<FilterGroup[]>;
|
|
88
|
+
setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
|
|
89
|
+
setAuthorization(key: string, token: string): Promise<void>;
|
|
90
|
+
refreshData(itemId?: string): Promise<void>;
|
|
91
|
+
reloadDashboard(): Promise<void>;
|
|
92
|
+
exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
|
|
93
|
+
getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
|
|
94
|
+
addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
95
|
+
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
96
|
+
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
97
|
+
getIsViewMode(): boolean;
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const _setEventHandler: () => void;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
+
import type { VizItemOptions, VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
4
|
+
/**
|
|
5
|
+
* The version of the dashboard contents that is linked to the current library.
|
|
6
|
+
*
|
|
7
|
+
* If custom options/slots/etc. are passed to the component, the library assumes that
|
|
8
|
+
* they are using this dashboard contents version. Then custom options/slots/etc.
|
|
9
|
+
* together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
|
|
10
|
+
* and if needed the migration will be applied on the dashboard app level.
|
|
11
|
+
*/
|
|
12
|
+
export declare const dashboardContentsVersion = "0.1.88";
|
|
13
|
+
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
|
+
export interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
|
+
options?: VizItemOptions;
|
|
16
|
+
type?: VizItemType;
|
|
17
|
+
appServer?: string;
|
|
18
|
+
apiHost?: string;
|
|
19
|
+
slots?: VizItemSlots;
|
|
20
|
+
canFilter?: string[] | 'all';
|
|
21
|
+
filters?: FilterGroup[];
|
|
22
|
+
contextId?: string;
|
|
23
|
+
authKey?: string;
|
|
24
|
+
authToken?: string;
|
|
25
|
+
dashboardId?: string;
|
|
26
|
+
itemId?: string;
|
|
27
|
+
getFilters: () => FilterGroup[];
|
|
28
|
+
export: () => void;
|
|
29
|
+
refreshData: () => void;
|
|
30
|
+
getData: () => SharedLib.ItemData;
|
|
31
|
+
setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
32
|
+
setAuthorization: (key: string, token: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItemComponentInterface {
|
|
35
|
+
appServer?: string;
|
|
36
|
+
apiHost?: string;
|
|
37
|
+
slots?: VizItemSlots;
|
|
38
|
+
options?: VizItemOptions;
|
|
39
|
+
type?: VizItemType;
|
|
40
|
+
authKey?: string;
|
|
41
|
+
authToken?: string;
|
|
42
|
+
version?: string;
|
|
43
|
+
contextId?: string;
|
|
44
|
+
canFilter?: SharedLib.CanFilter;
|
|
45
|
+
filters?: FilterGroup[];
|
|
46
|
+
dashboardId?: string;
|
|
47
|
+
itemId?: string;
|
|
48
|
+
selectedData: SharedLib.SelectedDataInput;
|
|
49
|
+
dashboardContentsVersion?: string;
|
|
50
|
+
libVersion?: string;
|
|
51
|
+
chartElement: HTMLElement & Partial<LuzmoVizItemComponentInterface> & {
|
|
52
|
+
setSelectedData?: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
53
|
+
};
|
|
54
|
+
postInitCallQueue: FunctionCall[];
|
|
55
|
+
static styles: import("lit").CSSResult;
|
|
56
|
+
constructor();
|
|
57
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
58
|
+
canInitializeVizItem(): boolean;
|
|
59
|
+
getFilters(): FilterGroup[];
|
|
60
|
+
export(): void;
|
|
61
|
+
getData(): any;
|
|
62
|
+
refreshData(): void;
|
|
63
|
+
setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
|
|
64
|
+
setAuthorization(key: string, token: string): void;
|
|
65
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
66
|
+
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
67
|
+
private createAndAppendElement;
|
|
68
|
+
private updateVizItemProperties;
|
|
69
|
+
updated(changedProperties: PropertyValues): Promise<void>;
|
|
70
|
+
private parseAndValidate;
|
|
71
|
+
protected render(): unknown;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export * from './lib/helpers/browser-check';
|
|
2
|
+
export * from './lib/helpers/default-parameters';
|
|
3
|
+
export * from './lib/helpers/error';
|
|
4
|
+
export * from './lib/helpers/extents';
|
|
5
|
+
export * from './lib/helpers/translations';
|
|
6
|
+
export * from './lib/helpers/utils';
|
|
7
|
+
export * from './lib/helpers/iframe-url';
|
|
8
|
+
export * from './lib/helpers/get-loader';
|
|
9
|
+
export * from './lib/helpers/promise-dispatch';
|
|
10
|
+
export * from './lib/helpers/styles';
|
|
11
|
+
export * from './lib/helpers/update-iframe-url';
|
|
12
|
+
export * from './lib/helpers/set-selected-data-utils';
|
|
13
|
+
export * from './lib/methods/export-dashboard';
|
|
14
|
+
export * from './lib/methods/get-accessible-dashboards';
|
|
15
|
+
export * from './lib/methods/get-data';
|
|
16
|
+
export * from './lib/methods/get-filters';
|
|
17
|
+
export * from './lib/methods/refresh-data';
|
|
18
|
+
export * from './lib/methods/reload-dashboard';
|
|
19
|
+
export * from './lib/methods/set-authorization';
|
|
20
|
+
export * from './lib/methods/set-edit-mode';
|
|
21
|
+
export * from './lib/methods/set-selected-data';
|
|
22
|
+
export * from './lib/methods/set-preview';
|
|
23
|
+
export * from './lib/service/calculate-dimensions';
|
|
24
|
+
export * from './lib/service/extend-and-validate';
|
|
25
|
+
export * from './lib/models/common.model';
|
|
26
|
+
export * from './lib/models/dashboard.model';
|
|
27
|
+
export * from './lib/models/events.model';
|
|
28
|
+
export * from './lib/models/styles.model';
|
|
29
|
+
export * from './lib/models/filters.model';
|
|
30
|
+
export * from './lib/models/viz-item.model';
|
|
31
|
+
export * from './lib/models/viz-item-post-message.model';
|
|
32
|
+
export * from './lib/models/viz-items';
|
|
33
|
+
export * from './lib/constants/class-constants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const luzmoEmbedContainerClass = "luzmo-embed-container";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createIframeUrl: (dashboardContent: any) => string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
2
|
+
export declare function resolvePromise<T extends LuzmoDashboard>(dashboardComponent: T, requestId: string, data: unknown): void;
|
|
3
|
+
export declare function rejectPromise<T extends LuzmoDashboard>(dashboardComponent: T, requestId: string, data: unknown): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type RemoteMap = {
|
|
2
|
+
[remoteName: string]: {
|
|
3
|
+
url?: string;
|
|
4
|
+
format?: string;
|
|
5
|
+
from?: string;
|
|
6
|
+
module?: any;
|
|
7
|
+
inited?: boolean;
|
|
8
|
+
lib?: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type ComponentNames = 'DashboardApp';
|
|
12
|
+
export declare const remotesMap: RemoteMap;
|
|
13
|
+
export declare function __federationMethodWrapDefault(module: any, need?: boolean): any;
|
|
14
|
+
export declare function __federationMethodGetRemote(remoteName: string, componentName: string): Promise<any>;
|
|
15
|
+
export declare function loadLibrary(appServer: string, componentName?: ComponentNames): Promise<any>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectedDataInput, AvailableSlots } from '../models/filters.model';
|
|
2
|
+
export declare const selectedDataUtils: {
|
|
3
|
+
merge(...filters: SelectedDataInput[]): SelectedDataInput;
|
|
4
|
+
isIn(slot: AvailableSlots, values: string[] | number[], otherOptions?: any): SelectedDataInput;
|
|
5
|
+
between(slot: AvailableSlots, values: [string | number, string | number], otherOptions?: any): SelectedDataInput;
|
|
6
|
+
range(slot: AvailableSlots, values: [string | number, string | number], otherOptions?: any): SelectedDataInput;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContainerLoaderStyles, ContainerStyles, IframeStyles, LcStyles, LoaderStyles, PlStyles } from '../models/styles.model';
|
|
2
|
+
import { CommonLuzmoDashboard } from '../models/dashboard.model';
|
|
3
|
+
export declare function containerStyles(dashboardComponent: CommonLuzmoDashboard): ContainerStyles;
|
|
4
|
+
export declare function containerLoaderStyles(dashboardComponent: CommonLuzmoDashboard): ContainerLoaderStyles;
|
|
5
|
+
export declare function loaderStyles(dashboardComponent: CommonLuzmoDashboard): LoaderStyles;
|
|
6
|
+
export declare function plStyles(dashboardComponent: CommonLuzmoDashboard): PlStyles;
|
|
7
|
+
export declare function lcStyles(dashboardComponent: CommonLuzmoDashboard): LcStyles;
|
|
8
|
+
export declare function calculateIframeStyles(dashboardComponent: CommonLuzmoDashboard): IframeStyles;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const TRANSLATIONS: {
|
|
2
|
+
initializing: {
|
|
3
|
+
en: string;
|
|
4
|
+
nl: string;
|
|
5
|
+
fr: string;
|
|
6
|
+
};
|
|
7
|
+
errorDashboard: {
|
|
8
|
+
en: string;
|
|
9
|
+
nl: string;
|
|
10
|
+
fr: string;
|
|
11
|
+
};
|
|
12
|
+
errorItem: {
|
|
13
|
+
en: string;
|
|
14
|
+
nl: string;
|
|
15
|
+
fr: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default TRANSLATIONS;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const updateIframeUrl: (iframe: HTMLIFrameElement, iframeUrl?: string) => void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
2
|
+
export declare const addTrailingSlash: (serverUrl?: string) => string;
|
|
3
|
+
export declare const removeTrailingSlash: (serverUrl?: string) => string;
|
|
4
|
+
export declare const formatDashboardList: (dashboards: any[], integrationId: string, user: any, dashboardComponent: LuzmoDashboard) => {
|
|
5
|
+
accessibleBy: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
model: 'User' | 'Group' | 'Integration';
|
|
9
|
+
}[];
|
|
10
|
+
accessRights: {
|
|
11
|
+
flagRead?: boolean;
|
|
12
|
+
flagUse?: boolean;
|
|
13
|
+
flagModify?: boolean;
|
|
14
|
+
flagOwn?: boolean;
|
|
15
|
+
};
|
|
16
|
+
id: string;
|
|
17
|
+
modifiedAt: string;
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
tags: string[];
|
|
21
|
+
}[];
|
|
22
|
+
export declare const VERSION = "0.0.0-unknown-luzmo";
|
|
23
|
+
export declare const sanitizeUrl: (url: string) => string;
|
|
24
|
+
export declare const cloneDeep: (obj: unknown) => any;
|
|
25
|
+
export declare const defaultsDeep: <T extends object>(target: T, defaults: T) => T;
|
|
26
|
+
export declare const s4: () => string;
|
|
27
|
+
export declare const uuidv4: () => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExportDashboard } from '../models/common.model';
|
|
2
|
+
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
3
|
+
export type ExportType = 'png' | 'pdf';
|
|
4
|
+
export declare const exportDashboard: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, format?: ExportType) => Promise<ExportDashboard>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DashboardEditMode, SetEditMode } from '../models/common.model';
|
|
2
|
+
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
3
|
+
export declare const setEditMode: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, editMode?: DashboardEditMode) => Promise<SetEditMode>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SetSelectedData } from '../models/common.model';
|
|
2
|
+
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
3
|
+
import { SelectedDataInput } from '../models/filters.model';
|
|
4
|
+
export declare const setSelectedData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string, filters: SelectedDataInput) => Promise<SetSelectedData>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export type ScreenMode = 'mobile' | 'tablet' | 'desktop' | 'largeScreen' | 'fixed' | 'auto';
|
|
3
|
+
export type DashboardDimensions = Record<Exclude<ScreenMode, 'auto'>, [
|
|
4
|
+
number,
|
|
5
|
+
number,
|
|
6
|
+
string
|
|
7
|
+
]>;
|
|
8
|
+
export type CommonReturnType = {
|
|
9
|
+
dashboardId?: string;
|
|
10
|
+
dashboardSlug?: string;
|
|
11
|
+
integrationId?: string;
|
|
12
|
+
itemId?: string;
|
|
13
|
+
language?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
requestId?: string;
|
|
16
|
+
screenMode?: ScreenMode;
|
|
17
|
+
type?: string;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
msg?: string;
|
|
20
|
+
};
|
|
21
|
+
export type ExportDashboard = {
|
|
22
|
+
type: 'export';
|
|
23
|
+
} & CommonReturnType;
|
|
24
|
+
export type AccessibleDashboard = {
|
|
25
|
+
accessibleBy?: {
|
|
26
|
+
model?: 'User' | 'Group' | 'Integration';
|
|
27
|
+
id?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
}[];
|
|
30
|
+
accessRights?: {
|
|
31
|
+
flagRead?: boolean;
|
|
32
|
+
flagUse?: boolean;
|
|
33
|
+
flagModify?: boolean;
|
|
34
|
+
flagOwn?: boolean;
|
|
35
|
+
};
|
|
36
|
+
id?: string;
|
|
37
|
+
modifiedAt?: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
slug?: string | null;
|
|
40
|
+
tags: string[];
|
|
41
|
+
};
|
|
42
|
+
export type ItemData = any[];
|
|
43
|
+
export type DashboardEditMode = 'editFull' | 'editLimited' | 'view';
|
|
44
|
+
export type SetEditMode = {
|
|
45
|
+
type?: 'setEditMode';
|
|
46
|
+
editMode?: DashboardEditMode;
|
|
47
|
+
} & CommonReturnType;
|
|
48
|
+
export type SetSelectedData = {
|
|
49
|
+
filters?: FilterGroup[];
|
|
50
|
+
} & CommonReturnType;
|
|
51
|
+
export type SetPreview = {
|
|
52
|
+
type: 'setPreview';
|
|
53
|
+
preview?: boolean;
|
|
54
|
+
} & CommonReturnType;
|
|
55
|
+
export type AddFilters = {
|
|
56
|
+
type: 'AddFilters';
|
|
57
|
+
origin: 'itemFilter';
|
|
58
|
+
item: string;
|
|
59
|
+
filters: FilterGroup[];
|
|
60
|
+
};
|
|
61
|
+
export type DashboardPromises = Record<string, {
|
|
62
|
+
resolve: (value?: unknown | PromiseLike<unknown>) => void;
|
|
63
|
+
reject: (reason: any) => void;
|
|
64
|
+
}>;
|
|
65
|
+
export type BrowserCheckKey = 'svg' | 'flexbox' | 'postMessage';
|
|
66
|
+
export interface DashboardInputs {
|
|
67
|
+
appServer?: string;
|
|
68
|
+
apiHost?: string;
|
|
69
|
+
itemId?: string;
|
|
70
|
+
mainColor?: string;
|
|
71
|
+
accentColor?: string;
|
|
72
|
+
language?: string;
|
|
73
|
+
qeVersion?: number;
|
|
74
|
+
editMode?: DashboardEditMode;
|
|
75
|
+
screenMode?: ScreenMode;
|
|
76
|
+
switchScreenModeOnResize?: boolean;
|
|
77
|
+
dashboardId?: string;
|
|
78
|
+
dashboardSlug?: string;
|
|
79
|
+
itemDimensions?: {
|
|
80
|
+
width: number | 'auto';
|
|
81
|
+
height: number | 'auto';
|
|
82
|
+
};
|
|
83
|
+
timezoneId?: string;
|
|
84
|
+
loaderBackground?: string;
|
|
85
|
+
loaderFontColor?: string;
|
|
86
|
+
loaderSpinnerColor?: string;
|
|
87
|
+
loaderSpinnerBackground?: string;
|
|
88
|
+
authKey?: string;
|
|
89
|
+
authToken?: string;
|
|
90
|
+
experimental?: boolean;
|
|
91
|
+
}
|
|
92
|
+
export interface DashboardContentParams extends Exclude<DashboardInputs, 'authKey' | 'authToken' | 'loaderBackground' | 'loaderFontColor' | 'loaderSpinnerColor' | 'loaderSpinnerBackground'> {
|
|
93
|
+
key?: DashboardInputs['authKey'];
|
|
94
|
+
token?: DashboardInputs['authToken'];
|
|
95
|
+
itemEmbedding?: boolean;
|
|
96
|
+
loaderBackground?: DashboardInputs['loaderBackground'];
|
|
97
|
+
loaderFontColor?: DashboardInputs['loaderFontColor'];
|
|
98
|
+
loaderSpinnerColor?: DashboardInputs['loaderSpinnerColor'];
|
|
99
|
+
loaderSpinnerBackground?: DashboardInputs['loaderSpinnerBackground'];
|
|
100
|
+
error?: boolean;
|
|
101
|
+
container?: string;
|
|
102
|
+
contextId?: string;
|
|
103
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { ExportType } from '../methods/export-dashboard';
|
|
3
|
+
import { AccessibleDashboard, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard, ItemData, ScreenMode, SetEditMode, SetSelectedData, SetPreview, AddFilters } from './common.model';
|
|
4
|
+
import { IframeStyles } from './styles.model';
|
|
5
|
+
import { CombinedSelectedDataInput } from './viz-items';
|
|
6
|
+
export interface CommonLuzmoDashboard extends DashboardInputs {
|
|
7
|
+
libVersion?: string;
|
|
8
|
+
promises?: DashboardPromises;
|
|
9
|
+
params?: DashboardContentParams;
|
|
10
|
+
iframeLoaded?: boolean;
|
|
11
|
+
loaderSize?: number;
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
minHeight?: number;
|
|
14
|
+
iframeWidth?: string;
|
|
15
|
+
iframeHeight?: string;
|
|
16
|
+
error?: boolean;
|
|
17
|
+
browserNotSupported?: BrowserCheckKey[];
|
|
18
|
+
dimensions?: DashboardDimensions;
|
|
19
|
+
currentScreenMode?: ScreenMode;
|
|
20
|
+
iframeStyle?: IframeStyles;
|
|
21
|
+
currentAuthKey?: string;
|
|
22
|
+
currentAuthToken?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface NgxLuzmoDashboard extends CommonLuzmoDashboard {
|
|
25
|
+
dashboardReference?: HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
export interface ES6LuzmoDashboard extends CommonLuzmoDashboard {
|
|
28
|
+
}
|
|
29
|
+
export interface VueLuzmoDashboard extends CommonLuzmoDashboard {
|
|
30
|
+
}
|
|
31
|
+
export type LuzmoDashboard = NgxLuzmoDashboard | ES6LuzmoDashboard | VueLuzmoDashboard;
|
|
32
|
+
export interface LuzmoElement extends HTMLElement {
|
|
33
|
+
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
34
|
+
getFilters(): Promise<FilterGroup[]>;
|
|
35
|
+
exportDashboard(format?: ExportType): Promise<ExportDashboard>;
|
|
36
|
+
reloadDashboard(): Promise<void>;
|
|
37
|
+
getData(itemId: string): Promise<ItemData>;
|
|
38
|
+
refreshData(itemId?: string): Promise<void>;
|
|
39
|
+
getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
|
|
40
|
+
setAuthorization(key: string, token: string): Promise<void>;
|
|
41
|
+
setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>;
|
|
42
|
+
setPreview(preview: boolean): Promise<SetPreview>;
|
|
43
|
+
setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SetSelectedData>;
|
|
44
|
+
addFilters(itemId: string, filters: FilterGroup[]): Promise<AddFilters>;
|
|
45
|
+
}
|