@mozaic-ds/angular 2.1.6 → 2.1.8
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/mozaic-ds-angular.mjs +1746 -1029
- package/fesm2022/mozaic-ds-angular.mjs.map +1 -1
- package/package.json +1 -2
- package/types/mozaic-ds-angular.d.ts +24 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mozaic-ds/angular",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=20.3.15",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"publishConfig": {
|
|
16
|
-
"registry": "https://registry.npmjs.org/",
|
|
17
16
|
"access": "public"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, OnInit, ElementRef, InjectionToken, Type, AfterViewInit, OnDestroy, Renderer2, WritableSignal, Signal, AfterContentInit, QueryList,
|
|
2
|
+
import { TemplateRef, OnInit, ElementRef, InjectionToken, Type, AfterViewInit, OnDestroy, Renderer2, WritableSignal, Signal, AfterContentInit, QueryList, ComponentRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { CheckCircle32, Uploading32, WarningCircle32 } from '@mozaic-ds/icons-angular';
|
|
5
5
|
import { RouterLink } from '@angular/router';
|
|
@@ -737,7 +737,6 @@ declare class MozTabsComponent implements AfterContentInit {
|
|
|
737
737
|
centered: _angular_core.InputSignal<boolean>;
|
|
738
738
|
selectedIndex: _angular_core.ModelSignal<number>;
|
|
739
739
|
tabsInput: _angular_core.InputSignal<MozTabItem[]>;
|
|
740
|
-
selectedIndexChange: EventEmitter<number>;
|
|
741
740
|
tabsArray: _angular_core.WritableSignal<MozTabComponent[]>;
|
|
742
741
|
virtualTabs: _angular_core.WritableSignal<MozTabItem[]>;
|
|
743
742
|
constructor();
|
|
@@ -761,7 +760,7 @@ declare class MozTabsComponent implements AfterContentInit {
|
|
|
761
760
|
onClickTab(index: number): void;
|
|
762
761
|
onClickVirtualTab(index: number, tab: MozTabItem): void;
|
|
763
762
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozTabsComponent, never>;
|
|
764
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozTabsComponent, "moz-tabs", never, { "description": { "alias": "description"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "tabsInput": { "alias": "tabs"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange";
|
|
763
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozTabsComponent, "moz-tabs", never, { "description": { "alias": "description"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "tabsInput": { "alias": "tabs"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; }, ["tabs"], never, true, never>;
|
|
765
764
|
}
|
|
766
765
|
|
|
767
766
|
type MozTagType = 'informative' | 'interactive' | 'contextualised' | 'removable' | 'selectable';
|
|
@@ -1901,7 +1900,6 @@ declare class MozPageHeaderComponent {
|
|
|
1901
1900
|
readonly toggleMenu: _angular_core.OutputEmitterRef<void>;
|
|
1902
1901
|
readonly toggleScope: _angular_core.OutputEmitterRef<boolean | undefined>;
|
|
1903
1902
|
readonly scopeValueChange: _angular_core.OutputEmitterRef<string | number | boolean>;
|
|
1904
|
-
readonly activeTabChange: _angular_core.OutputEmitterRef<number>;
|
|
1905
1903
|
readonly classes: _angular_core.Signal<{
|
|
1906
1904
|
'mc-page-header': boolean;
|
|
1907
1905
|
'mc-page-header--with-shadow': boolean;
|
|
@@ -1923,9 +1921,8 @@ declare class MozPageHeaderComponent {
|
|
|
1923
1921
|
onToggleScope(): void;
|
|
1924
1922
|
onScopeTagClick(): void;
|
|
1925
1923
|
onScopeSelectChange(value: string | number): void;
|
|
1926
|
-
onActiveTabChange(index: number): void;
|
|
1927
1924
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozPageHeaderComponent, never>;
|
|
1928
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozPageHeaderComponent, "moz-page-header", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "searchButton": { "alias": "searchButton"; "required": false; "isSignal": true; }; "helpButton": { "alias": "helpButton"; "required": false; "isSignal": true; }; "notificationButton": { "alias": "notificationButton"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusLabel": { "alias": "statusLabel"; "required": false; "isSignal": true; }; "extraInfo": { "alias": "extraInfo"; "required": false; "isSignal": true; }; "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "scopeValue": { "alias": "scopeValue"; "required": false; "isSignal": true; }; "scopePlaceholder": { "alias": "scopePlaceholder"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; "back": "back"; "search": "search"; "help": "help"; "notification": "notification"; "toggleMenu": "toggleMenu"; "toggleScope": "toggleScope"; "scopeValueChange": "scopeValueChange";
|
|
1925
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozPageHeaderComponent, "moz-page-header", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "searchButton": { "alias": "searchButton"; "required": false; "isSignal": true; }; "helpButton": { "alias": "helpButton"; "required": false; "isSignal": true; }; "notificationButton": { "alias": "notificationButton"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusLabel": { "alias": "statusLabel"; "required": false; "isSignal": true; }; "extraInfo": { "alias": "extraInfo"; "required": false; "isSignal": true; }; "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "scopeValue": { "alias": "scopeValue"; "required": false; "isSignal": true; }; "scopePlaceholder": { "alias": "scopePlaceholder"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; "back": "back"; "search": "search"; "help": "help"; "notification": "notification"; "toggleMenu": "toggleMenu"; "toggleScope": "toggleScope"; "scopeValueChange": "scopeValueChange"; }, never, ["[content]", "[actions]"], true, never>;
|
|
1929
1926
|
}
|
|
1930
1927
|
|
|
1931
1928
|
type MozTileAppearance = 'primary' | 'secondary' | 'inverse';
|
|
@@ -2599,6 +2596,15 @@ declare class TreeStateService<T = unknown> {
|
|
|
2599
2596
|
setExpanded(ids: Set<string | number>): void;
|
|
2600
2597
|
toggleExpanded(id: string | number): void;
|
|
2601
2598
|
expandAndLoad(node: TreeNode<T>): Observable<void>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Loads a node's children on demand when they haven't been loaded yet.
|
|
2601
|
+
* Idempotent: a no-op (emits `[]`) when there is no `loadChildrenFn`, the
|
|
2602
|
+
* node is already loading, or its children are already present. This is the
|
|
2603
|
+
* single load primitive shared by the click-driven `expandAndLoad` and the
|
|
2604
|
+
* declarative auto-load effect in `MozTreeComponent` — so expanding a node
|
|
2605
|
+
* by clicking it and by writing to `expandedIds` go through the same path.
|
|
2606
|
+
*/
|
|
2607
|
+
loadChildrenFor(node: TreeNode<T>): Observable<TreeNode<T>[]>;
|
|
2602
2608
|
addLoading(id: string | number): void;
|
|
2603
2609
|
removeLoading(id: string | number): void;
|
|
2604
2610
|
patchChildren(nodeId: string | number, children: TreeNode<T>[]): void;
|
|
@@ -2725,7 +2731,19 @@ declare class MozTreeComponent<T = unknown> {
|
|
|
2725
2731
|
onTreeFocus(): void;
|
|
2726
2732
|
onExpandChange(): void;
|
|
2727
2733
|
onSelectionChange(ids: Set<string | number>): void;
|
|
2734
|
+
/**
|
|
2735
|
+
* Convenience helper for the "expand a deep path, then scroll to it" pattern.
|
|
2736
|
+
* Adds every ancestor in `path` (all ids except the last) to `expandedIds`,
|
|
2737
|
+
* which lets the declarative auto-load effect fetch each lazy level, then
|
|
2738
|
+
* resolves once those levels have finished loading — so callers can safely
|
|
2739
|
+
* `scrollToNode(path.at(-1))` afterwards.
|
|
2740
|
+
*
|
|
2741
|
+
* Plain declarative usage — binding `[(expandedIds)]` and writing to it — does
|
|
2742
|
+
* not need this method; the tree loads expanded lazy nodes on its own. It
|
|
2743
|
+
* exists only to give an awaitable signal that the deep node is now visible.
|
|
2744
|
+
*/
|
|
2728
2745
|
expandPath(path: Array<string | number>): Promise<void>;
|
|
2746
|
+
private _waitForChildren;
|
|
2729
2747
|
scrollToNode(nodeId: string | number): void;
|
|
2730
2748
|
expandAll(): void;
|
|
2731
2749
|
collapseAll(): void;
|