barsa-tiles 2.0.47 → 2.0.49

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.
Files changed (31) hide show
  1. package/esm2022/lib/actions-link/actions-link.component.mjs +10 -3
  2. package/esm2022/lib/barsa-tile-group-page/barsa-tile-group-page.component.mjs +27 -18
  3. package/esm2022/lib/feed-tile/feed-tile.component.mjs +3 -3
  4. package/esm2022/lib/form-tile/form-tile.component.mjs +3 -3
  5. package/esm2022/lib/logo-tile/logo-tile.component.mjs +3 -3
  6. package/esm2022/lib/micro-tile-chart-area/micro-tile-chart-area.component.mjs +1 -1
  7. package/esm2022/lib/micro-tile-chart-bar/micro-tile-chart-bar.component.mjs +1 -1
  8. package/esm2022/lib/micro-tile-chart-bullet/micro-tile-chart-bullet.component.mjs +1 -1
  9. package/esm2022/lib/micro-tile-chart-circular/micro-tile-chart-circular.component.mjs +1 -1
  10. package/esm2022/lib/micro-tile-chart-comparison/micro-tile-chart-comparison.component.mjs +1 -1
  11. package/esm2022/lib/micro-tile-chart-line/micro-tile-chart-line.component.mjs +1 -1
  12. package/esm2022/lib/micro-tile-chart-stackbar/micro-tile-chart-stackbar.component.mjs +1 -1
  13. package/esm2022/lib/news-tile/news-tile.component.mjs +3 -3
  14. package/esm2022/lib/numeric-tile/numeric-tile.component.mjs +3 -3
  15. package/esm2022/lib/pipes/tile-prop.pipe.mjs +18 -3
  16. package/esm2022/lib/profile-tile/profile-tile.component.mjs +3 -3
  17. package/esm2022/lib/simple-tile/simple-tile.component.mjs +3 -3
  18. package/esm2022/lib/tile/tile.component.mjs +26 -9
  19. package/esm2022/lib/tile-renderer.directive.mjs +8 -2
  20. package/esm2022/lib/tiles-viewer/tiles-viewer.component.mjs +25 -20
  21. package/esm2022/lib/tiles-viewer-container/tiles-viewer-container.component.mjs +10 -4
  22. package/esm2022/lib/tiles-viewer-group/tiles-viewer-group.component.mjs +3 -3
  23. package/fesm2022/barsa-tiles.mjs +148 -86
  24. package/fesm2022/barsa-tiles.mjs.map +1 -1
  25. package/lib/actions-link/actions-link.component.d.ts +4 -2
  26. package/lib/barsa-tile-group-page/barsa-tile-group-page.component.d.ts +11 -5
  27. package/lib/tile/tile.component.d.ts +6 -1
  28. package/lib/tile-renderer.directive.d.ts +3 -1
  29. package/lib/tiles-viewer/tiles-viewer.component.d.ts +5 -4
  30. package/lib/tiles-viewer-container/tiles-viewer-container.component.d.ts +2 -2
  31. package/package.json +1 -1
@@ -1,11 +1,13 @@
1
1
  import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import { BaseComponent } from 'barsa-novin-ray-core';
2
+ import { AbbrevationDeviceSize, BaseComponent } from 'barsa-novin-ray-core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ActionsLinkComponent extends BaseComponent implements OnChanges {
5
5
  protected _cdr: ChangeDetectorRef;
6
6
  hide: any;
7
7
  actionsLink: any;
8
8
  edit: boolean;
9
+ deviceSize: AbbrevationDeviceSize;
10
+ _class: string;
9
11
  /**
10
12
  *
11
13
  */
@@ -13,5 +15,5 @@ export declare class ActionsLinkComponent extends BaseComponent implements OnCha
13
15
  ngOnInit(): void;
14
16
  ngOnChanges(changes: SimpleChanges): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionsLinkComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionsLinkComponent, "bt-actions-link", never, { "actionsLink": { "alias": "actionsLink"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionsLinkComponent, "bt-actions-link", never, { "actionsLink": { "alias": "actionsLink"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; }, {}, never, never, false, never>;
17
19
  }
@@ -1,26 +1,32 @@
1
1
  import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
- import { BaseComponent, LogService, LocalStorageService } from 'barsa-novin-ray-core';
3
+ import { BaseComponent, LogService, LocalStorageService, MetaobjectDataModel } from 'barsa-novin-ray-core';
4
4
  import { BaseTileSetting } from '../models';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BarsaTileGroupPageComponent extends BaseComponent implements OnChanges {
7
+ _position: string;
7
8
  moList: import("@angular/core").WritableSignal<BaseTileSetting[]>;
8
9
  isMobile: boolean;
9
10
  rtl: any;
10
11
  title: string | null;
11
12
  dialogRef: any;
13
+ parameters: BarsaTileGroupPageSettings;
14
+ settings: BarsaTileGroupPageSettings;
12
15
  protected _logService: LogService;
13
16
  protected _activatedRoute: ActivatedRoute;
14
17
  protected _cdr: ChangeDetectorRef;
15
18
  protected _router: Router;
16
19
  protected _localStorage: LocalStorageService;
17
- /**
18
- *
19
- */
20
- constructor();
20
+ isSimple: boolean;
21
+ listMode: boolean;
21
22
  ngOnInit(): void;
22
23
  ngOnChanges(changes: SimpleChanges): void;
23
24
  onClose(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<BarsaTileGroupPageComponent, never>;
25
26
  static ɵcmp: i0.ɵɵComponentDeclaration<BarsaTileGroupPageComponent, "bt-barsa-tile-group-page", never, {}, {}, never, never, false, never>;
26
27
  }
28
+ interface BarsaTileGroupPageSettings extends MetaobjectDataModel {
29
+ IsSimple: boolean;
30
+ ListMode: boolean;
31
+ }
32
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { TilePropsComponent, LocalStorageService } from 'barsa-novin-ray-core';
3
3
  import { AppTileFooter } from '../models';
4
+ import { Router } from '@angular/router';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TileComponent extends TilePropsComponent {
6
7
  type: 'feed' | 'launch' | 'kpi';
@@ -16,10 +17,14 @@ export declare class TileComponent extends TilePropsComponent {
16
17
  dynamicCommand: any;
17
18
  hideHeader: boolean;
18
19
  setToStorage: boolean;
20
+ listMode: boolean;
21
+ navigateBackOnClick: boolean;
19
22
  _localStorage: LocalStorageService;
23
+ _router: Router;
20
24
  runningCommand: boolean;
21
25
  onClick(ev: any): boolean;
26
+ private executeCommand;
22
27
  ngOnInit(): void;
23
28
  static ɵfac: i0.ɵɵFactoryDeclaration<TileComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "bt-tile", never, { "type": { "alias": "type"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isDouble": { "alias": "isDouble"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "backColor": { "alias": "backColor"; "required": false; }; "dynamicCommand": { "alias": "dynamicCommand"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; }, {}, never, ["*"], false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "bt-tile", never, { "type": { "alias": "type"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isDouble": { "alias": "isDouble"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "backColor": { "alias": "backColor"; "required": false; }; "dynamicCommand": { "alias": "dynamicCommand"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; "listMode": { "alias": "listMode"; "required": false; }; "navigateBackOnClick": { "alias": "navigateBackOnClick"; "required": false; }; }, {}, never, ["*"], false, never>;
25
30
  }
@@ -17,6 +17,8 @@ export declare class TileRendererDirective extends BaseDirective implements OnIn
17
17
  data: BaseTileSetting;
18
18
  edit: boolean;
19
19
  setToStorage: boolean;
20
+ listMode: boolean;
21
+ navigateBackOnClick: boolean;
20
22
  hideClick: EventEmitter<any>;
21
23
  renameClick: EventEmitter<any>;
22
24
  private _tileRef;
@@ -25,5 +27,5 @@ export declare class TileRendererDirective extends BaseDirective implements OnIn
25
27
  ngOnChanges(changes: SimpleChanges): void;
26
28
  ngOnDestroy(): void;
27
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TileRendererDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<TileRendererDirective, "[tileRenderer]", never, { "component": { "alias": "component"; "required": false; }; "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; }, { "hideClick": "hideClick"; "renameClick": "renameClick"; }, never, never, false, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TileRendererDirective, "[tileRenderer]", never, { "component": { "alias": "component"; "required": false; }; "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "setToStorage": { "alias": "setToStorage"; "required": false; }; "listMode": { "alias": "listMode"; "required": false; }; "navigateBackOnClick": { "alias": "navigateBackOnClick"; "required": false; }; }, { "hideClick": "hideClick"; "renameClick": "renameClick"; }, never, never, false, never>;
29
31
  }
@@ -1,12 +1,13 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
3
3
  import { BaseComponent, MetaobjectDataModel, AbbrevationDeviceSize, SaveScrollPositionService, IntersectionStatus } from 'barsa-novin-ray-core';
4
- import { Nullable, TabListComponent, TabPanelComponent } from '@fundamental-ngx/core';
4
+ import { Nullable } from '@fundamental-ngx/core';
5
+ import { IconTabBarComponent, IconTabBarItem, IconTabBarTabComponent } from '@fundamental-ngx/platform';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class TilesViewerComponent extends BaseComponent implements OnInit {
7
8
  protected _cdr: ChangeDetectorRef;
8
9
  protected _saveScrollPosition: SaveScrollPositionService;
9
- tabListComponent: TabListComponent;
10
+ tabListComponent: IconTabBarComponent;
10
11
  contentPageRef: ElementRef<any>;
11
12
  pageContentClass: boolean;
12
13
  appTileGroups: Array<MetaobjectDataModel>;
@@ -28,7 +29,7 @@ export declare class TilesViewerComponent extends BaseComponent implements OnIni
28
29
  tabChanged: EventEmitter<{
29
30
  firstSelected: boolean;
30
31
  selectedTabTitle: string;
31
- tabPanels: TabPanelComponent[];
32
+ tabPanels: IconTabBarTabComponent[];
32
33
  appTileGroups: MetaobjectDataModel[];
33
34
  }>;
34
35
  toggleGroup: EventEmitter<MetaobjectDataModel>;
@@ -52,7 +53,7 @@ export declare class TilesViewerComponent extends BaseComponent implements OnIni
52
53
  id: string;
53
54
  ngOnInit(): void;
54
55
  ngAfterViewInit(): void;
55
- onSelectedTabChange(selectedTab: TabPanelComponent, appTileGroups: MetaobjectDataModel[]): void;
56
+ onSelectedTabChange(selectedTab: IconTabBarItem): void;
56
57
  onDropGroup(appTileGroups: MetaobjectDataModel[], event: CdkDragDrop<MetaobjectDataModel[]>): void;
57
58
  onDrop($event: any): void;
58
59
  onStackContentChanged(checked: any): void;
@@ -1,11 +1,11 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { OnDestroy, OnInit } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
- import { TabPanelComponent } from '@fundamental-ngx/core';
5
4
  import { BaseComponent, MetaobjectDataModel, PortalService, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
6
5
  import { TilesService } from '../tiles.service';
7
6
  import { TilesViewerService } from '../tiles-viewer.service';
8
7
  import { ActivatedRoute, Router } from '@angular/router';
8
+ import { IconTabBarTabComponent } from '@fundamental-ngx/platform';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class TilesViewerContainerComponent extends BaseComponent implements OnInit, OnDestroy {
11
11
  protected _portalService: PortalService;
@@ -32,7 +32,7 @@ export declare class TilesViewerContainerComponent extends BaseComponent impleme
32
32
  onSelectedTabChange(e: {
33
33
  firstSelected: boolean;
34
34
  selectedTabTitle: string;
35
- tabPanels: TabPanelComponent[];
35
+ tabPanels: IconTabBarTabComponent[];
36
36
  appTileGroups: MetaobjectDataModel[];
37
37
  }): void;
38
38
  onDropGroup(e: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barsa-tiles",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^17.3.5",
6
6
  "@angular/common": "^17.3.5"