@quadrel-enterprise-ui/framework 21.9.1 → 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.
package/package.json
CHANGED
|
@@ -14228,10 +14228,11 @@ interface QdPageTabConfig {
|
|
|
14228
14228
|
*/
|
|
14229
14229
|
id?: string;
|
|
14230
14230
|
/**
|
|
14231
|
-
* Represents up to
|
|
14231
|
+
* Represents up to three numeric counters displayed as a badge, either as a static object or an `Observable`.
|
|
14232
14232
|
*
|
|
14233
14233
|
* Possible states:
|
|
14234
14234
|
* - `"positive"` (green)
|
|
14235
|
+
* - `"warning"` (orange)
|
|
14235
14236
|
* - `"critical"` (red)
|
|
14236
14237
|
*
|
|
14237
14238
|
* #### Reactivity
|
|
@@ -14240,10 +14241,10 @@ interface QdPageTabConfig {
|
|
|
14240
14241
|
* #### Usage
|
|
14241
14242
|
* ```ts
|
|
14242
14243
|
* // Synchronous (static values)
|
|
14243
|
-
* tabConfig = { ..., counters: { positive: 5, critical: 2 } };
|
|
14244
|
+
* tabConfig = { ..., counters: { positive: 5, warning: 1, critical: 2 } };
|
|
14244
14245
|
*
|
|
14245
14246
|
* // Asynchronous (reactive values)
|
|
14246
|
-
* tabConfig = { ..., counters: of({ positive: 3, critical: 1 }) };
|
|
14247
|
+
* tabConfig = { ..., counters: of({ positive: 3, warning: 4, critical: 1 }) };
|
|
14247
14248
|
* ```
|
|
14248
14249
|
*/
|
|
14249
14250
|
counters?: QdPageTabCounters | Observable<QdPageTabCounters>;
|
|
@@ -14256,7 +14257,7 @@ interface QdPageTabConfig {
|
|
|
14256
14257
|
name?: string;
|
|
14257
14258
|
}
|
|
14258
14259
|
/**
|
|
14259
|
-
* Represents up to
|
|
14260
|
+
* Represents up to three numeric counters.
|
|
14260
14261
|
*/
|
|
14261
14262
|
interface QdPageTabCounters {
|
|
14262
14263
|
/**
|
|
@@ -14264,6 +14265,11 @@ interface QdPageTabCounters {
|
|
|
14264
14265
|
* Displays a numeric value if greater than 0.
|
|
14265
14266
|
*/
|
|
14266
14267
|
positive?: number;
|
|
14268
|
+
/**
|
|
14269
|
+
* Counter for a "warning" state.
|
|
14270
|
+
* Displays a numeric value if greater than 0.
|
|
14271
|
+
*/
|
|
14272
|
+
warning?: number;
|
|
14267
14273
|
/**
|
|
14268
14274
|
* Counter for a "critical" state.
|
|
14269
14275
|
* Displays a numeric value if greater than 0.
|
|
@@ -14357,7 +14363,7 @@ interface QdTabSelectionEvent {
|
|
|
14357
14363
|
* - **Non-linear Navigation**: Users can navigate freely between tabs, with validation checks where necessary.
|
|
14358
14364
|
* - **Form Validation Support**: Ensures tabs display errors when necessary if form inputs are invalid.
|
|
14359
14365
|
* - **Customizable Tab Configurations**: Each tab can have custom labels, validation, and counters for tracking states.
|
|
14360
|
-
* - **Dynamic Counters**: Displays numeric indicators to signal critical or positive states.
|
|
14366
|
+
* - **Dynamic Counters**: Displays numeric indicators to signal critical, warning or positive states.
|
|
14361
14367
|
* - **Standalone Compatibility**: Can be used independently or integrated within a larger **QdPage** structure.
|
|
14362
14368
|
* - **Customizable Submit Button**: Allows configuration of an action handler and visibility settings.
|
|
14363
14369
|
* - **Bookmarkable tabs**: Allows users to bookmark tabs and make them navigable.
|
|
@@ -14368,7 +14374,7 @@ interface QdTabSelectionEvent {
|
|
|
14368
14374
|
*
|
|
14369
14375
|
* - **label**: A translatable label for the tab.
|
|
14370
14376
|
* - **isDisabled**: Whether the tab should be interactable.
|
|
14371
|
-
* - **counters**: Displays numeric counters for **critical** (red) and **positive** (green) states.
|
|
14377
|
+
* - **counters**: Displays numeric counters for **critical** (red), **warning** (orange) and **positive** (green) states.
|
|
14372
14378
|
* - **name**: Unique name of this tab. Used for query param routing via `?tab=<tabName>`. Required when `connectWithRouter` in **QdPageTabsConfig** is enabled.
|
|
14373
14379
|
*
|
|
14374
14380
|
* #### **Form Handling**
|
|
@@ -14417,7 +14423,7 @@ interface QdTabSelectionEvent {
|
|
|
14417
14423
|
*
|
|
14418
14424
|
* firstTabConfig: QdPageTabConfig = {
|
|
14419
14425
|
* label: { i18n: 'Tab One' },
|
|
14420
|
-
* counters: of({ positive: 3, critical: 1 })
|
|
14426
|
+
* counters: of({ positive: 3, warning: 4, critical: 1 })
|
|
14421
14427
|
* };
|
|
14422
14428
|
*
|
|
14423
14429
|
* ...
|
|
@@ -19362,7 +19368,7 @@ declare class QdPageTabHeaderComponent {
|
|
|
19362
19368
|
state: QdTabState;
|
|
19363
19369
|
/** Label of the given tab. */
|
|
19364
19370
|
label: string;
|
|
19365
|
-
/** Represents up to
|
|
19371
|
+
/** Represents up to three numeric counters as a badge */
|
|
19366
19372
|
counters: QdPageTabConfig['counters'];
|
|
19367
19373
|
/** Index of the given tab. */
|
|
19368
19374
|
index: number;
|