@quadrel-enterprise-ui/framework 21.9.0 → 21.10.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.
|
@@ -33519,15 +33519,16 @@ class QdPageTabHeaderCountersComponent {
|
|
|
33519
33519
|
const filterCounter = (value) => (value && value > 0 ? value : undefined);
|
|
33520
33520
|
return {
|
|
33521
33521
|
positive: filterCounter(counters.positive),
|
|
33522
|
+
warning: filterCounter(counters.warning),
|
|
33522
33523
|
critical: filterCounter(counters.critical)
|
|
33523
33524
|
};
|
|
33524
33525
|
}
|
|
33525
33526
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabHeaderCountersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33526
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageTabHeaderCountersComponent, isStandalone: true, selector: "qd-page-tab-header-counters", inputs: { counters: "counters", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "@if (counters$ | async; as counters) { @if (counters.positive) {\n<span class=\"counter positive\" [attr.data-test-id]=\"testId + '-positive'\">\n {{ counters.positive }}\n</span>\n} @if (counters.critical) {\n<span class=\"counter critical\" [attr.data-test-id]=\"testId + '-critical'\">\n {{ counters.critical }}\n</span>\n} }\n", styles: [":host .counter{display:inline-flex;min-width:1rem;padding:0 .3125rem;border-radius:.5rem;margin-left:.25rem;color:#fff;font-size:.75rem;line-height:1rem;transform:translateY(-.0625rem)}:host .positive{background:#00813a}:host .critical{background:#c70023}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33527
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageTabHeaderCountersComponent, isStandalone: true, selector: "qd-page-tab-header-counters", inputs: { counters: "counters", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "@if (counters$ | async; as counters) { @if (counters.positive) {\n<span class=\"counter positive\" [attr.data-test-id]=\"testId + '-positive'\">\n {{ counters.positive }}\n</span>\n} @if (counters.warning) {\n<span class=\"counter warning\" [attr.data-test-id]=\"testId + '-warning'\">\n {{ counters.warning }}\n</span>\n} @if (counters.critical) {\n<span class=\"counter critical\" [attr.data-test-id]=\"testId + '-critical'\">\n {{ counters.critical }}\n</span>\n} }\n", styles: [":host .counter{display:inline-flex;min-width:1rem;padding:0 .3125rem;border-radius:.5rem;margin-left:.25rem;color:#fff;font-size:.75rem;line-height:1rem;transform:translateY(-.0625rem)}:host .positive{background:#00813a}:host .warning{background:#ff9b00}:host .critical{background:#c70023}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33527
33528
|
}
|
|
33528
33529
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabHeaderCountersComponent, decorators: [{
|
|
33529
33530
|
type: Component,
|
|
33530
|
-
args: [{ selector: 'qd-page-tab-header-counters', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [AsyncPipe], template: "@if (counters$ | async; as counters) { @if (counters.positive) {\n<span class=\"counter positive\" [attr.data-test-id]=\"testId + '-positive'\">\n {{ counters.positive }}\n</span>\n} @if (counters.critical) {\n<span class=\"counter critical\" [attr.data-test-id]=\"testId + '-critical'\">\n {{ counters.critical }}\n</span>\n} }\n", styles: [":host .counter{display:inline-flex;min-width:1rem;padding:0 .3125rem;border-radius:.5rem;margin-left:.25rem;color:#fff;font-size:.75rem;line-height:1rem;transform:translateY(-.0625rem)}:host .positive{background:#00813a}:host .critical{background:#c70023}\n"] }]
|
|
33531
|
+
args: [{ selector: 'qd-page-tab-header-counters', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [AsyncPipe], template: "@if (counters$ | async; as counters) { @if (counters.positive) {\n<span class=\"counter positive\" [attr.data-test-id]=\"testId + '-positive'\">\n {{ counters.positive }}\n</span>\n} @if (counters.warning) {\n<span class=\"counter warning\" [attr.data-test-id]=\"testId + '-warning'\">\n {{ counters.warning }}\n</span>\n} @if (counters.critical) {\n<span class=\"counter critical\" [attr.data-test-id]=\"testId + '-critical'\">\n {{ counters.critical }}\n</span>\n} }\n", styles: [":host .counter{display:inline-flex;min-width:1rem;padding:0 .3125rem;border-radius:.5rem;margin-left:.25rem;color:#fff;font-size:.75rem;line-height:1rem;transform:translateY(-.0625rem)}:host .positive{background:#00813a}:host .warning{background:#ff9b00}:host .critical{background:#c70023}\n"] }]
|
|
33531
33532
|
}], propDecorators: { counters: [{
|
|
33532
33533
|
type: Input
|
|
33533
33534
|
}], testId: [{
|
|
@@ -33543,7 +33544,7 @@ class QdPageTabHeaderComponent {
|
|
|
33543
33544
|
state;
|
|
33544
33545
|
/** Label of the given tab. */
|
|
33545
33546
|
label;
|
|
33546
|
-
/** Represents up to
|
|
33547
|
+
/** Represents up to three numeric counters as a badge */
|
|
33547
33548
|
counters;
|
|
33548
33549
|
/** Index of the given tab. */
|
|
33549
33550
|
index;
|
|
@@ -33843,7 +33844,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
33843
33844
|
* - **Non-linear Navigation**: Users can navigate freely between tabs, with validation checks where necessary.
|
|
33844
33845
|
* - **Form Validation Support**: Ensures tabs display errors when necessary if form inputs are invalid.
|
|
33845
33846
|
* - **Customizable Tab Configurations**: Each tab can have custom labels, validation, and counters for tracking states.
|
|
33846
|
-
* - **Dynamic Counters**: Displays numeric indicators to signal critical or positive states.
|
|
33847
|
+
* - **Dynamic Counters**: Displays numeric indicators to signal critical, warning or positive states.
|
|
33847
33848
|
* - **Standalone Compatibility**: Can be used independently or integrated within a larger **QdPage** structure.
|
|
33848
33849
|
* - **Customizable Submit Button**: Allows configuration of an action handler and visibility settings.
|
|
33849
33850
|
* - **Bookmarkable tabs**: Allows users to bookmark tabs and make them navigable.
|
|
@@ -33854,7 +33855,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
33854
33855
|
*
|
|
33855
33856
|
* - **label**: A translatable label for the tab.
|
|
33856
33857
|
* - **isDisabled**: Whether the tab should be interactable.
|
|
33857
|
-
* - **counters**: Displays numeric counters for **critical** (red) and **positive** (green) states.
|
|
33858
|
+
* - **counters**: Displays numeric counters for **critical** (red), **warning** (orange) and **positive** (green) states.
|
|
33858
33859
|
* - **name**: Unique name of this tab. Used for query param routing via `?tab=<tabName>`. Required when `connectWithRouter` in **QdPageTabsConfig** is enabled.
|
|
33859
33860
|
*
|
|
33860
33861
|
* #### **Form Handling**
|
|
@@ -33903,7 +33904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
33903
33904
|
*
|
|
33904
33905
|
* firstTabConfig: QdPageTabConfig = {
|
|
33905
33906
|
* label: { i18n: 'Tab One' },
|
|
33906
|
-
* counters: of({ positive: 3, critical: 1 })
|
|
33907
|
+
* counters: of({ positive: 3, warning: 4, critical: 1 })
|
|
33907
33908
|
* };
|
|
33908
33909
|
*
|
|
33909
33910
|
* ...
|
|
@@ -34177,6 +34178,7 @@ class QdPageSubmitActionService {
|
|
|
34177
34178
|
footerService = inject(QdPageFooterService);
|
|
34178
34179
|
formGroupManagerService = inject(QdFormGroupManagerService);
|
|
34179
34180
|
navigationInterceptor = inject(QdPageNavigationInterceptorService);
|
|
34181
|
+
injector = inject(Injector);
|
|
34180
34182
|
_labelI18n = 'i18n.qd.page.footer.submit';
|
|
34181
34183
|
_submitAction;
|
|
34182
34184
|
_isVisible = true;
|
|
@@ -34220,7 +34222,8 @@ class QdPageSubmitActionService {
|
|
|
34220
34222
|
QdPageCommitActionExecutor.execute(action, values, {
|
|
34221
34223
|
formGroupManager: this.formGroupManagerService,
|
|
34222
34224
|
navigationInterceptor: this.navigationInterceptor,
|
|
34223
|
-
destroyed$: this._destroyed
|
|
34225
|
+
destroyed$: this._destroyed$,
|
|
34226
|
+
scheduleFrameworkRebuildStop: () => afterNextRender(() => this.formGroupManagerService.stopAdoptingFrameworkRebuild(), { injector: this.injector })
|
|
34224
34227
|
});
|
|
34225
34228
|
}
|
|
34226
34229
|
trackFormValidity() {
|