@unovis/angular 1.0.0-beta.2 → 1.0.0-beta.4
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/README.md +64 -0
- package/dist/lib/README.md +64 -0
- package/dist/lib/bundles/unovis-angular.umd.js +6 -4
- package/dist/lib/bundles/unovis-angular.umd.js.map +1 -1
- package/dist/lib/components/donut/donut.component.d.ts +9 -3
- package/dist/lib/esm2015/components/donut/donut.component.js +7 -5
- package/dist/lib/fesm2015/unovis-angular.js +6 -4
- package/dist/lib/fesm2015/unovis-angular.js.map +1 -1
- package/dist/lib/package.json +5 -4
- package/package.json +5 -3
|
@@ -73,8 +73,14 @@ export declare class VisDonutComponent<Datum> implements DonutConfigInterface<Da
|
|
|
73
73
|
centralSubLabel?: string;
|
|
74
74
|
/** Enables wrapping for the sub-label. Default: `true` */
|
|
75
75
|
centralSubLabelWrap?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
|
|
76
|
+
/** When true, the component will treat `0` values as `Number.EPSILON`. Which, in most cases, will result in
|
|
77
|
+
* drawing an empty segment as a thin line.
|
|
78
|
+
* Default: `false` */
|
|
79
|
+
showEmptySegments?: boolean;
|
|
80
|
+
/** Show donut background. The color is configurable via
|
|
81
|
+
* the `--vis-donut-background-color` and `--vis-dark-donut-background-color` CSS variables.
|
|
82
|
+
* Default: `true` */
|
|
83
|
+
showBackground?: boolean;
|
|
78
84
|
data: Datum[];
|
|
79
85
|
component: Donut<Datum> | undefined;
|
|
80
86
|
componentContainer: ContainerCore | undefined;
|
|
@@ -82,5 +88,5 @@ export declare class VisDonutComponent<Datum> implements DonutConfigInterface<Da
|
|
|
82
88
|
ngOnChanges(changes: SimpleChanges): void;
|
|
83
89
|
private getConfig;
|
|
84
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisDonutComponent<any>, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisDonutComponent<any>, "vis-donut", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "id": "id"; "value": "value"; "angleRange": "angleRange"; "padAngle": "padAngle"; "sortFunction": "sortFunction"; "cornerRadius": "cornerRadius"; "color": "color"; "radius": "radius"; "arcWidth": "arcWidth"; "centralLabel": "centralLabel"; "centralSubLabel": "centralSubLabel"; "centralSubLabelWrap": "centralSubLabelWrap"; "
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisDonutComponent<any>, "vis-donut", never, { "duration": "duration"; "events": "events"; "attributes": "attributes"; "id": "id"; "value": "value"; "angleRange": "angleRange"; "padAngle": "padAngle"; "sortFunction": "sortFunction"; "cornerRadius": "cornerRadius"; "color": "color"; "radius": "radius"; "arcWidth": "arcWidth"; "centralLabel": "centralLabel"; "centralSubLabel": "centralSubLabel"; "centralSubLabelWrap": "centralSubLabelWrap"; "showEmptySegments": "showEmptySegments"; "showBackground": "showBackground"; "data": "data"; }, {}, never, never>;
|
|
86
92
|
}
|
|
@@ -21,8 +21,8 @@ export class VisDonutComponent {
|
|
|
21
21
|
(_c = this.componentContainer) === null || _c === void 0 ? void 0 : _c.render();
|
|
22
22
|
}
|
|
23
23
|
getConfig() {
|
|
24
|
-
const { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap,
|
|
25
|
-
const config = { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap,
|
|
24
|
+
const { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap, showEmptySegments, showBackground } = this;
|
|
25
|
+
const config = { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap, showEmptySegments, showBackground };
|
|
26
26
|
const keys = Object.keys(config);
|
|
27
27
|
keys.forEach(key => { if (config[key] === undefined)
|
|
28
28
|
delete config[key]; });
|
|
@@ -30,7 +30,7 @@ export class VisDonutComponent {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
VisDonutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VisDonutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
-
VisDonutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VisDonutComponent, selector: "vis-donut", inputs: { duration: "duration", events: "events", attributes: "attributes", id: "id", value: "value", angleRange: "angleRange", padAngle: "padAngle", sortFunction: "sortFunction", cornerRadius: "cornerRadius", color: "color", radius: "radius", arcWidth: "arcWidth", centralLabel: "centralLabel", centralSubLabel: "centralSubLabel", centralSubLabelWrap: "centralSubLabelWrap",
|
|
33
|
+
VisDonutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VisDonutComponent, selector: "vis-donut", inputs: { duration: "duration", events: "events", attributes: "attributes", id: "id", value: "value", angleRange: "angleRange", padAngle: "padAngle", sortFunction: "sortFunction", cornerRadius: "cornerRadius", color: "color", radius: "radius", arcWidth: "arcWidth", centralLabel: "centralLabel", centralSubLabel: "centralSubLabel", centralSubLabelWrap: "centralSubLabelWrap", showEmptySegments: "showEmptySegments", showBackground: "showBackground", data: "data" }, providers: [{ provide: VisCoreComponent, useExisting: VisDonutComponent }], usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
34
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VisDonutComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{
|
|
@@ -69,9 +69,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
69
69
|
type: Input
|
|
70
70
|
}], centralSubLabelWrap: [{
|
|
71
71
|
type: Input
|
|
72
|
-
}],
|
|
72
|
+
}], showEmptySegments: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], showBackground: [{
|
|
73
75
|
type: Input
|
|
74
76
|
}], data: [{
|
|
75
77
|
type: Input
|
|
76
78
|
}] } });
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9udXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvZG9udXQvZG9udXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBFQUEwRTtBQUMxRSxPQUFPLEVBQUUsU0FBUyxFQUFpQixLQUFLLEVBQWlCLE1BQU0sZUFBZSxDQUFBO0FBQzlFLE9BQU8sRUFBRSxLQUFLLEVBQXVHLE1BQU0sWUFBWSxDQUFBO0FBQ3ZJLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLFlBQVksQ0FBQTs7QUFRN0MsTUFBTSxPQUFPLGlCQUFpQjtJQXFHNUIsZUFBZTs7UUFDYixJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksS0FBSyxDQUFRLElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQyxDQUFBO1FBRW5ELElBQUksSUFBSSxDQUFDLElBQUksRUFBRTtZQUNiLElBQUksQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQTtZQUNqQyxNQUFBLElBQUksQ0FBQyxrQkFBa0IsMENBQUUsTUFBTSxFQUFFLENBQUE7U0FDbEM7SUFDSCxDQUFDO0lBRUQsV0FBVyxDQUFFLE9BQXNCOztRQUNqQyxJQUFJLE9BQU8sQ0FBQyxJQUFJLEVBQUU7WUFBRSxNQUFBLElBQUksQ0FBQyxTQUFTLDBDQU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895
895
|
(_c = this.componentContainer) === null || _c === void 0 ? void 0 : _c.render();
|
|
896
896
|
}
|
|
897
897
|
getConfig() {
|
|
898
|
-
const { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap,
|
|
899
|
-
const config = { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap,
|
|
898
|
+
const { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap, showEmptySegments, showBackground } = this;
|
|
899
|
+
const config = { duration, events, attributes, id, value, angleRange, padAngle, sortFunction, cornerRadius, color, radius, arcWidth, centralLabel, centralSubLabel, centralSubLabelWrap, showEmptySegments, showBackground };
|
|
900
900
|
const keys = Object.keys(config);
|
|
901
901
|
keys.forEach(key => { if (config[key] === undefined)
|
|
902
902
|
delete config[key]; });
|
|
@@ -904,7 +904,7 @@ class VisDonutComponent {
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
VisDonutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VisDonutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
907
|
-
VisDonutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VisDonutComponent, selector: "vis-donut", inputs: { duration: "duration", events: "events", attributes: "attributes", id: "id", value: "value", angleRange: "angleRange", padAngle: "padAngle", sortFunction: "sortFunction", cornerRadius: "cornerRadius", color: "color", radius: "radius", arcWidth: "arcWidth", centralLabel: "centralLabel", centralSubLabel: "centralSubLabel", centralSubLabelWrap: "centralSubLabelWrap",
|
|
907
|
+
VisDonutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VisDonutComponent, selector: "vis-donut", inputs: { duration: "duration", events: "events", attributes: "attributes", id: "id", value: "value", angleRange: "angleRange", padAngle: "padAngle", sortFunction: "sortFunction", cornerRadius: "cornerRadius", color: "color", radius: "radius", arcWidth: "arcWidth", centralLabel: "centralLabel", centralSubLabel: "centralSubLabel", centralSubLabelWrap: "centralSubLabelWrap", showEmptySegments: "showEmptySegments", showBackground: "showBackground", data: "data" }, providers: [{ provide: VisCoreComponent, useExisting: VisDonutComponent }], usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
908
908
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VisDonutComponent, decorators: [{
|
|
909
909
|
type: Component,
|
|
910
910
|
args: [{
|
|
@@ -943,7 +943,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
943
943
|
type: Input
|
|
944
944
|
}], centralSubLabelWrap: [{
|
|
945
945
|
type: Input
|
|
946
|
-
}],
|
|
946
|
+
}], showEmptySegments: [{
|
|
947
|
+
type: Input
|
|
948
|
+
}], showBackground: [{
|
|
947
949
|
type: Input
|
|
948
950
|
}], data: [{
|
|
949
951
|
type: Input
|