@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.
- package/esm2020/lib/shared/page/page-base/page-base.component.mjs +28 -13
- package/esm2020/lib/shared/testing/page-base-component-test-helper.spec.mjs +9 -1
- package/fesm2015/energycap-components.mjs +41 -12
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +35 -12
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/shared/page/page-base/page-base.component.d.ts +11 -0
- package/lib/shared/testing/page-base-component-test-helper.spec.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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
|
}
|