@quadrel-enterprise-ui/framework 18.21.6 → 18.21.7
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/esm2022/lib/page/model/page-config.interface.mjs +1 -1
- package/esm2022/lib/page/page.component.mjs +7 -5
- package/fesm2022/quadrel-enterprise-ui-framework.mjs +90 -88
- package/fesm2022/quadrel-enterprise-ui-framework.mjs.map +1 -1
- package/lib/page/model/page-config.interface.d.ts +18 -1
- package/lib/page/page.component.d.ts +6 -4
- package/package.json +1 -1
|
@@ -251,7 +251,7 @@ export interface QdPageTypeCreateConfig {
|
|
|
251
251
|
/**
|
|
252
252
|
* @description Configuration for the submit button.
|
|
253
253
|
*/
|
|
254
|
-
submit:
|
|
254
|
+
submit: QdPageCreateSubmitAction;
|
|
255
255
|
/**
|
|
256
256
|
* @description Custom actions for the header.
|
|
257
257
|
* You can define a label, a handler, and you can disable or hide the action.
|
|
@@ -428,6 +428,23 @@ export interface QdPageCancelAction {
|
|
|
428
428
|
i18n: string;
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* @description Interface for the submit action on create pages.
|
|
433
|
+
*/
|
|
434
|
+
export interface QdPageCreateSubmitAction {
|
|
435
|
+
/**
|
|
436
|
+
* @description Label for the submit action, used for translation.
|
|
437
|
+
*
|
|
438
|
+
* * If no custom translation key is provided, a standard label will be used by default.
|
|
439
|
+
*/
|
|
440
|
+
label?: {
|
|
441
|
+
i18n: string;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* @description Handler function that is triggered when the submit action is executed.
|
|
445
|
+
*/
|
|
446
|
+
handler: (formValues?: any) => void;
|
|
447
|
+
}
|
|
431
448
|
/**
|
|
432
449
|
* @description Interface for the submit action.
|
|
433
450
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { QdDialogService } from '../dialog/dialog.module';
|
|
4
|
-
import { QdPageStepperComponent } from '../page-stepper/page-stepper.component';
|
|
5
4
|
import { QdPageStepperAdapterDirective } from '../page-stepper/adaptors/page-stepper-adapter.directive';
|
|
6
|
-
import {
|
|
5
|
+
import { QdPageStepperComponent } from '../page-stepper/page-stepper.component';
|
|
7
6
|
import { QdPageTabsAdapterDirective } from '../page-tabs/adaptors/page-tabs-adapter.directive';
|
|
7
|
+
import { QdPageTabsComponent } from '../page-tabs/page-tabs.component';
|
|
8
8
|
import { QdSectionComponent } from '../section/section.component';
|
|
9
9
|
import { QdPageControlPanelComponent } from './control-panel/page-control-panel.component';
|
|
10
10
|
import { QdPageInfoBannerComponent } from './info-banner/page-info-banner.component';
|
|
@@ -229,7 +229,9 @@ import * as i0 from "@angular/core";
|
|
|
229
229
|
*
|
|
230
230
|
* #### **Create Page**
|
|
231
231
|
*
|
|
232
|
-
* On the create page, a new business case can be created. This page typically includes forms for entering data. The submit button is parameterized with the form data and is validated through the QdPageStepper.
|
|
232
|
+
* On the create page, a new business case can be created. This page typically includes forms for entering data. The submit button is parameterized with the form data and is validated through the QdPageStepper.
|
|
233
|
+
* The click on the submit button should submit the creation of the business case or object. You can define a specific handler in the submit button's configuration to create the object.
|
|
234
|
+
* If only one step is needed, the single-step mode can be used. In single-step mode, the stepper is visually hidden and behaves like a **QdSection**.
|
|
233
235
|
*
|
|
234
236
|
* ```ts
|
|
235
237
|
* const createPageConfig: QdPageConfig<MyObjectType> = {
|
|
@@ -304,7 +306,7 @@ import * as i0 from "@angular/core";
|
|
|
304
306
|
*
|
|
305
307
|
* #### **Inspect Page**
|
|
306
308
|
*
|
|
307
|
-
* On an inspect page, a specific business case is displayed and may be edited or submitted.
|
|
309
|
+
* On an inspect page, a specific business case is displayed and may be edited or submitted. Depending on your needs you can hide the submit button.
|
|
308
310
|
* In contrast to a create page, an existing object is shown and potentially updated.
|
|
309
311
|
*
|
|
310
312
|
* The page operates in one of two modes - `view` or `edit` - as defined by the `operationMode` configuration key.
|