@energycap/components 0.32.28 → 0.32.29-ECAP-17287-Add-Save-Without-Validate.20230407-0819

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.
@@ -174,6 +174,13 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
174
174
  * @param event
175
175
  */
176
176
  onSave(event: Event): Promise<void>;
177
+ /**
178
+ * Function available to trigger a save and bypass the form validation checks.
179
+ * This is useful if the user chooses a remove action from within an edit dialog. If the dialog form is invalid
180
+ * that is no concern to the user if they wish to remove the item they are editing.
181
+ * @param event
182
+ */
183
+ onSaveWithoutValidate(event: Event): Promise<void>;
177
184
  /**
178
185
  * Function called when the component is destroyed
179
186
  */
@@ -230,6 +237,10 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
230
237
  * @param result
231
238
  */
232
239
  private parseInitResult;
240
+ /**
241
+ * Controls the page status and triggers the save action. If there is an error banner will be shown.
242
+ */
243
+ private save;
233
244
  /**
234
245
  * Sets up the router event subscriptions
235
246
  */
@@ -21,4 +21,10 @@ export declare class PageBaseComponentTestHelper<T extends PageBaseComponent> {
21
21
  * @returns {Promise<void>}
22
22
  */
23
23
  clickSave(): Promise<void>;
24
+ /**
25
+ * Simulate saving without validate
26
+ *
27
+ * @returns {Promise<void>}
28
+ */
29
+ clickSaveWithoutValidate(): Promise<void>;
24
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.32.28",
3
+ "version": "0.32.29-ECAP-17287-Add-Save-Without-Validate.20230407-0819",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },