@filip.mazev/blocks 1.4.16 → 1.4.18
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/core/styles/_field-actions.scss +36 -0
- package/core/styles/_helpers.scss +2 -0
- package/core/styles/_slider-rail.scss +11 -0
- package/core/styles/_slider.scss +3 -5
- package/fesm2022/filip.mazev-blocks-core.mjs +56 -9
- package/fesm2022/filip.mazev-blocks-core.mjs.map +1 -1
- package/fesm2022/filip.mazev-blocks-forms.mjs +342 -77
- package/fesm2022/filip.mazev-blocks-forms.mjs.map +1 -1
- package/fesm2022/filip.mazev-blocks-navigation.mjs +1176 -11
- package/fesm2022/filip.mazev-blocks-navigation.mjs.map +1 -1
- package/fesm2022/filip.mazev-blocks-primitives.mjs +441 -7
- package/fesm2022/filip.mazev-blocks-primitives.mjs.map +1 -1
- package/fesm2022/filip.mazev-blocks.mjs +1 -1
- package/fesm2022/filip.mazev-blocks.mjs.map +1 -1
- package/package.json +1 -1
- package/types/filip.mazev-blocks-core.d.ts +19 -2
- package/types/filip.mazev-blocks-forms.d.ts +77 -3
- package/types/filip.mazev-blocks-navigation.d.ts +348 -4
- package/types/filip.mazev-blocks-primitives.d.ts +112 -0
- package/types/filip.mazev-blocks.d.ts +1 -1
|
@@ -532,6 +532,8 @@ export type TagVariant = 'filled' | 'tonal' | 'outlined';
|
|
|
532
532
|
export type TagSize = 'small' | 'medium';
|
|
533
533
|
/** Reusable tag appearance; direct component inputs override these optional values. */
|
|
534
534
|
export interface ITagConfig {
|
|
535
|
+
/** Optional opaque surface. True removes translucency and backdrop blur; otherwise follows application appearance. */
|
|
536
|
+
opaque?: boolean;
|
|
535
537
|
/** Semantic color role. Defaults to accent. */
|
|
536
538
|
color?: TagColor;
|
|
537
539
|
/** Filled, tonal, or outlined treatment. Defaults to tonal. */
|
|
@@ -568,6 +570,8 @@ export declare class Tag {
|
|
|
568
570
|
protected readonly resolvedTrailingNumber: import("@angular/core").Signal<string>;
|
|
569
571
|
protected readonly palette: import("@angular/core").Signal<ITagPalette>;
|
|
570
572
|
protected readonly isNumberOnly: import("@angular/core").Signal<boolean>;
|
|
573
|
+
/** Optional opaque surface; true removes translucency and blur. False or absent follows application appearance. */
|
|
574
|
+
readonly opaque: import("@angular/core").InputSignal<boolean | undefined>;
|
|
571
575
|
readonly text: import("@angular/core").InputSignal<ResolvableText | undefined>;
|
|
572
576
|
readonly config: import("@angular/core").InputSignal<ITagConfig>;
|
|
573
577
|
readonly color: import("@angular/core").InputSignal<TagColor | undefined>;
|
|
@@ -588,6 +592,11 @@ export declare class Tag {
|
|
|
588
592
|
readonly focusable: import("@angular/core").InputSignal<boolean>;
|
|
589
593
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tag, never>;
|
|
590
594
|
static ɵcmp: i0.ɵɵComponentDeclaration<Tag, "bx-tag", never, {
|
|
595
|
+
"opaque": {
|
|
596
|
+
"alias": "opaque";
|
|
597
|
+
"required": false;
|
|
598
|
+
"isSignal": true;
|
|
599
|
+
};
|
|
591
600
|
"text": {
|
|
592
601
|
"alias": "text";
|
|
593
602
|
"required": false;
|
|
@@ -675,4 +684,107 @@ export declare class Tag {
|
|
|
675
684
|
};
|
|
676
685
|
}, {}, never, never, true, never>;
|
|
677
686
|
}
|
|
687
|
+
/** Hover, click, touch and keyboard trigger for nested, opaque bx-menu surfaces. */
|
|
688
|
+
export declare class MenuTriggerDirective {
|
|
689
|
+
private readonly source;
|
|
690
|
+
private readonly overlay;
|
|
691
|
+
private readonly overlayContext;
|
|
692
|
+
private readonly zone;
|
|
693
|
+
private readonly positions;
|
|
694
|
+
private readonly cascade;
|
|
695
|
+
private readonly vcr;
|
|
696
|
+
private readonly traps;
|
|
697
|
+
private readonly opened;
|
|
698
|
+
protected readonly overlayId: import("@angular/core").WritableSignal<string | null>;
|
|
699
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
700
|
+
readonly bxMenuTrigger: import("@angular/core").InputSignal<TemplateRef<unknown>>;
|
|
701
|
+
/** The enclosing trigger, when this is a submenu. */
|
|
702
|
+
/** Optional positioning origin when a disclosure button belongs to a wider row. Defaults to the trigger element. */
|
|
703
|
+
readonly menuOrigin: import("@angular/core").InputSignal<HTMLElement | undefined>;
|
|
704
|
+
readonly menuParent: import("@angular/core").InputSignal<MenuTriggerDirective | undefined>;
|
|
705
|
+
/** Physical preferred side; viewport collision handling can flip the menu. Defaults to right. */
|
|
706
|
+
readonly menuSide: import("@angular/core").InputSignal<"left" | "right">;
|
|
707
|
+
/** Allows hover opening. Click and keyboard access always remain available. Defaults to true. */
|
|
708
|
+
readonly menuHover: import("@angular/core").InputSignal<boolean>;
|
|
709
|
+
/** Accessible menu name, normally the trigger's resolved label. */
|
|
710
|
+
readonly menuLabel: import("@angular/core").InputSignal<string>;
|
|
711
|
+
/** Keep a revealed search path open during pointer movement; Escape still dismisses it. */
|
|
712
|
+
readonly menuPinned: import("@angular/core").InputSignal<boolean>;
|
|
713
|
+
readonly menuOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
714
|
+
readonly menuClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
715
|
+
private overlayRef?;
|
|
716
|
+
private trap?;
|
|
717
|
+
private subscriptions;
|
|
718
|
+
private disconnectTheme?;
|
|
719
|
+
private hoverTimer?;
|
|
720
|
+
private positionTracker?;
|
|
721
|
+
constructor();
|
|
722
|
+
toggle(event: MouseEvent): void;
|
|
723
|
+
open(focus?: boolean): void;
|
|
724
|
+
close(restoreFocus?: boolean): void;
|
|
725
|
+
reposition(): void;
|
|
726
|
+
contains(target: Node): boolean;
|
|
727
|
+
scheduleClose(): void;
|
|
728
|
+
protected onPointerEnter(event: PointerEvent): void;
|
|
729
|
+
protected onKey(event: KeyboardEvent): void;
|
|
730
|
+
private cancelClose;
|
|
731
|
+
private focusFirst;
|
|
732
|
+
private onMenuKey;
|
|
733
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTriggerDirective, never>;
|
|
734
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTriggerDirective, "[bxMenuTrigger]", ["bxMenuTrigger"], {
|
|
735
|
+
"bxMenuTrigger": {
|
|
736
|
+
"alias": "bxMenuTrigger";
|
|
737
|
+
"required": true;
|
|
738
|
+
"isSignal": true;
|
|
739
|
+
};
|
|
740
|
+
"menuOrigin": {
|
|
741
|
+
"alias": "menuOrigin";
|
|
742
|
+
"required": false;
|
|
743
|
+
"isSignal": true;
|
|
744
|
+
};
|
|
745
|
+
"menuParent": {
|
|
746
|
+
"alias": "menuParent";
|
|
747
|
+
"required": false;
|
|
748
|
+
"isSignal": true;
|
|
749
|
+
};
|
|
750
|
+
"menuSide": {
|
|
751
|
+
"alias": "menuSide";
|
|
752
|
+
"required": false;
|
|
753
|
+
"isSignal": true;
|
|
754
|
+
};
|
|
755
|
+
"menuHover": {
|
|
756
|
+
"alias": "menuHover";
|
|
757
|
+
"required": false;
|
|
758
|
+
"isSignal": true;
|
|
759
|
+
};
|
|
760
|
+
"menuLabel": {
|
|
761
|
+
"alias": "menuLabel";
|
|
762
|
+
"required": false;
|
|
763
|
+
"isSignal": true;
|
|
764
|
+
};
|
|
765
|
+
"menuPinned": {
|
|
766
|
+
"alias": "menuPinned";
|
|
767
|
+
"required": false;
|
|
768
|
+
"isSignal": true;
|
|
769
|
+
};
|
|
770
|
+
}, {
|
|
771
|
+
"menuOpened": "menuOpened";
|
|
772
|
+
"menuClosed": "menuClosed";
|
|
773
|
+
}, never, never, true, never>;
|
|
774
|
+
}
|
|
775
|
+
/** Coordinates a single open menu path, allowing arbitrary nesting without sibling overlays accumulating. */
|
|
776
|
+
export declare class MenuCascadeService {
|
|
777
|
+
private readonly entries;
|
|
778
|
+
activate(trigger: MenuTriggerDirective): void;
|
|
779
|
+
remove(trigger: MenuTriggerDirective): void;
|
|
780
|
+
closeChildren(trigger: MenuTriggerDirective): void;
|
|
781
|
+
contains(trigger: MenuTriggerDirective, target: Node): boolean;
|
|
782
|
+
hasOpenMenus(): boolean;
|
|
783
|
+
repositionChildren(trigger: MenuTriggerDirective): void;
|
|
784
|
+
closeAll(restoreFocus?: boolean): void;
|
|
785
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuCascadeService, never>;
|
|
786
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
787
|
+
}
|
|
788
|
+
/** Move focus among visible, enabled items in one menu, including wrapped item components. */
|
|
789
|
+
export declare function navigateMenuKey(event: KeyboardEvent, menu: HTMLElement): boolean;
|
|
678
790
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BLOCKS_VERSION = "1.4.
|
|
1
|
+
export declare const BLOCKS_VERSION = "1.4.18";
|