barsa-novin-ray-core 2.3.31 → 2.3.33

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.
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, ElementRef, Input, ChangeDetectionStrategy, Component, Pipe, ComponentFactoryResolver, Injector, ApplicationRef, Compiler, DOCUMENT, NgModuleFactory, InjectionToken, NgZone, EventEmitter, ChangeDetectorRef, Renderer2, HostBinding, Output, HostListener, ViewContainerRef, ViewChild, signal, Directive, TemplateRef, input, NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer, ErrorHandler } from '@angular/core';
3
- import { Subject, from, BehaviorSubject, of, combineLatest, fromEvent, forkJoin, throwError, merge, interval, filter as filter$1, tap as tap$1, concatMap as concatMap$1, catchError as catchError$1, finalize as finalize$1, map as map$1, Observable, takeUntil as takeUntil$1, exhaustMap as exhaustMap$1, timer, debounceTime as debounceTime$1, mergeWith } from 'rxjs';
2
+ import { Injectable, inject, ElementRef, Input, ChangeDetectionStrategy, Component, Pipe, ComponentFactoryResolver, Injector, ApplicationRef, Compiler, signal, DOCUMENT, NgModuleFactory, InjectionToken, NgZone, EventEmitter, ChangeDetectorRef, Renderer2, HostBinding, Output, HostListener, ViewContainerRef, ViewChild, Directive, TemplateRef, input, NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer, ErrorHandler } from '@angular/core';
3
+ import { Subject, from, BehaviorSubject, of, exhaustMap, map as map$1, combineLatest, fromEvent, forkJoin, throwError, merge, interval, filter as filter$1, tap as tap$1, concatMap as concatMap$1, catchError as catchError$1, finalize as finalize$1, Observable, takeUntil as takeUntil$1, timer, debounceTime as debounceTime$1, mergeWith } from 'rxjs';
4
4
  import * as i1 from '@angular/router';
5
5
  import { Router, NavigationEnd, ActivatedRoute, NavigationStart, RouterEvent, RouterModule } from '@angular/router';
6
6
  import { DomSanitizer, Title } from '@angular/platform-browser';
7
- import { filter, startWith, map, tap, takeUntil, withLatestFrom, delay, debounceTime, distinctUntilChanged, exhaustMap, concatMap, finalize, publishReplay, refCount, shareReplay, switchMap, catchError, merge as merge$1, pluck, mergeWith as mergeWith$1 } from 'rxjs/operators';
7
+ import { filter, startWith, map, tap, takeUntil, withLatestFrom, delay, debounceTime, distinctUntilChanged, exhaustMap as exhaustMap$1, concatMap, finalize, publishReplay, refCount, shareReplay, switchMap, catchError, merge as merge$1, pluck, mergeWith as mergeWith$1 } from 'rxjs/operators';
8
8
  import moment from 'moment';
9
9
  import moment$1 from 'moment-hijri';
10
10
  import 'moment/locale/ar';
@@ -2389,6 +2389,13 @@ function IsDarkMode() {
2389
2389
  function nullOrUndefinedString(param) {
2390
2390
  return `${param} can not be null or undefined.`;
2391
2391
  }
2392
+ function fromEntries(entries) {
2393
+ const result = {};
2394
+ for (const [key, value] of entries) {
2395
+ result[key] = value;
2396
+ }
2397
+ return result;
2398
+ }
2392
2399
 
2393
2400
  class MoReportValuePipe {
2394
2401
  transform(name, mo, Columns, caption) {
@@ -4020,6 +4027,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
4020
4027
  }]
4021
4028
  }] });
4022
4029
 
4030
+ class ChunkArrayPipe {
4031
+ transform(arr, size = 2) {
4032
+ if (!arr || !Array.isArray(arr) || size <= 0) {
4033
+ return [];
4034
+ }
4035
+ const out = [];
4036
+ for (let i = 0; i < arr.length; i += size) {
4037
+ out.push(arr.slice(i, i + size));
4038
+ }
4039
+ return out;
4040
+ }
4041
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ChunkArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4042
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: ChunkArrayPipe, isStandalone: false, name: "chunkArray" }); }
4043
+ }
4044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ChunkArrayPipe, decorators: [{
4045
+ type: Pipe,
4046
+ args: [{
4047
+ name: 'chunkArray',
4048
+ pure: true,
4049
+ standalone: false
4050
+ }]
4051
+ }] });
4052
+
4023
4053
  class ApiService {
4024
4054
  constructor() {
4025
4055
  this.portalLoginUrl = `/api/auth/portal/login`;
@@ -4257,7 +4287,13 @@ class DynamicComponentService {
4257
4287
  /** Inserted by Angular inject() migration for backwards compatibility */
4258
4288
  constructor() {
4259
4289
  this.cfr = inject(ComponentFactoryResolver);
4290
+ this._injector = inject(Injector);
4260
4291
  this._dynamicModuleWithComponents = {};
4292
+ this._compiler = inject(Compiler);
4293
+ }
4294
+ addDynamicModuleResolver(modules) {
4295
+ this.requires = { ...this.requires, ...modules };
4296
+ return Promise.resolve(this.requires);
4261
4297
  }
4262
4298
  addModuleWithComponents(moduleName, ngModuleRef) {
4263
4299
  if (!this._dynamicModuleWithComponents[moduleName]) {
@@ -4267,9 +4303,9 @@ class DynamicComponentService {
4267
4303
  }
4268
4304
  }
4269
4305
  getComponentType(componentSelector, componentName, moduleName) {
4270
- const moName = moduleName + 'Module';
4306
+ const moName = `${moduleName}Module`;
4271
4307
  const module = this._dynamicModuleWithComponents[moName];
4272
- const cmpName = componentName + 'Component';
4308
+ const cmpName = `${componentName}Component`;
4273
4309
  if (!module) {
4274
4310
  return;
4275
4311
  }
@@ -4284,15 +4320,22 @@ class DynamicComponentService {
4284
4320
  }
4285
4321
  return x;
4286
4322
  }
4287
- getComponentBySelector(selector, moduleName, injector) {
4288
- const moName = moduleName + 'Module';
4323
+ getComponentBySelector(selector, componentName, moduleName, injector) {
4324
+ const moName = `${moduleName}Module`;
4289
4325
  const module = this._dynamicModuleWithComponents[moName];
4290
- if (module && module.ngModuleRef.getComponentFactory) {
4326
+ if (module) {
4291
4327
  const componentFactory = module.ngModuleRef.getComponentFactory(selector);
4292
4328
  if (componentFactory) {
4293
4329
  return of(componentFactory.create(injector));
4294
4330
  }
4295
4331
  }
4332
+ else {
4333
+ if (this.requires[moduleName]) {
4334
+ return from(this.requires[moduleName]()).pipe(exhaustMap((m) => this._compiler.compileModuleAsync(m[moName])), map$1((c) => c.create(this._injector)), map$1((c) => c.componentFactoryResolver
4335
+ .resolveComponentFactory(this.getComponentType(selector, componentName, moduleName))
4336
+ .create(injector)));
4337
+ }
4338
+ }
4296
4339
  const componentRef = this.cfr.resolveComponentFactory(NotFoundComponent).create(injector);
4297
4340
  componentRef.instance.componentName = selector;
4298
4341
  componentRef.instance.moduleName = moduleName;
@@ -4952,6 +4995,102 @@ function formRoutes(authGuard = false) {
4952
4995
  };
4953
4996
  }
4954
4997
 
4998
+ class ApplicationCtrlrService {
4999
+ constructor() {
5000
+ this.sidebarToggle = signal(false);
5001
+ this._appMenuItems$ = new BehaviorSubject([]);
5002
+ this._systemsUi$ = new BehaviorSubject([]);
5003
+ this._selectedSystem$ = new BehaviorSubject(null);
5004
+ this._log = inject(LogService);
5005
+ this._document = inject(DOCUMENT);
5006
+ }
5007
+ get appMenuItems$() {
5008
+ return this._appMenuItems$.asObservable();
5009
+ }
5010
+ get selectedSystem$() {
5011
+ return this._selectedSystem$.asObservable();
5012
+ }
5013
+ initialize(callback) {
5014
+ BarsaApi.Ul.ApplicationCtrlr.Initialize(() => {
5015
+ this._handleEvents();
5016
+ callback && callback();
5017
+ });
5018
+ this._document.documentElement.setAttribute('data-layout', 'vertical');
5019
+ }
5020
+ systemChange(appMenuItem) {
5021
+ this._customApplicationMenuBodyUi.fireEvent('SelectedSystemChanged', this._customApplicationMenuBodyUi, appMenuItem.SystemData);
5022
+ }
5023
+ sidebarToggled(sidebarToggle) {
5024
+ this.sidebarToggle.set(sidebarToggle);
5025
+ if (sidebarToggle) {
5026
+ // [data-layout=vertical] [data-sidebartype=mini-sidebar]
5027
+ this._document.body.removeAttribute('data-sidebartype');
5028
+ }
5029
+ else {
5030
+ this._document.body.setAttribute('data-sidebartype', 'mini-sidebar');
5031
+ }
5032
+ }
5033
+ _loadSystem(id, resolve, reject) {
5034
+ BarsaApi.Ul.ApplicationCtrlr._loadSystem(id, true, (data) => {
5035
+ resolve(data);
5036
+ }, (err) => {
5037
+ reject(err);
5038
+ });
5039
+ }
5040
+ _handleEvents() {
5041
+ const context = BarsaApi.Ul.ApplicationCtrlr.Adapter.Control;
5042
+ context.on({
5043
+ AddSystemUi: this._addSystemUi.bind(this),
5044
+ AddToMainTabPanel: this._addToMainTabPanel.bind(this),
5045
+ SystemChanged: this._selectedSystemChanged.bind(this),
5046
+ SetStatusBarValues: this._setStatusBarValues.bind(this),
5047
+ ShowReleaseNoteWindow: this._showReleaseNoteWindow.bind(this)
5048
+ });
5049
+ const appMenuBodyUi = context._appMenuBody;
5050
+ appMenuBodyUi.on({
5051
+ ButtonListChanged: this._appMenuBodyUi_itemsChanged.bind(this)
5052
+ });
5053
+ this._appMenuBodyUi_itemsChanged(appMenuBodyUi.items);
5054
+ this._customApplicationUi = context;
5055
+ if (context._systemsUi?.length) {
5056
+ this._selectedSystemChanged(context._selectedSystemId);
5057
+ }
5058
+ this._addSystemUi(context._systemsUi);
5059
+ this._customApplicationMenuBodyUi = appMenuBodyUi;
5060
+ }
5061
+ _appMenuBodyUi_itemsChanged(items) {
5062
+ this._appMenuItems$.next([...items]);
5063
+ }
5064
+ _addSystemUi(systemUi) {
5065
+ // this._selectedSystem$.next(systemUi);
5066
+ console.log('_addSystemUi', systemUi);
5067
+ }
5068
+ _addToMainTabPanel(customSystemUi) {
5069
+ console.log('AddToMainTabPanel', customSystemUi);
5070
+ }
5071
+ _selectedSystemChanged(systemId, forceRelayout = false) {
5072
+ const x = this._customApplicationUi._systemsUi.find((c) => c.SystemData.Id === systemId);
5073
+ if (x) {
5074
+ this._selectedSystem$.next(x);
5075
+ }
5076
+ this._log.error('SelectedSystemChanged', systemId, forceRelayout);
5077
+ }
5078
+ _setStatusBarValues(statusbarValues) {
5079
+ console.log('SetStatusBarValues', statusbarValues);
5080
+ }
5081
+ _showReleaseNoteWindow(releaseNoteData) {
5082
+ console.log('ShowReleaseNoteWindow', releaseNoteData);
5083
+ }
5084
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ApplicationCtrlrService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5085
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ApplicationCtrlrService, providedIn: 'root' }); }
5086
+ }
5087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ApplicationCtrlrService, decorators: [{
5088
+ type: Injectable,
5089
+ args: [{
5090
+ providedIn: 'root'
5091
+ }]
5092
+ }] });
5093
+
4955
5094
  class PortalService {
4956
5095
  constructor() {
4957
5096
  this.offsetTop = 0;
@@ -4976,6 +5115,7 @@ class PortalService {
4976
5115
  this._location = inject(Location);
4977
5116
  this._localStorage = inject(LocalStorageService);
4978
5117
  this._document = inject(DOCUMENT);
5118
+ this._applicationCtrlrService = inject(ApplicationCtrlrService);
4979
5119
  this._deviceSizeSource = new BehaviorSubject(this._initalizeDeviceSize());
4980
5120
  this._loggedInSource = new BehaviorSubject(false);
4981
5121
  this.routeInitializedSource = new BehaviorSubject(false);
@@ -5128,7 +5268,7 @@ class PortalService {
5128
5268
  }));
5129
5269
  }
5130
5270
  renderUlvMainUi(navItem, vcr, injector, isReportPage = false) {
5131
- return this.createForReport(navItem).pipe(exhaustMap((ulvMainCtrlr) => this.getUlvMainUiComponent(ulvMainCtrlr.Adapter.Control, injector, isReportPage).pipe(tap((ulvManiUiComponent) => vcr.insert(ulvManiUiComponent.hostView)), map(() => ulvMainCtrlr))));
5271
+ return this.createForReport(navItem).pipe(exhaustMap$1((ulvMainCtrlr) => this.getUlvMainUiComponent(ulvMainCtrlr.Adapter.Control, injector, isReportPage).pipe(tap((ulvManiUiComponent) => vcr.insert(ulvManiUiComponent.hostView)), map(() => ulvMainCtrlr))));
5132
5272
  }
5133
5273
  getUlvMainUiComponent(customUlvMainUi, injector, isReportPage) {
5134
5274
  const customUiSetting = BarsaApi.Common.Util.TryGetValue(customUlvMainUi.Setting, 'CustomUi', null);
@@ -5244,8 +5384,8 @@ class PortalService {
5244
5384
  getComponentType(moduleName, componentName, selector) {
5245
5385
  return this.dcm.getComponentType(selector, componentName, moduleName);
5246
5386
  }
5247
- getComponent(moduleName, _modulePath, _componentName, selector, parentInjector) {
5248
- return this.dcm.getComponentBySelector(selector, moduleName, parentInjector);
5387
+ getComponent(moduleName, _modulePath, componentName, selector, parentInjector) {
5388
+ return this.dcm.getComponentBySelector(selector, componentName, moduleName, parentInjector);
5249
5389
  }
5250
5390
  loadJs$(path) {
5251
5391
  return from(new Promise((resolve, reject) => {
@@ -5802,7 +5942,7 @@ class PortalService {
5802
5942
  BarsaApi.Ul.ApplicationCtrlr.DefaultSystemId = null;
5803
5943
  }
5804
5944
  return new Promise((resolve, reject) => {
5805
- BarsaApi.Ul.ApplicationCtrlr._loadSystem(id, true, (data) => {
5945
+ this._applicationCtrlrService._loadSystem(id, (data) => {
5806
5946
  resolve(data);
5807
5947
  }, (err) => {
5808
5948
  reject(err);
@@ -5826,11 +5966,15 @@ class PortalService {
5826
5966
  }
5827
5967
  }
5828
5968
  _initAfterLoginFormData() {
5829
- this.rtlSource.next(BarsaApi.LoginFormData.IsRtl);
5969
+ this._setRtl(BarsaApi.LoginFormData.IsRtl);
5830
5970
  this._isAnonumousSource.next(BarsaApi.LoginFormData.IsAnonymous);
5831
5971
  this.setUserLoginStatus(BarsaApi.LoginFormData.IsUserLoggedIn);
5832
5972
  this._loggedInSource.next(this._loggedInSource.getValue() && BarsaApi.LoginFormData.IsAnonymous === false);
5833
5973
  }
5974
+ _setRtl(isRtl) {
5975
+ this.rtlSource.next(isRtl);
5976
+ this._document.documentElement.setAttribute('dir', isRtl ? 'rtl' : 'ltr');
5977
+ }
5834
5978
  _initVisibilityChange() {
5835
5979
  document.addEventListener('visibilitychange', () => {
5836
5980
  if (document.visibilityState === 'visible') {
@@ -11509,7 +11653,7 @@ class BaseViewItemPropsComponent extends BaseViewPropsComponent {
11509
11653
  .asObservable()
11510
11654
  .pipe(takeUntil$1(this._onDestroy$),
11511
11655
  // debounceTime(500),
11512
- exhaustMap$1((reason) => this._inlineEditSaveFormPanel(reason)), catchError$1((err) => throwError(() => err)))
11656
+ exhaustMap((reason) => this._inlineEditSaveFormPanel(reason)), catchError$1((err) => throwError(() => err)))
11513
11657
  .subscribe((res) => {
11514
11658
  if (res.saved) {
11515
11659
  this.mo.$IsChecked = false;
@@ -14698,6 +14842,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
14698
14842
  args: ['scroll']
14699
14843
  }] } });
14700
14844
 
14845
+ class TooltipDirective {
14846
+ constructor() {
14847
+ this.bnrcTooltip = input.required();
14848
+ this.hostRef = inject(ElementRef);
14849
+ this.renderer = inject(Renderer2);
14850
+ this.document = inject(DOCUMENT);
14851
+ this.tooltipEl = null;
14852
+ }
14853
+ ngOnDestroy() {
14854
+ this.removeTooltip();
14855
+ }
14856
+ onMouseEnter() {
14857
+ const { dir } = this.document.body;
14858
+ const isRtl = dir === 'rtl';
14859
+ this.tooltipEl = this.renderer.createElement('div');
14860
+ this.renderer.appendChild(document.body, this.tooltipEl);
14861
+ this.renderer.addClass(this.tooltipEl, 'bnrc-tooltip');
14862
+ this.tooltipEl.textContent = this.bnrcTooltip();
14863
+ const hostPosistion = this.hostRef.nativeElement.getBoundingClientRect();
14864
+ const tooltipPosistion = this.tooltipEl.getBoundingClientRect();
14865
+ const top = hostPosistion.top + hostPosistion.height / 2 - 12;
14866
+ let left = 0;
14867
+ if (isRtl) {
14868
+ left = hostPosistion.left - tooltipPosistion.width - 12;
14869
+ }
14870
+ else {
14871
+ left = hostPosistion.left + hostPosistion.width + 12;
14872
+ }
14873
+ this.renderer.setStyle(this.tooltipEl, 'top', `${top}px`);
14874
+ this.renderer.setStyle(this.tooltipEl, 'left', `${left}px`);
14875
+ }
14876
+ onMouseLeave() {
14877
+ this.removeTooltip();
14878
+ }
14879
+ removeTooltip() {
14880
+ if (this.tooltipEl) {
14881
+ this.renderer.removeChild(document.body, this.tooltipEl);
14882
+ this.tooltipEl = null;
14883
+ }
14884
+ }
14885
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
14886
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.6", type: TooltipDirective, isStandalone: false, selector: "[bnrcTooltip]", inputs: { bnrcTooltip: { classPropertyName: "bnrcTooltip", publicName: "bnrcTooltip", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 }); }
14887
+ }
14888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: TooltipDirective, decorators: [{
14889
+ type: Directive,
14890
+ args: [{
14891
+ selector: '[bnrcTooltip]',
14892
+ standalone: false
14893
+ }]
14894
+ }], propDecorators: { onMouseEnter: [{
14895
+ type: HostListener,
14896
+ args: ['mouseenter']
14897
+ }], onMouseLeave: [{
14898
+ type: HostListener,
14899
+ args: ['mouseleave']
14900
+ }] } });
14901
+
14902
+ class SimplebarDirective extends BaseDirective {
14903
+ async ngAfterViewInit() {
14904
+ if (typeof window === 'undefined') {
14905
+ return;
14906
+ } // برای SSR
14907
+ // CSS را فقط یکبار ایمپورت کن
14908
+ if (!window._simplebarCssLoaded) {
14909
+ const linkEl = this._renderer2.createElement('link');
14910
+ linkEl.rel = 'stylesheet';
14911
+ linkEl.href = 'assets/simplebar/simplebar.min.css'; // مسیر فایل CSS
14912
+ this._renderer2.appendChild(document.head, linkEl);
14913
+ window._simplebarCssLoaded = true;
14914
+ }
14915
+ // JS را lazy-load کن
14916
+ const SimpleBar = (await import('simplebar')).default;
14917
+ new SimpleBar(this._el.nativeElement, { autoHide: true });
14918
+ }
14919
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SimplebarDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
14920
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: SimplebarDirective, isStandalone: false, selector: "[simplebar]", usesInheritance: true, ngImport: i0 }); }
14921
+ }
14922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SimplebarDirective, decorators: [{
14923
+ type: Directive,
14924
+ args: [{
14925
+ selector: '[simplebar]',
14926
+ standalone: false
14927
+ }]
14928
+ }] });
14929
+
14701
14930
  class PortalDynamicPageResolver {
14702
14931
  /** Inserted by Angular inject() migration for backwards compatibility */
14703
14932
  constructor() {
@@ -15843,7 +16072,9 @@ const directives = [
15843
16072
  ResizeObserverDirective,
15844
16073
  ColumnValueDirective,
15845
16074
  ScrollToSelectedDirective,
15846
- ScrollPersistDirective
16075
+ ScrollPersistDirective,
16076
+ TooltipDirective,
16077
+ SimplebarDirective
15847
16078
  ];
15848
16079
  const services = [
15849
16080
  PortalService,
@@ -15870,7 +16101,8 @@ const services = [
15870
16101
  IndexedDbService,
15871
16102
  BbbTranslatePipe,
15872
16103
  BarsaStorageService,
15873
- ServiceWorkerCommuncationService
16104
+ ServiceWorkerCommuncationService,
16105
+ ApplicationCtrlrService
15874
16106
  ];
15875
16107
  const pipes = [
15876
16108
  NumeralPipe,
@@ -15928,9 +16160,10 @@ const pipes = [
15928
16160
  CardMediaSizePipe,
15929
16161
  LabelStarTrimPipe,
15930
16162
  SplitPipe,
15931
- DynamicDarkColorPipe
16163
+ DynamicDarkColorPipe,
16164
+ ChunkArrayPipe
15932
16165
  ];
15933
- const functionL1 = function () {
16166
+ const functionL1 = async function () {
15934
16167
  if (BarsaApi.LoginFormData.Culture === 'fa-IR') {
15935
16168
  return Promise.resolve();
15936
16169
  }
@@ -15945,7 +16178,7 @@ const functionL1 = function () {
15945
16178
  }
15946
16179
  });
15947
16180
  };
15948
- const functionL2 = function (portalService, titleService) {
16181
+ const functionL2 = function (portalService, applicationCtrlrService, titleService) {
15949
16182
  portalService.loadUserPortalSetting();
15950
16183
  portalService.loadPortalDataSync();
15951
16184
  if (portalService.portalData?.Title) {
@@ -15955,7 +16188,9 @@ const functionL2 = function (portalService, titleService) {
15955
16188
  return portalService.loadSystem(BarsaApi.LoginFormData.PortalSystemId); // login form need just portal system
15956
16189
  }
15957
16190
  else {
15958
- return portalService.loadSystem(); // load all systems if user is logged in
16191
+ return new Promise((resolve, _reject) => {
16192
+ applicationCtrlrService.initialize(resolve);
16193
+ }); // load all systems if user is logged in
15959
16194
  }
15960
16195
  };
15961
16196
  class BarsaNovinRayCoreModule extends BaseModule {
@@ -15973,11 +16208,14 @@ class BarsaNovinRayCoreModule extends BaseModule {
15973
16208
  ngModule: BarsaNovinRayCoreModule,
15974
16209
  providers: [
15975
16210
  provideAppInitializer(() => {
15976
- const initializerFn = ((portalService, titleService, promptUpdateService, barsaStorageService, swCommunication, _, router) => () => {
16211
+ const initializerFn = ((portalService, applicationCtrlrService, titleService, promptUpdateService, barsaStorageService, swCommunication, _, router) => () => {
15977
16212
  const inLocalMode = isInLocalMode();
15978
16213
  return portalService
15979
16214
  .loadServerStartupData()
15980
- .then(() => Promise.all([functionL1(), functionL2(portalService, titleService)]).finally(() => {
16215
+ .then(() => Promise.all([
16216
+ functionL1(),
16217
+ functionL2(portalService, applicationCtrlrService, titleService)
16218
+ ]).finally(() => {
15981
16219
  promptUpdateService.checkForUpdate();
15982
16220
  barsaStorageService.init();
15983
16221
  swCommunication.init();
@@ -15992,7 +16230,7 @@ class BarsaNovinRayCoreModule extends BaseModule {
15992
16230
  }
15993
16231
  return Promise.resolve();
15994
16232
  });
15995
- })(inject(PortalService), inject(Title), inject(PromptUpdateService), inject(BarsaStorageService), inject(ServiceWorkerCommuncationService), inject(NetworkStatusService), inject(Router));
16233
+ })(inject(PortalService), inject(ApplicationCtrlrService), inject(Title), inject(PromptUpdateService), inject(BarsaStorageService), inject(ServiceWorkerCommuncationService), inject(NetworkStatusService), inject(Router));
15996
16234
  return initializerFn();
15997
16235
  }),
15998
16236
  {
@@ -16091,7 +16329,8 @@ class BarsaNovinRayCoreModule extends BaseModule {
16091
16329
  CardMediaSizePipe,
16092
16330
  LabelStarTrimPipe,
16093
16331
  SplitPipe,
16094
- DynamicDarkColorPipe, PlaceHolderDirective,
16332
+ DynamicDarkColorPipe,
16333
+ ChunkArrayPipe, PlaceHolderDirective,
16095
16334
  NumbersOnlyInputDirective,
16096
16335
  RenderUlvViewerDirective,
16097
16336
  RenderUlvPaginDirective,
@@ -16137,7 +16376,9 @@ class BarsaNovinRayCoreModule extends BaseModule {
16137
16376
  ResizeObserverDirective,
16138
16377
  ColumnValueDirective,
16139
16378
  ScrollToSelectedDirective,
16140
- ScrollPersistDirective], imports: [CommonModule,
16379
+ ScrollPersistDirective,
16380
+ TooltipDirective,
16381
+ SimplebarDirective], imports: [CommonModule,
16141
16382
  BarsaNovinRayCoreRoutingModule,
16142
16383
  BarsaSapUiFormPageModule,
16143
16384
  ResizableModule,
@@ -16219,7 +16460,8 @@ class BarsaNovinRayCoreModule extends BaseModule {
16219
16460
  CardMediaSizePipe,
16220
16461
  LabelStarTrimPipe,
16221
16462
  SplitPipe,
16222
- DynamicDarkColorPipe, PlaceHolderDirective,
16463
+ DynamicDarkColorPipe,
16464
+ ChunkArrayPipe, PlaceHolderDirective,
16223
16465
  NumbersOnlyInputDirective,
16224
16466
  RenderUlvViewerDirective,
16225
16467
  RenderUlvPaginDirective,
@@ -16265,7 +16507,9 @@ class BarsaNovinRayCoreModule extends BaseModule {
16265
16507
  ResizeObserverDirective,
16266
16508
  ColumnValueDirective,
16267
16509
  ScrollToSelectedDirective,
16268
- ScrollPersistDirective] }); }
16510
+ ScrollPersistDirective,
16511
+ TooltipDirective,
16512
+ SimplebarDirective] }); }
16269
16513
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaNovinRayCoreModule, providers: [provideHttpClient(withInterceptorsFromDi())], imports: [CommonModule,
16270
16514
  BarsaNovinRayCoreRoutingModule,
16271
16515
  BarsaSapUiFormPageModule,
@@ -16295,5 +16539,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
16295
16539
  * Generated bundle index. Do not edit.
16296
16540
  */
16297
16541
 
16298
- export { APP_VERSION, AbsoluteDivBodyDirective, AffixRespondEvents, AllFilesMimeType, AnchorScrollDirective, ApiService, ApplicationBaseComponent, AttrRtlDirective, AudioMimeType, AudioRecordingService, AuthGuard, BarsaApi, BarsaDialogService, BarsaIconDictPipe, BarsaNovinRayCoreModule, BarsaReadonlyDirective, BarsaSapUiFormPageModule, BarsaStorageService, BaseColumnPropsComponent, BaseComponent, BaseController, BaseDirective, BaseDynamicComponent, BaseFormToolbaritemPropsComponent, BaseItemContentPropsComponent, BaseModule, BaseReportModel, BaseUlvSettingComponent, BaseViewContentPropsComponent, BaseViewItemPropsComponent, BaseViewPropsComponent, BbbTranslatePipe, BodyClickDirective, BoolControlInfoModel, BreadcrumbService, ButtonLoadingComponent, CalculateControlInfoModel, CanUploadFilePipe, CardMediaSizePipe, ChangeLayoutInfoCustomUi, CodeEditorControlInfoModel, ColSetting, ColumnCustomComponentPipe, ColumnCustomUiPipe, ColumnIconPipe, ColumnResizerDirective, ColumnService, ColumnValueDirective, ColumnValueOfParametersPipe, ColumnValuePipe, ComboRowImagePipe, CommandControlInfoModel, ContainerComponent, ContainerService, ContextMenuPipe, ControlUiPipe, ConvertToStylePipe, CopyDirective, CountDownDirective, CustomCommand, CustomInjector, CustomRouteReuseStategy, DIALOG_SERVICE, DateHijriService, DateMiladiService, DateRanges, DateService, DateShamsiService, DateTimeControlInfoModel, DeviceWidth, DialogParams, DynamicCommandDirective, DynamicComponentService, DynamicDarkColorPipe, DynamicFormComponent, DynamicFormToolbaritemComponent, DynamicItemComponent, DynamicLayoutComponent, DynamicRootVariableDirective, DynamicStyleDirective, DynamicTileGroupComponent, EllapsisTextDirective, EllipsifyDirective, EmptyPageComponent, EmptyPageWithRouterAndRouterOutletComponent, EnumControlInfoModel, ExecuteDynamicCommand, ExecuteWorkflowChoiceDef, FORM_DIALOG_COMPONENT, FieldBaseComponent, FieldDirective, FieldInfoTypeEnum, FieldUiComponent, FileControlInfoModel, FileInfoCountPipe, FilePictureInfoModel, FilesValidationHelper, FillAllLayoutControls, FillEmptySpaceDirective, FilterColumnsByDetailsPipe, FilterInlineActionListPipe, FilterPipe, FilterStringPipe, FilterTabPipe, FilterToolbarControlPipe, FilterWorkflowInMobilePipe, FindColumnByDbNamePipe, FindGroup, FindLayoutSettingFromLayout94, FindPreviewColumnPipe, FindToolbarItem, FioriIconPipe, FormBaseComponent, FormCloseDirective, FormComponent, FormFieldReportPageComponent, FormNewComponent, FormPageBaseComponent, FormPageComponent, FormPanelService, FormPropsBaseComponent, FormService, FormToolbarBaseComponent, GaugeControlInfoModel, GeneralControlInfoModel, GetAllColumnsSorted, GetAllHorizontalFromLayout94, GetDefaultMoObjectInfo, GetImgTags, GetVisibleValue, GridSetting, GroupBy, GroupByPipe, GroupByService, HeaderFacetValuePipe, HideAcceptCancelButtonsPipe, HideColumnsInmobilePipe, HistoryControlInfoModel, HorizontalLayoutService, HorizontalResponsiveDirective, IconControlInfoModel, ImageLazyDirective, ImageMimeType, ImagetoPrint, InMemoryStorageService, IndexedDbService, InputNumber, IntersectionObserverDirective, IntersectionStatus, IsDarkMode, IsExpandedNodePipe, IsImagePipe, ItemsRendererDirective, LabelStarTrimPipe, LabelmandatoryDirective, LayoutItemBaseComponent, LayoutMainContentService, LayoutPanelBaseComponent, LayoutService, LinearListControlInfoModel, LinearListHelper, ListCountPipe, ListRelationModel, LoadExternalFilesDirective, LocalStorageService, LogService, LoginSettingsResolver, MeasureFormTitleWidthDirective, MergeFieldsToColumnsPipe, MetaobjectDataModel, MetaobjectRelationModel, MoForReportModel, MoInfoUlvMoListPipe, MoInfoUlvPagingPipe, MoReportValueConcatPipe, MoReportValuePipe, MoValuePipe, MobileDirective, ModalRootComponent, MultipleGroupByPipe, NOTIFICATAION_POPUP_SERVER, NOTIFICATION_WEBWORKER_FACTORY, NetworkStatusService, NotFoundComponent, NotificationService, NowraptextDirective, NumberBaseComponent, NumberControlInfoModel, NumbersOnlyInputDirective, NumeralPipe, OverflowTextDirective, PageBaseComponent, PageWithFormHandlerBaseComponent, PdfMimeType, PictureFieldSourcePipe, PictureFileControlInfoModel, PlaceHolderDirective, PortalDynamicPageResolver, PortalFormPageResolver, PortalPageComponent, PortalPageResolver, PortalPageSidebarComponent, PortalReportPageResolver, PortalService, PreventDefaulEvent, PreventDefaultDirective, PrintFilesDirective, PrintImage, PromptUpdateService, RabetehAkseTakiListiControlInfoModel, RedirectHomeGuard, RedirectReportNavigatorCommandComponent, RelatedReportControlInfoModel, RelationListControlInfoModel, RemoveNewlinePipe, RenderUlvDirective, RenderUlvPaginDirective, RenderUlvViewerDirective, ReplacePipe, ReportBaseComponent, ReportBaseInfo, ReportCalendarModel, ReportContainerComponent, ReportExtraInfo, ReportField, ReportFormModel, ReportItemBaseComponent, ReportListModel, ReportModel, ReportTreeModel, ReportViewBaseComponent, ReportViewColumn, ResizableComponent, ResizableDirective, ResizableModule, ResizeObserverDirective, ReversePipe, RichStringControlInfoModel, RootPageComponent, RootPortalComponent, RouteFormChangeDirective, RoutingService, RowDataOption, RowNumberPipe, SanitizeTextPipe, SaveImageDirective, SaveImageToFile, SaveScrollPositionService, ScrollPersistDirective, ScrollToSelectedDirective, SelectionMode, SeperatorFixPipe, ServiceWorkerCommuncationService, ServiceWorkerNotificationService, ShellbarHeightService, ShortcutHandlerDirective, ShortcutRegisterDirective, SingleRelationControlInfoModel, SortDirection, SortPipe, SortSetting, SplideSliderDirective, SplitPipe, StopPropagationDirective, StringControlInfoModel, StringToNumberPipe, SubformControlInfoModel, SystemBaseComponent, TOAST_SERVICE, TableHeaderWidthMode, TableResizerDirective, TabpageService, ThImageOrIconePipe, TileGroupBreadcrumResolver, TilePropsComponent, TlbButtonsPipe, ToolbarSettingsPipe, TotalSummaryPipe, UiService, UlvCommandDirective, UlvMainService, UnlimitSessionComponent, UntilInViewDirective, UploadService, VideoMimeType, VideoRecordingService, ViewBase, VisibleValuePipe, WebOtpDirective, WordMimeType, WorfkflowwChoiceCommandDirective, addCssVariableToRoot, availablePrefixes, calcContextMenuWidth, calculateColumnContent, calculateColumnWidth, calculateColumnWidthFitToContainer, calculateFreeColumnSize, calculateMoDataListContentWidthByColumnName, cancelRequestAnimationFrame, createFormPanelMetaConditions, createGridEditorFormPanel, easeInOutCubic, elementInViewport2, enumValueToStringSize, executeUlvCommandHandler, flattenTree, forbiddenValidator, formRoutes, formatBytes, fromIntersectionObserver, genrateInlineMoId, getAllItemsPerChildren, getColumnValueOfMoDataList, getComponentDefined, getControlList, getControlSizeMode, getDateService, getDeviceIsDesktop, getDeviceIsMobile, getDeviceIsPhone, getDeviceIsTablet, getFieldValue, getFocusableTagNames, getFormSettings, getGridSettings, getHeaderValue, getIcon, getImagePath, getLabelWidth, getLayout94ObjectInfo, getLayoutControl, getNewMoGridEditor, getParentHeight, getRequestAnimationFrame, getResetGridSettings, getTargetRect, getUniqueId, getValidExtension, isFF, isFirefox, isFunction, isImage, isInLocalMode, isSafari, isTargetWindow, measureText, measureText2, measureTextBy, mobile_regex, nullOrUndefinedString, number_only, requestAnimationFramePolyfill, setColumnWidthByMaxMoContentWidth, setOneDepthLevel, setTableThWidth, shallowEqual, stopPropagation, throwIfAlreadyLoaded, toNumber, validateAllFormFields };
16542
+ export { APP_VERSION, AbsoluteDivBodyDirective, AffixRespondEvents, AllFilesMimeType, AnchorScrollDirective, ApiService, ApplicationBaseComponent, ApplicationCtrlrService, AttrRtlDirective, AudioMimeType, AudioRecordingService, AuthGuard, BarsaApi, BarsaDialogService, BarsaIconDictPipe, BarsaNovinRayCoreModule, BarsaReadonlyDirective, BarsaSapUiFormPageModule, BarsaStorageService, BaseColumnPropsComponent, BaseComponent, BaseController, BaseDirective, BaseDynamicComponent, BaseFormToolbaritemPropsComponent, BaseItemContentPropsComponent, BaseModule, BaseReportModel, BaseUlvSettingComponent, BaseViewContentPropsComponent, BaseViewItemPropsComponent, BaseViewPropsComponent, BbbTranslatePipe, BodyClickDirective, BoolControlInfoModel, BreadcrumbService, ButtonLoadingComponent, CalculateControlInfoModel, CanUploadFilePipe, CardMediaSizePipe, ChangeLayoutInfoCustomUi, ChunkArrayPipe, CodeEditorControlInfoModel, ColSetting, ColumnCustomComponentPipe, ColumnCustomUiPipe, ColumnIconPipe, ColumnResizerDirective, ColumnService, ColumnValueDirective, ColumnValueOfParametersPipe, ColumnValuePipe, ComboRowImagePipe, CommandControlInfoModel, ContainerComponent, ContainerService, ContextMenuPipe, ControlUiPipe, ConvertToStylePipe, CopyDirective, CountDownDirective, CustomCommand, CustomInjector, CustomRouteReuseStategy, DIALOG_SERVICE, DateHijriService, DateMiladiService, DateRanges, DateService, DateShamsiService, DateTimeControlInfoModel, DeviceWidth, DialogParams, DynamicCommandDirective, DynamicComponentService, DynamicDarkColorPipe, DynamicFormComponent, DynamicFormToolbaritemComponent, DynamicItemComponent, DynamicLayoutComponent, DynamicRootVariableDirective, DynamicStyleDirective, DynamicTileGroupComponent, EllapsisTextDirective, EllipsifyDirective, EmptyPageComponent, EmptyPageWithRouterAndRouterOutletComponent, EnumControlInfoModel, ExecuteDynamicCommand, ExecuteWorkflowChoiceDef, FORM_DIALOG_COMPONENT, FieldBaseComponent, FieldDirective, FieldInfoTypeEnum, FieldUiComponent, FileControlInfoModel, FileInfoCountPipe, FilePictureInfoModel, FilesValidationHelper, FillAllLayoutControls, FillEmptySpaceDirective, FilterColumnsByDetailsPipe, FilterInlineActionListPipe, FilterPipe, FilterStringPipe, FilterTabPipe, FilterToolbarControlPipe, FilterWorkflowInMobilePipe, FindColumnByDbNamePipe, FindGroup, FindLayoutSettingFromLayout94, FindPreviewColumnPipe, FindToolbarItem, FioriIconPipe, FormBaseComponent, FormCloseDirective, FormComponent, FormFieldReportPageComponent, FormNewComponent, FormPageBaseComponent, FormPageComponent, FormPanelService, FormPropsBaseComponent, FormService, FormToolbarBaseComponent, GaugeControlInfoModel, GeneralControlInfoModel, GetAllColumnsSorted, GetAllHorizontalFromLayout94, GetDefaultMoObjectInfo, GetImgTags, GetVisibleValue, GridSetting, GroupBy, GroupByPipe, GroupByService, HeaderFacetValuePipe, HideAcceptCancelButtonsPipe, HideColumnsInmobilePipe, HistoryControlInfoModel, HorizontalLayoutService, HorizontalResponsiveDirective, IconControlInfoModel, ImageLazyDirective, ImageMimeType, ImagetoPrint, InMemoryStorageService, IndexedDbService, InputNumber, IntersectionObserverDirective, IntersectionStatus, IsDarkMode, IsExpandedNodePipe, IsImagePipe, ItemsRendererDirective, LabelStarTrimPipe, LabelmandatoryDirective, LayoutItemBaseComponent, LayoutMainContentService, LayoutPanelBaseComponent, LayoutService, LinearListControlInfoModel, LinearListHelper, ListCountPipe, ListRelationModel, LoadExternalFilesDirective, LocalStorageService, LogService, LoginSettingsResolver, MeasureFormTitleWidthDirective, MergeFieldsToColumnsPipe, MetaobjectDataModel, MetaobjectRelationModel, MoForReportModel, MoInfoUlvMoListPipe, MoInfoUlvPagingPipe, MoReportValueConcatPipe, MoReportValuePipe, MoValuePipe, MobileDirective, ModalRootComponent, MultipleGroupByPipe, NOTIFICATAION_POPUP_SERVER, NOTIFICATION_WEBWORKER_FACTORY, NetworkStatusService, NotFoundComponent, NotificationService, NowraptextDirective, NumberBaseComponent, NumberControlInfoModel, NumbersOnlyInputDirective, NumeralPipe, OverflowTextDirective, PageBaseComponent, PageWithFormHandlerBaseComponent, PdfMimeType, PictureFieldSourcePipe, PictureFileControlInfoModel, PlaceHolderDirective, PortalDynamicPageResolver, PortalFormPageResolver, PortalPageComponent, PortalPageResolver, PortalPageSidebarComponent, PortalReportPageResolver, PortalService, PreventDefaulEvent, PreventDefaultDirective, PrintFilesDirective, PrintImage, PromptUpdateService, RabetehAkseTakiListiControlInfoModel, RedirectHomeGuard, RedirectReportNavigatorCommandComponent, RelatedReportControlInfoModel, RelationListControlInfoModel, RemoveNewlinePipe, RenderUlvDirective, RenderUlvPaginDirective, RenderUlvViewerDirective, ReplacePipe, ReportBaseComponent, ReportBaseInfo, ReportCalendarModel, ReportContainerComponent, ReportExtraInfo, ReportField, ReportFormModel, ReportItemBaseComponent, ReportListModel, ReportModel, ReportTreeModel, ReportViewBaseComponent, ReportViewColumn, ResizableComponent, ResizableDirective, ResizableModule, ResizeObserverDirective, ReversePipe, RichStringControlInfoModel, RootPageComponent, RootPortalComponent, RouteFormChangeDirective, RoutingService, RowDataOption, RowNumberPipe, SanitizeTextPipe, SaveImageDirective, SaveImageToFile, SaveScrollPositionService, ScrollPersistDirective, ScrollToSelectedDirective, SelectionMode, SeperatorFixPipe, ServiceWorkerCommuncationService, ServiceWorkerNotificationService, ShellbarHeightService, ShortcutHandlerDirective, ShortcutRegisterDirective, SimplebarDirective, SingleRelationControlInfoModel, SortDirection, SortPipe, SortSetting, SplideSliderDirective, SplitPipe, StopPropagationDirective, StringControlInfoModel, StringToNumberPipe, SubformControlInfoModel, SystemBaseComponent, TOAST_SERVICE, TableHeaderWidthMode, TableResizerDirective, TabpageService, ThImageOrIconePipe, TileGroupBreadcrumResolver, TilePropsComponent, TlbButtonsPipe, ToolbarSettingsPipe, TooltipDirective, TotalSummaryPipe, UiService, UlvCommandDirective, UlvMainService, UnlimitSessionComponent, UntilInViewDirective, UploadService, VideoMimeType, VideoRecordingService, ViewBase, VisibleValuePipe, WebOtpDirective, WordMimeType, WorfkflowwChoiceCommandDirective, addCssVariableToRoot, availablePrefixes, calcContextMenuWidth, calculateColumnContent, calculateColumnWidth, calculateColumnWidthFitToContainer, calculateFreeColumnSize, calculateMoDataListContentWidthByColumnName, cancelRequestAnimationFrame, createFormPanelMetaConditions, createGridEditorFormPanel, easeInOutCubic, elementInViewport2, enumValueToStringSize, executeUlvCommandHandler, flattenTree, forbiddenValidator, formRoutes, formatBytes, fromEntries, fromIntersectionObserver, genrateInlineMoId, getAllItemsPerChildren, getColumnValueOfMoDataList, getComponentDefined, getControlList, getControlSizeMode, getDateService, getDeviceIsDesktop, getDeviceIsMobile, getDeviceIsPhone, getDeviceIsTablet, getFieldValue, getFocusableTagNames, getFormSettings, getGridSettings, getHeaderValue, getIcon, getImagePath, getLabelWidth, getLayout94ObjectInfo, getLayoutControl, getNewMoGridEditor, getParentHeight, getRequestAnimationFrame, getResetGridSettings, getTargetRect, getUniqueId, getValidExtension, isFF, isFirefox, isFunction, isImage, isInLocalMode, isSafari, isTargetWindow, measureText, measureText2, measureTextBy, mobile_regex, nullOrUndefinedString, number_only, requestAnimationFramePolyfill, setColumnWidthByMaxMoContentWidth, setOneDepthLevel, setTableThWidth, shallowEqual, stopPropagation, throwIfAlreadyLoaded, toNumber, validateAllFormFields };
16299
16543
  //# sourceMappingURL=barsa-novin-ray-core.mjs.map