@accurix/centrinfo-widget 5.2.0 → 5.2.1
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 +7 -0
- package/dist/cdn/centrinfo-widget-charts.js +5352 -4683
- package/dist/cdn/centrinfo-widget.js +131 -127
- package/dist/cdn/manifest.json +9 -9
- package/dist/echarts-runtime-CoBDVO7m.mjs +18 -0
- package/dist/echarts-runtime-w0DrsYLy.cjs +24 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.cts +5 -133
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/{styles-Bp-0ZpvF.cjs → styles-CCw1cP6m.cjs} +19 -15
- package/dist/styles-CiqV_OsG.mjs +3543 -0
- package/dist/{types-CmLbqY23.d.mts → types-95uGbSpk.d.mts} +149 -79
- package/dist/{types-CCk7I1fM.d.cts → types-DAYxNBhI.d.cts} +200 -1
- package/package.json +2 -2
- package/dist/echarts-runtime-BfpVL8xu.cjs +0 -24
- package/dist/echarts-runtime-Bu1uy4oO.mjs +0 -18
- package/dist/styles-BNPs-1he.mjs +0 -3539
|
@@ -188,6 +188,7 @@ interface AnalyticsAIExplanationInput {
|
|
|
188
188
|
status: AnalyticsAIExplanationStatus | string;
|
|
189
189
|
explanationId?: string;
|
|
190
190
|
retryAvailable?: boolean;
|
|
191
|
+
retryAfterSeconds?: number;
|
|
191
192
|
/** Pending only: when the backend job's budget ends (ISO time). */
|
|
192
193
|
deadlineAt?: string;
|
|
193
194
|
/** Pending only: seconds left in the job's budget at response time (clock-skew safe). */
|
|
@@ -241,6 +242,7 @@ declare const ANALYTICS_EXPLANATION_COPY: {
|
|
|
241
242
|
readonly basicExplanation: "Basic explanation";
|
|
242
243
|
readonly preparingDetailed: "Preparing a detailed explanation…";
|
|
243
244
|
readonly stillWorkingDetailed: "Still working on the detailed explanation…";
|
|
245
|
+
readonly waitingToRetry: "Waiting briefly before retrying the detailed explanation…";
|
|
244
246
|
readonly detailedReady: "Detailed explanation ready.";
|
|
245
247
|
readonly detailedUnavailable: "A detailed explanation is not available right now.";
|
|
246
248
|
readonly detailedRetry: "Try again";
|
|
@@ -333,6 +335,7 @@ interface AnalyticsAIExplanationJob<E extends AnalyticsExplanationInput> {
|
|
|
333
335
|
status: AnalyticsAIExplanationStatus | string;
|
|
334
336
|
explanationId?: string;
|
|
335
337
|
retryAvailable?: boolean;
|
|
338
|
+
retryAfterSeconds?: number;
|
|
336
339
|
/** Pending only: the job's deadline (ISO) and seconds left (see AnalyticsAIExplanationInput). */
|
|
337
340
|
deadlineAt?: string;
|
|
338
341
|
waitSeconds?: number;
|
|
@@ -353,84 +356,6 @@ interface AnalyticsAIExplanationTransport<E extends AnalyticsExplanationInput> {
|
|
|
353
356
|
settled?: (explanationId: string, status: 'ready' | 'failed' | 'not_requested', explanation?: E) => void;
|
|
354
357
|
}
|
|
355
358
|
//#endregion
|
|
356
|
-
//#region ../centrinfo-results/src/labels.d.ts
|
|
357
|
-
type AnalyticsExplanationCopy = Required<AnalyticsExplanationCopyOverrides>;
|
|
358
|
-
/** Every string the shared result renderer shows. Hosts override any subset. */
|
|
359
|
-
interface ResultLabels {
|
|
360
|
-
resultDetails: string;
|
|
361
|
-
liveMetric: string;
|
|
362
|
-
currentValue: string;
|
|
363
|
-
noMatchTitle: string;
|
|
364
|
-
noMatchBody: string;
|
|
365
|
-
chartType: string;
|
|
366
|
-
chooseChartType: string;
|
|
367
|
-
aggregate: string;
|
|
368
|
-
aggregateTitle: string;
|
|
369
|
-
aggregateCharge: string;
|
|
370
|
-
chartFallback: string;
|
|
371
|
-
chartLine: string;
|
|
372
|
-
chartBar: string;
|
|
373
|
-
chartStackedBar: string;
|
|
374
|
-
chartLineHint: string;
|
|
375
|
-
chartBarHint: string;
|
|
376
|
-
chartStackedBarHint: string;
|
|
377
|
-
aggregationSum: string;
|
|
378
|
-
aggregationAvg: string;
|
|
379
|
-
aggregationMin: string;
|
|
380
|
-
aggregationMax: string;
|
|
381
|
-
aggregationCount: string;
|
|
382
|
-
aggregationCountDistinct: string;
|
|
383
|
-
download: string;
|
|
384
|
-
downloadData: string;
|
|
385
|
-
expandTable: string;
|
|
386
|
-
expandChart: string;
|
|
387
|
-
restoreView: string;
|
|
388
|
-
aboutResult: string;
|
|
389
|
-
aboutPeriod: string;
|
|
390
|
-
aboutResults: string;
|
|
391
|
-
aboutChecked: string;
|
|
392
|
-
aboutTimezone: string;
|
|
393
|
-
aboutSourceData: string;
|
|
394
|
-
aboutFilters: string;
|
|
395
|
-
/** `{count}` placeholder. */
|
|
396
|
-
rowOne: string;
|
|
397
|
-
rowMany: string;
|
|
398
|
-
filtersOne: string;
|
|
399
|
-
filtersMany: string;
|
|
400
|
-
filtersApplied: string;
|
|
401
|
-
notSet: string;
|
|
402
|
-
noValue: string;
|
|
403
|
-
yes: string;
|
|
404
|
-
no: string;
|
|
405
|
-
chartValues: string;
|
|
406
|
-
/** `{measure}`, `{dimension}`. */
|
|
407
|
-
chartTitle: string;
|
|
408
|
-
seriesLimited: string;
|
|
409
|
-
summaryLatest: string;
|
|
410
|
-
summaryNoTrend: string;
|
|
411
|
-
summaryHighest: string;
|
|
412
|
-
summaryNoComparison: string;
|
|
413
|
-
zoomControls: string;
|
|
414
|
-
zoomIn: string;
|
|
415
|
-
zoomOut: string;
|
|
416
|
-
zoomReset: string;
|
|
417
|
-
zoomResetShort: string;
|
|
418
|
-
zoomNone: string;
|
|
419
|
-
zoomAllOne: string;
|
|
420
|
-
zoomAllMany: string;
|
|
421
|
-
zoomRange: string;
|
|
422
|
-
inProgress: string;
|
|
423
|
-
newContent: string;
|
|
424
|
-
updatedAt: string;
|
|
425
|
-
liveData: string;
|
|
426
|
-
viewData: string;
|
|
427
|
-
hideData: string;
|
|
428
|
-
inProgressLegend: string;
|
|
429
|
-
/** Overrides for the explanation panel copy. */
|
|
430
|
-
explanation?: Partial<AnalyticsExplanationCopy>;
|
|
431
|
-
governedResult: string;
|
|
432
|
-
}
|
|
433
|
-
//#endregion
|
|
434
359
|
//#region ../centrinfo-results/src/format.d.ts
|
|
435
360
|
/**
|
|
436
361
|
* The one place numbers, currency, percentages and dates are formatted, so the
|
|
@@ -471,6 +396,7 @@ interface AnalyticsVisualizationColumn$1 {
|
|
|
471
396
|
currencyCode?: string;
|
|
472
397
|
/** Time granularity of a date column; drives how its values are labelled. */
|
|
473
398
|
grain?: ResultGrain;
|
|
399
|
+
timeGrain?: string;
|
|
474
400
|
description?: string;
|
|
475
401
|
priority?: 'primary' | 'secondary' | 'detail';
|
|
476
402
|
sortable?: boolean;
|
|
@@ -478,6 +404,7 @@ interface AnalyticsVisualizationColumn$1 {
|
|
|
478
404
|
groupable?: boolean;
|
|
479
405
|
}
|
|
480
406
|
interface AnalyticsVisualizationRecommendation$1 {
|
|
407
|
+
layers?: AnalyticsChartLayer[];
|
|
481
408
|
type: AnalyticsChartCatalogType | 'area' | 'stacked_bar';
|
|
482
409
|
mode: string;
|
|
483
410
|
categoryField?: string;
|
|
@@ -490,6 +417,20 @@ interface AnalyticsVisualizationRecommendation$1 {
|
|
|
490
417
|
confidence?: number;
|
|
491
418
|
}
|
|
492
419
|
interface AnalyticsVisualization$1 {
|
|
420
|
+
truncated?: boolean;
|
|
421
|
+
maxSeries?: number;
|
|
422
|
+
valueProvenance?: Array<{
|
|
423
|
+
rowIndex: number;
|
|
424
|
+
field: string;
|
|
425
|
+
status?: string;
|
|
426
|
+
filled?: string;
|
|
427
|
+
}>;
|
|
428
|
+
panels?: Array<{
|
|
429
|
+
id: string;
|
|
430
|
+
title: string;
|
|
431
|
+
status: string;
|
|
432
|
+
visualization?: AnalyticsVisualization$1;
|
|
433
|
+
}>;
|
|
493
434
|
/** The latest time bucket is still in progress (drawn dashed). */
|
|
494
435
|
lastPeriodInProgress?: boolean;
|
|
495
436
|
/** Like-for-like comparison basis (reader-safe). */
|
|
@@ -559,6 +500,125 @@ interface ResultTableClassNames {
|
|
|
559
500
|
note?: string;
|
|
560
501
|
}
|
|
561
502
|
//#endregion
|
|
503
|
+
//#region ../centrinfo-results/src/combo-chart.d.ts
|
|
504
|
+
/** References governed result columns. Layers never contain queries or data. */
|
|
505
|
+
interface AnalyticsChartLayer {
|
|
506
|
+
sourceTitle?: string;
|
|
507
|
+
categorySourceTitle?: string;
|
|
508
|
+
type: 'line' | 'bar';
|
|
509
|
+
mode: string;
|
|
510
|
+
categoryField: string;
|
|
511
|
+
valueField: string;
|
|
512
|
+
seriesField?: string;
|
|
513
|
+
axis: 'y1' | 'y2';
|
|
514
|
+
}
|
|
515
|
+
interface AnalyticsComboModel {
|
|
516
|
+
categories: string[];
|
|
517
|
+
categoryLabel: string;
|
|
518
|
+
series: Array<{
|
|
519
|
+
layer: number;
|
|
520
|
+
name: string;
|
|
521
|
+
type: 'line' | 'bar';
|
|
522
|
+
area: boolean;
|
|
523
|
+
stack?: string;
|
|
524
|
+
axis: number;
|
|
525
|
+
column: AnalyticsVisualizationColumn$1;
|
|
526
|
+
values: Array<number | null>;
|
|
527
|
+
reference?: boolean;
|
|
528
|
+
}>;
|
|
529
|
+
axes: Array<{
|
|
530
|
+
label: string;
|
|
531
|
+
column: AnalyticsVisualizationColumn$1;
|
|
532
|
+
}>;
|
|
533
|
+
omittedSeriesCount: number;
|
|
534
|
+
partial: boolean;
|
|
535
|
+
locale?: string;
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region ../centrinfo-results/src/labels.d.ts
|
|
539
|
+
type AnalyticsExplanationCopy = Required<AnalyticsExplanationCopyOverrides>;
|
|
540
|
+
/** Every string the shared result renderer shows. Hosts override any subset. */
|
|
541
|
+
interface ResultLabels {
|
|
542
|
+
analysisUnavailable: string;
|
|
543
|
+
resultDetails: string;
|
|
544
|
+
liveMetric: string;
|
|
545
|
+
currentValue: string;
|
|
546
|
+
noMatchTitle: string;
|
|
547
|
+
noMatchBody: string;
|
|
548
|
+
chartType: string;
|
|
549
|
+
chooseChartType: string;
|
|
550
|
+
aggregate: string;
|
|
551
|
+
aggregateTitle: string;
|
|
552
|
+
aggregateCharge: string;
|
|
553
|
+
chartFallback: string;
|
|
554
|
+
chartLine: string;
|
|
555
|
+
chartArea: string;
|
|
556
|
+
chartCombo: string;
|
|
557
|
+
chartAreaHint: string;
|
|
558
|
+
chartComboHint: string;
|
|
559
|
+
chartBar: string;
|
|
560
|
+
chartStackedBar: string;
|
|
561
|
+
chartLineHint: string;
|
|
562
|
+
chartBarHint: string;
|
|
563
|
+
chartStackedBarHint: string;
|
|
564
|
+
aggregationSum: string;
|
|
565
|
+
aggregationAvg: string;
|
|
566
|
+
aggregationMin: string;
|
|
567
|
+
aggregationMax: string;
|
|
568
|
+
aggregationCount: string;
|
|
569
|
+
aggregationCountDistinct: string;
|
|
570
|
+
download: string;
|
|
571
|
+
downloadData: string;
|
|
572
|
+
expandTable: string;
|
|
573
|
+
expandChart: string;
|
|
574
|
+
restoreView: string;
|
|
575
|
+
aboutResult: string;
|
|
576
|
+
aboutPeriod: string;
|
|
577
|
+
aboutResults: string;
|
|
578
|
+
aboutChecked: string;
|
|
579
|
+
aboutTimezone: string;
|
|
580
|
+
aboutSourceData: string;
|
|
581
|
+
aboutFilters: string;
|
|
582
|
+
/** `{count}` placeholder. */
|
|
583
|
+
rowOne: string;
|
|
584
|
+
rowMany: string;
|
|
585
|
+
filtersOne: string;
|
|
586
|
+
filtersMany: string;
|
|
587
|
+
filtersApplied: string;
|
|
588
|
+
notSet: string;
|
|
589
|
+
noValue: string;
|
|
590
|
+
yes: string;
|
|
591
|
+
no: string;
|
|
592
|
+
chartValues: string;
|
|
593
|
+
/** `{measure}`, `{dimension}`. */
|
|
594
|
+
chartTitle: string;
|
|
595
|
+
seriesLimited: string;
|
|
596
|
+
partialChart: string;
|
|
597
|
+
summaryLatest: string;
|
|
598
|
+
summaryNoTrend: string;
|
|
599
|
+
summaryHighest: string;
|
|
600
|
+
summaryNoComparison: string;
|
|
601
|
+
zoomControls: string;
|
|
602
|
+
zoomIn: string;
|
|
603
|
+
zoomOut: string;
|
|
604
|
+
zoomReset: string;
|
|
605
|
+
zoomResetShort: string;
|
|
606
|
+
zoomNone: string;
|
|
607
|
+
zoomAllOne: string;
|
|
608
|
+
zoomAllMany: string;
|
|
609
|
+
zoomRange: string;
|
|
610
|
+
inProgress: string;
|
|
611
|
+
newContent: string;
|
|
612
|
+
updatedAt: string;
|
|
613
|
+
liveData: string;
|
|
614
|
+
viewData: string;
|
|
615
|
+
hideData: string;
|
|
616
|
+
inProgressLegend: string;
|
|
617
|
+
/** Overrides for the explanation panel copy. */
|
|
618
|
+
explanation?: Partial<AnalyticsExplanationCopy>;
|
|
619
|
+
governedResult: string;
|
|
620
|
+
}
|
|
621
|
+
//#endregion
|
|
562
622
|
//#region ../centrinfo-results/src/chart.d.ts
|
|
563
623
|
type WidgetAnalyticsSeries = {
|
|
564
624
|
field: string;
|
|
@@ -568,8 +628,9 @@ type WidgetAnalyticsSeries = {
|
|
|
568
628
|
/** Like-for-like breakdown: per-point comparison (tooltip detail). */
|
|
569
629
|
points?: Array<AnalyticsGroupComparisonPoint | undefined>;
|
|
570
630
|
};
|
|
571
|
-
type WidgetAnalyticsChartType = 'line' | 'bar' | 'stacked_bar';
|
|
631
|
+
type WidgetAnalyticsChartType = 'line' | 'area' | 'bar' | 'stacked_bar' | 'combo';
|
|
572
632
|
type WidgetAnalyticsChartModel = {
|
|
633
|
+
combo?: AnalyticsComboModel;
|
|
573
634
|
type: WidgetAnalyticsChartType;
|
|
574
635
|
title: string;
|
|
575
636
|
xAxisTitle: string;
|
|
@@ -589,6 +650,7 @@ type WidgetAnalyticsChartModel = {
|
|
|
589
650
|
labels: ResultLabels;
|
|
590
651
|
};
|
|
591
652
|
type WidgetAnalyticsChartOptions = {
|
|
653
|
+
maxSeries?: number;
|
|
592
654
|
locale?: string;
|
|
593
655
|
labels?: Partial<ResultLabels>;
|
|
594
656
|
};
|
|
@@ -948,6 +1010,7 @@ interface AnalyticsVisualizationColumn {
|
|
|
948
1010
|
label: string;
|
|
949
1011
|
dataType: 'text' | 'number' | 'currency' | 'percent' | 'boolean' | 'date' | 'datetime';
|
|
950
1012
|
semanticRole: 'identifier' | 'dimension' | 'measure' | 'date' | 'geography' | 'boolean';
|
|
1013
|
+
timeGrain?: string;
|
|
951
1014
|
aggregation?: 'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max';
|
|
952
1015
|
allowedAggregations?: Array<'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max'>;
|
|
953
1016
|
formatPattern?: string;
|
|
@@ -959,6 +1022,7 @@ interface AnalyticsVisualizationColumn {
|
|
|
959
1022
|
groupable?: boolean;
|
|
960
1023
|
}
|
|
961
1024
|
interface AnalyticsVisualizationRecommendation {
|
|
1025
|
+
layers?: AnalyticsChartLayer[];
|
|
962
1026
|
type: 'kpi' | 'table' | 'line' | 'area' | 'bar' | 'stacked_bar' | 'pie' | 'scatter' | 'funnel' | 'heatmap' | 'radar';
|
|
963
1027
|
mode: string;
|
|
964
1028
|
categoryField?: string;
|
|
@@ -1150,6 +1214,12 @@ interface AnalyticsVisualizationBusinessAnalysis {
|
|
|
1150
1214
|
coverage?: AnalyticsVisualizationAnalysisCoverage;
|
|
1151
1215
|
}
|
|
1152
1216
|
interface AnalyticsVisualization {
|
|
1217
|
+
panels?: Array<{
|
|
1218
|
+
id: string;
|
|
1219
|
+
title: string;
|
|
1220
|
+
status: string;
|
|
1221
|
+
visualization?: AnalyticsVisualization;
|
|
1222
|
+
}>;
|
|
1153
1223
|
version?: number;
|
|
1154
1224
|
presentation?: 'kpi' | 'chart' | 'table';
|
|
1155
1225
|
type: 'kpi' | 'table' | 'bar' | 'line' | 'area' | 'stacked_bar' | 'pie' | 'scatter' | 'funnel' | 'heatmap' | 'radar';
|
|
@@ -16,6 +16,9 @@ interface CentrinfoAnswer<Visualization = unknown, Source$1 = unknown, Artifact
|
|
|
16
16
|
timezone?: string;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
+
//#region ../centrinfo-results/src/analytics-chart-catalog.d.ts
|
|
20
|
+
type AnalyticsChartCatalogType = 'kpi' | 'table' | 'line' | 'bar' | 'pie' | 'scatter' | 'effectScatter' | 'map' | 'candlestick' | 'boxplot' | 'graph' | 'lines' | 'tree' | 'treemap' | 'sunburst' | 'parallel' | 'sankey' | 'funnel' | 'heatmap' | 'radar' | 'gauge' | 'pictorialBar' | 'themeRiver' | 'matrix' | 'chord' | 'custom' | 'dataset' | 'dataZoom' | 'graphic' | 'richText' | 'globe' | 'bar3D' | 'scatter3D' | 'surface' | 'map3D' | 'lines3D' | 'line3D' | 'scatterGL' | 'linesGL' | 'flowGL' | 'graphGL' | 'polygons3D';
|
|
21
|
+
//#endregion
|
|
19
22
|
//#region ../centrinfo-results/src/analytics-explanation.d.ts
|
|
20
23
|
/**
|
|
21
24
|
* Framework-agnostic analytics explanation core.
|
|
@@ -184,6 +187,7 @@ interface AnalyticsAIExplanationInput {
|
|
|
184
187
|
status: AnalyticsAIExplanationStatus | string;
|
|
185
188
|
explanationId?: string;
|
|
186
189
|
retryAvailable?: boolean;
|
|
190
|
+
retryAfterSeconds?: number;
|
|
187
191
|
/** Pending only: when the backend job's budget ends (ISO time). */
|
|
188
192
|
deadlineAt?: string;
|
|
189
193
|
/** Pending only: seconds left in the job's budget at response time (clock-skew safe). */
|
|
@@ -237,6 +241,7 @@ declare const ANALYTICS_EXPLANATION_COPY: {
|
|
|
237
241
|
readonly basicExplanation: "Basic explanation";
|
|
238
242
|
readonly preparingDetailed: "Preparing a detailed explanation…";
|
|
239
243
|
readonly stillWorkingDetailed: "Still working on the detailed explanation…";
|
|
244
|
+
readonly waitingToRetry: "Waiting briefly before retrying the detailed explanation…";
|
|
240
245
|
readonly detailedReady: "Detailed explanation ready.";
|
|
241
246
|
readonly detailedUnavailable: "A detailed explanation is not available right now.";
|
|
242
247
|
readonly detailedRetry: "Try again";
|
|
@@ -329,6 +334,7 @@ interface AnalyticsAIExplanationJob<E extends AnalyticsExplanationInput> {
|
|
|
329
334
|
status: AnalyticsAIExplanationStatus | string;
|
|
330
335
|
explanationId?: string;
|
|
331
336
|
retryAvailable?: boolean;
|
|
337
|
+
retryAfterSeconds?: number;
|
|
332
338
|
/** Pending only: the job's deadline (ISO) and seconds left (see AnalyticsAIExplanationInput). */
|
|
333
339
|
deadlineAt?: string;
|
|
334
340
|
waitSeconds?: number;
|
|
@@ -349,10 +355,190 @@ interface AnalyticsAIExplanationTransport<E extends AnalyticsExplanationInput> {
|
|
|
349
355
|
settled?: (explanationId: string, status: 'ready' | 'failed' | 'not_requested', explanation?: E) => void;
|
|
350
356
|
}
|
|
351
357
|
//#endregion
|
|
358
|
+
//#region ../centrinfo-results/src/format.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* The one place numbers, currency, percentages and dates are formatted, so the
|
|
361
|
+
* chart axis, tooltip, table and KPI show the same value the same way.
|
|
362
|
+
*
|
|
363
|
+
* Rules:
|
|
364
|
+
* - Currency comes from column metadata (`currencyCode`) or the result's fixed
|
|
365
|
+
* currency. With no known code the amount is shown as a plain number.
|
|
366
|
+
* - A `percent` column is read as percentage points (0.5 is "0.5%") unless its
|
|
367
|
+
* `formatPattern` contains `%` (Excel style), which marks a fraction (0.5 is
|
|
368
|
+
* "50%"). Magnitude is never used to guess.
|
|
369
|
+
* - Date-only values (`2024-03-05`) are calendar dates: they are formatted in
|
|
370
|
+
* UTC so they never shift a day. Instants are formatted in the result
|
|
371
|
+
* timezone. Granularity follows column metadata, the result's comparison
|
|
372
|
+
* grain, or the shape of the values — a daily series is never "Mar 2024".
|
|
373
|
+
*/
|
|
374
|
+
type ResultGrain = 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
375
|
+
interface ResultFormatContext {
|
|
376
|
+
locale?: string;
|
|
377
|
+
/** IANA zone of the result; used for instants, never for date-only values. */
|
|
378
|
+
timezone?: string;
|
|
379
|
+
grain?: ResultGrain;
|
|
380
|
+
/** Result-level fixed currency, used when the column has none. */
|
|
381
|
+
currencyCode?: string;
|
|
382
|
+
yes?: string;
|
|
383
|
+
no?: string;
|
|
384
|
+
}
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../centrinfo-results/src/types.d.ts
|
|
387
|
+
interface AnalyticsVisualizationColumn$1 {
|
|
388
|
+
key: string;
|
|
389
|
+
label: string;
|
|
390
|
+
dataType: 'text' | 'number' | 'currency' | 'percent' | 'boolean' | 'date' | 'datetime';
|
|
391
|
+
semanticRole: 'identifier' | 'dimension' | 'measure' | 'date' | 'geography' | 'boolean';
|
|
392
|
+
aggregation?: 'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max';
|
|
393
|
+
allowedAggregations?: Array<'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max'>;
|
|
394
|
+
formatPattern?: string;
|
|
395
|
+
currencyCode?: string;
|
|
396
|
+
/** Time granularity of a date column; drives how its values are labelled. */
|
|
397
|
+
grain?: ResultGrain;
|
|
398
|
+
timeGrain?: string;
|
|
399
|
+
description?: string;
|
|
400
|
+
priority?: 'primary' | 'secondary' | 'detail';
|
|
401
|
+
sortable?: boolean;
|
|
402
|
+
filterable?: boolean;
|
|
403
|
+
groupable?: boolean;
|
|
404
|
+
}
|
|
405
|
+
interface AnalyticsVisualizationRecommendation$1 {
|
|
406
|
+
layers?: AnalyticsChartLayer[];
|
|
407
|
+
type: AnalyticsChartCatalogType | 'area' | 'stacked_bar';
|
|
408
|
+
mode: string;
|
|
409
|
+
categoryField?: string;
|
|
410
|
+
latitudeField?: string;
|
|
411
|
+
longitudeField?: string;
|
|
412
|
+
geometryField?: string;
|
|
413
|
+
valueFields?: string[];
|
|
414
|
+
seriesField?: string;
|
|
415
|
+
reason?: string;
|
|
416
|
+
confidence?: number;
|
|
417
|
+
}
|
|
418
|
+
interface AnalyticsVisualization$1 {
|
|
419
|
+
truncated?: boolean;
|
|
420
|
+
maxSeries?: number;
|
|
421
|
+
valueProvenance?: Array<{
|
|
422
|
+
rowIndex: number;
|
|
423
|
+
field: string;
|
|
424
|
+
status?: string;
|
|
425
|
+
filled?: string;
|
|
426
|
+
}>;
|
|
427
|
+
panels?: Array<{
|
|
428
|
+
id: string;
|
|
429
|
+
title: string;
|
|
430
|
+
status: string;
|
|
431
|
+
visualization?: AnalyticsVisualization$1;
|
|
432
|
+
}>;
|
|
433
|
+
/** The latest time bucket is still in progress (drawn dashed). */
|
|
434
|
+
lastPeriodInProgress?: boolean;
|
|
435
|
+
/** Like-for-like comparison basis (reader-safe). */
|
|
436
|
+
periodComparison?: AnalyticsPeriodComparison;
|
|
437
|
+
version?: number;
|
|
438
|
+
presentation?: 'kpi' | 'chart' | 'table';
|
|
439
|
+
type: AnalyticsChartCatalogType | 'area' | 'stacked_bar';
|
|
440
|
+
title?: string;
|
|
441
|
+
label?: string;
|
|
442
|
+
value?: string;
|
|
443
|
+
latitudeField?: string;
|
|
444
|
+
longitudeField?: string;
|
|
445
|
+
geometryField?: string;
|
|
446
|
+
valueFields?: string[];
|
|
447
|
+
series?: string;
|
|
448
|
+
seriesField?: string;
|
|
449
|
+
columns?: string[];
|
|
450
|
+
rows?: Array<Record<string, unknown>>;
|
|
451
|
+
rowCount?: number;
|
|
452
|
+
timezone?: string;
|
|
453
|
+
freshness?: {
|
|
454
|
+
status?: string;
|
|
455
|
+
answeredAt?: string;
|
|
456
|
+
};
|
|
457
|
+
reportingPeriod?: {
|
|
458
|
+
label?: string;
|
|
459
|
+
start?: string;
|
|
460
|
+
end?: string;
|
|
461
|
+
timezone?: string;
|
|
462
|
+
};
|
|
463
|
+
appliedFilters?: Array<{
|
|
464
|
+
field: string;
|
|
465
|
+
operator: string;
|
|
466
|
+
value: unknown;
|
|
467
|
+
}>;
|
|
468
|
+
explanation?: {
|
|
469
|
+
checkedAt?: string;
|
|
470
|
+
timezone?: string;
|
|
471
|
+
dataFreshness?: {
|
|
472
|
+
status?: string;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
expandable?: boolean;
|
|
476
|
+
tableAvailable?: boolean;
|
|
477
|
+
downloadAvailable?: boolean;
|
|
478
|
+
columnMetadata?: AnalyticsVisualizationColumn$1[];
|
|
479
|
+
currency?: {
|
|
480
|
+
code?: string;
|
|
481
|
+
field?: string;
|
|
482
|
+
source?: 'fixed_metadata' | 'source_field';
|
|
483
|
+
isMixed: boolean;
|
|
484
|
+
};
|
|
485
|
+
chartRecommendation?: AnalyticsVisualizationRecommendation$1;
|
|
486
|
+
}
|
|
487
|
+
interface ResultColumn {
|
|
488
|
+
key: string;
|
|
489
|
+
label?: string;
|
|
490
|
+
dataType?: AnalyticsVisualizationColumn$1['dataType'];
|
|
491
|
+
currencyCode?: string;
|
|
492
|
+
formatPattern?: string;
|
|
493
|
+
grain?: ResultGrain;
|
|
494
|
+
semanticRole?: AnalyticsVisualizationColumn$1['semanticRole'];
|
|
495
|
+
}
|
|
496
|
+
interface ResultTableClassNames {
|
|
497
|
+
wrap?: string;
|
|
498
|
+
table?: string;
|
|
499
|
+
note?: string;
|
|
500
|
+
}
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region ../centrinfo-results/src/combo-chart.d.ts
|
|
503
|
+
/** References governed result columns. Layers never contain queries or data. */
|
|
504
|
+
interface AnalyticsChartLayer {
|
|
505
|
+
sourceTitle?: string;
|
|
506
|
+
categorySourceTitle?: string;
|
|
507
|
+
type: 'line' | 'bar';
|
|
508
|
+
mode: string;
|
|
509
|
+
categoryField: string;
|
|
510
|
+
valueField: string;
|
|
511
|
+
seriesField?: string;
|
|
512
|
+
axis: 'y1' | 'y2';
|
|
513
|
+
}
|
|
514
|
+
interface AnalyticsComboModel {
|
|
515
|
+
categories: string[];
|
|
516
|
+
categoryLabel: string;
|
|
517
|
+
series: Array<{
|
|
518
|
+
layer: number;
|
|
519
|
+
name: string;
|
|
520
|
+
type: 'line' | 'bar';
|
|
521
|
+
area: boolean;
|
|
522
|
+
stack?: string;
|
|
523
|
+
axis: number;
|
|
524
|
+
column: AnalyticsVisualizationColumn$1;
|
|
525
|
+
values: Array<number | null>;
|
|
526
|
+
reference?: boolean;
|
|
527
|
+
}>;
|
|
528
|
+
axes: Array<{
|
|
529
|
+
label: string;
|
|
530
|
+
column: AnalyticsVisualizationColumn$1;
|
|
531
|
+
}>;
|
|
532
|
+
omittedSeriesCount: number;
|
|
533
|
+
partial: boolean;
|
|
534
|
+
locale?: string;
|
|
535
|
+
}
|
|
536
|
+
//#endregion
|
|
352
537
|
//#region ../centrinfo-results/src/labels.d.ts
|
|
353
538
|
type AnalyticsExplanationCopy = Required<AnalyticsExplanationCopyOverrides>;
|
|
354
539
|
/** Every string the shared result renderer shows. Hosts override any subset. */
|
|
355
540
|
interface ResultLabels {
|
|
541
|
+
analysisUnavailable: string;
|
|
356
542
|
resultDetails: string;
|
|
357
543
|
liveMetric: string;
|
|
358
544
|
currentValue: string;
|
|
@@ -365,6 +551,10 @@ interface ResultLabels {
|
|
|
365
551
|
aggregateCharge: string;
|
|
366
552
|
chartFallback: string;
|
|
367
553
|
chartLine: string;
|
|
554
|
+
chartArea: string;
|
|
555
|
+
chartCombo: string;
|
|
556
|
+
chartAreaHint: string;
|
|
557
|
+
chartComboHint: string;
|
|
368
558
|
chartBar: string;
|
|
369
559
|
chartStackedBar: string;
|
|
370
560
|
chartLineHint: string;
|
|
@@ -402,6 +592,7 @@ interface ResultLabels {
|
|
|
402
592
|
/** `{measure}`, `{dimension}`. */
|
|
403
593
|
chartTitle: string;
|
|
404
594
|
seriesLimited: string;
|
|
595
|
+
partialChart: string;
|
|
405
596
|
summaryLatest: string;
|
|
406
597
|
summaryNoTrend: string;
|
|
407
598
|
summaryHighest: string;
|
|
@@ -738,6 +929,7 @@ interface AnalyticsVisualizationColumn {
|
|
|
738
929
|
label: string;
|
|
739
930
|
dataType: 'text' | 'number' | 'currency' | 'percent' | 'boolean' | 'date' | 'datetime';
|
|
740
931
|
semanticRole: 'identifier' | 'dimension' | 'measure' | 'date' | 'geography' | 'boolean';
|
|
932
|
+
timeGrain?: string;
|
|
741
933
|
aggregation?: 'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max';
|
|
742
934
|
allowedAggregations?: Array<'none' | 'sum' | 'avg' | 'count' | 'count_distinct' | 'min' | 'max'>;
|
|
743
935
|
formatPattern?: string;
|
|
@@ -749,6 +941,7 @@ interface AnalyticsVisualizationColumn {
|
|
|
749
941
|
groupable?: boolean;
|
|
750
942
|
}
|
|
751
943
|
interface AnalyticsVisualizationRecommendation {
|
|
944
|
+
layers?: AnalyticsChartLayer[];
|
|
752
945
|
type: 'kpi' | 'table' | 'line' | 'area' | 'bar' | 'stacked_bar' | 'pie' | 'scatter' | 'funnel' | 'heatmap' | 'radar';
|
|
753
946
|
mode: string;
|
|
754
947
|
categoryField?: string;
|
|
@@ -940,6 +1133,12 @@ interface AnalyticsVisualizationBusinessAnalysis {
|
|
|
940
1133
|
coverage?: AnalyticsVisualizationAnalysisCoverage;
|
|
941
1134
|
}
|
|
942
1135
|
interface AnalyticsVisualization {
|
|
1136
|
+
panels?: Array<{
|
|
1137
|
+
id: string;
|
|
1138
|
+
title: string;
|
|
1139
|
+
status: string;
|
|
1140
|
+
visualization?: AnalyticsVisualization;
|
|
1141
|
+
}>;
|
|
943
1142
|
version?: number;
|
|
944
1143
|
presentation?: 'kpi' | 'chart' | 'table';
|
|
945
1144
|
type: 'kpi' | 'table' | 'bar' | 'line' | 'area' | 'stacked_bar' | 'pie' | 'scatter' | 'funnel' | 'heatmap' | 'radar';
|
|
@@ -1699,4 +1898,4 @@ interface SchedulerInfo {
|
|
|
1699
1898
|
};
|
|
1700
1899
|
}
|
|
1701
1900
|
//#endregion
|
|
1702
|
-
export {
|
|
1901
|
+
export { ResultColumn as A, Transport as C, AnalyticsComboModel as D, ResultLabels as E, AnalyticsGroupComparisonPoint as F, AnalyticsPeriodComparison as I, ResultFormatContext as M, AnalyticsAIExplanationTransport as N, AnalyticsVisualization$1 as O, AnalyticsExplanationInput as P, PublicChatActionField as S, WidgetStrings as T, DemoBooking as _, MessageAttachment as a, GifResult as b, Visitor as c, WidgetHandle as d, WidgetThemeTokens as f, AnalyticsVisualization as g, AnalyticsModelOption as h, FeaturedLink as i, ResultTableClassNames as j, AnalyticsVisualizationColumn$1 as k, WidgetActionTranslation as l, ActionResult as m, ChatArtifact as n, SchedulerInfo as o, WidgetUser as p, ChatMessage as r, Source as s, BootstrapInfo as t, WidgetConfig as u, DemoSlotsResult as v, StringsProvider as w, PublicChatAction as x, ExplanationFeedbackInput as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accurix/centrinfo-widget",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"typescript": "^5.8.0",
|
|
54
54
|
"vite": "^7.0.0",
|
|
55
55
|
"vitest": "^3.2.0",
|
|
56
|
-
"wrangler": "^4.
|
|
56
|
+
"wrangler": "^4.148.0",
|
|
57
57
|
"@accurix/centrinfo-results": "^0.1.0",
|
|
58
58
|
"@accurix/centrinfo-voice": "^0.1.0",
|
|
59
59
|
"@accurix/web-config-eslint": "^0.0.0"
|