@gravitee/ui-policy-studio-angular 7.36.0-fix-ps-v2-99e90dc → 7.36.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/esm2020/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +17 -29
- package/esm2020/lib/components/step-form/gio-ps-step-form.component.mjs +3 -9
- package/esm2020/lib/gio-policy-studio.component.mjs +2 -13
- package/esm2020/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +3 -15
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +2 -17
- package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs +24 -54
- package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs +2 -13
- package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs +23 -50
- package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.d.ts +1 -2
- package/lib/components/step-form/gio-ps-step-form.component.d.ts +0 -1
- package/lib/gio-policy-studio.component.d.ts +2 -5
- package/package.json +1 -1
- package/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.d.ts +0 -3
|
@@ -9,7 +9,7 @@ import { MatSelectHarness } from '@angular/material/select/testing';
|
|
|
9
9
|
import { GioFormTagsInputHarness } from '@gravitee/ui-particles-angular';
|
|
10
10
|
import { MatSlideToggleHarness } from '@angular/material/slide-toggle/testing';
|
|
11
11
|
import { MatMenuHarness } from '@angular/material/menu/testing';
|
|
12
|
-
import {
|
|
12
|
+
import { MatChipListHarness } from '@angular/material/chips/testing';
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
@@ -1181,7 +1181,6 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
|
|
|
1181
1181
|
constructor() {
|
|
1182
1182
|
super(...arguments);
|
|
1183
1183
|
this.policiesLocator = this.locatorForAll(DivHarness.with({ selector: '.policiesCatalog__list__policy' }));
|
|
1184
|
-
this.getCategoriesFilter = this.locatorForOptional(MatChipListboxHarness.with({ selector: '[formControlName="categories"]' }));
|
|
1185
1184
|
}
|
|
1186
1185
|
async getPhase() {
|
|
1187
1186
|
const phase = await this.locatorFor('.title__phase')();
|
|
@@ -1219,7 +1218,7 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
|
|
|
1219
1218
|
return await this.locatorFor(GioPolicyStudioStepFormHarness)();
|
|
1220
1219
|
}
|
|
1221
1220
|
async getCategoriesSelection() {
|
|
1222
|
-
const chipList = await this.
|
|
1221
|
+
const chipList = await this.locatorForOptional(MatChipListHarness.with({ ancestor: '.policiesCatalog__categoriesSelection' }))();
|
|
1223
1222
|
if (!chipList) {
|
|
1224
1223
|
return [];
|
|
1225
1224
|
}
|
|
@@ -1230,16 +1229,6 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
|
|
|
1230
1229
|
return { name, selected };
|
|
1231
1230
|
}));
|
|
1232
1231
|
}
|
|
1233
|
-
async selectCategoryFilter(categoryName) {
|
|
1234
|
-
const chipList = await this.getCategoriesFilter();
|
|
1235
|
-
await chipList?.selectChips({ text: categoryName });
|
|
1236
|
-
}
|
|
1237
|
-
async searchFilter(search) {
|
|
1238
|
-
const searchInput = await this.locatorFor(MatInputHarness.with({ selector: '[formControlName="search"]' }))();
|
|
1239
|
-
if (searchInput) {
|
|
1240
|
-
await searchInput.setValue(search);
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
1232
|
}
|
|
1244
1233
|
GioPolicyStudioPoliciesCatalogDialogHarness.hostSelector = 'gio-ps-policies-catalog-dialog';
|
|
1245
1234
|
|