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.
- package/esm2020/lib/execute-push-notification-command/execute-push-notification-command.component.mjs +9 -19
- package/fesm2015/barsa-sap-ui.mjs +7 -16
- package/fesm2015/barsa-sap-ui.mjs.map +1 -1
- package/fesm2020/barsa-sap-ui.mjs +7 -16
- package/fesm2020/barsa-sap-ui.mjs.map +1 -1
- package/lib/execute-push-notification-command/execute-push-notification-command.component.d.ts +1 -4
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
-
import { filter,
|
|
3
|
+
import { filter, withLatestFrom } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "
|
|
6
|
-
import * as i2 from "barsa-novin-ray-core";
|
|
5
|
+
import * as i1 from "barsa-novin-ray-core";
|
|
7
6
|
export class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
8
|
-
constructor(
|
|
7
|
+
constructor(_portalService, _localStorage) {
|
|
9
8
|
super();
|
|
10
|
-
this._activatedRoute = _activatedRoute;
|
|
11
9
|
this._portalService = _portalService;
|
|
12
10
|
this._localStorage = _localStorage;
|
|
13
11
|
}
|
|
14
12
|
ngOnInit() {
|
|
15
13
|
super.ngOnInit();
|
|
16
|
-
this._portalService.
|
|
14
|
+
this._portalService.pushAction$
|
|
15
|
+
.pipe(withLatestFrom(this._portalService.userLoggedIn$), filter(([action, userLoggedin]) => userLoggedin))
|
|
16
|
+
.subscribe((_) => {
|
|
17
17
|
const pushActionStr = this._localStorage.getItem('pushAction');
|
|
18
18
|
if (pushActionStr) {
|
|
19
19
|
this._localStorage.remove('pushAction');
|
|
@@ -21,22 +21,12 @@ export class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
|
21
21
|
this._portalService.ExecuteNotificationAction(pushAction.notificationTag, pushAction.action);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
this._activatedRoute.queryParams.pipe(tap((params) => this._handle(params))).subscribe();
|
|
25
|
-
}
|
|
26
|
-
_handle(params) {
|
|
27
|
-
const { notificationTag, action } = params;
|
|
28
|
-
if (notificationTag && action) {
|
|
29
|
-
this._localStorage.setItem('pushAction', JSON.stringify({
|
|
30
|
-
notificationTag,
|
|
31
|
-
action
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
24
|
}
|
|
35
25
|
}
|
|
36
|
-
ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i1.
|
|
26
|
+
ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i1.PortalService }, { token: i1.LocalStorageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
27
|
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 });
|
|
38
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, decorators: [{
|
|
39
29
|
type: Component,
|
|
40
30
|
args: [{ selector: 'bsu-execute-push-notification-command', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
}], ctorParameters: function () { return [{ type: i1.PortalService }, { type: i1.LocalStorageService }]; } });
|
|
32
|
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ICB0aGlzLl9wb3J0YWxTZXJ2aWNlLkV4ZWN1dGVOb3RpZmljYXRpb25BY3Rpb24ocHVzaEFjdGlvbi5ub3RpZmljYXRpb25UYWcsIHB1c2hBY3Rpb24uYWN0aW9uKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -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,
|
|
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';
|
|
@@ -11574,15 +11574,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
11574
11574
|
}] } });
|
|
11575
11575
|
|
|
11576
11576
|
class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
11577
|
-
constructor(
|
|
11577
|
+
constructor(_portalService, _localStorage) {
|
|
11578
11578
|
super();
|
|
11579
|
-
this._activatedRoute = _activatedRoute;
|
|
11580
11579
|
this._portalService = _portalService;
|
|
11581
11580
|
this._localStorage = _localStorage;
|
|
11582
11581
|
}
|
|
11583
11582
|
ngOnInit() {
|
|
11584
11583
|
super.ngOnInit();
|
|
11585
|
-
this._portalService.
|
|
11584
|
+
this._portalService.pushAction$
|
|
11585
|
+
.pipe(withLatestFrom$1(this._portalService.userLoggedIn$), filter$1(([action, userLoggedin]) => userLoggedin))
|
|
11586
|
+
.subscribe((_) => {
|
|
11586
11587
|
const pushActionStr = this._localStorage.getItem('pushAction');
|
|
11587
11588
|
if (pushActionStr) {
|
|
11588
11589
|
this._localStorage.remove('pushAction');
|
|
@@ -11590,24 +11591,14 @@ class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
|
11590
11591
|
this._portalService.ExecuteNotificationAction(pushAction.notificationTag, pushAction.action);
|
|
11591
11592
|
}
|
|
11592
11593
|
});
|
|
11593
|
-
this._activatedRoute.queryParams.pipe(tap$1((params) => this._handle(params))).subscribe();
|
|
11594
|
-
}
|
|
11595
|
-
_handle(params) {
|
|
11596
|
-
const { notificationTag, action } = params;
|
|
11597
|
-
if (notificationTag && action) {
|
|
11598
|
-
this._localStorage.setItem('pushAction', JSON.stringify({
|
|
11599
|
-
notificationTag,
|
|
11600
|
-
action
|
|
11601
|
-
}));
|
|
11602
|
-
}
|
|
11603
11594
|
}
|
|
11604
11595
|
}
|
|
11605
|
-
ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i2
|
|
11596
|
+
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 });
|
|
11606
11597
|
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 });
|
|
11607
11598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, decorators: [{
|
|
11608
11599
|
type: Component,
|
|
11609
11600
|
args: [{ selector: 'bsu-execute-push-notification-command', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
11610
|
-
}], ctorParameters: function () { return [{ type: i2
|
|
11601
|
+
}], ctorParameters: function () { return [{ type: i2.PortalService }, { type: i2.LocalStorageService }]; } });
|
|
11611
11602
|
|
|
11612
11603
|
class BarsaCartableTemplateComponent extends RichTextStaticComponent {
|
|
11613
11604
|
ngOnInit() {
|