@forgeroute/ui 0.4.94 → 0.4.95
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/fesm2022/{forgeroute-ui-ui-labels.es-YdWyQXrS.mjs → forgeroute-ui-ui-labels.es-Bdh64Ql6.mjs} +3 -2
- package/fesm2022/{forgeroute-ui-ui-labels.es-YdWyQXrS.mjs.map → forgeroute-ui-ui-labels.es-Bdh64Ql6.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +43 -20
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui.d.ts +19 -2
package/package.json
CHANGED
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2481,6 +2481,7 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2481
2481
|
readonly 'rangeFilter.filterByActive': "Filter by {{ label }}: {{ range }}";
|
|
2482
2482
|
readonly 'rangeFilter.percent': "{{ value }}%";
|
|
2483
2483
|
readonly 'rangeFilter.withUnit': "{{ value }} {{ unit }}";
|
|
2484
|
+
readonly 'rangeFilter.badNumber': "Please enter a valid number";
|
|
2484
2485
|
};
|
|
2485
2486
|
export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
|
|
2486
2487
|
export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
|
|
@@ -2735,6 +2736,15 @@ export declare class ColumnFilterComponent {
|
|
|
2735
2736
|
/** Decimals the step allows (step 0.01 = 2, a whole-number step = 0). */
|
|
2736
2737
|
protected readonly _decimals: import("@angular/core").Signal<number>;
|
|
2737
2738
|
protected readonly _crossError: import("@angular/core").Signal<string>;
|
|
2739
|
+
/** Firefox / Safari let text into a type=number box (the model becomes null while the box shows it): tracked per field from the native validity. */
|
|
2740
|
+
protected readonly badMin: import("@angular/core").WritableSignal<boolean>;
|
|
2741
|
+
protected readonly badMax: import("@angular/core").WritableSignal<boolean>;
|
|
2742
|
+
/**
|
|
2743
|
+
* The Min above Max message is shown ONCE, under Min (one role="alert", announced once), and is revealed at once (no blur needed),
|
|
2744
|
+
* so it is visible whichever field was edited last. A non-number typed in a field shows its own message under that field.
|
|
2745
|
+
*/
|
|
2746
|
+
protected readonly _minError: import("@angular/core").Signal<string>;
|
|
2747
|
+
protected readonly _maxError: import("@angular/core").Signal<string>;
|
|
2738
2748
|
protected readonly _rangeInvalid: import("@angular/core").Signal<boolean>;
|
|
2739
2749
|
/** Hide options with count = 0, unless they are currently selected (so user can deselect). */
|
|
2740
2750
|
protected readonly _visibleOptions: import("@angular/core").Signal<FilterOption[]>;
|
|
@@ -2751,7 +2761,6 @@ export declare class ColumnFilterComponent {
|
|
|
2751
2761
|
}>;
|
|
2752
2762
|
/** One bound as text: plain number (+ unit), US dollars or a percent, in the app's locale. */
|
|
2753
2763
|
protected _formatBound(v: number): string;
|
|
2754
|
-
protected _boundHint(v: number): string;
|
|
2755
2764
|
protected readonly activeLabelText: import("@angular/core").Signal<string>;
|
|
2756
2765
|
toggle(event: Event): void;
|
|
2757
2766
|
select(value: string): void;
|
|
@@ -2760,6 +2769,10 @@ export declare class ColumnFilterComponent {
|
|
|
2760
2769
|
clear(): void;
|
|
2761
2770
|
/** Enter in Min / Max applies the range when it is valid; while invalid it does nothing (Apply is disabled too). */
|
|
2762
2771
|
onEnter(event: Event): void;
|
|
2772
|
+
/** True when the browser holds text it could not turn into a number (`validity.badInput`). */
|
|
2773
|
+
protected _isBadInput(el: HTMLInputElement | null | undefined): boolean;
|
|
2774
|
+
/** Tracks `validity.badInput` of the Min / Max boxes on every keystroke (the ngModel value is null for such text). */
|
|
2775
|
+
onRangeInput(event: Event): void;
|
|
2763
2776
|
onDocumentClick(_event: Event): void;
|
|
2764
2777
|
onEscape(event?: Event): void;
|
|
2765
2778
|
onArrow(event: Event, dir: 1 | -1): void;
|
|
@@ -3893,7 +3906,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
|
|
|
3893
3906
|
protected readonly _rangeValues: import("@angular/core").WritableSignal<Record<string, ColumnRangeValue>>;
|
|
3894
3907
|
/** Listed configs by column key, with defaults resolved. */
|
|
3895
3908
|
private readonly _rangeSpecs;
|
|
3896
|
-
/**
|
|
3909
|
+
/**
|
|
3910
|
+
* Ranges of columns that are no longer listed are forgotten, so listing the column again later starts empty (no stale range comes back).
|
|
3911
|
+
* When a forgotten range had a bound, the rows were filtered by it, so the rows are reloaded (page 1, rows only: counts never carry filters)
|
|
3912
|
+
* and match the params again. A host that briefly passes `[]` therefore drops the user's ranges.
|
|
3913
|
+
*/
|
|
3897
3914
|
private readonly _pruneRanges;
|
|
3898
3915
|
/** Query params of the applied ranges (only listed keys; empty bounds omitted). */
|
|
3899
3916
|
protected readonly _rangeParams: Signal<Record<string, string>>;
|