@praxisui/charts 8.0.0-beta.33 → 8.0.0-beta.34
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/fesm2022/praxisui-charts.mjs +293 -47
- package/package.json +3 -3
- package/types/praxisui-charts.d.ts +21 -3
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/charts",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.34",
|
|
4
4
|
"description": "Metadata-driven charts library for Praxis UI Angular with engine adapters and Apache ECharts as the initial renderer.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^8.0.0-beta.34",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/table": "^8.0.0-beta.
|
|
11
|
+
"@praxisui/table": "^8.0.0-beta.34",
|
|
12
12
|
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _praxisui_charts from '@praxisui/charts';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { InjectionToken, Provider, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { InjectionToken, Provider, AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
4
4
|
import * as _praxisui_core from '@praxisui/core';
|
|
5
5
|
import { PraxisTextValue, WidgetDefinition, WidgetShellConfig, WidgetInstance, ComponentMetadataRegistry, ApiUrlConfig, PraxisI18nService, PraxisAnalyticsProjection, AnalyticsSchemaContractService, AnalyticsPresentationResolver, WidgetPageDefinition, SettingsValueProvider, PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nMessageDescriptor, ComponentAuthoringManifest, ComponentDocMeta } from '@praxisui/core';
|
|
6
6
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
@@ -527,7 +527,7 @@ declare class PraxisChartComponent {
|
|
|
527
527
|
private cancelScheduledRender;
|
|
528
528
|
private cancelScheduledResize;
|
|
529
529
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisChartComponent, never>;
|
|
530
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisChartComponent, "praxis-chart", never, { "config": { "alias": "config"; "required":
|
|
530
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisChartComponent, "praxis-chart", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "chartDocument": { "alias": "chartDocument"; "required": false; "isSignal": true; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; "isSignal": true; }; "queryContext": { "alias": "queryContext"; "required": false; "isSignal": true; }; "remoteDataResolver": { "alias": "remoteDataResolver"; "required": false; "isSignal": true; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; "isSignal": true; }; "availableResources": { "alias": "availableResources"; "required": false; "isSignal": true; }; "availableFields": { "alias": "availableFields"; "required": false; "isSignal": true; }; "availableTargets": { "alias": "availableTargets"; "required": false; "isSignal": true; }; }, { "pointClick": "pointClick"; "selectionChange": "selectionChange"; "crossFilter": "crossFilter"; "queryRequest": "queryRequest"; "loadStateChange": "loadStateChange"; "chartDocumentApplied": "chartDocumentApplied"; "chartDocumentSaved": "chartDocumentSaved"; }, never, never, true, never>;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
declare class PraxisChartDrilldownPanelComponent {
|
|
@@ -708,6 +708,9 @@ declare class PraxisChartCanonicalContractMapperService {
|
|
|
708
708
|
private buildQuery;
|
|
709
709
|
private buildInteractions;
|
|
710
710
|
private buildTheme;
|
|
711
|
+
private resolveSurfaceTheme;
|
|
712
|
+
private resolveThemeTextColor;
|
|
713
|
+
private isDarkHexColor;
|
|
711
714
|
private resolveThemePalette;
|
|
712
715
|
private buildMotion;
|
|
713
716
|
private resolveOrientation;
|
|
@@ -778,6 +781,7 @@ declare class PraxisChartOptionBuilderService {
|
|
|
778
781
|
constructor(transformer: PraxisChartDataTransformerService);
|
|
779
782
|
build(config: PraxisChartConfig, rows: PraxisChartDataRow[]): EChartsCoreOption;
|
|
780
783
|
private resolveText;
|
|
784
|
+
private resolveTextColor;
|
|
781
785
|
private hasText;
|
|
782
786
|
private buildTitle;
|
|
783
787
|
private buildLegend;
|
|
@@ -787,6 +791,9 @@ declare class PraxisChartOptionBuilderService {
|
|
|
787
791
|
private seriesLabelFormat;
|
|
788
792
|
private axisLabelFormatter;
|
|
789
793
|
private formatValue;
|
|
794
|
+
private formatDateValue;
|
|
795
|
+
private isDateFormat;
|
|
796
|
+
private readDateParts;
|
|
790
797
|
private parseCurrencyFormat;
|
|
791
798
|
private normalizeCurrencyDisplay;
|
|
792
799
|
private parseNumberFormat;
|
|
@@ -1230,6 +1237,7 @@ declare class PraxisChartConfigEditor implements SettingsValueProvider {
|
|
|
1230
1237
|
|
|
1231
1238
|
interface PraxisChartWidgetEditorInputs {
|
|
1232
1239
|
chartDocument?: PraxisXUiChartContract | null;
|
|
1240
|
+
queryContext?: PraxisChartQueryContext | null;
|
|
1233
1241
|
availableResources?: ChartEditorResourceOption[];
|
|
1234
1242
|
availableFields?: ChartEditorFieldOption[];
|
|
1235
1243
|
availableTargets?: ChartEditorTargetOption[];
|
|
@@ -1238,23 +1246,33 @@ interface PraxisChartWidgetEditorInputs {
|
|
|
1238
1246
|
interface PraxisChartWidgetEditorValue {
|
|
1239
1247
|
inputs: PraxisChartWidgetEditorInputs;
|
|
1240
1248
|
}
|
|
1241
|
-
declare class PraxisChartWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
1249
|
+
declare class PraxisChartWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnChanges, OnDestroy {
|
|
1242
1250
|
inputs: PraxisChartWidgetEditorInputs | null;
|
|
1243
1251
|
chartEditor?: PraxisChartConfigEditor;
|
|
1244
1252
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
1245
1253
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
1246
1254
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
1247
1255
|
private readonly subscription;
|
|
1256
|
+
private chartEditorValid;
|
|
1257
|
+
private queryContextDirty;
|
|
1258
|
+
queryContextText: string;
|
|
1259
|
+
queryContextError: string;
|
|
1248
1260
|
get chartDocument(): PraxisXUiChartContract | null;
|
|
1249
1261
|
get availableResources(): ChartEditorResourceOption[];
|
|
1250
1262
|
get availableFields(): ChartEditorFieldOption[];
|
|
1251
1263
|
get availableTargets(): ChartEditorTargetOption[];
|
|
1252
1264
|
ngAfterViewInit(): void;
|
|
1265
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1253
1266
|
ngOnDestroy(): void;
|
|
1267
|
+
setQueryContextText(value: string): void;
|
|
1254
1268
|
getSettingsValue(): PraxisChartWidgetEditorValue;
|
|
1255
1269
|
onSave(): PraxisChartWidgetEditorValue;
|
|
1256
1270
|
reset(): void;
|
|
1257
1271
|
private buildValue;
|
|
1272
|
+
private updateValidity;
|
|
1273
|
+
private formatQueryContext;
|
|
1274
|
+
private validateQueryContextText;
|
|
1275
|
+
private parseQueryContextText;
|
|
1258
1276
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisChartWidgetConfigEditor, never>;
|
|
1259
1277
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisChartWidgetConfigEditor, "praxis-chart-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; }, {}, never, never, true, never>;
|
|
1260
1278
|
}
|