@onecx/angular-accelerator 7.6.0 → 8.0.0-rc.10

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/index.d.ts DELETED
@@ -1,2442 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, TemplateRef, EventEmitter, DoCheck, OnDestroy, AfterViewInit, SimpleChanges, Renderer2, AfterContentInit, QueryList, Type, ElementRef, ViewContainerRef, ComponentRef, PipeTransform } from '@angular/core';
3
- import * as i19 from 'primeng/tooltip';
4
- import { Tooltip } from 'primeng/tooltip';
5
- import { BehaviorSubject, Observable, ReplaySubject, Subscription } from 'rxjs';
6
- import * as i21 from 'primeng/api';
7
- import { PrimeIcons, SelectItem, MenuItem, PrimeTemplate } from 'primeng/api';
8
- import { MfeInfo, EventsTopic } from '@onecx/integration-interface';
9
- import * as i11 from 'primeng/menu';
10
- import { Menu } from 'primeng/menu';
11
- import * as i38 from '@ngx-translate/core';
12
- import { TranslateService, TranslatePipe } from '@ngx-translate/core';
13
- import * as i13 from 'primeng/multiselect';
14
- import { MultiSelectItem } from 'primeng/multiselect';
15
- import * as i4 from 'primeng/select';
16
- import { SelectChangeEvent } from 'primeng/select';
17
- import { ChartOptions, ChartData } from 'chart.js';
18
- import * as i17 from 'primeng/popover';
19
- import { Popover } from 'primeng/popover';
20
- import * as i5 from 'primeng/button';
21
- import { Button } from 'primeng/button';
22
- import * as i40 from '@angular/router';
23
- import { QueryParamsHandling } from '@angular/router';
24
- import * as i39 from '@angular/forms';
25
- import { FormGroup, FormControlName, ValidatorFn } from '@angular/forms';
26
- import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
27
- import { MultiLanguageMissingTranslationHandler } from '@onecx/angular-utils';
28
- import * as i35 from '@angular/common';
29
- import * as i1 from 'primeng/breadcrumb';
30
- import * as i2 from 'primeng/chip';
31
- import * as i3 from 'primeng/checkbox';
32
- import * as i6 from 'primeng/dialog';
33
- import * as i7 from 'primeng/picklist';
34
- import * as i8 from 'primeng/selectbutton';
35
- import * as i9 from 'primeng/dataview';
36
- import * as i10 from 'primeng/table';
37
- import * as i12 from 'primeng/chart';
38
- import * as i14 from 'primeng/skeleton';
39
- import * as i15 from 'primeng/message';
40
- import * as i16 from 'primeng/floatlabel';
41
- import * as i18 from 'primeng/focustrap';
42
- import * as i20 from 'primeng/timeline';
43
- import * as i37 from '@onecx/angular-remote-components';
44
- import { DatePicker } from 'primeng/datepicker';
45
-
46
- declare class OcxContentContainerDirective implements OnInit, OnChanges {
47
- private el;
48
- /**
49
- * Used for passing the direction, in which the content inside the container should be rendered.
50
- * Default: horizontal
51
- * @example [ocxContentContainer]="horizontal"
52
- * @example [ocxContentContainer]="vertical"
53
- */
54
- layout: 'horizontal' | 'vertical';
55
- /**
56
- * Used for passing in the breakpoint below which a horizontal layout should switch to a vertical layout.
57
- * Only necessary if horizontal layout is used
58
- * Default: md
59
- */
60
- breakpoint: 'sm' | 'md' | 'lg' | 'xl';
61
- ngOnInit(): void;
62
- ngOnChanges(): void;
63
- private addContainerStyles;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentContainerDirective, never>;
65
- static ɵdir: i0.ɵɵDirectiveDeclaration<OcxContentContainerDirective, "[ocxContentContainer]", never, { "layout": { "alias": "layout"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, {}, never, never, false, never>;
66
- }
67
-
68
- declare class OcxContentDirective implements OnInit, OnChanges {
69
- private el;
70
- /**
71
- * Used for passing a title text which should be rendered in the upper left corner of the content area.
72
- * @example [ocxContent]="My Cool Title"
73
- */
74
- ocxContent: string;
75
- private baseId;
76
- private titleElementId;
77
- ngOnInit(): void;
78
- ngOnChanges(): void;
79
- private init;
80
- private addContentStyles;
81
- private prependTitle;
82
- private getUniqueTitleID;
83
- private removeTitle;
84
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentDirective, never>;
85
- static ɵdir: i0.ɵɵDirectiveDeclaration<OcxContentDirective, "[ocxContent]", never, { "ocxContent": { "alias": "ocxContent"; "required": false; }; }, {}, never, never, false, never>;
86
- }
87
-
88
- declare class IfPermissionDirective implements OnInit {
89
- private renderer;
90
- private el;
91
- private viewContainer;
92
- private hasPermissionChecker;
93
- private templateRef;
94
- private userService;
95
- set permission(value: string | string[] | undefined);
96
- set notPermission(value: string | string[] | undefined);
97
- ocxIfPermissionOnMissingPermission: 'hide' | 'disable';
98
- set ocxIfNotPermissionOnMissingPermission(value: 'hide' | 'disable');
99
- onMissingPermission: 'hide' | 'disable';
100
- ocxIfPermissionPermissions: string[] | undefined;
101
- set ocxIfNotPermissionPermissions(value: string[] | undefined);
102
- ocxIfPermissionElseTemplate: TemplateRef<any> | undefined;
103
- set ocxIfNotPermissionElseTemplate(value: TemplateRef<any> | undefined);
104
- private permissionChecker;
105
- private permissionSubject$;
106
- private isDisabled;
107
- private directiveContentRef;
108
- negate: boolean;
109
- constructor();
110
- ngOnInit(): void;
111
- private hasPermission;
112
- private showTemplateOrClear;
113
- private showElseTemplateOrDefaultView;
114
- private resetView;
115
- private getElement;
116
- static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective, never>;
117
- static ɵdir: i0.ɵɵDirectiveDeclaration<IfPermissionDirective, "[ocxIfPermission], [ocxIfNotPermission]", never, { "permission": { "alias": "ocxIfPermission"; "required": false; }; "notPermission": { "alias": "ocxIfNotPermission"; "required": false; }; "ocxIfPermissionOnMissingPermission": { "alias": "ocxIfPermissionOnMissingPermission"; "required": false; }; "ocxIfNotPermissionOnMissingPermission": { "alias": "ocxIfNotPermissionOnMissingPermission"; "required": false; }; "onMissingPermission": { "alias": "onMissingPermission"; "required": false; }; "ocxIfPermissionPermissions": { "alias": "ocxIfPermissionPermissions"; "required": false; }; "ocxIfNotPermissionPermissions": { "alias": "ocxIfNotPermissionPermissions"; "required": false; }; "ocxIfPermissionElseTemplate": { "alias": "ocxIfPermissionElseTemplate"; "required": false; }; "ocxIfNotPermissionElseTemplate": { "alias": "ocxIfNotPermissionElseTemplate"; "required": false; }; }, {}, never, never, false, never>;
118
- }
119
-
120
- declare class IfBreakpointDirective implements OnInit {
121
- private viewContainer;
122
- private templateRef;
123
- breakpoint: 'mobile' | 'desktop' | undefined;
124
- ocxIfBreakpointElseTemplate: TemplateRef<any> | undefined;
125
- state: 'mobile' | 'desktop' | undefined;
126
- ngOnInit(): void;
127
- onResize(): void;
128
- static ɵfac: i0.ɵɵFactoryDeclaration<IfBreakpointDirective, never>;
129
- static ɵdir: i0.ɵɵDirectiveDeclaration<IfBreakpointDirective, "[ocxIfBreakpoint]", never, { "breakpoint": { "alias": "ocxIfBreakpoint"; "required": false; }; "ocxIfBreakpointElseTemplate": { "alias": "ocxIfBreakpointElseTemplate"; "required": false; }; }, {}, never, never, false, never>;
130
- }
131
-
132
- declare class SrcDirective {
133
- private el;
134
- private httpClient;
135
- private _src;
136
- error: EventEmitter<void>;
137
- get ocxSrc(): string | undefined;
138
- set ocxSrc(value: string | undefined);
139
- constructor();
140
- static ɵfac: i0.ɵɵFactoryDeclaration<SrcDirective, never>;
141
- static ɵdir: i0.ɵɵDirectiveDeclaration<SrcDirective, "[ocxSrc]", never, { "ocxSrc": { "alias": "ocxSrc"; "required": false; }; }, { "error": "error"; }, never, never, false, never>;
142
- }
143
-
144
- declare class AdvancedDirective implements DoCheck {
145
- private viewContainer;
146
- private templateRef;
147
- private searchHeader;
148
- constructor();
149
- ngDoCheck(): void;
150
- static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedDirective, never>;
151
- static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedDirective, "[ocxAdvanced]", never, {}, {}, never, never, false, never>;
152
- }
153
-
154
- declare class TooltipOnOverflowDirective extends Tooltip implements OnDestroy, AfterViewInit {
155
- mutationObserver: MutationObserver;
156
- get ocxTooltipOnOverflow(): string | TemplateRef<HTMLElement> | undefined;
157
- set ocxTooltipOnOverflow(value: string | TemplateRef<HTMLElement> | undefined);
158
- ngOnDestroy(): void;
159
- ngAfterViewInit(): void;
160
- constructor();
161
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipOnOverflowDirective, never>;
162
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipOnOverflowDirective, "[ocxTooltipOnOverflow]", never, { "ocxTooltipOnOverflow": { "alias": "ocxTooltipOnOverflow"; "required": false; }; }, {}, never, never, false, never>;
163
- }
164
-
165
- declare class TemplateDirective {
166
- template: TemplateRef<any>;
167
- name: string;
168
- getType(): string;
169
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
170
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[ocxTemplate]", never, { "name": { "alias": "ocxTemplate"; "required": true; }; }, {}, never, never, false, never>;
171
- }
172
-
173
- declare class BasicDirective implements DoCheck {
174
- private viewContainer;
175
- private templateRef;
176
- private searchHeader;
177
- constructor();
178
- ngDoCheck(): void;
179
- static ɵfac: i0.ɵɵFactoryDeclaration<BasicDirective, never>;
180
- static ɵdir: i0.ɵɵDirectiveDeclaration<BasicDirective, "[ocxBasic]", never, {}, {}, never, never, false, never>;
181
- }
182
-
183
- declare class LoadingIndicatorDirective implements OnChanges {
184
- private viewContainerRef;
185
- private el;
186
- private renderer;
187
- ocxLoadingIndicator: boolean;
188
- overlayFullPage: boolean;
189
- isLoaderSmall?: boolean | undefined;
190
- private componentRef;
191
- private loaderElement;
192
- ngOnChanges(changes: SimpleChanges): void;
193
- private elementLoader;
194
- private toggleLoadingIndicator;
195
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorDirective, never>;
196
- static ɵdir: i0.ɵɵDirectiveDeclaration<LoadingIndicatorDirective, "[ocxLoadingIndicator]", never, { "ocxLoadingIndicator": { "alias": "ocxLoadingIndicator"; "required": false; }; "overlayFullPage": { "alias": "overlayFullPage"; "required": false; }; "isLoaderSmall": { "alias": "isLoaderSmall"; "required": false; }; }, {}, never, never, false, never>;
197
- }
198
-
199
- declare class OcxTooltipDirective extends Tooltip implements AfterViewInit, OnChanges {
200
- readonly renderer: Renderer2;
201
- get ocxTooltip(): string | TemplateRef<HTMLElement> | undefined;
202
- set ocxTooltip(value: string | TemplateRef<HTMLElement> | undefined);
203
- private generatedId;
204
- private resolvedId;
205
- private removeEscapeKeyListener;
206
- constructor();
207
- ngAfterViewInit(): void;
208
- ngOnChanges(simpleChange: SimpleChanges): void;
209
- create(): void;
210
- show(): void;
211
- private ensureIdAndAriaDescribedBy;
212
- private normalizeId;
213
- private applyIdToContainer;
214
- private isTooltipCreated;
215
- private getOrCreateGeneratedId;
216
- private getRandomPart;
217
- private setEscapeKeyListener;
218
- ngOnDestroy(): void;
219
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxTooltipDirective, never>;
220
- static ɵdir: i0.ɵɵDirectiveDeclaration<OcxTooltipDirective, "[ocxTooltip]", never, { "ocxTooltip": { "alias": "ocxTooltip"; "required": false; }; }, {}, never, never, true, never>;
221
- }
222
-
223
- declare enum ColumnType {
224
- STRING = "STRING",
225
- NUMBER = "NUMBER",
226
- DATE = "DATE",
227
- RELATIVE_DATE = "RELATIVE_DATE",
228
- TRANSLATION_KEY = "TRANSLATION_KEY"
229
- }
230
-
231
- interface ColumnFilterDataSelectOptions {
232
- reverse: boolean;
233
- }
234
- type FilterObject = {
235
- columnId: string;
236
- filterType?: FilterType;
237
- };
238
- type Filter$1 = FilterObject & {
239
- value: unknown;
240
- };
241
- declare enum FilterType {
242
- ENDS_WITH = "endsWith",
243
- STARTS_WITH = "startsWith",
244
- CONTAINS = "contains",
245
- NOT_CONTAINS = "notContains",
246
- EQUALS = "equals",
247
- NOT_EQUALS = "notEquals",
248
- LESS_THAN = "lessThan",
249
- GREATER_THAN = "greaterThan",
250
- LESS_THAN_OR_EQUAL = "lessThanOrEqual",
251
- GREATER_THAN_OR_EQUAL = "greaterThanOrEqual",
252
- IS_EMPTY = "isEmpty",
253
- IS_NOT_EMPTY = "isNotEmpty"
254
- }
255
-
256
- interface DataTableColumn {
257
- columnType: ColumnType;
258
- nameKey: string;
259
- id: string;
260
- sortable?: boolean;
261
- filterable?: boolean;
262
- filterType?: FilterType;
263
- predefinedGroupKeys?: string[];
264
- dateFormat?: string;
265
- }
266
-
267
- type GroupSelectionChangedEvent = {
268
- activeColumns: DataTableColumn[];
269
- groupKey: string;
270
- };
271
- interface ColumnGroupSelectionComponentState {
272
- activeColumnGroupKey?: string;
273
- displayedColumns?: DataTableColumn[];
274
- }
275
- declare class ColumnGroupSelectionComponent implements OnInit {
276
- selectedGroupKey$: BehaviorSubject<string>;
277
- get selectedGroupKey(): string;
278
- set selectedGroupKey(value: string);
279
- columns$: BehaviorSubject<DataTableColumn[]>;
280
- get columns(): DataTableColumn[];
281
- set columns(value: DataTableColumn[]);
282
- placeholderKey: string;
283
- defaultGroupKey: string;
284
- customGroupKey: string;
285
- groupSelectionChanged: EventEmitter<GroupSelectionChangedEvent>;
286
- componentStateChanged: EventEmitter<ColumnGroupSelectionComponentState>;
287
- allGroupKeys$: Observable<string[]> | undefined;
288
- ngOnInit(): void;
289
- changeGroupSelection(event: {
290
- value: string;
291
- }): void;
292
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnGroupSelectionComponent, never>;
293
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnGroupSelectionComponent, "ocx-column-group-selection", never, { "selectedGroupKey": { "alias": "selectedGroupKey"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "placeholderKey": { "alias": "placeholderKey"; "required": false; }; "defaultGroupKey": { "alias": "defaultGroupKey"; "required": false; }; "customGroupKey": { "alias": "customGroupKey"; "required": false; }; }, { "groupSelectionChanged": "groupSelectionChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
294
- }
295
-
296
- declare class OcxContentComponent {
297
- /**
298
- * Optionally allows specifying a title for the content card
299
- */
300
- title: string;
301
- /**
302
- * Optionally allows specifying styles for the content card
303
- */
304
- styleClass: string | undefined;
305
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentComponent, never>;
306
- static ɵcmp: i0.ɵɵComponentDeclaration<OcxContentComponent, "ocx-content", never, { "title": { "alias": "title"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, {}, never, ["*"], false, never>;
307
- }
308
-
309
- declare class OcxContentContainerComponent {
310
- /**
311
- * Allows specifying the layout direction of the container
312
- */
313
- layout: 'vertical' | 'horizontal';
314
- /**
315
- * Allows specifying the breakpoint below which a horizontal layout switches to a vertical layout.
316
- * Only necessary if horizontal layout is used
317
- * Default: md
318
- */
319
- breakpoint: 'sm' | 'md' | 'lg' | 'xl';
320
- /**
321
- * Optionally allows specifying styles for the container
322
- */
323
- styleClass: string | undefined;
324
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentContainerComponent, never>;
325
- static ɵcmp: i0.ɵɵComponentDeclaration<OcxContentContainerComponent, "ocx-content-container", never, { "layout": { "alias": "layout"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, {}, never, ["*"], false, never>;
326
- }
327
-
328
- type ColumnSelectionChangedEvent = {
329
- activeColumns: DataTableColumn[];
330
- };
331
- type ActionColumnChangedEvent = {
332
- frozenActionColumn: boolean;
333
- actionColumnPosition: 'left' | 'right';
334
- };
335
- interface CustomGroupColumnSelectorComponentState {
336
- actionColumnConfig?: {
337
- frozen: boolean;
338
- position: 'left' | 'right';
339
- };
340
- displayedColumns?: DataTableColumn[];
341
- activeColumnGroupKey?: string;
342
- }
343
- declare class CustomGroupColumnSelectorComponent implements OnInit {
344
- private translate;
345
- columns: DataTableColumn[];
346
- private _displayedColumns;
347
- get displayedColumns(): DataTableColumn[];
348
- set displayedColumns(value: DataTableColumn[]);
349
- customGroupKey: string;
350
- dialogTitle: string;
351
- dialogTitleKey: string;
352
- openButtonTitle: string;
353
- openButtonTitleKey: string;
354
- openButtonAriaLabel: string;
355
- openButtonAriaLabelKey: string;
356
- saveButtonLabel: string;
357
- saveButtonLabelKey: string;
358
- saveButtonAriaLabel: string;
359
- saveButtonAriaLabelKey: string;
360
- cancelButtonLabel: string;
361
- cancelButtonLabelKey: string;
362
- cancelButtonAriaLabel: string;
363
- cancelButtonAriaLabelKey: string;
364
- activeColumnsLabel: string;
365
- activeColumnsLabelKey: string;
366
- inactiveColumnsLabel: string;
367
- inactiveColumnsLabelKey: string;
368
- frozenActionColumn: boolean;
369
- actionColumnPosition: 'left' | 'right';
370
- columnSelectionChanged: EventEmitter<ColumnSelectionChangedEvent>;
371
- actionColumnConfigChanged: EventEmitter<ActionColumnChangedEvent>;
372
- componentStateChanged: EventEmitter<CustomGroupColumnSelectorComponentState>;
373
- hiddenColumnsModel: DataTableColumn[];
374
- displayedColumnsModel: DataTableColumn[];
375
- frozenActionColumnModel: boolean;
376
- actionColumnPositionModel: 'left' | 'right';
377
- visible: boolean;
378
- alignmentOptions: {
379
- label: string;
380
- value: string;
381
- }[];
382
- frozenOptions: {
383
- label: string;
384
- value: boolean;
385
- }[];
386
- ngOnInit(): void;
387
- onOpenCustomGroupColumnSelectionDialogClick(): void;
388
- onSaveClick(): void;
389
- onCancelClick(): void;
390
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomGroupColumnSelectorComponent, never>;
391
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomGroupColumnSelectorComponent, "ocx-custom-group-column-selector", never, { "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "customGroupKey": { "alias": "customGroupKey"; "required": false; }; "dialogTitle": { "alias": "dialogTitle"; "required": false; }; "dialogTitleKey": { "alias": "dialogTitleKey"; "required": false; }; "openButtonTitle": { "alias": "openButtonTitle"; "required": false; }; "openButtonTitleKey": { "alias": "openButtonTitleKey"; "required": false; }; "openButtonAriaLabel": { "alias": "openButtonAriaLabel"; "required": false; }; "openButtonAriaLabelKey": { "alias": "openButtonAriaLabelKey"; "required": false; }; "saveButtonLabel": { "alias": "saveButtonLabel"; "required": false; }; "saveButtonLabelKey": { "alias": "saveButtonLabelKey"; "required": false; }; "saveButtonAriaLabel": { "alias": "saveButtonAriaLabel"; "required": false; }; "saveButtonAriaLabelKey": { "alias": "saveButtonAriaLabelKey"; "required": false; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; }; "cancelButtonLabelKey": { "alias": "cancelButtonLabelKey"; "required": false; }; "cancelButtonAriaLabel": { "alias": "cancelButtonAriaLabel"; "required": false; }; "cancelButtonAriaLabelKey": { "alias": "cancelButtonAriaLabelKey"; "required": false; }; "activeColumnsLabel": { "alias": "activeColumnsLabel"; "required": false; }; "activeColumnsLabelKey": { "alias": "activeColumnsLabelKey"; "required": false; }; "inactiveColumnsLabel": { "alias": "inactiveColumnsLabel"; "required": false; }; "inactiveColumnsLabelKey": { "alias": "inactiveColumnsLabelKey"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; }, { "columnSelectionChanged": "columnSelectionChanged"; "actionColumnConfigChanged": "actionColumnConfigChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
392
- }
393
-
394
- /**
395
- * @example let myIcon : PrimeIcon = PrimeIcons.myIcon
396
- */
397
- type PrimeIcon = (typeof PrimeIcons)[keyof Omit<typeof PrimeIcons, 'prototype'>];
398
-
399
- interface ViewingLayouts {
400
- id: string;
401
- icon: PrimeIcon;
402
- layout: 'grid' | 'list' | 'table';
403
- tooltip?: string;
404
- tooltipKey: string;
405
- label?: string;
406
- labelKey: string;
407
- }
408
- interface DataLayoutSelectionComponentState {
409
- layout?: 'grid' | 'list' | 'table';
410
- }
411
- declare class DataLayoutSelectionComponent implements OnInit {
412
- supportedViewLayouts: Array<string>;
413
- set layout(value: 'grid' | 'list' | 'table');
414
- get layout(): 'grid' | 'list' | 'table';
415
- dataViewLayoutChange: EventEmitter<'grid' | 'list' | 'table'>;
416
- componentStateChanged: EventEmitter<DataLayoutSelectionComponentState>;
417
- viewingLayouts: ViewingLayouts[];
418
- selectedViewLayout: ViewingLayouts | undefined;
419
- ngOnInit(): void;
420
- onDataViewLayoutChange(event: {
421
- icon: PrimeIcon;
422
- layout: 'grid' | 'list' | 'table';
423
- }): void;
424
- static ɵfac: i0.ɵɵFactoryDeclaration<DataLayoutSelectionComponent, never>;
425
- static ɵcmp: i0.ɵɵComponentDeclaration<DataLayoutSelectionComponent, "ocx-data-layout-selection", never, { "supportedViewLayouts": { "alias": "supportedViewLayouts"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "dataViewLayoutChange": "dataViewLayoutChange"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
426
- }
427
-
428
- interface DataAction {
429
- id?: string;
430
- labelKey?: string;
431
- icon?: string;
432
- permission: string | string[];
433
- classes?: string[];
434
- disabled?: boolean;
435
- actionVisibleField?: string;
436
- actionEnabledField?: string;
437
- showAsOverflow?: boolean;
438
- callback: (data: any) => void;
439
- }
440
-
441
- declare const enum DataSortDirection {
442
- ASCENDING = "ASCENDING",
443
- DESCENDING = "DESCENDING",
444
- NONE = "NONE"
445
- }
446
-
447
- type Primitive = number | string | boolean | bigint | Date;
448
- type Row = {
449
- id: string | number;
450
- [columnId: string]: unknown;
451
- };
452
- declare enum TemplateType {
453
- CELL = "CELL",
454
- FILTERCELL = "FILTERCELL"
455
- }
456
- interface TemplatesData {
457
- templatesObservables: Record<string, Observable<TemplateRef<any> | null>>;
458
- idSuffix: Array<string>;
459
- templateNames: Record<ColumnType, Array<string>>;
460
- }
461
- type Sort = {
462
- sortColumn: string;
463
- sortDirection: DataSortDirection;
464
- };
465
- interface DataTableComponentState {
466
- filters?: Filter$1[];
467
- sorting?: Sort;
468
- selectedRows?: Row[];
469
- expandedRows?: Row[];
470
- activePage?: number;
471
- pageSize?: number;
472
- }
473
- declare class DataTableComponent extends DataSortBase implements OnInit, AfterContentInit {
474
- private readonly router;
475
- private readonly injector;
476
- private readonly userService;
477
- private readonly hasPermissionChecker;
478
- private readonly liveAnnouncer;
479
- FilterType: typeof FilterType;
480
- TemplateType: typeof TemplateType;
481
- checked: boolean;
482
- _rows$: BehaviorSubject<Row[]>;
483
- get rows(): Row[];
484
- set rows(value: Row[]);
485
- _selectionIds$: BehaviorSubject<(string | number)[]>;
486
- set selectedRows(value: Row[] | string[] | number[]);
487
- _filters$: BehaviorSubject<Filter$1[]>;
488
- get filters(): Filter$1[];
489
- set filters(value: Filter$1[]);
490
- _sortDirection$: BehaviorSubject<DataSortDirection>;
491
- get sortDirection(): DataSortDirection;
492
- set sortDirection(value: DataSortDirection);
493
- _sortColumn$: BehaviorSubject<string>;
494
- get sortColumn(): string;
495
- set sortColumn(value: string);
496
- columnTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
497
- columnFilterTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
498
- _columns$: BehaviorSubject<DataTableColumn[]>;
499
- get columns(): DataTableColumn[];
500
- set columns(value: DataTableColumn[]);
501
- clientSideFiltering: boolean;
502
- clientSideSorting: boolean;
503
- sortStates: DataSortDirection[];
504
- _pageSizes$: BehaviorSubject<number[]>;
505
- get pageSizes(): number[];
506
- set pageSizes(value: number[]);
507
- displayedPageSize$: Observable<number>;
508
- _pageSize$: BehaviorSubject<number | undefined>;
509
- get pageSize(): number | undefined;
510
- set pageSize(value: number | undefined);
511
- emptyResultsMessage: string | undefined;
512
- name: string;
513
- deletePermission: string | string[] | undefined;
514
- viewPermission: string | string[] | undefined;
515
- editPermission: string | string[] | undefined;
516
- deleteActionVisibleField: string | undefined;
517
- deleteActionEnabledField: string | undefined;
518
- viewActionVisibleField: string | undefined;
519
- viewActionEnabledField: string | undefined;
520
- editActionVisibleField: string | undefined;
521
- editActionEnabledField: string | undefined;
522
- selectionEnabledField: string | undefined;
523
- allowSelectAll: boolean;
524
- paginator: boolean;
525
- _page$: BehaviorSubject<number>;
526
- get page(): number;
527
- set page(value: number);
528
- tableStyle: {
529
- [klass: string]: any;
530
- } | undefined;
531
- totalRecordsOnServer: i0.InputSignal<number | undefined>;
532
- currentPageShowingKey: string;
533
- currentPageShowingWithTotalOnServerKey: string;
534
- params: i0.Signal<{
535
- currentPage: string;
536
- totalPages: string;
537
- rows: string;
538
- first: string;
539
- last: string;
540
- totalRecords: string;
541
- totalRecordsOnServer: number | undefined;
542
- }>;
543
- stringCellTemplate: TemplateRef<any> | undefined;
544
- stringCellChildTemplate: TemplateRef<any> | undefined;
545
- get _stringCell(): TemplateRef<any> | undefined;
546
- numberCellTemplate: TemplateRef<any> | undefined;
547
- numberCellChildTemplate: TemplateRef<any> | undefined;
548
- get _numberCell(): TemplateRef<any> | undefined;
549
- dateCellTemplate: TemplateRef<any> | undefined;
550
- dateCellChildTemplate: TemplateRef<any> | undefined;
551
- get _dateCell(): TemplateRef<any> | undefined;
552
- relativeDateCellTemplate: TemplateRef<any> | undefined;
553
- relativeDateCellChildTemplate: TemplateRef<any> | undefined;
554
- get _relativeDateCell(): TemplateRef<any> | undefined;
555
- cellTemplate: TemplateRef<any> | undefined;
556
- cellChildTemplate: TemplateRef<any> | undefined;
557
- get _cell(): TemplateRef<any> | undefined;
558
- translationKeyCellTemplate: TemplateRef<any> | undefined;
559
- translationKeyCellChildTemplate: TemplateRef<any> | undefined;
560
- get _translationKeyCell(): TemplateRef<any> | undefined;
561
- stringFilterCellTemplate: TemplateRef<any> | undefined;
562
- stringFilterCellChildTemplate: TemplateRef<any> | undefined;
563
- get _stringFilterCell(): TemplateRef<any> | undefined;
564
- numberFilterCellTemplate: TemplateRef<any> | undefined;
565
- numberFilterCellChildTemplate: TemplateRef<any> | undefined;
566
- get _numberFilterCell(): TemplateRef<any> | undefined;
567
- dateFilterCellTemplate: TemplateRef<any> | undefined;
568
- dateFilterCellChildTemplate: TemplateRef<any> | undefined;
569
- get _dateFilterCell(): TemplateRef<any> | undefined;
570
- relativeDateFilterCellTemplate: TemplateRef<any> | undefined;
571
- relativeDateFilterCellChildTemplate: TemplateRef<any> | undefined;
572
- get _relativeDateFilterCell(): TemplateRef<any> | undefined;
573
- filterCellTemplate: TemplateRef<any> | undefined;
574
- filterCellChildTemplate: TemplateRef<any> | undefined;
575
- get _filterCell(): TemplateRef<any> | undefined;
576
- translationKeyFilterCellTemplate: TemplateRef<any> | undefined;
577
- translationKeyFilterCellChildTemplate: TemplateRef<any> | undefined;
578
- get _translationKeyFilterCell(): TemplateRef<any> | undefined;
579
- _additionalActions$: BehaviorSubject<DataAction[]>;
580
- get additionalActions(): DataAction[];
581
- set additionalActions(value: DataAction[]);
582
- frozenActionColumn: boolean;
583
- actionColumnPosition: 'left' | 'right';
584
- set expandedRows(value: Row[] | string[] | number[]);
585
- expandable: boolean;
586
- frozenExpandColumn: boolean;
587
- filtered: EventEmitter<Filter$1[]>;
588
- sorted: EventEmitter<Sort>;
589
- viewTableRow: EventEmitter<Row>;
590
- editTableRow: EventEmitter<Row>;
591
- deleteTableRow: EventEmitter<Row>;
592
- selectionChanged: EventEmitter<Row[]>;
593
- pageChanged: EventEmitter<number>;
594
- pageSizeChanged: EventEmitter<number>;
595
- componentStateChanged: EventEmitter<DataTableComponentState>;
596
- rowExpanded: EventEmitter<Row>;
597
- rowCollapsed: EventEmitter<Row>;
598
- displayedRows$: Observable<unknown[]> | undefined;
599
- selectedRows$: Observable<unknown[]> | undefined;
600
- currentFilterColumn$: BehaviorSubject<DataTableColumn | null>;
601
- currentEqualFilterOptions$: Observable<{
602
- options: SelectItem[];
603
- column: DataTableColumn | undefined;
604
- }> | undefined;
605
- currentEqualSelectedFilters$: Observable<unknown[]> | undefined;
606
- truthyFilterOptions: {
607
- key: string;
608
- value: boolean;
609
- }[];
610
- currentTruthySelectedFilters$: Observable<unknown[]> | undefined;
611
- filterAmounts$: Observable<Record<string, number>> | undefined;
612
- overflowActions$: Observable<DataAction[]>;
613
- inlineActions$: Observable<DataAction[]>;
614
- overflowMenuItems$: Observable<MenuItem[]>;
615
- currentMenuRow$: BehaviorSubject<Row | null>;
616
- templates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
617
- set templates(value: QueryList<PrimeTemplate> | undefined);
618
- viewTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
619
- set viewTemplates(value: QueryList<PrimeTemplate> | undefined);
620
- parentTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | null | undefined>;
621
- set parentTemplates(value: QueryList<PrimeTemplate> | null | undefined);
622
- get viewTableRowObserved(): boolean;
623
- get editTableRowObserved(): boolean;
624
- get deleteTableRowObserved(): boolean;
625
- get anyRowActionObserved(): boolean;
626
- get actionColumnVisible(): boolean;
627
- getRowColspan(hasExpansionTemplate: boolean): number;
628
- get selectionChangedObserved(): boolean;
629
- templatesObservables: Record<string, Observable<TemplateRef<any> | null>>;
630
- allTemplates$: Observable<PrimeTemplate[]> | undefined;
631
- expansionTemplate$: Observable<PrimeTemplate | undefined> | undefined;
632
- expandedRowIds$: BehaviorSubject<(string | number)[]>;
633
- expandedRowKeys: Record<string, boolean>;
634
- private cachedOverflowActions$;
635
- private cachedOverflowMenuItemsVisibility$;
636
- constructor();
637
- ngOnInit(): void;
638
- translateColumnValues(columnValues: string[]): Observable<any>;
639
- emitComponentStateChanged(state?: DataTableComponentState): void;
640
- ngAfterContentInit(): void;
641
- onRowExpand(event: any): void;
642
- onRowCollapse(event: any): void;
643
- isRowExpanded(row: Row): boolean;
644
- toggleRowExpansion(row: Row): void;
645
- onSortColumnClick(sortColumn: string): void;
646
- columnNextSortDirection(sortColumn: string): DataSortDirection;
647
- onDeleteRow(selectedTableRow: Row): void;
648
- onViewRow(selectedTableRow: Row): void;
649
- onEditRow(selectedTableRow: Row): void;
650
- onFilterChosen(column: DataTableColumn): void;
651
- onMultiselectFilterChange(column: DataTableColumn, event: any): void;
652
- getSelectedFilters(columnId: string): unknown[] | undefined;
653
- sortIconTitle(sortColumn: string): "OCX_DATA_TABLE.TOGGLE_BUTTON.ASCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DESCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DEFAULT_TITLE";
654
- sortDirectionToTitle(sortDirection: DataSortDirection): "OCX_DATA_TABLE.TOGGLE_BUTTON.ASCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DESCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DEFAULT_TITLE";
655
- mapSelectionToRows(): void;
656
- isRowSelectionDisabled(rowObject: Row): boolean;
657
- rowSelectable(event: any): boolean;
658
- onSelectionChange(selection: Row[]): void;
659
- emitSelectionChanged(): void;
660
- mergeWithDisabledKeys(newSelectionIds: (string | number)[], disabledRowIds: (string | number)[]): (string | number)[];
661
- isSelected(row: Row): boolean;
662
- onPageChange(event: any): void;
663
- resetPage(): void;
664
- fieldIsTruthy(object: any, key: any): boolean;
665
- toggleOverflowMenu(event: MouseEvent, menu: Menu, row: Row): void;
666
- hasVisibleOverflowMenuItems(row: any): Observable<boolean>;
667
- isDate(value: Date | string | number): boolean;
668
- cellTemplatesData: TemplatesData;
669
- filterTemplatesData: TemplatesData;
670
- templatesDataMap: Record<TemplateType, TemplatesData>;
671
- getColumnTypeTemplate(templates: PrimeTemplate[], columnType: ColumnType, templateType: TemplateType): TemplateRef<any> | null;
672
- getTemplate(column: DataTableColumn, templateType: TemplateType): Observable<TemplateRef<any> | null>;
673
- resolveFieldData(object: any, key: any): any;
674
- getRowObjectFromMultiselectItem(value: MultiSelectItem, column: DataTableColumn): Record<string, string | undefined>;
675
- rowTrackByFunction: (item: any) => any;
676
- private filterActionsBasedOnPermissions;
677
- static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
678
- static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "ocx-data-table", never, { "rows": { "alias": "rows"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortColumn": { "alias": "sortColumn"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "clientSideFiltering": { "alias": "clientSideFiltering"; "required": false; }; "clientSideSorting": { "alias": "clientSideSorting"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "emptyResultsMessage": { "alias": "emptyResultsMessage"; "required": false; }; "name": { "alias": "name"; "required": false; }; "deletePermission": { "alias": "deletePermission"; "required": false; }; "viewPermission": { "alias": "viewPermission"; "required": false; }; "editPermission": { "alias": "editPermission"; "required": false; }; "deleteActionVisibleField": { "alias": "deleteActionVisibleField"; "required": false; }; "deleteActionEnabledField": { "alias": "deleteActionEnabledField"; "required": false; }; "viewActionVisibleField": { "alias": "viewActionVisibleField"; "required": false; }; "viewActionEnabledField": { "alias": "viewActionEnabledField"; "required": false; }; "editActionVisibleField": { "alias": "editActionVisibleField"; "required": false; }; "editActionEnabledField": { "alias": "editActionEnabledField"; "required": false; }; "selectionEnabledField": { "alias": "selectionEnabledField"; "required": false; }; "allowSelectAll": { "alias": "allowSelectAll"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "page": { "alias": "page"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "totalRecordsOnServer": { "alias": "totalRecordsOnServer"; "required": false; "isSignal": true; }; "currentPageShowingKey": { "alias": "currentPageShowingKey"; "required": false; }; "currentPageShowingWithTotalOnServerKey": { "alias": "currentPageShowingWithTotalOnServerKey"; "required": false; }; "stringCellTemplate": { "alias": "stringCellTemplate"; "required": false; }; "numberCellTemplate": { "alias": "numberCellTemplate"; "required": false; }; "dateCellTemplate": { "alias": "dateCellTemplate"; "required": false; }; "relativeDateCellTemplate": { "alias": "relativeDateCellTemplate"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "translationKeyCellTemplate": { "alias": "translationKeyCellTemplate"; "required": false; }; "stringFilterCellTemplate": { "alias": "stringFilterCellTemplate"; "required": false; }; "numberFilterCellTemplate": { "alias": "numberFilterCellTemplate"; "required": false; }; "dateFilterCellTemplate": { "alias": "dateFilterCellTemplate"; "required": false; }; "relativeDateFilterCellTemplate": { "alias": "relativeDateFilterCellTemplate"; "required": false; }; "filterCellTemplate": { "alias": "filterCellTemplate"; "required": false; }; "translationKeyFilterCellTemplate": { "alias": "translationKeyFilterCellTemplate"; "required": false; }; "additionalActions": { "alias": "additionalActions"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; "expandedRows": { "alias": "expandedRows"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "frozenExpandColumn": { "alias": "frozenExpandColumn"; "required": false; }; "parentTemplates": { "alias": "parentTemplates"; "required": false; }; }, { "filtered": "filtered"; "sorted": "sorted"; "viewTableRow": "viewTableRow"; "editTableRow": "editTableRow"; "deleteTableRow": "deleteTableRow"; "selectionChanged": "selectionChanged"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "componentStateChanged": "componentStateChanged"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["stringCellChildTemplate", "numberCellChildTemplate", "dateCellChildTemplate", "relativeDateCellChildTemplate", "cellChildTemplate", "translationKeyCellChildTemplate", "stringFilterCellChildTemplate", "numberFilterCellChildTemplate", "dateFilterCellChildTemplate", "relativeDateFilterCellChildTemplate", "filterCellChildTemplate", "translationKeyFilterCellChildTemplate", "templates"], never, false, never>;
679
- }
680
-
681
- type RowListGridData$2 = ListGridData | Row;
682
- declare class DataSortBase {
683
- protected locale: string;
684
- protected translateService: TranslateService;
685
- constructor(locale: string, translateService: TranslateService);
686
- translateItems([items, filters, sortColumn, sortDirection]: [RowListGridData$2[], Filter$1[], string, DataSortDirection], columns: DataTableColumn[], clientSideFiltering: boolean, clientSideSorting: boolean): Observable<[RowListGridData$2[], Filter$1[], string, DataSortDirection, Record<string, Record<string, string>>]>;
687
- filterItems([items, filters, sortColumn, sortDirection, translations]: [
688
- RowListGridData$2[],
689
- Filter$1[],
690
- string,
691
- DataSortDirection,
692
- Record<string, Record<string, string>>
693
- ], clientSideFiltering: boolean): [RowListGridData$2[], Filter$1[], string, DataSortDirection, Record<string, Record<string, string>>];
694
- sortItems([items, filters, sortColumn, sortDirection, translations]: [
695
- RowListGridData$2[],
696
- Filter$1[],
697
- string,
698
- DataSortDirection,
699
- Record<string, Record<string, string>>
700
- ], columns: DataTableColumn[], clientSideSorting: boolean): [RowListGridData$2[], Filter$1[], string, DataSortDirection, Record<string, Record<string, string>>];
701
- flattenItems(items: RowListGridData$2[]): Pick<{
702
- [x: string]: unknown;
703
- }, string>[];
704
- createCompareFunction(translatedColValues: Record<string, string>, sortColumn: string, sortDirection: DataSortDirection): (a: Record<string, any>, b: Record<string, any>) => number;
705
- }
706
-
707
- type ListGridData = {
708
- id: string | number;
709
- imagePath: string | number;
710
- [columnId: string]: unknown;
711
- };
712
- type RowListGridData$1 = ListGridData & Row;
713
- interface ListGridDataMenuItem extends MenuItem {
714
- permission: string;
715
- }
716
- interface DataListGridComponentState {
717
- activePage?: number;
718
- pageSize?: number;
719
- filters?: Filter$1[];
720
- }
721
- declare class DataListGridComponent extends DataSortBase implements OnInit, DoCheck, AfterContentInit {
722
- private userService;
723
- private router;
724
- private injector;
725
- private appStateService;
726
- private hasPermissionChecker;
727
- private readonly liveAnnouncer;
728
- titleLineId: string | undefined;
729
- subtitleLineIds: string[];
730
- clientSideSorting: boolean;
731
- clientSideFiltering: boolean;
732
- sortStates: DataSortDirection[];
733
- _pageSizes$: BehaviorSubject<number[]>;
734
- get pageSizes(): number[];
735
- set pageSizes(value: number[]);
736
- displayedPageSize$: Observable<number>;
737
- _pageSize$: BehaviorSubject<number | undefined>;
738
- get pageSize(): number | undefined;
739
- set pageSize(value: number | undefined);
740
- emptyResultsMessage: string | undefined;
741
- fallbackImage: string;
742
- layout: 'grid' | 'list';
743
- _viewPermission$: BehaviorSubject<string | string[] | undefined>;
744
- get viewPermission(): string | string[] | undefined;
745
- set viewPermission(value: string | string[] | undefined);
746
- editPermission: string | string[] | undefined;
747
- deletePermission: string | string[] | undefined;
748
- deleteActionVisibleField: string | undefined;
749
- deleteActionEnabledField: string | undefined;
750
- viewActionVisibleField: string | undefined;
751
- viewActionEnabledField: string | undefined;
752
- editActionVisibleField: string | undefined;
753
- editActionEnabledField: string | undefined;
754
- viewMenuItemKey: string | undefined;
755
- editMenuItemKey: string | undefined;
756
- deleteMenuItemKey: string | undefined;
757
- paginator: boolean;
758
- page: number;
759
- columnTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
760
- _columns$: BehaviorSubject<DataTableColumn[]>;
761
- get columns(): DataTableColumn[];
762
- set columns(value: DataTableColumn[]);
763
- name: string;
764
- totalRecordsOnServer: i0.InputSignal<number | undefined>;
765
- currentPageShowingKey: string;
766
- currentPageShowingWithTotalOnServerKey: string;
767
- params: i0.Signal<{
768
- currentPage: string;
769
- totalPages: string;
770
- rows: string;
771
- first: string;
772
- last: string;
773
- totalRecords: string;
774
- totalRecordsOnServer: number | undefined;
775
- }>;
776
- _data$: BehaviorSubject<RowListGridData$1[]>;
777
- get data(): RowListGridData$1[];
778
- set data(value: RowListGridData$1[]);
779
- _filters$: BehaviorSubject<Filter$1[]>;
780
- get filters(): Filter$1[];
781
- set filters(value: Filter$1[]);
782
- _originalData: RowListGridData$1[];
783
- _sortDirection$: BehaviorSubject<DataSortDirection>;
784
- get sortDirection(): DataSortDirection;
785
- set sortDirection(value: DataSortDirection);
786
- _sortField$: BehaviorSubject<string>;
787
- get sortField(): string;
788
- set sortField(value: string);
789
- gridItemSubtitleLinesTemplate: TemplateRef<any> | undefined;
790
- gridItemSubtitleLinesChildTemplate: TemplateRef<any> | undefined;
791
- get _gridItemSubtitleLines(): TemplateRef<any> | undefined;
792
- listItemSubtitleLinesTemplate: TemplateRef<any> | undefined;
793
- listItemSubtitleLinesChildTemplate: TemplateRef<any> | undefined;
794
- get _listItemSubtitleLines(): TemplateRef<any> | undefined;
795
- listItemTemplate: TemplateRef<any> | undefined;
796
- listItemChildTemplate: TemplateRef<any> | undefined;
797
- get _listItem(): TemplateRef<any> | undefined;
798
- gridItemTemplate: TemplateRef<any> | undefined;
799
- gridItemChildTemplate: TemplateRef<any> | undefined;
800
- get _gridItem(): TemplateRef<any> | undefined;
801
- listValueTemplate: TemplateRef<any> | undefined;
802
- listValueChildTemplate: TemplateRef<any> | undefined;
803
- get _listValue(): TemplateRef<any> | undefined;
804
- translationKeyListValueTemplate: TemplateRef<any> | undefined;
805
- translationKeyListValueChildTemplate: TemplateRef<any> | undefined;
806
- get _translationKeyListValue(): TemplateRef<any> | undefined;
807
- numberListValueTemplate: TemplateRef<any> | undefined;
808
- numberListValueChildTemplate: TemplateRef<any> | undefined;
809
- get _numberListValue(): TemplateRef<any> | undefined;
810
- relativeDateListValueTemplate: TemplateRef<any> | undefined;
811
- relativeDateListValueChildTemplate: TemplateRef<any> | undefined;
812
- get _relativeDateListValue(): TemplateRef<any> | undefined;
813
- stringListValueTemplate: TemplateRef<any> | undefined;
814
- stringListValueChildTemplate: TemplateRef<any> | undefined;
815
- get _stringListValue(): TemplateRef<any> | undefined;
816
- dateListValueTemplate: TemplateRef<any> | undefined;
817
- dateListValueChildTemplate: TemplateRef<any> | undefined;
818
- get _dateListValue(): TemplateRef<any> | undefined;
819
- inlineListActions$: Observable<DataAction[]>;
820
- overflowListActions$: Observable<DataAction[]>;
821
- overflowListMenuItems$: Observable<MenuItem[]>;
822
- currentMenuRow$: BehaviorSubject<Row | null>;
823
- _additionalActions$: BehaviorSubject<DataAction[]>;
824
- get additionalActions(): DataAction[];
825
- set additionalActions(value: DataAction[]);
826
- viewItem: EventEmitter<ListGridData>;
827
- editItem: EventEmitter<ListGridData>;
828
- deleteItem: EventEmitter<ListGridData>;
829
- pageChanged: EventEmitter<number>;
830
- pageSizeChanged: EventEmitter<number>;
831
- componentStateChanged: EventEmitter<DataListGridComponentState>;
832
- get viewItemObserved(): boolean;
833
- get editItemObserved(): boolean;
834
- get deleteItemObserved(): boolean;
835
- get sortDirectionNumber(): number;
836
- gridMenuItems$: Observable<MenuItem[]>;
837
- _selectedItem$: BehaviorSubject<ListGridData | undefined>;
838
- observedOutputs$: BehaviorSubject<number>;
839
- displayedItems$: Observable<unknown[]> | undefined;
840
- fallbackImagePath$: Observable<string>;
841
- templates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
842
- set templates(value: QueryList<PrimeTemplate> | undefined);
843
- viewTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
844
- set viewTemplates(value: QueryList<PrimeTemplate> | undefined);
845
- parentTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | null | undefined>;
846
- set parentTemplates(value: QueryList<PrimeTemplate> | null | undefined);
847
- columnType: typeof ColumnType;
848
- templatesObservables: Record<string, Observable<TemplateRef<any> | null>>;
849
- hasViewPermission$: Observable<boolean>;
850
- private cachedOverflowMenuItemsVisibility$;
851
- constructor();
852
- ngDoCheck(): void;
853
- ngOnInit(): void;
854
- ngAfterContentInit(): void;
855
- onDeleteRow(element: ListGridData): void;
856
- onViewRow(element: ListGridData): void;
857
- onEditRow(element: ListGridData): void;
858
- imgError(item: ListGridData): void;
859
- getFallbackImagePath(mfeInfo: MfeInfo): string;
860
- setSelectedItem(item: ListGridData): void;
861
- resolveFieldData(object: any, key: any): any;
862
- emitComponentStateChanged(state?: DataListGridComponentState): void;
863
- onPageChange(event: any): void;
864
- resetPage(): void;
865
- fieldIsTruthy(object: any, key: any): boolean;
866
- hasVisibleOverflowMenuItems(row: any): Observable<boolean>;
867
- toggleOverflowMenu(event: MouseEvent, menu: Menu, row: Row): void;
868
- getFilteredColumns(): DataTableColumn[];
869
- findTemplate(templates: PrimeTemplate[], names: string[]): PrimeTemplate | undefined;
870
- getTemplate(column: DataTableColumn): Observable<TemplateRef<any> | null>;
871
- private mapGridMenuItems;
872
- private getGridActionsTranslations;
873
- private shouldDisplayAction;
874
- private filterActionsBasedOnPermissions;
875
- private getPermissions;
876
- static ɵfac: i0.ɵɵFactoryDeclaration<DataListGridComponent, never>;
877
- static ɵcmp: i0.ɵɵComponentDeclaration<DataListGridComponent, "ocx-data-list-grid", never, { "titleLineId": { "alias": "titleLineId"; "required": false; }; "subtitleLineIds": { "alias": "subtitleLineIds"; "required": false; }; "clientSideSorting": { "alias": "clientSideSorting"; "required": false; }; "clientSideFiltering": { "alias": "clientSideFiltering"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "emptyResultsMessage": { "alias": "emptyResultsMessage"; "required": false; }; "fallbackImage": { "alias": "fallbackImage"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "viewPermission": { "alias": "viewPermission"; "required": false; }; "editPermission": { "alias": "editPermission"; "required": false; }; "deletePermission": { "alias": "deletePermission"; "required": false; }; "deleteActionVisibleField": { "alias": "deleteActionVisibleField"; "required": false; }; "deleteActionEnabledField": { "alias": "deleteActionEnabledField"; "required": false; }; "viewActionVisibleField": { "alias": "viewActionVisibleField"; "required": false; }; "viewActionEnabledField": { "alias": "viewActionEnabledField"; "required": false; }; "editActionVisibleField": { "alias": "editActionVisibleField"; "required": false; }; "editActionEnabledField": { "alias": "editActionEnabledField"; "required": false; }; "viewMenuItemKey": { "alias": "viewMenuItemKey"; "required": false; }; "editMenuItemKey": { "alias": "editMenuItemKey"; "required": false; }; "deleteMenuItemKey": { "alias": "deleteMenuItemKey"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "page": { "alias": "page"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "name": { "alias": "name"; "required": false; }; "totalRecordsOnServer": { "alias": "totalRecordsOnServer"; "required": false; "isSignal": true; }; "currentPageShowingKey": { "alias": "currentPageShowingKey"; "required": false; }; "currentPageShowingWithTotalOnServerKey": { "alias": "currentPageShowingWithTotalOnServerKey"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "gridItemSubtitleLinesTemplate": { "alias": "gridItemSubtitleLinesTemplate"; "required": false; }; "listItemSubtitleLinesTemplate": { "alias": "listItemSubtitleLinesTemplate"; "required": false; }; "listItemTemplate": { "alias": "listItemTemplate"; "required": false; }; "gridItemTemplate": { "alias": "gridItemTemplate"; "required": false; }; "listValueTemplate": { "alias": "listValueTemplate"; "required": false; }; "translationKeyListValueTemplate": { "alias": "translationKeyListValueTemplate"; "required": false; }; "numberListValueTemplate": { "alias": "numberListValueTemplate"; "required": false; }; "relativeDateListValueTemplate": { "alias": "relativeDateListValueTemplate"; "required": false; }; "stringListValueTemplate": { "alias": "stringListValueTemplate"; "required": false; }; "dateListValueTemplate": { "alias": "dateListValueTemplate"; "required": false; }; "additionalActions": { "alias": "additionalActions"; "required": false; }; "parentTemplates": { "alias": "parentTemplates"; "required": false; }; }, { "viewItem": "viewItem"; "editItem": "editItem"; "deleteItem": "deleteItem"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "componentStateChanged": "componentStateChanged"; }, ["gridItemSubtitleLinesChildTemplate", "listItemSubtitleLinesChildTemplate", "listItemChildTemplate", "gridItemChildTemplate", "listValueChildTemplate", "translationKeyListValueChildTemplate", "numberListValueChildTemplate", "relativeDateListValueChildTemplate", "stringListValueChildTemplate", "dateListValueChildTemplate", "templates"], never, false, never>;
878
- }
879
-
880
- interface DataColumnNameId {
881
- columnId: string;
882
- columnName: string | number;
883
- }
884
-
885
- type ListGridSort = {
886
- sortColumn: string;
887
- sortDirection: DataSortDirection;
888
- };
889
- interface DataListGridSortingComponentState {
890
- sorting?: ListGridSort;
891
- }
892
- declare class DataListGridSortingComponent implements OnInit {
893
- columns: DataTableColumn[];
894
- sortStates: DataSortDirection[];
895
- _sortDirection$: BehaviorSubject<DataSortDirection>;
896
- get sortDirection(): DataSortDirection;
897
- set sortDirection(value: DataSortDirection);
898
- _sortField$: BehaviorSubject<string>;
899
- get sortField(): string;
900
- set sortField(value: string);
901
- sortChange: EventEmitter<string>;
902
- sortDirectionChange: EventEmitter<DataSortDirection>;
903
- componentStateChanged: EventEmitter<DataListGridSortingComponentState>;
904
- columnsChange: EventEmitter<string[]>;
905
- selectedSortingOption: DataColumnNameId | undefined;
906
- dropdownOptions: DataColumnNameId[];
907
- ngOnInit(): void;
908
- selectSorting(event: SelectChangeEvent): void;
909
- sortDirectionChanged(): void;
910
- nextSortDirection(): DataSortDirection;
911
- emitComponentStateChange(): void;
912
- sortIcon(): "pi-sort-amount-up" | "pi-sort-amount-down" | "pi-sort-alt";
913
- sortIconTitle(): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.ASCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DESCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DEFAULT_TOOLTIP";
914
- sortDirectionToTitle(sortDirection: DataSortDirection): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.ASCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DESCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DEFAULT_TOOLTIP";
915
- static ɵfac: i0.ɵɵFactoryDeclaration<DataListGridSortingComponent, never>;
916
- static ɵcmp: i0.ɵɵComponentDeclaration<DataListGridSortingComponent, "ocx-data-list-grid-sorting", never, { "columns": { "alias": "columns"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; }, { "sortChange": "sortChange"; "sortDirectionChange": "sortDirectionChange"; "componentStateChanged": "componentStateChanged"; "columnsChange": "columnsChange"; }, never, never, false, never>;
917
- }
918
-
919
- type RowListGridData = ListGridData & Row;
920
- type DataViewComponentState = DataListGridComponentState & DataTableComponentState;
921
- declare class DataViewComponent implements DoCheck, OnInit, AfterContentInit {
922
- private readonly injector;
923
- _dataListGridComponent: DataListGridComponent | undefined;
924
- set listGrid(ref: DataListGridComponent | undefined);
925
- get listGrid(): DataListGridComponent | undefined;
926
- _dataTableComponent: DataTableComponent | undefined;
927
- set dataTable(ref: DataTableComponent | undefined);
928
- get dataTable(): DataTableComponent | undefined;
929
- dataTableComponentState$: ReplaySubject<DataTableComponentState>;
930
- dataListGridComponentState$: ReplaySubject<DataListGridComponentState>;
931
- deletePermission: string | string[] | undefined;
932
- editPermission: string | string[] | undefined;
933
- viewPermission: string | string[] | undefined;
934
- deleteActionVisibleField: string | undefined;
935
- deleteActionEnabledField: string | undefined;
936
- viewActionVisibleField: string | undefined;
937
- viewActionEnabledField: string | undefined;
938
- editActionVisibleField: string | undefined;
939
- editActionEnabledField: string | undefined;
940
- tableSelectionEnabledField: string | undefined;
941
- tableAllowSelectAll: boolean;
942
- data: RowListGridData[];
943
- name: string;
944
- titleLineId: string | undefined;
945
- subtitleLineIds: string[];
946
- layout: any;
947
- columns: DataTableColumn[];
948
- emptyResultsMessage: string | undefined;
949
- clientSideSorting: boolean;
950
- clientSideFiltering: boolean;
951
- fallbackImage: string;
952
- filters: Filter$1[];
953
- sortField: any;
954
- sortDirection: DataSortDirection;
955
- listGridPaginator: boolean;
956
- tablePaginator: boolean;
957
- page: number;
958
- totalRecordsOnServer: number | undefined;
959
- currentPageShowingKey: string;
960
- currentPageShowingWithTotalOnServerKey: string;
961
- selectedRows: Row[];
962
- frozenActionColumn: boolean;
963
- actionColumnPosition: 'left' | 'right';
964
- expandable: boolean;
965
- frozenExpandColumn: boolean;
966
- expandedRows: Row[] | string[] | number[];
967
- get paginator(): boolean;
968
- set paginator(value: boolean);
969
- sortStates: DataSortDirection[];
970
- pageSizes: number[];
971
- pageSize: number | undefined;
972
- stringTableCellTemplate: TemplateRef<any> | undefined;
973
- stringTableCellChildTemplate: TemplateRef<any> | undefined;
974
- get _stringTableCell(): TemplateRef<any> | undefined;
975
- numberTableCellTemplate: TemplateRef<any> | undefined;
976
- numberTableCellChildTemplate: TemplateRef<any> | undefined;
977
- get _numberTableCell(): TemplateRef<any> | undefined;
978
- dateTableCellTemplate: TemplateRef<any> | undefined;
979
- dateTableCellChildTemplate: TemplateRef<any> | undefined;
980
- get _dateTableCell(): TemplateRef<any> | undefined;
981
- tableCellTemplate: TemplateRef<any> | undefined;
982
- tableCellChildTemplate: TemplateRef<any> | undefined;
983
- get _tableCell(): TemplateRef<any> | undefined;
984
- translationKeyTableCellTemplate: TemplateRef<any> | undefined;
985
- translationKeyTableCellChildTemplate: TemplateRef<any> | undefined;
986
- get _translationKeyTableCell(): TemplateRef<any> | undefined;
987
- gridItemSubtitleLinesTemplate: TemplateRef<any> | undefined;
988
- gridItemSubtitleLinesChildTemplate: TemplateRef<any> | undefined;
989
- get _gridItemSubtitleLines(): TemplateRef<any> | undefined;
990
- listItemSubtitleLinesTemplate: TemplateRef<any> | undefined;
991
- listItemSubtitleLinesChildTemplate: TemplateRef<any> | undefined;
992
- get _listItemSubtitleLines(): TemplateRef<any> | undefined;
993
- gridItemTemplate: TemplateRef<any> | undefined;
994
- gridItemChildTemplate: TemplateRef<any> | undefined;
995
- get _gridItem(): TemplateRef<any> | undefined;
996
- listItemTemplate: TemplateRef<any> | undefined;
997
- listItemChildTemplate: TemplateRef<any> | undefined;
998
- get _listItem(): TemplateRef<any> | undefined;
999
- relativeDateTableCellTemplate: TemplateRef<any> | undefined;
1000
- relativeDateTableCellChildTemplate: TemplateRef<any> | undefined;
1001
- get _relativeDateTableCell(): TemplateRef<any> | undefined;
1002
- listValueTemplate: TemplateRef<any> | undefined;
1003
- listValueChildTemplate: TemplateRef<any> | undefined;
1004
- get _listValue(): TemplateRef<any> | undefined;
1005
- translationKeyListValueTemplate: TemplateRef<any> | undefined;
1006
- translationKeyListValueChildTemplate: TemplateRef<any> | undefined;
1007
- get _translationKeyListValue(): TemplateRef<any> | undefined;
1008
- numberListValueTemplate: TemplateRef<any> | undefined;
1009
- numberListValueChildTemplate: TemplateRef<any> | undefined;
1010
- get _numberListValue(): TemplateRef<any> | undefined;
1011
- relativeDateListValueTemplate: TemplateRef<any> | undefined;
1012
- relativeDateListValueChildTemplate: TemplateRef<any> | undefined;
1013
- get _relativeDateListValue(): TemplateRef<any> | undefined;
1014
- stringListValueTemplate: TemplateRef<any> | undefined;
1015
- stringListValueChildTemplate: TemplateRef<any> | undefined;
1016
- get _stringListValue(): TemplateRef<any> | undefined;
1017
- dateListValueTemplate: TemplateRef<any> | undefined;
1018
- dateListValueChildTemplate: TemplateRef<any> | undefined;
1019
- get _dateListValue(): TemplateRef<any> | undefined;
1020
- tableFilterCellTemplate: TemplateRef<any> | undefined;
1021
- tableFilterCellChildTemplate: TemplateRef<any> | undefined;
1022
- get _tableFilterCell(): TemplateRef<any> | undefined;
1023
- dateTableFilterCellTemplate: TemplateRef<any> | undefined;
1024
- dateTableFilterCellChildTemplate: TemplateRef<any> | undefined;
1025
- get _dateTableFilterCell(): TemplateRef<any> | undefined;
1026
- relativeDateTableFilterCellTemplate: TemplateRef<any> | undefined;
1027
- relativeDateTableFilterCellChildTemplate: TemplateRef<any> | undefined;
1028
- get _relativeDateTableFilterCell(): TemplateRef<any> | undefined;
1029
- translationKeyTableFilterCellTemplate: TemplateRef<any> | undefined;
1030
- translationKeyTableFilterCellChildTemplate: TemplateRef<any> | undefined;
1031
- get _translationKeyTableFilterCell(): TemplateRef<any> | undefined;
1032
- stringTableFilterCellTemplate: TemplateRef<any> | undefined;
1033
- stringTableFilterCellChildTemplate: TemplateRef<any> | undefined;
1034
- get _stringTableFilterCell(): TemplateRef<any> | undefined;
1035
- numberTableFilterCellTemplate: TemplateRef<any> | undefined;
1036
- numberTableFilterCellChildTemplate: TemplateRef<any> | undefined;
1037
- get _numberTableFilterCell(): TemplateRef<any> | undefined;
1038
- additionalActions: DataAction[];
1039
- filtered: EventEmitter<Filter$1[]>;
1040
- sorted: EventEmitter<Sort>;
1041
- deleteItem: EventEmitter<RowListGridData>;
1042
- viewItem: EventEmitter<RowListGridData>;
1043
- editItem: EventEmitter<RowListGridData>;
1044
- selectionChanged: EventEmitter<Row[]>;
1045
- pageChanged: EventEmitter<number>;
1046
- pageSizeChanged: EventEmitter<number>;
1047
- componentStateChanged: EventEmitter<DataViewComponentState>;
1048
- rowExpanded: EventEmitter<Row>;
1049
- rowCollapsed: EventEmitter<Row>;
1050
- isDeleteItemObserved: boolean | undefined;
1051
- isViewItemObserved: boolean | undefined;
1052
- IsEditItemObserved: boolean | undefined;
1053
- firstColumnId: string | undefined;
1054
- parentTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | null | undefined>;
1055
- set parentTemplates(value: QueryList<PrimeTemplate> | null | undefined);
1056
- templates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
1057
- set templates(value: QueryList<PrimeTemplate> | undefined);
1058
- templatesForChildren$: Observable<QueryList<PrimeTemplate> | undefined>;
1059
- get viewItemObserved(): boolean;
1060
- get editItemObserved(): boolean;
1061
- get deleteItemObserved(): boolean;
1062
- get selectionChangedObserved(): boolean;
1063
- ngOnInit(): void;
1064
- ngAfterContentInit(): void;
1065
- ngDoCheck(): void;
1066
- registerEventListenerForListGrid(): void;
1067
- registerEventListenerForDataTable(): void;
1068
- filtering(event: any): void;
1069
- sorting(event: any): void;
1070
- deletingElement(event: any): void;
1071
- viewingElement(event: any): void;
1072
- editingElement(event: any): void;
1073
- onRowSelectionChange(event: Row[]): void;
1074
- onPageChange(event: number): void;
1075
- onPageSizeChange(event: number): void;
1076
- static ɵfac: i0.ɵɵFactoryDeclaration<DataViewComponent, never>;
1077
- static ɵcmp: i0.ɵɵComponentDeclaration<DataViewComponent, "ocx-data-view", never, { "deletePermission": { "alias": "deletePermission"; "required": false; }; "editPermission": { "alias": "editPermission"; "required": false; }; "viewPermission": { "alias": "viewPermission"; "required": false; }; "deleteActionVisibleField": { "alias": "deleteActionVisibleField"; "required": false; }; "deleteActionEnabledField": { "alias": "deleteActionEnabledField"; "required": false; }; "viewActionVisibleField": { "alias": "viewActionVisibleField"; "required": false; }; "viewActionEnabledField": { "alias": "viewActionEnabledField"; "required": false; }; "editActionVisibleField": { "alias": "editActionVisibleField"; "required": false; }; "editActionEnabledField": { "alias": "editActionEnabledField"; "required": false; }; "tableSelectionEnabledField": { "alias": "tableSelectionEnabledField"; "required": false; }; "tableAllowSelectAll": { "alias": "tableAllowSelectAll"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; "titleLineId": { "alias": "titleLineId"; "required": false; }; "subtitleLineIds": { "alias": "subtitleLineIds"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "emptyResultsMessage": { "alias": "emptyResultsMessage"; "required": false; }; "clientSideSorting": { "alias": "clientSideSorting"; "required": false; }; "clientSideFiltering": { "alias": "clientSideFiltering"; "required": false; }; "fallbackImage": { "alias": "fallbackImage"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "listGridPaginator": { "alias": "listGridPaginator"; "required": false; }; "tablePaginator": { "alias": "tablePaginator"; "required": false; }; "page": { "alias": "page"; "required": false; }; "totalRecordsOnServer": { "alias": "totalRecordsOnServer"; "required": false; }; "currentPageShowingKey": { "alias": "currentPageShowingKey"; "required": false; }; "currentPageShowingWithTotalOnServerKey": { "alias": "currentPageShowingWithTotalOnServerKey"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "frozenExpandColumn": { "alias": "frozenExpandColumn"; "required": false; }; "expandedRows": { "alias": "expandedRows"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "stringTableCellTemplate": { "alias": "stringTableCellTemplate"; "required": false; }; "numberTableCellTemplate": { "alias": "numberTableCellTemplate"; "required": false; }; "dateTableCellTemplate": { "alias": "dateTableCellTemplate"; "required": false; }; "tableCellTemplate": { "alias": "tableCellTemplate"; "required": false; }; "translationKeyTableCellTemplate": { "alias": "translationKeyTableCellTemplate"; "required": false; }; "gridItemSubtitleLinesTemplate": { "alias": "gridItemSubtitleLinesTemplate"; "required": false; }; "listItemSubtitleLinesTemplate": { "alias": "listItemSubtitleLinesTemplate"; "required": false; }; "gridItemTemplate": { "alias": "gridItemTemplate"; "required": false; }; "listItemTemplate": { "alias": "listItemTemplate"; "required": false; }; "relativeDateTableCellTemplate": { "alias": "relativeDateTableCellTemplate"; "required": false; }; "listValueTemplate": { "alias": "listValueTemplate"; "required": false; }; "translationKeyListValueTemplate": { "alias": "translationKeyListValueTemplate"; "required": false; }; "numberListValueTemplate": { "alias": "numberListValueTemplate"; "required": false; }; "relativeDateListValueTemplate": { "alias": "relativeDateListValueTemplate"; "required": false; }; "stringListValueTemplate": { "alias": "stringListValueTemplate"; "required": false; }; "dateListValueTemplate": { "alias": "dateListValueTemplate"; "required": false; }; "tableFilterCellTemplate": { "alias": "tableFilterCellTemplate"; "required": false; }; "dateTableFilterCellTemplate": { "alias": "dateTableFilterCellTemplate"; "required": false; }; "relativeDateTableFilterCellTemplate": { "alias": "relativeDateTableFilterCellTemplate"; "required": false; }; "translationKeyTableFilterCellTemplate": { "alias": "translationKeyTableFilterCellTemplate"; "required": false; }; "stringTableFilterCellTemplate": { "alias": "stringTableFilterCellTemplate"; "required": false; }; "numberTableFilterCellTemplate": { "alias": "numberTableFilterCellTemplate"; "required": false; }; "additionalActions": { "alias": "additionalActions"; "required": false; }; "parentTemplates": { "alias": "parentTemplates"; "required": false; }; }, { "filtered": "filtered"; "sorted": "sorted"; "deleteItem": "deleteItem"; "viewItem": "viewItem"; "editItem": "editItem"; "selectionChanged": "selectionChanged"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "componentStateChanged": "componentStateChanged"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["stringTableCellChildTemplate", "numberTableCellChildTemplate", "dateTableCellChildTemplate", "tableCellChildTemplate", "translationKeyTableCellChildTemplate", "gridItemSubtitleLinesChildTemplate", "listItemSubtitleLinesChildTemplate", "gridItemChildTemplate", "listItemChildTemplate", "relativeDateTableCellChildTemplate", "listValueChildTemplate", "translationKeyListValueChildTemplate", "numberListValueChildTemplate", "relativeDateListValueChildTemplate", "stringListValueChildTemplate", "dateListValueChildTemplate", "tableFilterCellChildTemplate", "dateTableFilterCellChildTemplate", "relativeDateTableFilterCellChildTemplate", "translationKeyTableFilterCellChildTemplate", "stringTableFilterCellChildTemplate", "numberTableFilterCellChildTemplate", "templates"], never, false, never>;
1078
- }
1079
-
1080
- type DiagramData = {
1081
- label: string;
1082
- value: number;
1083
- backgroundColor?: string;
1084
- };
1085
-
1086
- declare const enum DiagramType {
1087
- PIE = "PIE",
1088
- VERTICAL_BAR = "VERTICAL_BAR",
1089
- HORIZONTAL_BAR = "HORIZONTAL_BAR"
1090
- }
1091
-
1092
- interface DiagramLayouts {
1093
- id: string;
1094
- icon: PrimeIcon;
1095
- layout: DiagramType;
1096
- tooltip?: string;
1097
- tooltipKey: string;
1098
- label?: string;
1099
- labelKey: string;
1100
- }
1101
- interface DiagramComponentState {
1102
- activeDiagramType?: DiagramType;
1103
- }
1104
- declare class DiagramComponent implements OnInit, OnChanges {
1105
- private readonly translateService;
1106
- data: DiagramData[] | undefined;
1107
- sumKey: string;
1108
- /**
1109
- * This property determines if diagram should generate the colors for the data that does not have any set.
1110
- *
1111
- * Setting this property to false will result in using the provided colors only if every data item has one. In the scenario where at least one item does not have a color set, diagram will generate all colors.
1112
- */
1113
- fillMissingColors: boolean;
1114
- fullHeight: boolean;
1115
- private _diagramType;
1116
- selectedDiagramType: DiagramLayouts | undefined;
1117
- chartType: 'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar';
1118
- get diagramType(): DiagramType;
1119
- set diagramType(value: DiagramType);
1120
- private _supportedDiagramTypes;
1121
- get supportedDiagramTypes(): DiagramType[];
1122
- set supportedDiagramTypes(value: DiagramType[]);
1123
- dataSelected: EventEmitter<any>;
1124
- diagramTypeChanged: EventEmitter<DiagramType>;
1125
- componentStateChanged: EventEmitter<DiagramComponentState>;
1126
- get useFullHeight(): boolean;
1127
- chartOptions: ChartOptions | undefined;
1128
- chartData: ChartData | undefined;
1129
- amountOfData: number | undefined | null;
1130
- shownDiagramTypes: DiagramLayouts[];
1131
- private colorRangeInfo;
1132
- private colorScale;
1133
- ngOnChanges(): void;
1134
- ngOnInit(): void;
1135
- generateChart(colorScale: any, colorRangeInfo: any): void;
1136
- generateColors(data: DiagramData[], colorScale: any, colorRangeInfo: any): any;
1137
- generateTotal(data: DiagramData[]): number;
1138
- generateDiagramValueString(data: DiagramData[]): string;
1139
- private diagramTypeToChartType;
1140
- dataClicked(event: []): void;
1141
- onDiagramTypeChanged(event: any): void;
1142
- static ɵfac: i0.ɵɵFactoryDeclaration<DiagramComponent, never>;
1143
- static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "ocx-diagram", never, { "data": { "alias": "data"; "required": false; }; "sumKey": { "alias": "sumKey"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "fullHeight": { "alias": "fullHeight"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
1144
- }
1145
-
1146
- type FilterViewDisplayMode = 'chips' | 'button';
1147
- type FilterViewRowDisplayData = {
1148
- id: string;
1149
- column: string;
1150
- value: unknown;
1151
- };
1152
- type FilterViewRowDetailData = FilterViewRowDisplayData & {
1153
- valueColumnId: string;
1154
- };
1155
- interface FilterViewComponentState {
1156
- filters?: Filter$1[];
1157
- }
1158
- declare class FilterViewComponent implements OnInit {
1159
- ColumnType: typeof ColumnType;
1160
- FilterType: typeof FilterType;
1161
- filters$: BehaviorSubject<Filter$1[]>;
1162
- get filters(): Filter$1[];
1163
- set filters(value: Filter$1[]);
1164
- columns$: BehaviorSubject<DataTableColumn[]>;
1165
- get columns(): DataTableColumn[];
1166
- set columns(value: DataTableColumn[]);
1167
- columnFilterDataRows$: Observable<FilterViewRowDisplayData[]> | undefined;
1168
- displayMode: FilterViewDisplayMode;
1169
- selectDisplayedChips: (filters: Filter$1[], columns: DataTableColumn[]) => Filter$1[];
1170
- chipStyleClass: string;
1171
- tableStyle: {
1172
- [klass: string]: any;
1173
- };
1174
- panelStyle: {
1175
- [klass: string]: any;
1176
- };
1177
- filtered: EventEmitter<Filter$1[]>;
1178
- componentStateChanged: EventEmitter<FilterViewComponentState>;
1179
- columnFilterTableColumns: DataTableColumn[];
1180
- ngOnInit(): void;
1181
- panel: Popover;
1182
- manageButton: Button;
1183
- trigger: HTMLElement | undefined;
1184
- fitlerViewNoSelection: TemplateRef<any> | undefined;
1185
- get _fitlerViewNoSelection(): TemplateRef<any> | undefined;
1186
- filterViewChipContent: TemplateRef<any> | undefined;
1187
- get _filterViewChipContent(): TemplateRef<any> | undefined;
1188
- filterViewShowMoreChip: TemplateRef<any> | undefined;
1189
- get _filterViewShowMoreChip(): TemplateRef<any> | undefined;
1190
- defaultTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
1191
- set defaultTemplates(value: QueryList<PrimeTemplate> | undefined);
1192
- parentTemplates$: BehaviorSubject<QueryList<PrimeTemplate> | null | undefined>;
1193
- set templates(value: QueryList<PrimeTemplate> | null | undefined);
1194
- chipTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
1195
- tableTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
1196
- chipIdSuffix: Array<string>;
1197
- chipTemplateNames: Record<ColumnType, Array<string>>;
1198
- chipTemplates: Record<string, Observable<TemplateRef<any> | null>>;
1199
- tableIdSuffix: Array<string>;
1200
- tableTemplateNames: Record<ColumnType, Array<string>>;
1201
- tableTemplates: Record<string, Observable<TemplateRef<any> | null>>;
1202
- getTemplate(column: DataTableColumn, templateNames: Record<ColumnType, Array<string>>, templates: Record<string, Observable<TemplateRef<any> | null>>, idSuffix: Array<string>): Observable<TemplateRef<any> | null>;
1203
- onResetFilersClick(): void;
1204
- onChipRemove(filter: Filter$1): void;
1205
- onFilterDelete(row: Row): void;
1206
- focusTrigger(): void;
1207
- showPanel(event: any): void;
1208
- getColumnForFilter(filter: Filter$1, columns: DataTableColumn[]): DataTableColumn | undefined;
1209
- getColumn(colId: string, columns: DataTableColumn[]): DataTableColumn | undefined;
1210
- resolveFieldData(object: any, key: any): any;
1211
- getRowObjectFromFiterData(filter: Filter$1): Record<string, unknown>;
1212
- getRowForValueColumn(row: Row): Row;
1213
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterViewComponent, never>;
1214
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterViewComponent, "ocx-filter-view", never, { "filters": { "alias": "filters"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "selectDisplayedChips": { "alias": "selectDisplayedChips"; "required": false; }; "chipStyleClass": { "alias": "chipStyleClass"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "panelStyle": { "alias": "panelStyle"; "required": false; }; "templates": { "alias": "templates"; "required": false; }; }, { "filtered": "filtered"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
1215
- }
1216
-
1217
- type DiagramColumn = {
1218
- columnType: ColumnType;
1219
- id: string;
1220
- };
1221
-
1222
- interface GroupByCountDiagramComponentState {
1223
- activeDiagramType?: DiagramType;
1224
- }
1225
- declare class GroupByCountDiagramComponent implements OnInit {
1226
- private translateService;
1227
- sumKey: string;
1228
- diagramType: DiagramType;
1229
- fullHeight: boolean;
1230
- /**
1231
- * This property determines if diagram should generate the colors for the data that does not have any set.
1232
- *
1233
- * Setting this property to false will result in using the provided colors only if every data item has one.
1234
- * In the scenario where at least one item does not have a color set, diagram will generate all colors.
1235
- */
1236
- fillMissingColors: boolean;
1237
- supportedDiagramTypes: DiagramType[];
1238
- private readonly _allLabelKeys$;
1239
- get allLabelKeys(): string[];
1240
- set allLabelKeys(value: string[]);
1241
- private readonly _showAllLabels$;
1242
- get showAllLabels(): boolean;
1243
- set showAllLabels(value: boolean);
1244
- get data(): unknown[];
1245
- set data(value: unknown[]);
1246
- diagramData$: Observable<DiagramData[]> | undefined;
1247
- private readonly _columnType$;
1248
- private readonly _data$;
1249
- get columnType(): ColumnType;
1250
- set columnType(value: ColumnType);
1251
- private readonly _columnField$;
1252
- get columnField(): string;
1253
- set columnField(value: string);
1254
- get column(): DiagramColumn;
1255
- set column(value: DiagramColumn);
1256
- private readonly _colors$;
1257
- get colors(): Record<string, string>;
1258
- set colors(value: Record<string, string>);
1259
- dataSelected: EventEmitter<any>;
1260
- diagramTypeChanged: EventEmitter<DiagramType>;
1261
- componentStateChanged: EventEmitter<GroupByCountDiagramComponentState>;
1262
- ngOnInit(): void;
1263
- dataClicked(event: any): void;
1264
- onDiagramTypeChanged(newDiagramType: DiagramType): void;
1265
- static ɵfac: i0.ɵɵFactoryDeclaration<GroupByCountDiagramComponent, never>;
1266
- static ɵcmp: i0.ɵɵComponentDeclaration<GroupByCountDiagramComponent, "ocx-group-by-count-diagram", never, { "sumKey": { "alias": "sumKey"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "fullHeight": { "alias": "fullHeight"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; "allLabelKeys": { "alias": "allLabelKeys"; "required": false; }; "showAllLabels": { "alias": "showAllLabels"; "required": false; }; "data": { "alias": "data"; "required": false; }; "columnType": { "alias": "columnType"; "required": false; }; "columnField": { "alias": "columnField"; "required": false; }; "column": { "alias": "column"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
1267
- }
1268
-
1269
- type InteractiveDataViewComponentState = ColumnGroupSelectionComponentState & CustomGroupColumnSelectorComponentState & DataLayoutSelectionComponentState & DataListGridSortingComponentState & DataViewComponentState & FilterViewComponentState;
1270
- interface ColumnGroupData {
1271
- activeColumns: DataTableColumn[];
1272
- groupKey: string;
1273
- }
1274
- declare class InteractiveDataViewComponent implements OnInit, AfterContentInit {
1275
- private readonly slotService;
1276
- _dataViewComponent: DataViewComponent | undefined;
1277
- set dataView(ref: DataViewComponent | undefined);
1278
- get dataView(): DataViewComponent | undefined;
1279
- columnGroupSelectionComponentState$: ReplaySubject<ColumnGroupSelectionComponentState>;
1280
- customGroupColumnSelectorComponentState$: ReplaySubject<CustomGroupColumnSelectorComponentState>;
1281
- dataLayoutComponentState$: ReplaySubject<DataLayoutSelectionComponentState>;
1282
- dataListGridSortingComponentState$: ReplaySubject<DataListGridSortingComponentState>;
1283
- dataViewComponentState$: ReplaySubject<DataViewComponentState>;
1284
- filterViewComponentState$: ReplaySubject<FilterViewComponentState>;
1285
- searchConfigPermission: string | string[] | undefined;
1286
- deletePermission: string | string[] | undefined;
1287
- editPermission: string | string[] | undefined;
1288
- viewPermission: string | string[] | undefined;
1289
- deleteActionVisibleField: string | undefined;
1290
- deleteActionEnabledField: string | undefined;
1291
- viewActionVisibleField: string | undefined;
1292
- viewActionEnabledField: string | undefined;
1293
- editActionVisibleField: string | undefined;
1294
- editActionEnabledField: string | undefined;
1295
- tableSelectionEnabledField: string | undefined;
1296
- tableAllowSelectAll: boolean;
1297
- name: string;
1298
- titleLineId: string | undefined;
1299
- subtitleLineIds: string[];
1300
- supportedViewLayouts: ('grid' | 'list' | 'table')[];
1301
- columns: DataTableColumn[];
1302
- emptyResultsMessage: string | undefined;
1303
- clientSideSorting: boolean;
1304
- clientSideFiltering: boolean;
1305
- fallbackImage: string;
1306
- filters: Filter$1[];
1307
- sortDirection: DataSortDirection;
1308
- sortField: any;
1309
- sortStates: DataSortDirection[];
1310
- pageSizes: number[];
1311
- pageSize: number | undefined;
1312
- totalRecordsOnServer: number | undefined;
1313
- layout: 'grid' | 'list' | 'table';
1314
- defaultGroupKey: string;
1315
- customGroupKey: string;
1316
- groupSelectionNoGroupSelectedKey: string;
1317
- currentPageShowingKey: string;
1318
- currentPageShowingWithTotalOnServerKey: string;
1319
- additionalActions: DataAction[];
1320
- listGridPaginator: boolean;
1321
- tablePaginator: boolean;
1322
- disableFilterView: boolean;
1323
- filterViewDisplayMode: FilterViewDisplayMode;
1324
- filterViewChipStyleClass: string;
1325
- filterViewTableStyle: {
1326
- [klass: string]: any;
1327
- };
1328
- filterViewPanelStyle: {
1329
- [klass: string]: any;
1330
- };
1331
- selectDisplayedChips: (filters: Filter$1[], columns: DataTableColumn[]) => Filter$1[];
1332
- page: number;
1333
- selectedRows: Row[];
1334
- displayedColumnKeys$: BehaviorSubject<string[]>;
1335
- displayedColumns$: Observable<DataTableColumn[]> | undefined;
1336
- get displayedColumnKeys(): string[];
1337
- set displayedColumnKeys(value: string[]);
1338
- frozenActionColumn: boolean;
1339
- actionColumnPosition: 'left' | 'right';
1340
- headerStyleClass: string | undefined;
1341
- contentStyleClass: string | undefined;
1342
- expandable: boolean;
1343
- frozenExpandColumn: boolean;
1344
- expandedRows: Row[] | string[] | number[];
1345
- tableCell: TemplateRef<any> | undefined;
1346
- primeNgTableCell: TemplateRef<any> | undefined;
1347
- dateTableCell: TemplateRef<any> | undefined;
1348
- primeNgDateTableCell: TemplateRef<any> | undefined;
1349
- relativeDateTableCell: TemplateRef<any> | undefined;
1350
- primeNgRelativeDateTableCell: TemplateRef<any> | undefined;
1351
- translationKeyTableCell: TemplateRef<any> | undefined;
1352
- primeNgTranslationKeyTableCell: TemplateRef<any> | undefined;
1353
- gridItemSubtitleLines: TemplateRef<any> | undefined;
1354
- primeNgGridItemSubtitleLines: TemplateRef<any> | undefined;
1355
- listItemSubtitleLines: TemplateRef<any> | undefined;
1356
- primeNgListItemSubtitleLines: TemplateRef<any> | undefined;
1357
- stringTableCell: TemplateRef<any> | undefined;
1358
- primeNgStringTableCell: TemplateRef<any> | undefined;
1359
- numberTableCell: TemplateRef<any> | undefined;
1360
- primeNgNumberTableCell: TemplateRef<any> | undefined;
1361
- gridItem: TemplateRef<any> | undefined;
1362
- primeNgGridItem: TemplateRef<any> | undefined;
1363
- listItem: TemplateRef<any> | undefined;
1364
- primeNgListItem: TemplateRef<any> | undefined;
1365
- topCenter: TemplateRef<any> | undefined;
1366
- primeNgTopCenter: TemplateRef<any> | undefined;
1367
- listValue: TemplateRef<any> | undefined;
1368
- primeNgListValue: TemplateRef<any> | undefined;
1369
- translationKeyListValue: TemplateRef<any> | undefined;
1370
- primeNgTranslationKeyListValue: TemplateRef<any> | undefined;
1371
- numberListValue: TemplateRef<any> | undefined;
1372
- primeNgNumberListValue: TemplateRef<any> | undefined;
1373
- relativeDateListValue: TemplateRef<any> | undefined;
1374
- primeNgRelativeDateListValue: TemplateRef<any> | undefined;
1375
- stringListValue: TemplateRef<any> | undefined;
1376
- primeNgStringListValue: TemplateRef<any> | undefined;
1377
- dateListValue: TemplateRef<any> | undefined;
1378
- primeNgDateListValue: TemplateRef<any> | undefined;
1379
- tableFilterCell: TemplateRef<any> | undefined;
1380
- primeNgTableFilterCell: TemplateRef<any> | undefined;
1381
- dateTableFilterCell: TemplateRef<any> | undefined;
1382
- primeNgDateTableFilterCell: TemplateRef<any> | undefined;
1383
- relativeDateTableFilterCell: TemplateRef<any> | undefined;
1384
- primeNgRelativeDateTableFilterCell: TemplateRef<any> | undefined;
1385
- translationKeyTableFilterCell: TemplateRef<any> | undefined;
1386
- primeNgTranslationKeyTableFilterCell: TemplateRef<any> | undefined;
1387
- stringTableFilterCell: TemplateRef<any> | undefined;
1388
- primeNgStringTableFilterCell: TemplateRef<any> | undefined;
1389
- numberTableFilterCell: TemplateRef<any> | undefined;
1390
- primeNgNumberTableFilterCell: TemplateRef<any> | undefined;
1391
- templates$: BehaviorSubject<QueryList<PrimeTemplate> | undefined>;
1392
- set templates(value: QueryList<PrimeTemplate> | undefined);
1393
- filtered: EventEmitter<Filter$1[]>;
1394
- sorted: EventEmitter<Sort>;
1395
- deleteItem: EventEmitter<RowListGridData>;
1396
- viewItem: EventEmitter<RowListGridData>;
1397
- editItem: EventEmitter<RowListGridData>;
1398
- dataViewLayoutChange: EventEmitter<"table" | "grid" | "list">;
1399
- displayedColumnKeysChange: EventEmitter<string[]>;
1400
- selectionChanged: EventEmitter<Row[]>;
1401
- pageChanged: EventEmitter<number>;
1402
- pageSizeChanged: EventEmitter<number>;
1403
- rowExpanded: EventEmitter<Row>;
1404
- rowCollapsed: EventEmitter<Row>;
1405
- componentStateChanged: EventEmitter<InteractiveDataViewComponentState>;
1406
- selectedGroupKey$: BehaviorSubject<string | undefined>;
1407
- get selectedGroupKey(): string | undefined;
1408
- set selectedGroupKey(value: string | undefined);
1409
- isDeleteItemObserved: boolean | undefined;
1410
- isViewItemObserved: boolean | undefined;
1411
- isEditItemObserved: boolean | undefined;
1412
- firstColumnId: string | undefined;
1413
- get paginator(): boolean;
1414
- set paginator(value: boolean);
1415
- get _gridItemSubtitleLines(): TemplateRef<any> | undefined;
1416
- get _listItemSubtitleLines(): TemplateRef<any> | undefined;
1417
- get _tableCell(): TemplateRef<any> | undefined;
1418
- get _stringTableCell(): TemplateRef<any> | undefined;
1419
- get _numberTableCell(): TemplateRef<any> | undefined;
1420
- get _dateTableCell(): TemplateRef<any> | undefined;
1421
- get _relativeDateTableCell(): TemplateRef<any> | undefined;
1422
- get _translationKeyTableCell(): TemplateRef<any> | undefined;
1423
- get _gridItem(): TemplateRef<any> | undefined;
1424
- get _listItem(): TemplateRef<any> | undefined;
1425
- get _listValue(): TemplateRef<any> | undefined;
1426
- get _translationKeyListValue(): TemplateRef<any> | undefined;
1427
- get _numberListValue(): TemplateRef<any> | undefined;
1428
- get _relativeDateListValue(): TemplateRef<any> | undefined;
1429
- get _stringListValue(): TemplateRef<any> | undefined;
1430
- get _dateListValue(): TemplateRef<any> | undefined;
1431
- get _tableFilterCell(): TemplateRef<any> | undefined;
1432
- get _dateTableFilterCell(): TemplateRef<any> | undefined;
1433
- get _relativeDateTableFilterCell(): TemplateRef<any> | undefined;
1434
- get _translationKeyTableFilterCell(): TemplateRef<any> | undefined;
1435
- get _stringTableFilterCell(): TemplateRef<any> | undefined;
1436
- get _numberTableFilterCell(): TemplateRef<any> | undefined;
1437
- _data: RowListGridData[];
1438
- get data(): RowListGridData[];
1439
- set data(value: RowListGridData[]);
1440
- columnGroupSlotName: string;
1441
- isColumnGroupSelectionComponentDefined$: Observable<boolean>;
1442
- groupSelectionChangedSlotEmitter: EventEmitter<ColumnGroupData | undefined>;
1443
- constructor();
1444
- ngOnInit(): void;
1445
- ngAfterContentInit(): void;
1446
- filtering(event: any): void;
1447
- sorting(event: any): void;
1448
- onDeleteElement(element: RowListGridData): void;
1449
- onViewElement(element: RowListGridData): void;
1450
- onEditElement(element: RowListGridData): void;
1451
- onDataViewLayoutChange(layout: 'grid' | 'list' | 'table'): void;
1452
- onSortChange($event: any): void;
1453
- onSortDirectionChange($event: any): void;
1454
- onColumnGroupSelectionChange(event: GroupSelectionChangedEvent): void;
1455
- registerEventListenerForDataView(): void;
1456
- onColumnSelectionChange(event: ColumnSelectionChangedEvent): void;
1457
- onActionColumnConfigChange(event: ActionColumnChangedEvent): void;
1458
- onRowSelectionChange(event: Row[]): void;
1459
- onPageChange(event: number): void;
1460
- onPageSizeChange(event: number): void;
1461
- getDisplayedColumns(): DataTableColumn[];
1462
- static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveDataViewComponent, never>;
1463
- static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveDataViewComponent, "ocx-interactive-data-view", never, { "searchConfigPermission": { "alias": "searchConfigPermission"; "required": false; }; "deletePermission": { "alias": "deletePermission"; "required": false; }; "editPermission": { "alias": "editPermission"; "required": false; }; "viewPermission": { "alias": "viewPermission"; "required": false; }; "deleteActionVisibleField": { "alias": "deleteActionVisibleField"; "required": false; }; "deleteActionEnabledField": { "alias": "deleteActionEnabledField"; "required": false; }; "viewActionVisibleField": { "alias": "viewActionVisibleField"; "required": false; }; "viewActionEnabledField": { "alias": "viewActionEnabledField"; "required": false; }; "editActionVisibleField": { "alias": "editActionVisibleField"; "required": false; }; "editActionEnabledField": { "alias": "editActionEnabledField"; "required": false; }; "tableSelectionEnabledField": { "alias": "tableSelectionEnabledField"; "required": false; }; "tableAllowSelectAll": { "alias": "tableAllowSelectAll"; "required": false; }; "name": { "alias": "name"; "required": false; }; "titleLineId": { "alias": "titleLineId"; "required": false; }; "subtitleLineIds": { "alias": "subtitleLineIds"; "required": false; }; "supportedViewLayouts": { "alias": "supportedViewLayouts"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "emptyResultsMessage": { "alias": "emptyResultsMessage"; "required": false; }; "clientSideSorting": { "alias": "clientSideSorting"; "required": false; }; "clientSideFiltering": { "alias": "clientSideFiltering"; "required": false; }; "fallbackImage": { "alias": "fallbackImage"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalRecordsOnServer": { "alias": "totalRecordsOnServer"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "defaultGroupKey": { "alias": "defaultGroupKey"; "required": false; }; "customGroupKey": { "alias": "customGroupKey"; "required": false; }; "groupSelectionNoGroupSelectedKey": { "alias": "groupSelectionNoGroupSelectedKey"; "required": false; }; "currentPageShowingKey": { "alias": "currentPageShowingKey"; "required": false; }; "currentPageShowingWithTotalOnServerKey": { "alias": "currentPageShowingWithTotalOnServerKey"; "required": false; }; "additionalActions": { "alias": "additionalActions"; "required": false; }; "listGridPaginator": { "alias": "listGridPaginator"; "required": false; }; "tablePaginator": { "alias": "tablePaginator"; "required": false; }; "disableFilterView": { "alias": "disableFilterView"; "required": false; }; "filterViewDisplayMode": { "alias": "filterViewDisplayMode"; "required": false; }; "filterViewChipStyleClass": { "alias": "filterViewChipStyleClass"; "required": false; }; "filterViewTableStyle": { "alias": "filterViewTableStyle"; "required": false; }; "filterViewPanelStyle": { "alias": "filterViewPanelStyle"; "required": false; }; "selectDisplayedChips": { "alias": "selectDisplayedChips"; "required": false; }; "page": { "alias": "page"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "displayedColumnKeys": { "alias": "displayedColumnKeys"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; "headerStyleClass": { "alias": "headerStyleClass"; "required": false; }; "contentStyleClass": { "alias": "contentStyleClass"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "frozenExpandColumn": { "alias": "frozenExpandColumn"; "required": false; }; "expandedRows": { "alias": "expandedRows"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "filtered": "filtered"; "sorted": "sorted"; "deleteItem": "deleteItem"; "viewItem": "viewItem"; "editItem": "editItem"; "dataViewLayoutChange": "dataViewLayoutChange"; "displayedColumnKeysChange": "displayedColumnKeysChange"; "selectionChanged": "selectionChanged"; "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; "componentStateChanged": "componentStateChanged"; }, ["tableCell", "dateTableCell", "relativeDateTableCell", "translationKeyTableCell", "gridItemSubtitleLines", "listItemSubtitleLines", "stringTableCell", "numberTableCell", "gridItem", "listItem", "topCenter", "listValue", "translationKeyListValue", "numberListValue", "relativeDateListValue", "stringListValue", "dateListValue", "tableFilterCell", "dateTableFilterCell", "relativeDateTableFilterCell", "translationKeyTableFilterCell", "stringTableFilterCell", "numberTableFilterCell", "templates"], never, false, never>;
1464
- }
1465
-
1466
- interface LifecycleStep {
1467
- id: string;
1468
- title: string;
1469
- details?: string;
1470
- }
1471
- declare class LifecycleComponent {
1472
- steps: LifecycleStep[];
1473
- activeStepId: string | undefined;
1474
- static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleComponent, never>;
1475
- static ɵcmp: i0.ɵɵComponentDeclaration<LifecycleComponent, "ocx-lifecycle", never, { "steps": { "alias": "steps"; "required": false; }; "activeStepId": { "alias": "activeStepId"; "required": false; }; }, {}, never, never, false, never>;
1476
- }
1477
-
1478
- interface BreadCrumbMenuItem {
1479
- labelKey?: string;
1480
- icon?: string;
1481
- command?: (event?: any) => void;
1482
- url?: string;
1483
- items?: MenuItem[];
1484
- expanded?: boolean;
1485
- disabled?: boolean;
1486
- visible?: boolean;
1487
- target?: string;
1488
- escape?: boolean;
1489
- routerLinkActiveOptions?: any;
1490
- separator?: boolean;
1491
- badge?: string;
1492
- tooltip?: string;
1493
- tooltipPosition?: string;
1494
- badgeStyleClass?: string;
1495
- style?: any;
1496
- styleClass?: string;
1497
- titleKey?: string;
1498
- id?: string;
1499
- automationId?: any;
1500
- tabindex?: string;
1501
- routerLink?: any;
1502
- queryParams?: {
1503
- [k: string]: any;
1504
- };
1505
- fragment?: string;
1506
- queryParamsHandling?: QueryParamsHandling;
1507
- preserveFragment?: boolean;
1508
- skipLocationChange?: boolean;
1509
- replaceUrl?: boolean;
1510
- iconStyle?: any;
1511
- iconClass?: string;
1512
- state?: {
1513
- [k: string]: any;
1514
- };
1515
- tooltipOptions?: {
1516
- tooltipLabel?: string;
1517
- tooltipPosition?: 'right' | 'left' | 'top' | 'bottom';
1518
- tooltipEvent?: 'hover' | 'focus';
1519
- appendTo?: any;
1520
- positionStyle?: string;
1521
- tooltipStyleClass?: string;
1522
- tooltipZIndex?: string;
1523
- escape?: boolean;
1524
- disabled?: boolean;
1525
- positionTop?: number;
1526
- positionLeft?: number;
1527
- showDelay?: number;
1528
- hideDelay?: number;
1529
- life?: number;
1530
- };
1531
- }
1532
-
1533
- declare class BreadcrumbService implements OnDestroy {
1534
- private readonly router;
1535
- private readonly activeRoute;
1536
- private readonly translateService;
1537
- private _itemSource$;
1538
- private get itemsSource$();
1539
- private set itemsSource$(value);
1540
- generatedItemsSource: BehaviorSubject<MenuItem[]>;
1541
- _itemsHandler: Observable<MenuItem[]> | undefined;
1542
- get itemsHandler(): Observable<MenuItem[]>;
1543
- constructor();
1544
- ngOnDestroy(): void;
1545
- private generateBreadcrumbs;
1546
- private addBreadcrumb;
1547
- private createBreadcrumb;
1548
- private getLabel;
1549
- setItems(items: BreadCrumbMenuItem[]): void;
1550
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
1551
- static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
1552
- }
1553
-
1554
- /**
1555
- * Object containing key for translation with parameters object for translation
1556
- *
1557
- * @example
1558
- * ## Assume such translation is in the translation file
1559
- * ```typescript
1560
- * const translations = {
1561
- * MY_KEY = 'text with parameter value = {{value}}',
1562
- * }
1563
- * ```
1564
- *
1565
- * ## TranslationKeyWithParameters declaration
1566
- * ```
1567
- * // will be translated into
1568
- * // text with parameter value = hello
1569
- * const myKey: TranslationKeyWithParameters = {
1570
- * key: 'MY_KEY',
1571
- * parameters: {
1572
- * value: 'hello',
1573
- * },
1574
- * }
1575
- * ```
1576
- */
1577
- type TranslationKeyWithParameters = {
1578
- key: string;
1579
- parameters?: Record<string, unknown>;
1580
- };
1581
- /**
1582
- * String with key to translation or {@link TranslationKeyWithParameters} object. If provided string cannot be translated it will be displayed as is.
1583
- */
1584
- type TranslationKey = string | TranslationKeyWithParameters;
1585
-
1586
- /**
1587
- * Action definition.
1588
- */
1589
- interface Action {
1590
- id?: string;
1591
- label?: string;
1592
- labelKey?: string;
1593
- icon?: string;
1594
- iconPos?: 'left' | 'right' | 'top' | 'bottom';
1595
- /**
1596
- * Permission for this action. If the current user does not have this permission, the action will not be shown.
1597
- */
1598
- permission?: string;
1599
- title?: string;
1600
- titleKey?: string;
1601
- ariaLabel?: string;
1602
- ariaLabelKey?: string;
1603
- btnClass?: string;
1604
- actionCallback(): void;
1605
- disabled?: boolean;
1606
- disabledTooltip?: string;
1607
- disabledTooltipKey?: string;
1608
- show?: 'always' | 'asOverflow';
1609
- conditional?: boolean;
1610
- showCondition?: boolean;
1611
- }
1612
- interface ObjectDetailItem {
1613
- label: string;
1614
- value?: string;
1615
- icon?: PrimeIcon;
1616
- iconStyleClass?: string;
1617
- labelPipe?: Type<any>;
1618
- valuePipe?: Type<any>;
1619
- valuePipeArgs?: string;
1620
- valueCssClass?: string;
1621
- actionItemIcon?: PrimeIcon;
1622
- actionItemCallback?: () => void;
1623
- actionItemAriaLabel?: string;
1624
- actionItemAriaLabelKey?: TranslationKey;
1625
- actionItemTooltipKey?: TranslationKey;
1626
- labelTooltipKey?: TranslationKey;
1627
- valueTooltipKey?: TranslationKey;
1628
- }
1629
- interface HomeItem {
1630
- menuItem: MenuItem;
1631
- page?: string;
1632
- }
1633
- type GridColumnOptions = 1 | 2 | 3 | 4 | 6 | 12;
1634
- declare class PageHeaderComponent implements OnInit {
1635
- private translateService;
1636
- private appStateService;
1637
- private userService;
1638
- private readonly hasPermissionChecker;
1639
- header: string | undefined;
1640
- loading: boolean;
1641
- figureBackground: boolean;
1642
- showFigure: boolean;
1643
- figureImage: string | undefined;
1644
- disableDefaultActions: boolean;
1645
- subheader: string | undefined;
1646
- _actions: BehaviorSubject<Action[]>;
1647
- get actions(): Action[];
1648
- set actions(value: Action[]);
1649
- objectDetails: ObjectDetailItem[] | undefined;
1650
- showBreadcrumbs: boolean;
1651
- manualBreadcrumbs: boolean;
1652
- enableGridView: undefined | boolean;
1653
- gridLayoutDesktopColumns: undefined | GridColumnOptions;
1654
- save: EventEmitter<any>;
1655
- additionalToolbarContent: TemplateRef<any> | undefined;
1656
- additionalToolbarContentLeft: TemplateRef<any> | undefined;
1657
- overflowActions$: BehaviorSubject<MenuItem[]>;
1658
- inlineActions$: BehaviorSubject<Action[]>;
1659
- dd: Date;
1660
- breadcrumbs$: Observable<MenuItem[]>;
1661
- home$: Observable<HomeItem>;
1662
- figureImageLoadError: boolean;
1663
- objectPanelGridLayoutClasses: string;
1664
- objectPanelColumnLayoutClasses: string;
1665
- objectPanelDefaultLayoutClasses: string;
1666
- objectInfoGridLayoutClasses: string;
1667
- objectInfoColumnLayoutClasses: string;
1668
- objectInfoDefaultLayoutClasses: string;
1669
- protected breadcrumbs: BreadcrumbService;
1670
- constructor();
1671
- ngOnInit(): void;
1672
- onAction(action: string): void;
1673
- handleImageError(): void;
1674
- generateItemStyle(item: ObjectDetailItem): string;
1675
- getObjectPanelLayoutClasses(): string;
1676
- getObjectInfoLayoutClasses(): string;
1677
- private filterInlineActions;
1678
- private filterOverflowActions;
1679
- private filterActionsBasedOnPermissions;
1680
- private getActionTranslationKeys;
1681
- private mapOverflowActionsToMenuItems;
1682
- static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
1683
- static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "ocx-page-header", never, { "header": { "alias": "header"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "figureBackground": { "alias": "figureBackground"; "required": false; }; "showFigure": { "alias": "showFigure"; "required": false; }; "figureImage": { "alias": "figureImage"; "required": false; }; "disableDefaultActions": { "alias": "disableDefaultActions"; "required": false; }; "subheader": { "alias": "subheader"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "objectDetails": { "alias": "objectDetails"; "required": false; }; "showBreadcrumbs": { "alias": "showBreadcrumbs"; "required": false; }; "manualBreadcrumbs": { "alias": "manualBreadcrumbs"; "required": false; }; "enableGridView": { "alias": "enableGridView"; "required": false; }; "gridLayoutDesktopColumns": { "alias": "gridLayoutDesktopColumns"; "required": false; }; }, { "save": "save"; }, ["additionalToolbarContent", "additionalToolbarContentLeft"], ["[figureImage]", "[toolbarItems]", "*"], false, never>;
1684
- }
1685
-
1686
- interface SearchHeaderComponentState {
1687
- activeViewMode?: 'basic' | 'advanced';
1688
- selectedSearchConfig?: string | null;
1689
- }
1690
- interface SearchConfigData {
1691
- name: string | undefined;
1692
- fieldValues: {
1693
- [key: string]: string;
1694
- };
1695
- displayedColumnsIds: string[];
1696
- viewMode: 'basic' | 'advanced';
1697
- }
1698
- /**
1699
- * To trigger the search when Enter key is pressed inside a search parameter field,
1700
- * an EventListener for keyup enter event is added for HTML elements which have an input.
1701
- * Please add the EventListener yourself manually, if you want to have that functionality for some other elements
1702
- * which do not have an input element.
1703
- */
1704
- declare class SearchHeaderComponent implements AfterContentInit, AfterViewInit {
1705
- header: string;
1706
- subheader: string | undefined;
1707
- _viewMode: 'basic' | 'advanced';
1708
- get viewMode(): 'basic' | 'advanced';
1709
- set viewMode(viewMode: 'basic' | 'advanced');
1710
- manualBreadcrumbs: boolean;
1711
- _actions: Action[];
1712
- get actions(): Action[];
1713
- set actions(value: Action[]);
1714
- searchConfigPermission: string | string[] | undefined;
1715
- searchButtonDisabled: boolean;
1716
- resetButtonDisabled: boolean;
1717
- pageName: string | undefined;
1718
- searched: EventEmitter<any>;
1719
- resetted: EventEmitter<any>;
1720
- selectedSearchConfigChanged: EventEmitter<SearchConfigData | undefined>;
1721
- viewModeChanged: EventEmitter<'basic' | 'advanced'>;
1722
- componentStateChanged: EventEmitter<SearchHeaderComponentState>;
1723
- additionalToolbarContent: TemplateRef<any> | undefined;
1724
- get _additionalToolbarContent(): TemplateRef<any> | undefined;
1725
- additionalToolbarContentLeft: TemplateRef<any> | undefined;
1726
- get _additionalToolbarContentLeft(): TemplateRef<any> | undefined;
1727
- get searchConfigChangeObserved(): boolean;
1728
- formGroup: FormGroup | undefined;
1729
- visibleFormControls: QueryList<FormControlName>;
1730
- searchParameterFields: ElementRef | undefined;
1731
- hasAdvanced: boolean;
1732
- simpleAdvancedAction: Action;
1733
- headerActions: Action[];
1734
- searchButtonsReversed$: Observable<boolean | null>;
1735
- fieldValues$: Observable<{
1736
- [key: string]: unknown;
1737
- }> | undefined;
1738
- searchConfigChangedSlotEmitter: EventEmitter<SearchConfigData | undefined>;
1739
- constructor();
1740
- ngAfterContentInit(): void;
1741
- ngAfterViewInit(): void;
1742
- toggleViewMode(): void;
1743
- onResetClicked(): void;
1744
- onSearchClicked(): void;
1745
- updateHeaderActions(): void;
1746
- addKeyUpEventListener(): void;
1747
- onSearchKeyup(event: any): void;
1748
- private isVisible;
1749
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchHeaderComponent, never>;
1750
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchHeaderComponent, "ocx-search-header", never, { "header": { "alias": "header"; "required": false; }; "subheader": { "alias": "subheader"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "manualBreadcrumbs": { "alias": "manualBreadcrumbs"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "searchConfigPermission": { "alias": "searchConfigPermission"; "required": false; }; "searchButtonDisabled": { "alias": "searchButtonDisabled"; "required": false; }; "resetButtonDisabled": { "alias": "resetButtonDisabled"; "required": false; }; "pageName": { "alias": "pageName"; "required": false; }; }, { "searched": "searched"; "resetted": "resetted"; "selectedSearchConfigChanged": "selectedSearchConfigChanged"; "viewModeChanged": "viewModeChanged"; "componentStateChanged": "componentStateChanged"; }, ["additionalToolbarContent", "additionalToolbarContentLeft", "formGroup", "visibleFormControls"], ["*"], false, never>;
1751
- }
1752
-
1753
- declare class DialogMessageContentComponent {
1754
- message: string;
1755
- messageParameters: object;
1756
- icon: string;
1757
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogMessageContentComponent, never>;
1758
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogMessageContentComponent, "ng-component", never, { "message": { "alias": "message"; "required": false; }; "messageParameters": { "alias": "messageParameters"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, false, never>;
1759
- }
1760
-
1761
- declare class LoadingIndicatorComponent {
1762
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorComponent, never>;
1763
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorComponent, "ocx-loading-indicator", never, {}, {}, never, never, false, never>;
1764
- }
1765
-
1766
- /**
1767
- * Object containing message of type {@link TranslationKey} and icon to be displayed along the message.
1768
- *
1769
- * @example
1770
- * DialogMessage with TranslationKey will display 'text with parameter value = hello' and question mark icon
1771
- *
1772
- * ## Assume such translation is in the translation file
1773
- * ```
1774
- * const translations = {
1775
- * MY_KEY = 'text with parameter value = {{value}}',
1776
- * }
1777
- * ```
1778
- *
1779
- * ## DialogMessage declaration
1780
- * ```
1781
- * const myDialogMessage: DialogMessage = {
1782
- * message: {
1783
- * key: 'MY_KEY',
1784
- * parameters: {
1785
- * value = 'hello',
1786
- * },
1787
- * },
1788
- * icon: PrimeIcons.QUESTION
1789
- * }
1790
- * ```
1791
- */
1792
- type DialogMessage = {
1793
- message: TranslationKey;
1794
- icon: PrimeIcon;
1795
- };
1796
- /**
1797
- * Implement via component class to be displayed by {@link PortalDialogService.openDialog}
1798
- *
1799
- * Use if you want {@link PortalDialogService.openDialog} to return state of displayed component's current dialogResult value alongside the clicked button.
1800
- *
1801
- * @example
1802
- * Display component implementing DialogResult<string> and react on the returned value
1803
- *
1804
- * ## Component declaration
1805
- * ```
1806
- * ⁣@Component({template: `<div>
1807
- * <input (change)="onInputChange($event)">
1808
- * </div>`})
1809
- * export class MyInputComponent implements DialogResult<string> {
1810
- * dialogResult: string = ''
1811
- *
1812
- * onInputChange(event: any) {
1813
- * this.dialogResult = event.target.value
1814
- * }
1815
- * }
1816
- * ```
1817
- *
1818
- * ## PortalDialogService call
1819
- * ```
1820
- * portalDialogService.openDialog(title, { type: MyInputComponent }, primaryButton, ...).subscribe((result: DialogState<string>) => {
1821
- * // result.value === MyInputComponent.dialogResult (during button click)
1822
- * // behavior when dialog closes
1823
- * })
1824
- * ```
1825
- *
1826
- */
1827
- interface DialogResult<T> {
1828
- dialogResult: T;
1829
- }
1830
- /**
1831
- * Implement via component class to be displayed by {@link PortalDialogService.openDialog}
1832
- *
1833
- * Use to control the state of the primary button (disabled or enabled). Whenever your component wants to disable/enable primary button it should emit boolean equal to whether primary button should be enabled.
1834
- *
1835
- * If you implement this interface then primary button will be disabled until the emitter emits true
1836
- */
1837
- interface DialogPrimaryButtonDisabled {
1838
- primaryButtonEnabled: EventEmitter<boolean>;
1839
- }
1840
- /**
1841
- * Implement via component class to be displayed by {@link PortalDialogService.openDialog}
1842
- *
1843
- * Use to control the state of the secondary button (disabled or enabled). Whenever your component wants to disable/enable secondary button it should emit boolean equal to whether secondary button should be enabled.
1844
- *
1845
- * If you implement this interface then secondary button will be disabled until the emitter emits true
1846
- */
1847
- interface DialogSecondaryButtonDisabled {
1848
- secondaryButtonEnabled: EventEmitter<boolean>;
1849
- }
1850
- /**
1851
- * Implement via component class to be displayed by {@link PortalDialogService.openDialog}
1852
- *
1853
- * Use to control the state of custom buttons (disabled or enabled). Whenever your component wants to disable/enable any custom button it should emit an object indicating which button should be disabled/enabled. This object should contain id property (string) related to previously defined button and enabled property (boolean) equal to whether custom button should be enabled.
1854
- *
1855
- * If you implement this interface then all custom buttons will be disabled until the emitter emits true
1856
- */
1857
- interface DialogCustomButtonsDisabled {
1858
- customButtonEnabled: EventEmitter<{
1859
- id: string;
1860
- enabled: boolean;
1861
- }>;
1862
- }
1863
- /**
1864
- * Implement via component class to be displayed by {@link PortalDialogService.openDialog}
1865
- *
1866
- * Use to add behavior on button clicks. {@link DialogButtonClicked.ocxDialogButtonClicked} method will be called everytime any button is clicked and should return boolean value (or Observable<boolean> or Promise<boolean>) equal to whether dialog should be closed or not.
1867
- *
1868
- * {@link DialogButtonClicked.ocxDialogButtonClicked} will recieve object containing component's state captured on button click. It will have button property with value 'primary' or 'secondary' which determines which button was clicked.
1869
- *
1870
- * It will also have result property which by default will be undefined, however if you want to add any properties to the state please combine this interface with {@link DialogResult}. That way result will be equal to component's dialogResult property captured on button click.
1871
- *
1872
- * @example
1873
- * Display component implementing DialogResult<string> and DialogButtonClicked which should not close dialog on clear click but should close when send clicked and api call was sucessful
1874
- *
1875
- * ## Component declaration
1876
- * ```
1877
- * ⁣@Component({template: `<div>
1878
- * <input (change)="onInputChange($event)">
1879
- * </div>`})
1880
- * export class MyInputComponent implements DialogResult<string>, DialogButtonClicked {
1881
- * dialogResult: string = ''
1882
- *
1883
- * onInputChange(event: any) {
1884
- * this.dialogResult = event.target.value
1885
- * }
1886
- *
1887
- * ocxDialogButtonClicked(state: DialogState<string>) {
1888
- * // here you can do any operations you desire
1889
- * // such as form validation
1890
- * // api calls and so on
1891
- * if (state.button === 'primary') {
1892
- * // send form data to server
1893
- * this.apiService.postInput(state.result, ...).pipe(
1894
- * // map response to boolean meaning if call was successfull
1895
- * )
1896
- * return true // if dialog should be closed return true
1897
- * } else {
1898
- * // clear input
1899
- * return false // don't want to close the dialog, only to clear it
1900
- * }
1901
- * }
1902
- * }
1903
- * ```
1904
- *
1905
- * ## PortalDialogService call
1906
- * ```
1907
- * portalDialogService.openDialog(title, { type: MyInputComponent }, "Send", "Clear").subscribe((result: DialogState<string>) => {
1908
- * // behavior to be fired when dialog closes
1909
- * })
1910
- * ```
1911
- */
1912
- interface DialogButtonClicked<T = unknown> {
1913
- ocxDialogButtonClicked(state: DialogState<T>): Observable<boolean> | Promise<boolean> | boolean | undefined | void;
1914
- }
1915
- /**
1916
- * Object containing component type to be displayed and inputs to populate the component.
1917
- *
1918
- * @example
1919
- *
1920
- * ```
1921
- * ⁣@Component({template: `<h1>{{content}}</h1>`})
1922
- * export class MyComponent {
1923
- * ⁣@Input() content: string = ''
1924
- * }
1925
- * const myComponent = {
1926
- * type: MyComponent,
1927
- * inputs: {
1928
- * content: 'My header content',
1929
- * },
1930
- * }
1931
- * ```
1932
- */
1933
- type Component<T extends unknown> = unknown extends T ? {
1934
- type: Type<any>;
1935
- inputs?: Record<string, unknown>;
1936
- } : {
1937
- type: Type<DialogResult<T>>;
1938
- inputs?: Record<string, unknown>;
1939
- };
1940
- type DialogButton = 'primary' | 'secondary' | 'custom';
1941
- type DialogStateButtonClicked = 'primary' | 'secondary' | 'custom';
1942
- /**
1943
- * Object containing information about clicked button ('primary' or 'secondary') and displayed component state captured on button click (only if component implements {@link DialogResult} interface)
1944
- */
1945
- type DialogState<T> = {
1946
- button: DialogStateButtonClicked;
1947
- result: T | undefined;
1948
- id?: string;
1949
- };
1950
- type PortalDialogConfig = {
1951
- showXButton?: boolean;
1952
- customButtons?: ButtonDialogCustomButtonDetails[];
1953
- autoFocusButton?: DialogButton;
1954
- autoFocusButtonCustomId?: string;
1955
- ariaLabelledBy?: string;
1956
- width?: string;
1957
- height?: string;
1958
- closeOnEscape?: boolean;
1959
- focusOnShow?: boolean;
1960
- focusTrap?: boolean;
1961
- baseZIndex?: number;
1962
- autoZIndex?: boolean;
1963
- dismissableMask?: boolean;
1964
- showHeader?: boolean;
1965
- modal?: boolean;
1966
- resizable?: boolean;
1967
- draggable?: boolean;
1968
- keepInViewport?: boolean;
1969
- minX?: number;
1970
- minY?: number;
1971
- maximizable?: boolean;
1972
- maximizeIcon?: string;
1973
- minimizeIcon?: string;
1974
- position?: string;
1975
- closeAriaLabel?: string;
1976
- };
1977
- interface PortalDialogServiceData {
1978
- primaryButtonEnabled$: EventEmitter<boolean>;
1979
- secondaryButtonEnabled$: EventEmitter<boolean>;
1980
- customButtonEnabled$: EventEmitter<{
1981
- id: string;
1982
- enabled: boolean;
1983
- }>;
1984
- buttonClicked$: EventEmitter<DialogState<unknown>>;
1985
- }
1986
- declare class PortalDialogService implements OnDestroy {
1987
- private dialogService;
1988
- private translateService;
1989
- private router;
1990
- private _eventsTopic$;
1991
- get eventsTopic(): EventsTopic;
1992
- set eventsTopic(source: EventsTopic);
1993
- private skipStyleScoping;
1994
- private remoteComponentConfig;
1995
- private appStateService;
1996
- private capabilityService;
1997
- constructor();
1998
- ngOnDestroy(): void;
1999
- /**
2000
- * Opens dialog with a component or message to display and one or two buttons. This method allows you to customize the dialog using parameters and by implementic specific interfaces via component to be displayed. The dialog is only shown if if you subscribe to this function.
2001
- *
2002
- * Displaying component inisde the dialog can be achieved by providing the component class with optional inputs. By default the component will be shown without any interaction with the dialog, however you can implement the following interfaces by your component class to allow for some interactions:
2003
- * - {@link DialogResult} - dialog state will contain dialogResult property
2004
- *
2005
- * - {@link DialogButtonClicked} - on button click ocxDialogButtonClicked function will be called with dialog state as a parameter. You should return true if you want dialog to be close or false if not and add any operations on your component.
2006
- *
2007
- * - {@link DialogPrimaryButtonDisabled} - dialog will use the EventEmitter to determine if the primary button should be disabled
2008
- *
2009
- * - {@link DialogSecondaryButtonDisabled} - dialog will use the EventEmitter to determine if the secondary button should be disabled
2010
- *
2011
- * - {@link DialogCustomButtonsDisabled} - dialog will use the EventEmitter to determine if the custom buttons should be disabled
2012
- *
2013
- * @param title Translation key for dialog title
2014
- * @param componentOrMessage Either a component or a translation key of a message with optional parameters and icon to be displayed next to the message
2015
- * @param primaryButtonTranslationKeyOrDetails Translation key with optional parameters and icon to be displayed next to the text of the button
2016
- * @param secondaryButtonTranslationKeyOrDetails Translation key with optional parameters and icon to be displayed next to the text of the button
2017
- * @param extras Configuration object allowing for customization of the dialog behavior and visual aspects
2018
- * @returns Observable containing dialog state on close
2019
- *
2020
- *
2021
- * @example
2022
- * Display dialog with message and two buttons using translation keys
2023
- *
2024
- * ```
2025
- * // assume 'TITLE_KEY', 'WELCOME_MESSAGE', 'OK_BUTTON' and 'REFRESH_BUTTON' are translation keys
2026
- * this.portalDialogService.openDialog('TITLE_KEY', 'WELCOME_MESSAGE', 'OK_BUTTON', 'REFRESH_BUTTON').subscribe((stateOnClose) => {
2027
- * // operations when dialog has been closed
2028
- * })
2029
- * ```
2030
- *
2031
- * @example
2032
- * Display dialog message with icon and single button
2033
- *
2034
- * ```
2035
- * // Welcome message with question mark icon
2036
- * const dialogMessage = {
2037
- * key: 'WELCOME_MESSAGE',
2038
- * icon: PrimeIcons.QUESTION
2039
- * }
2040
- * this.portalDialogService.openDialog('TITLE_KEY', dialogMessage, 'OK_BUTTON').subscribe((stateOnClose) => {
2041
- * // operations when dialog has been closed
2042
- * })
2043
- * ```
2044
- *
2045
- * @example
2046
- * Display dialog message with two customized buttons
2047
- *
2048
- * ```
2049
- * // Ok button with check icon
2050
- * const primaryButton = {
2051
- * key: 'OK_BUTTON',
2052
- * icon: PrimeIcons.CHECK
2053
- * tooltipKey: 'OK_TOOLTIP',
2054
- * tooltipPosition: 'bottom'
2055
- * }
2056
- *
2057
- * // Refresh button with refresh icon
2058
- * const secondaryButton = {
2059
- * key: 'REFRESH_BUTTON',
2060
- * icon: PrimeIcons.REFRESH
2061
- * tooltipKey: 'REFRESH_TOOLTIP',
2062
- * tooltipPosition: 'right'
2063
- * }
2064
- *
2065
- * this.portalDialogService.openDialog('TITLE_KEY', 'WELCOME_MESSAGE', primaryButton, secondaryButton).subscribe((stateOnClose) => {
2066
- * // operations when dialog has been closed
2067
- * })
2068
- * ```
2069
- *
2070
- * @example
2071
- * Display dialog message without X button in top right corner
2072
- *
2073
- * ```
2074
- * this.portalDialogService.openDialog('TITLE_KEY', 'WELCOME_MESSAGE', 'OK_BUTTON', 'REFRESH_BUTTON', false).subscribe((stateOnClose) => {
2075
- * // operations when dialog has been closed
2076
- * })
2077
- * ```
2078
- *
2079
- * @example
2080
- * React on dialog closing
2081
- *
2082
- * ```
2083
- * this.portalDialogService.openDialog('TITLE_KEY', 'WELCOME_MESSAGE', 'OK_BUTTON', 'REFRESH_BUTTON').subscribe((stateOnClose) => {
2084
- * // operations when dialog has been closed
2085
- * })
2086
- * ```
2087
- *
2088
- * @example
2089
- * Display dialog with component
2090
- *
2091
- * ## Component declaration
2092
- * ```
2093
- * ⁣@Component({template: `<div>
2094
- * <h1>{{header | translate}}</h1>
2095
- * <input (change)="onInputChange($event)">
2096
- * </div>`})
2097
- * export class MyInputComponent implements DialogResult<string>, DialogButtonClicked, DialogPrimaryButtonDisabled, DialogSecondaryButtonDisabled {
2098
- * ⁣@Input() header: string = ''
2099
- * // change value to manipulate component state visible by dialog
2100
- * dialogResult: string = ''
2101
- * // emit true/false to disable primary button
2102
- * ⁣@Output() primaryButtonEnabled: EventEmitter<boolean> = new EventEmitter()
2103
- * // emit true/false to disable secondary button
2104
- * ⁣@Output() secondaryButtonEnabled: EventEmitter<boolean> = new EventEmitter()
2105
- *
2106
- * // implement operations to be done on button clicks and return if the dialog should be closed
2107
- * ocxDialogButtonClicked(state: DialogState<string>) {
2108
- * return true
2109
- * }
2110
- *
2111
- * onInputChange(event: any) {
2112
- * this.dialogResult = event.target.value
2113
- * }
2114
- * }
2115
- * ```
2116
- *
2117
- * ## PortalDialogService call
2118
- * ```
2119
- * const myComponent = {
2120
- * type: MyInputComponent,
2121
- * inputs: {
2122
- * header: 'DIALOG_HEADER'
2123
- * }
2124
- * }
2125
- * this.portalDialogService.openDialog('TITLE_KEY', myComponent, 'OK_BUTTON', 'REFRESH_BUTTON').subscribe((stateOnClose) => {
2126
- * // operations when dialog has been closed
2127
- * })
2128
- * ```
2129
- *
2130
- * @example
2131
- * Display dialog with component without passing inputs
2132
- *
2133
- * ## PortalDialogService call
2134
- * ```
2135
- * this.portalDialogService.openDialog('TITLE_KEY', MyInputComponent, 'OK_BUTTON', 'REFRESH_BUTTON').subscribe((stateOnClose) => {
2136
- * // operations when dialog has been closed
2137
- * })
2138
- * ```
2139
- */
2140
- openDialog<T>(title: TranslationKey | null, componentOrMessage: Type<any> | Type<DialogResult<T>> | Component<T> | TranslationKey | DialogMessage, primaryButtonTranslationKeyOrDetails: TranslationKey | ButtonDialogButtonDetails, secondaryButtonTranslationKeyOrDetails?: TranslationKey | ButtonDialogButtonDetails, extras?: PortalDialogConfig): Observable<DialogState<T> | null>;
2141
- private cleanupAndCloseDialog;
2142
- private removeDialogFromHtml;
2143
- private setScopeIdentifier;
2144
- private findDialogComponentBodyChild;
2145
- private findBodyChild;
2146
- private prepareTitleForTranslation;
2147
- private buttonDetailsOrTranslationKey;
2148
- private getComponentToRender;
2149
- private isTranslationKey;
2150
- private isString;
2151
- private isDialogMessage;
2152
- private isType;
2153
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalDialogService, never>;
2154
- static ɵprov: i0.ɵɵInjectableDeclaration<PortalDialogService>;
2155
- }
2156
- declare function providePortalDialogService(): (typeof PortalDialogService | typeof DialogService)[];
2157
-
2158
- /**
2159
- * Object describing details for button rendering containing key for translation, optional icon and optional parameters for translation
2160
- *
2161
- * @example
2162
- * "Cancel meeting" button with X icon
2163
- * ```
2164
- * // assume such translation is in the translation file
2165
- * const translations = {
2166
- * MY_KEY = 'Cancel {{value}}'
2167
- * }
2168
- * const buttonDetails: ButtonDialogButtonDetails = {
2169
- * key: 'MY_KEY',
2170
- * icon: PrimeIcons.TIMES,
2171
- * parameters: {
2172
- * value: 'meeting'
2173
- * }
2174
- * }
2175
- * ```
2176
- */
2177
- interface ButtonDialogButtonDetails {
2178
- key: string;
2179
- id?: string;
2180
- icon?: PrimeIcon;
2181
- parameters?: Record<string, unknown>;
2182
- tooltipKey?: string;
2183
- tooltipPosition?: 'right' | 'left' | 'top' | 'bottom' | string | undefined;
2184
- }
2185
- interface ButtonDialogCustomButtonDetails extends ButtonDialogButtonDetails {
2186
- id: string;
2187
- alignment: 'right' | 'left';
2188
- }
2189
- interface ButtonDialogConfig {
2190
- primaryButtonDetails?: ButtonDialogButtonDetails;
2191
- secondaryButtonIncluded?: boolean;
2192
- secondaryButtonDetails?: ButtonDialogButtonDetails;
2193
- customButtons?: ButtonDialogCustomButtonDetails[];
2194
- autoFocusButton?: DialogButton;
2195
- autoFocusButtonCustomId?: string;
2196
- }
2197
- interface ButtonDialogData {
2198
- config: ButtonDialogConfig;
2199
- component?: Type<any>;
2200
- componentData: any;
2201
- }
2202
-
2203
- declare class DialogContentComponent implements OnInit, OnDestroy {
2204
- dynamicDialogConfig: DynamicDialogConfig<any, any>;
2205
- dynamicDialogRef: DynamicDialogRef<any>;
2206
- defaultDialogData: ButtonDialogData;
2207
- dialogHost: ViewContainerRef;
2208
- dialogData: ButtonDialogData;
2209
- componentRef: ComponentRef<any>;
2210
- primaryButtonEnabledSub?: Subscription;
2211
- secondaryButtonEnabledSub?: Subscription;
2212
- customButtonEnabledSub?: Subscription;
2213
- buttonClickedSub?: Subscription;
2214
- ngOnInit(): void;
2215
- ngOnDestroy(): void;
2216
- loadComponent(): void;
2217
- setUpDialogDataForDynamicConfig(): void;
2218
- private toObservable;
2219
- private isDialogResultImplemented;
2220
- private isDialogButtonClickedImplemented;
2221
- private isDialogPrimaryButtonDisabledImplemented;
2222
- private isDialogSecondaryButtonDisabledImplemented;
2223
- private isDialogCustomButtonDisabledImplemented;
2224
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogContentComponent, never>;
2225
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogContentComponent, "ocx-dialog-content", never, {}, {}, never, ["*"], false, never>;
2226
- }
2227
-
2228
- declare class DialogInlineComponent {
2229
- config: ButtonDialogConfig;
2230
- resultEmitter: EventEmitter<any>;
2231
- buttonClicked(event: DialogState<unknown>): void;
2232
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogInlineComponent, never>;
2233
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogInlineComponent, "ocx-dialog-inline", never, { "config": { "alias": "config"; "required": false; }; }, { "resultEmitter": "resultEmitter"; }, never, ["*"], false, never>;
2234
- }
2235
-
2236
- declare class DialogFooterComponent implements OnInit, AfterViewInit {
2237
- dynamicDialogConfig: DynamicDialogConfig<any, any>;
2238
- dynamicDialogRef: DynamicDialogRef<any>;
2239
- defaultPrimaryButtonDetails: ButtonDialogButtonDetails;
2240
- defaultSecondaryButtonDetails: ButtonDialogButtonDetails;
2241
- defaultDialogData: ButtonDialogData;
2242
- config: ButtonDialogConfig;
2243
- dialogData: ButtonDialogData;
2244
- primaryButtonDisabled$: Observable<boolean | undefined> | undefined;
2245
- secondaryButtonDisabled$: Observable<boolean | undefined> | undefined;
2246
- customButtonsDisabled$: BehaviorSubject<Record<string, boolean>>;
2247
- leftCustomButtons: ButtonDialogCustomButtonDetails[];
2248
- rightCustomButtons: ButtonDialogCustomButtonDetails[];
2249
- buttonClickedEmitter: EventEmitter<DialogState<unknown>>;
2250
- primaryButton: ViewContainerRef;
2251
- _secondaryButton: ViewContainerRef;
2252
- set secondaryButton(content: ViewContainerRef);
2253
- get secondaryButton(): ViewContainerRef;
2254
- customButtons: QueryList<ElementRef>;
2255
- ngAfterViewInit(): void;
2256
- ngOnInit(): void;
2257
- primaryButtonAction(): void;
2258
- secondaryButtonAction(): void;
2259
- customButtonAction(button: ButtonDialogCustomButtonDetails): void;
2260
- resolveCustomButtonDisabled(customButtonsDisabled: Record<string, boolean>, buttonId: string): boolean;
2261
- loadComponent(): void;
2262
- setUpDialogDataForInput(): void;
2263
- setUpDialogDataForDynamicConfig(): void;
2264
- private buttonAction;
2265
- private setupCustomButtons;
2266
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
2267
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "ocx-dialog-footer", never, { "config": { "alias": "config"; "required": false; }; }, { "buttonClickedEmitter": "buttonClickedEmitter"; }, never, never, false, never>;
2268
- }
2269
-
2270
- declare class GlobalErrorComponent {
2271
- private router;
2272
- private route;
2273
- errCode: string | undefined;
2274
- backUrl: string;
2275
- constructor();
2276
- onGoBack(): void;
2277
- reload(): void;
2278
- static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorComponent, never>;
2279
- static ɵcmp: i0.ɵɵComponentDeclaration<GlobalErrorComponent, "ocx-error", never, { "errCode": { "alias": "errCode"; "required": false; }; }, {}, never, never, false, never>;
2280
- }
2281
-
2282
- declare class ExportDataService {
2283
- private readonly dateUtils;
2284
- private readonly translateService;
2285
- private readonly locale;
2286
- exportCsv<T extends string | number | symbol>(columns: {
2287
- id: string;
2288
- nameKey: string;
2289
- columnType: ColumnType;
2290
- }[], data: Partial<Record<T, unknown | undefined>>[], fileName: string): Promise<void>;
2291
- private translateColumnNames;
2292
- private formatData;
2293
- private translateData;
2294
- private escapeDelimiterAndLineBreaks;
2295
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportDataService, never>;
2296
- static ɵprov: i0.ɵɵInjectableDeclaration<ExportDataService>;
2297
- }
2298
-
2299
- declare class DynamicPipe implements PipeTransform {
2300
- private injector;
2301
- knownPipes: {
2302
- [name: string]: PipeTransform;
2303
- };
2304
- constructor();
2305
- transform(value: any, requiredPipe?: Type<any>, pipeArgs?: any): any;
2306
- transform2(value: any, pipeToken: any, ...pipeArgs: any[]): any;
2307
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPipe, never>;
2308
- static ɵpipe: i0.ɵɵPipeDeclaration<DynamicPipe, "dynamicPipe", false>;
2309
- }
2310
-
2311
- declare class OcxTimeAgoPipe extends TranslatePipe implements OnDestroy, PipeTransform {
2312
- private readonly changeDetectorRef;
2313
- private readonly ngZone;
2314
- private timer;
2315
- constructor();
2316
- transform(value: string): any;
2317
- ngOnDestroy(): void;
2318
- private removeTimer;
2319
- private getSecondsUntilUpdate;
2320
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxTimeAgoPipe, never>;
2321
- static ɵpipe: i0.ɵɵPipeDeclaration<OcxTimeAgoPipe, "timeago", false>;
2322
- }
2323
-
2324
- declare class RelativeDatePipe implements PipeTransform {
2325
- private readonly translateService;
2326
- rtf: Intl.RelativeTimeFormat;
2327
- constructor();
2328
- transform(value: any): any;
2329
- static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDatePipe, never>;
2330
- static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDatePipe, "relativeDate", false>;
2331
- }
2332
-
2333
- declare class AngularAcceleratorPrimeNgModule {
2334
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularAcceleratorPrimeNgModule, never>;
2335
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorPrimeNgModule, never, [typeof i1.BreadcrumbModule, typeof i2.ChipModule, typeof i3.CheckboxModule, typeof i4.SelectModule, typeof i5.ButtonModule, typeof i6.DialogModule, typeof i7.PickListModule, typeof i8.SelectButtonModule, typeof i9.DataViewModule, typeof i10.TableModule, typeof i11.MenuModule, typeof i12.ChartModule, typeof i13.MultiSelectModule, typeof i14.SkeletonModule, typeof i15.MessageModule, typeof i16.FloatLabelModule, typeof i17.PopoverModule, typeof i18.FocusTrapModule, typeof i19.TooltipModule, typeof i20.TimelineModule, typeof i8.SelectButtonModule, typeof i21.SharedModule], [typeof i1.BreadcrumbModule, typeof i2.ChipModule, typeof i3.CheckboxModule, typeof i4.SelectModule, typeof i5.ButtonModule, typeof i6.DialogModule, typeof i7.PickListModule, typeof i8.SelectButtonModule, typeof i9.DataViewModule, typeof i10.TableModule, typeof i11.MenuModule, typeof i12.ChartModule, typeof i13.MultiSelectModule, typeof i14.SkeletonModule, typeof i15.MessageModule, typeof i16.FloatLabelModule, typeof i17.PopoverModule, typeof i18.FocusTrapModule, typeof i19.TooltipModule, typeof i20.TimelineModule, typeof i8.SelectButtonModule, typeof i21.SharedModule]>;
2336
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularAcceleratorPrimeNgModule>;
2337
- }
2338
-
2339
- declare class AngularAcceleratorMissingTranslationHandler extends MultiLanguageMissingTranslationHandler {
2340
- }
2341
- declare class AngularAcceleratorModule {
2342
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularAcceleratorModule, never>;
2343
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorModule, [typeof ColumnGroupSelectionComponent, typeof CustomGroupColumnSelectorComponent, typeof DataLayoutSelectionComponent, typeof DataListGridSortingComponent, typeof DataListGridComponent, typeof DataTableComponent, typeof DataViewComponent, typeof InteractiveDataViewComponent, typeof LifecycleComponent, typeof PageHeaderComponent, typeof DynamicPipe, typeof SearchHeaderComponent, typeof DiagramComponent, typeof GroupByCountDiagramComponent, typeof OcxContentComponent, typeof OcxContentContainerComponent, typeof IfPermissionDirective, typeof IfBreakpointDirective, typeof SrcDirective, typeof OcxTimeAgoPipe, typeof AdvancedDirective, typeof TooltipOnOverflowDirective, typeof FilterViewComponent, typeof TemplateDirective, typeof OcxContentDirective, typeof OcxContentContainerDirective, typeof GlobalErrorComponent, typeof LoadingIndicatorComponent, typeof LoadingIndicatorDirective, typeof BasicDirective, typeof DialogFooterComponent, typeof DialogContentComponent, typeof DialogInlineComponent, typeof DialogMessageContentComponent], [typeof i35.CommonModule, typeof AngularAcceleratorPrimeNgModule, typeof i37.AngularRemoteComponentsModule, typeof i38.TranslateModule, typeof i39.FormsModule, typeof i40.RouterModule, typeof i39.ReactiveFormsModule, typeof OcxTooltipDirective], [typeof i37.AngularRemoteComponentsModule, typeof ColumnGroupSelectionComponent, typeof CustomGroupColumnSelectorComponent, typeof DataLayoutSelectionComponent, typeof DataListGridComponent, typeof DataTableComponent, typeof DataViewComponent, typeof InteractiveDataViewComponent, typeof LifecycleComponent, typeof PageHeaderComponent, typeof SearchHeaderComponent, typeof DiagramComponent, typeof GroupByCountDiagramComponent, typeof OcxContentComponent, typeof OcxContentContainerComponent, typeof IfPermissionDirective, typeof IfBreakpointDirective, typeof SrcDirective, typeof OcxTimeAgoPipe, typeof AdvancedDirective, typeof TooltipOnOverflowDirective, typeof FilterViewComponent, typeof TemplateDirective, typeof OcxContentDirective, typeof OcxContentContainerDirective, typeof GlobalErrorComponent, typeof LoadingIndicatorComponent, typeof LoadingIndicatorDirective, typeof BasicDirective, typeof DialogFooterComponent, typeof DialogContentComponent, typeof DialogInlineComponent, typeof DialogMessageContentComponent, typeof OcxTooltipDirective]>;
2344
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularAcceleratorModule>;
2345
- }
2346
-
2347
- type Extend<TObj extends Record<string, unknown>, K extends string> = {
2348
- [TKey in keyof TObj & string as `${K}${TKey}`]: TObj[TKey] extends Record<string, unknown> ? Extend<TObj[TKey], `${K}${TKey}.`> : TObj[TKey];
2349
- };
2350
- type NonObjectKeysOf<T> = {
2351
- [K in keyof T]: T[K] extends Array<any> ? K : T[K] extends object ? (T[K] extends Date ? K : never) : K;
2352
- }[keyof T];
2353
- type ObjectKeysOf<T> = {
2354
- [K in keyof T]: T[K] extends Array<any> ? never : T[K] extends object ? K : never;
2355
- }[keyof T];
2356
- type Filter<TObj extends object, TKey = keyof TObj> = TKey extends keyof TObj ? TObj[TKey] extends Array<any> ? TObj : TObj[TKey] extends object ? Filter<TObj[TKey]> : Pick<TObj, NonObjectKeysOf<TObj>> | Filter<Pick<TObj, ObjectKeysOf<TObj>>> : never;
2357
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
2358
- type Result<TObj extends Record<string, unknown>> = UnionToIntersection<Filter<Extend<TObj, ''>>>;
2359
- declare function flattenObject<O extends Record<string, unknown>>(ob: O): Result<O>;
2360
-
2361
- declare const atLeastOneFieldFilledValidator: ValidatorFn;
2362
-
2363
- declare class ColorUtils {
2364
- static calculatePoint(i: number, intervalSize: number, colorRangeInfo: {
2365
- colorStart: any;
2366
- colorEnd: any;
2367
- useEndAsStart: any;
2368
- }): any;
2369
- static interpolateColors(dataLength: number, colorScale: (arg0: any) => any, colorRangeInfo: {
2370
- colorStart: any;
2371
- colorEnd: any;
2372
- useEndAsStart: any;
2373
- }): any;
2374
- }
2375
-
2376
- declare abstract class DataOperationStrategy {
2377
- endsWith(column: DataTableColumn, value: unknown, target: unknown): boolean;
2378
- startsWith(column: DataTableColumn, value: unknown, target: unknown): boolean;
2379
- contains(column: DataTableColumn, value: unknown, target: unknown): boolean;
2380
- notContains(column: DataTableColumn, value: unknown, target: unknown): boolean;
2381
- equals(column: DataTableColumn, value: unknown, target: unknown): boolean;
2382
- notEquals(column: DataTableColumn, value: unknown, target: unknown): boolean;
2383
- lessThan(column: DataTableColumn, value: unknown, target: unknown): boolean;
2384
- greaterThan(column: DataTableColumn, value: unknown, target: unknown): boolean;
2385
- lessThanOrEqual(column: DataTableColumn, value: unknown, target: unknown): boolean;
2386
- greaterThanOrEqual(column: DataTableColumn, value: unknown, target: unknown): boolean;
2387
- isEmpty(column: DataTableColumn, value: unknown): boolean;
2388
- isNotEmpty(column: DataTableColumn, value: unknown): boolean;
2389
- compare(a: unknown, b: unknown, column: DataTableColumn): number;
2390
- filterOptions(hayStack: unknown[], filterObject: FilterObject, columns: DataTableColumn[]): unknown[];
2391
- filter(hayStack: unknown[], filter: Filter$1, columns: DataTableColumn[]): unknown[];
2392
- mapHaystackItemToValue(item: unknown, filter: Filter$1 | FilterObject): any;
2393
- }
2394
-
2395
- declare class DateUtils {
2396
- protected locale: string;
2397
- options: Intl.DateTimeFormatOptions;
2398
- localizedDate(date: string | number | Date | undefined): string;
2399
- static ɵfac: i0.ɵɵFactoryDeclaration<DateUtils, never>;
2400
- static ɵprov: i0.ɵɵInjectableDeclaration<DateUtils>;
2401
- }
2402
-
2403
- declare class ObjectUtils {
2404
- static resolveFieldData(data: any, field: any): any;
2405
- static isFunction(obj: any): boolean;
2406
- }
2407
-
2408
- declare function enumToDropdownOptions<T extends object>(translateService: TranslateService, enumType: T, translationKeyPrefix: string): Observable<{
2409
- label: string;
2410
- value: T;
2411
- }[]>;
2412
-
2413
- type hasShowTimeFunction = (key: string) => boolean;
2414
- /**
2415
- * removeNullValues: whether to remove entries from the search criteria where the value is null
2416
- */
2417
- interface BuildSearchCriteriaParameters {
2418
- removeNullValues: boolean;
2419
- }
2420
- /**
2421
- * Safely builds the search criteria based on form values
2422
- * @param formRawValue the raw value of the form to use
2423
- * @param datePickers a list of primeng datePickers of the form (use `@ViewChildren(DatePicker) datePickers!: QueryList<DatePicker>;`)
2424
- * @param parameters {@link BuildSearchCriteriaParameters} to use when building the search criteria
2425
- * @returns the search criteria as a partial of T (T = type of the search criteria)
2426
- */
2427
- declare function buildSearchCriteria<T>(formRawValue: any, datePickers: QueryList<DatePicker>, { removeNullValues }: BuildSearchCriteriaParameters): Partial<T>;
2428
-
2429
- declare function findEntryWithKeyword(array: string[] | undefined, keyword: string): string | null;
2430
- declare function removeKeyword(input: string, keyword: string): string;
2431
- declare function searchPrefixWithSpecialChars(strings: string[], prefix: string): string | null;
2432
-
2433
- declare function findTemplate(templates: PrimeTemplate[], names: string[]): PrimeTemplate | undefined;
2434
-
2435
- declare function limit(columnFilterData: Filter$1[], amount: number, options: ColumnFilterDataSelectOptions): Filter$1[];
2436
-
2437
- declare class ImageLogoUrlUtils {
2438
- static createLogoUrl(apiPrefix: string, url?: string): string | undefined;
2439
- }
2440
-
2441
- export { AdvancedDirective, AngularAcceleratorMissingTranslationHandler, AngularAcceleratorModule, AngularAcceleratorPrimeNgModule, BasicDirective, BreadcrumbService, ColorUtils, ColumnGroupSelectionComponent, ColumnType, CustomGroupColumnSelectorComponent, DataLayoutSelectionComponent, DataListGridComponent, DataListGridSortingComponent, DataOperationStrategy, DataSortDirection, DataTableComponent, DataViewComponent, DateUtils, DiagramComponent, DiagramType, DialogContentComponent, DialogFooterComponent, DialogInlineComponent, DialogMessageContentComponent, DynamicPipe, ExportDataService, FilterType, FilterViewComponent, GlobalErrorComponent, GroupByCountDiagramComponent, IfBreakpointDirective, IfPermissionDirective, ImageLogoUrlUtils, InteractiveDataViewComponent, LifecycleComponent, LoadingIndicatorComponent, LoadingIndicatorDirective, ObjectUtils, OcxContentComponent, OcxContentContainerComponent, OcxContentContainerDirective, OcxContentDirective, OcxTimeAgoPipe, OcxTooltipDirective, PageHeaderComponent, PortalDialogService, RelativeDatePipe, SearchHeaderComponent, SrcDirective, TemplateDirective, TemplateType, TooltipOnOverflowDirective, atLeastOneFieldFilledValidator, buildSearchCriteria, enumToDropdownOptions, findEntryWithKeyword, findTemplate, flattenObject, limit, providePortalDialogService, removeKeyword, searchPrefixWithSpecialChars };
2442
- export type { Action, ActionColumnChangedEvent, BreadCrumbMenuItem, BuildSearchCriteriaParameters, ButtonDialogButtonDetails, ButtonDialogConfig, ButtonDialogCustomButtonDetails, ButtonDialogData, ColumnFilterDataSelectOptions, ColumnGroupData, ColumnGroupSelectionComponentState, ColumnSelectionChangedEvent, CustomGroupColumnSelectorComponentState, DataAction, DataLayoutSelectionComponentState, DataListGridComponentState, DataListGridSortingComponentState, DataTableColumn, DataTableComponentState, DataViewComponentState, DiagramColumn, DiagramComponentState, DiagramLayouts, DialogButton, DialogButtonClicked, DialogCustomButtonsDisabled, DialogPrimaryButtonDisabled, DialogResult, DialogSecondaryButtonDisabled, DialogState, DialogStateButtonClicked, Filter$1 as Filter, FilterObject, FilterViewComponentState, FilterViewDisplayMode, FilterViewRowDetailData, FilterViewRowDisplayData, GridColumnOptions, GroupByCountDiagramComponentState, GroupSelectionChangedEvent, HomeItem, InteractiveDataViewComponentState, LifecycleStep, ListGridData, ListGridDataMenuItem, ListGridSort, ObjectDetailItem, PortalDialogConfig, PortalDialogServiceData, PrimeIcon, Primitive, Result, Row, RowListGridData, SearchConfigData, SearchHeaderComponentState, Sort, TranslationKey, TranslationKeyWithParameters, hasShowTimeFunction };