@fundamental-ngx/core 0.64.2-rc.2 → 0.64.2-rc.4
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/fundamental-ngx-core-action-sheet.mjs +26 -8
- package/fesm2022/fundamental-ngx-core-action-sheet.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-notification.mjs +177 -16
- package/fesm2022/fundamental-ngx-core-notification.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/package.json +1 -1
- package/types/fundamental-ngx-core-action-sheet.d.ts +7 -1
- package/types/fundamental-ngx-core-notification.d.ts +29 -4
|
@@ -224,8 +224,9 @@ declare class NotificationFooterComponent {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
declare class NotificationGroupGrowingItemComponent {
|
|
227
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
227
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationGroupGrowingItemComponent, never>;
|
|
228
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationGroupGrowingItemComponent, "fd-notification-group-growing-item", never, {}, {}, never, ["[fd-notification-group-growing-item-title]", "*"], true, never>;
|
|
229
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationGroupGrowingItemComponent, "fd-notification-group-growing-item", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["[fd-notification-group-growing-item-title]", "*"], true, never>;
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
declare class NotificationGroupHeaderComponent extends NotificationGroupBaseDirective {
|
|
@@ -258,6 +259,10 @@ declare class NotificationGroupHeaderComponent extends NotificationGroupBaseDire
|
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
declare class NotificationComponent extends AbstractFdNgxClass implements OnInit, AfterViewInit, OnDestroy {
|
|
262
|
+
/** @hidden */
|
|
263
|
+
private static readonly _FOCUSABLE_SELECTOR;
|
|
264
|
+
/** Callback fired when Enter or Delete/Backspace is pressed on this notification. */
|
|
265
|
+
actionKeyHandler: i0.InputSignal<Nullable<(event: KeyboardEvent, key: "enter" | "delete") => void>>;
|
|
261
266
|
/** @hidden */
|
|
262
267
|
containerRef: i0.Signal<ViewContainerRef | undefined>;
|
|
263
268
|
/** User defined width for the notification */
|
|
@@ -335,8 +340,6 @@ declare class NotificationComponent extends AbstractFdNgxClass implements OnInit
|
|
|
335
340
|
private _observer;
|
|
336
341
|
/** @hidden */
|
|
337
342
|
constructor();
|
|
338
|
-
/** @hidden Listen and close notification on Escape key */
|
|
339
|
-
_closeNotificationEsc(event: KeyboardEvent): void;
|
|
340
343
|
/** @hidden */
|
|
341
344
|
ngOnInit(): void;
|
|
342
345
|
/** @hidden */
|
|
@@ -351,6 +354,14 @@ declare class NotificationComponent extends AbstractFdNgxClass implements OnInit
|
|
|
351
354
|
trapFocus(): Promise<boolean>;
|
|
352
355
|
/** @hidden */
|
|
353
356
|
_setProperties(): void;
|
|
357
|
+
/** @hidden Focuses the element at the same child path, or a close fallback if not found. */
|
|
358
|
+
focusByPath(path: number[]): void;
|
|
359
|
+
/** @hidden Returns the child index path from this notification to the target element. */
|
|
360
|
+
getPathToChild(target: EventTarget | null): number[] | null;
|
|
361
|
+
/** @hidden Listen and close notification on Escape key */
|
|
362
|
+
protected closeNotificationEsc(event: KeyboardEvent): void;
|
|
363
|
+
/** @hidden Calls the optional action callback when Enter or Delete/Backspace is pressed. */
|
|
364
|
+
protected handleNotificationActionKeys(event: KeyboardEvent): void;
|
|
354
365
|
/** @hidden */
|
|
355
366
|
private _observeNotificationResize;
|
|
356
367
|
/** @hidden */
|
|
@@ -369,8 +380,14 @@ declare class NotificationComponent extends AbstractFdNgxClass implements OnInit
|
|
|
369
380
|
private _loadFromTemplate;
|
|
370
381
|
/** @hidden */
|
|
371
382
|
private _setNotificationConfig;
|
|
383
|
+
/** @hidden Returns true when keyboard handling should not run for editable or nested interactive controls. */
|
|
384
|
+
private _isEditableTarget;
|
|
385
|
+
/** @hidden Builds a path of child indexes from this notification root to the target element. */
|
|
386
|
+
private _buildPathToNotification;
|
|
387
|
+
/** @hidden Resolves a child-index path to an element inside this notification. */
|
|
388
|
+
private _resolvePathInNotification;
|
|
372
389
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
373
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "fd-notification", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "mobile": { "alias": "mobile"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, ["_notificationTitle", "_notificationParagraph", "_notificationFooter"], ["*"], true, never>;
|
|
390
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "fd-notification", never, { "actionKeyHandler": { "alias": "actionKeyHandler"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "mobile": { "alias": "mobile"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, ["_notificationTitle", "_notificationParagraph", "_notificationFooter"], ["*"], true, never>;
|
|
374
391
|
}
|
|
375
392
|
|
|
376
393
|
declare class NotificationGroupListComponent implements AfterViewInit {
|
|
@@ -391,6 +408,14 @@ declare class NotificationGroupListComponent implements AfterViewInit {
|
|
|
391
408
|
* @hidden
|
|
392
409
|
*/
|
|
393
410
|
ngAfterViewInit(): void;
|
|
411
|
+
/** @hidden Handles list keyboard navigation and moves focus to the target notification. */
|
|
412
|
+
protected onListKeydown(event: KeyboardEvent): void;
|
|
413
|
+
/** @hidden Returns the index of the notification that contains the current event target. */
|
|
414
|
+
private _resolveCurrentIndex;
|
|
415
|
+
/** @hidden Calculates which notification should receive focus for Arrow, Home, and End keys. */
|
|
416
|
+
private _resolveTargetIndex;
|
|
417
|
+
/** @hidden Allows navigation only for supported keys and non-editable targets. */
|
|
418
|
+
private _shouldHandleNavigation;
|
|
394
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationGroupListComponent, never>;
|
|
395
420
|
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationGroupListComponent, "fd-notification-group-list", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, ["notifications"], ["*"], true, never>;
|
|
396
421
|
}
|