@onecx/angular-accelerator 6.0.0-rc.2 → 6.0.0-rc.20
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/assets/i18n/de.json +3 -3
- package/assets/i18n/en.json +3 -3
- package/assets/i18n/primeng/de.json +4 -1
- package/assets/i18n/primeng/en.json +4 -1
- package/assets/styles.scss +0 -4
- package/fesm2022/onecx-angular-accelerator-testing.mjs +160 -33
- package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +1780 -989
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/index.d.ts +20 -8
- package/lib/angular-accelerator-primeng.module.d.ts +6 -4
- package/lib/angular-accelerator.module.d.ts +33 -20
- package/lib/components/content/content.component.d.ts +13 -0
- package/lib/components/content-container/content-container.component.d.ts +19 -0
- package/lib/components/custom-group-column-selector/custom-group-column-selector.component.d.ts +0 -2
- package/lib/components/data-list-grid/data-list-grid.component.d.ts +8 -35
- package/lib/components/data-list-grid-sorting/data-list-grid-sorting.component.d.ts +2 -2
- package/lib/components/data-table/data-table.component.d.ts +16 -55
- package/lib/components/data-view/data-view.component.d.ts +9 -77
- package/lib/components/diagram/diagram.component.d.ts +0 -2
- package/lib/components/dialog/dialog-content/dialog-content.component.d.ts +29 -0
- package/lib/components/dialog/dialog-footer/dialog-footer.component.d.ts +39 -0
- package/lib/components/dialog/dialog-inline/dialog-inline.component.d.ts +11 -0
- package/lib/components/dialog/dialog-message-content/dialog-message-content.component.d.ts +8 -0
- package/lib/components/error-component/global-error.component.d.ts +12 -0
- package/lib/components/filter-view/filter-view.component.d.ts +3 -5
- package/lib/components/group-by-count-diagram/group-by-count-diagram.component.d.ts +1 -8
- package/lib/components/interactive-data-view/interactive-data-view.component.d.ts +33 -51
- package/lib/components/lifecycle/lifecycle.component.d.ts +12 -0
- package/lib/components/loading-indicator/loading-indicator.component.d.ts +5 -0
- package/lib/components/page-header/page-header.component.d.ts +2 -8
- package/lib/components/search-header/search-header.component.d.ts +4 -10
- package/lib/directives/advanced.directive.d.ts +5 -6
- package/lib/directives/basic.directive.d.ts +11 -0
- package/lib/directives/content-container.directive.d.ts +23 -0
- package/lib/directives/content.directive.d.ts +21 -0
- package/lib/directives/if-breakpoint.directive.d.ts +3 -4
- package/lib/directives/if-permission.directive.d.ts +7 -18
- package/lib/directives/loading-indicator.directive.d.ts +16 -0
- package/lib/directives/src.directive.d.ts +2 -3
- package/lib/directives/template.directive.d.ts +9 -0
- package/lib/directives/tooltipOnOverflow.directive.d.ts +2 -3
- package/lib/model/breadcrumb-menu-item.model.d.ts +0 -4
- package/lib/model/button-dialog.d.ts +47 -0
- package/lib/model/column-type.model.d.ts +1 -8
- package/lib/model/filter.model.d.ts +16 -4
- package/lib/pipes/dynamic.pipe.d.ts +2 -2
- package/lib/pipes/ocxtimeago.pipe.d.ts +3 -3
- package/lib/pipes/relative-date.pipe.d.ts +10 -0
- package/lib/services/breadcrumb.service.d.ts +2 -4
- package/lib/services/export-data.service.d.ts +18 -0
- package/lib/services/portal-dialog.service.d.ts +427 -0
- package/lib/utils/criteria.utils.d.ts +3 -3
- package/lib/utils/data-operation-strategy.d.ts +20 -0
- package/lib/utils/dateutils.d.ts +0 -5
- package/lib/utils/image-logo-url.utils.d.ts +3 -0
- package/migrations.json +34 -0
- package/package.json +23 -17
- package/testing/column-group-selection.harness.d.ts +2 -2
- package/testing/content-container.harness.d.ts +7 -0
- package/testing/content.harness.d.ts +10 -0
- package/testing/custom-group-column-selector.harness.d.ts +6 -6
- package/testing/data-layout-selection.harness.d.ts +7 -6
- package/testing/data-list-grid.harness.d.ts +3 -3
- package/testing/data-table.harness.d.ts +3 -3
- package/testing/data-view.harness.d.ts +2 -2
- package/testing/default-grid-item.harness.d.ts +1 -1
- package/testing/default-list-item.harness.d.ts +4 -4
- package/testing/diagram.harness.d.ts +1 -1
- package/testing/dialog-content.harness.d.ts +6 -0
- package/testing/dialog-footer.harness.d.ts +14 -0
- package/testing/dialog-inline.harness.d.ts +8 -0
- package/testing/dialog-message-content.harness.d.ts +8 -0
- package/testing/filter-view.harness.d.ts +6 -6
- package/testing/group-by-count-diagram.harness.d.ts +1 -1
- package/testing/index.d.ts +7 -0
- package/testing/interactive-data-view.harness.d.ts +11 -9
- package/testing/lifecycle.harness.d.ts +6 -0
- package/testing/page-header.harness.d.ts +6 -6
- package/testing/search-header.harness.d.ts +5 -5
- package/esm2022/index.mjs +0 -61
- package/esm2022/lib/angular-accelerator-primeng.module.mjs +0 -146
- package/esm2022/lib/angular-accelerator.module.mjs +0 -194
- package/esm2022/lib/components/column-group-selection/column-group-selection.component.mjs +0 -90
- package/esm2022/lib/components/custom-group-column-selector/custom-group-column-selector.component.mjs +0 -184
- package/esm2022/lib/components/data-layout-selection/data-layout-selection.component.mjs +0 -73
- package/esm2022/lib/components/data-list-grid/data-list-grid.component.mjs +0 -615
- package/esm2022/lib/components/data-list-grid-sorting/data-list-grid-sorting.component.mjs +0 -107
- package/esm2022/lib/components/data-loading-error/data-loading-error.component.mjs +0 -28
- package/esm2022/lib/components/data-sort-base/data-sort-base.mjs +0 -134
- package/esm2022/lib/components/data-table/data-table.component.mjs +0 -828
- package/esm2022/lib/components/data-view/data-view.component.mjs +0 -672
- package/esm2022/lib/components/diagram/diagram.component.mjs +0 -183
- package/esm2022/lib/components/filter-view/filter-view.component.mjs +0 -263
- package/esm2022/lib/components/group-by-count-diagram/group-by-count-diagram.component.mjs +0 -133
- package/esm2022/lib/components/interactive-data-view/interactive-data-view.component.mjs +0 -724
- package/esm2022/lib/components/page-header/page-header.component.mjs +0 -238
- package/esm2022/lib/components/search-header/search-header.component.mjs +0 -199
- package/esm2022/lib/directives/advanced.directive.mjs +0 -36
- package/esm2022/lib/directives/if-breakpoint.directive.mjs +0 -47
- package/esm2022/lib/directives/if-permission.directive.mjs +0 -103
- package/esm2022/lib/directives/src.directive.mjs +0 -65
- package/esm2022/lib/directives/tooltipOnOverflow.directive.mjs +0 -48
- package/esm2022/lib/functions/at-least-one-field-filled-validator.mjs +0 -7
- package/esm2022/lib/functions/flatten-object.mjs +0 -20
- package/esm2022/lib/model/breadcrumb-menu-item.model.mjs +0 -2
- package/esm2022/lib/model/column-type.model.mjs +0 -16
- package/esm2022/lib/model/data-action.mjs +0 -2
- package/esm2022/lib/model/data-column-name-id.model.mjs +0 -2
- package/esm2022/lib/model/data-sort-direction.mjs +0 -2
- package/esm2022/lib/model/data-table-column.model.mjs +0 -2
- package/esm2022/lib/model/diagram-column.mjs +0 -2
- package/esm2022/lib/model/diagram-data.mjs +0 -2
- package/esm2022/lib/model/diagram-type.mjs +0 -2
- package/esm2022/lib/model/filter.model.mjs +0 -6
- package/esm2022/lib/pipes/dynamic.pipe.mjs +0 -58
- package/esm2022/lib/pipes/ocxtimeago.pipe.mjs +0 -107
- package/esm2022/lib/services/breadcrumb.service.mjs +0 -128
- package/esm2022/lib/services/translation-cache.service.mjs +0 -41
- package/esm2022/lib/utils/async-translate-loader.utils.mjs +0 -12
- package/esm2022/lib/utils/caching-translate-loader.utils.mjs +0 -15
- package/esm2022/lib/utils/colorutils.mjs +0 -19
- package/esm2022/lib/utils/create-remote-component-and-mfe-translate-loader.utils.mjs +0 -12
- package/esm2022/lib/utils/create-remote-component-translate-loader.utils.mjs +0 -25
- package/esm2022/lib/utils/create-translate-loader.utils.mjs +0 -27
- package/esm2022/lib/utils/criteria.utils.mjs +0 -28
- package/esm2022/lib/utils/dateutils.mjs +0 -38
- package/esm2022/lib/utils/dynamic-locale-id.mjs +0 -21
- package/esm2022/lib/utils/enum-to-dropdown-options.utils.mjs +0 -8
- package/esm2022/lib/utils/filter.utils.mjs +0 -6
- package/esm2022/lib/utils/objectutils.mjs +0 -30
- package/esm2022/lib/utils/primeicon.utils.mjs +0 -2
- package/esm2022/lib/utils/rxjs-utils.mjs +0 -13
- package/esm2022/lib/utils/string-and-array-helper-functions.utils.mjs +0 -22
- package/esm2022/lib/utils/template.utils.mjs +0 -11
- package/esm2022/lib/utils/translate.combined.loader.mjs +0 -39
- package/esm2022/onecx-angular-accelerator.mjs +0 -5
- package/esm2022/testing/column-group-selection.harness.mjs +0 -10
- package/esm2022/testing/custom-group-column-selector.harness.mjs +0 -31
- package/esm2022/testing/data-layout-selection.harness.mjs +0 -32
- package/esm2022/testing/data-list-grid.harness.mjs +0 -51
- package/esm2022/testing/data-table.harness.mjs +0 -69
- package/esm2022/testing/data-view.harness.mjs +0 -12
- package/esm2022/testing/default-grid-item.harness.mjs +0 -24
- package/esm2022/testing/default-list-item.harness.mjs +0 -26
- package/esm2022/testing/diagram.harness.mjs +0 -22
- package/esm2022/testing/filter-view.harness.mjs +0 -18
- package/esm2022/testing/group-by-count-diagram.harness.mjs +0 -10
- package/esm2022/testing/index.mjs +0 -23
- package/esm2022/testing/interactive-data-view.harness.mjs +0 -21
- package/esm2022/testing/more-actions-menu-button.harness.mjs +0 -35
- package/esm2022/testing/onecx-angular-accelerator-testing.mjs +0 -5
- package/esm2022/testing/page-header.harness.mjs +0 -81
- package/esm2022/testing/search-header.harness.mjs +0 -36
- package/esm2022/testing/slot.harness.mjs +0 -5
- package/lib/components/data-loading-error/data-loading-error.component.d.ts +0 -8
- package/lib/services/translation-cache.service.d.ts +0 -16
- package/lib/utils/async-translate-loader.utils.d.ts +0 -9
- package/lib/utils/caching-translate-loader.utils.d.ts +0 -13
- package/lib/utils/create-remote-component-and-mfe-translate-loader.utils.d.ts +0 -6
- package/lib/utils/create-remote-component-translate-loader.utils.d.ts +0 -5
- package/lib/utils/create-translate-loader.utils.d.ts +0 -5
- package/lib/utils/translate.combined.loader.d.ts +0 -9
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef, Type } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
2
|
import { MenuItem } from 'primeng/api';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { AppStateService } from '@onecx/angular-integration-interface';
|
|
6
|
-
import { UserService } from '@onecx/angular-integration-interface';
|
|
7
4
|
import { BreadcrumbService } from '../../services/breadcrumb.service';
|
|
8
5
|
import { PrimeIcon } from '../../utils/primeicon.utils';
|
|
9
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +12,7 @@ export interface Action {
|
|
|
15
12
|
label?: string;
|
|
16
13
|
labelKey?: string;
|
|
17
14
|
icon?: string;
|
|
15
|
+
iconPos?: 'left' | 'right' | 'top' | 'bottom';
|
|
18
16
|
/**
|
|
19
17
|
* Permission for this action. If the current user does not have this permission, the action will not be shown.
|
|
20
18
|
*/
|
|
@@ -35,10 +33,6 @@ export interface Action {
|
|
|
35
33
|
export interface ObjectDetailItem {
|
|
36
34
|
label: string;
|
|
37
35
|
value?: string;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use `valueTooltip` instead
|
|
40
|
-
*/
|
|
41
|
-
tooltip?: string;
|
|
42
36
|
labelTooltip?: string;
|
|
43
37
|
valueTooltip?: string;
|
|
44
38
|
icon?: PrimeIcon;
|
|
@@ -93,7 +87,7 @@ export declare class PageHeaderComponent implements OnInit, OnChanges {
|
|
|
93
87
|
objectInfoColumnLayoutClasses: string;
|
|
94
88
|
objectInfoDefaultLayoutClasses: string;
|
|
95
89
|
protected breadcrumbs: BreadcrumbService;
|
|
96
|
-
constructor(
|
|
90
|
+
constructor();
|
|
97
91
|
ngOnChanges(changes: SimpleChanges): void;
|
|
98
92
|
ngOnInit(): void;
|
|
99
93
|
onAction(action: string): void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Action } from '../page-header/page-header.component';
|
|
3
2
|
import { FormControlName, FormGroup } from '@angular/forms';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
4
|
+
import { Action } from '../page-header/page-header.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface SearchHeaderComponentState {
|
|
8
7
|
activeViewMode?: 'basic' | 'advanced';
|
|
@@ -24,11 +23,6 @@ export interface SearchConfigData {
|
|
|
24
23
|
*/
|
|
25
24
|
export declare class SearchHeaderComponent implements AfterContentInit, AfterViewInit {
|
|
26
25
|
header: string;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Will be replaced by header
|
|
29
|
-
*/
|
|
30
|
-
get headline(): string;
|
|
31
|
-
set headline(value: string);
|
|
32
26
|
subheader: string | undefined;
|
|
33
27
|
_viewMode: 'basic' | 'advanced';
|
|
34
28
|
get viewMode(): 'basic' | 'advanced';
|
|
@@ -57,12 +51,12 @@ export declare class SearchHeaderComponent implements AfterContentInit, AfterVie
|
|
|
57
51
|
hasAdvanced: boolean;
|
|
58
52
|
simpleAdvancedAction: Action;
|
|
59
53
|
headerActions: Action[];
|
|
60
|
-
searchButtonsReversed
|
|
54
|
+
searchButtonsReversed$: Observable<boolean>;
|
|
61
55
|
fieldValues$: Observable<{
|
|
62
56
|
[key: string]: unknown;
|
|
63
57
|
}> | undefined;
|
|
64
58
|
searchConfigChangedSlotEmitter: EventEmitter<SearchConfigData | undefined>;
|
|
65
|
-
constructor(
|
|
59
|
+
constructor();
|
|
66
60
|
ngAfterContentInit(): void;
|
|
67
61
|
ngAfterViewInit(): void;
|
|
68
62
|
toggleViewMode(): void;
|
|
@@ -73,5 +67,5 @@ export declare class SearchHeaderComponent implements AfterContentInit, AfterVie
|
|
|
73
67
|
onSearchKeyup(event: any): void;
|
|
74
68
|
private isVisible;
|
|
75
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchHeaderComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchHeaderComponent, "ocx-search-header", never, { "header": { "alias": "header"; "required": false; }; "
|
|
70
|
+
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>;
|
|
77
71
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { DoCheck
|
|
2
|
-
import { SearchHeaderComponent } from '../components/search-header/search-header.component';
|
|
1
|
+
import { DoCheck } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class AdvancedDirective implements DoCheck {
|
|
5
4
|
private viewContainer;
|
|
6
|
-
private templateRef
|
|
7
|
-
private searchHeader
|
|
8
|
-
constructor(
|
|
5
|
+
private templateRef;
|
|
6
|
+
private searchHeader;
|
|
7
|
+
constructor();
|
|
9
8
|
ngDoCheck(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedDirective,
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedDirective, never>;
|
|
11
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedDirective, "[ocxAdvanced]", never, {}, {}, never, never, false, never>;
|
|
12
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DoCheck } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BasicDirective implements DoCheck {
|
|
4
|
+
private viewContainer;
|
|
5
|
+
private templateRef;
|
|
6
|
+
private searchHeader;
|
|
7
|
+
constructor();
|
|
8
|
+
ngDoCheck(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BasicDirective, "[ocxBasic]", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OcxContentContainerDirective implements OnInit, OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
/**
|
|
6
|
+
* Used for passing the direction, in which the content inside the container should be rendered.
|
|
7
|
+
* Default: horizontal
|
|
8
|
+
* @example [ocxContentContainer]="horizontal"
|
|
9
|
+
* @example [ocxContentContainer]="vertical"
|
|
10
|
+
*/
|
|
11
|
+
layout: 'horizontal' | 'vertical';
|
|
12
|
+
/**
|
|
13
|
+
* Used for passing in the breakpoint below which a horizontal layout should switch to a vertical layout.
|
|
14
|
+
* Only necessary if horizontal layout is used
|
|
15
|
+
* Default: md
|
|
16
|
+
*/
|
|
17
|
+
breakpoint: 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnChanges(): void;
|
|
20
|
+
private addContainerStyles;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentContainerDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcxContentContainerDirective, "[ocxContentContainer]", never, { "layout": { "alias": "layout"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OcxContentDirective implements OnInit, OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
/**
|
|
6
|
+
* Used for passing a title text which should be rendered in the upper left corner of the content area.
|
|
7
|
+
* @example [ocxContent]="My Cool Title"
|
|
8
|
+
*/
|
|
9
|
+
ocxContent: string;
|
|
10
|
+
private baseId;
|
|
11
|
+
private titleElementId;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
private init;
|
|
15
|
+
private addContentStyles;
|
|
16
|
+
private prependTitle;
|
|
17
|
+
private getUniqueTitleID;
|
|
18
|
+
private removeTitle;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcxContentDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcxContentDirective, "[ocxContent]", never, { "ocxContent": { "alias": "ocxContent"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { OnInit, TemplateRef
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class IfBreakpointDirective implements OnInit {
|
|
4
4
|
private viewContainer;
|
|
5
|
-
private templateRef
|
|
5
|
+
private templateRef;
|
|
6
6
|
breakpoint: 'mobile' | 'desktop' | undefined;
|
|
7
7
|
ocxIfBreakpointElseTemplate: TemplateRef<any> | undefined;
|
|
8
8
|
state: 'mobile' | 'desktop' | undefined;
|
|
9
|
-
constructor(viewContainer: ViewContainerRef, templateRef?: TemplateRef<unknown> | undefined);
|
|
10
9
|
ngOnInit(): void;
|
|
11
10
|
onResize(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfBreakpointDirective,
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfBreakpointDirective, never>;
|
|
13
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IfBreakpointDirective, "[ocxIfBreakpoint]", never, { "breakpoint": { "alias": "ocxIfBreakpoint"; "required": false; }; "ocxIfBreakpointElseTemplate": { "alias": "ocxIfBreakpointElseTemplate"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
13
|
}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserService } from '@onecx/angular-integration-interface';
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export interface HasPermissionChecker {
|
|
5
|
-
hasPermission(permissionKey: string): boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This checker always returns true, basically disabling the permission system on the UI side
|
|
9
|
-
*/
|
|
10
|
-
export declare class AlwaysGrantPermissionChecker implements HasPermissionChecker {
|
|
11
|
-
hasPermission(_permissionKey: string): boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const HAS_PERMISSION_CHECKER: InjectionToken<HasPermissionChecker>;
|
|
14
3
|
export declare class IfPermissionDirective implements OnInit {
|
|
15
4
|
private renderer;
|
|
16
5
|
private el;
|
|
17
6
|
private viewContainer;
|
|
18
|
-
private hasPermissionChecker
|
|
19
|
-
private templateRef
|
|
20
|
-
private userService
|
|
7
|
+
private hasPermissionChecker;
|
|
8
|
+
private templateRef;
|
|
9
|
+
private userService;
|
|
21
10
|
permission: string | string[] | undefined;
|
|
22
11
|
set notPermission(value: string | string[] | undefined);
|
|
23
12
|
onMissingPermission: 'hide' | 'disable';
|
|
@@ -27,9 +16,9 @@ export declare class IfPermissionDirective implements OnInit {
|
|
|
27
16
|
set ocxIfNotPermissionElseTemplate(value: TemplateRef<any> | undefined);
|
|
28
17
|
private permissionChecker;
|
|
29
18
|
negate: boolean;
|
|
30
|
-
constructor(
|
|
19
|
+
constructor();
|
|
31
20
|
ngOnInit(): void;
|
|
32
|
-
hasPermission(permission: string[]): boolean
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective,
|
|
21
|
+
hasPermission(permission: string[]): Promise<boolean>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective, never>;
|
|
34
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IfPermissionDirective, "[ocxIfPermission], [ocxIfNotPermission]", never, { "permission": { "alias": "ocxIfPermission"; "required": false; }; "notPermission": { "alias": "ocxIfNotPermission"; "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>;
|
|
35
24
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LoadingIndicatorDirective implements OnChanges {
|
|
4
|
+
private viewContainerRef;
|
|
5
|
+
private el;
|
|
6
|
+
private renderer;
|
|
7
|
+
ocxLoadingIndicator: boolean;
|
|
8
|
+
overlayFullPage: boolean;
|
|
9
|
+
isLoaderSmall?: boolean | undefined;
|
|
10
|
+
private componentRef;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
private elementLoader;
|
|
13
|
+
private toggleLoadingIndicator;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorDirective, never>;
|
|
15
|
+
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>;
|
|
16
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class SrcDirective {
|
|
5
4
|
private el;
|
|
@@ -8,7 +7,7 @@ export declare class SrcDirective {
|
|
|
8
7
|
error: EventEmitter<void>;
|
|
9
8
|
get ocxSrc(): string | undefined;
|
|
10
9
|
set ocxSrc(value: string | undefined);
|
|
11
|
-
constructor(
|
|
10
|
+
constructor();
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SrcDirective, never>;
|
|
13
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SrcDirective, "[ocxSrc]", never, { "ocxSrc": { "alias": "ocxSrc"; "required": false; }; }, { "error": "error"; }, never, never, false, never>;
|
|
14
13
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateDirective {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
name: string;
|
|
6
|
+
getType(): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[ocxTemplate]", never, { "name": { "alias": "ocxTemplate"; "required": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { PrimeNGConfig } from 'primeng/api';
|
|
1
|
+
import { AfterViewInit, OnDestroy, TemplateRef } from '@angular/core';
|
|
3
2
|
import { Tooltip } from 'primeng/tooltip';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class TooltipOnOverflowDirective extends Tooltip implements OnDestroy, AfterViewInit {
|
|
@@ -8,7 +7,7 @@ export declare class TooltipOnOverflowDirective extends Tooltip implements OnDes
|
|
|
8
7
|
set ocxTooltipOnOverflow(value: string | TemplateRef<HTMLElement> | undefined);
|
|
9
8
|
ngOnDestroy(): void;
|
|
10
9
|
ngAfterViewInit(): void;
|
|
11
|
-
constructor(
|
|
10
|
+
constructor();
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipOnOverflowDirective, never>;
|
|
13
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipOnOverflowDirective, "[ocxTooltipOnOverflow]", never, { "ocxTooltipOnOverflow": { "alias": "ocxTooltipOnOverflow"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
13
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { QueryParamsHandling } from '@angular/router';
|
|
2
2
|
import { MenuItem } from 'primeng/api';
|
|
3
3
|
export interface BreadCrumbMenuItem {
|
|
4
|
-
/** @deprecated use labelKey instead */
|
|
5
|
-
label?: string;
|
|
6
4
|
labelKey?: string;
|
|
7
5
|
icon?: string;
|
|
8
6
|
command?: (event?: any) => void;
|
|
@@ -21,8 +19,6 @@ export interface BreadCrumbMenuItem {
|
|
|
21
19
|
badgeStyleClass?: string;
|
|
22
20
|
style?: any;
|
|
23
21
|
styleClass?: string;
|
|
24
|
-
/** @deprecated use titleKey instead */
|
|
25
|
-
title?: string;
|
|
26
22
|
titleKey?: string;
|
|
27
23
|
id?: string;
|
|
28
24
|
automationId?: any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { DialogButton } from '../services/portal-dialog.service';
|
|
3
|
+
import { PrimeIcon } from '../utils/primeicon.utils';
|
|
4
|
+
/**
|
|
5
|
+
* Object describing details for button rendering containing key for translation, optional icon and optional parameters for translation
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* "Cancel meeting" button with X icon
|
|
9
|
+
* ```
|
|
10
|
+
* // assume such translation is in the translation file
|
|
11
|
+
* const translations = {
|
|
12
|
+
* MY_KEY = 'Cancel {{value}}'
|
|
13
|
+
* }
|
|
14
|
+
* const buttonDetails: ButtonDialogButtonDetails = {
|
|
15
|
+
* key: 'MY_KEY',
|
|
16
|
+
* icon: PrimeIcons.TIMES,
|
|
17
|
+
* parameters: {
|
|
18
|
+
* value: 'meeting'
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface ButtonDialogButtonDetails {
|
|
24
|
+
key: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
icon?: PrimeIcon;
|
|
27
|
+
parameters?: Record<string, unknown>;
|
|
28
|
+
tooltipKey?: string;
|
|
29
|
+
tooltipPosition?: 'right' | 'left' | 'top' | 'bottom' | string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface ButtonDialogCustomButtonDetails extends ButtonDialogButtonDetails {
|
|
32
|
+
id: string;
|
|
33
|
+
alignment: 'right' | 'left';
|
|
34
|
+
}
|
|
35
|
+
export interface ButtonDialogConfig {
|
|
36
|
+
primaryButtonDetails?: ButtonDialogButtonDetails;
|
|
37
|
+
secondaryButtonIncluded?: boolean;
|
|
38
|
+
secondaryButtonDetails?: ButtonDialogButtonDetails;
|
|
39
|
+
customButtons?: ButtonDialogCustomButtonDetails[];
|
|
40
|
+
autoFocusButton?: DialogButton;
|
|
41
|
+
autoFocusButtonCustomId?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ButtonDialogData {
|
|
44
|
+
config: ButtonDialogConfig;
|
|
45
|
+
component?: Type<any>;
|
|
46
|
+
componentData: any;
|
|
47
|
+
}
|
|
@@ -3,12 +3,5 @@ export declare enum ColumnType {
|
|
|
3
3
|
NUMBER = "NUMBER",
|
|
4
4
|
DATE = "DATE",
|
|
5
5
|
RELATIVE_DATE = "RELATIVE_DATE",
|
|
6
|
-
TRANSLATION_KEY = "TRANSLATION_KEY"
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Will be removed with the next major v6 upgrade.
|
|
9
|
-
* Please use pTemplate="column id + IdCell" in DataTable or
|
|
10
|
-
* pTemplate="column id + IdTableCell" in DataView and InteractiveDataView
|
|
11
|
-
* e.g. for a column with the id 'status' in DataTable use pTemplate="statusIdCell"
|
|
12
|
-
*/
|
|
13
|
-
CUSTOM = "CUSTOM"
|
|
6
|
+
TRANSLATION_KEY = "TRANSLATION_KEY"
|
|
14
7
|
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
export interface ColumnFilterDataSelectOptions {
|
|
2
2
|
reverse: boolean;
|
|
3
3
|
}
|
|
4
|
-
export type
|
|
4
|
+
export type FilterObject = {
|
|
5
5
|
columnId: string;
|
|
6
|
-
value: unknown;
|
|
7
6
|
filterType?: FilterType;
|
|
8
7
|
};
|
|
8
|
+
export type Filter = FilterObject & {
|
|
9
|
+
value: unknown;
|
|
10
|
+
};
|
|
9
11
|
export declare enum FilterType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
ENDS_WITH = "endsWith",
|
|
13
|
+
STARTS_WITH = "startsWith",
|
|
14
|
+
CONTAINS = "contains",
|
|
15
|
+
NOT_CONTAINS = "notContains",
|
|
16
|
+
EQUALS = "equals",
|
|
17
|
+
NOT_EQUALS = "notEquals",
|
|
18
|
+
LESS_THAN = "lessThan",
|
|
19
|
+
GREATER_THAN = "greaterThan",
|
|
20
|
+
LESS_THAN_OR_EQUAL = "lessThanOrEqual",
|
|
21
|
+
GREATER_THAN_OR_EQUAL = "greaterThanOrEqual",
|
|
22
|
+
IS_EMPTY = "isEmpty",
|
|
23
|
+
IS_NOT_EMPTY = "isNotEmpty"
|
|
12
24
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PipeTransform, Type } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DynamicPipe implements PipeTransform {
|
|
4
4
|
private injector;
|
|
5
5
|
knownPipes: {
|
|
6
6
|
[name: string]: PipeTransform;
|
|
7
7
|
};
|
|
8
|
-
constructor(
|
|
8
|
+
constructor();
|
|
9
9
|
transform(value: any, requiredPipe?: Type<any>, pipeArgs?: any): any;
|
|
10
10
|
transform2(value: any, pipeToken: any, ...pipeArgs: any[]): any;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPipe, never>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TranslatePipe
|
|
1
|
+
import { OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class OcxTimeAgoPipe extends TranslatePipe implements OnDestroy, PipeTransform {
|
|
5
5
|
private changeDetectorRef;
|
|
6
6
|
private ngZone;
|
|
7
7
|
private translateService;
|
|
8
8
|
private timer;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor();
|
|
10
10
|
transform(value: string): any;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
private removeTimer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RelativeDatePipe implements PipeTransform {
|
|
4
|
+
private readonly translateService;
|
|
5
|
+
rtf: Intl.RelativeTimeFormat;
|
|
6
|
+
constructor();
|
|
7
|
+
transform(value: any): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDatePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDatePipe, "relativeDate", false>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
1
|
import { MenuItem } from 'primeng/api';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
3
|
import { BreadCrumbMenuItem } from '../model/breadcrumb-menu-item.model';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class BreadcrumbService {
|
|
@@ -11,7 +9,7 @@ export declare class BreadcrumbService {
|
|
|
11
9
|
private itemsSource$;
|
|
12
10
|
generatedItemsSource: BehaviorSubject<MenuItem[]>;
|
|
13
11
|
itemsHandler: import("rxjs").Observable<MenuItem[]>;
|
|
14
|
-
constructor(
|
|
12
|
+
constructor();
|
|
15
13
|
private generateBreadcrumbs;
|
|
16
14
|
private addBreadcrumb;
|
|
17
15
|
private createBreadcrumb;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColumnType } from '../model/column-type.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ExportDataService {
|
|
4
|
+
private readonly dateUtils;
|
|
5
|
+
private readonly translateService;
|
|
6
|
+
private readonly locale;
|
|
7
|
+
exportCsv<T extends string | number | symbol>(columns: {
|
|
8
|
+
id: string;
|
|
9
|
+
nameKey: string;
|
|
10
|
+
columnType: ColumnType;
|
|
11
|
+
}[], data: Partial<Record<T, unknown | undefined>>[], fileName: string): Promise<void>;
|
|
12
|
+
private translateColumnNames;
|
|
13
|
+
private formatData;
|
|
14
|
+
private translateData;
|
|
15
|
+
private escapeDelimiter;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportDataService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExportDataService>;
|
|
18
|
+
}
|