@forgeroute/ui 0.4.87 → 0.4.89

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.
@@ -1047,6 +1047,7 @@ export declare const UI_DEFAULT_LABELS: {
1047
1047
  readonly 'fileInput.placeholder': "No file chosen";
1048
1048
  readonly 'fileInput.removeLabel': "Remove";
1049
1049
  readonly 'fixedFooter.ariaLabel': "Page actions";
1050
+ readonly 'skipLink.ariaLabel': "Skip links";
1050
1051
  readonly 'imageGallery.ariaLabel': "Image gallery";
1051
1052
  readonly 'imageGalleryDialog.closeLabel': "Close";
1052
1053
  readonly 'imageGalleryDialog.galleryLabel': "Image gallery";
@@ -2270,6 +2271,124 @@ export declare const UI_DEFAULT_LABELS: {
2270
2271
  readonly 'setupWizard.integrationTitle.twilio': "Twilio (calls & texts)";
2271
2272
  readonly 'validation.requiredNoLabel': "This field is required.";
2272
2273
  readonly 'common.nSelected': "{{ count }} selected";
2274
+ readonly 'kanban.ariaLabel': "Board";
2275
+ readonly 'kanban.loading': "Loading {{ name }}";
2276
+ readonly 'kanban.emptyColumnText': "Nothing here yet";
2277
+ readonly 'kanban.columnLabel_one': "{{ column }}, {{ count }} card";
2278
+ readonly 'kanban.columnLabel_other': "{{ column }}, {{ count }} cards";
2279
+ readonly 'kanban.probability': "{{ percent }} probability";
2280
+ readonly 'kanban.moveTo': "Move to {{ column }}";
2281
+ readonly 'kanban.moveMenu': "Move {{ name }}";
2282
+ readonly 'kanban.hint': "Press Space to pick up a card, the arrow keys to move it, Space or Enter to drop it and Escape to cancel. Press Enter to open a card.";
2283
+ readonly 'kanban.pickedUp': "Picked up {{ item }}. {{ column }}, position {{ position }} of {{ total }}. Use the arrow keys to move it, Space or Enter to drop it, Escape to cancel.";
2284
+ readonly 'kanban.movingOver': "{{ item }}: {{ column }}, position {{ position }} of {{ total }}.";
2285
+ readonly 'kanban.movingOverBlocked': "{{ item }} cannot be dropped in {{ column }}.";
2286
+ readonly 'kanban.moved': "Moved {{ item }} to {{ column }}, position {{ position }} of {{ total }}.";
2287
+ readonly 'kanban.unchanged': "{{ item }} stays in {{ column }}, position {{ position }} of {{ total }}.";
2288
+ readonly 'kanban.dropBlocked': "Cannot move {{ item }} to {{ column }}.";
2289
+ readonly 'kanban.cancelled': "Move cancelled. {{ item }} is back in {{ column }}, position {{ position }} of {{ total }}.";
2290
+ readonly 'kanban.reverted': "{{ item }} could not be moved. It is back in {{ column }}, position {{ position }} of {{ total }}.";
2291
+ readonly 'kanban.blocked': "Not allowed";
2292
+ readonly 'kanban.showMore': "Show {{ next }} more ({{ hidden }} not shown)";
2293
+ readonly 'kanban.showingOf': "Showing {{ limit }} of {{ total }} cards in {{ column }}";
2294
+ readonly 'map.ariaLabel': "Map";
2295
+ readonly 'map.keyboardHelp': "Use the arrow keys to pan and the plus and minus keys to zoom. Every place on the map is also in the list of places.";
2296
+ readonly 'map.zoomIn': "Zoom in";
2297
+ readonly 'map.zoomOut': "Zoom out";
2298
+ readonly 'map.fitMarkers': "Show all places";
2299
+ readonly 'map.loading': "Loading map";
2300
+ readonly 'map.unavailableNoTiles': "Map unavailable: no tile source configured";
2301
+ readonly 'map.unavailableNoAttribution': "Map unavailable: the tile source has no attribution text";
2302
+ readonly 'map.unavailableInvalidTiles': "Map unavailable: the tile source address is not valid";
2303
+ readonly 'map.unavailableLoadFailed': "Map unavailable: the map could not be loaded";
2304
+ readonly 'map.tilesFailed': "Some map tiles could not be loaded.";
2305
+ readonly 'map.listLabel': "Places on the map";
2306
+ readonly 'map.listCount_one': "{{ count }} place";
2307
+ readonly 'map.listCount_other': "{{ count }} places";
2308
+ readonly 'map.listShowing': "Showing {{ shown }} of {{ total }} places";
2309
+ readonly 'map.listEmpty': "No places to show.";
2310
+ readonly 'map.clusterTitle': "{{ count }} places. Select to zoom in.";
2311
+ readonly 'map.infoLabel': "Details for {{ name }}";
2312
+ readonly 'map.closeInfo': "Close details";
2313
+ readonly 'map.drawToolbar': "Search area tools";
2314
+ readonly 'map.drawCircle': "Draw circle";
2315
+ readonly 'map.drawRectangle': "Draw rectangle";
2316
+ readonly 'map.drawPolygon': "Draw area";
2317
+ readonly 'map.clearArea': "Clear area";
2318
+ readonly 'map.drawFinish': "Finish";
2319
+ readonly 'map.drawCancel': "Cancel";
2320
+ readonly 'map.drawUndo': "Undo last point";
2321
+ readonly 'map.addPointAtCenter': "Add point at crosshair";
2322
+ readonly 'map.draw.circle': "Drawing a circle. Click the center, then click a point on its edge. Space adds a point at the crosshair, Escape cancels.";
2323
+ readonly 'map.draw.rectangle': "Drawing a rectangle. Click one corner, then the opposite corner. Space adds a point at the crosshair, Escape cancels.";
2324
+ readonly 'map.draw.polygon': "Drawing an area. Click each corner, then press Enter or Finish. Space adds a point at the crosshair, Backspace removes the last point, Escape cancels.";
2325
+ readonly 'map.draw.pointAdded': "Point {{ count }} added.";
2326
+ readonly 'map.draw.pointRemoved': "Last point removed. {{ count }} left.";
2327
+ readonly 'map.draw.needMore_one': "Add {{ count }} more point to finish.";
2328
+ readonly 'map.draw.needMore_other': "Add {{ count }} more points to finish.";
2329
+ readonly 'map.draw.rejected': "That point cannot be used. Pick a different spot.";
2330
+ readonly 'map.draw.cancelled': "Drawing cancelled.";
2331
+ readonly 'map.draw.cleared': "Search area cleared.";
2332
+ readonly 'map.draw.finished': "Search area set. {{ area }}";
2333
+ readonly 'map.areaSummary': "Search area: {{ area }}";
2334
+ readonly 'map.area.circle': "Circle, center {{ lat }}, {{ lng }}, radius {{ radius }}";
2335
+ readonly 'map.area.bbox': "Rectangle, north {{ north }}, south {{ south }}, east {{ east }}, west {{ west }}";
2336
+ readonly 'map.area.polygon': "Area with {{ count }} points";
2337
+ readonly 'map.unitMeters': "{{ value }} m";
2338
+ readonly 'map.unitKilometers': "{{ value }} km";
2339
+ readonly 'map.form.title': "Search area";
2340
+ readonly 'map.form.shape': "Shape";
2341
+ readonly 'map.form.circle': "Circle";
2342
+ readonly 'map.form.rectangle': "Rectangle";
2343
+ readonly 'map.form.polygon': "Polygon";
2344
+ readonly 'map.form.centerLat': "Center latitude";
2345
+ readonly 'map.form.centerLng': "Center longitude";
2346
+ readonly 'map.form.radius': "Radius";
2347
+ readonly 'map.form.radiusUnit': "Radius unit";
2348
+ readonly 'map.form.unitM': "Meters";
2349
+ readonly 'map.form.unitKm': "Kilometers";
2350
+ readonly 'map.form.unitMi': "Miles";
2351
+ readonly 'map.form.north': "North latitude";
2352
+ readonly 'map.form.south': "South latitude";
2353
+ readonly 'map.form.east': "East longitude";
2354
+ readonly 'map.form.west': "West longitude";
2355
+ readonly 'map.form.pointLat': "Point latitude";
2356
+ readonly 'map.form.pointLng': "Point longitude";
2357
+ readonly 'map.form.addPoint': "Add point";
2358
+ readonly 'map.form.pointsLabel': "Points";
2359
+ readonly 'map.form.pointItem': "Point {{ n }}: {{ lat }}, {{ lng }}";
2360
+ readonly 'map.form.removePoint': "Remove point {{ n }}";
2361
+ readonly 'map.form.noPoints': "No points yet.";
2362
+ readonly 'map.form.apply': "Apply area";
2363
+ readonly 'map.form.clear': "Clear area";
2364
+ readonly 'map.form.applied': "Search area applied.";
2365
+ readonly 'map.form.errorNumber': "Enter a number.";
2366
+ readonly 'map.form.errorLat': "Enter a latitude between -90 and 90.";
2367
+ readonly 'map.form.errorLng': "Enter a longitude between -180 and 180.";
2368
+ readonly 'map.form.errorRadius': "Enter a radius greater than 0.";
2369
+ readonly 'map.form.errorNorthSouth': "North must be greater than south.";
2370
+ readonly 'map.form.errorEastWest': "East must be greater than west.";
2371
+ readonly 'map.form.errorPolygon': "Add at least 3 points.";
2372
+ readonly 'map.draw.selfIntersecting': "That point would make the area cross itself. Pick a different spot.";
2373
+ readonly 'map.draw.finishSelfIntersecting': "The area crosses itself. Remove the last point or undo until it does not.";
2374
+ readonly 'map.form.errorSelfIntersecting': "The area cannot cross itself. Remove or move a point.";
2375
+ readonly 'map.placeSelected': "{{ name }} selected";
2376
+ readonly 'notificationBell.label': "Notifications";
2377
+ readonly 'notificationBell.empty': "You have no notifications.";
2378
+ readonly 'notificationBell.close': "Close";
2379
+ readonly 'notificationBell.loading': "Loading notifications";
2380
+ readonly 'notificationBell.retry': "Retry";
2381
+ readonly 'notificationBell.markAllRead': "Mark all as read";
2382
+ readonly 'notificationBell.markRead': "Mark read";
2383
+ readonly 'notificationBell.markReadNamed': "Mark {{ title }} as read";
2384
+ readonly 'notificationBell.loadMore': "Load more";
2385
+ readonly 'notificationBell.new': "New";
2386
+ readonly 'notificationBell.labelUnread': "{{ label }}, {{ count }} unread";
2387
+ readonly 'notificationBell.unread': "{{ count }} unread";
2388
+ readonly 'notificationBell.allCaughtUp': "All caught up";
2389
+ readonly 'notificationBell.announce.none': "You have no unread notifications.";
2390
+ readonly 'notificationBell.announce.one': "You have 1 unread notification.";
2391
+ readonly 'notificationBell.announce.other': "You have {{ count }} unread notifications.";
2273
2392
  };
2274
2393
  export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
2275
2394
  export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
@@ -5178,6 +5297,139 @@ export declare class StarComponent {
5178
5297
  "starClick": "starClick";
5179
5298
  }, never, never, true, never>;
5180
5299
  }
5300
+ /** One row of the notification list. `time` is the text to show (the host formats it: "5 min ago", "Nov 10"); `read` false = unread (highlighted, "New" badge, a Mark read button). */
5301
+ export interface NotificationItem {
5302
+ id: string;
5303
+ title: string;
5304
+ body?: string | null;
5305
+ time?: string | null;
5306
+ read: boolean;
5307
+ }
5308
+ /**
5309
+ * The notification bell: a bell button with an unread count, that opens a side panel listing the user's notifications
5310
+ * (`<ui-notification-bell [items]="items()" [unreadCount]="unread()" [(open)]="open" (opened)="load()" (itemSelect)="go($event)" (markRead)="read($event)" (markAllRead)="readAll()" />`).
5311
+ *
5312
+ * The component owns the look and the keyboard / screen-reader behaviour and holds NO http: the host loads the list (when `(opened)` fires), formats the times, keeps the unread count
5313
+ * current (the bell shows `unreadCount` even while the panel is closed) and answers `(markRead)` / `(markAllRead)` / `(loadMore)` / `(retry)`. Selecting a row emits `(itemSelect)` (the host
5314
+ * marks it read, navigates, and closes the panel with `open.set(false)`); the "Mark read" button of an unread row emits `(markRead)` only. Built from the library's own button, icon, badge,
5315
+ * side panel, list item, empty / error state and skeleton, so it follows their theming, focus rings and 44px touch targets.
5316
+ *
5317
+ * Accessibility: the trigger is a real button named "Notifications, N unread" (`ariaLabel` + the count), `aria-expanded` follows the panel; the count badge is decorative (the name already
5318
+ * carries it, so it is `aria-hidden`); a read row has no "New" badge; "Mark read" buttons carry the row title in their name. A visually hidden polite live region announces every CHANGE of
5319
+ * the unread count ("You have 3 unread notifications.", "You have no unread notifications.") - never the count the bell was first shown with, so a page load is silent.
5320
+ *
5321
+ * Text: every word comes from the label service (keys `notificationBell.*`, English and Spanish); `ariaLabel`, `panelTitle` and `emptyMessage` override the defaults when the host wants
5322
+ * its own wording.
5323
+ */
5324
+ export declare class NotificationBellComponent {
5325
+ /** The notifications to list, newest first. */
5326
+ readonly items: import("@angular/core").InputSignal<readonly NotificationItem[]>;
5327
+ /** How many notifications are unread (shown on the bell even while the panel is closed). */
5328
+ readonly unreadCount: import("@angular/core").InputSignal<number>;
5329
+ readonly loading: import("@angular/core").InputSignal<boolean>;
5330
+ readonly loadingMore: import("@angular/core").InputSignal<boolean>;
5331
+ /** A load failure message ('' = none): shown with a Retry button instead of the list. */
5332
+ readonly error: import("@angular/core").InputSignal<string>;
5333
+ /** More pages exist: shows a "Load more" button under the list. */
5334
+ readonly hasMore: import("@angular/core").InputSignal<boolean>;
5335
+ /** Overrides the bell's accessible name (default: the label service's "Notifications"). */
5336
+ readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
5337
+ /** Overrides the panel title (default: "Notifications"). */
5338
+ readonly panelTitleInput: import("@angular/core").InputSignal<string | null>;
5339
+ /** Overrides the empty-list message (default: "You have no notifications."). */
5340
+ readonly emptyMessageInput: import("@angular/core").InputSignal<string | null>;
5341
+ /** Counts above this show as "<max>+" on the bell. */
5342
+ readonly maxCount: import("@angular/core").InputSignal<number>;
5343
+ /** Whether the panel is open (two-way: `[(open)]`). */
5344
+ readonly open: import("@angular/core").ModelSignal<boolean>;
5345
+ /** Fires every time the panel is opened by the bell: the host (re)loads the list. */
5346
+ readonly opened: import("@angular/core").OutputEmitterRef<void>;
5347
+ readonly itemSelect: import("@angular/core").OutputEmitterRef<NotificationItem>;
5348
+ readonly markRead: import("@angular/core").OutputEmitterRef<NotificationItem>;
5349
+ readonly markAllRead: import("@angular/core").OutputEmitterRef<void>;
5350
+ readonly loadMore: import("@angular/core").OutputEmitterRef<void>;
5351
+ readonly retry: import("@angular/core").OutputEmitterRef<void>;
5352
+ protected readonly labels: UiLabelsService;
5353
+ /** The text a screen reader hears when the unread count changes ('' until it does). */
5354
+ protected readonly announcement: import("@angular/core").WritableSignal<string>;
5355
+ protected readonly baseLabel: import("@angular/core").Signal<string>;
5356
+ protected readonly panelTitleText: import("@angular/core").Signal<string>;
5357
+ protected readonly emptyText: import("@angular/core").Signal<string>;
5358
+ protected readonly countText: import("@angular/core").Signal<string>;
5359
+ protected readonly triggerLabel: import("@angular/core").Signal<string>;
5360
+ protected readonly summaryText: import("@angular/core").Signal<string>;
5361
+ /** The unread count the live region last saw (null until the first render, so the count the bell starts with is never announced). */
5362
+ private lastCount;
5363
+ constructor();
5364
+ toggle(): void;
5365
+ close(): void;
5366
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationBellComponent, never>;
5367
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationBellComponent, "ui-notification-bell", never, {
5368
+ "items": {
5369
+ "alias": "items";
5370
+ "required": false;
5371
+ "isSignal": true;
5372
+ };
5373
+ "unreadCount": {
5374
+ "alias": "unreadCount";
5375
+ "required": false;
5376
+ "isSignal": true;
5377
+ };
5378
+ "loading": {
5379
+ "alias": "loading";
5380
+ "required": false;
5381
+ "isSignal": true;
5382
+ };
5383
+ "loadingMore": {
5384
+ "alias": "loadingMore";
5385
+ "required": false;
5386
+ "isSignal": true;
5387
+ };
5388
+ "error": {
5389
+ "alias": "error";
5390
+ "required": false;
5391
+ "isSignal": true;
5392
+ };
5393
+ "hasMore": {
5394
+ "alias": "hasMore";
5395
+ "required": false;
5396
+ "isSignal": true;
5397
+ };
5398
+ "ariaLabelInput": {
5399
+ "alias": "ariaLabel";
5400
+ "required": false;
5401
+ "isSignal": true;
5402
+ };
5403
+ "panelTitleInput": {
5404
+ "alias": "panelTitle";
5405
+ "required": false;
5406
+ "isSignal": true;
5407
+ };
5408
+ "emptyMessageInput": {
5409
+ "alias": "emptyMessage";
5410
+ "required": false;
5411
+ "isSignal": true;
5412
+ };
5413
+ "maxCount": {
5414
+ "alias": "maxCount";
5415
+ "required": false;
5416
+ "isSignal": true;
5417
+ };
5418
+ "open": {
5419
+ "alias": "open";
5420
+ "required": false;
5421
+ "isSignal": true;
5422
+ };
5423
+ }, {
5424
+ "open": "openChange";
5425
+ "opened": "opened";
5426
+ "itemSelect": "itemSelect";
5427
+ "markRead": "markRead";
5428
+ "markAllRead": "markAllRead";
5429
+ "loadMore": "loadMore";
5430
+ "retry": "retry";
5431
+ }, never, never, true, never>;
5432
+ }
5181
5433
  /**
5182
5434
  * Library source 2026-11-05, not yet published.
5183
5435
  *
@@ -9534,6 +9786,8 @@ export interface DropdownItem {
9534
9786
  disabled?: boolean;
9535
9787
  /** Optional 14px icon before the label: an SVG path (the `d` value, like a toolbar action's `icon`). Decorative (hidden from assistive tech). */
9536
9788
  icon?: string;
9789
+ /** Optional smaller, muted second line under the label (e.g. what the choice does). Read by assistive technology as the item's description, not as part of its name. Plain text. */
9790
+ description?: string;
9537
9791
  }
9538
9792
  /** Which edge of the trigger the menu lines up with: `auto` (default) opens from the trigger's left edge and switches to its right edge when the menu would run off the right of the screen. */
9539
9793
  export type DropdownAlign = 'auto' | 'start' | 'end';
@@ -14393,6 +14647,56 @@ export declare class FixedFooterComponent {
14393
14647
  };
14394
14648
  }, {}, never, ["*"], true, never>;
14395
14649
  }
14650
+ /**
14651
+ * "Skip to main content" link for a page that is NOT inside `ui-app-shell` (a public page, a standalone flow). Put it as the FIRST element of the page:
14652
+ *
14653
+ * <ui-skip-link target="shop-main" />
14654
+ * ...
14655
+ * <main id="shop-main"> ... </main>
14656
+ *
14657
+ * It is a real link (`<a href="#target">`, so it works as a link for assistive technology and with a middle-click) and sits inside its own named
14658
+ * `navigation` landmark ("Skip links"), so no content is outside a landmark. It is off screen until it receives keyboard focus. Activating it does not
14659
+ * change the URL (the app uses the router): it moves focus to the element with the target id (giving it `tabindex="-1"` when it has none) and scrolls it
14660
+ * into view. An unknown target does nothing. `ui-app-shell` keeps its own skip link.
14661
+ *
14662
+ * Inputs: `target` (element id, default `main-content`), `label` (default: the translated "Skip to main content"), `ariaLabel` (the landmark's name, default "Skip links").
14663
+ * Output: `activated` (the target id, when focus was moved).
14664
+ */
14665
+ export declare class SkipLinkComponent {
14666
+ private readonly doc;
14667
+ private readonly labels;
14668
+ /** Id of the element that receives focus. */
14669
+ readonly target: import("@angular/core").InputSignal<string>;
14670
+ /** The link text (default: translated "Skip to main content"). */
14671
+ readonly label: import("@angular/core").InputSignal<string>;
14672
+ /** The accessible name of the landmark (default: translated "Skip links"). */
14673
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
14674
+ /** Fires with the target id when focus was moved. */
14675
+ readonly activated: import("@angular/core").OutputEmitterRef<string>;
14676
+ protected readonly text: import("@angular/core").Signal<string>;
14677
+ protected readonly landmarkLabel: import("@angular/core").Signal<string>;
14678
+ protected skip(event: Event): void;
14679
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkipLinkComponent, never>;
14680
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkipLinkComponent, "ui-skip-link", never, {
14681
+ "target": {
14682
+ "alias": "target";
14683
+ "required": false;
14684
+ "isSignal": true;
14685
+ };
14686
+ "label": {
14687
+ "alias": "label";
14688
+ "required": false;
14689
+ "isSignal": true;
14690
+ };
14691
+ "ariaLabel": {
14692
+ "alias": "ariaLabel";
14693
+ "required": false;
14694
+ "isSignal": true;
14695
+ };
14696
+ }, {
14697
+ "activated": "activated";
14698
+ }, never, never, true, never>;
14699
+ }
14396
14700
  /** One column (stage) of a [ui-board]. `items` are the host's own records; the board never reads their fields. */
14397
14701
  export interface BoardColumn<T = unknown> {
14398
14702
  /** Unique id of the column (the stage key); reported in `from` / `to` of a move. */
@@ -20235,4 +20539,298 @@ export declare class ConfirmAfterCheckService {
20235
20539
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmAfterCheckService, never>;
20236
20540
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
20237
20541
  }
20542
+ /** One column (stage) of a [ui-kanban-board]. */
20543
+ export interface KanbanColumn {
20544
+ /** Unique id of the column; what `columnFn` returns for the cards that belong to it, and `fromColumn` / `toColumn` of a move. */
20545
+ key: string;
20546
+ /** Column title. */
20547
+ label: string;
20548
+ /** Dot colour: a CSS colour or one of blue / cyan / green / teal / amber / orange / red / pink / slate / gray. */
20549
+ color?: string;
20550
+ /** Chance (0 to 100) that a card in this stage closes, shown as a chip next to the count ("60%"). */
20551
+ probability?: number;
20552
+ /** Pre-formatted value shown at the foot of the column, e.g. a weighted total ("$1.2M weighted"). */
20553
+ footer?: string;
20554
+ /** Spoken version of `footer`. Defaults to the footer text. */
20555
+ footerLabel?: string;
20556
+ /** Text of the empty column; defaults to the board's `emptyText`. */
20557
+ emptyText?: string;
20558
+ /** true = cards can be dragged out of this column but never dropped into it. */
20559
+ disabled?: boolean;
20560
+ }
20561
+ /** Fired when the user drops a card somewhere new (drag, keyboard or the "Move to" menu). The board has ALREADY moved the card on screen. */
20562
+ export interface KanbanMove<T = unknown> {
20563
+ /** Unique per move; `revert(move)` uses it. */
20564
+ id: number;
20565
+ item: T;
20566
+ fromColumn: string;
20567
+ toColumn: string;
20568
+ /** Position (0-based) in the column the card came from. */
20569
+ fromIndex: number;
20570
+ /** Final position (0-based) in the column it went to. */
20571
+ toIndex: number;
20572
+ /** Same as `board.revert(move)`: call it when the host's save failed to put the card back where it was. */
20573
+ revert: () => void;
20574
+ }
20575
+ /** Context of the card template: `<ng-template [uiKanbanCard]="items()" let-deal let-column="column">`. */
20576
+ export interface KanbanCardContext<T = unknown> {
20577
+ $implicit: T;
20578
+ column: KanbanColumn;
20579
+ /** Position of the card in its column (0-based). */
20580
+ index: number;
20581
+ }
20582
+ /**
20583
+ * Marks the template that renders the INSIDE of a card (the board draws the frame, the grip, the "Move to" menu and the drag handling).
20584
+ * Bind the board's items to type the card: `<ng-template [uiKanbanCard]="items()" let-deal>`; the bare `<ng-template uiKanbanCard let-item>` still works
20585
+ * (`item` is then `unknown`).
20586
+ */
20587
+ export declare class KanbanCardDirective<T = unknown> {
20588
+ /** Only used to infer the item type in the template; the value is never read. */
20589
+ readonly typeFrom: import("@angular/core").InputSignal<"" | readonly T[]>;
20590
+ readonly template: TemplateRef<KanbanCardContext<T>>;
20591
+ static ngTemplateContextGuard<T>(_dir: KanbanCardDirective<T>, _ctx: unknown): _ctx is KanbanCardContext<T>;
20592
+ static ɵfac: i0.ɵɵFactoryDeclaration<KanbanCardDirective<any>, never>;
20593
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KanbanCardDirective<any>, "ng-template[uiKanbanCard]", never, {
20594
+ "typeFrom": {
20595
+ "alias": "uiKanbanCard";
20596
+ "required": false;
20597
+ "isSignal": true;
20598
+ };
20599
+ }, {}, never, never, true, never>;
20600
+ }
20601
+ /**
20602
+ * Kanban board with positional drag and drop: columns of cards that can be moved between and within columns. Data and saving stay with the host.
20603
+ *
20604
+ * <ui-kanban-board [columns]="columns()" [items]="deals()" [columnFn]="stageOf" [cardId]="idOf" [cardLabel]="nameOf"
20605
+ * [canDrop]="canDrop" [readOnly]="perm() !== 'full'" [disabled]="saving()" [loading]="loading()"
20606
+ * (cardMove)="save($event)" (cardClick)="open($event)">
20607
+ * <ng-template [uiKanbanCard]="deals()" let-deal let-column="column"> ...card content... </ng-template>
20608
+ * </ui-kanban-board>
20609
+ *
20610
+ * - A drop moves the card on screen at once and emits `cardMove`; the host saves it and calls `board.revert(move)` (or `move.revert()`) if that fails.
20611
+ * - Pointer: drag a card (the mouse anywhere on it, touch from its grip). Keyboard: focus a card, Space picks it up, the arrow keys move it
20612
+ * (left / right = column, up / down = position), Space or Enter drops it, Escape cancels; every step is announced in a polite live region
20613
+ * ("Moved Oak Plaza to Negotiation, position 2 of 5"). Enter on a card that is not picked up emits `cardClick`. Arrow keys on a card that is
20614
+ * not picked up move the focus between cards.
20615
+ * - Touch-safe alternative: every card has a "Move to" menu (`moveMenu`), which also serves screen readers and mouse users who do not drag.
20616
+ * - `canDrop(item, fromColumn, toColumn)` forbids moves the backend would refuse: blocked columns are marked while a card is held (a visible
20617
+ * "Not allowed" badge, `aria-disabled`, announced), the drop is refused and the "Move to" menu leaves them out.
20618
+ * - `readOnly` removes the grips, the menu and every move; `disabled` pauses moves (e.g. while a save runs) and marks the board busy.
20619
+ * - On phones (<=640px) the columns scroll sideways with snap points.
20620
+ */
20621
+ export declare class KanbanBoardComponent<T = unknown> {
20622
+ protected readonly labels: UiLabelsService;
20623
+ private readonly host;
20624
+ private readonly doc;
20625
+ private readonly injector;
20626
+ /** The columns in display order. */
20627
+ readonly columns: import("@angular/core").InputSignal<readonly KanbanColumn[]>;
20628
+ /** Every card of the board, in the order they should appear inside their column. Cards whose column is not in `columns` are not shown. */
20629
+ readonly items: import("@angular/core").InputSignal<readonly T[]>;
20630
+ /** The column key a card belongs to. */
20631
+ readonly columnFn: import("@angular/core").InputSignal<(item: T) => string>;
20632
+ /** Stable unique id of a card (tracks it between renders and finds it for focus and revert). Unique across the whole board. */
20633
+ readonly cardId: import("@angular/core").InputSignal<(item: T) => string>;
20634
+ /** Spoken name of a card ("Oak Plaza, $1.2M"): its accessible name and what the announcements say. The visible content is the `uiKanbanCard` template. */
20635
+ readonly cardLabel: import("@angular/core").InputSignal<(item: T) => string>;
20636
+ /** Rule for moves between columns: may this card go from this column to that one? Refused targets are marked, announced and left out of the menu. Not called for a move inside one column. */
20637
+ readonly canDrop: import("@angular/core").InputSignal<((item: T, fromColumn: string, toColumn: string) => boolean) | null>;
20638
+ /** false = cards can only change column, never position inside one (use it for a board the host sorts itself, e.g. by value). */
20639
+ readonly reorderable: import("@angular/core").InputSignal<boolean>;
20640
+ /** Adds the "Move to <column>" menu to every card: the touch-, screen-reader- and mouse-friendly alternative to dragging. */
20641
+ readonly moveMenu: import("@angular/core").InputSignal<boolean>;
20642
+ readonly loading: import("@angular/core").InputSignal<boolean>;
20643
+ /** true = no grips, no menu, no drag, no keyboard moves (a read-only user). Cards still open. */
20644
+ readonly readOnly: import("@angular/core").InputSignal<boolean>;
20645
+ /** true = moves are paused (a save is running): like `readOnly` (no grips, no menu, a drag in progress is cancelled) and the board is marked busy. */
20646
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
20647
+ /** Cards drawn per column at first and added by each "Show more" (0 = all). Counts and footers always cover every card. */
20648
+ readonly pageSize: import("@angular/core").InputSignal<number>;
20649
+ readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
20650
+ protected readonly ariaLabel: import("@angular/core").Signal<string>;
20651
+ readonly emptyTextInput: import("@angular/core").InputSignal<string | null>;
20652
+ protected readonly emptyText: import("@angular/core").Signal<string>;
20653
+ /** A card was dropped somewhere new. */
20654
+ readonly cardMove: import("@angular/core").OutputEmitterRef<KanbanMove<T>>;
20655
+ /** A card was clicked, or Enter was pressed on it. */
20656
+ readonly cardClick: import("@angular/core").OutputEmitterRef<T>;
20657
+ protected readonly card: import("@angular/core").Signal<KanbanCardDirective<T> | undefined>;
20658
+ protected readonly hintId: string;
20659
+ /** `aria-keyshortcuts` of a movable card: the key that picks it up. */
20660
+ protected readonly pickUpKeys = "Space";
20661
+ protected readonly announcement: import("@angular/core").WritableSignal<string>;
20662
+ protected readonly tabKey: import("@angular/core").WritableSignal<string | null>;
20663
+ protected readonly canDrag: import("@angular/core").Signal<boolean>;
20664
+ protected readonly skeletonColumns: import("@angular/core").Signal<number[]>;
20665
+ /** The cards of every column in display order: the host's items, plus any move not yet replaced by new items. */
20666
+ private readonly layout;
20667
+ /** The column keys in order. A host that re-sends `columns` with new footers or counts must not reset a move that is still being saved, so the layout depends on the keys only. */
20668
+ private readonly columnKeys;
20669
+ private readonly session;
20670
+ private readonly drawn;
20671
+ /** The key of the last moved card: whichever column it is in draws at least up to it, so a card dropped deep in a long column stays on screen (until the next move starts). */
20672
+ private readonly movedKey;
20673
+ private readonly history;
20674
+ private moveSeq;
20675
+ private pointer;
20676
+ private suppressClick;
20677
+ protected readonly liftedKey: import("@angular/core").Signal<string | null>;
20678
+ protected readonly pointerDragging: import("@angular/core").Signal<boolean>;
20679
+ /**
20680
+ * What each column draws. A column draws its first `pageSize` cards ("Show more" adds more) PLUS whatever must be on screen: the card that was last moved
20681
+ * (wherever the host put it), the card being moved in its own column, and - while a card is held with the keyboard - the whole of its own column and of the target
20682
+ * column (so End, the slot and the announcement are exact; this is bounded by the size of one column). A pointer drag never widens a column: the drop position
20683
+ * is counted among the cards drawn, so hovering a 600-card column does not render 600 cards.
20684
+ */
20685
+ protected readonly views: import("@angular/core").Signal<{
20686
+ col: KanbanColumn;
20687
+ list: T[];
20688
+ shown: T[];
20689
+ hidden: number;
20690
+ next: number;
20691
+ }[]>;
20692
+ /** The card the Tab key reaches (one tab stop for the whole board): the last focused one, else the first card of the first column that has one. */
20693
+ protected readonly tabbableKey: import("@angular/core").Signal<string | null>;
20694
+ /** Where the drop slot is drawn: in `col`, before the card `beforeKey` (null = at the end). Null while nothing is held or the target is refused. */
20695
+ private readonly slot;
20696
+ /** "Move to" menus, built on demand and rebuilt when the columns, the rule or the language change. */
20697
+ private readonly menuMemo;
20698
+ constructor();
20699
+ /** Ends any move in progress without a drop and without an announcement (the board changed under it). */
20700
+ private letGo;
20701
+ protected dot(color?: string): string;
20702
+ protected percent(p: number): string;
20703
+ protected columnLabel(col: KanbanColumn, count: number): string;
20704
+ protected isTarget(key: string): boolean;
20705
+ /** While a card is held, a column that cannot take it. */
20706
+ protected isBlocked(key: string): boolean;
20707
+ protected slotBefore(colKey: string, beforeKey: string | null): boolean;
20708
+ protected showMore(colKey: string): void;
20709
+ /**
20710
+ * Puts a card back where it was before `move` (call it when the host's save failed). Does nothing when the host has already replaced `items`
20711
+ * (the new data wins; a host that updates its own items inside `cardMove` must revert its own data) or the move was reverted before. When the same card
20712
+ * was moved again after `move`, reverting the OLDER move puts the card at the older origin and makes the later move's revert a no-op; reverting the later move
20713
+ * first puts it at the later origin (and the older revert still works).
20714
+ */
20715
+ revert(move: KanbanMove<T>): void;
20716
+ private group;
20717
+ /** May the card leave `from` for column `to` (a different column)? */
20718
+ private accepts;
20719
+ private targetAllowed;
20720
+ private previewLength;
20721
+ private colLabelOf;
20722
+ private announce;
20723
+ protected onCardClick(item: T): void;
20724
+ protected onCardKey(event: KeyboardEvent, item: T, col: KanbanColumn, index: number): void;
20725
+ protected onCardFocusOut(event: FocusEvent, key: string): void;
20726
+ private pickUp;
20727
+ private onHeldKey;
20728
+ /** Moves the held card's target and says where it is now (or that the place refuses it). */
20729
+ private target;
20730
+ /** Keeps the held card's target on screen: after the new slot (or the refused column) is drawn, scroll it into view (sideways to the column, down to the slot). */
20731
+ private showTarget;
20732
+ private moveFocus;
20733
+ private keyAt;
20734
+ protected onPointerDown(event: PointerEvent, item: T, colKey: string, index: number): void;
20735
+ private readonly onDocMove;
20736
+ private readonly onDocUp;
20737
+ private readonly onDocCancel;
20738
+ /** A drag across the page must not select text on the way. */
20739
+ private readonly onSelectStart;
20740
+ private readonly onDocKey;
20741
+ private startDrag;
20742
+ private placeGhost;
20743
+ /** Finds the column under the pointer and the position among its cards. */
20744
+ private retarget;
20745
+ private scheduleScroll;
20746
+ /** Ends a press: `commit` drops the card where it is held, otherwise it stays. `say` = announce a cancel. */
20747
+ private endPointer;
20748
+ /** Drops the held card at its target: a refused target announces why (a held card stays held, a dragged one goes home). */
20749
+ private drop;
20750
+ private cancelSession;
20751
+ /** The "Move to" menu of a card: one item per column that accepts it. */
20752
+ protected moveActions(item: T, fromCol: string): RowAction[];
20753
+ protected onMenuAction(type: string, item: T, fromCol: string): void;
20754
+ private applyMove;
20755
+ private findCard;
20756
+ private focusNow;
20757
+ /** A moved card is drawn again in its new place: put the focus back on it once it is there. */
20758
+ private focusCard;
20759
+ static ɵfac: i0.ɵɵFactoryDeclaration<KanbanBoardComponent<any>, never>;
20760
+ static ɵcmp: i0.ɵɵComponentDeclaration<KanbanBoardComponent<any>, "ui-kanban-board", never, {
20761
+ "columns": {
20762
+ "alias": "columns";
20763
+ "required": true;
20764
+ "isSignal": true;
20765
+ };
20766
+ "items": {
20767
+ "alias": "items";
20768
+ "required": true;
20769
+ "isSignal": true;
20770
+ };
20771
+ "columnFn": {
20772
+ "alias": "columnFn";
20773
+ "required": true;
20774
+ "isSignal": true;
20775
+ };
20776
+ "cardId": {
20777
+ "alias": "cardId";
20778
+ "required": true;
20779
+ "isSignal": true;
20780
+ };
20781
+ "cardLabel": {
20782
+ "alias": "cardLabel";
20783
+ "required": true;
20784
+ "isSignal": true;
20785
+ };
20786
+ "canDrop": {
20787
+ "alias": "canDrop";
20788
+ "required": false;
20789
+ "isSignal": true;
20790
+ };
20791
+ "reorderable": {
20792
+ "alias": "reorderable";
20793
+ "required": false;
20794
+ "isSignal": true;
20795
+ };
20796
+ "moveMenu": {
20797
+ "alias": "moveMenu";
20798
+ "required": false;
20799
+ "isSignal": true;
20800
+ };
20801
+ "loading": {
20802
+ "alias": "loading";
20803
+ "required": false;
20804
+ "isSignal": true;
20805
+ };
20806
+ "readOnly": {
20807
+ "alias": "readOnly";
20808
+ "required": false;
20809
+ "isSignal": true;
20810
+ };
20811
+ "disabled": {
20812
+ "alias": "disabled";
20813
+ "required": false;
20814
+ "isSignal": true;
20815
+ };
20816
+ "pageSize": {
20817
+ "alias": "pageSize";
20818
+ "required": false;
20819
+ "isSignal": true;
20820
+ };
20821
+ "ariaLabelInput": {
20822
+ "alias": "ariaLabel";
20823
+ "required": false;
20824
+ "isSignal": true;
20825
+ };
20826
+ "emptyTextInput": {
20827
+ "alias": "emptyText";
20828
+ "required": false;
20829
+ "isSignal": true;
20830
+ };
20831
+ }, {
20832
+ "cardMove": "cardMove";
20833
+ "cardClick": "cardClick";
20834
+ }, ["card"], never, true, never>;
20835
+ }
20238
20836
  export type { AllocationModeOption, CalendarAgendaGroup, CalendarDay, CalendarDayLevel, CalendarRange, CalendarViewMode, ChargeAllocation, HostResult, PayableCharge, PaymentAllocation, PaymentEntry, PaymentMethodOption, PaymentPanelOutcome, RecordPaymentFn, RecordPaymentPayload, RecordPaymentResult, SavedPaymentMethod, TerminalConfirmContext, TerminalPhase, TerminalReader, TerminalStartContext, TerminalStartResult, TerminalStatusResult };