barsa-tiles 3.0.5 → 3.0.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barsa-tiles",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^22.0.8",
6
6
  "@angular/common": "^22.0.8",
@@ -654,6 +654,7 @@ declare class TileComponent extends TilePropsComponent {
654
654
  setToStorage: boolean;
655
655
  listMode: boolean;
656
656
  navigateBackOnClick: boolean;
657
+ contentOnly: boolean;
657
658
  /** Open "change group" (pin) dialog from tile menu */
658
659
  changeGroupClick: EventEmitter<void>;
659
660
  reloadClick: EventEmitter<void>;
@@ -661,7 +662,7 @@ declare class TileComponent extends TilePropsComponent {
661
662
  /** بروزرسانی زمان آخرین رفرش در فوتر؛ برای رفرش‌های برنامه‌ای (polling) استفاده می‌شود. */
662
663
  markUpdated(): void;
663
664
  static ɵfac: i0.ɵɵFactoryDeclaration<TileComponent, never>;
664
- static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "bt-tile", never, { "type": { "alias": "type"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isDouble": { "alias": "isDouble"; "required": false; }; "canReload": { "alias": "canReload"; "required": false; }; "showUpdateTime": { "alias": "showUpdateTime"; "required": false; }; "darkMode": { "alias": "darkMode"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "dynamicCommand": { "alias": "dynamicCommand"; "required": false; }; "backColor": { "alias": "backColor"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; "listMode": { "alias": "listMode"; "required": false; }; "navigateBackOnClick": { "alias": "navigateBackOnClick"; "required": false; }; }, { "changeGroupClick": "changeGroupClick"; "reloadClick": "reloadClick"; }, never, ["*"], false, never>;
665
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "bt-tile", never, { "type": { "alias": "type"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isDouble": { "alias": "isDouble"; "required": false; }; "canReload": { "alias": "canReload"; "required": false; }; "showUpdateTime": { "alias": "showUpdateTime"; "required": false; }; "darkMode": { "alias": "darkMode"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "dynamicCommand": { "alias": "dynamicCommand"; "required": false; }; "backColor": { "alias": "backColor"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; "listMode": { "alias": "listMode"; "required": false; }; "navigateBackOnClick": { "alias": "navigateBackOnClick"; "required": false; }; "contentOnly": { "alias": "contentOnly"; "required": false; }; }, { "changeGroupClick": "changeGroupClick"; "reloadClick": "reloadClick"; }, never, ["*"], false, never>;
665
666
  }
666
667
 
667
668
  declare class ActionItemComponent extends TileComponent {
@@ -888,11 +889,14 @@ declare class SimpleTileComponent extends BaseBtTileComponent<BaseTileSetting> i
888
889
  static ɵcmp: i0.ɵɵComponentDeclaration<SimpleTileComponent, "bt-simple-tile", never, {}, {}, never, never, false, never>;
889
890
  }
890
891
 
892
+ type ReportTilePresentationMode = 'Tile' | 'ContentOnly';
891
893
  declare class ReportTileComponent extends BaseBtTileComponent<ReportTileSettings> implements OnInit {
892
894
  _width: any;
893
895
  _height: any;
894
896
  reportContainer: ReportContainerComponent;
895
897
  reportSettings: WritableSignal<ContainerReportSetting>;
898
+ private readonly _enumCaption;
899
+ get contentOnly(): boolean;
896
900
  ngOnInit(): void;
897
901
  onReloadClick(): void;
898
902
  protected refreshTile(): void;
@@ -903,6 +907,8 @@ interface ReportTileSettings extends BaseTileSetting {
903
907
  MetaReport: MetaobjectDataModel;
904
908
  WidthSize: string;
905
909
  HeightSize: string;
910
+ PresentationMode?: string;
911
+ PresentationMode$Caption?: ReportTilePresentationMode;
906
912
  }
907
913
 
908
914
  declare class ProfileTileComponent extends BaseBtTileComponent<ProfileTileSetting> {
@@ -1520,6 +1526,62 @@ declare class DynamicTileGroupComponent extends BaseDynamicComponent {
1520
1526
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTileGroupComponent, "bt-dynamic-tile-group,[dynamictilegroup]", never, { "appTileGroup": { "alias": "appTileGroup"; "required": false; }; "tabRef": { "alias": "tabRef"; "required": false; }; "stackContent": { "alias": "stackContent"; "required": false; }; "cssStyles": { "alias": "cssStyles"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "childrenAppTileGroup": { "alias": "childrenAppTileGroup"; "required": false; }; "isAppTileSubGroup": { "alias": "isAppTileSubGroup"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; }, { "tilesDropped": "tilesDropped"; "hideAppTileClick": "hideAppTileClick"; "renameAppTileClick": "renameAppTileClick"; "changeGroupAppTileClick": "changeGroupAppTileClick"; "toggleGroup": "toggleGroup"; "resetGroup": "resetGroup"; "deleteGroup": "deleteGroup"; }, never, never, false, never>;
1521
1527
  }
1522
1528
 
1529
+ interface TilesViewerEntities {
1530
+ groupsById: Record<string, AppTileGroup>;
1531
+ rootGroupIds: string[];
1532
+ childGroupIdsByParentId: Record<string, string[]>;
1533
+ parentIdByGroupId: Record<string, string>;
1534
+ tilesById: Record<string, MetaobjectDataModel>;
1535
+ tileIdsByGroupId: Record<string, string[]>;
1536
+ }
1537
+ declare class TilesStore {
1538
+ /** Primary source of truth: normalized dictionary of all groups by ID. */
1539
+ readonly entities: i0.WritableSignal<TilesViewerEntities>;
1540
+ /** Metadata from the original MoForReportModelBase (TypeDefId, etc.), excluding MoDataList. */
1541
+ readonly _moMeta: i0.WritableSignal<Omit<MoForReportModelBase<AppTileGroup>, "MoDataList"> | null>;
1542
+ /** Tree form reconstructed from entities dictionary (backward compatibility). */
1543
+ readonly appTileGroups: Signal<MoForReportModelBase<AppTileGroup> | null>;
1544
+ readonly editHome: i0.WritableSignal<boolean>;
1545
+ readonly shellbar: i0.WritableSignal<MetaobjectDataModel | null>;
1546
+ readonly userInfo: i0.WritableSignal<any>;
1547
+ readonly componentSettings: i0.WritableSignal<MetaobjectDataModel | null>;
1548
+ readonly loading: i0.WritableSignal<boolean>;
1549
+ readonly allAppsLoading: i0.WritableSignal<boolean>;
1550
+ readonly stackContent: i0.WritableSignal<boolean>;
1551
+ readonly selectedGroupId: i0.WritableSignal<string>;
1552
+ /** Root groups sorted by navigatorOrderItem, filtered by Visible. */
1553
+ readonly homeAppTileGroups: Signal<AppTileGroup[]>;
1554
+ /**
1555
+ * Root groups for navigator display. In edit mode returns all roots.
1556
+ * Otherwise filters by navigatorVisible and trims invisible subtrees.
1557
+ */
1558
+ readonly rootGroups: Signal<AppTileGroup[]>;
1559
+ readonly selectedGroup: Signal<AppTileGroup>;
1560
+ private readonly _translate;
1561
+ /** Signal factory: single group by id. */
1562
+ selectGroup: (id: string) => Signal<AppTileGroup | null>;
1563
+ /** Signal factory: child groups of a parent (respects editHome filter). */
1564
+ selectGroupChildren: (parentId: string) => Signal<AppTileGroup[]>;
1565
+ /** Signal factory: navigatorTiles of a group. */
1566
+ selectGroupNavigatorTiles: (groupId: string) => Signal<MetaobjectDataModel[]>;
1567
+ /**
1568
+ * Full replace from API: run prepareNavigator on every group,
1569
+ * store metadata separately, then build entities dictionary.
1570
+ */
1571
+ replaceAllAppTileGroups(allApps: MoForReportModelBase<AppTileGroup> | null): void;
1572
+ /**
1573
+ * Update (or insert) a single group in the dictionary.
1574
+ * Runs prepareNavigator automatically and refreshes tile indexes for this group.
1575
+ */
1576
+ upsertGroup(group: AppTileGroup): void;
1577
+ /** Remove a group from the dictionary and clean up all indexes. */
1578
+ removeGroup(groupId: string): void;
1579
+ /** Add a new group to the dictionary under an optional parent. */
1580
+ addGroup(group: AppTileGroup, parentId?: string | null): void;
1581
+ static ɵfac: i0.ɵɵFactoryDeclaration<TilesStore, never>;
1582
+ static ɵprov: i0.ɵɵInjectableDeclaration<TilesStore>;
1583
+ }
1584
+
1523
1585
  declare class HomeGroupPipe implements PipeTransform {
1524
1586
  constructor();
1525
1587
  transform(appGroups: MetaobjectDataModel[]): MetaobjectDataModel[];
@@ -1686,5 +1748,5 @@ declare class BarsaTilesModule extends BaseModule {
1686
1748
  static ɵinj: i0.ɵɵInjectorDeclaration<BarsaTilesModule>;
1687
1749
  }
1688
1750
 
1689
- export { ActionItemComponent, ActionsLinkComponent, AppFinderAppListComponent, AppFinderComponent, AppFinderGroupComponent, AppTileClassDirective, BarsaPinAppComponent, BarsaShellbarComponent, BarsaTileGroupPageComponent, BarsaTileSidebarPageComponent, BarsaTilesModule, BaseBtTileComponent, BaseTileComponent, CardTileComponent, ChangeAppTileComponent, CreateAppGroupComponent, DynamicTileGroupComponent, FeedTileComponent, FooterEditTileComponent, FooterTileComponent, FormAppFinderComponent, FormTileComponent, GroupTilesPipe, LogoTileComponent, MegamenuPipe, MicroTileChartAreaComponent, MicroTileChartBarComponent, MicroTileChartBulletComponent, MicroTileChartCircularComponent, MicroTileChartComparisonComponent, MicroTileChartLineComponent, MicroTileChartStackbarComponent, NewsTileComponent, NumericTileComponent, PinTileComponent, PopoverAppFinderComponent, ProfileTileComponent, ReportTileComponent, SemantiToButtonColorPipe, ShellbarComponent, SimpleTileComponent, SuggestionsCountFilterPipe, SuggestionsFilterPipe, TileClassDirective, TileComponent, TileHomeFilterPipe, TilePropPipe, TilesService, TilesViewerComponent, TilesViewerContainerComponent, TilesViewerGroupComponent, TilesViewerMegamenuComponent, TilesViewerService, addTilesPageSidebar };
1690
- export type { AppTile, AppTileFooter, AppTileFooterSection, AppTileGroup, AppTileGroupPin, BaseTileSetting, ChartTileSetting, FeedTileSetting, LogoTileSetting, NewsTileSetting, NumericTileSetting, ProfileTileSetting, ShellbarCommandAction, ShellbarCommandNode, ShellbarGroupedCommandMenu, ShellbarWorkflowMenuItem, TileSetting, UserInfo, UserMenuType, UserPortalSettings };
1751
+ export { ActionItemComponent, ActionsLinkComponent, AppFinderAppListComponent, AppFinderComponent, AppFinderGroupComponent, AppTileClassDirective, BarsaPinAppComponent, BarsaShellbarComponent, BarsaTileGroupPageComponent, BarsaTileSidebarPageComponent, BarsaTilesModule, BaseBtTileComponent, BaseTileComponent, CardTileComponent, ChangeAppTileComponent, CreateAppGroupComponent, DynamicTileGroupComponent, FeedTileComponent, FooterEditTileComponent, FooterTileComponent, FormAppFinderComponent, FormTileComponent, GroupTilesPipe, LogoTileComponent, MegamenuPipe, MicroTileChartAreaComponent, MicroTileChartBarComponent, MicroTileChartBulletComponent, MicroTileChartCircularComponent, MicroTileChartComparisonComponent, MicroTileChartLineComponent, MicroTileChartStackbarComponent, NewsTileComponent, NumericTileComponent, PinTileComponent, PopoverAppFinderComponent, ProfileTileComponent, ReportTileComponent, SemantiToButtonColorPipe, ShellbarComponent, SimpleTileComponent, SuggestionsCountFilterPipe, SuggestionsFilterPipe, TileClassDirective, TileComponent, TileHomeFilterPipe, TilePropPipe, TilesService, TilesStore, TilesViewerComponent, TilesViewerContainerComponent, TilesViewerGroupComponent, TilesViewerMegamenuComponent, TilesViewerService, addTilesPageSidebar };
1752
+ export type { AppTile, AppTileFooter, AppTileFooterSection, AppTileGroup, AppTileGroupPin, BaseTileSetting, ChartTileSetting, FeedTileSetting, LogoTileSetting, NewsTileSetting, NumericTileSetting, ProfileTileSetting, ShellbarCommandAction, ShellbarCommandNode, ShellbarGroupedCommandMenu, ShellbarWorkflowMenuItem, TileSetting, TilesViewerEntities, UserInfo, UserMenuType, UserPortalSettings };