barsa-sap-ui 1.0.341 → 1.0.342

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.
@@ -4,7 +4,7 @@ import * as i2 from 'barsa-novin-ray-core';
4
4
  import { BaseComponent, ReportViewBaseComponent, getUniqueId, BarsaApi, LayoutItemBaseComponent, getDeviceIsMobile, LayoutService, BaseUlvSettingComponent, FormComponent, createFormPanelMetaConditions, ReportBaseComponent, GetAllColumnsSorted, measureText, getParentHeight, getControlSizeMode, getGridSettings, FieldBaseComponent, DateService, getDateService as getDateService$1, DateMiladiService, DateHijriService, DateShamsiService, BaseDirective, EllipsifyDirective, createGridEditorFormPanel, FormPanelService, BaseViewItemPropsComponent, isImage, getIcon, LayoutPanelBaseComponent, BaseViewContentPropsComponent, enumValueToStringSize, PreventDefaulEvent, BaseColumnPropsComponent, ColumnService, DateRanges, LogService, UlvMainService, isFunction, FilesValidationHelper, getValidExtension, getImagePath, UploadService, LinearListHelper, FormToolbarBaseComponent, isFirefox, FormBaseComponent, PageWithFormHandlerBaseComponent, getHeaderValue, getFieldValue, ContainerComponent, FORM_DIALOG_COMPONENT, ContainerService, FormPropsBaseComponent, NumberBaseComponent, ImageMimeType, BaseFormToolbaritemPropsComponent, executeUlvCommandHandler, getDeviceIsPhone, getDeviceIsTablet, PortalService, NOTIFICATAION_POPUP_SERVER, TOAST_SERVICE, BaseModule, BarsaNovinRayCoreModule, DIALOG_SERVICE } from 'barsa-novin-ray-core';
5
5
  import moment from 'moment';
6
6
  import jmoment from 'moment-jalaali';
7
- import { merge, of, BehaviorSubject, Subject, combineLatest, takeUntil as takeUntil$1, fromEvent, filter as filter$1, tap as tap$1 } from 'rxjs';
7
+ import { merge, of, BehaviorSubject, Subject, combineLatest, takeUntil as takeUntil$1, fromEvent, filter as filter$1, withLatestFrom as withLatestFrom$1 } from 'rxjs';
8
8
  import { tap, filter, map, debounceTime, distinctUntilChanged, withLatestFrom, takeUntil, exhaustMap, finalize, switchMap, delay, concatMap, catchError } from 'rxjs/operators';
9
9
  import * as i1$1 from '@fundamental-ngx/core';
10
10
  import { TableComponent, ToolbarComponent, RadioButtonComponent, DynamicPageComponent, FileUploaderComponent, MultiInputComponent, TabPanelComponent, WizardComponent, WizardStepComponent, ComboboxComponent, InlineHelpDirective, ContentDensityMode, GlobalContentDensityService, ThemesService, NotificationRef, RtlService, MessageToastService, FundamentalNgxCoreModule, FacetModule, WizardModule, PipeModule, DialogService, ContentDensityModule } from '@fundamental-ngx/core';
@@ -11558,15 +11558,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
11558
11558
  }] } });
11559
11559
 
11560
11560
  class ExecutePushNotificationCommandComponent extends BaseComponent {
11561
- constructor(_activatedRoute, _portalService, _localStorage) {
11561
+ constructor(_portalService, _localStorage) {
11562
11562
  super();
11563
- this._activatedRoute = _activatedRoute;
11564
11563
  this._portalService = _portalService;
11565
11564
  this._localStorage = _localStorage;
11566
11565
  }
11567
11566
  ngOnInit() {
11568
11567
  super.ngOnInit();
11569
- this._portalService.userLoggedIn$.pipe(filter$1((userLoggedin) => userLoggedin)).subscribe((_) => {
11568
+ this._portalService.pushAction$
11569
+ .pipe(withLatestFrom$1(this._portalService.userLoggedIn$), filter$1(([action, userLoggedin]) => userLoggedin))
11570
+ .subscribe((_) => {
11570
11571
  const pushActionStr = this._localStorage.getItem('pushAction');
11571
11572
  if (pushActionStr) {
11572
11573
  this._localStorage.remove('pushAction');
@@ -11574,24 +11575,14 @@ class ExecutePushNotificationCommandComponent extends BaseComponent {
11574
11575
  this._portalService.ExecuteNotificationAction(pushAction.notificationTag, pushAction.action);
11575
11576
  }
11576
11577
  });
11577
- this._activatedRoute.queryParams.pipe(tap$1((params) => this._handle(params))).subscribe();
11578
- }
11579
- _handle(params) {
11580
- const { notificationTag, action } = params;
11581
- if (notificationTag && action) {
11582
- this._localStorage.setItem('pushAction', JSON.stringify({
11583
- notificationTag,
11584
- action
11585
- }));
11586
- }
11587
11578
  }
11588
11579
  }
11589
- ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i2$4.ActivatedRoute }, { token: i2.PortalService }, { token: i2.LocalStorageService }], target: i0.ɵɵFactoryTarget.Component });
11580
+ ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i2.PortalService }, { token: i2.LocalStorageService }], target: i0.ɵɵFactoryTarget.Component });
11590
11581
  ExecutePushNotificationCommandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ExecutePushNotificationCommandComponent, selector: "bsu-execute-push-notification-command", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
11591
11582
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, decorators: [{
11592
11583
  type: Component,
11593
11584
  args: [{ selector: 'bsu-execute-push-notification-command', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
11594
- }], ctorParameters: function () { return [{ type: i2$4.ActivatedRoute }, { type: i2.PortalService }, { type: i2.LocalStorageService }]; } });
11585
+ }], ctorParameters: function () { return [{ type: i2.PortalService }, { type: i2.LocalStorageService }]; } });
11595
11586
 
11596
11587
  class BarsaCartableTemplateComponent extends RichTextStaticComponent {
11597
11588
  ngOnInit() {