barsa-tiles 1.0.455 → 1.0.457
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 +3609 -0
- package/fesm2022/barsa-tiles.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/action-item/action-item.component.d.ts +6 -6
- package/lib/action-links.pipe.d.ts +7 -7
- package/lib/actions-link/actions-link.component.d.ts +20 -17
- package/lib/app-finder/app-finder.component.d.ts +24 -24
- package/lib/app-finder-app-list/app-finder-app-list.component.d.ts +20 -20
- package/lib/app-finder-group/app-finder-group.component.d.ts +14 -14
- package/lib/app-finder.service.d.ts +33 -33
- package/lib/barsa-pin-app/barsa-pin-app.component.d.ts +14 -0
- package/lib/barsa-shellbar/barsa-shellbar.component.d.ts +117 -97
- package/lib/barsa-tile-group-page/barsa-tile-group-page.component.d.ts +40 -0
- package/lib/barsa-tile-sidebar-page/barsa-tile-sidebar-page.component.d.ts +20 -0
- package/lib/barsa-tiles-routing.module.d.ts +45 -0
- package/lib/barsa-tiles.module.d.ts +102 -86
- package/lib/change-app-tile/change-app-tile.component.d.ts +20 -20
- package/lib/create-app-group/create-app-group.component.d.ts +19 -19
- package/lib/directives/emptylist.directive.d.ts +14 -14
- package/lib/feed-tile/feed-tile.component.d.ts +11 -11
- package/lib/footer-edit-tile/footer-edit-tile.component.d.ts +6 -6
- package/lib/footer-tile/footer-tile.component.d.ts +10 -11
- package/lib/form-app-finder/form-app-finder.component.d.ts +38 -38
- package/lib/form-tile/form-tile.component.d.ts +24 -24
- package/lib/logo-tile/logo-tile.component.d.ts +7 -7
- package/lib/micro-tile-chart-area/micro-tile-chart-area.component.d.ts +8 -8
- package/lib/micro-tile-chart-bar/micro-tile-chart-bar.component.d.ts +6 -12
- package/lib/micro-tile-chart-bullet/micro-tile-chart-bullet.component.d.ts +16 -16
- package/lib/micro-tile-chart-circular/micro-tile-chart-circular.component.d.ts +7 -7
- package/lib/micro-tile-chart-comparison/micro-tile-chart-comparison.component.d.ts +8 -8
- package/lib/micro-tile-chart-line/micro-tile-chart-line.component.d.ts +8 -8
- package/lib/micro-tile-chart-stackbar/micro-tile-chart-stackbar.component.d.ts +8 -8
- package/lib/models/app-tile-footer-section.d.ts +6 -6
- package/lib/models/app-tile-footer.d.ts +8 -8
- package/lib/models/app-tile-group-pin.d.ts +5 -5
- package/lib/models/base-bt-tile-component.d.ts +9 -9
- package/lib/models/base-tile-component.d.ts +26 -26
- package/lib/models/base-tile-setting.d.ts +9 -5
- package/lib/models/feed-tile-setting.d.ts +7 -7
- package/lib/models/index.d.ts +13 -13
- package/lib/models/logo-tile-setting.d.ts +6 -6
- package/lib/models/micro-tile-chart-bullet-setting.d.ts +10 -10
- package/lib/models/news-tile-setting.d.ts +4 -4
- package/lib/models/numeric-tile-setting.d.ts +9 -9
- package/lib/models/profile-tile-setting.d.ts +7 -7
- package/lib/models/tile-setting.d.ts +10 -10
- package/lib/models/user-portal-settings.d.ts +9 -9
- package/lib/news-tile/news-tile.component.d.ts +19 -19
- package/lib/notification-group/notification-group.component.d.ts +54 -55
- package/lib/notification-group-header/notification-group-header.component.d.ts +15 -15
- package/lib/numeric-tile/numeric-tile.component.d.ts +16 -12
- package/lib/pin-tile/pin-tile.component.d.ts +30 -30
- package/lib/pipes/group-tiles.pipe.d.ts +14 -14
- package/lib/pipes/home-group.pipe.d.ts +9 -9
- package/lib/pipes/tile-home-filter.pipe.d.ts +8 -8
- package/lib/pipes/tile-prop.pipe.d.ts +8 -8
- package/lib/popover-app-finder/filter-apps-grouped.pipe.d.ts +13 -0
- package/lib/popover-app-finder/popover-app-finder.component.d.ts +39 -0
- package/lib/profile-tile/profile-tile.component.d.ts +15 -7
- package/lib/shellbar/shellbar.component.d.ts +108 -94
- package/lib/simple-tile/simple-tile.component.d.ts +13 -10
- package/lib/tile/tile.component.d.ts +30 -20
- package/lib/tile-renderer.directive.d.ts +33 -28
- package/lib/tile-size.directive.d.ts +12 -0
- package/lib/tile-style.directive.d.ts +12 -0
- package/lib/tiles-viewer/tiles-viewer.component.d.ts +70 -63
- package/lib/tiles-viewer-container/tiles-viewer-container.component.d.ts +68 -57
- package/lib/tiles-viewer-group/tiles-viewer-group.component.d.ts +39 -39
- package/lib/tiles-viewer.service.d.ts +42 -42
- package/lib/tiles.service.d.ts +78 -75
- package/package.json +5 -13
- package/public-api.d.ts +45 -41
- package/esm2020/barsa-tiles.mjs +0 -5
- package/esm2020/lib/action-item/action-item.component.mjs +0 -18
- package/esm2020/lib/action-links.pipe.mjs +0 -16
- package/esm2020/lib/actions-link/actions-link.component.mjs +0 -42
- package/esm2020/lib/app-finder/app-finder.component.mjs +0 -53
- package/esm2020/lib/app-finder-app-list/app-finder-app-list.component.mjs +0 -40
- package/esm2020/lib/app-finder-group/app-finder-group.component.mjs +0 -42
- package/esm2020/lib/app-finder.service.mjs +0 -121
- package/esm2020/lib/barsa-shellbar/barsa-shellbar.component.mjs +0 -166
- package/esm2020/lib/barsa-tiles.module.mjs +0 -206
- package/esm2020/lib/change-app-tile/change-app-tile.component.mjs +0 -47
- package/esm2020/lib/create-app-group/create-app-group.component.mjs +0 -44
- package/esm2020/lib/directives/emptylist.directive.mjs +0 -36
- package/esm2020/lib/feed-tile/feed-tile.component.mjs +0 -32
- package/esm2020/lib/footer-edit-tile/footer-edit-tile.component.mjs +0 -13
- package/esm2020/lib/footer-tile/footer-tile.component.mjs +0 -28
- package/esm2020/lib/form-app-finder/form-app-finder.component.mjs +0 -95
- package/esm2020/lib/form-tile/form-tile.component.mjs +0 -35
- package/esm2020/lib/logo-tile/logo-tile.component.mjs +0 -23
- package/esm2020/lib/micro-tile-chart-area/micro-tile-chart-area.component.mjs +0 -40
- package/esm2020/lib/micro-tile-chart-bar/micro-tile-chart-bar.component.mjs +0 -29
- package/esm2020/lib/micro-tile-chart-bullet/micro-tile-chart-bullet.component.mjs +0 -27
- package/esm2020/lib/micro-tile-chart-circular/micro-tile-chart-circular.component.mjs +0 -20
- package/esm2020/lib/micro-tile-chart-comparison/micro-tile-chart-comparison.component.mjs +0 -31
- package/esm2020/lib/micro-tile-chart-line/micro-tile-chart-line.component.mjs +0 -32
- package/esm2020/lib/micro-tile-chart-stackbar/micro-tile-chart-stackbar.component.mjs +0 -27
- package/esm2020/lib/models/app-tile-footer-section.mjs +0 -2
- package/esm2020/lib/models/app-tile-footer.mjs +0 -2
- package/esm2020/lib/models/app-tile-group-pin.mjs +0 -2
- package/esm2020/lib/models/base-bt-tile-component.mjs +0 -30
- package/esm2020/lib/models/base-tile-component.mjs +0 -58
- package/esm2020/lib/models/base-tile-setting.mjs +0 -2
- package/esm2020/lib/models/feed-tile-setting.mjs +0 -2
- package/esm2020/lib/models/index.mjs +0 -14
- package/esm2020/lib/models/logo-tile-setting.mjs +0 -2
- package/esm2020/lib/models/micro-tile-chart-bullet-setting.mjs +0 -2
- package/esm2020/lib/models/news-tile-setting.mjs +0 -2
- package/esm2020/lib/models/numeric-tile-setting.mjs +0 -2
- package/esm2020/lib/models/profile-tile-setting.mjs +0 -2
- package/esm2020/lib/models/tile-setting.mjs +0 -2
- package/esm2020/lib/models/user-portal-settings.mjs +0 -2
- package/esm2020/lib/news-tile/news-tile.component.mjs +0 -54
- package/esm2020/lib/notification-group/notification-group.component.mjs +0 -116
- package/esm2020/lib/notification-group-header/notification-group-header.component.mjs +0 -39
- package/esm2020/lib/numeric-tile/numeric-tile.component.mjs +0 -34
- package/esm2020/lib/pin-tile/pin-tile.component.mjs +0 -111
- package/esm2020/lib/pipes/group-tiles.pipe.mjs +0 -31
- package/esm2020/lib/pipes/home-group.pipe.mjs +0 -17
- package/esm2020/lib/pipes/tile-home-filter.pipe.mjs +0 -28
- package/esm2020/lib/pipes/tile-prop.pipe.mjs +0 -32
- package/esm2020/lib/profile-tile/profile-tile.component.mjs +0 -26
- package/esm2020/lib/shellbar/shellbar.component.mjs +0 -200
- package/esm2020/lib/simple-tile/simple-tile.component.mjs +0 -23
- package/esm2020/lib/tile/tile.component.mjs +0 -61
- package/esm2020/lib/tile-renderer.directive.mjs +0 -70
- package/esm2020/lib/tiles-viewer/tiles-viewer.component.mjs +0 -157
- package/esm2020/lib/tiles-viewer-container/tiles-viewer-container.component.mjs +0 -158
- package/esm2020/lib/tiles-viewer-group/tiles-viewer-group.component.mjs +0 -88
- package/esm2020/lib/tiles-viewer.service.mjs +0 -130
- package/esm2020/lib/tiles.service.mjs +0 -589
- package/esm2020/public-api.mjs +0 -45
- package/fesm2015/barsa-tiles.mjs +0 -2977
- package/fesm2015/barsa-tiles.mjs.map +0 -1
- package/fesm2020/barsa-tiles.mjs +0 -2941
- package/fesm2020/barsa-tiles.mjs.map +0 -1
|
@@ -1,63 +1,70 @@
|
|
|
1
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { BaseComponent, MetaobjectDataModel, AbbrevationDeviceSize, SaveScrollPositionService, IntersectionStatus } from 'barsa-novin-ray-core';
|
|
4
|
-
import { Nullable
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
protected
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
+
import { BaseComponent, MetaobjectDataModel, AbbrevationDeviceSize, SaveScrollPositionService, IntersectionStatus } from 'barsa-novin-ray-core';
|
|
4
|
+
import { Nullable } from '@fundamental-ngx/core';
|
|
5
|
+
import { IconTabBarComponent, IconTabBarItem, IconTabBarTabComponent, SemanticColor } from '@fundamental-ngx/platform';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TilesViewerComponent extends BaseComponent implements OnInit {
|
|
8
|
+
protected _cdr: ChangeDetectorRef;
|
|
9
|
+
protected _saveScrollPosition: SaveScrollPositionService;
|
|
10
|
+
tabListComponent: IconTabBarComponent;
|
|
11
|
+
contentPageRef: ElementRef<any>;
|
|
12
|
+
pageContentClass: boolean;
|
|
13
|
+
appTileGroups: Array<MetaobjectDataModel>;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
edit: boolean;
|
|
16
|
+
rtl: boolean;
|
|
17
|
+
defaultTab: string;
|
|
18
|
+
stackContent: boolean;
|
|
19
|
+
deviceSize: AbbrevationDeviceSize;
|
|
20
|
+
selectedAppGroupId: string;
|
|
21
|
+
hideTabs: boolean | undefined;
|
|
22
|
+
DynamicComponents: any;
|
|
23
|
+
stackContentChange: EventEmitter<boolean>;
|
|
24
|
+
closeEditHome: EventEmitter<any>;
|
|
25
|
+
save: EventEmitter<any>;
|
|
26
|
+
listDropped: EventEmitter<{
|
|
27
|
+
appTileGroups: MetaobjectDataModel[];
|
|
28
|
+
event: CdkDragDrop<MetaobjectDataModel[]>;
|
|
29
|
+
}>;
|
|
30
|
+
tabChanged: EventEmitter<{
|
|
31
|
+
firstSelected: boolean;
|
|
32
|
+
selectedTabTitle: string;
|
|
33
|
+
tabPanels: IconTabBarTabComponent[];
|
|
34
|
+
appTileGroups: MetaobjectDataModel[];
|
|
35
|
+
tabbarComponent: IconTabBarComponent;
|
|
36
|
+
}>;
|
|
37
|
+
toggleGroup: EventEmitter<MetaobjectDataModel>;
|
|
38
|
+
resetGroup: EventEmitter<MetaobjectDataModel>;
|
|
39
|
+
deleteGroup: EventEmitter<MetaobjectDataModel>;
|
|
40
|
+
hideAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
41
|
+
renameAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
42
|
+
tilesDropped: EventEmitter<{
|
|
43
|
+
appTileGroup: MetaobjectDataModel;
|
|
44
|
+
event: CdkDragDrop<{
|
|
45
|
+
isTile: boolean;
|
|
46
|
+
items: MetaobjectDataModel[];
|
|
47
|
+
}>;
|
|
48
|
+
}>;
|
|
49
|
+
_rtl: any;
|
|
50
|
+
selectedTabTitle: Nullable<string>;
|
|
51
|
+
selectedTabId: string;
|
|
52
|
+
_tilesIntersection: any;
|
|
53
|
+
formVisibilityStatus: IntersectionStatus;
|
|
54
|
+
color: SemanticColor;
|
|
55
|
+
constructor(_cdr: ChangeDetectorRef, _saveScrollPosition: SaveScrollPositionService);
|
|
56
|
+
id: string;
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
ngAfterViewInit(): void;
|
|
59
|
+
onSelectedTabChange(selectedTab: IconTabBarItem): void;
|
|
60
|
+
onDropGroup(appTileGroups: MetaobjectDataModel[], event: CdkDragDrop<MetaobjectDataModel[]>): void;
|
|
61
|
+
onDrop($event: any): void;
|
|
62
|
+
onStackContentChanged(checked: any): void;
|
|
63
|
+
onExitEditHome(appGroups: MetaobjectDataModel[]): void;
|
|
64
|
+
onCloseEditHome(): void;
|
|
65
|
+
_trackById(index: any, item: any): string | number;
|
|
66
|
+
protected _selectTab(tabId: string): void;
|
|
67
|
+
protected _onInView(e: any): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TilesViewerComponent, "bt-tiles-viewer", never, { "appTileGroups": { "alias": "appTileGroups"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "defaultTab": { "alias": "defaultTab"; "required": false; }; "stackContent": { "alias": "stackContent"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "selectedAppGroupId": { "alias": "selectedAppGroupId"; "required": false; }; "hideTabs": { "alias": "hideTabs"; "required": false; }; "DynamicComponents": { "alias": "DynamicComponents"; "required": false; }; }, { "stackContentChange": "stackContentChange"; "closeEditHome": "closeEditHome"; "save": "save"; "listDropped": "listDropped"; "tabChanged": "tabChanged"; "toggleGroup": "toggleGroup"; "resetGroup": "resetGroup"; "deleteGroup": "deleteGroup"; "hideAppTileClick": "hideAppTileClick"; "renameAppTileClick": "renameAppTileClick"; "tilesDropped": "tilesDropped"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -1,57 +1,68 @@
|
|
|
1
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
protected
|
|
12
|
-
protected
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}): void;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { BaseComponent, MetaobjectDataModel, PortalService, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
|
|
5
|
+
import { TilesService } from '../tiles.service';
|
|
6
|
+
import { TilesViewerService } from '../tiles-viewer.service';
|
|
7
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
8
|
+
import { IconTabBarComponent, IconTabBarTabComponent } from '@fundamental-ngx/platform';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class TilesViewerContainerComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
11
|
+
protected _portalService: PortalService;
|
|
12
|
+
protected _tilesService: TilesService;
|
|
13
|
+
protected _tilesViewerService: TilesViewerService;
|
|
14
|
+
settings: TileViewerSettings;
|
|
15
|
+
appTileGroups$: Observable<MetaobjectDataModel[]>;
|
|
16
|
+
viewLoading$: Observable<boolean>;
|
|
17
|
+
deviceSize$: Observable<AbbrevationDeviceSize>;
|
|
18
|
+
edit$: Observable<boolean>;
|
|
19
|
+
changedOrder: boolean;
|
|
20
|
+
userStackContent: boolean;
|
|
21
|
+
initialStackContentValue: boolean;
|
|
22
|
+
userPortalSettings: MetaobjectDataModel;
|
|
23
|
+
stackContent$: Observable<boolean>;
|
|
24
|
+
firstSelected: boolean;
|
|
25
|
+
rtl$: Observable<boolean>;
|
|
26
|
+
selectedAppGroupId: string;
|
|
27
|
+
stackContent: boolean;
|
|
28
|
+
protected _activatedRoute: ActivatedRoute;
|
|
29
|
+
protected _router: Router;
|
|
30
|
+
constructor(_portalService: PortalService, _tilesService: TilesService, _tilesViewerService: TilesViewerService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
onSelectedTabChange(e: {
|
|
34
|
+
firstSelected: boolean;
|
|
35
|
+
selectedTabTitle: string;
|
|
36
|
+
tabPanels: IconTabBarTabComponent[];
|
|
37
|
+
appTileGroups: MetaobjectDataModel[];
|
|
38
|
+
tabbarComponent: IconTabBarComponent;
|
|
39
|
+
}): void;
|
|
40
|
+
onDropGroup(e: {
|
|
41
|
+
appTileGroups: MetaobjectDataModel[];
|
|
42
|
+
event: CdkDragDrop<MetaobjectDataModel[]>;
|
|
43
|
+
}): void;
|
|
44
|
+
onDrop(e: {
|
|
45
|
+
appTileGroup: any;
|
|
46
|
+
event: CdkDragDrop<{
|
|
47
|
+
isTile: boolean;
|
|
48
|
+
items: MetaobjectDataModel[];
|
|
49
|
+
}>;
|
|
50
|
+
}): void;
|
|
51
|
+
onStackContentChanged(checked: any): void;
|
|
52
|
+
onExitEditHome(appTileGroups: MetaobjectDataModel[]): void;
|
|
53
|
+
onCloseEditHome(): void;
|
|
54
|
+
onDelete(appTileGroup: MetaobjectDataModel): void;
|
|
55
|
+
onToggleShowHide(appTileGroup: MetaobjectDataModel): void;
|
|
56
|
+
onReset(appTileGroup: MetaobjectDataModel): void;
|
|
57
|
+
onHideAppTile(appTile: MetaobjectDataModel): void;
|
|
58
|
+
onRenameAppTile(appTile: MetaobjectDataModel): void;
|
|
59
|
+
private _setEditHome;
|
|
60
|
+
private _saveOrderAppTiles;
|
|
61
|
+
private _saveOrderActionLinks;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerContainerComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TilesViewerContainerComponent, "bt-tiles-viewer-container", never, {}, {}, never, never, false, never>;
|
|
64
|
+
}
|
|
65
|
+
interface TileViewerSettings extends MetaobjectDataModel {
|
|
66
|
+
HideTabs: boolean;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
-
import { BaseComponent, MetaobjectDataModel, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TilesViewerGroupComponent extends BaseComponent {
|
|
6
|
-
protected _el: ElementRef;
|
|
7
|
-
appTileGroup: MetaobjectDataModel;
|
|
8
|
-
stackContent: boolean;
|
|
9
|
-
edit: boolean;
|
|
10
|
-
rtl: boolean;
|
|
11
|
-
isAppTileSubGroup: boolean;
|
|
12
|
-
deviceSize: AbbrevationDeviceSize;
|
|
13
|
-
tilesDropped: EventEmitter<{
|
|
14
|
-
appTileGroup: MetaobjectDataModel;
|
|
15
|
-
event: CdkDragDrop<{
|
|
16
|
-
isTile: boolean;
|
|
17
|
-
items: MetaobjectDataModel[];
|
|
18
|
-
}>;
|
|
19
|
-
}>;
|
|
20
|
-
hideAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
21
|
-
renameAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
22
|
-
toggleGroup: EventEmitter<MetaobjectDataModel>;
|
|
23
|
-
resetGroup: EventEmitter<MetaobjectDataModel>;
|
|
24
|
-
deleteGroup: EventEmitter<MetaobjectDataModel>;
|
|
25
|
-
marginRightTile: number | null;
|
|
26
|
-
constructor(_el: ElementRef);
|
|
27
|
-
ngAfterViewInit(): void;
|
|
28
|
-
onDrop(appTileGroup: MetaobjectDataModel, event: CdkDragDrop<{
|
|
29
|
-
isTile: boolean;
|
|
30
|
-
items: MetaobjectDataModel[];
|
|
31
|
-
}>): void;
|
|
32
|
-
onAppTileHideClick(appTile: MetaobjectDataModel): void;
|
|
33
|
-
onAppTileRenameClick(appTile: MetaobjectDataModel): void;
|
|
34
|
-
onDelete(appTileGroup: MetaobjectDataModel): void;
|
|
35
|
-
onToggleShowHide(appTileGroup: MetaobjectDataModel): void;
|
|
36
|
-
onReset(appTileGroup: MetaobjectDataModel): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerGroupComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TilesViewerGroupComponent, "bt-tiles-viewer-group", never, { "appTileGroup": "appTileGroup"; "stackContent": "stackContent"; "edit": "edit"; "rtl": "rtl"; "isAppTileSubGroup": "isAppTileSubGroup"; "deviceSize": "deviceSize"; }, { "tilesDropped": "tilesDropped"; "hideAppTileClick": "hideAppTileClick"; "renameAppTileClick": "renameAppTileClick"; "toggleGroup": "toggleGroup"; "resetGroup": "resetGroup"; "deleteGroup": "deleteGroup"; }, never, never, false>;
|
|
39
|
-
}
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { BaseComponent, MetaobjectDataModel, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TilesViewerGroupComponent extends BaseComponent {
|
|
6
|
+
protected _el: ElementRef;
|
|
7
|
+
appTileGroup: MetaobjectDataModel;
|
|
8
|
+
stackContent: boolean;
|
|
9
|
+
edit: boolean;
|
|
10
|
+
rtl: boolean;
|
|
11
|
+
isAppTileSubGroup: boolean | undefined;
|
|
12
|
+
deviceSize: AbbrevationDeviceSize;
|
|
13
|
+
tilesDropped: EventEmitter<{
|
|
14
|
+
appTileGroup: MetaobjectDataModel;
|
|
15
|
+
event: CdkDragDrop<{
|
|
16
|
+
isTile: boolean;
|
|
17
|
+
items: MetaobjectDataModel[];
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
hideAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
21
|
+
renameAppTileClick: EventEmitter<MetaobjectDataModel>;
|
|
22
|
+
toggleGroup: EventEmitter<MetaobjectDataModel>;
|
|
23
|
+
resetGroup: EventEmitter<MetaobjectDataModel>;
|
|
24
|
+
deleteGroup: EventEmitter<MetaobjectDataModel>;
|
|
25
|
+
marginRightTile: number | null;
|
|
26
|
+
constructor(_el: ElementRef);
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
onDrop(appTileGroup: MetaobjectDataModel, event: CdkDragDrop<{
|
|
29
|
+
isTile: boolean;
|
|
30
|
+
items: MetaobjectDataModel[];
|
|
31
|
+
}>): void;
|
|
32
|
+
onAppTileHideClick(appTile: MetaobjectDataModel): void;
|
|
33
|
+
onAppTileRenameClick(appTile: MetaobjectDataModel): void;
|
|
34
|
+
onDelete(appTileGroup: MetaobjectDataModel): void;
|
|
35
|
+
onToggleShowHide(appTileGroup: MetaobjectDataModel): void;
|
|
36
|
+
onReset(appTileGroup: MetaobjectDataModel): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerGroupComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TilesViewerGroupComponent, "bt-tiles-viewer-group", never, { "appTileGroup": { "alias": "appTileGroup"; "required": false; }; "stackContent": { "alias": "stackContent"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "isAppTileSubGroup": { "alias": "isAppTileSubGroup"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; }, { "tilesDropped": "tilesDropped"; "hideAppTileClick": "hideAppTileClick"; "renameAppTileClick": "renameAppTileClick"; "toggleGroup": "toggleGroup"; "resetGroup": "resetGroup"; "deleteGroup": "deleteGroup"; }, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable, Subject } from 'rxjs';
|
|
3
|
-
import { DialogService } from '@fundamental-ngx/core';
|
|
4
|
-
import { MetaobjectDataModel } from 'barsa-novin-ray-core';
|
|
5
|
-
import { TilesService } from './tiles.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TilesViewerService implements OnDestroy {
|
|
8
|
-
private dialogService;
|
|
9
|
-
private tilesService;
|
|
10
|
-
viewLoading$: Observable<boolean>;
|
|
11
|
-
hideTile$: Observable<MetaobjectDataModel>;
|
|
12
|
-
updateAppTileSetting$: Observable<MetaobjectDataModel>;
|
|
13
|
-
deleteAppGroup$: Observable<MetaobjectDataModel>;
|
|
14
|
-
protected readonly _onDestroy$: Subject<void>;
|
|
15
|
-
private _hideTileSource;
|
|
16
|
-
private _updateAppTileSettingSource;
|
|
17
|
-
private _deleteGroupSource;
|
|
18
|
-
private _loadAppGroupSource;
|
|
19
|
-
private _saveAppGroupOrdersSource;
|
|
20
|
-
private saveAppGroupOrders$;
|
|
21
|
-
private _resetAppGroupSource;
|
|
22
|
-
private resetAppGroup$;
|
|
23
|
-
private _hideAppGroupSource;
|
|
24
|
-
private hideAppGroup$;
|
|
25
|
-
private _viewLoadingSource;
|
|
26
|
-
constructor(dialogService: DialogService, tilesService: TilesService);
|
|
27
|
-
get selectedAppGroupId(): string;
|
|
28
|
-
set selectedAppGroupId(groupId: string);
|
|
29
|
-
setSelectedTab(group: MetaobjectDataModel): void;
|
|
30
|
-
loadAppGroup(group: MetaobjectDataModel): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
openRenameForm(appTile: MetaobjectDataModel): void;
|
|
33
|
-
resetAppGroup(appGroup: MetaobjectDataModel): void;
|
|
34
|
-
toggleAppGroupSettingVisible(appGroup: MetaobjectDataModel): void;
|
|
35
|
-
deleteAppGroup(appGroup: MetaobjectDataModel): void;
|
|
36
|
-
hideTile(appTile: MetaobjectDataModel): void;
|
|
37
|
-
saveAppGroupOrders(appGroups: MetaobjectDataModel[]): void;
|
|
38
|
-
setLoaded(): void;
|
|
39
|
-
setLoading(): void;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerService, never>;
|
|
41
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TilesViewerService>;
|
|
42
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { DialogService } from '@fundamental-ngx/core';
|
|
4
|
+
import { MetaobjectDataModel } from 'barsa-novin-ray-core';
|
|
5
|
+
import { TilesService } from './tiles.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TilesViewerService implements OnDestroy {
|
|
8
|
+
private dialogService;
|
|
9
|
+
private tilesService;
|
|
10
|
+
viewLoading$: Observable<boolean>;
|
|
11
|
+
hideTile$: Observable<MetaobjectDataModel>;
|
|
12
|
+
updateAppTileSetting$: Observable<MetaobjectDataModel>;
|
|
13
|
+
deleteAppGroup$: Observable<MetaobjectDataModel>;
|
|
14
|
+
protected readonly _onDestroy$: Subject<void>;
|
|
15
|
+
private _hideTileSource;
|
|
16
|
+
private _updateAppTileSettingSource;
|
|
17
|
+
private _deleteGroupSource;
|
|
18
|
+
private _loadAppGroupSource;
|
|
19
|
+
private _saveAppGroupOrdersSource;
|
|
20
|
+
private saveAppGroupOrders$;
|
|
21
|
+
private _resetAppGroupSource;
|
|
22
|
+
private resetAppGroup$;
|
|
23
|
+
private _hideAppGroupSource;
|
|
24
|
+
private hideAppGroup$;
|
|
25
|
+
private _viewLoadingSource;
|
|
26
|
+
constructor(dialogService: DialogService, tilesService: TilesService);
|
|
27
|
+
get selectedAppGroupId(): string;
|
|
28
|
+
set selectedAppGroupId(groupId: string);
|
|
29
|
+
setSelectedTab(group: MetaobjectDataModel): void;
|
|
30
|
+
loadAppGroup(group: MetaobjectDataModel): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
openRenameForm(appTile: MetaobjectDataModel): void;
|
|
33
|
+
resetAppGroup(appGroup: MetaobjectDataModel): void;
|
|
34
|
+
toggleAppGroupSettingVisible(appGroup: MetaobjectDataModel): void;
|
|
35
|
+
deleteAppGroup(appGroup: MetaobjectDataModel): void;
|
|
36
|
+
hideTile(appTile: MetaobjectDataModel): void;
|
|
37
|
+
saveAppGroupOrders(appGroups: MetaobjectDataModel[]): void;
|
|
38
|
+
setLoaded(): void;
|
|
39
|
+
setLoading(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TilesViewerService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TilesViewerService>;
|
|
42
|
+
}
|
package/lib/tiles.service.d.ts
CHANGED
|
@@ -1,75 +1,78 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject, Observable } from 'rxjs';
|
|
3
|
-
import { RtlService } from '@fundamental-ngx/core';
|
|
4
|
-
import { BbbTranslatePipe, MetaobjectDataModel, MoForReportModel, PortalService } from 'barsa-novin-ray-core';
|
|
5
|
-
import { AppTileGroupPin } from './models';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TilesService implements OnDestroy {
|
|
8
|
-
private _portalService;
|
|
9
|
-
private _rtlService;
|
|
10
|
-
private _bbbTranslatePipe;
|
|
11
|
-
deviceSize$: Observable<'s' | 'm' | 'l' | 'xl'>;
|
|
12
|
-
homeAppTileGroups$: Observable<MetaobjectDataModel[]>;
|
|
13
|
-
pinTiles$: Observable<PinTileInfo | null>;
|
|
14
|
-
shellbarSource: Subject<MetaobjectDataModel>;
|
|
15
|
-
shellbar$: Observable<MetaobjectDataModel>;
|
|
16
|
-
appTileGroups$: Observable<MoForReportModel | null>;
|
|
17
|
-
edit$: Observable<boolean>;
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject, Observable } from 'rxjs';
|
|
3
|
+
import { RtlService } from '@fundamental-ngx/core';
|
|
4
|
+
import { BbbTranslatePipe, MetaobjectDataModel, MoForReportModel, PortalService } from 'barsa-novin-ray-core';
|
|
5
|
+
import { AppTileGroupPin } from './models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TilesService implements OnDestroy {
|
|
8
|
+
private _portalService;
|
|
9
|
+
private _rtlService;
|
|
10
|
+
private _bbbTranslatePipe;
|
|
11
|
+
deviceSize$: Observable<'s' | 'm' | 'l' | 'xl'>;
|
|
12
|
+
homeAppTileGroups$: Observable<MetaobjectDataModel[]>;
|
|
13
|
+
pinTiles$: Observable<PinTileInfo | null>;
|
|
14
|
+
shellbarSource: Subject<MetaobjectDataModel>;
|
|
15
|
+
shellbar$: Observable<MetaobjectDataModel>;
|
|
16
|
+
appTileGroups$: Observable<MoForReportModel | null>;
|
|
17
|
+
edit$: Observable<boolean>;
|
|
18
|
+
userProfileImageUrl$: Observable<string | null>;
|
|
19
|
+
private _OnDestroy$;
|
|
20
|
+
private _homeAppTileGroupsSource;
|
|
21
|
+
private pinTilesSource;
|
|
22
|
+
private _appTileGroupsSource;
|
|
23
|
+
private _userProfileImageUrl$;
|
|
24
|
+
private _edithomeSource;
|
|
25
|
+
private _componentSettings$;
|
|
26
|
+
constructor(_portalService: PortalService, _rtlService: RtlService, _bbbTranslatePipe: BbbTranslatePipe);
|
|
27
|
+
get componentSettings$(): Observable<MetaobjectDataModel>;
|
|
28
|
+
get appTileGroups(): MoForReportModel | null;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
protected _onApplication_GlobalRefreshTile(sender: any, appTilesTitle: string[]): void;
|
|
31
|
+
protected _updateAppTileFromNotification(allApps: MoForReportModel, appTiles: MetaobjectDataModel[]): void;
|
|
32
|
+
loadUserProfileImage(repIdProfileImage: string): void;
|
|
33
|
+
loadAppTileGroups(appTileGroup: MetaobjectDataModel): void;
|
|
34
|
+
saveTilesStackContent(tilesStackContent: boolean): Promise<void>;
|
|
35
|
+
loadUserPortalSettings(): Observable<any>;
|
|
36
|
+
refreshTile(appTile: MetaobjectDataModel): Promise<MetaobjectDataModel>;
|
|
37
|
+
loadFromServerUserPortalSetting(): Observable<MetaobjectDataModel>;
|
|
38
|
+
toggleAppGroupSettingVisible(appGroup: MetaobjectDataModel): Observable<MetaobjectDataModel>;
|
|
39
|
+
resetAppGroupSetting(appGroup: MetaobjectDataModel): Observable<MetaobjectDataModel>;
|
|
40
|
+
deleteAppGroup(appGroup: MetaobjectDataModel): Observable<string>;
|
|
41
|
+
changeAppTileSetting(appTile: MetaobjectDataModel): Observable<MetaobjectDataModel | null>;
|
|
42
|
+
saveAppGroupOrders(appGroups: MetaobjectDataModel[]): Observable<void>;
|
|
43
|
+
createAppGroup(title: string): Observable<MetaobjectDataModel>;
|
|
44
|
+
saveOrderAppTiles(appGroup: MetaobjectDataModel, appTiles: number[], isActionLink?: boolean, appTileIdTransferedId?: string): void;
|
|
45
|
+
updateAppTile(allApps: MoForReportModel | null, appTile: MetaobjectDataModel): void;
|
|
46
|
+
updataAppTileSetting(selectedGroup: MetaobjectDataModel, appGroupSetting: MetaobjectDataModel): void;
|
|
47
|
+
addAppGroup(mo: MetaobjectDataModel): void;
|
|
48
|
+
singlePinTileChanged(appTileId: any): Observable<boolean>;
|
|
49
|
+
pinTileChanged(appTileGroupsPin: AppTileGroupPin[], app: MetaobjectDataModel, callback: any): void;
|
|
50
|
+
_tilePinChange(appTileGroupsPin: any, allApps: any): void;
|
|
51
|
+
loadShellbar(): void;
|
|
52
|
+
loadAllAppTileGroups(): void;
|
|
53
|
+
_setTileInfo(appTile: any): void;
|
|
54
|
+
getTileGroups(): MoForReportModel | null;
|
|
55
|
+
setEditHome(edit: boolean): void;
|
|
56
|
+
private _allAppsLoaded;
|
|
57
|
+
private _loadAppTilesOfAppTileGroup;
|
|
58
|
+
private _loadAppTilesByAppTileGroup;
|
|
59
|
+
private _updateAppTilesOfAppTileGroup;
|
|
60
|
+
private _loadAppTilesByAppTileGroupSetting;
|
|
61
|
+
private _nextAllAppTileGroups;
|
|
62
|
+
private _setHomeAppTileGroups;
|
|
63
|
+
private _saveUserPortalSettings;
|
|
64
|
+
private _updateAppGroupSetting;
|
|
65
|
+
private findAppTileWithKey;
|
|
66
|
+
private findGroupWithAppTileId;
|
|
67
|
+
private _findGroupWithAppGroupId;
|
|
68
|
+
private _updateAppTileGroupSettings;
|
|
69
|
+
private _prepareNavigator;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TilesService, never>;
|
|
71
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TilesService>;
|
|
72
|
+
}
|
|
73
|
+
interface PinTileInfo {
|
|
74
|
+
groups: MetaobjectDataModel[];
|
|
75
|
+
visible: boolean[];
|
|
76
|
+
tileId: string;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barsa-tiles",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.457",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/core": "^
|
|
6
|
-
"@angular/common": "^
|
|
5
|
+
"@angular/core": "^18.0.3",
|
|
6
|
+
"@angular/common": "^18.0.3"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.0.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "
|
|
12
|
-
"es2020": "fesm2020/barsa-tiles.mjs",
|
|
13
|
-
"esm2020": "esm2020/barsa-tiles.mjs",
|
|
14
|
-
"fesm2020": "fesm2020/barsa-tiles.mjs",
|
|
15
|
-
"fesm2015": "fesm2015/barsa-tiles.mjs",
|
|
11
|
+
"module": "fesm2022/barsa-tiles.mjs",
|
|
16
12
|
"typings": "index.d.ts",
|
|
17
13
|
"exports": {
|
|
18
14
|
"./package.json": {
|
|
@@ -20,11 +16,7 @@
|
|
|
20
16
|
},
|
|
21
17
|
".": {
|
|
22
18
|
"types": "./index.d.ts",
|
|
23
|
-
"
|
|
24
|
-
"es2020": "./fesm2020/barsa-tiles.mjs",
|
|
25
|
-
"es2015": "./fesm2015/barsa-tiles.mjs",
|
|
26
|
-
"node": "./fesm2015/barsa-tiles.mjs",
|
|
27
|
-
"default": "./fesm2020/barsa-tiles.mjs"
|
|
19
|
+
"default": "./fesm2022/barsa-tiles.mjs"
|
|
28
20
|
}
|
|
29
21
|
},
|
|
30
22
|
"sideEffects": false
|