barsa-tiles 2.3.159 → 2.3.163
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 +367 -275
- package/fesm2022/barsa-tiles.mjs.map +1 -1
- package/package.json +10 -6
- package/{index.d.ts → types/barsa-tiles.d.ts} +44 -18
package/package.json
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barsa-tiles",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.163",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/core": "^
|
|
6
|
-
"@angular/common": "^
|
|
5
|
+
"@angular/core": "^21.2.0",
|
|
6
|
+
"@angular/common": "^21.2.0",
|
|
7
|
+
"barsa-novin-ray-core": "*",
|
|
8
|
+
"barsa-sap-ui": "*",
|
|
9
|
+
"barsa-echarts": "*"
|
|
7
10
|
},
|
|
8
11
|
"dependencies": {
|
|
9
12
|
"tslib": "^2.0.0"
|
|
10
13
|
},
|
|
11
14
|
"module": "fesm2022/barsa-tiles.mjs",
|
|
12
|
-
"typings": "
|
|
15
|
+
"typings": "types/barsa-tiles.d.ts",
|
|
13
16
|
"exports": {
|
|
14
17
|
"./package.json": {
|
|
15
18
|
"default": "./package.json"
|
|
16
19
|
},
|
|
17
20
|
".": {
|
|
18
|
-
"types": "./
|
|
21
|
+
"types": "./types/barsa-tiles.d.ts",
|
|
19
22
|
"default": "./fesm2022/barsa-tiles.mjs"
|
|
20
23
|
}
|
|
21
24
|
},
|
|
22
|
-
"sideEffects": false
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"type": "module"
|
|
23
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, OnInit, Renderer2, ChangeDetectorRef, ElementRef, SimpleChanges, EventEmitter, OnChanges, OnDestroy, Injector, WritableSignal, TemplateRef, PipeTransform, DestroyRef, ViewContainerRef, InputSignal, EmbeddedViewRef,
|
|
2
|
+
import { Signal, OnInit, Renderer2, ChangeDetectorRef, ElementRef, SimpleChanges, EventEmitter, OnChanges, OnDestroy, Injector, WritableSignal, TemplateRef, PipeTransform, DestroyRef, ViewContainerRef, InputSignal, EmbeddedViewRef, EnvironmentInjector } from '@angular/core';
|
|
3
3
|
import * as barsa_novin_ray_core from 'barsa-novin-ray-core';
|
|
4
|
-
import { MetaobjectDataModel,
|
|
4
|
+
import { MetaobjectDataModel, EjrayOlgo, FilePictureInfoModel, MoForReportModelBase, MoForReportModel, TilePropsComponent, BaseComponent, AbbrevationDeviceSize, ScrollLayoutContextHolder, BaseController, IViewBase, ViewBase, ContainerReportSetting, SaveScrollPositionService, ShellbarSetting as ShellbarSetting$1, ApplicationCtrlrService, NotificationItem, NotificationAction, SearchInput, BreadCrumbInfo, SortDirection, LogService, LocalStorageService, BreadcrumbService, PortalService, EmptyPageComponent, RoutingService, CardMediaSize, BaseDirective, DynamicRootVariableDirective, BaseDynamicComponent, WorkflowExecuteChoiceStatus, BaseModule } from 'barsa-novin-ray-core';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import * as i60 from '@angular/cdk/drag-drop';
|
|
@@ -131,10 +131,10 @@ declare class TilesService {
|
|
|
131
131
|
readonly userInfo$: Observable<UserInfo | null>;
|
|
132
132
|
readonly componentSettings$: Observable<MetaobjectDataModel>;
|
|
133
133
|
readonly homeAppTileGroupsSig: i0.WritableSignal<AppTileGroup[]>;
|
|
134
|
-
readonly userInfoSig: i0.WritableSignal<UserInfo
|
|
134
|
+
readonly userInfoSig: i0.WritableSignal<UserInfo>;
|
|
135
135
|
readonly editHomeSig: i0.WritableSignal<boolean>;
|
|
136
|
-
readonly shellbarSig: i0.WritableSignal<MetaobjectDataModel
|
|
137
|
-
readonly componentSettingsSig: i0.WritableSignal<MetaobjectDataModel
|
|
136
|
+
readonly shellbarSig: i0.WritableSignal<MetaobjectDataModel>;
|
|
137
|
+
readonly componentSettingsSig: i0.WritableSignal<MetaobjectDataModel>;
|
|
138
138
|
private readonly _destroyRef;
|
|
139
139
|
private readonly _pinTilesSource;
|
|
140
140
|
private readonly _store;
|
|
@@ -165,7 +165,7 @@ declare class TilesService {
|
|
|
165
165
|
deleteAppGroup(appGroup: AppTileGroup): Observable<string>;
|
|
166
166
|
changeAppTileSetting(appTile: MetaobjectDataModel): Observable<MetaobjectDataModel | null>;
|
|
167
167
|
saveAppGroupOrders(appGroups: MetaobjectDataModel[]): Observable<void>;
|
|
168
|
-
createAppGroup(title: string, parentId?: string | null): Observable<
|
|
168
|
+
createAppGroup(title: string, parentId?: string | null): Observable<AppTileGroup>;
|
|
169
169
|
saveOrderAppTiles(appGroup: MetaobjectDataModel, appTiles: number[], isActionLink?: boolean, appTileIdTransferedId?: string): void;
|
|
170
170
|
updateAppTile(allApps: MoForReportModel | null, appTile: MetaobjectDataModel): void;
|
|
171
171
|
updataAppTileSetting(selectedGroup: MetaobjectDataModel, appGroupSetting: MetaobjectDataModel): void;
|
|
@@ -231,7 +231,7 @@ declare abstract class BaseTileComponent<T extends BaseTileSetting> extends Tile
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
declare abstract class BaseBtTileComponent<T extends BaseTileSetting> extends BaseTileComponent<T> implements OnInit {
|
|
234
|
-
isDark$: rxjs.Observable<boolean
|
|
234
|
+
isDark$: rxjs.Observable<boolean>;
|
|
235
235
|
_btTitleElementRef: ElementRef;
|
|
236
236
|
ngOnInit(): void;
|
|
237
237
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -965,7 +965,7 @@ declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
965
965
|
settings: MetaobjectDataModel;
|
|
966
966
|
deviceSize$: Observable<AbbrevationDeviceSize>;
|
|
967
967
|
user: ShellbarUser;
|
|
968
|
-
suggestions:
|
|
968
|
+
suggestions: any[];
|
|
969
969
|
productMenuItems1: ShellbarMenuItem[];
|
|
970
970
|
userLoggedIn$: Observable<boolean>;
|
|
971
971
|
cssUrl$: Observable<SafeResourceUrl | null>;
|
|
@@ -986,6 +986,15 @@ declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
986
986
|
shellbarData: ShellbarSetting$1;
|
|
987
987
|
productSwitcher$: Observable<ProductSwitchItem[]>;
|
|
988
988
|
rtl$: Observable<boolean>;
|
|
989
|
+
/**
|
|
990
|
+
* تاریخ شمسی امروز (از PortalService.dateText$ که LoginFormData.DateText رو منتشر میکنه).
|
|
991
|
+
* `compact` برای نمایش فشرده توی شلبار و `full` (همراه روز هفته) برای تولتیپ.
|
|
992
|
+
* تیکِ زنده نیست؛ فقط یکبار موقع لود پورتال مقدار میگیره.
|
|
993
|
+
*/
|
|
994
|
+
date$: Observable<{
|
|
995
|
+
full: string;
|
|
996
|
+
compact: string;
|
|
997
|
+
} | null>;
|
|
989
998
|
protected _applicationCtrlrService: ApplicationCtrlrService;
|
|
990
999
|
private _router;
|
|
991
1000
|
private _renderer2;
|
|
@@ -1140,6 +1149,14 @@ declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1140
1149
|
showSearchInSystem: boolean;
|
|
1141
1150
|
rtl: boolean;
|
|
1142
1151
|
suggestions: SuggestionItem[];
|
|
1152
|
+
/**
|
|
1153
|
+
* تاریخ شمسی امروز (از سمت والد پاس داده میشه).
|
|
1154
|
+
* `compact` برای نمایش فشرده توی شلبار و `full` (همراه روز هفته) برای تولتیپ.
|
|
1155
|
+
*/
|
|
1156
|
+
date: {
|
|
1157
|
+
full: string;
|
|
1158
|
+
compact: string;
|
|
1159
|
+
} | null;
|
|
1143
1160
|
appTileGroupChange: EventEmitter<string>;
|
|
1144
1161
|
searchItemClick: EventEmitter<SuggestionItem>;
|
|
1145
1162
|
searchInput: EventEmitter<SearchInput>;
|
|
@@ -1165,6 +1182,8 @@ declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1165
1182
|
showSearch: i0.WritableSignal<boolean>;
|
|
1166
1183
|
inputEnableSearch: i0.WritableSignal<boolean>;
|
|
1167
1184
|
appVersion: string;
|
|
1185
|
+
/** روی موبایل اگه شلبار جا کم بیاره، تایتلِ برندینگ حذف میشه تا لوگو/آواتار از صفحه نزنن بیرون. */
|
|
1186
|
+
brandingTitleHidden: boolean;
|
|
1168
1187
|
private _bbbTranslate;
|
|
1169
1188
|
private _portalService;
|
|
1170
1189
|
private _dialogService;
|
|
@@ -1172,9 +1191,17 @@ declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1172
1191
|
private _cdr;
|
|
1173
1192
|
private _router;
|
|
1174
1193
|
private _dialogReference;
|
|
1194
|
+
private _titleWidth;
|
|
1195
|
+
private _brandingResizeObserver?;
|
|
1196
|
+
/**
|
|
1197
|
+
* روی موبایل همهی دستورات (global + workflow + grouped) توی یک منوی overflow (⋯) جمع میشن
|
|
1198
|
+
* تا شلبار سرریز نکنه و برندینگ/آواتار جا بمونن. این getter اون سه منبع رو به یک درختِ واحد ادغام میکنه.
|
|
1199
|
+
*/
|
|
1200
|
+
get mobileCommandNodes(): ShellbarCommandAction[];
|
|
1175
1201
|
constructor();
|
|
1176
1202
|
ngOnInit(): void;
|
|
1177
1203
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1204
|
+
ngOnDestroy(): void;
|
|
1178
1205
|
onSearchSubmit(e: SearchInput): void;
|
|
1179
1206
|
onOpenSearchDialog(): void;
|
|
1180
1207
|
onSearchItemClick(e: SuggestionItem): void;
|
|
@@ -1192,10 +1219,15 @@ declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
|
|
|
1192
1219
|
onOpenQuickAccess: () => void;
|
|
1193
1220
|
onOpenNotification: () => void;
|
|
1194
1221
|
onLanguage: (e: any) => void;
|
|
1222
|
+
/**
|
|
1223
|
+
* سرریزِ شلبار رو با ResizeObserver میسنجه؛ فقط روی موبایل (deviceSize === 's') اگه محتوا جا نشه
|
|
1224
|
+
* تایتلِ برندینگ رو حذف میکنه. با hysteresis (پهنای تایتل + کمی فاصله) از نوسانِ پنهان/نمایان جلوگیری میشه.
|
|
1225
|
+
*/
|
|
1226
|
+
private _initBrandingOverflowWatch;
|
|
1195
1227
|
private _closeSideMenu;
|
|
1196
1228
|
private _changeCulture;
|
|
1197
1229
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarsaShellbarComponent, never>;
|
|
1198
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "showSidebar": { "alias": "showSidebar"; "required": false; }; "multiLanguages": { "alias": "multiLanguages"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "productMenuControl": { "alias": "productMenuControl"; "required": false; }; "dastoratSarasari": { "alias": "dastoratSarasari"; "required": false; }; "workflowMenuItems": { "alias": "workflowMenuItems"; "required": false; }; "groupedCommandMenus": { "alias": "groupedCommandMenus"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "cultures": { "alias": "cultures"; "required": false; }; "shellbarData": { "alias": "shellbarData"; "required": false; }; "notificationsUnreadCount": { "alias": "notificationsUnreadCount"; "required": false; }; "productMenuItems1": { "alias": "productMenuItems1"; "required": false; }; "bodyClick": { "alias": "bodyClick"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "userMenu": { "alias": "userMenu"; "required": false; }; "footerButtons": { "alias": "footerButtons"; "required": false; }; "productSwitcher": { "alias": "productSwitcher"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "hideShellbarActions": { "alias": "hideShellbarActions"; "required": false; }; "flatButtons": { "alias": "flatButtons"; "required": false; }; "isTablet": { "alias": "isTablet"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "isDesktop": { "alias": "isDesktop"; "required": false; }; "informativeText": { "alias": "informativeText"; "required": false; }; "informativeStatus": { "alias": "informativeStatus"; "required": false; }; "hideProductMenu": { "alias": "hideProductMenu"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "hideNotifications": { "alias": "hideNotifications"; "required": false; }; "isServiceDesk": { "alias": "isServiceDesk"; "required": false; }; "isOpenQuickAccess": { "alias": "isOpenQuickAccess"; "required": false; }; "sideMenuTemplate": { "alias": "sideMenuTemplate"; "required": false; }; "notificationReport": { "alias": "notificationReport"; "required": false; }; "profileDynamicCommand": { "alias": "profileDynamicCommand"; "required": false; }; "profileDynamicCommandText": { "alias": "profileDynamicCommandText"; "required": false; }; "profileDynamicCommandIcon": { "alias": "profileDynamicCommandIcon"; "required": false; }; "displayName": { "alias": "displayName"; "required": false; }; "hideBranding": { "alias": "hideBranding"; "required": false; }; "showSearchInSystem": { "alias": "showSearchInSystem"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; }, { "appTileGroupChange": "appTileGroupChange"; "searchItemClick": "searchItemClick"; "searchInput": "searchInput"; "isOpenQuickAccessChanged": "isOpenQuickAccessChanged"; "openNotificationPanel": "openNotificationPanel"; "openQuickAccessPanel": "openQuickAccessPanel"; "cultureChanged": "cultureChanged"; "notifiationActionClick": "notifiationActionClick"; }, never, never, false, never>;
|
|
1230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "showSidebar": { "alias": "showSidebar"; "required": false; }; "multiLanguages": { "alias": "multiLanguages"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "productMenuControl": { "alias": "productMenuControl"; "required": false; }; "dastoratSarasari": { "alias": "dastoratSarasari"; "required": false; }; "workflowMenuItems": { "alias": "workflowMenuItems"; "required": false; }; "groupedCommandMenus": { "alias": "groupedCommandMenus"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "cultures": { "alias": "cultures"; "required": false; }; "shellbarData": { "alias": "shellbarData"; "required": false; }; "notificationsUnreadCount": { "alias": "notificationsUnreadCount"; "required": false; }; "productMenuItems1": { "alias": "productMenuItems1"; "required": false; }; "bodyClick": { "alias": "bodyClick"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "userMenu": { "alias": "userMenu"; "required": false; }; "footerButtons": { "alias": "footerButtons"; "required": false; }; "productSwitcher": { "alias": "productSwitcher"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "hideShellbarActions": { "alias": "hideShellbarActions"; "required": false; }; "flatButtons": { "alias": "flatButtons"; "required": false; }; "isTablet": { "alias": "isTablet"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "isDesktop": { "alias": "isDesktop"; "required": false; }; "informativeText": { "alias": "informativeText"; "required": false; }; "informativeStatus": { "alias": "informativeStatus"; "required": false; }; "hideProductMenu": { "alias": "hideProductMenu"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "hideNotifications": { "alias": "hideNotifications"; "required": false; }; "isServiceDesk": { "alias": "isServiceDesk"; "required": false; }; "isOpenQuickAccess": { "alias": "isOpenQuickAccess"; "required": false; }; "sideMenuTemplate": { "alias": "sideMenuTemplate"; "required": false; }; "notificationReport": { "alias": "notificationReport"; "required": false; }; "profileDynamicCommand": { "alias": "profileDynamicCommand"; "required": false; }; "profileDynamicCommandText": { "alias": "profileDynamicCommandText"; "required": false; }; "profileDynamicCommandIcon": { "alias": "profileDynamicCommandIcon"; "required": false; }; "displayName": { "alias": "displayName"; "required": false; }; "hideBranding": { "alias": "hideBranding"; "required": false; }; "showSearchInSystem": { "alias": "showSearchInSystem"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "date": { "alias": "date"; "required": false; }; }, { "appTileGroupChange": "appTileGroupChange"; "searchItemClick": "searchItemClick"; "searchInput": "searchInput"; "isOpenQuickAccessChanged": "isOpenQuickAccessChanged"; "openNotificationPanel": "openNotificationPanel"; "openQuickAccessPanel": "openQuickAccessPanel"; "cultureChanged": "cultureChanged"; "notifiationActionClick": "notifiationActionClick"; }, never, never, false, never>;
|
|
1199
1231
|
}
|
|
1200
1232
|
|
|
1201
1233
|
declare class PopoverAppFinderComponent extends BaseComponent implements OnInit {
|
|
@@ -1450,12 +1482,7 @@ declare class EmptyListDirective {
|
|
|
1450
1482
|
}
|
|
1451
1483
|
|
|
1452
1484
|
declare class TileRendererDirective extends BaseDirective implements OnInit, OnChanges, OnDestroy {
|
|
1453
|
-
component:
|
|
1454
|
-
Module: string;
|
|
1455
|
-
ModuleFileName: string;
|
|
1456
|
-
Name: string;
|
|
1457
|
-
Selector: string;
|
|
1458
|
-
};
|
|
1485
|
+
component: EjrayOlgo;
|
|
1459
1486
|
data: BaseTileSetting | AppTile;
|
|
1460
1487
|
groupType: string;
|
|
1461
1488
|
edit: boolean;
|
|
@@ -1466,10 +1493,11 @@ declare class TileRendererDirective extends BaseDirective implements OnInit, OnC
|
|
|
1466
1493
|
hideClick: EventEmitter<any>;
|
|
1467
1494
|
renameClick: EventEmitter<any>;
|
|
1468
1495
|
changeGroupClick: EventEmitter<any>;
|
|
1496
|
+
protected _injector: Injector;
|
|
1497
|
+
protected _environmentInjector: EnvironmentInjector;
|
|
1469
1498
|
private _tileRef;
|
|
1470
1499
|
private _cdr;
|
|
1471
1500
|
private _vcr;
|
|
1472
|
-
private _injector;
|
|
1473
1501
|
ngOnInit(): void;
|
|
1474
1502
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1475
1503
|
ngOnDestroy(): void;
|
|
@@ -1585,8 +1613,6 @@ declare class BarsaTilesRoutingModule {
|
|
|
1585
1613
|
|
|
1586
1614
|
declare function addTilesPageSidebar(_router: Router): void;
|
|
1587
1615
|
declare class BarsaTilesModule extends BaseModule {
|
|
1588
|
-
protected dcm: DynamicComponentService;
|
|
1589
|
-
protected componentFactoryResolver: ComponentFactoryResolver;
|
|
1590
1616
|
protected dynamicComponents: (typeof FooterEditTileComponent)[];
|
|
1591
1617
|
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1592
1618
|
constructor();
|