@emuanalytics/flow-rdf-ui 0.0.18-alpha.2 → 0.0.18-alpha.21
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/dist/custom-elements.json +1490 -1127
- package/dist/flow-rdf-ui.d.ts +55 -14
- package/dist/flow-rdf-ui.js +17380 -24174
- package/dist/flow-rdf-ui.umd.cjs +19156 -25949
- package/dist/themes/dark.css +38 -0
- package/dist/themes/dark.styles.js +38 -0
- package/dist/themes/light.css +38 -0
- package/dist/themes/light.styles.js +38 -0
- package/dist/vscode.html-custom-data.json +116 -89
- package/package.json +14 -7
package/dist/flow-rdf-ui.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BubbleDataPoint } from 'chart.js';
|
|
2
|
+
import { ChartComponentLike } from 'chart.js';
|
|
3
|
+
import { ChartData } from 'chart.js';
|
|
4
|
+
import { Chart as ChartJs } from 'chart.js';
|
|
5
|
+
import { ChartOptions } from 'chart.js';
|
|
6
|
+
import { ChartTypeRegistry } from 'chart.js';
|
|
2
7
|
import { CSSResultGroup } from 'lit';
|
|
3
8
|
import { LitElement } from 'lit';
|
|
9
|
+
import { Plugin as Plugin_2 } from 'chart.js';
|
|
10
|
+
import { Point } from 'chart.js';
|
|
4
11
|
import { PropertyValueMap } from 'lit';
|
|
5
12
|
import type { ReactiveController } from 'lit';
|
|
6
13
|
import type { ReactiveControllerHost } from 'lit';
|
|
@@ -16,6 +23,8 @@ export declare interface BaseColorStopOptions {
|
|
|
16
23
|
label?: string;
|
|
17
24
|
}
|
|
18
25
|
|
|
26
|
+
export { ChartJs }
|
|
27
|
+
|
|
19
28
|
export declare type ColorMapperField = StringColorMapperField | NumberColorMapperField | SelectColorMapperField;
|
|
20
29
|
|
|
21
30
|
export declare interface ColorMapperOptions {
|
|
@@ -648,23 +657,51 @@ export declare class FlowCarouselItem extends FlowRdfElement {
|
|
|
648
657
|
export declare type FlowChangeEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
649
658
|
|
|
650
659
|
/**
|
|
651
|
-
*
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
658
|
-
* @
|
|
660
|
+
* The chart component is a container for [Chart.js](https://www.chartjs.org/) charts. The component
|
|
661
|
+
* supplies additional Flow RDF UI features including:
|
|
662
|
+
*
|
|
663
|
+
* - Consistent theming with other flow-rdf-ui components.
|
|
664
|
+
* - Additional plugins and charts types for commonly-used charts.
|
|
665
|
+
* - Convenience child components (`flow-ui-chart-data` and `flow-ui-chart-scale`) for defining chart data and scales.
|
|
666
|
+
*
|
|
667
|
+
* @tagname flow-ui-chart
|
|
668
|
+
* @summary The chart component displays Chart.js charts.
|
|
669
|
+
*
|
|
670
|
+
* @cssproperty --background-color - Chart background color (applied as the background color of the base container).
|
|
671
|
+
* @cssproperty --text-color - General text color (titles etc.)
|
|
672
|
+
* @cssproperty --axis-color - Color of the axis lines.
|
|
673
|
+
* @cssproperty --x-axis-color - Color of the x-axis lines. (defaults to `--axis-color`)
|
|
674
|
+
* @cssproperty --y-axis-color - Color of the y-axis lines. (defaults to `--axis-color`)
|
|
675
|
+
* @cssproperty --axis-grid-color - Color of the axis grid lines.
|
|
676
|
+
* @cssproperty --x-axis-grid-color - Color of the x-axis grid lines. (defaults to `--axis-grid-color`)
|
|
677
|
+
* @cssproperty --y-axis-grid-color - Color of the y-axis grid lines. (defaults to `--axis-grid-color`)
|
|
678
|
+
* @cssproperty --axis-label-color - Color of the axis labels.
|
|
679
|
+
* @cssproperty --x-axis-label-color - Color of the x-axis labels. (defaults to `--axis-label-color`)
|
|
680
|
+
* @cssproperty --y-axis-label-color - Color of the y-axis labels. (defaults to `--axis-label-color`)
|
|
681
|
+
* @cssproperty --tick-label-color - Color of the tick labels.
|
|
682
|
+
* @cssproperty --x-tick-label-color - Color of the x-axis tick labels. (defaults to `--tick-label-color`)
|
|
683
|
+
* @cssproperty --y-tick-label-color - Color of the y-axis tick labels. (defaults to `--tick-label-color`)
|
|
684
|
+
* @cssproperty --dataset-stroke-color-n - Color of the stroke for dataset n (where n = 0-9).
|
|
685
|
+
* @cssproperty --dataset-fill-color-n - Color of the fill for dataset n (where n = 0-9).
|
|
686
|
+
*
|
|
687
|
+
* @csspart base - The base container of the chart.
|
|
659
688
|
*/
|
|
660
689
|
export declare class FlowChart extends FlowRdfElement {
|
|
661
690
|
static styles: CSSResultGroup;
|
|
662
|
-
private
|
|
663
|
-
|
|
691
|
+
private _chartRef;
|
|
692
|
+
private _chart;
|
|
693
|
+
/** The Chart.js chart instance. */
|
|
694
|
+
get chart(): ChartJs<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint | null)[], unknown>;
|
|
695
|
+
/** The Chart.js chart type (e.g `line`, `bar` or a custom type). */
|
|
664
696
|
type: string;
|
|
665
|
-
|
|
666
|
-
options:
|
|
667
|
-
|
|
697
|
+
/** The Chart.js `options` object. */
|
|
698
|
+
options: ChartOptions;
|
|
699
|
+
/** The Chart.js `data` object */
|
|
700
|
+
data: ChartData;
|
|
701
|
+
/** List of extra plugins to use for this chart. */
|
|
702
|
+
plugins: Plugin_2[];
|
|
703
|
+
/** Trigger a repaint of the chart. */
|
|
704
|
+
repaint(): void;
|
|
668
705
|
firstUpdated(): void;
|
|
669
706
|
connectedCallback(): void;
|
|
670
707
|
disconnectedCallback(): void;
|
|
@@ -3848,6 +3885,8 @@ declare type IconLibraryMutator = (svg: SVGElement) => void;
|
|
|
3848
3885
|
|
|
3849
3886
|
declare type IconLibraryResolver = (name: string) => string;
|
|
3850
3887
|
|
|
3888
|
+
export declare function initializeChartJs(): void;
|
|
3889
|
+
|
|
3851
3890
|
export declare interface NumberColorMapperField extends NumberColorStopOptions, BaseColorMapperField {
|
|
3852
3891
|
type: 'number';
|
|
3853
3892
|
}
|
|
@@ -3860,6 +3899,8 @@ export declare interface NumberColorStopOptions {
|
|
|
3860
3899
|
units?: string;
|
|
3861
3900
|
}
|
|
3862
3901
|
|
|
3902
|
+
export declare function registerChartComponent(...components: ChartComponentLike[]): void;
|
|
3903
|
+
|
|
3863
3904
|
/** Adds an icon library to the registry, or overrides an existing one. */
|
|
3864
3905
|
export declare function registerIconLibrary(name: string, options: {
|
|
3865
3906
|
resolver: IconLibraryResolver;
|