@onecx/angular-accelerator 7.0.0-rc.8 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/assets/i18n/de.json +10 -6
  2. package/assets/i18n/en.json +10 -6
  3. package/assets/i18n/primeng/de.json +5 -2
  4. package/assets/i18n/primeng/en.json +4 -1
  5. package/assets/i18n/storybook-translations/page-header/de.json +13 -0
  6. package/assets/i18n/storybook-translations/page-header/en.json +13 -0
  7. package/fesm2022/onecx-angular-accelerator-testing.mjs +33 -5
  8. package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
  9. package/fesm2022/onecx-angular-accelerator.mjs +213 -157
  10. package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
  11. package/index.d.ts +2370 -62
  12. package/package.json +21 -19
  13. package/testing/index.d.ts +261 -24
  14. package/lib/angular-accelerator-primeng.module.d.ts +0 -27
  15. package/lib/angular-accelerator.module.d.ts +0 -49
  16. package/lib/components/column-group-selection/column-group-selection.component.d.ts +0 -32
  17. package/lib/components/content/content.component.d.ts +0 -13
  18. package/lib/components/content-container/content-container.component.d.ts +0 -19
  19. package/lib/components/custom-group-column-selector/custom-group-column-selector.component.d.ts +0 -68
  20. package/lib/components/data-layout-selection/data-layout-selection.component.d.ts +0 -32
  21. package/lib/components/data-list-grid/data-list-grid.component.d.ts +0 -179
  22. package/lib/components/data-list-grid-sorting/data-list-grid-sorting.component.d.ts +0 -40
  23. package/lib/components/data-sort-base/data-sort-base.d.ts +0 -33
  24. package/lib/components/data-table/data-table.component.d.ts +0 -224
  25. package/lib/components/data-view/data-view.component.d.ts +0 -165
  26. package/lib/components/diagram/diagram.component.d.ts +0 -57
  27. package/lib/components/dialog/dialog-content/dialog-content.component.d.ts +0 -29
  28. package/lib/components/dialog/dialog-footer/dialog-footer.component.d.ts +0 -39
  29. package/lib/components/dialog/dialog-inline/dialog-inline.component.d.ts +0 -11
  30. package/lib/components/dialog/dialog-message-content/dialog-message-content.component.d.ts +0 -8
  31. package/lib/components/error-component/global-error.component.d.ts +0 -12
  32. package/lib/components/filter-view/filter-view.component.d.ts +0 -80
  33. package/lib/components/group-by-count-diagram/group-by-count-diagram.component.d.ts +0 -45
  34. package/lib/components/interactive-data-view/interactive-data-view.component.d.ts +0 -206
  35. package/lib/components/lifecycle/lifecycle.component.d.ts +0 -12
  36. package/lib/components/loading-indicator/loading-indicator.component.d.ts +0 -5
  37. package/lib/components/page-header/page-header.component.d.ts +0 -105
  38. package/lib/components/search-header/search-header.component.d.ts +0 -71
  39. package/lib/directives/advanced.directive.d.ts +0 -11
  40. package/lib/directives/basic.directive.d.ts +0 -11
  41. package/lib/directives/content-container.directive.d.ts +0 -23
  42. package/lib/directives/content.directive.d.ts +0 -21
  43. package/lib/directives/if-breakpoint.directive.d.ts +0 -13
  44. package/lib/directives/if-permission.directive.d.ts +0 -33
  45. package/lib/directives/loading-indicator.directive.d.ts +0 -16
  46. package/lib/directives/src.directive.d.ts +0 -13
  47. package/lib/directives/template.directive.d.ts +0 -9
  48. package/lib/directives/tooltipOnOverflow.directive.d.ts +0 -13
  49. package/lib/functions/at-least-one-field-filled-validator.d.ts +0 -2
  50. package/lib/functions/flatten-object.d.ts +0 -14
  51. package/lib/model/breadcrumb-menu-item.model.d.ts +0 -56
  52. package/lib/model/button-dialog.d.ts +0 -47
  53. package/lib/model/column-type.model.d.ts +0 -7
  54. package/lib/model/data-action.d.ts +0 -12
  55. package/lib/model/data-column-name-id.model.d.ts +0 -4
  56. package/lib/model/data-sort-direction.d.ts +0 -5
  57. package/lib/model/data-table-column.model.d.ts +0 -12
  58. package/lib/model/diagram-column.d.ts +0 -5
  59. package/lib/model/diagram-data.d.ts +0 -5
  60. package/lib/model/diagram-type.d.ts +0 -5
  61. package/lib/model/filter.model.d.ts +0 -24
  62. package/lib/pipes/dynamic.pipe.d.ts +0 -13
  63. package/lib/pipes/ocxtimeago.pipe.d.ts +0 -16
  64. package/lib/pipes/relative-date.pipe.d.ts +0 -10
  65. package/lib/services/breadcrumb.service.d.ts +0 -20
  66. package/lib/services/export-data.service.d.ts +0 -18
  67. package/lib/services/portal-dialog.service.d.ts +0 -427
  68. package/lib/utils/colorutils.d.ts +0 -12
  69. package/lib/utils/criteria.utils.d.ts +0 -17
  70. package/lib/utils/data-operation-strategy.d.ts +0 -20
  71. package/lib/utils/dateutils.d.ts +0 -8
  72. package/lib/utils/dynamic-locale-id.d.ts +0 -10
  73. package/lib/utils/enum-to-dropdown-options.utils.d.ts +0 -6
  74. package/lib/utils/filter.utils.d.ts +0 -2
  75. package/lib/utils/image-logo-url.utils.d.ts +0 -3
  76. package/lib/utils/objectutils.d.ts +0 -4
  77. package/lib/utils/primeicon.utils.d.ts +0 -5
  78. package/lib/utils/rxjs-utils.d.ts +0 -3
  79. package/lib/utils/string-and-array-helper-functions.utils.d.ts +0 -3
  80. package/lib/utils/template.utils.d.ts +0 -2
  81. package/testing/column-group-selection.harness.d.ts +0 -6
  82. package/testing/content-container.harness.d.ts +0 -7
  83. package/testing/content.harness.d.ts +0 -10
  84. package/testing/custom-group-column-selector.harness.d.ts +0 -14
  85. package/testing/data-layout-selection.harness.d.ts +0 -12
  86. package/testing/data-list-grid.harness.d.ts +0 -18
  87. package/testing/data-table.harness.d.ts +0 -26
  88. package/testing/data-view.harness.d.ts +0 -8
  89. package/testing/default-grid-item.harness.d.ts +0 -11
  90. package/testing/default-list-item.harness.d.ts +0 -12
  91. package/testing/diagram.harness.d.ts +0 -10
  92. package/testing/dialog-content.harness.d.ts +0 -6
  93. package/testing/dialog-footer.harness.d.ts +0 -14
  94. package/testing/dialog-inline.harness.d.ts +0 -8
  95. package/testing/dialog-message-content.harness.d.ts +0 -8
  96. package/testing/filter-view.harness.d.ts +0 -12
  97. package/testing/group-by-count-diagram.harness.d.ts +0 -6
  98. package/testing/interactive-data-view.harness.d.ts +0 -19
  99. package/testing/lifecycle.harness.d.ts +0 -6
  100. package/testing/more-actions-menu-button.harness.d.ts +0 -10
  101. package/testing/page-header.harness.d.ts +0 -36
  102. package/testing/search-header.harness.d.ts +0 -15
  103. package/testing/slot.harness.d.ts +0 -7
@@ -1,56 +0,0 @@
1
- import { QueryParamsHandling } from '@angular/router';
2
- import { MenuItem } from 'primeng/api';
3
- export interface BreadCrumbMenuItem {
4
- labelKey?: string;
5
- icon?: string;
6
- command?: (event?: any) => void;
7
- url?: string;
8
- items?: MenuItem[];
9
- expanded?: boolean;
10
- disabled?: boolean;
11
- visible?: boolean;
12
- target?: string;
13
- escape?: boolean;
14
- routerLinkActiveOptions?: any;
15
- separator?: boolean;
16
- badge?: string;
17
- tooltip?: string;
18
- tooltipPosition?: string;
19
- badgeStyleClass?: string;
20
- style?: any;
21
- styleClass?: string;
22
- titleKey?: string;
23
- id?: string;
24
- automationId?: any;
25
- tabindex?: string;
26
- routerLink?: any;
27
- queryParams?: {
28
- [k: string]: any;
29
- };
30
- fragment?: string;
31
- queryParamsHandling?: QueryParamsHandling;
32
- preserveFragment?: boolean;
33
- skipLocationChange?: boolean;
34
- replaceUrl?: boolean;
35
- iconStyle?: any;
36
- iconClass?: string;
37
- state?: {
38
- [k: string]: any;
39
- };
40
- tooltipOptions?: {
41
- tooltipLabel?: string;
42
- tooltipPosition?: 'right' | 'left' | 'top' | 'bottom';
43
- tooltipEvent?: 'hover' | 'focus';
44
- appendTo?: any;
45
- positionStyle?: string;
46
- tooltipStyleClass?: string;
47
- tooltipZIndex?: string;
48
- escape?: boolean;
49
- disabled?: boolean;
50
- positionTop?: number;
51
- positionLeft?: number;
52
- showDelay?: number;
53
- hideDelay?: number;
54
- life?: number;
55
- };
56
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- export declare enum ColumnType {
2
- STRING = "STRING",
3
- NUMBER = "NUMBER",
4
- DATE = "DATE",
5
- RELATIVE_DATE = "RELATIVE_DATE",
6
- TRANSLATION_KEY = "TRANSLATION_KEY"
7
- }
@@ -1,12 +0,0 @@
1
- export interface DataAction {
2
- id?: string;
3
- labelKey?: string;
4
- icon?: string;
5
- permission: string | string[];
6
- classes?: string[];
7
- disabled?: boolean;
8
- actionVisibleField?: string;
9
- actionEnabledField?: string;
10
- showAsOverflow?: boolean;
11
- callback: (data: any) => void;
12
- }
@@ -1,4 +0,0 @@
1
- export interface DataColumnNameId {
2
- columnId: string;
3
- columnName: string | number;
4
- }
@@ -1,5 +0,0 @@
1
- export declare const enum DataSortDirection {
2
- ASCENDING = "ASCENDING",
3
- DESCENDING = "DESCENDING",
4
- NONE = "NONE"
5
- }
@@ -1,12 +0,0 @@
1
- import { ColumnType } from './column-type.model';
2
- import { FilterType } from './filter.model';
3
- export interface DataTableColumn {
4
- columnType: ColumnType;
5
- nameKey: string;
6
- id: string;
7
- sortable?: boolean;
8
- filterable?: boolean;
9
- filterType?: FilterType;
10
- predefinedGroupKeys?: string[];
11
- dateFormat?: string;
12
- }
@@ -1,5 +0,0 @@
1
- import { ColumnType } from './column-type.model';
2
- export type DiagramColumn = {
3
- columnType: ColumnType;
4
- id: string;
5
- };
@@ -1,5 +0,0 @@
1
- export type DiagramData = {
2
- label: string;
3
- value: number;
4
- backgroundColor?: string;
5
- };
@@ -1,5 +0,0 @@
1
- export declare const enum DiagramType {
2
- PIE = "PIE",
3
- VERTICAL_BAR = "VERTICAL_BAR",
4
- HORIZONTAL_BAR = "HORIZONTAL_BAR"
5
- }
@@ -1,24 +0,0 @@
1
- export interface ColumnFilterDataSelectOptions {
2
- reverse: boolean;
3
- }
4
- export type FilterObject = {
5
- columnId: string;
6
- filterType?: FilterType;
7
- };
8
- export type Filter = FilterObject & {
9
- value: unknown;
10
- };
11
- export declare enum FilterType {
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"
24
- }
@@ -1,13 +0,0 @@
1
- import { PipeTransform, Type } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DynamicPipe implements PipeTransform {
4
- private injector;
5
- knownPipes: {
6
- [name: string]: PipeTransform;
7
- };
8
- constructor();
9
- transform(value: any, requiredPipe?: Type<any>, pipeArgs?: any): any;
10
- transform2(value: any, pipeToken: any, ...pipeArgs: any[]): any;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<DynamicPipe, "dynamicPipe", false>;
13
- }
@@ -1,16 +0,0 @@
1
- import { OnDestroy, PipeTransform } from '@angular/core';
2
- import { TranslatePipe } from '@ngx-translate/core';
3
- import * as i0 from "@angular/core";
4
- export declare class OcxTimeAgoPipe extends TranslatePipe implements OnDestroy, PipeTransform {
5
- private changeDetectorRef;
6
- private ngZone;
7
- private translateService;
8
- private timer;
9
- constructor();
10
- transform(value: string): any;
11
- ngOnDestroy(): void;
12
- private removeTimer;
13
- private getSecondsUntilUpdate;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<OcxTimeAgoPipe, never>;
15
- static ɵpipe: i0.ɵɵPipeDeclaration<OcxTimeAgoPipe, "timeago", false>;
16
- }
@@ -1,10 +0,0 @@
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,20 +0,0 @@
1
- import { MenuItem } from 'primeng/api';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { BreadCrumbMenuItem } from '../model/breadcrumb-menu-item.model';
4
- import * as i0 from "@angular/core";
5
- export declare class BreadcrumbService {
6
- private readonly router;
7
- private readonly activeRoute;
8
- private readonly translateService;
9
- private readonly itemsSource$;
10
- generatedItemsSource: BehaviorSubject<MenuItem[]>;
11
- itemsHandler: import("rxjs").Observable<MenuItem[]>;
12
- constructor();
13
- private generateBreadcrumbs;
14
- private addBreadcrumb;
15
- private createBreadcrumb;
16
- private getLabel;
17
- setItems(items: BreadCrumbMenuItem[]): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
20
- }
@@ -1,18 +0,0 @@
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 escapeDelimiterAndLineBreaks;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportDataService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<ExportDataService>;
18
- }