@basis-ng/primitives 0.0.1-alpha.148 → 0.0.1-alpha.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -438,7 +438,7 @@ type Direction = 'top' | 'bottom' | 'left' | 'right';
|
|
|
438
438
|
/**
|
|
439
439
|
* A draggable floating drawer that can slide from any side.
|
|
440
440
|
*/
|
|
441
|
-
declare class Drawer {
|
|
441
|
+
declare class Drawer implements OnDestroy {
|
|
442
442
|
/**
|
|
443
443
|
* Model indicating whether the drawer is open.
|
|
444
444
|
*/
|
|
@@ -451,6 +451,12 @@ declare class Drawer {
|
|
|
451
451
|
* Whether the drawer can be dragged closed.
|
|
452
452
|
*/
|
|
453
453
|
readonly draggable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
454
|
+
/**
|
|
455
|
+
* Whether clicking outside closes the drawer.
|
|
456
|
+
* When false, a full-viewport blocking overlay is mounted at body level
|
|
457
|
+
* so outside clicks (and pointer events) cannot reach other elements.
|
|
458
|
+
*/
|
|
459
|
+
readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
454
460
|
/**
|
|
455
461
|
* Emitted when the sheet is closed.
|
|
456
462
|
*/
|
|
@@ -483,6 +489,13 @@ declare class Drawer {
|
|
|
483
489
|
* Element reference to the host component.
|
|
484
490
|
*/
|
|
485
491
|
private readonly el;
|
|
492
|
+
/**
|
|
493
|
+
* Body-level blocking overlay used when closable=false to prevent
|
|
494
|
+
* pointer events from reaching elements behind the open drawer.
|
|
495
|
+
*/
|
|
496
|
+
private blockingOverlay;
|
|
497
|
+
constructor();
|
|
498
|
+
ngOnDestroy(): void;
|
|
486
499
|
/**
|
|
487
500
|
* Close the drawer when clicking outside of it.
|
|
488
501
|
* The stopPropagation in the drawer-content prevents clicks inside from closing it.
|
|
@@ -523,8 +536,17 @@ declare class Drawer {
|
|
|
523
536
|
* Returns the positive pointer direction that closes the drawer.
|
|
524
537
|
*/
|
|
525
538
|
private getCloseDirection;
|
|
539
|
+
/**
|
|
540
|
+
* Mounts a transparent full-viewport div at body level that captures all
|
|
541
|
+
* pointer events, preventing them from reaching elements behind the drawer.
|
|
542
|
+
*/
|
|
543
|
+
private mountBlockingOverlay;
|
|
544
|
+
/**
|
|
545
|
+
* Removes the blocking overlay from the DOM if present.
|
|
546
|
+
*/
|
|
547
|
+
private removeBlockingOverlay;
|
|
526
548
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Drawer, never>;
|
|
527
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "b-drawer", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "closeThreshold": { "alias": "closeThreshold"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closeSheet": "closeSheet"; }, never, ["*"], true, never>;
|
|
549
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "b-drawer", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeThreshold": { "alias": "closeThreshold"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closeSheet": "closeSheet"; }, never, ["*"], true, never>;
|
|
528
550
|
}
|
|
529
551
|
|
|
530
552
|
/**
|