@forgeroute/ui 0.4.93 → 0.4.94

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.4.93",
3
+ "version": "0.4.94",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -321,6 +321,41 @@ export interface SavedView {
321
321
  * store it) leaves the current column filters untouched on load; `{}` clears them.
322
322
  */
323
323
  columnFilters?: Record<string, string> | null;
324
+ /**
325
+ * Active numeric range filters at save time (only tables with `rangeFilters`): column key -> `{ min, max }` (a bound is a number or
326
+ * absent). Written only when a range is set. `undefined` / `null` (views saved before ranges existed, or a backend that doesn't store
327
+ * it) leaves the current ranges untouched on load; `{}` clears them.
328
+ */
329
+ rangeFilters?: Record<string, {
330
+ min?: number | null;
331
+ max?: number | null;
332
+ }> | null;
333
+ }
334
+ /**
335
+ * One `<ui-data-table [rangeFilters]>` entry: gives the visible column `key` a numeric Min / Max filter (same funnel icon and popover as
336
+ * the value-list filter). Opt-in at the TABLE: a column that is not listed (or is hidden) has no range filter, and an empty list changes
337
+ * nothing. When applied, the table sends `<minParam>=<n>` and `<maxParam>=<n>` (a bound that is empty is omitted) on the rows, export and
338
+ * totals requests (not on /counts or /filter-counts, like every column filter); the BACKEND does the filtering.
339
+ *
340
+ * readonly rangeFilters: RangeFilterConfig[] = [{ key: 'rentableSf', minParam: 'rentableSfMin', maxParam: 'rentableSfMax', min: 0, step: 100, format: 'number' }];
341
+ */
342
+ export interface RangeFilterConfig {
343
+ /** Key of a column of the table. */
344
+ key: string;
345
+ /** Query param for the lower bound. Default `<key>Min`. */
346
+ minParam?: string;
347
+ /** Query param for the upper bound. Default `<key>Max`. */
348
+ maxParam?: string;
349
+ /** Lowest value the user may enter (default 0, so negatives are refused; pass a negative number to allow them). */
350
+ min?: number;
351
+ /** Highest value the user may enter (default: no limit). */
352
+ max?: number;
353
+ /** Step of the number fields; also sets the decimals allowed (step 0.01 = 2 decimals, whole-number steps = whole numbers). Default 1. */
354
+ step?: number;
355
+ /** How bounds are written in the chip / active label: plain number (default), US dollars or a percent. Values sent are always plain numbers. */
356
+ format?: 'number' | 'currency' | 'percent';
357
+ /** Text appended to a bound in the label when `format` is 'number' (e.g. 'SF'). */
358
+ unit?: string;
324
359
  }
325
360
  /**
326
361
  * Declares a bulk action available in the table's selection bar.
@@ -406,6 +441,15 @@ export type BulkUpdateOption<T = any> = string | {
406
441
  * { field: 'status', listAll: ['DRAFT', 'SENT', 'SIGNED', 'VOIDED'], allowedFrom: { SENT: ['DRAFT'], SIGNED: ['SENT'], VOIDED: ['DRAFT', 'SENT'] } }
407
442
  */
408
443
  listAll?: true | readonly string[];
444
+ /**
445
+ * Field changes (`{ field, order }`): the order of the "Change <column>" select. Values listed in `order` come first, in that order (matched
446
+ * exactly to the option values, case-sensitive); the remaining options follow in their existing order. Values in `order` that are not among
447
+ * the options are ignored (nothing is added). It only sorts: `exclude`, `allowedFrom`, `canChange`, `canApply`, `listAll` and the "not already
448
+ * held by every selected row" rule decide WHICH options appear. Ignored for Delete and direct actions. Omit it and nothing changes.
449
+ *
450
+ * { field: 'type', order: ['office', 'retail', 'industrial', 'multifamily'] }
451
+ */
452
+ order?: readonly string[];
409
453
  /**
410
454
  * Direct bulk action (`{ field: 'resend', action: true, label: 'Resend' }`): a bulk-bar button that is neither a field change nor
411
455
  * Delete. `field` is the action key (no column needed), the button type is `action-<field>` and there is no inline select.
@@ -526,6 +570,8 @@ export interface BulkActionDef {
526
570
  canApply?: (rows: any[], target: string) => boolean | string;
527
571
  /** Field changes: list the full value set (from `{ field, listAll }`): `true` or the exact list of values. */
528
572
  listAll?: true | readonly string[];
573
+ /** Field changes: option order (from `{ field, order }`): these values first, in this order. */
574
+ order?: readonly string[];
529
575
  /** True for a direct bulk action (from `{ field, action: true, label }`); `type` is `action-<key>` and `field` is not set (no inline select). */
530
576
  action?: boolean;
531
577
  /** Direct action: which rows the server will accept (from `{ field, action: true, eligible }`). */
@@ -2423,6 +2469,18 @@ export declare const UI_DEFAULT_LABELS: {
2423
2469
  readonly 'stackingPlan.unit': "Unit";
2424
2470
  readonly 'stackingPlan.size': "Size";
2425
2471
  readonly 'stackingPlan.details': "Details";
2472
+ readonly 'rangeFilter.min': "Min";
2473
+ readonly 'rangeFilter.max': "Max";
2474
+ readonly 'rangeFilter.minFor': "{{ label }} minimum";
2475
+ readonly 'rangeFilter.maxFor': "{{ label }} maximum";
2476
+ readonly 'rangeFilter.group': "{{ label }} range";
2477
+ readonly 'rangeFilter.minAboveMax': "Min must not be above Max.";
2478
+ readonly 'rangeFilter.between': "{{ min }} - {{ max }}";
2479
+ readonly 'rangeFilter.atLeast': "At least {{ min }}";
2480
+ readonly 'rangeFilter.atMost': "At most {{ max }}";
2481
+ readonly 'rangeFilter.filterByActive': "Filter by {{ label }}: {{ range }}";
2482
+ readonly 'rangeFilter.percent': "{{ value }}%";
2483
+ readonly 'rangeFilter.withUnit': "{{ value }} {{ unit }}";
2426
2484
  };
2427
2485
  export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
2428
2486
  export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
@@ -2635,10 +2693,32 @@ export declare class QuickFilterTabsComponent {
2635
2693
  "tabChange": "tabChange";
2636
2694
  }, never, never, true, never>;
2637
2695
  }
2696
+ /** What the column filter needs to render a numeric Min / Max popover (resolved from a table `RangeFilterConfig`). */
2697
+ export interface ColumnRangeSpec {
2698
+ min: number;
2699
+ max?: number;
2700
+ step: number;
2701
+ format: 'number' | 'currency' | 'percent';
2702
+ unit?: string;
2703
+ }
2704
+ /** The applied (or pending) bounds of a range filter; null = no bound. */
2705
+ export interface ColumnRangeValue {
2706
+ min: number | null;
2707
+ max: number | null;
2708
+ }
2638
2709
  export declare class ColumnFilterComponent {
2639
2710
  protected readonly labels: UiLabelsService;
2640
2711
  readonly label: import("@angular/core").InputSignal<string>;
2641
2712
  readonly options: import("@angular/core").InputSignal<FilterOption[]>;
2713
+ /**
2714
+ * Numeric range mode (opt-in, set by the table for a `rangeFilters` column): the popover shows Min / Max number fields instead of the value list.
2715
+ * Unset = the value-list filter, unchanged.
2716
+ */
2717
+ readonly range: import("@angular/core").InputSignal<ColumnRangeSpec | null>;
2718
+ /** Range mode: the applied bounds. */
2719
+ readonly rangeValue: import("@angular/core").InputSignal<ColumnRangeValue>;
2720
+ /** Range mode: emits the new bounds on Apply (both null = cleared). */
2721
+ readonly rangeChange: import("@angular/core").OutputEmitterRef<ColumnRangeValue>;
2642
2722
  /** Currently applied values — empty array means no filter active. */
2643
2723
  readonly activeValues: import("@angular/core").InputSignal<string[]>;
2644
2724
  /** Render the trigger as a labelled 44px chip (phone control row) instead of the bare funnel icon. */
@@ -2647,6 +2727,15 @@ export declare class ColumnFilterComponent {
2647
2727
  readonly filterChange: import("@angular/core").OutputEmitterRef<string[]>;
2648
2728
  protected readonly open: import("@angular/core").WritableSignal<boolean>;
2649
2729
  protected readonly pendingValues: import("@angular/core").WritableSignal<string[]>;
2730
+ protected readonly pendingMin: import("@angular/core").WritableSignal<number | null>;
2731
+ protected readonly pendingMax: import("@angular/core").WritableSignal<number | null>;
2732
+ private readonly _fields;
2733
+ protected readonly _isActive: import("@angular/core").Signal<boolean>;
2734
+ protected readonly _pendingHasRange: import("@angular/core").Signal<boolean>;
2735
+ /** Decimals the step allows (step 0.01 = 2, a whole-number step = 0). */
2736
+ protected readonly _decimals: import("@angular/core").Signal<number>;
2737
+ protected readonly _crossError: import("@angular/core").Signal<string>;
2738
+ protected readonly _rangeInvalid: import("@angular/core").Signal<boolean>;
2650
2739
  /** Hide options with count = 0, unless they are currently selected (so user can deselect). */
2651
2740
  protected readonly _visibleOptions: import("@angular/core").Signal<FilterOption[]>;
2652
2741
  protected readonly pendingHasChanges: import("@angular/core").Signal<boolean>;
@@ -2660,12 +2749,17 @@ export declare class ColumnFilterComponent {
2660
2749
  top: number;
2661
2750
  left: number;
2662
2751
  }>;
2752
+ /** One bound as text: plain number (+ unit), US dollars or a percent, in the app's locale. */
2753
+ protected _formatBound(v: number): string;
2754
+ protected _boundHint(v: number): string;
2663
2755
  protected readonly activeLabelText: import("@angular/core").Signal<string>;
2664
2756
  toggle(event: Event): void;
2665
2757
  select(value: string): void;
2666
2758
  apply(): void;
2667
2759
  cancel(): void;
2668
2760
  clear(): void;
2761
+ /** Enter in Min / Max applies the range when it is valid; while invalid it does nothing (Apply is disabled too). */
2762
+ onEnter(event: Event): void;
2669
2763
  onDocumentClick(_event: Event): void;
2670
2764
  onEscape(event?: Event): void;
2671
2765
  onArrow(event: Event, dir: 1 | -1): void;
@@ -2686,7 +2780,17 @@ export declare class ColumnFilterComponent {
2686
2780
  };
2687
2781
  "options": {
2688
2782
  "alias": "options";
2689
- "required": true;
2783
+ "required": false;
2784
+ "isSignal": true;
2785
+ };
2786
+ "range": {
2787
+ "alias": "range";
2788
+ "required": false;
2789
+ "isSignal": true;
2790
+ };
2791
+ "rangeValue": {
2792
+ "alias": "rangeValue";
2793
+ "required": false;
2690
2794
  "isSignal": true;
2691
2795
  };
2692
2796
  "activeValues": {
@@ -2700,6 +2804,7 @@ export declare class ColumnFilterComponent {
2700
2804
  "isSignal": true;
2701
2805
  };
2702
2806
  }, {
2807
+ "rangeChange": "rangeChange";
2703
2808
  "filterChange": "filterChange";
2704
2809
  }, never, never, true, never>;
2705
2810
  }
@@ -3148,7 +3253,7 @@ export declare class SelectComponent implements ControlValueAccessor, Validator,
3148
3253
  readonly error: import("@angular/core").InputSignal<string>;
3149
3254
  /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals a message on a field the user has not left (messages show only after the user left THIS field); switching it from true back to false forgets that the field was left. */
3150
3255
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
3151
- readonly size: import("@angular/core").InputSignal<"sm" | "default">;
3256
+ readonly size: import("@angular/core").InputSignal<"default" | "sm">;
3152
3257
  readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
3153
3258
  private readonly _cvaDisabled;
3154
3259
  protected readonly disabled: import("@angular/core").Signal<boolean>;
@@ -3777,6 +3882,36 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
3777
3882
  protected readonly _sortDir: import("@angular/core").WritableSignal<SortDir>;
3778
3883
  protected readonly _activeTab: import("@angular/core").WritableSignal<string>;
3779
3884
  protected readonly _colFilterValues: import("@angular/core").WritableSignal<Record<string, string[]>>;
3885
+ /**
3886
+ * Opt-in numeric range filters (`<ui-data-table [rangeFilters]>`): a visible column whose key is listed gets a Min / Max filter (same funnel icon
3887
+ * and popover as the value list; the range replaces the value list for that column). Empty (default) = no range filter anywhere: no icon, no
3888
+ * param, no saved-view field. The table sends `<minParam>` / `<maxParam>` on rows, export and totals (never on /counts or /filter-counts, like
3889
+ * every column filter); the backend filters.
3890
+ */
3891
+ readonly rangeFilters: import("@angular/core").InputSignal<RangeFilterConfig[]>;
3892
+ /** Applied ranges by column key (bounds are finite numbers; a bound that is null is omitted). */
3893
+ protected readonly _rangeValues: import("@angular/core").WritableSignal<Record<string, ColumnRangeValue>>;
3894
+ /** Listed configs by column key, with defaults resolved. */
3895
+ private readonly _rangeSpecs;
3896
+ /** Ranges of columns that are no longer listed are forgotten, so listing the column again later starts empty (no stale range comes back). */
3897
+ private readonly _pruneRanges;
3898
+ /** Query params of the applied ranges (only listed keys; empty bounds omitted). */
3899
+ protected readonly _rangeParams: Signal<Record<string, string>>;
3900
+ /** The range filter of a header cell: null unless the table lists this column's key. */
3901
+ protected getRangeFilter(col: ColumnDef): {
3902
+ spec: ColumnRangeSpec;
3903
+ value: ColumnRangeValue;
3904
+ } | null;
3905
+ protected readonly _phoneRangeCols: Signal<{
3906
+ col: ColumnDef;
3907
+ rf: {
3908
+ spec: ColumnRangeSpec;
3909
+ value: ColumnRangeValue;
3910
+ };
3911
+ }[]>;
3912
+ protected onRangeChange(key: string, value: ColumnRangeValue): void;
3913
+ /** True while a listed range filter has a bound set. */
3914
+ private _anyRangeActive;
3780
3915
  protected readonly _activeViewId: import("@angular/core").WritableSignal<string | null>;
3781
3916
  /** Internal saved views managed by the table when savedViewsPage is set. */
3782
3917
  private readonly _internalSavedViews;
@@ -4100,11 +4235,12 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4100
4235
  protected onLoadViewClick(view: SavedView): void;
4101
4236
  protected onDeleteViewClick(id: string): void;
4102
4237
  /** Returns a snapshot of current table state for saving as a view. */
4103
- getState(): Pick<SavedView, 'quickFilter' | 'sortField' | 'sortDir' | 'visibleColumns'> & {
4238
+ getState(): Pick<SavedView, 'quickFilter' | 'sortField' | 'sortDir' | 'visibleColumns' | 'rangeFilters'> & {
4104
4239
  columnFilters: Record<string, string>;
4105
4240
  };
4106
4241
  /** Restores table state from a saved view and reloads. */
4107
4242
  applyView(view: SavedView): void;
4243
+ private _restorableRanges;
4108
4244
  /** Keeps only filters that still make sense: known column keys, and (when the counts list the column) known values. */
4109
4245
  private _restorableColumnFilters;
4110
4246
  /** Plain/number/date columns sort unless `sortable: false`; badge and image columns only when `sortable: true`; never actions. */
@@ -4352,6 +4488,11 @@ export declare class DataTableComponent<T extends Record<string, any>> implement
4352
4488
  "required": false;
4353
4489
  "isSignal": true;
4354
4490
  };
4491
+ "rangeFilters": {
4492
+ "alias": "rangeFilters";
4493
+ "required": false;
4494
+ "isSignal": true;
4495
+ };
4355
4496
  }, {
4356
4497
  "rowClick": "rowClick";
4357
4498
  "linkClick": "linkClick";
@@ -4403,7 +4544,7 @@ export declare class SidePanelComponent implements OnDestroy {
4403
4544
  readonly cancelLabel: import("@angular/core").Signal<string>;
4404
4545
  /** Right-aligned primary action button label. Empty string = hidden. */
4405
4546
  readonly primaryLabel: import("@angular/core").InputSignal<string>;
4406
- readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
4547
+ readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
4407
4548
  readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
4408
4549
  readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
4409
4550
  /** `data-testid` of the Cancel button; none when empty (default). */
@@ -4535,7 +4676,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
4535
4676
  */
4536
4677
  readonly describedBy: import("@angular/core").InputSignal<string | null>;
4537
4678
  readonly maxWidth: import("@angular/core").InputSignal<string>;
4538
- readonly bodyOverflow: import("@angular/core").InputSignal<"hidden" | "auto" | "visible">;
4679
+ readonly bodyOverflow: import("@angular/core").InputSignal<"auto" | "hidden" | "visible">;
4539
4680
  /** `data-testid` of the dialog element itself (the host `<ui-modal>` is always in the page, the dialog only while open). None when empty. */
4540
4681
  readonly dialogTestId: import("@angular/core").InputSignal<string>;
4541
4682
  /** Hides the header X button (e.g. while a request is running). Escape and a backdrop click still close unless `closable` is false. */
@@ -5314,7 +5455,7 @@ export declare class AudioPlayerComponent {
5314
5455
  /** Accessible name of the player. */
5315
5456
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
5316
5457
  /** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
5317
- readonly preload: import("@angular/core").InputSignal<"none" | "metadata" | "auto">;
5458
+ readonly preload: import("@angular/core").InputSignal<"auto" | "none" | "metadata">;
5318
5459
  /** Fires when the browser can't load or decode the source. */
5319
5460
  readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
5320
5461
  protected readonly failed: import("@angular/core").WritableSignal<boolean>;
@@ -6965,7 +7106,7 @@ export declare class ButtonComponent {
6965
7106
  * `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
6966
7107
  * background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
6967
7108
  */
6968
- readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "secondary" | "danger" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
7109
+ readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "danger" | "warning" | "link" | "ghost" | "ghost-start" | "tab" | "icon" | "icon-danger">;
6969
7110
  /** Renders an anchor to this route instead of a button (use with `variant="link"` for an inline text link). `['/settings']` or `'/settings'`. While `disabled` or `loading` it renders a non-clickable `<span role="link" aria-disabled>` with no href (like `href`). */
6970
7111
  readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
6971
7112
  /** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
@@ -6986,7 +7127,7 @@ export declare class ButtonComponent {
6986
7127
  */
6987
7128
  readonly href: import("@angular/core").InputSignal<string | null>;
6988
7129
  /** Where to open the `href` (`_blank` = a new tab). */
6989
- readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
7130
+ readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
6990
7131
  /** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
6991
7132
  readonly rel: import("@angular/core").InputSignal<string | null>;
6992
7133
  /** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
@@ -7656,7 +7797,7 @@ export declare class ImportSourceGridComponent {
7656
7797
  /** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
7657
7798
  readonly selected: import("@angular/core").InputSignal<string>;
7658
7799
  /** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
7659
- readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
7800
+ readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
7660
7801
  /** `card`: disables every card's button (for example while the page is saving). */
7661
7802
  readonly disabled: import("@angular/core").InputSignal<boolean>;
7662
7803
  /** `card`: the text of each card's button. */
@@ -8154,7 +8295,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
8154
8295
  * `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
8155
8296
  * It only picks the keyboard; it does not restrict what can be typed or pasted.
8156
8297
  */
8157
- readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
8298
+ readonly inputmode: import("@angular/core").InputSignal<"" | "numeric" | "decimal" | "email" | "text" | "none" | "search" | "tel" | "url">;
8158
8299
  readonly readonly: import("@angular/core").InputSignal<boolean>;
8159
8300
  readonly hint: import("@angular/core").InputSignal<string>;
8160
8301
  /** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
@@ -9177,7 +9318,7 @@ export declare class CopyFieldComponent implements OnDestroy {
9177
9318
  /** Neither the Clipboard API nor the fallback could copy. */
9178
9319
  readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
9179
9320
  protected readonly _id: string;
9180
- protected readonly _state: import("@angular/core").WritableSignal<"idle" | "failed" | "copied">;
9321
+ protected readonly _state: import("@angular/core").WritableSignal<"idle" | "copied" | "failed">;
9181
9322
  protected readonly _announcement: import("@angular/core").Signal<string>;
9182
9323
  protected readonly _buttonName: import("@angular/core").Signal<string>;
9183
9324
  protected readonly _describedBy: import("@angular/core").Signal<string | null>;
@@ -11632,7 +11773,7 @@ export declare class ChipGroupComponent {
11632
11773
  readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11633
11774
  /** Space below the chip group. */
11634
11775
  readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
11635
- protected readonly _gap: import("@angular/core").Signal<"8px" | "6px" | "12px">;
11776
+ protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
11636
11777
  protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
11637
11778
  protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
11638
11779
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
@@ -11699,6 +11840,14 @@ export declare function getEligibleIds<T extends {
11699
11840
  name: string;
11700
11841
  }[];
11701
11842
  }>(items: T[], selectedIds: Set<string>, action: string, options?: EligibleOptions): EligibleResult;
11843
+ /**
11844
+ * Orders bulk select options: values listed in `order` first, in that order (exact, case-sensitive match on `value`), then the remaining
11845
+ * options in their existing order. Values in `order` that are not among the options are ignored (nothing is added); a repeated value in
11846
+ * `order` counts once. Returns a new array; with an empty `order` the options come back unchanged.
11847
+ */
11848
+ export declare function orderBulkOptions<O extends {
11849
+ value: string;
11850
+ }>(options: readonly O[], order: readonly string[] | null | undefined): O[];
11702
11851
  /** What the user was doing when the request failed — drives the fallback wording. */
11703
11852
  export type ErrorAction = 'load' | 'save' | 'create' | 'update' | 'delete' | 'send' | 'export' | 'import' | 'upload' | 'download';
11704
11853
  /**
@@ -12071,7 +12220,7 @@ export declare class IconComponent {
12071
12220
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
12072
12221
  /** Icon size in px. */
12073
12222
  readonly size: import("@angular/core").InputSignal<number>;
12074
- readonly variant: import("@angular/core").InputSignal<"danger" | "default">;
12223
+ readonly variant: import("@angular/core").InputSignal<"default" | "danger">;
12075
12224
  readonly disabled: import("@angular/core").InputSignal<boolean>;
12076
12225
  /** The host is running the request this icon started: a spinner replaces the picture and the button is disabled (no click) until it is false again. */
12077
12226
  readonly loading: import("@angular/core").InputSignal<boolean>;
@@ -12575,7 +12724,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
12575
12724
  * the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
12576
12725
  * the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
12577
12726
  */
12578
- readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
12727
+ readonly valueFormat: import("@angular/core").InputSignal<"object" | "auto" | "text">;
12579
12728
  /** ZIP rule; the default is the US 5 digits / 5+4 rule. `null` accepts any non-empty ZIP. The ZIP is validated and stored trimmed. */
12580
12729
  readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
12581
12730
  /** Message shown when the ZIP breaks `zipPattern`. */
@@ -14438,7 +14587,7 @@ export declare class PdfHotspotComponent {
14438
14587
  /** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
14439
14588
  readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
14440
14589
  /** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
14441
- readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
14590
+ readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
14442
14591
  /** Text of the ready button (e.g. "Sign Here"). */
14443
14592
  readonly labelInput: import("@angular/core").InputSignal<string | null>;
14444
14593
  readonly label: import("@angular/core").Signal<string>;
@@ -14592,7 +14741,7 @@ export declare class DetailCardComponent {
14592
14741
  /** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
14593
14742
  readonly footerBackground: import("@angular/core").InputSignal<string>;
14594
14743
  /** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
14595
- readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
14744
+ readonly footerAlign: import("@angular/core").InputSignal<"start" | "end">;
14596
14745
  /** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
14597
14746
  readonly textColor: import("@angular/core").InputSignal<string>;
14598
14747
  /** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
@@ -19656,7 +19805,7 @@ export declare class PaymentSidePanelComponent {
19656
19805
  private readonly terminalAvailable;
19657
19806
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
19658
19807
  private readonly liveMethods;
19659
- protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
19808
+ protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
19660
19809
  private kindOf;
19661
19810
  /** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
19662
19811
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;