@onecx/angular-accelerator 6.0.0-rc.9 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/i18n/primeng/de.json +1 -1
- package/assets/i18n/primeng/en.json +1 -1
- package/fesm2022/onecx-angular-accelerator-testing.mjs +71 -6
- package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +1184 -802
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/index.d.ts +13 -10
- package/lib/angular-accelerator-primeng.module.d.ts +1 -1
- package/lib/angular-accelerator.module.d.ts +27 -20
- package/lib/components/data-list-grid/data-list-grid.component.d.ts +2 -19
- package/lib/components/data-table/data-table.component.d.ts +9 -38
- package/lib/components/data-view/data-view.component.d.ts +2 -72
- 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 +1 -3
- package/lib/components/group-by-count-diagram/group-by-count-diagram.component.d.ts +1 -6
- package/lib/components/interactive-data-view/interactive-data-view.component.d.ts +27 -49
- package/lib/components/loading-indicator/loading-indicator.component.d.ts +5 -0
- package/lib/components/page-header/page-header.component.d.ts +0 -4
- package/lib/components/search-header/search-header.component.d.ts +1 -6
- package/lib/directives/basic.directive.d.ts +11 -0
- package/lib/directives/if-permission.directive.d.ts +1 -1
- package/lib/directives/loading-indicator.directive.d.ts +16 -0
- 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/pipes/relative-date.pipe.d.ts +10 -0
- package/lib/services/export-data.service.d.ts +18 -0
- package/lib/services/portal-dialog.service.d.ts +427 -0
- package/lib/utils/dateutils.d.ts +0 -4
- package/lib/utils/image-logo-url.utils.d.ts +3 -0
- package/migrations.json +9 -1
- package/package.json +9 -8
- package/testing/column-group-selection.harness.d.ts +1 -1
- package/testing/custom-group-column-selector.harness.d.ts +6 -6
- package/testing/data-layout-selection.harness.d.ts +3 -3
- 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 +4 -0
- package/testing/interactive-data-view.harness.d.ts +8 -8
- package/testing/lifecycle.harness.d.ts +2 -2
- package/testing/page-header.harness.d.ts +6 -6
- package/testing/search-header.harness.d.ts +5 -5
- package/lib/components/data-loading-error/data-loading-error.component.d.ts +0 -8
- package/lib/injection-tokens/has-permission-checker.d.ts +0 -13
- package/lib/services/translation-cache.service.d.ts +0 -19
- package/lib/services/translation-connection.service.d.ts +0 -10
- package/lib/utils/async-translate-loader.utils.d.ts +0 -12
- package/lib/utils/caching-translate-loader.utils.d.ts +0 -16
- 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 -8
- package/lib/utils/provide-connection-service.d.ts +0 -6
- package/lib/utils/translate.combined.loader.d.ts +0 -12
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
2
2
|
import { DataTableHarness } from './data-table.harness';
|
|
3
|
-
import { PButtonHarness, PChipHarness, SpanHarness } from '
|
|
3
|
+
import { PButtonHarness, PChipHarness, SpanHarness } from '@onecx/angular-testing';
|
|
4
4
|
export declare class FilterViewHarness extends ContentContainerComponentHarness {
|
|
5
5
|
static hostSelector: string;
|
|
6
|
-
getOverlayResetFiltersButton:
|
|
7
|
-
getFiltersButton:
|
|
8
|
-
getChipsResetFiltersButton:
|
|
9
|
-
getChips:
|
|
10
|
-
getNoFiltersMessage:
|
|
6
|
+
getOverlayResetFiltersButton: () => Promise<PButtonHarness | null>;
|
|
7
|
+
getFiltersButton: () => Promise<PButtonHarness | null>;
|
|
8
|
+
getChipsResetFiltersButton: () => Promise<PButtonHarness | null>;
|
|
9
|
+
getChips: () => Promise<PChipHarness[]>;
|
|
10
|
+
getNoFiltersMessage: () => Promise<SpanHarness | null>;
|
|
11
11
|
getDataTable(): Promise<DataTableHarness | null>;
|
|
12
12
|
}
|
|
@@ -2,5 +2,5 @@ import { ComponentHarness } from '@angular/cdk/testing';
|
|
|
2
2
|
import { DiagramHarness } from './diagram.harness';
|
|
3
3
|
export declare class GroupByCountDiagramHarness extends ComponentHarness {
|
|
4
4
|
static hostSelector: string;
|
|
5
|
-
getDiagram:
|
|
5
|
+
getDiagram: () => Promise<DiagramHarness>;
|
|
6
6
|
}
|
package/testing/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export * from './more-actions-menu-button.harness';
|
|
|
17
17
|
export * from './page-header.harness';
|
|
18
18
|
export * from './slot.harness';
|
|
19
19
|
export * from './search-header.harness';
|
|
20
|
+
export * from '../testing/dialog-content.harness';
|
|
21
|
+
export * from '../testing/dialog-footer.harness';
|
|
22
|
+
export * from '../testing/dialog-inline.harness';
|
|
23
|
+
export * from '../testing/dialog-message-content.harness';
|
|
20
24
|
export * from '@angular/cdk/testing';
|
|
21
25
|
export * from '@angular/cdk/testing/testbed';
|
|
22
26
|
export * from '@onecx/angular-testing';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
2
2
|
import { PButtonHarness } from '@onecx/angular-testing';
|
|
3
3
|
import { PSelectHarness } from '@onecx/angular-testing';
|
|
4
|
-
import { CustomGroupColumnSelectorHarness } from '.';
|
|
5
4
|
import { DataLayoutSelectionHarness } from './data-layout-selection.harness';
|
|
6
5
|
import { DataViewHarness } from './data-view.harness';
|
|
7
6
|
import { SlotHarness } from './slot.harness';
|
|
7
|
+
import { CustomGroupColumnSelectorHarness } from './custom-group-column-selector.harness';
|
|
8
8
|
export declare class InteractiveDataViewHarness extends ContentContainerComponentHarness {
|
|
9
9
|
static hostSelector: string;
|
|
10
10
|
getHeaderStyleClasses(): Promise<string[]>;
|
|
11
11
|
getContentStyleClasses(): Promise<string[]>;
|
|
12
|
-
getDataLayoutSelection:
|
|
13
|
-
getColumnGroupSelectionSelect:
|
|
14
|
-
getCustomGroupColumnSelector:
|
|
15
|
-
getCustomGroupColumnSelectorSlot:
|
|
16
|
-
getDataListGridSortingSelect:
|
|
17
|
-
getDataListGridSortingButton:
|
|
18
|
-
getDataView:
|
|
12
|
+
getDataLayoutSelection: () => Promise<DataLayoutSelectionHarness>;
|
|
13
|
+
getColumnGroupSelectionSelect: () => Promise<PSelectHarness | null>;
|
|
14
|
+
getCustomGroupColumnSelector: () => Promise<CustomGroupColumnSelectorHarness | null>;
|
|
15
|
+
getCustomGroupColumnSelectorSlot: () => Promise<SlotHarness | null>;
|
|
16
|
+
getDataListGridSortingSelect: () => Promise<PSelectHarness | null>;
|
|
17
|
+
getDataListGridSortingButton: () => Promise<PButtonHarness | null>;
|
|
18
|
+
getDataView: () => Promise<DataViewHarness>;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentContainerComponentHarness } from "@angular/cdk/testing";
|
|
2
2
|
export declare class LifecycleHarness extends ContentContainerComponentHarness {
|
|
3
3
|
static hostSelector: string;
|
|
4
|
-
getSteps:
|
|
5
|
-
getHighlightedSteps:
|
|
4
|
+
getSteps: () => Promise<import("@angular/cdk/harness-environment.d-BbFzIFDE").T[]>;
|
|
5
|
+
getHighlightedSteps: () => Promise<import("@angular/cdk/harness-environment.d-BbFzIFDE").T[]>;
|
|
6
6
|
}
|
|
@@ -2,9 +2,9 @@ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular
|
|
|
2
2
|
import { ListItemHarness, MenuItemHarness, PBreadcrumbHarness, PButtonHarness, PMenuHarness } from '@onecx/angular-testing';
|
|
3
3
|
export declare class PageHeaderHarness extends ComponentHarness {
|
|
4
4
|
static hostSelector: string;
|
|
5
|
-
getPageHeaderWrapperHarness:
|
|
6
|
-
getBreadcrumb:
|
|
7
|
-
getMenu:
|
|
5
|
+
getPageHeaderWrapperHarness: () => Promise<import("@onecx/angular-testing").TestElement[]>;
|
|
6
|
+
getBreadcrumb: () => Promise<PBreadcrumbHarness | null>;
|
|
7
|
+
getMenu: () => Promise<PMenuHarness | null>;
|
|
8
8
|
getElementByTitle(title: string): Promise<import("@onecx/angular-testing").TestElement | null>;
|
|
9
9
|
getElementByAriaLabel(ariaLabel: string): Promise<import("@onecx/angular-testing").TestElement | null>;
|
|
10
10
|
getObjectInfos(): Promise<ObjectDetailItemHarness[]>;
|
|
@@ -24,9 +24,9 @@ interface ObjectDetailItemHarnessFilters extends BaseHarnessFilters {
|
|
|
24
24
|
}
|
|
25
25
|
declare class ObjectDetailItemHarness extends ComponentHarness {
|
|
26
26
|
static hostSelector: string;
|
|
27
|
-
getLabelElement:
|
|
28
|
-
getValueElement:
|
|
29
|
-
getIconElement:
|
|
27
|
+
getLabelElement: () => Promise<import("@onecx/angular-testing").TestElement>;
|
|
28
|
+
getValueElement: () => Promise<import("@onecx/angular-testing").TestElement | null>;
|
|
29
|
+
getIconElement: () => Promise<import("@onecx/angular-testing").TestElement | null>;
|
|
30
30
|
static with(options: ObjectDetailItemHarnessFilters): HarnessPredicate<ObjectDetailItemHarness>;
|
|
31
31
|
getLabel(): Promise<string>;
|
|
32
32
|
getValue(): Promise<string | undefined>;
|
|
@@ -4,11 +4,11 @@ import { PageHeaderHarness } from './page-header.harness';
|
|
|
4
4
|
import { MoreActionsMenuButtonHarness } from './more-actions-menu-button.harness';
|
|
5
5
|
export declare class SearchHeaderHarness extends ComponentHarness {
|
|
6
6
|
static hostSelector: string;
|
|
7
|
-
getPageHeader:
|
|
8
|
-
getSearchButton:
|
|
9
|
-
getResetButton:
|
|
10
|
-
getSimpleAdvancedButton:
|
|
11
|
-
getMoreActionsMenuButton:
|
|
7
|
+
getPageHeader: () => Promise<PageHeaderHarness>;
|
|
8
|
+
getSearchButton: () => Promise<PButtonHarness>;
|
|
9
|
+
getResetButton: () => Promise<PButtonHarness>;
|
|
10
|
+
getSimpleAdvancedButton: () => Promise<PButtonHarness | null>;
|
|
11
|
+
getMoreActionsMenuButton: () => Promise<MoreActionsMenuButtonHarness | null>;
|
|
12
12
|
clickResetButton(): Promise<void>;
|
|
13
13
|
clickSearchButton(): Promise<void>;
|
|
14
14
|
toggleSimpleAdvanced(): Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Show this data not found page component if the main entity of a page could not be loaded.
|
|
4
|
-
*/
|
|
5
|
-
export declare class DataLoadingErrorComponent {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataLoadingErrorComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataLoadingErrorComponent, "ocx-data-loading-error", never, {}, {}, never, never, false, never>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
3
|
-
*/
|
|
4
|
-
export { HasPermissionChecker } from '@onecx/angular-utils';
|
|
5
|
-
/**
|
|
6
|
-
* This checker always returns true, basically disabling the permission system on the UI side
|
|
7
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
8
|
-
*/
|
|
9
|
-
export { AlwaysGrantPermissionChecker } from '@onecx/angular-utils';
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
12
|
-
*/
|
|
13
|
-
export { HAS_PERMISSION_CHECKER } from '@onecx/angular-utils';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
declare global {
|
|
5
|
-
interface Window {
|
|
6
|
-
onecxTranslations: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
11
|
-
*/
|
|
12
|
-
export declare class TranslationCacheService implements OnDestroy {
|
|
13
|
-
private translationTopic$;
|
|
14
|
-
constructor();
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
getTranslationFile(url: string, cacheMissFunction: () => Observable<any>): Observable<any>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationCacheService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationCacheService>;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TranslationConnectionService implements OnDestroy {
|
|
5
|
-
languageSub: Subscription;
|
|
6
|
-
constructor();
|
|
7
|
-
ngOnDestroy(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationConnectionService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationConnectionService>;
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AsyncTranslateLoader implements TranslateLoader {
|
|
7
|
-
private translateLoader$;
|
|
8
|
-
static lastTimerId: number;
|
|
9
|
-
timerId: number;
|
|
10
|
-
constructor(translateLoader$: Observable<TranslateLoader>);
|
|
11
|
-
getTranslation(lang: string): Observable<any>;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CachingTranslateLoader implements TranslateLoader {
|
|
9
|
-
private translationCache;
|
|
10
|
-
private http;
|
|
11
|
-
private prefix?;
|
|
12
|
-
private suffix?;
|
|
13
|
-
private translateLoader;
|
|
14
|
-
constructor(translationCache: TranslationCacheService, http: HttpClient, prefix?: string | undefined, suffix?: string | undefined);
|
|
15
|
-
getTranslation(lang: string): Observable<any>;
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ReplaySubject } from 'rxjs';
|
|
3
|
-
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
4
|
-
import { AppStateService } from '@onecx/angular-integration-interface';
|
|
5
|
-
import { AsyncTranslateLoader } from './async-translate-loader.utils';
|
|
6
|
-
export declare function createRemoteComponentAndMfeTranslateLoader(httpClient: HttpClient, baseUrl: ReplaySubject<string>, translationCacheService: TranslationCacheService, appStateService: AppStateService): AsyncTranslateLoader;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
-
import { ReplaySubject } from 'rxjs';
|
|
4
|
-
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
5
|
-
export declare function createRemoteComponentTranslateLoader(http: HttpClient, baseUrlReplaySubject$: ReplaySubject<string>, translationCacheService?: TranslationCacheService): TranslateLoader;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
-
import { AppStateService } from '@onecx/angular-integration-interface';
|
|
4
|
-
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createTranslateLoader(http: HttpClient, appStateService: AppStateService, translationCacheService?: TranslationCacheService): TranslateLoader;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TranslationConnectionService } from '../services/translation-connection.service';
|
|
2
|
-
export declare function provideTranslationConnectionService(): (typeof TranslationConnectionService | {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<readonly (() => void)[]>;
|
|
4
|
-
multi: boolean;
|
|
5
|
-
useFactory(): () => TranslationConnectionService;
|
|
6
|
-
})[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Please import from `@onecx/angular-utils` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TranslateCombinedLoader implements TranslateLoader {
|
|
7
|
-
private _loaders;
|
|
8
|
-
constructor(...loaders: TranslateLoader[]);
|
|
9
|
-
getTranslation(lang: string): Observable<object>;
|
|
10
|
-
isObject(item: any): any;
|
|
11
|
-
mergeDeep(target: any, source: any): any;
|
|
12
|
-
}
|