@onecx/angular-accelerator 8.0.0-rc.1 → 8.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -4
- package/assets/i18n/de.json +49 -7
- package/assets/i18n/en.json +48 -7
- package/assets/i18n/storybook-translations/data-table/de.json +6 -0
- package/assets/i18n/storybook-translations/data-table/en.json +6 -0
- package/assets/i18n/storybook-translations/diagram/de.json +11 -0
- package/assets/i18n/storybook-translations/diagram/en.json +11 -0
- package/assets/i18n/storybook-translations/page-header/de.json +5 -0
- package/assets/i18n/storybook-translations/page-header/en.json +5 -0
- package/assets/styles.scss +2 -0
- package/fesm2022/onecx-angular-accelerator-testing.mjs +144 -3
- package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +2966 -3216
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/package.json +20 -22
- package/src/lib/directives/loading-indicator.directive.scss +48 -0
- package/{testing/index.d.ts → types/onecx-angular-accelerator-testing.d.ts} +58 -6
- package/types/onecx-angular-accelerator.d.ts +2516 -0
- package/index.d.ts +0 -2370
- package/migrations/index.d.ts +0 -1
- package/migrations/index.js +0 -5
- package/migrations/index.js.map +0 -1
- package/migrations/v6/migrate-onecx-to-v6.d.ts +0 -2
- package/migrations/v6/migrate-onecx-to-v6.js +0 -8
- package/migrations/v6/migrate-onecx-to-v6.js.map +0 -1
- package/migrations.json +0 -34
package/package.json
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/angular-accelerator",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/onecx/onecx-portal-ui-libs"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/core": "^
|
|
12
|
-
"@angular/cdk": "^
|
|
13
|
-
"@angular/forms": "^
|
|
14
|
-
"@angular/platform-browser": "^
|
|
15
|
-
"@angular/router": "^
|
|
10
|
+
"@angular/common": "^21.0.0",
|
|
11
|
+
"@angular/core": "^21.0.0",
|
|
12
|
+
"@angular/cdk": "^21.0.0",
|
|
13
|
+
"@angular/forms": "^21.0.0",
|
|
14
|
+
"@angular/platform-browser": "^21.0.0",
|
|
15
|
+
"@angular/router": "^21.0.0",
|
|
16
16
|
"@ngx-translate/core": "^17.0.0",
|
|
17
17
|
"@ngneat/until-destroy": "^10.0.0",
|
|
18
|
-
"@onecx/integration-interface": "^8.0.0-rc.
|
|
19
|
-
"@onecx/accelerator": "^8.0.0-rc.
|
|
20
|
-
"@onecx/angular-integration-interface": "^8.0.0-rc.
|
|
21
|
-
"@onecx/angular-remote-components": "^8.0.0-rc.
|
|
22
|
-
"@onecx/angular-testing": "^8.0.0-rc.
|
|
23
|
-
"@onecx/angular-utils": "^8.0.0-rc.
|
|
18
|
+
"@onecx/integration-interface": "^8.0.0-rc.10",
|
|
19
|
+
"@onecx/accelerator": "^8.0.0-rc.10",
|
|
20
|
+
"@onecx/angular-integration-interface": "^8.0.0-rc.10",
|
|
21
|
+
"@onecx/angular-remote-components": "^8.0.0-rc.10",
|
|
22
|
+
"@onecx/angular-testing": "^8.0.0-rc.10",
|
|
23
|
+
"@onecx/angular-utils": "^8.0.0-rc.10",
|
|
24
24
|
"chart.js": "^4.4.3",
|
|
25
25
|
"d3-scale-chromatic": "^3.1.0",
|
|
26
|
+
"fast-deep-equal": "^3.1.3",
|
|
27
|
+
"ngxtension": "^7.1.0",
|
|
26
28
|
"rxjs": "~7.8.1",
|
|
27
|
-
"primeng": "^
|
|
28
|
-
"@
|
|
29
|
-
"@onecx/nx-migration-utils": "^8.0.0-rc.1"
|
|
29
|
+
"primeng": "^21.0.0",
|
|
30
|
+
"@protobi/exceljs": "^4.4.0-protobi.9"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"tslib": "^2.3.0"
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|
|
36
37
|
"style": "./assets/styles.scss",
|
|
37
|
-
"types": "./
|
|
38
|
+
"types": "./types/onecx-angular-accelerator.d.ts",
|
|
38
39
|
"default": "./fesm2022/onecx-angular-accelerator.mjs"
|
|
39
40
|
},
|
|
40
41
|
"./migrations.json": "./migrations.json",
|
|
@@ -42,17 +43,14 @@
|
|
|
42
43
|
"default": "./package.json"
|
|
43
44
|
},
|
|
44
45
|
"./testing": {
|
|
45
|
-
"types": "./testing
|
|
46
|
+
"types": "./types/onecx-angular-accelerator-testing.d.ts",
|
|
46
47
|
"default": "./fesm2022/onecx-angular-accelerator-testing.mjs"
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
"publishConfig": {
|
|
50
51
|
"access": "public"
|
|
51
52
|
},
|
|
52
|
-
"nx-migrations": {
|
|
53
|
-
"migrations": "./migrations.json"
|
|
54
|
-
},
|
|
55
53
|
"module": "fesm2022/onecx-angular-accelerator.mjs",
|
|
56
|
-
"typings": "
|
|
54
|
+
"typings": "types/onecx-angular-accelerator.d.ts",
|
|
57
55
|
"sideEffects": false
|
|
58
56
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
$overlay-bg-color: rgba(0, 0, 0, 0.5);
|
|
2
|
+
$loader-border-bottom-color: transparent;
|
|
3
|
+
|
|
4
|
+
/* You can add global styles to this file, and also import other style files */
|
|
5
|
+
@keyframes rotation {
|
|
6
|
+
0% {
|
|
7
|
+
transform: rotate(0deg);
|
|
8
|
+
}
|
|
9
|
+
100% {
|
|
10
|
+
transform: rotate(360deg);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.element-overlay {
|
|
14
|
+
&::before {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background-color: $overlay-bg-color;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
}
|
|
24
|
+
position: relative;
|
|
25
|
+
cursor: default;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
.loader {
|
|
29
|
+
width: 28px;
|
|
30
|
+
height: 28px;
|
|
31
|
+
border: 3px solid var(--primary-color);
|
|
32
|
+
border-bottom-color: $loader-border-bottom-color;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
display: inline-block;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
animation: rotation 1s linear infinite;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 50%;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
z-index: 2;
|
|
42
|
+
&.loader-small {
|
|
43
|
+
width: 20px;
|
|
44
|
+
height: 20px;
|
|
45
|
+
top: 20%;
|
|
46
|
+
left: 45%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
1
2
|
import { ComponentHarness, ContentContainerComponentHarness, HarnessLoader, TestElement, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
3
|
export * from '@angular/cdk/testing';
|
|
3
4
|
import * as _onecx_angular_testing from '@onecx/angular-testing';
|
|
4
5
|
import { PSelectHarness, PHarness, PButtonHarness, PDialogHarness, PPicklistHarness, PToggleButtonHarness, MenuItemHarness, DivHarness, ButtonHarness, PPaginatorHarness, PMenuHarness, TableHeaderColumnHarness, TableRowHarness, PTableCheckboxHarness, PChartHarness, PChipHarness, SpanHarness, PBreadcrumbHarness, ListItemHarness, ContentContainerComponentHarness as ContentContainerComponentHarness$1, PButtonDirectiveHarness } from '@onecx/angular-testing';
|
|
5
6
|
export * from '@onecx/angular-testing';
|
|
6
|
-
import * as _angular_cdk_harness_environment_d from '@angular/cdk/harness-environment.d';
|
|
7
7
|
export * from '@angular/cdk/testing/testbed';
|
|
8
8
|
|
|
9
9
|
declare class ColumnGroupSelectionHarness extends ComponentHarness {
|
|
@@ -11,6 +11,16 @@ declare class ColumnGroupSelectionHarness extends ComponentHarness {
|
|
|
11
11
|
getPSelect: () => Promise<PSelectHarness>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
declare class OcxConsentHarness extends ComponentHarness {
|
|
15
|
+
static hostSelector: string;
|
|
16
|
+
isConsentMessageVisible(): Promise<boolean>;
|
|
17
|
+
isContentVisible(selector: string): Promise<boolean>;
|
|
18
|
+
clickAgree(): Promise<void>;
|
|
19
|
+
clickWithdraw(): Promise<void>;
|
|
20
|
+
isWithdrawVisible(): Promise<boolean>;
|
|
21
|
+
isInfoVisible(): Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
declare class OcxContentContainerHarness extends ComponentHarness {
|
|
15
25
|
static hostSelector: string;
|
|
16
26
|
getLayoutClasses(): Promise<string[]>;
|
|
@@ -118,6 +128,10 @@ declare class DataTableHarness extends ContentContainerComponentHarness {
|
|
|
118
128
|
hasAmountOfActionButtons(amount: number): Promise<boolean>;
|
|
119
129
|
hasAmountOfDisabledActionButtons(amount: number): Promise<boolean>;
|
|
120
130
|
columnIsFrozen(column: TestElement | null | undefined): Promise<boolean>;
|
|
131
|
+
getExpansionColumnHeaderElement: () => Promise<TestElement | null>;
|
|
132
|
+
getExpansionToggleButtonElements: () => Promise<TestElement[]>;
|
|
133
|
+
expansionColumnHeaderExists(): Promise<boolean>;
|
|
134
|
+
clickExpansionToggle(rowIndex: number): Promise<void>;
|
|
121
135
|
}
|
|
122
136
|
|
|
123
137
|
declare class DataViewHarness extends ContentContainerComponentHarness {
|
|
@@ -132,7 +146,9 @@ declare class DiagramHarness extends ComponentHarness {
|
|
|
132
146
|
getTotalNumberOfResults(): Promise<number | undefined>;
|
|
133
147
|
getSumLabel(): Promise<string | undefined>;
|
|
134
148
|
getDiagramTypeSelectButton(): Promise<_onecx_angular_testing.TestElement | null>;
|
|
149
|
+
getCanvasElement(): Promise<_onecx_angular_testing.TestElement | null>;
|
|
135
150
|
getAllSelectionButtons(): Promise<_onecx_angular_testing.TestElement[]>;
|
|
151
|
+
getCanvasAriaLabel(): Promise<string | null>;
|
|
136
152
|
}
|
|
137
153
|
|
|
138
154
|
declare class FilterViewHarness extends ContentContainerComponentHarness {
|
|
@@ -172,8 +188,8 @@ declare class InteractiveDataViewHarness extends ContentContainerComponentHarnes
|
|
|
172
188
|
|
|
173
189
|
declare class LifecycleHarness extends ContentContainerComponentHarness {
|
|
174
190
|
static hostSelector: string;
|
|
175
|
-
getSteps: () => Promise<
|
|
176
|
-
getHighlightedSteps: () => Promise<
|
|
191
|
+
getSteps: () => Promise<_angular_cdk_testing.TestElement[]>;
|
|
192
|
+
getHighlightedSteps: () => Promise<_angular_cdk_testing.TestElement[]>;
|
|
177
193
|
}
|
|
178
194
|
|
|
179
195
|
declare class PageHeaderHarness extends ComponentHarness {
|
|
@@ -215,15 +231,51 @@ declare class ObjectDetailItemHarness extends ContentContainerComponentHarness {
|
|
|
215
231
|
}
|
|
216
232
|
|
|
217
233
|
declare class SearchHeaderHarness extends ComponentHarness {
|
|
218
|
-
static hostSelector
|
|
234
|
+
static readonly hostSelector = "ocx-search-header";
|
|
219
235
|
getPageHeader: () => Promise<PageHeaderHarness>;
|
|
220
236
|
getSearchButton: () => Promise<PButtonHarness>;
|
|
221
237
|
getResetButton: () => Promise<PButtonHarness>;
|
|
222
238
|
getSimpleAdvancedButton: () => Promise<PButtonHarness | null>;
|
|
223
239
|
getMoreActionsMenuButton: () => Promise<MoreActionsMenuButtonHarness | null>;
|
|
240
|
+
private readonly getBasicContent;
|
|
241
|
+
private readonly getAdvancedContent;
|
|
224
242
|
clickResetButton(): Promise<void>;
|
|
225
243
|
clickSearchButton(): Promise<void>;
|
|
226
244
|
toggleSimpleAdvanced(): Promise<void>;
|
|
245
|
+
isBasicContentVisible(): Promise<boolean>;
|
|
246
|
+
isAdvancedContentVisible(): Promise<boolean>;
|
|
247
|
+
setViewMode(mode: 'basic' | 'advanced'): Promise<void>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
interface OcxSrcHarnessFilters extends BaseHarnessFilters {
|
|
251
|
+
id?: string;
|
|
252
|
+
}
|
|
253
|
+
declare class OcxSrcHarness extends ComponentHarness {
|
|
254
|
+
static readonly hostSelector = "img";
|
|
255
|
+
static with(options?: OcxSrcHarnessFilters): HarnessPredicate<OcxSrcHarness>;
|
|
256
|
+
getId(): Promise<string | null>;
|
|
257
|
+
getSrcAttribute(): Promise<string | null>;
|
|
258
|
+
getSrcProperty(): Promise<string | null>;
|
|
259
|
+
getVisibility(): Promise<string | null>;
|
|
260
|
+
dispatchLoad(): Promise<void>;
|
|
261
|
+
getTestElement(): Promise<TestElement>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
interface OcxTooltipHarnessFilters extends BaseHarnessFilters {
|
|
265
|
+
text?: string;
|
|
266
|
+
hostSelector?: string;
|
|
267
|
+
}
|
|
268
|
+
declare class OcxTooltipHarness extends ComponentHarness {
|
|
269
|
+
private static readonly defaultHostSelector;
|
|
270
|
+
private static configuredHostSelector;
|
|
271
|
+
static get hostSelector(): string;
|
|
272
|
+
static with(options?: OcxTooltipHarnessFilters): HarnessPredicate<OcxTooltipHarness>;
|
|
273
|
+
static withHostSelector(hostSelector: string): HarnessPredicate<OcxTooltipHarness>;
|
|
274
|
+
hover(): Promise<void>;
|
|
275
|
+
unhover(): Promise<void>;
|
|
276
|
+
getTooltipText(): Promise<string | null>;
|
|
277
|
+
getTooltipId(): Promise<string | null>;
|
|
278
|
+
isVisible(): Promise<boolean>;
|
|
227
279
|
}
|
|
228
280
|
|
|
229
281
|
declare class DialogMessageContentHarness extends ComponentHarness {
|
|
@@ -259,5 +311,5 @@ declare class DialogInlineHarness extends ContentContainerComponentHarness$1 {
|
|
|
259
311
|
getDialogFooter: () => Promise<DialogFooterHarness>;
|
|
260
312
|
}
|
|
261
313
|
|
|
262
|
-
export { ColumnGroupSelectionHarness, CustomGroupColumnSelectorHarness, DataLayoutSelectionHarness, DataListGridHarness, DataTableHarness, DataViewHarness, DefaultGridItemHarness, DefaultListItemHarness, DiagramHarness, DialogContentHarness, DialogFooterHarness, DialogInlineHarness, DialogMessageContentHarness, FilterViewHarness, GroupByCountDiagramHarness, InteractiveDataViewHarness, LifecycleHarness, MoreActionsMenuButtonHarness, OcxContentContainerHarness, OcxContentHarness, PageHeaderHarness, SearchHeaderHarness, SlotHarness };
|
|
263
|
-
export type { DataTableHarnessFilters, SlotHarnessFilters };
|
|
314
|
+
export { ColumnGroupSelectionHarness, CustomGroupColumnSelectorHarness, DataLayoutSelectionHarness, DataListGridHarness, DataTableHarness, DataViewHarness, DefaultGridItemHarness, DefaultListItemHarness, DiagramHarness, DialogContentHarness, DialogFooterHarness, DialogInlineHarness, DialogMessageContentHarness, FilterViewHarness, GroupByCountDiagramHarness, InteractiveDataViewHarness, LifecycleHarness, MoreActionsMenuButtonHarness, OcxConsentHarness, OcxContentContainerHarness, OcxContentHarness, OcxSrcHarness, OcxTooltipHarness, PageHeaderHarness, SearchHeaderHarness, SlotHarness };
|
|
315
|
+
export type { DataTableHarnessFilters, OcxSrcHarnessFilters, OcxTooltipHarnessFilters, SlotHarnessFilters };
|