@firestitch/report 18.10.1 → 18.11.0
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/app/reports/components/component-text/component-text.component.d.ts +1 -0
- package/app/reports/components/component-text/value-embed.plugin.d.ts +25 -1
- package/app/reports/components/report-canvas/report-canvas.component.d.ts +12 -1
- package/app/reports/components/report-component/report-component.component.d.ts +1 -0
- package/app/reports/data/report.data.d.ts +9 -13
- package/app/reports/dialogs/component-settings/component-settings.component.d.ts +13 -1
- package/app/reports/export/report-export-collector.service.d.ts +13 -6
- package/app/reports/export/report-filter-lines.d.ts +3 -2
- package/app/reports/filter-text.d.ts +8 -0
- package/app/reports/format.d.ts +1 -0
- package/app/reports/interfaces/report-chat-viewer-state.interface.d.ts +0 -2
- package/app/reports/interfaces/report-export-lines-input.interface.d.ts +1 -0
- package/app/reports/interfaces/report-export-snapshot.interface.d.ts +2 -3
- package/app/reports/interfaces/report-saved-filter-changes.interface.d.ts +4 -0
- package/app/reports/interfaces/report-saved-filter.interface.d.ts +6 -0
- package/app/reports/interfaces/{report-view-config.interface.d.ts → report-state-snapshot.interface.d.ts} +1 -2
- package/app/reports/interfaces/report-viewer-feature.type.d.ts +1 -1
- package/app/reports/report-chat-viewer-state.d.ts +3 -3
- package/app/reports/report-filter-items.d.ts +9 -0
- package/app/reports/report-saved-filters.d.ts +3 -0
- package/app/reports/report-state.d.ts +15 -0
- package/app/reports/services/report-filter-state.service.d.ts +9 -25
- package/app/reports/text.d.ts +16 -0
- package/app/reports/tile-data-state.d.ts +5 -5
- package/app/reports/views/report/fs-ai-report.component.d.ts +10 -5
- package/esm2022/app/reports/canvas-landing-page.mjs +3 -3
- package/esm2022/app/reports/components/component-list/component-list.component.mjs +3 -3
- package/esm2022/app/reports/components/component-text/component-text.component.mjs +34 -22
- package/esm2022/app/reports/components/component-text/value-embed.plugin.mjs +254 -42
- package/esm2022/app/reports/components/report-canvas/report-canvas.component.mjs +124 -23
- package/esm2022/app/reports/components/report-component/report-component.component.mjs +45 -31
- package/esm2022/app/reports/data/report.data.mjs +33 -45
- package/esm2022/app/reports/dialogs/component-settings/component-settings.component.mjs +57 -14
- package/esm2022/app/reports/export/report-export-collector.service.mjs +93 -49
- package/esm2022/app/reports/export/report-filter-lines.mjs +28 -21
- package/esm2022/app/reports/export/report-pdf.service.mjs +31 -21
- package/esm2022/app/reports/export/report-pptx.service.mjs +21 -11
- package/esm2022/app/reports/filter-settings-rules.mjs +2 -2
- package/esm2022/app/reports/filter-text.mjs +154 -0
- package/esm2022/app/reports/format.mjs +3 -2
- package/esm2022/app/reports/interfaces/canvas-landing-input.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-chat-viewer-state.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-export-lines-input.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-export-snapshot.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-saved-filter-changes.interface.mjs +2 -0
- package/esm2022/app/reports/interfaces/report-saved-filter.interface.mjs +2 -0
- package/esm2022/app/reports/interfaces/report-state-snapshot.interface.mjs +2 -0
- package/esm2022/app/reports/interfaces/report-temporary-state.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-tile-state.interface.mjs +1 -1
- package/esm2022/app/reports/interfaces/report-viewer-feature.type.mjs +1 -1
- package/esm2022/app/reports/interfaces/report.interface.mjs +1 -1
- package/esm2022/app/reports/mark-click.mjs +2 -2
- package/esm2022/app/reports/report-chat-viewer-state.mjs +3 -3
- package/esm2022/app/reports/report-date-presets.mjs +2 -2
- package/esm2022/app/reports/report-filter-items.mjs +24 -2
- package/esm2022/app/reports/report-saved-filters.mjs +92 -0
- package/esm2022/app/reports/report-state.mjs +169 -0
- package/esm2022/app/reports/report-viewer-features.mjs +2 -4
- package/esm2022/app/reports/services/report-filter-state.service.mjs +83 -310
- package/esm2022/app/reports/text.mjs +59 -13
- package/esm2022/app/reports/tile-data-state.mjs +4 -4
- package/esm2022/app/reports/tile-loads.mjs +5 -6
- package/esm2022/app/reports/views/report/fs-ai-report.component.mjs +172 -98
- package/esm2022/app/reports/views/report/report.component.mjs +23 -22
- package/esm2022/public_api.mjs +4 -8
- package/fesm2022/{firestitch-report-echarts-DHEH_K_q.mjs → firestitch-report-echarts-DKXlgu1D.mjs} +2 -2
- package/fesm2022/{firestitch-report-echarts-DHEH_K_q.mjs.map → firestitch-report-echarts-DKXlgu1D.mjs.map} +1 -1
- package/fesm2022/{firestitch-report-firestitch-report-ZcHTnNKq.mjs → firestitch-report-firestitch-report-Bnv62suw.mjs} +2523 -2814
- package/fesm2022/firestitch-report-firestitch-report-Bnv62suw.mjs.map +1 -0
- package/fesm2022/firestitch-report.mjs +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +3 -7
- package/app/reports/components/report-view-picker/report-view-picker.component.d.ts +0 -21
- package/app/reports/dialogs/report-view/report-view-dialog.component.d.ts +0 -13
- package/app/reports/interfaces/report-view-create.interface.d.ts +0 -7
- package/app/reports/interfaces/report-view-deleted.interface.d.ts +0 -4
- package/app/reports/interfaces/report-view-dialog-data.interface.d.ts +0 -7
- package/app/reports/interfaces/report-view-dropped.interface.d.ts +0 -5
- package/app/reports/interfaces/report-view-menu-item.interface.d.ts +0 -10
- package/app/reports/interfaces/report-view-summary.interface.d.ts +0 -11
- package/app/reports/interfaces/report-view.interface.d.ts +0 -7
- package/app/reports/interfaces/report-views.interface.d.ts +0 -7
- package/app/reports/report-view-config.d.ts +0 -34
- package/app/reports/report-view-menu.d.ts +0 -15
- package/app/reports/services/report-view.service.d.ts +0 -39
- package/esm2022/app/reports/components/report-view-picker/report-view-picker.component.mjs +0 -115
- package/esm2022/app/reports/dialogs/report-view/report-view-dialog.component.mjs +0 -52
- package/esm2022/app/reports/interfaces/report-view-config.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-create.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-deleted.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-dialog-data.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-dropped.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-menu-item.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view-summary.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-view.interface.mjs +0 -2
- package/esm2022/app/reports/interfaces/report-views.interface.mjs +0 -2
- package/esm2022/app/reports/report-view-config.mjs +0 -587
- package/esm2022/app/reports/report-view-menu.mjs +0 -119
- package/esm2022/app/reports/services/report-view.service.mjs +0 -218
- package/fesm2022/firestitch-report-firestitch-report-ZcHTnNKq.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin, PluginConfig } from '@firestitch/html-editor';
|
|
2
|
-
import { TextValue } from '../../text';
|
|
2
|
+
import { TextTokenContext, TextValue } from '../../text';
|
|
3
3
|
export declare const VALUE_EMBED_ATTRIBUTES: string[];
|
|
4
4
|
export interface ValueEmbedBlock {
|
|
5
5
|
count: number;
|
|
@@ -10,10 +10,19 @@ export interface ValueEmbedRemoval {
|
|
|
10
10
|
after: string[];
|
|
11
11
|
undo: () => void;
|
|
12
12
|
}
|
|
13
|
+
export interface EmbedMenuEntry {
|
|
14
|
+
token: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
13
17
|
export interface ValueEmbedPluginConfig extends PluginConfig {
|
|
14
18
|
host: () => HTMLElement;
|
|
15
19
|
values: () => Record<string, TextValue>;
|
|
16
20
|
scope: () => string;
|
|
21
|
+
fields: () => TextTokenContext;
|
|
22
|
+
menu: {
|
|
23
|
+
command: string;
|
|
24
|
+
entries: () => EmbedMenuEntry[];
|
|
25
|
+
};
|
|
17
26
|
showNames: () => boolean;
|
|
18
27
|
click: (key: string, chip: HTMLElement) => void;
|
|
19
28
|
blocked: (block: ValueEmbedBlock) => void;
|
|
@@ -32,11 +41,15 @@ export declare class ValueEmbedPlugin extends Plugin {
|
|
|
32
41
|
initialize(): void;
|
|
33
42
|
destroy(): void;
|
|
34
43
|
refresh(): void;
|
|
44
|
+
insert(token: string): void;
|
|
35
45
|
hideToolbar(): void;
|
|
36
46
|
undo(): void;
|
|
37
47
|
removeKey(key: string): void;
|
|
38
48
|
remove(chip: HTMLElement): void;
|
|
39
49
|
private _chips;
|
|
50
|
+
private _fieldChips;
|
|
51
|
+
private _fillMenu;
|
|
52
|
+
private _menuItem;
|
|
40
53
|
private _chipCounts;
|
|
41
54
|
private _reportRemoved;
|
|
42
55
|
private _watchCommands;
|
|
@@ -45,14 +58,21 @@ export declare class ValueEmbedPlugin extends Plugin {
|
|
|
45
58
|
private _toChips;
|
|
46
59
|
private _keepsPasted;
|
|
47
60
|
private _splitText;
|
|
61
|
+
private _embedTokens;
|
|
62
|
+
private _tokenChip;
|
|
48
63
|
private _toTokenText;
|
|
49
64
|
private _createChip;
|
|
50
65
|
private _label;
|
|
66
|
+
private _createFieldChip;
|
|
67
|
+
private _labelField;
|
|
51
68
|
private _toTokens;
|
|
52
69
|
private _onKeydown;
|
|
53
70
|
private _onBeforeInput;
|
|
54
71
|
private _guardSelection;
|
|
72
|
+
private _removeAdjacentField;
|
|
73
|
+
private _onCut;
|
|
55
74
|
private _onCopy;
|
|
75
|
+
private _copyTokens;
|
|
56
76
|
private _plainText;
|
|
57
77
|
private _onClick;
|
|
58
78
|
private _onChip;
|
|
@@ -61,7 +81,11 @@ export declare class ValueEmbedPlugin extends Plugin {
|
|
|
61
81
|
private _changed;
|
|
62
82
|
private _selection;
|
|
63
83
|
private _range;
|
|
84
|
+
private _inBlocks;
|
|
85
|
+
private _edgeBlock;
|
|
64
86
|
private _chipsIn;
|
|
87
|
+
private _fieldChipsIn;
|
|
65
88
|
private _adjacentChip;
|
|
89
|
+
private _reach;
|
|
66
90
|
private _granularity;
|
|
67
91
|
}
|
|
@@ -46,7 +46,6 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
46
46
|
readonly masterMode: WritableSignal<boolean>;
|
|
47
47
|
groups: Map<number, ReportFilterGroup>;
|
|
48
48
|
readonly selectedComponentId: WritableSignal<number>;
|
|
49
|
-
readonly appliedVersion: import("@angular/core").Signal<number>;
|
|
50
49
|
readonly activePageComponents: import("@angular/core").Signal<ReportComponent[]>;
|
|
51
50
|
readonly masterComponents: import("@angular/core").Signal<ReportComponent[]>;
|
|
52
51
|
readonly pageTokens: import("@angular/core").Signal<TextTokenContext>;
|
|
@@ -55,6 +54,7 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
55
54
|
readonly valueKeysElsewhere: (text: ReportComponent) => ReadonlySet<string>;
|
|
56
55
|
private _reportData;
|
|
57
56
|
private _filterState;
|
|
57
|
+
private _filterOptions;
|
|
58
58
|
private _prompt;
|
|
59
59
|
private _message;
|
|
60
60
|
private _destroyRef;
|
|
@@ -69,6 +69,11 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
69
69
|
private _pageValues;
|
|
70
70
|
private _masterValues;
|
|
71
71
|
private _valuesRevision;
|
|
72
|
+
private _filterRevision;
|
|
73
|
+
private _optionNames;
|
|
74
|
+
private _optionNamesAsked;
|
|
75
|
+
private _groupOptions;
|
|
76
|
+
private _selectPicks;
|
|
72
77
|
private _valueKeysByLayer;
|
|
73
78
|
constructor();
|
|
74
79
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -84,6 +89,7 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
84
89
|
onComponentRemoved(componentId: number): void;
|
|
85
90
|
onTextSaved(text: ReportComponent, html: string): void;
|
|
86
91
|
openValueSettings(text: ReportComponent, key: string): void;
|
|
92
|
+
componentTokens(component: ReportComponent): TextTokenContext;
|
|
87
93
|
toggleMasterHidden(page: ReportPage): void;
|
|
88
94
|
selectPage(index: number): void;
|
|
89
95
|
addPage(): void;
|
|
@@ -103,6 +109,10 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
103
109
|
componentId: number;
|
|
104
110
|
} & Record<string, number>): void;
|
|
105
111
|
private _init;
|
|
112
|
+
private _watchFilters;
|
|
113
|
+
private _filterValuesKey;
|
|
114
|
+
private _forgetUnreadNames;
|
|
115
|
+
private _watchOptionNames;
|
|
106
116
|
private _valueLayer;
|
|
107
117
|
private _watchValues;
|
|
108
118
|
private _reloadIfChanged;
|
|
@@ -111,6 +121,7 @@ export declare class ReportCanvasComponent implements OnChanges, AfterViewInit {
|
|
|
111
121
|
private _shownValues;
|
|
112
122
|
private _loadValues;
|
|
113
123
|
private _tokenContext;
|
|
124
|
+
private _filterFields;
|
|
114
125
|
private _dropRemovedValueChips;
|
|
115
126
|
private _isMasterComponent;
|
|
116
127
|
private get _snapThreshold();
|
|
@@ -72,6 +72,7 @@ export declare class ReportComponentComponent implements OnInit, OnChanges {
|
|
|
72
72
|
ngOnInit(): void;
|
|
73
73
|
ngOnChanges(changes: SimpleChanges): void;
|
|
74
74
|
get filterKey(): string;
|
|
75
|
+
get shownTitle(): string;
|
|
75
76
|
get isText(): boolean;
|
|
76
77
|
editText(): void;
|
|
77
78
|
removeValue(key: string): void;
|
|
@@ -4,10 +4,8 @@ import { ReportExportLine } from '../interfaces/report-export-line.interface';
|
|
|
4
4
|
import { ReportFilterGroupChanges } from '../interfaces/report-filter-group-changes.interface';
|
|
5
5
|
import { ReportFilterOptionsRequest } from '../interfaces/report-filter-options-request.interface';
|
|
6
6
|
import { ReportFilterOptions } from '../interfaces/report-filter-options.interface';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ReportView } from '../interfaces/report-view.interface';
|
|
10
|
-
import { ReportViews } from '../interfaces/report-views.interface';
|
|
7
|
+
import { ReportSavedFilterChanges } from '../interfaces/report-saved-filter-changes.interface';
|
|
8
|
+
import { ReportSavedFilter } from '../interfaces/report-saved-filter.interface';
|
|
11
9
|
import { ChartGranularity, ComponentDataState, ComponentExportResponse, ReportComponentSql, ReportLocales, ReportPageValue, ReportTree, ResolvedFilterValue } from '../interfaces/report.interface';
|
|
12
10
|
import * as i0 from "@angular/core";
|
|
13
11
|
export declare class ReportData<T = any> {
|
|
@@ -57,8 +55,8 @@ export declare class ReportData<T = any> {
|
|
|
57
55
|
}>)[], config?: RequestConfig): Observable<T>;
|
|
58
56
|
componentData(reportId: number, componentId: number, filters?: ResolvedFilterValue[], state?: ComponentDataState, isExport?: boolean, config?: RequestConfig): Observable<T>;
|
|
59
57
|
pageValues(reportId: number, pageId: number, filters?: ResolvedFilterValue[], isExport?: boolean, config?: RequestConfig, matchAnyGroupIds?: number[]): Observable<ReportPageValue[]>;
|
|
60
|
-
exportComponent(reportId: number, componentId: number, filters?: ResolvedFilterValue[], state?: ComponentDataState, config?: RequestConfig): Observable<ComponentExportResponse>;
|
|
61
|
-
exportReport(reportId: number, filters?: ResolvedFilterValue[], pageId?: number | null, frequency?: ChartGranularity | null, filterLines?: ReportExportLine[], states?: Record<number, ComponentDataState>,
|
|
58
|
+
exportComponent(reportId: number, componentId: number, filters?: ResolvedFilterValue[], state?: ComponentDataState, title?: string, config?: RequestConfig): Observable<ComponentExportResponse>;
|
|
59
|
+
exportReport(reportId: number, filters?: ResolvedFilterValue[], pageId?: number | null, frequency?: ChartGranularity | null, filterLines?: ReportExportLine[], states?: Record<number, ComponentDataState>, titles?: Record<number, string>, config?: RequestConfig): Observable<T>;
|
|
62
60
|
filterOptions(reportId: number, filterId: number, config?: RequestConfig): Observable<T>;
|
|
63
61
|
componentSql(reportId: number, componentId: number, config?: RequestConfig): Observable<ReportComponentSql>;
|
|
64
62
|
componentColumns(reportId: number, componentId: number, config?: RequestConfig): Observable<T>;
|
|
@@ -90,13 +88,11 @@ export declare class ReportData<T = any> {
|
|
|
90
88
|
}, config?: RequestConfig): Observable<T>;
|
|
91
89
|
updateFilterGroup(reportId: number, groupId: number, changes: ReportFilterGroupChanges, config?: RequestConfig): Observable<T>;
|
|
92
90
|
filterOptionsNarrowed(reportId: number, filterId: number, body: ReportFilterOptionsRequest, config?: RequestConfig): Observable<ReportFilterOptions>;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
shareView(reportId: number, reportViewId: number, shared: boolean, config?: RequestConfig): Observable<ReportView>;
|
|
99
|
-
setViewDefault(reportId: number, reportViewId: number, personalDefault: boolean, config?: RequestConfig): Observable<ReportView>;
|
|
91
|
+
savedFilters(reportId: number, config?: RequestConfig): Observable<ReportSavedFilter[]>;
|
|
92
|
+
createSavedFilter(reportId: number, savedFilter: Required<ReportSavedFilterChanges>, config?: RequestConfig): Observable<ReportSavedFilter>;
|
|
93
|
+
updateSavedFilter(reportId: number, reportSavedFilterId: number, changes: ReportSavedFilterChanges, config?: RequestConfig): Observable<ReportSavedFilter>;
|
|
94
|
+
deleteSavedFilter(reportId: number, reportSavedFilterId: number, config?: RequestConfig): Observable<ReportSavedFilter>;
|
|
95
|
+
saveSavedFilterPositions(reportId: number, reportSavedFilterIds: number[], config?: RequestConfig): Observable<ReportSavedFilter[]>;
|
|
100
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportData<any>, never>;
|
|
101
97
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportData<any>>;
|
|
102
98
|
}
|
|
@@ -7,11 +7,17 @@ import { FilterBarPlacement } from '../../interfaces/filter-bar-placement.type';
|
|
|
7
7
|
import { FilterComponentToggleState } from '../../interfaces/filter-component-toggle-state.interface';
|
|
8
8
|
import { FilterSettingsOption } from '../../interfaces/filter-settings-option.interface';
|
|
9
9
|
import { FilterTypeSelectState } from '../../interfaces/filter-type-select-state.interface';
|
|
10
|
+
import { TextTokenContext } from '../../text';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export interface ComponentSettingsResult {
|
|
12
13
|
settings?: ComponentSettings;
|
|
13
14
|
deleted?: boolean;
|
|
14
15
|
}
|
|
16
|
+
export interface ComponentSettingsDialogData {
|
|
17
|
+
report: Report;
|
|
18
|
+
component: ReportComponent;
|
|
19
|
+
tokens: TextTokenContext;
|
|
20
|
+
}
|
|
15
21
|
interface ComponentSettingsResponse {
|
|
16
22
|
id: number;
|
|
17
23
|
config?: Record<string, unknown> | null;
|
|
@@ -31,7 +37,10 @@ export declare class ComponentSettingsComponent implements OnInit {
|
|
|
31
37
|
component: ReportComponent;
|
|
32
38
|
report: Report;
|
|
33
39
|
selectedTab: string;
|
|
34
|
-
title: string
|
|
40
|
+
readonly title: import("@angular/core").WritableSignal<string>;
|
|
41
|
+
readonly titleFields: import("@angular/core").Signal<import("../../text").TextField[]>;
|
|
42
|
+
readonly titleShownAs: import("@angular/core").Signal<string>;
|
|
43
|
+
readonly heading: import("@angular/core").Signal<string>;
|
|
35
44
|
paddingTop: number | string;
|
|
36
45
|
paddingRight: number | string;
|
|
37
46
|
paddingBottom: number | string;
|
|
@@ -72,6 +81,7 @@ export declare class ComponentSettingsComponent implements OnInit {
|
|
|
72
81
|
private _pickedTypes;
|
|
73
82
|
private readonly _typeLabels;
|
|
74
83
|
private readonly _data;
|
|
84
|
+
private readonly _titleInput;
|
|
75
85
|
private readonly _dialogRef;
|
|
76
86
|
private readonly _reportData;
|
|
77
87
|
private readonly _message;
|
|
@@ -80,6 +90,7 @@ export declare class ComponentSettingsComponent implements OnInit {
|
|
|
80
90
|
ngOnInit(): void;
|
|
81
91
|
typeLabel(type: ReportFilterType): string;
|
|
82
92
|
delete(): void;
|
|
93
|
+
insertField(field: string): void;
|
|
83
94
|
validateTarget: (control: AbstractControl) => void;
|
|
84
95
|
save: () => Observable<ComponentSettingsResponse>;
|
|
85
96
|
setType(row: FilterRow, type: ReportFilterType): void;
|
|
@@ -89,6 +100,7 @@ export declare class ComponentSettingsComponent implements OnInit {
|
|
|
89
100
|
private _applyValueLevel;
|
|
90
101
|
private _addFilter;
|
|
91
102
|
private _patchRow;
|
|
103
|
+
private _shownTitle;
|
|
92
104
|
private _formulaLine;
|
|
93
105
|
private _dependentsNote;
|
|
94
106
|
private _layerValues;
|
|
@@ -4,7 +4,7 @@ import { ReportExportSnapshot } from '../interfaces/report-export-snapshot.inter
|
|
|
4
4
|
import { ComponentData, ListColumn, Report, ReportComponent, ReportFormatContext, ReportLocaleTag, ReportPage } from '../interfaces/report.interface';
|
|
5
5
|
import { KpiCardView } from '../kpi-card';
|
|
6
6
|
import { ListOutputColumn } from '../list-config';
|
|
7
|
-
import { TextTokenContext, TextValue } from '../text';
|
|
7
|
+
import { TextFilterField, TextTokenContext, TextValue } from '../text';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export interface CollectedComponent {
|
|
10
10
|
component: ReportComponent;
|
|
@@ -25,9 +25,15 @@ export interface CollectedReport {
|
|
|
25
25
|
masterValues: Record<string, TextValue>;
|
|
26
26
|
masterFailedValues: string[];
|
|
27
27
|
filterSummary: string[];
|
|
28
|
+
filterFields: Record<number, TextFilterField>;
|
|
28
29
|
contextLines: string[];
|
|
29
30
|
formatContext: ReportFormatContext;
|
|
30
31
|
}
|
|
32
|
+
export interface ReportExportWording {
|
|
33
|
+
lines: ReportExportLine[];
|
|
34
|
+
filterFields: Record<number, TextFilterField>;
|
|
35
|
+
titles: Record<number, string>;
|
|
36
|
+
}
|
|
31
37
|
export interface TextOverflow {
|
|
32
38
|
componentId: number;
|
|
33
39
|
page: string;
|
|
@@ -61,7 +67,7 @@ export interface KpiExportParts {
|
|
|
61
67
|
}
|
|
62
68
|
export declare const HEADER_FOOTER_NAME = "Header & footer";
|
|
63
69
|
export declare function emptyLabel(item: CollectedComponent): string;
|
|
64
|
-
export declare function exportTitle(component: ReportComponent, search?: string | null, crumbs?: readonly string[] | null): string;
|
|
70
|
+
export declare function exportTitle(component: ReportComponent, tokens: TextTokenContext, search?: string | null, crumbs?: readonly string[] | null): string;
|
|
65
71
|
export declare function isFailed(item: CollectedComponent): boolean;
|
|
66
72
|
export declare function textOverflow(component: ReportComponent, page: string, tokens: TextTokenContext): TextOverflow;
|
|
67
73
|
export declare function coverLines(collected: CollectedReport): string[];
|
|
@@ -79,16 +85,16 @@ export declare function scaledKpiHeights(heights: KpiExportHeights, scale: numbe
|
|
|
79
85
|
export declare function kpiExportHeight(view: KpiCardView, parts: KpiExportParts, heights: KpiExportHeights): number;
|
|
80
86
|
export declare function moreRowsNotice(remaining: number): string;
|
|
81
87
|
export declare function failedPageNames(collected: CollectedReport): string[];
|
|
82
|
-
export declare function coverFilterLines(snapshot: ReportExportSnapshot, lines: readonly ReportExportLine[], pages: readonly Pick<CollectedPage, 'components'>[]): string[];
|
|
88
|
+
export declare function coverFilterLines(snapshot: ReportExportSnapshot, lines: readonly ReportExportLine[], pages: readonly Pick<CollectedPage, 'components'>[], titles?: Readonly<Record<number, string>>): string[];
|
|
83
89
|
export declare function isExportSlot(component: ReportComponent): boolean;
|
|
84
90
|
export declare class ReportExportCollectorService {
|
|
85
91
|
private _reportData;
|
|
86
92
|
private _filterState;
|
|
87
93
|
private _filterOptions;
|
|
88
|
-
private _views;
|
|
89
94
|
collect(report: Report, listRows: number): Observable<CollectedReport>;
|
|
90
95
|
snapshot(report: Report): ReportExportSnapshot;
|
|
91
|
-
|
|
96
|
+
exportWording(report: Report, snapshot: ReportExportSnapshot, pageId?: number | null): Observable<ReportExportWording>;
|
|
97
|
+
private _exportTitles;
|
|
92
98
|
private _jobs;
|
|
93
99
|
private _valuesJobs;
|
|
94
100
|
private _runJob;
|
|
@@ -98,7 +104,8 @@ export declare class ReportExportCollectorService {
|
|
|
98
104
|
private _pageValues;
|
|
99
105
|
private _file;
|
|
100
106
|
private _contextLines;
|
|
101
|
-
private
|
|
107
|
+
private _filterFields;
|
|
108
|
+
private _pickNamer;
|
|
102
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportExportCollectorService, never>;
|
|
103
110
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportExportCollectorService>;
|
|
104
111
|
}
|
|
@@ -5,14 +5,15 @@ import { ReportExportLinesInput } from '../interfaces/report-export-lines-input.
|
|
|
5
5
|
import { ReportFilterLineContext } from '../interfaces/report-filter-line-context.interface';
|
|
6
6
|
import { ReportFilterLineForm } from '../interfaces/report-filter-line-form.type';
|
|
7
7
|
import { ReportFilterMatch } from '../interfaces/report-filter-match.type';
|
|
8
|
-
import { ReportViewSummary } from '../interfaces/report-view-summary.interface';
|
|
9
8
|
import { FilterGroupValue, Report, ReportComponent, ReportFilterGroup, ReportFormatContext } from '../interfaces/report.interface';
|
|
10
9
|
export declare const MATCH_ANY_CHIP = "Match: any filter";
|
|
11
10
|
export declare const MATCH_ANY_LINE = "Filters in the report bar: match any";
|
|
12
11
|
export declare const MATCH_ALL_CHIP = "Match: all filters";
|
|
13
12
|
export declare function filterLineText(group: Pick<ReportFilterGroup, 'label' | 'level'>, value: FilterGroupValue | null | undefined, context: ReportFilterLineContext, form: ReportFilterLineForm): string | null;
|
|
13
|
+
export declare function filterChipValueText(value: FilterGroupValue | null | undefined, context: ReportFilterLineContext): string | null;
|
|
14
|
+
export declare function excludes(value: FilterGroupValue | null | undefined): boolean;
|
|
15
|
+
export declare function valuePicks(value: FilterGroupValue | null | undefined): unknown[];
|
|
14
16
|
export declare function matchLineText(match: ReportFilterMatch | null | undefined, form: ReportFilterLineForm): string | null;
|
|
15
17
|
export declare function drillLineText(component: Pick<ReportComponent, 'title'>, path: readonly ReportDrillStep[], formatContext: Pick<ReportFormatContext, 'locale'>): string;
|
|
16
|
-
export declare function viewLineText(view: Pick<ReportViewSummary, 'name' | 'shared'> | null | undefined, changed: boolean): string | null;
|
|
17
18
|
export declare function exportLines(input: ReportExportLinesInput): Observable<ReportExportLine[]>;
|
|
18
19
|
export declare function exportGroups(report: Report, pageId: number | null): ReportFilterGroup[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FilterGroupValue, ReportFilterGroup, ReportLocaleTag } from './interfaces/report.interface';
|
|
2
|
+
import { TextFilterField } from './text';
|
|
3
|
+
export declare function layerFilterGroups(groups: ReportFilterGroup[], pageId: number | null): ReportFilterGroup[];
|
|
4
|
+
export declare function layerFilterFields(fields: Record<number, TextFilterField>, groups: ReportFilterGroup[], pageId: number | null): Record<number, TextFilterField>;
|
|
5
|
+
export declare function filterFieldName(group: Pick<ReportFilterGroup, 'label' | 'name'>): string;
|
|
6
|
+
export declare function textFilterFields(groups: ReportFilterGroup[], value: (groupId: number) => FilterGroupValue | null | undefined, locale: ReportLocaleTag, names: (group: ReportFilterGroup, values: unknown[]) => readonly string[] | null | undefined): Record<number, TextFilterField>;
|
|
7
|
+
export declare function filterFieldText(group: Pick<ReportFilterGroup, 'type'>, value: FilterGroupValue | null | undefined, locale: ReportLocaleTag, names?: readonly string[]): string;
|
|
8
|
+
export declare function sameFilterFields(a: Record<number, TextFilterField> | undefined, b: Record<number, TextFilterField> | undefined): boolean;
|
package/app/reports/format.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare function formatDayWindow(meta: {
|
|
|
62
62
|
}, timezone: string, locale: ReportLocaleTag): string;
|
|
63
63
|
export declare function isReadOnOneDay(comparison: ComponentComparison | null | undefined): boolean;
|
|
64
64
|
export declare function formatReadingDay(window: Pick<ComparisonWindow, 'end'>, locale: ReportLocaleTag, lead?: boolean): string;
|
|
65
|
+
export declare function writeDayRange(first: Date, last: Date, locale: ReportLocaleTag, options: Intl.DateTimeFormatOptions): string;
|
|
65
66
|
export declare function localeName(tag: ReportLocaleTag): string;
|
|
66
67
|
export declare function currencyName(code: ReportCurrencyCode): string;
|
|
67
68
|
export declare function comparisonOffsetLabel(offset: ComparisonOffset): string;
|
|
@@ -10,8 +10,6 @@ export interface ReportChatViewerState {
|
|
|
10
10
|
selectedComponentId: number | null;
|
|
11
11
|
filters: ReportChatViewerFilter[];
|
|
12
12
|
match?: ReportFilterMatch;
|
|
13
|
-
viewId?: number | null;
|
|
14
|
-
viewChanged?: boolean;
|
|
15
13
|
crossFilters?: ReportChatViewerCrossFilter[];
|
|
16
14
|
drills?: ReportChatViewerDrill[];
|
|
17
15
|
detail?: ReportChatViewerDetail | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReportStateSnapshot } from './report-state-snapshot.interface';
|
|
2
2
|
import { ReportViewerFeature } from './report-viewer-feature.type';
|
|
3
3
|
import { ChartGranularity, ComponentDataState, FilterGroupValue, ReportFormatContext, ReportRelativeRange, ResolvedFilterValue } from './report.interface';
|
|
4
4
|
export interface ReportExportSnapshot {
|
|
5
|
-
|
|
5
|
+
state: ReportStateSnapshot;
|
|
6
6
|
values: Record<number, FilterGroupValue>;
|
|
7
7
|
presets: Record<number, ReportRelativeRange>;
|
|
8
8
|
filters: Record<number, ResolvedFilterValue[]>;
|
|
@@ -11,5 +11,4 @@ export interface ReportExportSnapshot {
|
|
|
11
11
|
frequency: ChartGranularity | null;
|
|
12
12
|
features: ReportViewerFeature[];
|
|
13
13
|
formatContext: ReportFormatContext;
|
|
14
|
-
viewLine: string | null;
|
|
15
14
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReportFilterMatch } from './report-filter-match.type';
|
|
2
2
|
import { ReportTileState } from './report-tile-state.interface';
|
|
3
3
|
import { ChartGranularity, FilterGroupDefault } from './report.interface';
|
|
4
|
-
export interface
|
|
5
|
-
v: number;
|
|
4
|
+
export interface ReportStateSnapshot {
|
|
6
5
|
pageId?: number;
|
|
7
6
|
groupBy?: ChartGranularity;
|
|
8
7
|
match?: ReportFilterMatch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ReportViewerFeature = 'excludeValues' | 'numberRange' | 'matchAny' | 'pageScope' | 'cascadingOptions' | 'scopeFilters' | '
|
|
1
|
+
export type ReportViewerFeature = 'excludeValues' | 'numberRange' | 'matchAny' | 'pageScope' | 'cascadingOptions' | 'scopeFilters' | 'drill' | 'crossFilter' | 'detail';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReportChatViewerDrill } from './interfaces/report-chat-viewer-drill.interface';
|
|
2
2
|
import { ReportChatViewerState } from './interfaces/report-chat-viewer-state.interface';
|
|
3
|
-
import {
|
|
3
|
+
import { ReportStateSnapshot } from './interfaces/report-state-snapshot.interface';
|
|
4
4
|
import { ReportLocaleTag } from './interfaces/report.interface';
|
|
5
5
|
export declare const CHAT_DRILLS_MAX = 10;
|
|
6
6
|
export declare const CHAT_LABEL_MAX = 100;
|
|
7
|
-
export declare function chatViewerMatch(snapshot:
|
|
8
|
-
export declare function chatViewerDrills(snapshot:
|
|
7
|
+
export declare function chatViewerMatch(snapshot: ReportStateSnapshot): Pick<ReportChatViewerState, 'match'>;
|
|
8
|
+
export declare function chatViewerDrills(snapshot: ReportStateSnapshot, locale: ReportLocaleTag): ReportChatViewerDrill[];
|
|
@@ -17,6 +17,15 @@ export declare function itemRangeName(name: string, end: ItemRangeEnd): string;
|
|
|
17
17
|
export declare function groupItemName(group: Pick<ReportFilterGroup, 'id'>): string;
|
|
18
18
|
export declare function loadGroupOptions(group: ReportFilterGroup, reportData: ReportData, reportId: number): Observable<ReportFilterOptionPair[]>;
|
|
19
19
|
export declare function resolveOptionValues(options$: Observable<ReportFilterOptionPair[]>, values: unknown[], label?: (value: unknown) => string | null): Observable<ReportFilterOptionPair[]>;
|
|
20
|
+
export type GroupOptionsReader = (group: ReportFilterGroup, reportId: number) => Observable<{
|
|
21
|
+
name: string;
|
|
22
|
+
value: unknown;
|
|
23
|
+
}[]>;
|
|
24
|
+
export declare function groupOptionsReader(reportData: ReportData): GroupOptionsReader;
|
|
25
|
+
export declare function pickedOptionNames(options$: Observable<{
|
|
26
|
+
name: string;
|
|
27
|
+
value: unknown;
|
|
28
|
+
}[]>, values: unknown[], label?: (value: unknown) => string | null): Observable<string[] | null>;
|
|
20
29
|
export declare function matchOptions(options$: Observable<ReportFilterOptionPair[]>, keyword?: string): Observable<ReportFilterOptionPair[]>;
|
|
21
30
|
export declare const OPTIONS_TRUNCATED_NOTE = "Showing the first 500. Type to narrow.";
|
|
22
31
|
export declare const OPTIONS_FAILED_NOTE = "Could not load the list.";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReportFilterGroup } from './interfaces/report.interface';
|
|
2
|
+
export declare function savedFilterGroups(groups: readonly ReportFilterGroup[] | null | undefined): ReportFilterGroup[];
|
|
3
|
+
export declare function savedFilterValues(filters: Record<string, unknown> | null | undefined, groups: readonly ReportFilterGroup[]): Record<string, unknown>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReportDrillStep } from './interfaces/report-drill-step.interface';
|
|
2
|
+
import { ReportStateSnapshot } from './interfaces/report-state-snapshot.interface';
|
|
3
|
+
import { ChartGranularity, FilterGroupDefault, FilterGroupValue, ReportFilterType, ReportRelativeRange } from './interfaces/report.interface';
|
|
4
|
+
export declare const DRILL_MAX_DEPTH = 5;
|
|
5
|
+
export declare const RELATIVE_RANGE_NAMES: ReportRelativeRange[];
|
|
6
|
+
export declare function isRelativeRange(name: unknown): name is ReportRelativeRange;
|
|
7
|
+
export declare function isChartGranularity(value: unknown): value is ChartGranularity;
|
|
8
|
+
export declare function isCalendarDay(text: string): boolean;
|
|
9
|
+
export declare function numberFromText(text: string): number | null;
|
|
10
|
+
export declare function toStoredGroupValue(type: ReportFilterType, value: FilterGroupValue | null | undefined): FilterGroupDefault | null;
|
|
11
|
+
export declare function stateDiffers(defaults: ReportStateSnapshot, current: ReportStateSnapshot): boolean;
|
|
12
|
+
export declare function sameStoredGroupValue(a: FilterGroupDefault | null | undefined, b: FilterGroupDefault | null | undefined): boolean;
|
|
13
|
+
export declare function cleanDrillPath(path: readonly unknown[] | null | undefined): ReportDrillStep[];
|
|
14
|
+
export declare function sameDrillPath(a: readonly ReportDrillStep[] | null | undefined, b: readonly ReportDrillStep[] | null | undefined): boolean;
|
|
15
|
+
export declare function finiteNumber(value: unknown): number | undefined;
|
|
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { ReportChatViewerFilter } from '../interfaces/report-chat-viewer-filter.interface';
|
|
3
3
|
import { ReportDrillStep } from '../interfaces/report-drill-step.interface';
|
|
4
4
|
import { ReportFilterMatch } from '../interfaces/report-filter-match.type';
|
|
5
|
-
import {
|
|
5
|
+
import { ReportStateSnapshot } from '../interfaces/report-state-snapshot.interface';
|
|
6
6
|
import { ChartGranularity, FilterGroupDefault, FilterGroupValue, Report, ReportComponent, ReportFilterGroup, ReportFormatContext, ReportRelativeRange, ReportSort, ResolvedFilterValue } from '../interfaces/report.interface';
|
|
7
7
|
import { ComponentDataState } from '../interfaces/report.interface';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -22,14 +22,12 @@ export declare class ReportFilterStateService {
|
|
|
22
22
|
readonly formatContext: import("@angular/core").WritableSignal<ReportFormatContext>;
|
|
23
23
|
readonly listHidden: import("@angular/core").WritableSignal<ReadonlyMap<number, readonly string[]>>;
|
|
24
24
|
readonly stateVersion: import("@angular/core").Signal<number>;
|
|
25
|
-
readonly appliedVersion: import("@angular/core").Signal<number>;
|
|
26
25
|
readonly listSortResets: import("@angular/core").Signal<ReadonlyMap<number, number>>;
|
|
27
26
|
readonly page: import("@angular/core").Signal<number>;
|
|
28
27
|
readonly match: import("@angular/core").Signal<ReportFilterMatch>;
|
|
29
28
|
readonly viewerFeatures: import("@angular/core").Signal<import("@firestitch/report").ReportViewerFeature[]>;
|
|
30
29
|
readonly report: import("@angular/core").Signal<Report>;
|
|
31
|
-
readonly
|
|
32
|
-
readonly viewChanged: import("@angular/core").Signal<boolean>;
|
|
30
|
+
readonly differsFromDefaults: import("@angular/core").Signal<boolean>;
|
|
33
31
|
private _values;
|
|
34
32
|
private _groups;
|
|
35
33
|
private _sessionDisabled;
|
|
@@ -45,14 +43,12 @@ export declare class ReportFilterStateService {
|
|
|
45
43
|
private _stateChanged$;
|
|
46
44
|
private _revision;
|
|
47
45
|
private _stateVersion;
|
|
48
|
-
private _appliedVersion;
|
|
49
46
|
private _listSortResets;
|
|
50
47
|
private _report;
|
|
51
48
|
private _pageId;
|
|
52
49
|
private _match;
|
|
53
50
|
private _drills;
|
|
54
51
|
private _drillChanged$;
|
|
55
|
-
private _baseConfig;
|
|
56
52
|
private _temporary;
|
|
57
53
|
init(report: Report): void;
|
|
58
54
|
value(groupId: number): FilterGroupValue | undefined;
|
|
@@ -86,14 +82,11 @@ export declare class ReportFilterStateService {
|
|
|
86
82
|
setDrill(componentId: number, path: readonly ReportDrillStep[]): void;
|
|
87
83
|
drillChanges(componentId: number): Observable<void>;
|
|
88
84
|
adoptDrill(componentId: number, path: readonly ReportDrillStep[]): boolean;
|
|
89
|
-
snapshot():
|
|
90
|
-
authoredConfig():
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
clearBase(): void;
|
|
95
|
-
resetGroupsToBase(groupIds: readonly number[]): void;
|
|
96
|
-
groupsDifferFromBase(groupIds: readonly number[]): boolean;
|
|
85
|
+
snapshot(): ReportStateSnapshot;
|
|
86
|
+
authoredConfig(): ReportStateSnapshot;
|
|
87
|
+
resetToDefaults(): void;
|
|
88
|
+
resetGroupsToDefaults(groupIds: readonly number[]): void;
|
|
89
|
+
groupsDifferFromDefaults(groupIds: readonly number[]): boolean;
|
|
97
90
|
tileState(component: ReportComponent): ComponentDataState;
|
|
98
91
|
livePreset(groupId: number): ReportRelativeRange | null;
|
|
99
92
|
private _resolvedFields;
|
|
@@ -108,22 +101,13 @@ export declare class ReportFilterStateService {
|
|
|
108
101
|
private _relativeRange;
|
|
109
102
|
private _snapshotGroups;
|
|
110
103
|
private _snapshotTiles;
|
|
111
|
-
private _setBase;
|
|
112
|
-
private _applyLayer;
|
|
113
|
-
private _applyGroups;
|
|
114
|
-
private _applyGroup;
|
|
115
104
|
private _seedAuthored;
|
|
116
105
|
private _clearTiles;
|
|
117
|
-
private _applyTile;
|
|
118
|
-
private _applyListTile;
|
|
119
106
|
private _setDrillPath;
|
|
120
|
-
private
|
|
121
|
-
private _notifyApplied;
|
|
107
|
+
private _notifyReset;
|
|
122
108
|
private _tiles;
|
|
123
109
|
private _isChart;
|
|
124
|
-
private
|
|
125
|
-
private _pruneBase;
|
|
126
|
-
private _baseTile;
|
|
110
|
+
private _prunePageState;
|
|
127
111
|
private _resolveExcludeAndRange;
|
|
128
112
|
private _excludeOrRangeDefault;
|
|
129
113
|
private _countSortResets;
|
package/app/reports/text.d.ts
CHANGED
|
@@ -14,14 +14,22 @@ export interface TextValue {
|
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
reads?: string[];
|
|
16
16
|
}
|
|
17
|
+
export interface TextFilterField {
|
|
18
|
+
name: string;
|
|
19
|
+
order: number;
|
|
20
|
+
text?: string;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
}
|
|
17
23
|
export interface TextTokenContext {
|
|
18
24
|
pageNumber: number;
|
|
19
25
|
pageName: string;
|
|
20
26
|
reportName: string;
|
|
21
27
|
values?: Record<string, TextValue>;
|
|
28
|
+
filters?: Record<number, TextFilterField>;
|
|
22
29
|
valuePageId?: number | null;
|
|
23
30
|
}
|
|
24
31
|
export declare const VALUE_TOKEN_PATTERN: RegExp;
|
|
32
|
+
export declare const FIELD_TOKEN_PATTERN: RegExp;
|
|
25
33
|
export declare const VALUE_EMPTY_TEXT = "\u2014";
|
|
26
34
|
export declare const VALUE_LOADING_TEXT = "\u2026";
|
|
27
35
|
export declare function valueToken(key: string): string;
|
|
@@ -69,7 +77,15 @@ export type TextBlock = {
|
|
|
69
77
|
kind: 'table';
|
|
70
78
|
table: TextTable;
|
|
71
79
|
};
|
|
80
|
+
export interface TextField {
|
|
81
|
+
field: string;
|
|
82
|
+
name: string;
|
|
83
|
+
}
|
|
84
|
+
export declare function textFields(context: TextTokenContext): TextField[];
|
|
85
|
+
export declare function fieldToken(field: string): string;
|
|
72
86
|
export declare function fillTextTokens(html: string, context: TextTokenContext): string;
|
|
87
|
+
export declare function fillTitleTokens(title: string | null | undefined, context: TextTokenContext): string;
|
|
88
|
+
export declare function fieldText(field: string, context: TextTokenContext): string;
|
|
73
89
|
export declare function textBlocks(html: string, context: TextTokenContext): TextBlock[];
|
|
74
90
|
export declare function textParagraphs(html: string, context: TextTokenContext): TextParagraph[];
|
|
75
91
|
export declare function blockParagraphs(blocks: TextBlock[]): TextParagraph[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReportStateSnapshot } from './interfaces/report-state-snapshot.interface';
|
|
2
2
|
import { ComponentDataState, Report, ReportComponent } from './interfaces/report.interface';
|
|
3
3
|
export declare function isTimeSeriesChart(component: ReportComponent): boolean;
|
|
4
|
-
export declare function tileDataState(report: Report | null, component: ReportComponent, snapshot:
|
|
5
|
-
export declare function zipExportStates(report: Report, snapshot:
|
|
6
|
-
export declare function valuesMatchAnyGroupIds(report: Report | null, layerId: number | null, snapshot:
|
|
7
|
-
export declare function tilePageId(report: Report, component: ReportComponent, snapshot:
|
|
4
|
+
export declare function tileDataState(report: Report | null, component: ReportComponent, snapshot: ReportStateSnapshot): ComponentDataState;
|
|
5
|
+
export declare function zipExportStates(report: Report, snapshot: ReportStateSnapshot, pageId?: number | null): Record<number, ComponentDataState>;
|
|
6
|
+
export declare function valuesMatchAnyGroupIds(report: Report | null, layerId: number | null, snapshot: ReportStateSnapshot): number[];
|
|
7
|
+
export declare function tilePageId(report: Report, component: ReportComponent, snapshot: ReportStateSnapshot): number | null;
|