barsa-tiles 2.3.158 → 2.3.159
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/barsa-tiles.mjs +238 -335
- package/fesm2022/barsa-tiles.mjs.map +1 -1
- package/index.d.ts +40 -28
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Observable } from 'rxjs';
|
|
|
7
7
|
import * as i60 from '@angular/cdk/drag-drop';
|
|
8
8
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
9
|
import * as i62 from '@fundamental-ngx/core';
|
|
10
|
-
import { ContentDensity, CarouselComponent, CarouselItemComponent, DialogRef, NumericContentState, Nullable, ComboboxComponent, PopoverComponent, ShellbarUser, ShellbarMenuItem, ProductSwitchItem, ObjectStatus, ShellbarComponent as ShellbarComponent$1 } from '@fundamental-ngx/core';
|
|
10
|
+
import { ContentDensity, CarouselComponent, CarouselItemComponent, DialogRef, NumericContentState, Nullable, ComboboxComponent, PopoverComponent, ShellbarUser, ShellbarMenuItem, ProductSwitchItem, IconFont, ObjectStatus, ShellbarComponent as ShellbarComponent$1 } from '@fundamental-ngx/core';
|
|
11
11
|
import * as i63 from '@fundamental-ngx/platform';
|
|
12
12
|
import { IconTabBarTabComponent, IconTabBarComponent, TabType, SemanticColor, IconTabBarItem, SuggestionItem } from '@fundamental-ngx/platform';
|
|
13
13
|
import * as i70 from 'barsa-echarts';
|
|
@@ -144,9 +144,8 @@ declare class TilesService {
|
|
|
144
144
|
private _rtlService;
|
|
145
145
|
private _bbbTranslatePipe;
|
|
146
146
|
private _appTileGroupLoaded;
|
|
147
|
-
/** Same signal reference as
|
|
147
|
+
/** Same computed signal reference as TilesStore#appTileGroups (read-only for consumers). */
|
|
148
148
|
get appTileGroupsSig(): Signal<MoForReportModelBase<AppTileGroup> | null>;
|
|
149
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
150
149
|
constructor();
|
|
151
150
|
get isDark$(): Observable<boolean | null>;
|
|
152
151
|
get appTileGroups(): MoForReportModelBase<AppTileGroup> | null;
|
|
@@ -154,7 +153,7 @@ declare class TilesService {
|
|
|
154
153
|
loadAllAppTileGroups(): void;
|
|
155
154
|
loadUserProfileImage(repIdProfileImage: string): void;
|
|
156
155
|
loadAppTileGroups(appTileGroup: MetaobjectDataModel): void;
|
|
157
|
-
/** True if tiles for this group were already loaded
|
|
156
|
+
/** True if tiles for this group were already loaded. */
|
|
158
157
|
isAppTileGroupTilesLoaded(groupId: string): boolean;
|
|
159
158
|
loadAppTileGroupsById(appTileGroupId: string, forceReload?: boolean): void;
|
|
160
159
|
saveTilesStackContent(tilesStackContent: boolean): Promise<void>;
|
|
@@ -173,48 +172,35 @@ declare class TilesService {
|
|
|
173
172
|
addAppGroup(mo: AppTileGroup): void;
|
|
174
173
|
singlePinTileChanged(appTile: AppTile, callback: any): void;
|
|
175
174
|
pinTileChanged(appTileGroupsPin: AppTileGroupPin[], app: MetaobjectDataModel, callback: any): void;
|
|
176
|
-
_tilePinChange(appTileGroupsPin:
|
|
175
|
+
_tilePinChange(appTileGroupsPin: AppTileGroupPin[]): void;
|
|
177
176
|
loadShellbar(): void;
|
|
178
177
|
_setTileInfo(appTile: any): void;
|
|
179
178
|
getTileGroups(): MoForReportModel | null;
|
|
180
179
|
setEditHome(edit: boolean): void;
|
|
181
180
|
/**
|
|
182
|
-
* After
|
|
181
|
+
* After TilesStore#replaceAllAppTileGroups from another entry point (e.g. TilesViewerService),
|
|
183
182
|
* refresh derived home list (store already holds app groups).
|
|
184
183
|
*/
|
|
185
184
|
syncExternalAppTileGroups(): void;
|
|
186
|
-
/** Call when the canonical tree is replaced from outside
|
|
185
|
+
/** Call when the canonical tree is replaced from outside TilesService (e.g. viewer API). */
|
|
187
186
|
resetAppTileGroupLoadCache(): void;
|
|
188
187
|
protected _loadAllAppTileGroupsByReportId(id: string): void;
|
|
189
188
|
protected _loadAllAppTileGroups(): void;
|
|
190
189
|
protected _onApplication_GlobalRefreshTile(_sender: any, appTilesTitle: string[]): void;
|
|
191
|
-
protected _updateAppTileFromNotification(
|
|
190
|
+
protected _updateAppTileFromNotification(groupsById: Record<string, AppTileGroup>, appTiles: MetaobjectDataModel[]): void;
|
|
192
191
|
private _allAppsLoaded;
|
|
193
192
|
private _loadAppTilesOfAppTileGroup;
|
|
194
193
|
private _loadAppTilesByAppTileGroup;
|
|
195
|
-
private
|
|
194
|
+
private _prepareGroupWithTiles;
|
|
196
195
|
private _loadAppTilesByAppTileGroupSetting;
|
|
197
|
-
/** Report/API load: full tree +
|
|
196
|
+
/** Report/API load: full tree + prepareNavigator on all groups (via store). */
|
|
198
197
|
private _applyLoadedAppTileGroups;
|
|
199
|
-
private _findCanonicalAppTileGroup;
|
|
200
|
-
private _findAppTileGroupInTree;
|
|
201
|
-
/** Removes a group by id from root {@link MoForReportModelBase#MoDataList} or any nested {@link AppTileGroup#$Children}. */
|
|
202
|
-
private _removeAppTileGroupFromTree;
|
|
203
|
-
private _removeAppTileGroupFromChildren;
|
|
204
198
|
private _isAppTileGroupTilesLoaded;
|
|
205
|
-
/** Replaces the node with the same {@link AppTileGroup#Id} anywhere under {@link $Children}. */
|
|
206
|
-
private _replaceAppTileGroupInTreeList;
|
|
207
|
-
/**
|
|
208
|
-
* Local tree changed: merge optional root replacement, then snapshot store without re-running
|
|
209
|
-
* {@link prepareNavigator} on every root (caller must have prepared touched groups).
|
|
210
|
-
*/
|
|
211
|
-
private _nextAllAppTileGroups;
|
|
212
199
|
private _setHomeAppTileGroups;
|
|
213
200
|
private _saveUserPortalSettings;
|
|
214
201
|
private _updateAppGroupSetting;
|
|
215
|
-
private
|
|
216
|
-
private
|
|
217
|
-
private _findGroupWithAppGroupId;
|
|
202
|
+
private _findAppTileWithKey;
|
|
203
|
+
private _findGroupWithAppTileId;
|
|
218
204
|
private _updateAppTileGroupSettings;
|
|
219
205
|
private _prepareNavigator;
|
|
220
206
|
static ɵfac: i0.ɵɵFactoryDeclaration<TilesService, never>;
|
|
@@ -939,9 +925,23 @@ declare class TilesViewerComponent extends BaseComponent implements OnInit {
|
|
|
939
925
|
Name: string;
|
|
940
926
|
Selector: string;
|
|
941
927
|
};
|
|
928
|
+
protected _firstSelected: boolean;
|
|
942
929
|
protected _cdr: ChangeDetectorRef;
|
|
943
930
|
protected _saveScrollPosition: SaveScrollPositionService;
|
|
944
|
-
|
|
931
|
+
private readonly _tilesStore;
|
|
932
|
+
/** Cache of selectGroup signals keyed by group ID to avoid creating new computeds each render. */
|
|
933
|
+
private readonly _groupSignalCache;
|
|
934
|
+
/** Cache of selectGroupChildren signals keyed by parent group ID. */
|
|
935
|
+
private readonly _childrenSignalCache;
|
|
936
|
+
/**
|
|
937
|
+
* Returns a stable Signal for a single group from the store dictionary.
|
|
938
|
+
* The signal is cached per ID so Angular's signal graph tracks it efficiently.
|
|
939
|
+
*/
|
|
940
|
+
groupById(id: string): Signal<AppTileGroup | null>;
|
|
941
|
+
/**
|
|
942
|
+
* Returns a stable Signal for the children of a group from the store dictionary.
|
|
943
|
+
*/
|
|
944
|
+
groupChildrenById(parentId: string): Signal<AppTileGroup[]>;
|
|
945
945
|
ngAfterViewInit(): void;
|
|
946
946
|
onSelectedTabChange(selectedTab: IconTabBarItem): void;
|
|
947
947
|
onDropGroup(appTileGroups: MetaobjectDataModel[], event: CdkDragDrop<MetaobjectDataModel[]>): void;
|
|
@@ -1005,7 +1005,7 @@ declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1005
1005
|
FileId: string;
|
|
1006
1006
|
};
|
|
1007
1007
|
get cssStyles(): string;
|
|
1008
|
-
get actions(): Array<
|
|
1008
|
+
get actions(): Array<any>;
|
|
1009
1009
|
get sidebarSettings(): null | any;
|
|
1010
1010
|
get userMenu(): UserMenuType[];
|
|
1011
1011
|
get multiLanguages(): boolean;
|
|
@@ -1100,7 +1100,19 @@ declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1100
1100
|
logo: {
|
|
1101
1101
|
FileId: string;
|
|
1102
1102
|
};
|
|
1103
|
-
actions: Array<
|
|
1103
|
+
actions: Array<{
|
|
1104
|
+
glyph: string;
|
|
1105
|
+
/** Glyph font family */
|
|
1106
|
+
glyphFont: IconFont;
|
|
1107
|
+
/** Callback that hanldles the response to clicks on any of the actions. */
|
|
1108
|
+
callback: Nullable<(event: MouseEvent) => void>;
|
|
1109
|
+
/** The action label. */
|
|
1110
|
+
label: string;
|
|
1111
|
+
/** The notification label. */
|
|
1112
|
+
notificationLabel: string;
|
|
1113
|
+
/** Represents the number of notifications. */
|
|
1114
|
+
notificationCount: number;
|
|
1115
|
+
}>;
|
|
1104
1116
|
userMenu: UserMenuType[];
|
|
1105
1117
|
footerButtons: UserMenuType[];
|
|
1106
1118
|
productSwitcher: ProductSwitchItem[];
|