@onecx/angular-accelerator 8.0.0-rc.2 → 8.0.0-rc.6

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