@quadrel-enterprise-ui/framework 21.20.1 → 21.21.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
|
@@ -1901,6 +1901,24 @@ type QdDataFacetsTextConfig = {
|
|
|
1901
1901
|
textTransform?: 'capitalize' | 'uppercase' | 'lowercase' | 'full-width' | 'full-size-kana' | 'none';
|
|
1902
1902
|
};
|
|
1903
1903
|
|
|
1904
|
+
/**
|
|
1905
|
+
* @description Configuration options of the content type `timer`.
|
|
1906
|
+
*/
|
|
1907
|
+
type QdDataFacetsTimerConfig = {
|
|
1908
|
+
/**
|
|
1909
|
+
* @description Sets the color of the timer progress bar.
|
|
1910
|
+
*
|
|
1911
|
+
* @default 'critical'
|
|
1912
|
+
*/
|
|
1913
|
+
state?: QdTimerProgressBarState;
|
|
1914
|
+
/**
|
|
1915
|
+
* @description Format of the remaining time.
|
|
1916
|
+
*
|
|
1917
|
+
* @default 'digital'
|
|
1918
|
+
*/
|
|
1919
|
+
format?: QdTimerProgressBarFormat;
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1904
1922
|
/**
|
|
1905
1923
|
* @description Renders just a blank element.
|
|
1906
1924
|
*
|
|
@@ -2283,7 +2301,7 @@ type QdTableStatusDataValue = {
|
|
|
2283
2301
|
/**
|
|
2284
2302
|
* @description Type definitions for the contents of the TableData columns.
|
|
2285
2303
|
*/
|
|
2286
|
-
type QdTableDataValue = boolean | number | string | string[] | QdTableCriticalDataValue | QdTableContextDataValue | QdTableChipDataValue | QdTableStatusDataValue | Date;
|
|
2304
|
+
type QdTableDataValue = boolean | number | string | string[] | QdTableCriticalDataValue | QdTableContextDataValue | QdTableChipDataValue | QdTableStatusDataValue | QdTimeSpan | Date;
|
|
2287
2305
|
/**
|
|
2288
2306
|
* @description Data Model for Qd-Tables. The generic type defines the table columns keys.
|
|
2289
2307
|
*/
|
|
@@ -2506,6 +2524,52 @@ declare class QdDataFacetsTextComponent {
|
|
|
2506
2524
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdDataFacetsTextComponent, "qd-data-facets-text", never, { "config": { "alias": "config"; "required": false; }; "data": { "alias": "data"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
|
|
2507
2525
|
}
|
|
2508
2526
|
|
|
2527
|
+
/**
|
|
2528
|
+
* @description Renders the time span of a row as a countdown.
|
|
2529
|
+
*
|
|
2530
|
+
* The value is a `QdTimeSpan` or `null`:
|
|
2531
|
+
*
|
|
2532
|
+
* * Before `startsAt`: `startsAt` is shown as date and time. When `startsAt` is reached, the timer progress bar
|
|
2533
|
+
* replaces it.
|
|
2534
|
+
* * From `startsAt` until `endsAt`: a timer progress bar counts down the remaining time until `endsAt`.
|
|
2535
|
+
* A page reload does not restart the countdown.
|
|
2536
|
+
* * From `endsAt`: the timer progress bar is hidden and `startsAt` is shown as date and time again.
|
|
2537
|
+
* * `endsAt` not after `startsAt` or not parsable: `startsAt` is shown as date and time.
|
|
2538
|
+
* * `null` or a `startsAt` that cannot be parsed: the cell stays empty.
|
|
2539
|
+
*
|
|
2540
|
+
* Date and time follow the language of the application. `state` and `format` from the options are passed to the
|
|
2541
|
+
* timer progress bar.
|
|
2542
|
+
*/
|
|
2543
|
+
declare class QdDataFacetsTimerComponent implements OnInit, OnChanges {
|
|
2544
|
+
config?: QdDataFacetsTimerConfig;
|
|
2545
|
+
data?: QdTimeSpan | null;
|
|
2546
|
+
testId?: string;
|
|
2547
|
+
timerConfig: QdTimerProgressBarConfig | null;
|
|
2548
|
+
startsAt: number | null;
|
|
2549
|
+
formattedStartsAt: string;
|
|
2550
|
+
private readonly _changeDetectorRef;
|
|
2551
|
+
private readonly _destroyRef;
|
|
2552
|
+
private readonly _localeService;
|
|
2553
|
+
private readonly _ngZone;
|
|
2554
|
+
private _locale;
|
|
2555
|
+
private _startCountdown?;
|
|
2556
|
+
ngOnInit(): void;
|
|
2557
|
+
ngOnChanges(): void;
|
|
2558
|
+
handleCountdownExpired(): void;
|
|
2559
|
+
private updateTimerConfig;
|
|
2560
|
+
/**
|
|
2561
|
+
* Shows the timer when `startsAt` is reached.
|
|
2562
|
+
*
|
|
2563
|
+
* The start is checked against the clock every second instead of one long timeout. A long timeout does not count the
|
|
2564
|
+
* time a computer sleeps, so the timer would show up late after a standby. The checks run outside the Angular zone,
|
|
2565
|
+
* so waiting cells do not trigger change detection.
|
|
2566
|
+
*/
|
|
2567
|
+
private waitForStart;
|
|
2568
|
+
private updateFormattedStartsAt;
|
|
2569
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdDataFacetsTimerComponent, never>;
|
|
2570
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdDataFacetsTimerComponent, "qd-data-facets-timer", never, { "config": { "alias": "config"; "required": false; }; "data": { "alias": "data"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, false, never>;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2509
2573
|
declare class QdDataFacetsChipTruncatedTooltipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
2510
2574
|
private readonly hostRef;
|
|
2511
2575
|
private readonly changeDetectorRef;
|
|
@@ -2622,19 +2686,87 @@ declare class QdStatusIndicatorModule {
|
|
|
2622
2686
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdStatusIndicatorModule>;
|
|
2623
2687
|
}
|
|
2624
2688
|
|
|
2689
|
+
/**
|
|
2690
|
+
* **QdTimerProgressBar** displays a countdown to a point in time, e.g. the end of a reaction time.
|
|
2691
|
+
*
|
|
2692
|
+
* The countdown runs until `timeSpan.endsAt`. The remaining time is `endsAt` minus the current time of the client, so
|
|
2693
|
+
* reloading the page does not restart the countdown. A time span that has already ended shows an empty bar and emits
|
|
2694
|
+
* `countdownExpired` right away. Before `timeSpan.startsAt` the bar stays full.
|
|
2695
|
+
* The remaining time is derived from the clock on every tick, so it is correct again on the next tick after the
|
|
2696
|
+
* browser has throttled the page. In a background tab the browser can delay the ticks by up to a minute, so the display
|
|
2697
|
+
* and `countdownExpired` can be late there. The bar empties continuously and shows the remaining time inside the bar.
|
|
2698
|
+
*
|
|
2699
|
+
* The remaining time is formatted with `Intl.DurationFormat` in the language of the application, which the service
|
|
2700
|
+
* navigation sets. `format` chooses between a digital clock (`04:05`) and abbreviated units (`4 min, 5 s`).
|
|
2701
|
+
*
|
|
2702
|
+
* The ticks run outside the Angular zone and only update the timer progress bar itself, so a running countdown does
|
|
2703
|
+
* not trigger change detection for the whole application every second. `countdownExpired` is emitted inside the
|
|
2704
|
+
* Angular zone and always asynchronously, so a host can update its template in response.
|
|
2705
|
+
*
|
|
2706
|
+
* This component is internal to the framework and not part of the public API.
|
|
2707
|
+
*/
|
|
2708
|
+
declare class QdTimerProgressBarComponent implements OnInit, OnChanges {
|
|
2709
|
+
/**
|
|
2710
|
+
* The configuration of the timer progress bar, e.g. the `timeSpan` of the countdown.
|
|
2711
|
+
*/
|
|
2712
|
+
config: QdTimerProgressBarConfig;
|
|
2713
|
+
/**
|
|
2714
|
+
* A static test ID for integration tests can be set. <br />
|
|
2715
|
+
* The value for the HTML attribute [data-test-id].
|
|
2716
|
+
*/
|
|
2717
|
+
testId: string;
|
|
2718
|
+
/**
|
|
2719
|
+
* Emits once when the countdown reaches 0.
|
|
2720
|
+
* Also emits once, right after the config is set, when the time span has already ended, is empty or is invalid.
|
|
2721
|
+
*/
|
|
2722
|
+
countdownExpired: EventEmitter<void>;
|
|
2723
|
+
get dataTestId(): string;
|
|
2724
|
+
get hostClasses(): string;
|
|
2725
|
+
state: QdTimerProgressBarState;
|
|
2726
|
+
remainingSeconds: number;
|
|
2727
|
+
percentage: number;
|
|
2728
|
+
formattedTime: string;
|
|
2729
|
+
private readonly _changeDetectorRef;
|
|
2730
|
+
private readonly _destroyRef;
|
|
2731
|
+
private readonly _ngZone;
|
|
2732
|
+
private readonly _localeService;
|
|
2733
|
+
private _locale;
|
|
2734
|
+
private _format;
|
|
2735
|
+
private _duration;
|
|
2736
|
+
private _remaining;
|
|
2737
|
+
private _countdown?;
|
|
2738
|
+
ngOnInit(): void;
|
|
2739
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2740
|
+
private startCountdown;
|
|
2741
|
+
private tick;
|
|
2742
|
+
private updateData;
|
|
2743
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdTimerProgressBarComponent, never>;
|
|
2744
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdTimerProgressBarComponent, "qd-timer-progress-bar", never, { "config": { "alias": "config"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "countdownExpired": "countdownExpired"; }, never, never, false, never>;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* Internal module of the timer progress bar. It is deliberately not part of the public API.
|
|
2749
|
+
* Consumers use the timer through a configuration, e.g. the page object header facet of type `timer`.
|
|
2750
|
+
*/
|
|
2751
|
+
declare class QdTimerProgressBarModule {
|
|
2752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdTimerProgressBarModule, never>;
|
|
2753
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdTimerProgressBarModule, [typeof QdTimerProgressBarComponent], never, [typeof QdTimerProgressBarComponent]>;
|
|
2754
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<QdTimerProgressBarModule>;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2625
2757
|
/**
|
|
2626
2758
|
* @description Represents all possible component types for different data facets.
|
|
2627
2759
|
*/
|
|
2628
|
-
type QdDataFacetsComponent = QdDataFacetsBlankComponent | QdDataFacetsBooleanComponent | QdDataFacetsChipComponent | QdDataFacetsCurrencyComponent | QdDataFacetsDateComponent | QdDataFacetsIconComponent | QdDataFacetsIntegerComponent | QdDataFacetsLinkComponent | QdDataFacetsProgressComponent | QdDataFacetsStatusComponent | QdDataFacetsTextComponent;
|
|
2760
|
+
type QdDataFacetsComponent = QdDataFacetsBlankComponent | QdDataFacetsBooleanComponent | QdDataFacetsChipComponent | QdDataFacetsCurrencyComponent | QdDataFacetsDateComponent | QdDataFacetsIconComponent | QdDataFacetsIntegerComponent | QdDataFacetsLinkComponent | QdDataFacetsProgressComponent | QdDataFacetsStatusComponent | QdDataFacetsTextComponent | QdDataFacetsTimerComponent;
|
|
2629
2761
|
/**
|
|
2630
2762
|
* @description Defines the valid types of data facets.
|
|
2631
2763
|
* These types are used to map to corresponding components in `COMPONENT_MAP`.
|
|
2632
2764
|
*/
|
|
2633
|
-
type QdDataFacetsType = 'blank' | 'boolean' | 'chip' | 'currency' | 'date' | 'icon' | 'integer' | 'link' | 'progress' | 'status' | 'text' | 'enum';
|
|
2765
|
+
type QdDataFacetsType = 'blank' | 'boolean' | 'chip' | 'currency' | 'date' | 'icon' | 'integer' | 'link' | 'progress' | 'status' | 'text' | 'timer' | 'enum';
|
|
2634
2766
|
|
|
2635
2767
|
declare class QdDataFacetsModule {
|
|
2636
2768
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdDataFacetsModule, never>;
|
|
2637
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdDataFacetsModule, [typeof QdDataFacetsBlankComponent, typeof QdDataFacetsBooleanComponent, typeof QdDataFacetsChipComponent, typeof QdDataFacetsCurrencyComponent, typeof QdDataFacetsDateComponent, typeof QdDataFacetsIconComponent, typeof QdDataFacetsIntegerComponent, typeof QdDataFacetsLinkComponent, typeof QdDataFacetsProgressComponent, typeof QdDataFacetsStatusComponent, typeof QdDataFacetsTextComponent, typeof QdDataFacetsChipTruncatedTooltipComponent, typeof QdDataFacetsChipTruncatedIndicatorComponent], [typeof i2.CommonModule, typeof i5.TranslateModule, typeof QdIconModule, typeof QdChipModule, typeof QdStatusIndicatorModule], never>;
|
|
2769
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdDataFacetsModule, [typeof QdDataFacetsBlankComponent, typeof QdDataFacetsBooleanComponent, typeof QdDataFacetsChipComponent, typeof QdDataFacetsCurrencyComponent, typeof QdDataFacetsDateComponent, typeof QdDataFacetsIconComponent, typeof QdDataFacetsIntegerComponent, typeof QdDataFacetsLinkComponent, typeof QdDataFacetsProgressComponent, typeof QdDataFacetsStatusComponent, typeof QdDataFacetsTextComponent, typeof QdDataFacetsTimerComponent, typeof QdDataFacetsChipTruncatedTooltipComponent, typeof QdDataFacetsChipTruncatedIndicatorComponent], [typeof i2.CommonModule, typeof i5.TranslateModule, typeof QdIconModule, typeof QdChipModule, typeof QdStatusIndicatorModule, typeof QdTimerProgressBarModule], never>;
|
|
2638
2770
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdDataFacetsModule>;
|
|
2639
2771
|
}
|
|
2640
2772
|
|
|
@@ -4450,6 +4582,18 @@ type QdTableConfigColumnType =
|
|
|
4450
4582
|
| {
|
|
4451
4583
|
type: 'currency';
|
|
4452
4584
|
options?: QdDataFacetsCurrencyConfig;
|
|
4585
|
+
}
|
|
4586
|
+
/**
|
|
4587
|
+
* @description Renders a countdown for a time span. The value is a `QdTimeSpan` or `null`.
|
|
4588
|
+
*
|
|
4589
|
+
* * Before `startsAt`: `startsAt` as date and time. When `startsAt` is reached, the timer replaces it.
|
|
4590
|
+
* * From `startsAt` until `endsAt`: a timer progress bar counts down the remaining time until `endsAt`.
|
|
4591
|
+
* * From `endsAt`: `startsAt` as date and time again.
|
|
4592
|
+
* * `null` or a `startsAt` that cannot be parsed: an empty cell.
|
|
4593
|
+
*/
|
|
4594
|
+
| {
|
|
4595
|
+
type: 'timer';
|
|
4596
|
+
options?: QdDataFacetsTimerConfig;
|
|
4453
4597
|
};
|
|
4454
4598
|
|
|
4455
4599
|
/**
|
|
@@ -13096,6 +13240,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
|
|
|
13096
13240
|
ngOnInit(): void;
|
|
13097
13241
|
ngAfterViewInit(): void;
|
|
13098
13242
|
private get isRadioGroup();
|
|
13243
|
+
private get isOpenListboxWithoutItemFilter();
|
|
13099
13244
|
private createKeyManager;
|
|
13100
13245
|
private onActiveOptionChanged;
|
|
13101
13246
|
private moveTabStopToActiveOption;
|
|
@@ -13106,7 +13251,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
|
|
|
13106
13251
|
private displayOrder;
|
|
13107
13252
|
private updateListboxAriaState;
|
|
13108
13253
|
onLayerOpened(): void;
|
|
13109
|
-
private
|
|
13254
|
+
private activateInitialOption;
|
|
13110
13255
|
onLayerClosed(): void;
|
|
13111
13256
|
closeLayer(): void;
|
|
13112
13257
|
onListboxKeydown(event: KeyboardEvent): void;
|
|
@@ -13115,6 +13260,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
|
|
|
13115
13260
|
onListboxBlur(): void;
|
|
13116
13261
|
onFlyoutFocusout(event: FocusEvent): void;
|
|
13117
13262
|
private ensureActiveOption;
|
|
13263
|
+
private ensureActiveOptionIfOpen;
|
|
13118
13264
|
private initialActiveOption;
|
|
13119
13265
|
private selectActiveOption;
|
|
13120
13266
|
private applySingleSelection;
|
|
@@ -18029,74 +18175,6 @@ declare class QdTableModule {
|
|
|
18029
18175
|
static ɵinj: i0.ɵɵInjectorDeclaration<QdTableModule>;
|
|
18030
18176
|
}
|
|
18031
18177
|
|
|
18032
|
-
/**
|
|
18033
|
-
* **QdTimerProgressBar** displays a countdown to a point in time, e.g. the end of a reaction time.
|
|
18034
|
-
*
|
|
18035
|
-
* The countdown runs until `timeSpan.endsAt`. The remaining time is `endsAt` minus the current time of the client, so
|
|
18036
|
-
* reloading the page does not restart the countdown. A time span that has already ended shows an empty bar and emits
|
|
18037
|
-
* `countdownExpired` right away. Before `timeSpan.startsAt` the bar stays full.
|
|
18038
|
-
* The remaining time is derived from the clock on every tick, so it is correct again on the next tick after the
|
|
18039
|
-
* browser has throttled the page. In a background tab the browser can delay the ticks by up to a minute, so the display
|
|
18040
|
-
* and `countdownExpired` can be late there. The bar empties continuously and shows the remaining time inside the bar.
|
|
18041
|
-
*
|
|
18042
|
-
* The remaining time is formatted with `Intl.DurationFormat` in the language of the application, which the service
|
|
18043
|
-
* navigation sets. `format` chooses between a digital clock (`04:05`) and abbreviated units (`4 min, 5 s`).
|
|
18044
|
-
*
|
|
18045
|
-
* The ticks run outside the Angular zone and only update the timer progress bar itself, so a running countdown does
|
|
18046
|
-
* not trigger change detection for the whole application every second. `countdownExpired` is emitted inside the
|
|
18047
|
-
* Angular zone and always asynchronously, so a host can update its template in response.
|
|
18048
|
-
*
|
|
18049
|
-
* This component is internal to the framework and not part of the public API.
|
|
18050
|
-
*/
|
|
18051
|
-
declare class QdTimerProgressBarComponent implements OnInit, OnChanges {
|
|
18052
|
-
/**
|
|
18053
|
-
* The configuration of the timer progress bar, e.g. the `timeSpan` of the countdown.
|
|
18054
|
-
*/
|
|
18055
|
-
config: QdTimerProgressBarConfig;
|
|
18056
|
-
/**
|
|
18057
|
-
* A static test ID for integration tests can be set. <br />
|
|
18058
|
-
* The value for the HTML attribute [data-test-id].
|
|
18059
|
-
*/
|
|
18060
|
-
testId: string;
|
|
18061
|
-
/**
|
|
18062
|
-
* Emits once when the countdown reaches 0.
|
|
18063
|
-
* Also emits once, right after the config is set, when the time span has already ended, is empty or is invalid.
|
|
18064
|
-
*/
|
|
18065
|
-
countdownExpired: EventEmitter<void>;
|
|
18066
|
-
get dataTestId(): string;
|
|
18067
|
-
get hostClasses(): string;
|
|
18068
|
-
state: QdTimerProgressBarState;
|
|
18069
|
-
remainingSeconds: number;
|
|
18070
|
-
percentage: number;
|
|
18071
|
-
formattedTime: string;
|
|
18072
|
-
private readonly _changeDetectorRef;
|
|
18073
|
-
private readonly _destroyRef;
|
|
18074
|
-
private readonly _ngZone;
|
|
18075
|
-
private readonly _localeService;
|
|
18076
|
-
private _locale;
|
|
18077
|
-
private _format;
|
|
18078
|
-
private _duration;
|
|
18079
|
-
private _remaining;
|
|
18080
|
-
private _countdown?;
|
|
18081
|
-
ngOnInit(): void;
|
|
18082
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18083
|
-
private startCountdown;
|
|
18084
|
-
private tick;
|
|
18085
|
-
private updateData;
|
|
18086
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdTimerProgressBarComponent, never>;
|
|
18087
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdTimerProgressBarComponent, "qd-timer-progress-bar", never, { "config": { "alias": "config"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "countdownExpired": "countdownExpired"; }, never, never, false, never>;
|
|
18088
|
-
}
|
|
18089
|
-
|
|
18090
|
-
/**
|
|
18091
|
-
* Internal module of the timer progress bar. It is deliberately not part of the public API.
|
|
18092
|
-
* Consumers use the timer through a configuration, e.g. the page object header facet of type `timer`.
|
|
18093
|
-
*/
|
|
18094
|
-
declare class QdTimerProgressBarModule {
|
|
18095
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdTimerProgressBarModule, never>;
|
|
18096
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<QdTimerProgressBarModule, [typeof QdTimerProgressBarComponent], never, [typeof QdTimerProgressBarComponent]>;
|
|
18097
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<QdTimerProgressBarModule>;
|
|
18098
|
-
}
|
|
18099
|
-
|
|
18100
18178
|
/**
|
|
18101
18179
|
* Shows only as many children of a row as fit into the available width.
|
|
18102
18180
|
*
|