@forgeroute/ui 0.4.88 → 0.4.90
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-map.mjs +2799 -0
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -0
- package/fesm2022/{forgeroute-ui-ui-labels.es-Hp0NTuG7.mjs → forgeroute-ui-ui-labels.es-D3a6iMnB.mjs} +120 -2
- package/fesm2022/{forgeroute-ui-ui-labels.es-Hp0NTuG7.mjs.map → forgeroute-ui-ui-labels.es-D3a6iMnB.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +12880 -10890
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +9 -1
- package/types/forgeroute-ui-map.d.ts +743 -0
- package/types/forgeroute-ui.d.ts +585 -23
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2271,6 +2271,124 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2271
2271
|
readonly 'setupWizard.integrationTitle.twilio': "Twilio (calls & texts)";
|
|
2272
2272
|
readonly 'validation.requiredNoLabel': "This field is required.";
|
|
2273
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.";
|
|
2274
2392
|
};
|
|
2275
2393
|
export type UiLabelKey = keyof typeof UI_DEFAULT_LABELS;
|
|
2276
2394
|
export type UiLabelDictionary = Partial<Record<UiLabelKey, string>>;
|
|
@@ -4225,7 +4343,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4225
4343
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4226
4344
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4227
4345
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4228
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4346
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"primary" | "danger" | "warning">;
|
|
4229
4347
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4230
4348
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4231
4349
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -5022,7 +5140,7 @@ export declare class AudioPlayerComponent {
|
|
|
5022
5140
|
/** Accessible name of the player. */
|
|
5023
5141
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5024
5142
|
/** How much to load before play: 'metadata' (default), 'auto' or 'none'. */
|
|
5025
|
-
readonly preload: import("@angular/core").InputSignal<"
|
|
5143
|
+
readonly preload: import("@angular/core").InputSignal<"metadata" | "auto" | "none">;
|
|
5026
5144
|
/** Fires when the browser can't load or decode the source. */
|
|
5027
5145
|
readonly playbackError: import("@angular/core").OutputEmitterRef<void>;
|
|
5028
5146
|
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -5110,7 +5228,7 @@ export declare class TooltipDirective {
|
|
|
5110
5228
|
/** Tooltip text; empty or null disables the tooltip. */
|
|
5111
5229
|
readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
5112
5230
|
/** Preferred side; flips to the other side when there is no room. */
|
|
5113
|
-
readonly tooltipPosition: import("@angular/core").InputSignal<"
|
|
5231
|
+
readonly tooltipPosition: import("@angular/core").InputSignal<"bottom" | "top">;
|
|
5114
5232
|
private readonly host;
|
|
5115
5233
|
private readonly doc;
|
|
5116
5234
|
private bubble;
|
|
@@ -5179,6 +5297,139 @@ export declare class StarComponent {
|
|
|
5179
5297
|
"starClick": "starClick";
|
|
5180
5298
|
}, never, never, true, never>;
|
|
5181
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
|
+
}
|
|
5182
5433
|
/**
|
|
5183
5434
|
* Library source 2026-11-05, not yet published.
|
|
5184
5435
|
*
|
|
@@ -5443,7 +5694,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
5443
5694
|
* clicking it still toggles the box - e.g. a product name that is both the heading of its card and the label of its checkbox.
|
|
5444
5695
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
5445
5696
|
*/
|
|
5446
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
5697
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 5 | 2 | 3 | 6 | null>;
|
|
5447
5698
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
5448
5699
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
5449
5700
|
/**
|
|
@@ -5878,7 +6129,7 @@ export declare class StepperComponent {
|
|
|
5878
6129
|
* its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
|
|
5879
6130
|
* accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
|
|
5880
6131
|
*/
|
|
5881
|
-
readonly labelPosition: import("@angular/core").InputSignal<"
|
|
6132
|
+
readonly labelPosition: import("@angular/core").InputSignal<"beside" | "below">;
|
|
5882
6133
|
/** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
|
|
5883
6134
|
readonly stackBelow: import("@angular/core").InputSignal<number | null>;
|
|
5884
6135
|
/** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
|
|
@@ -5910,7 +6161,7 @@ export declare class StepperComponent {
|
|
|
5910
6161
|
protected readonly rows: import("@angular/core").Signal<{
|
|
5911
6162
|
step: StepperStep;
|
|
5912
6163
|
index: number;
|
|
5913
|
-
state: "
|
|
6164
|
+
state: "complete" | "current" | "upcoming";
|
|
5914
6165
|
error: boolean;
|
|
5915
6166
|
errorMessage: string;
|
|
5916
6167
|
selectable: boolean;
|
|
@@ -6540,7 +6791,7 @@ export declare class ButtonComponent {
|
|
|
6540
6791
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
6541
6792
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
6542
6793
|
*/
|
|
6543
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
6794
|
+
readonly variant: import("@angular/core").InputSignal<"link" | "ghost" | "primary" | "secondary" | "danger" | "warning" | "ghost-start" | "tab" | "icon" | "icon-danger">;
|
|
6544
6795
|
/** 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`). */
|
|
6545
6796
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
6546
6797
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -6561,7 +6812,7 @@ export declare class ButtonComponent {
|
|
|
6561
6812
|
*/
|
|
6562
6813
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
6563
6814
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
6564
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
6815
|
+
readonly target: import("@angular/core").InputSignal<"_self" | "_blank" | "_parent" | "_top" | null>;
|
|
6565
6816
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
6566
6817
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
6567
6818
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -6585,7 +6836,7 @@ export declare class ButtonComponent {
|
|
|
6585
6836
|
private readonly _narrow;
|
|
6586
6837
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
6587
6838
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
6588
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
6839
|
+
readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xs">;
|
|
6589
6840
|
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
6590
6841
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
6591
6842
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -7229,7 +7480,7 @@ export declare class ImportSourceGridComponent {
|
|
|
7229
7480
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
7230
7481
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
7231
7482
|
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
7232
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
7483
|
+
readonly appearance: import("@angular/core").InputSignal<"card" | "tile">;
|
|
7233
7484
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
7234
7485
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7235
7486
|
/** `card`: the text of each card's button. */
|
|
@@ -7717,7 +7968,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7717
7968
|
readonly passwordRequirements: import("@angular/core").InputSignal<boolean>;
|
|
7718
7969
|
/** Rules for `passwordRequirements`; default = the library's five rules (8+ characters, upper, lower, digit, special). */
|
|
7719
7970
|
readonly passwordRules: import("@angular/core").InputSignal<readonly PasswordRule[] | undefined>;
|
|
7720
|
-
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "
|
|
7971
|
+
readonly type: import("@angular/core").InputSignal<"number" | "email" | "text" | "tel" | "password" | "url">;
|
|
7721
7972
|
readonly maxlength: import("@angular/core").InputSignal<number | undefined>;
|
|
7722
7973
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
7723
7974
|
readonly autocomplete: import("@angular/core").InputSignal<string>;
|
|
@@ -7726,7 +7977,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7726
7977
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
7727
7978
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
7728
7979
|
*/
|
|
7729
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "
|
|
7980
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "search" | "numeric" | "none" | "tel" | "url">;
|
|
7730
7981
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
7731
7982
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
7732
7983
|
/** 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. */
|
|
@@ -7798,7 +8049,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
7798
8049
|
protected readonly _stepAttr: import("@angular/core").Signal<string | null>;
|
|
7799
8050
|
protected readonly _revealable: import("@angular/core").Signal<boolean>;
|
|
7800
8051
|
protected readonly _shown: import("@angular/core").WritableSignal<boolean>;
|
|
7801
|
-
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "
|
|
8052
|
+
protected readonly _inputType: import("@angular/core").Signal<"number" | "email" | "text" | "tel" | "password" | "url">;
|
|
7802
8053
|
protected readonly _eyePath: string;
|
|
7803
8054
|
protected readonly _eyeOffPath: string;
|
|
7804
8055
|
protected readonly _showRequirements: import("@angular/core").Signal<boolean>;
|
|
@@ -9864,7 +10115,7 @@ export declare class FormSectionComponent {
|
|
|
9864
10115
|
}, {}, never, ["*"], true, never>;
|
|
9865
10116
|
}
|
|
9866
10117
|
export declare class FormRowComponent {
|
|
9867
|
-
readonly cols: import("@angular/core").InputSignal<1 |
|
|
10118
|
+
readonly cols: import("@angular/core").InputSignal<1 | 4 | 2 | 3>;
|
|
9868
10119
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
9869
10120
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
9870
10121
|
"cols": {
|
|
@@ -9881,7 +10132,7 @@ export declare class FormRowComponent {
|
|
|
9881
10132
|
* child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).
|
|
9882
10133
|
*/
|
|
9883
10134
|
export declare class FormColSpanDirective {
|
|
9884
|
-
readonly uiColSpan: import("@angular/core").InputSignal<"" | 2 |
|
|
10135
|
+
readonly uiColSpan: import("@angular/core").InputSignal<"" | "2" | 2 | 3 | "3" | "all">;
|
|
9885
10136
|
protected readonly _class: import("@angular/core").Signal<string>;
|
|
9886
10137
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormColSpanDirective, never>;
|
|
9887
10138
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormColSpanDirective, "[uiColSpan]", never, {
|
|
@@ -11197,9 +11448,9 @@ export declare class ChipGroupComponent {
|
|
|
11197
11448
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11198
11449
|
/** Space below the chip group. */
|
|
11199
11450
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
11200
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
11201
|
-
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "
|
|
11202
|
-
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "
|
|
11451
|
+
protected readonly _gap: import("@angular/core").Signal<"6px" | "12px" | "8px">;
|
|
11452
|
+
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11453
|
+
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "6px" | "12px">;
|
|
11203
11454
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
11204
11455
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
11205
11456
|
"gap": {
|
|
@@ -13971,7 +14222,7 @@ export declare class PdfHotspotComponent {
|
|
|
13971
14222
|
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
13972
14223
|
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
13973
14224
|
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
13974
|
-
readonly tone: import("@angular/core").InputSignal<"
|
|
14225
|
+
readonly tone: import("@angular/core").InputSignal<"primary" | "warning">;
|
|
13975
14226
|
/** Text of the ready button (e.g. "Sign Here"). */
|
|
13976
14227
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
13977
14228
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -14111,7 +14362,7 @@ export declare class DetailCardComponent {
|
|
|
14111
14362
|
/** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
|
|
14112
14363
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
14113
14364
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
14114
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
14365
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 5 | 2 | 3 | 6 | null>;
|
|
14115
14366
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
14116
14367
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
14117
14368
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -14125,7 +14376,7 @@ export declare class DetailCardComponent {
|
|
|
14125
14376
|
/** Background colour of the footer bar (the `[card-footer]` slot) as any CSS colour. Empty = no colour of its own. */
|
|
14126
14377
|
readonly footerBackground: import("@angular/core").InputSignal<string>;
|
|
14127
14378
|
/** Alignment of the `[card-footer]` content: `'start'` (default, unchanged) or `'end'` = a right-aligned action row with an 8px gap. */
|
|
14128
|
-
readonly footerAlign: import("@angular/core").InputSignal<"
|
|
14379
|
+
readonly footerAlign: import("@angular/core").InputSignal<"end" | "start">;
|
|
14129
14380
|
/** Text colour as any CSS colour (`#fff`, `var(--on-dark)` …). Empty = the default colours. Colours the title, subtitle, chevron and body text. */
|
|
14130
14381
|
readonly textColor: import("@angular/core").InputSignal<string>;
|
|
14131
14382
|
/** false = no header at all (no title, edit button, toggle or divider): the card is only the body, always open. */
|
|
@@ -16914,7 +17165,7 @@ export declare class SetupWizardComponent {
|
|
|
16914
17165
|
protected customHintId(): string;
|
|
16915
17166
|
protected readonly importBlocked: import("@angular/core").Signal<boolean>;
|
|
16916
17167
|
/** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */
|
|
16917
|
-
protected readonly splitTab: import("@angular/core").WritableSignal<"
|
|
17168
|
+
protected readonly splitTab: import("@angular/core").WritableSignal<"main" | "extra">;
|
|
16918
17169
|
protected readonly splitTabs: import("@angular/core").Signal<{
|
|
16919
17170
|
key: string;
|
|
16920
17171
|
label: string;
|
|
@@ -19177,7 +19428,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
19177
19428
|
private readonly terminalAvailable;
|
|
19178
19429
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
19179
19430
|
private readonly liveMethods;
|
|
19180
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
19431
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "live" | "terminal" | "manual">;
|
|
19181
19432
|
private kindOf;
|
|
19182
19433
|
/** 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. */
|
|
19183
19434
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -20288,4 +20539,315 @@ export declare class ConfirmAfterCheckService {
|
|
|
20288
20539
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmAfterCheckService, never>;
|
|
20289
20540
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
20290
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
|
+
* Cards of this column the host has NOT loaded into `items` yet (server-side paging of a long column). They are added to the count chip and the spoken count, and once
|
|
20562
|
+
* every loaded card is drawn the column offers a "Show more" button that emits `columnMore` so the host can load the next page. A card the user moves out of or into the column
|
|
20563
|
+
* changes the count by itself (only the loaded cards move), so the host keeps `remaining` = server total minus the loaded cards of the column.
|
|
20564
|
+
*/
|
|
20565
|
+
remaining?: number;
|
|
20566
|
+
/** true while the host loads the next page of this column (the "Show more" button shows its spinner and ignores clicks). */
|
|
20567
|
+
loadingMore?: boolean;
|
|
20568
|
+
/** How many cards the host's next page adds, for the "Show N more" label (never more than `remaining`). Default: the board's `pageSize`, or all `remaining` cards when the board draws everything (pageSize 0). */
|
|
20569
|
+
nextCount?: number;
|
|
20570
|
+
}
|
|
20571
|
+
/** 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. */
|
|
20572
|
+
export interface KanbanMove<T = unknown> {
|
|
20573
|
+
/** Unique per move; `revert(move)` uses it. */
|
|
20574
|
+
id: number;
|
|
20575
|
+
item: T;
|
|
20576
|
+
fromColumn: string;
|
|
20577
|
+
toColumn: string;
|
|
20578
|
+
/** Position (0-based) in the column the card came from. */
|
|
20579
|
+
fromIndex: number;
|
|
20580
|
+
/** Final position (0-based) in the column it went to. */
|
|
20581
|
+
toIndex: number;
|
|
20582
|
+
/** Same as `board.revert(move)`: call it when the host's save failed to put the card back where it was. */
|
|
20583
|
+
revert: () => void;
|
|
20584
|
+
}
|
|
20585
|
+
/** Context of the card template: `<ng-template [uiKanbanCard]="items()" let-deal let-column="column">`. */
|
|
20586
|
+
export interface KanbanCardContext<T = unknown> {
|
|
20587
|
+
$implicit: T;
|
|
20588
|
+
column: KanbanColumn;
|
|
20589
|
+
/** Position of the card in its column (0-based). */
|
|
20590
|
+
index: number;
|
|
20591
|
+
}
|
|
20592
|
+
/**
|
|
20593
|
+
* 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).
|
|
20594
|
+
* Bind the board's items to type the card: `<ng-template [uiKanbanCard]="items()" let-deal>`; the bare `<ng-template uiKanbanCard let-item>` still works
|
|
20595
|
+
* (`item` is then `unknown`).
|
|
20596
|
+
*/
|
|
20597
|
+
export declare class KanbanCardDirective<T = unknown> {
|
|
20598
|
+
/** Only used to infer the item type in the template; the value is never read. */
|
|
20599
|
+
readonly typeFrom: import("@angular/core").InputSignal<"" | readonly T[]>;
|
|
20600
|
+
readonly template: TemplateRef<KanbanCardContext<T>>;
|
|
20601
|
+
static ngTemplateContextGuard<T>(_dir: KanbanCardDirective<T>, _ctx: unknown): _ctx is KanbanCardContext<T>;
|
|
20602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanCardDirective<any>, never>;
|
|
20603
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KanbanCardDirective<any>, "ng-template[uiKanbanCard]", never, {
|
|
20604
|
+
"typeFrom": {
|
|
20605
|
+
"alias": "uiKanbanCard";
|
|
20606
|
+
"required": false;
|
|
20607
|
+
"isSignal": true;
|
|
20608
|
+
};
|
|
20609
|
+
}, {}, never, never, true, never>;
|
|
20610
|
+
}
|
|
20611
|
+
/**
|
|
20612
|
+
* 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.
|
|
20613
|
+
*
|
|
20614
|
+
* <ui-kanban-board [columns]="columns()" [items]="deals()" [columnFn]="stageOf" [cardId]="idOf" [cardLabel]="nameOf"
|
|
20615
|
+
* [canDrop]="canDrop" [readOnly]="perm() !== 'full'" [disabled]="saving()" [loading]="loading()"
|
|
20616
|
+
* (cardMove)="save($event)" (cardClick)="open($event)">
|
|
20617
|
+
* <ng-template [uiKanbanCard]="deals()" let-deal let-column="column"> ...card content... </ng-template>
|
|
20618
|
+
* </ui-kanban-board>
|
|
20619
|
+
*
|
|
20620
|
+
* - 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.
|
|
20621
|
+
* - 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
|
|
20622
|
+
* (left / right = column, up / down = position), Space or Enter drops it, Escape cancels; every step is announced in a polite live region
|
|
20623
|
+
* ("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
|
|
20624
|
+
* not picked up move the focus between cards.
|
|
20625
|
+
* - Touch-safe alternative: every card has a "Move to" menu (`moveMenu`), which also serves screen readers and mouse users who do not drag.
|
|
20626
|
+
* - `canDrop(item, fromColumn, toColumn)` forbids moves the backend would refuse: blocked columns are marked while a card is held (a visible
|
|
20627
|
+
* "Not allowed" badge, `aria-disabled`, announced), the drop is refused and the "Move to" menu leaves them out.
|
|
20628
|
+
* - `readOnly` removes the grips, the menu and every move; `disabled` pauses moves (e.g. while a save runs) and marks the board busy.
|
|
20629
|
+
* - On phones (<=640px) the columns scroll sideways with snap points.
|
|
20630
|
+
*/
|
|
20631
|
+
export declare class KanbanBoardComponent<T = unknown> {
|
|
20632
|
+
protected readonly labels: UiLabelsService;
|
|
20633
|
+
private readonly host;
|
|
20634
|
+
private readonly doc;
|
|
20635
|
+
private readonly injector;
|
|
20636
|
+
/** The columns in display order. */
|
|
20637
|
+
readonly columns: import("@angular/core").InputSignal<readonly KanbanColumn[]>;
|
|
20638
|
+
/** Every card of the board, in the order they should appear inside their column. Cards whose column is not in `columns` are not shown. */
|
|
20639
|
+
readonly items: import("@angular/core").InputSignal<readonly T[]>;
|
|
20640
|
+
/** The column key a card belongs to. */
|
|
20641
|
+
readonly columnFn: import("@angular/core").InputSignal<(item: T) => string>;
|
|
20642
|
+
/** Stable unique id of a card (tracks it between renders and finds it for focus and revert). Unique across the whole board. */
|
|
20643
|
+
readonly cardId: import("@angular/core").InputSignal<(item: T) => string>;
|
|
20644
|
+
/** Spoken name of a card ("Oak Plaza, $1.2M"): its accessible name and what the announcements say. The visible content is the `uiKanbanCard` template. */
|
|
20645
|
+
readonly cardLabel: import("@angular/core").InputSignal<(item: T) => string>;
|
|
20646
|
+
/** 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. */
|
|
20647
|
+
readonly canDrop: import("@angular/core").InputSignal<((item: T, fromColumn: string, toColumn: string) => boolean) | null>;
|
|
20648
|
+
/** false = cards can only change column, never position inside one (use it for a board the host sorts itself, e.g. by value). */
|
|
20649
|
+
readonly reorderable: import("@angular/core").InputSignal<boolean>;
|
|
20650
|
+
/** Adds the "Move to <column>" menu to every card: the touch-, screen-reader- and mouse-friendly alternative to dragging. */
|
|
20651
|
+
readonly moveMenu: import("@angular/core").InputSignal<boolean>;
|
|
20652
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
20653
|
+
/** true = no grips, no menu, no drag, no keyboard moves (a read-only user). Cards still open. */
|
|
20654
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
20655
|
+
/** 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. */
|
|
20656
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
20657
|
+
/** Cards drawn per column at first and added by each "Show more" (0 = all). Counts and footers always cover every card. */
|
|
20658
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
20659
|
+
readonly ariaLabelInput: import("@angular/core").InputSignal<string | null>;
|
|
20660
|
+
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
20661
|
+
readonly emptyTextInput: import("@angular/core").InputSignal<string | null>;
|
|
20662
|
+
protected readonly emptyText: import("@angular/core").Signal<string>;
|
|
20663
|
+
/** A card was dropped somewhere new. */
|
|
20664
|
+
readonly cardMove: import("@angular/core").OutputEmitterRef<KanbanMove<T>>;
|
|
20665
|
+
/** A card was clicked, or Enter was pressed on it. */
|
|
20666
|
+
readonly cardClick: import("@angular/core").OutputEmitterRef<T>;
|
|
20667
|
+
/** The "Show more" button of a column that has `remaining` unloaded cards was pressed: the host loads the next page of that column (the payload is the column key). */
|
|
20668
|
+
readonly columnMore: import("@angular/core").OutputEmitterRef<string>;
|
|
20669
|
+
protected readonly card: import("@angular/core").Signal<KanbanCardDirective<T> | undefined>;
|
|
20670
|
+
protected readonly hintId: string;
|
|
20671
|
+
/** `aria-keyshortcuts` of a movable card: the key that picks it up. */
|
|
20672
|
+
protected readonly pickUpKeys = "Space";
|
|
20673
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
20674
|
+
protected readonly tabKey: import("@angular/core").WritableSignal<string | null>;
|
|
20675
|
+
protected readonly canDrag: import("@angular/core").Signal<boolean>;
|
|
20676
|
+
protected readonly skeletonColumns: import("@angular/core").Signal<number[]>;
|
|
20677
|
+
/** The cards of every column in display order: the host's items, plus any move not yet replaced by new items. */
|
|
20678
|
+
private readonly layout;
|
|
20679
|
+
/** 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. */
|
|
20680
|
+
private readonly columnKeys;
|
|
20681
|
+
private readonly session;
|
|
20682
|
+
private readonly drawn;
|
|
20683
|
+
/** 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). */
|
|
20684
|
+
private readonly movedKey;
|
|
20685
|
+
private readonly history;
|
|
20686
|
+
private moveSeq;
|
|
20687
|
+
private pointer;
|
|
20688
|
+
private suppressClick;
|
|
20689
|
+
protected readonly liftedKey: import("@angular/core").Signal<string | null>;
|
|
20690
|
+
protected readonly pointerDragging: import("@angular/core").Signal<boolean>;
|
|
20691
|
+
/**
|
|
20692
|
+
* 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
|
|
20693
|
+
* (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
|
|
20694
|
+
* 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
|
|
20695
|
+
* is counted among the cards drawn, so hovering a 600-card column does not render 600 cards.
|
|
20696
|
+
*/
|
|
20697
|
+
protected readonly views: import("@angular/core").Signal<{
|
|
20698
|
+
col: KanbanColumn;
|
|
20699
|
+
list: T[];
|
|
20700
|
+
shown: T[];
|
|
20701
|
+
hidden: number;
|
|
20702
|
+
next: number;
|
|
20703
|
+
remaining: number;
|
|
20704
|
+
count: number;
|
|
20705
|
+
nextRemote: number;
|
|
20706
|
+
}[]>;
|
|
20707
|
+
/** 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. */
|
|
20708
|
+
protected readonly tabbableKey: import("@angular/core").Signal<string | null>;
|
|
20709
|
+
/** 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. */
|
|
20710
|
+
private readonly slot;
|
|
20711
|
+
/** "Move to" menus, built on demand and rebuilt when the columns, the rule or the language change. */
|
|
20712
|
+
private readonly menuMemo;
|
|
20713
|
+
constructor();
|
|
20714
|
+
/** Ends any move in progress without a drop and without an announcement (the board changed under it). */
|
|
20715
|
+
private letGo;
|
|
20716
|
+
protected dot(color?: string): string;
|
|
20717
|
+
protected percent(p: number): string;
|
|
20718
|
+
protected columnLabel(col: KanbanColumn, count: number): string;
|
|
20719
|
+
protected isTarget(key: string): boolean;
|
|
20720
|
+
/** While a card is held, a column that cannot take it. */
|
|
20721
|
+
protected isBlocked(key: string): boolean;
|
|
20722
|
+
protected slotBefore(colKey: string, beforeKey: string | null): boolean;
|
|
20723
|
+
protected loadMore(col: KanbanColumn): void;
|
|
20724
|
+
protected showMore(colKey: string): void;
|
|
20725
|
+
/**
|
|
20726
|
+
* 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`
|
|
20727
|
+
* (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
|
|
20728
|
+
* 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
|
|
20729
|
+
* first puts it at the later origin (and the older revert still works).
|
|
20730
|
+
*/
|
|
20731
|
+
revert(move: KanbanMove<T>): void;
|
|
20732
|
+
private group;
|
|
20733
|
+
/** May the card leave `from` for column `to` (a different column)? */
|
|
20734
|
+
private accepts;
|
|
20735
|
+
private targetAllowed;
|
|
20736
|
+
private previewLength;
|
|
20737
|
+
private colLabelOf;
|
|
20738
|
+
private announce;
|
|
20739
|
+
protected onCardClick(item: T): void;
|
|
20740
|
+
protected onCardKey(event: KeyboardEvent, item: T, col: KanbanColumn, index: number): void;
|
|
20741
|
+
protected onCardFocusOut(event: FocusEvent, key: string): void;
|
|
20742
|
+
private pickUp;
|
|
20743
|
+
private onHeldKey;
|
|
20744
|
+
/** Moves the held card's target and says where it is now (or that the place refuses it). */
|
|
20745
|
+
private target;
|
|
20746
|
+
/** 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). */
|
|
20747
|
+
private showTarget;
|
|
20748
|
+
private moveFocus;
|
|
20749
|
+
private keyAt;
|
|
20750
|
+
protected onPointerDown(event: PointerEvent, item: T, colKey: string, index: number): void;
|
|
20751
|
+
private readonly onDocMove;
|
|
20752
|
+
private readonly onDocUp;
|
|
20753
|
+
private readonly onDocCancel;
|
|
20754
|
+
/** A drag across the page must not select text on the way. */
|
|
20755
|
+
private readonly onSelectStart;
|
|
20756
|
+
private readonly onDocKey;
|
|
20757
|
+
private startDrag;
|
|
20758
|
+
private placeGhost;
|
|
20759
|
+
/** Finds the column under the pointer and the position among its cards. */
|
|
20760
|
+
private retarget;
|
|
20761
|
+
private scheduleScroll;
|
|
20762
|
+
/** Ends a press: `commit` drops the card where it is held, otherwise it stays. `say` = announce a cancel. */
|
|
20763
|
+
private endPointer;
|
|
20764
|
+
/** Drops the held card at its target: a refused target announces why (a held card stays held, a dragged one goes home). */
|
|
20765
|
+
private drop;
|
|
20766
|
+
private cancelSession;
|
|
20767
|
+
/** The "Move to" menu of a card: one item per column that accepts it. */
|
|
20768
|
+
protected moveActions(item: T, fromCol: string): RowAction[];
|
|
20769
|
+
protected onMenuAction(type: string, item: T, fromCol: string): void;
|
|
20770
|
+
private applyMove;
|
|
20771
|
+
private findCard;
|
|
20772
|
+
private focusNow;
|
|
20773
|
+
/** A moved card is drawn again in its new place: put the focus back on it once it is there. */
|
|
20774
|
+
private focusCard;
|
|
20775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanBoardComponent<any>, never>;
|
|
20776
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KanbanBoardComponent<any>, "ui-kanban-board", never, {
|
|
20777
|
+
"columns": {
|
|
20778
|
+
"alias": "columns";
|
|
20779
|
+
"required": true;
|
|
20780
|
+
"isSignal": true;
|
|
20781
|
+
};
|
|
20782
|
+
"items": {
|
|
20783
|
+
"alias": "items";
|
|
20784
|
+
"required": true;
|
|
20785
|
+
"isSignal": true;
|
|
20786
|
+
};
|
|
20787
|
+
"columnFn": {
|
|
20788
|
+
"alias": "columnFn";
|
|
20789
|
+
"required": true;
|
|
20790
|
+
"isSignal": true;
|
|
20791
|
+
};
|
|
20792
|
+
"cardId": {
|
|
20793
|
+
"alias": "cardId";
|
|
20794
|
+
"required": true;
|
|
20795
|
+
"isSignal": true;
|
|
20796
|
+
};
|
|
20797
|
+
"cardLabel": {
|
|
20798
|
+
"alias": "cardLabel";
|
|
20799
|
+
"required": true;
|
|
20800
|
+
"isSignal": true;
|
|
20801
|
+
};
|
|
20802
|
+
"canDrop": {
|
|
20803
|
+
"alias": "canDrop";
|
|
20804
|
+
"required": false;
|
|
20805
|
+
"isSignal": true;
|
|
20806
|
+
};
|
|
20807
|
+
"reorderable": {
|
|
20808
|
+
"alias": "reorderable";
|
|
20809
|
+
"required": false;
|
|
20810
|
+
"isSignal": true;
|
|
20811
|
+
};
|
|
20812
|
+
"moveMenu": {
|
|
20813
|
+
"alias": "moveMenu";
|
|
20814
|
+
"required": false;
|
|
20815
|
+
"isSignal": true;
|
|
20816
|
+
};
|
|
20817
|
+
"loading": {
|
|
20818
|
+
"alias": "loading";
|
|
20819
|
+
"required": false;
|
|
20820
|
+
"isSignal": true;
|
|
20821
|
+
};
|
|
20822
|
+
"readOnly": {
|
|
20823
|
+
"alias": "readOnly";
|
|
20824
|
+
"required": false;
|
|
20825
|
+
"isSignal": true;
|
|
20826
|
+
};
|
|
20827
|
+
"disabled": {
|
|
20828
|
+
"alias": "disabled";
|
|
20829
|
+
"required": false;
|
|
20830
|
+
"isSignal": true;
|
|
20831
|
+
};
|
|
20832
|
+
"pageSize": {
|
|
20833
|
+
"alias": "pageSize";
|
|
20834
|
+
"required": false;
|
|
20835
|
+
"isSignal": true;
|
|
20836
|
+
};
|
|
20837
|
+
"ariaLabelInput": {
|
|
20838
|
+
"alias": "ariaLabel";
|
|
20839
|
+
"required": false;
|
|
20840
|
+
"isSignal": true;
|
|
20841
|
+
};
|
|
20842
|
+
"emptyTextInput": {
|
|
20843
|
+
"alias": "emptyText";
|
|
20844
|
+
"required": false;
|
|
20845
|
+
"isSignal": true;
|
|
20846
|
+
};
|
|
20847
|
+
}, {
|
|
20848
|
+
"cardMove": "cardMove";
|
|
20849
|
+
"cardClick": "cardClick";
|
|
20850
|
+
"columnMore": "columnMore";
|
|
20851
|
+
}, ["card"], never, true, never>;
|
|
20852
|
+
}
|
|
20291
20853
|
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 };
|