@gravitee/ui-policy-studio-angular 9.6.0 → 10.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 (100) hide show
  1. package/{esm2020 → esm2022}/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/components/flow-details/gio-ps-flow-details.component.mjs +5 -5
  3. package/{esm2020 → esm2022}/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.mjs +5 -5
  4. package/{esm2020 → esm2022}/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +5 -5
  5. package/{esm2020 → esm2022}/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +5 -5
  6. package/{esm2020 → esm2022}/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +4 -4
  7. package/{esm2020 → esm2022}/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.mjs +4 -4
  8. package/{esm2020 → esm2022}/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +4 -4
  9. package/{esm2020 → esm2022}/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +5 -5
  10. package/{esm2020 → esm2022}/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +5 -5
  11. package/{esm2020 → esm2022}/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +5 -5
  12. package/{esm2020 → esm2022}/lib/components/step-form/gio-ps-step-form.component.mjs +5 -5
  13. package/{esm2020 → esm2022}/lib/gio-policy-studio.component.mjs +5 -5
  14. package/{esm2020 → esm2022}/lib/gio-policy-studio.module.mjs +53 -53
  15. package/{esm2020 → esm2022}/lib/gio-policy-studio.service.mjs +4 -4
  16. package/esm2022/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +41 -0
  17. package/esm2022/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.mjs +35 -0
  18. package/esm2022/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.mjs +126 -0
  19. package/esm2022/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.mjs +50 -0
  20. package/esm2022/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +60 -0
  21. package/esm2022/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.mjs +128 -0
  22. package/esm2022/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.mjs +98 -0
  23. package/esm2022/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +71 -0
  24. package/esm2022/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +87 -0
  25. package/{esm2020 → esm2022}/testing/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.harness.mjs +2 -2
  26. package/esm2022/testing/lib/components/step-form/gio-ps-step-form.harness.mjs +49 -0
  27. package/esm2022/testing/lib/gio-policy-studio.harness.mjs +161 -0
  28. package/{fesm2020 → fesm2022}/gravitee-ui-policy-studio-angular-testing.mjs +12 -12
  29. package/{fesm2020 → fesm2022}/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
  30. package/{fesm2020 → fesm2022}/gravitee-ui-policy-studio-angular.mjs +103 -103
  31. package/{fesm2020 → fesm2022}/gravitee-ui-policy-studio-angular.mjs.map +1 -1
  32. package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +1 -1
  33. package/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.d.ts +1 -1
  34. package/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.d.ts +1 -1
  35. package/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.d.ts +1 -1
  36. package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +1 -1
  37. package/lib/components/step-form/gio-ps-step-form.component.d.ts +1 -1
  38. package/lib/gio-policy-studio.component.d.ts +1 -1
  39. package/package.json +14 -22
  40. package/esm2020/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +0 -41
  41. package/esm2020/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.mjs +0 -35
  42. package/esm2020/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.mjs +0 -126
  43. package/esm2020/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.mjs +0 -50
  44. package/esm2020/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +0 -60
  45. package/esm2020/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.mjs +0 -128
  46. package/esm2020/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.mjs +0 -98
  47. package/esm2020/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +0 -71
  48. package/esm2020/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +0 -87
  49. package/esm2020/testing/lib/components/step-form/gio-ps-step-form.harness.mjs +0 -49
  50. package/esm2020/testing/lib/gio-policy-studio.harness.mjs +0 -161
  51. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +0 -1443
  52. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +0 -1
  53. package/fesm2015/gravitee-ui-policy-studio-angular.mjs +0 -1645
  54. package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +0 -1
  55. /package/{esm2020 → esm2022}/gravitee-ui-policy-studio-angular.mjs +0 -0
  56. /package/{esm2020 → esm2022}/lib/components/flow-form-dialog/gio-ps-flow-form-dialog-result.model.mjs +0 -0
  57. /package/{esm2020 → esm2022}/lib/gio-policy-studio.model.mjs +0 -0
  58. /package/{esm2020 → esm2022}/lib/models/ConnectorsInfo.mjs +0 -0
  59. /package/{esm2020 → esm2022}/lib/models/PolicySchemaFetcher.mjs +0 -0
  60. /package/{esm2020 → esm2022}/lib/models/SaveOutput.mjs +0 -0
  61. /package/{esm2020 → esm2022}/lib/models/flow/ApiType.mjs +0 -0
  62. /package/{esm2020 → esm2022}/lib/models/flow/Flow.mjs +0 -0
  63. /package/{esm2020 → esm2022}/lib/models/flow/FlowExecution.mjs +0 -0
  64. /package/{esm2020 → esm2022}/lib/models/flow/HttpMethod.mjs +0 -0
  65. /package/{esm2020 → esm2022}/lib/models/flow/Selector.mjs +0 -0
  66. /package/{esm2020 → esm2022}/lib/models/flow/Step.mjs +0 -0
  67. /package/{esm2020 → esm2022}/lib/models/flow/index.mjs +0 -0
  68. /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
  69. /package/{esm2020 → esm2022}/lib/models/plan/Plan.mjs +0 -0
  70. /package/{esm2020 → esm2022}/lib/models/plan/index.mjs +0 -0
  71. /package/{esm2020 → esm2022}/lib/models/policy/Policy.mjs +0 -0
  72. /package/{esm2020 → esm2022}/lib/models/policy/index.mjs +0 -0
  73. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  74. /package/{esm2020 → esm2022}/testing/gravitee-ui-policy-studio-angular-testing.mjs +0 -0
  75. /package/{esm2020 → esm2022}/testing/lib/models/ConnectorsInfo.fixture.mjs +0 -0
  76. /package/{esm2020 → esm2022}/testing/lib/models/ConnectorsInfo.mjs +0 -0
  77. /package/{esm2020 → esm2022}/testing/lib/models/PolicySchemaFetcher.mjs +0 -0
  78. /package/{esm2020 → esm2022}/testing/lib/models/SaveOutput.mjs +0 -0
  79. /package/{esm2020 → esm2022}/testing/lib/models/flow/ApiType.mjs +0 -0
  80. /package/{esm2020 → esm2022}/testing/lib/models/flow/Flow.fixture.mjs +0 -0
  81. /package/{esm2020 → esm2022}/testing/lib/models/flow/Flow.mjs +0 -0
  82. /package/{esm2020 → esm2022}/testing/lib/models/flow/FlowExecution.fixture.mjs +0 -0
  83. /package/{esm2020 → esm2022}/testing/lib/models/flow/FlowExecution.mjs +0 -0
  84. /package/{esm2020 → esm2022}/testing/lib/models/flow/HttpMethod.mjs +0 -0
  85. /package/{esm2020 → esm2022}/testing/lib/models/flow/Selector.mjs +0 -0
  86. /package/{esm2020 → esm2022}/testing/lib/models/flow/Step.fixture.mjs +0 -0
  87. /package/{esm2020 → esm2022}/testing/lib/models/flow/Step.mjs +0 -0
  88. /package/{esm2020 → esm2022}/testing/lib/models/flow/index-testing.mjs +0 -0
  89. /package/{esm2020 → esm2022}/testing/lib/models/flow/index.mjs +0 -0
  90. /package/{esm2020 → esm2022}/testing/lib/models/index-testing.mjs +0 -0
  91. /package/{esm2020 → esm2022}/testing/lib/models/index.mjs +0 -0
  92. /package/{esm2020 → esm2022}/testing/lib/models/plan/Plan.fixture.mjs +0 -0
  93. /package/{esm2020 → esm2022}/testing/lib/models/plan/Plan.mjs +0 -0
  94. /package/{esm2020 → esm2022}/testing/lib/models/plan/index-testing.mjs +0 -0
  95. /package/{esm2020 → esm2022}/testing/lib/models/plan/index.mjs +0 -0
  96. /package/{esm2020 → esm2022}/testing/lib/models/policy/Policy.fixture.mjs +0 -0
  97. /package/{esm2020 → esm2022}/testing/lib/models/policy/Policy.mjs +0 -0
  98. /package/{esm2020 → esm2022}/testing/lib/models/policy/index-testing.mjs +0 -0
  99. /package/{esm2020 → esm2022}/testing/lib/models/policy/index.mjs +0 -0
  100. /package/{esm2020 → esm2022}/testing/public-testing-api.mjs +0 -0
@@ -653,6 +653,7 @@ class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
653
653
  this.locateGroupByText = (text) => this.locatorForOptional(DivHarness.with({ selector: '.list__flowsGroup', text }));
654
654
  this.locateSelectedFlow = this.locatorForOptional(DivHarness.with({ selector: '.list__flowsGroup__flow.selected' }));
655
655
  }
656
+ static { this.hostSelector = 'gio-ps-flows-menu'; }
656
657
  async getAllFlowsGroups() {
657
658
  const flowsGroups = await this.locateFlowsGroups();
658
659
  return parallel(() => flowsGroups.map(async (flowsGroup) => {
@@ -695,7 +696,6 @@ class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
695
696
  await (await this.locatorFor(MatButtonHarness.with({ selector: '.header__configBtn_edit' }))())?.click();
696
697
  }
697
698
  }
698
- GioPolicyStudioFlowsMenuHarness.hostSelector = 'gio-ps-flows-menu';
699
699
 
700
700
  /*
701
701
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -713,6 +713,7 @@ GioPolicyStudioFlowsMenuHarness.hostSelector = 'gio-ps-flows-menu';
713
713
  * limitations under the License.
714
714
  */
715
715
  class GioPolicyStudioDetailsInfoBarHarness extends ComponentHarness {
716
+ static { this.hostSelector = 'gio-ps-flow-details-info-bar'; }
716
717
  async getInfos() {
717
718
  const infosDiv = await this.locatorForAll(DivHarness.with({ selector: '.info' }))();
718
719
  const allKeyValue = await parallel(() => infosDiv.map(async (info) => {
@@ -728,7 +729,6 @@ class GioPolicyStudioDetailsInfoBarHarness extends ComponentHarness {
728
729
  }, {});
729
730
  }
730
731
  }
731
- GioPolicyStudioDetailsInfoBarHarness.hostSelector = 'gio-ps-flow-details-info-bar';
732
732
 
733
733
  /*
734
734
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -746,6 +746,7 @@ GioPolicyStudioDetailsInfoBarHarness.hostSelector = 'gio-ps-flow-details-info-ba
746
746
  * limitations under the License.
747
747
  */
748
748
  class GioPolicyStudioDetailsHarness extends ComponentHarness {
749
+ static { this.hostSelector = 'gio-ps-flow-details'; }
749
750
  async isDisplayEmptyFlow() {
750
751
  const hostText = await (await this.host()).text();
751
752
  return hostText.includes('No flows yet');
@@ -766,7 +767,6 @@ class GioPolicyStudioDetailsHarness extends ComponentHarness {
766
767
  await deleteFlowBtn.click();
767
768
  }
768
769
  }
769
- GioPolicyStudioDetailsHarness.hostSelector = 'gio-ps-flow-details';
770
770
 
771
771
  /*
772
772
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -794,6 +794,7 @@ class GioPolicyStudioFlowProxyFormDialogHarness extends ComponentHarness {
794
794
  this.methodsInput = this.locatorFor(GioFormTagsInputHarness.with({ selector: '[formControlName="methods"]' }));
795
795
  this.conditionInput = this.locatorFor(MatInputHarness.with({ selector: '[formControlName="condition"]' }));
796
796
  }
797
+ static { this.hostSelector = 'gio-ps-flow-proxy-form-dialog'; }
797
798
  async setFlowFormValues(flow) {
798
799
  if (flow.name) {
799
800
  const nameInput = await this.nameInput();
@@ -859,7 +860,6 @@ class GioPolicyStudioFlowProxyFormDialogHarness extends ComponentHarness {
859
860
  await button.click();
860
861
  }
861
862
  }
862
- GioPolicyStudioFlowProxyFormDialogHarness.hostSelector = 'gio-ps-flow-proxy-form-dialog';
863
863
 
864
864
  /*
865
865
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -888,6 +888,7 @@ class GioPolicyStudioFlowMessageFormDialogHarness extends ComponentHarness {
888
888
  this.entrypointsInput = this.locatorFor(MatSelectHarness.with({ selector: '[formControlName="entrypoints"]' }));
889
889
  this.conditionInput = this.locatorFor(MatInputHarness.with({ selector: '[formControlName="condition"]' }));
890
890
  }
891
+ static { this.hostSelector = 'gio-ps-flow-message-form-dialog'; }
891
892
  async setFlowFormValues(flow) {
892
893
  if (flow.name) {
893
894
  const nameInput = await this.nameInput();
@@ -983,7 +984,6 @@ class GioPolicyStudioFlowMessageFormDialogHarness extends ComponentHarness {
983
984
  };
984
985
  }
985
986
  }
986
- GioPolicyStudioFlowMessageFormDialogHarness.hostSelector = 'gio-ps-flow-message-form-dialog';
987
987
 
988
988
  /*
989
989
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1006,6 +1006,7 @@ class GioPolicyStudioFlowExecutionFormDialogHarness extends ComponentHarness {
1006
1006
  this.getSaveBtn = this.locatorFor(MatButtonHarness.with({ selector: '.actions__saveBtn' }));
1007
1007
  this.getCancelBtn = this.locatorFor(MatButtonHarness.with({ selector: '.actions__cancelBtn' }));
1008
1008
  }
1009
+ static { this.hostSelector = 'gio-ps-flow-execution-form-dialog'; }
1009
1010
  async setFlowFormValues(flowExecution) {
1010
1011
  const modeInput = await this.locatorFor(MatSelectHarness.with({ selector: '[formControlName="mode"]' }))();
1011
1012
  const matchRequiredInput = await this.locatorFor(MatSlideToggleHarness.with({ selector: '[formControlName="matchRequired"]' }))();
@@ -1039,7 +1040,6 @@ class GioPolicyStudioFlowExecutionFormDialogHarness extends ComponentHarness {
1039
1040
  await button.click();
1040
1041
  }
1041
1042
  }
1042
- GioPolicyStudioFlowExecutionFormDialogHarness.hostSelector = 'gio-ps-flow-execution-form-dialog';
1043
1043
 
1044
1044
  /*
1045
1045
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1057,6 +1057,7 @@ GioPolicyStudioFlowExecutionFormDialogHarness.hostSelector = 'gio-ps-flow-execut
1057
1057
  * limitations under the License.
1058
1058
  */
1059
1059
  class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
1060
+ static { this.hostSelector = 'gio-ps-flow-details-phase-step'; }
1060
1061
  /**
1061
1062
  * Get Harness with the given filter.
1062
1063
  *
@@ -1085,7 +1086,6 @@ class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
1085
1086
  await matMenu.clickItem({ text: /Disable|Enable/ });
1086
1087
  }
1087
1088
  }
1088
- GioPolicyStudioDetailsPhaseStepHarness.hostSelector = 'gio-ps-flow-details-phase-step';
1089
1089
 
1090
1090
  /*
1091
1091
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1108,6 +1108,7 @@ class GioPolicyStudioStepFormHarness extends ComponentHarness {
1108
1108
  this.getDescriptionInput = this.locatorFor(MatInputHarness.with({ selector: '[formControlName="description"]' }));
1109
1109
  this.getConditionInput = this.locatorFor(MatInputHarness.with({ selector: '[formControlName="condition"]' }));
1110
1110
  }
1111
+ static { this.hostSelector = 'gio-ps-step-form'; }
1111
1112
  async setStepForm(stepForm) {
1112
1113
  if (stepForm.description) {
1113
1114
  const descriptionInput = await this.getDescriptionInput();
@@ -1132,7 +1133,6 @@ class GioPolicyStudioStepFormHarness extends ComponentHarness {
1132
1133
  return documentation.getAttribute('ng-reflect-content');
1133
1134
  }
1134
1135
  }
1135
- GioPolicyStudioStepFormHarness.hostSelector = 'gio-ps-step-form';
1136
1136
 
1137
1137
  /*
1138
1138
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1150,6 +1150,7 @@ GioPolicyStudioStepFormHarness.hostSelector = 'gio-ps-step-form';
1150
1150
  * limitations under the License.
1151
1151
  */
1152
1152
  class GioPolicyStudioStepEditDialogHarness extends ComponentHarness {
1153
+ static { this.hostSelector = 'gio-ps-step-edit-dialog'; }
1153
1154
  async getPolicyName() {
1154
1155
  return (await this.locatorFor('.title__name')()).text();
1155
1156
  }
@@ -1160,7 +1161,6 @@ class GioPolicyStudioStepEditDialogHarness extends ComponentHarness {
1160
1161
  return (await this.locatorFor('.actions__saveBtn')()).click();
1161
1162
  }
1162
1163
  }
1163
- GioPolicyStudioStepEditDialogHarness.hostSelector = 'gio-ps-step-edit-dialog';
1164
1164
 
1165
1165
  /*
1166
1166
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1183,6 +1183,7 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
1183
1183
  this.policiesLocator = this.locatorForAll(DivHarness.with({ selector: '.policiesCatalog__list__policy' }));
1184
1184
  this.getCategoriesFilter = this.locatorForOptional(MatChipListboxHarness.with({ selector: '[formControlName="categories"]' }));
1185
1185
  }
1186
+ static { this.hostSelector = 'gio-ps-policies-catalog-dialog'; }
1186
1187
  async getPhase() {
1187
1188
  const phase = await this.locatorFor('.title__phase')();
1188
1189
  return phase.text();
@@ -1241,7 +1242,6 @@ class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
1241
1242
  }
1242
1243
  }
1243
1244
  }
1244
- GioPolicyStudioPoliciesCatalogDialogHarness.hostSelector = 'gio-ps-policies-catalog-dialog';
1245
1245
 
1246
1246
  /*
1247
1247
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1269,6 +1269,7 @@ class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
1269
1269
  super(...arguments);
1270
1270
  this.getHeaderName = () => this.locatorForOptional(SpanHarness.with({ selector: '.header__name' }))().then(async (span) => span?.getText() ?? null);
1271
1271
  }
1272
+ static { this.hostSelector = 'gio-ps-flow-details-phase'; }
1272
1273
  /**
1273
1274
  * Get Harness with the given filter.
1274
1275
  *
@@ -1360,7 +1361,6 @@ class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
1360
1361
  await step.clickOnDisableEnable();
1361
1362
  }
1362
1363
  }
1363
- GioPolicyStudioDetailsPhaseHarness.hostSelector = 'gio-ps-flow-details-phase';
1364
1364
 
1365
1365
  /*
1366
1366
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1384,6 +1384,7 @@ class GioPolicyStudioHarness extends ComponentHarness {
1384
1384
  this.detailsHarness = this.locatorFor(GioPolicyStudioDetailsHarness);
1385
1385
  this.phaseHarness = (phaseType) => this.locatorFor(GioPolicyStudioDetailsPhaseHarness.with({ type: phaseType }))();
1386
1386
  }
1387
+ static { this.hostSelector = 'gio-policy-studio'; }
1387
1388
  /**
1388
1389
  * Add a flow to a plan or to "Common flows"
1389
1390
  *
@@ -1512,7 +1513,6 @@ class GioPolicyStudioHarness extends ComponentHarness {
1512
1513
  await flowExecutionDialog.save();
1513
1514
  }
1514
1515
  }
1515
- GioPolicyStudioHarness.hostSelector = 'gio-policy-studio';
1516
1516
 
1517
1517
  /*
1518
1518
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)