barsa-sap-ui 1.0.340 → 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/esm2020/lib/sap-ui-report-base.component.mjs +5 -10
- package/fesm2015/barsa-sap-ui.mjs +10 -24
- package/fesm2015/barsa-sap-ui.mjs.map +1 -1
- package/fesm2020/barsa-sap-ui.mjs +11 -25
- 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
|
@@ -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';
|
|
@@ -2261,9 +2261,10 @@ class SapUiReportBaseComponent extends ReportBaseComponent {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
const gridSize = getControlSizeMode(elNativeElement, deviceSize);
|
|
2263
2263
|
let deviceName = 'desktop';
|
|
2264
|
-
|
|
2264
|
+
this.allColumns
|
|
2265
2265
|
?.filter((c) => !c.Hidden)
|
|
2266
|
-
.
|
|
2266
|
+
.forEach((c) => (c.$TextWidth = c.$TextWidth ? c.$TextWidth : this._getWidth(c.Alias) + 10));
|
|
2267
|
+
const allColumnsWidth = this.allColumns.map((column) => column.$TextWidth && column.Width > column.$TextWidth ? column.Width : column.$TextWidth || column.Width);
|
|
2267
2268
|
const visibleColumns = this._visibleColumnsSource.getValue();
|
|
2268
2269
|
let columnsCount = visibleColumns.length;
|
|
2269
2270
|
switch (gridSize) {
|
|
@@ -2294,15 +2295,9 @@ class SapUiReportBaseComponent extends ReportBaseComponent {
|
|
|
2294
2295
|
sumColWidth += 210;
|
|
2295
2296
|
}
|
|
2296
2297
|
const containerWidth = elNativeElement.clientWidth;
|
|
2297
|
-
if (columnsWidth.length > 0 && containerWidth > 0) {
|
|
2298
|
+
if (columnsWidth.length > 0 && containerWidth > 0 && deviceSize !== 's') {
|
|
2298
2299
|
columnsCount = visibleColumns.length;
|
|
2299
2300
|
columnsWidth.forEach((width, index) => {
|
|
2300
|
-
if (visibleColumns[index]) {
|
|
2301
|
-
const labelWidth = this._getWidth(visibleColumns[index].Alias) + 10;
|
|
2302
|
-
if (labelWidth > width) {
|
|
2303
|
-
width = labelWidth;
|
|
2304
|
-
}
|
|
2305
|
-
}
|
|
2306
2301
|
if (sumColWidth + width > containerWidth && columnsCount === visibleColumns.length) {
|
|
2307
2302
|
columnsCount = index;
|
|
2308
2303
|
}
|
|
@@ -11563,15 +11558,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
11563
11558
|
}] } });
|
|
11564
11559
|
|
|
11565
11560
|
class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
11566
|
-
constructor(
|
|
11561
|
+
constructor(_portalService, _localStorage) {
|
|
11567
11562
|
super();
|
|
11568
|
-
this._activatedRoute = _activatedRoute;
|
|
11569
11563
|
this._portalService = _portalService;
|
|
11570
11564
|
this._localStorage = _localStorage;
|
|
11571
11565
|
}
|
|
11572
11566
|
ngOnInit() {
|
|
11573
11567
|
super.ngOnInit();
|
|
11574
|
-
this._portalService.
|
|
11568
|
+
this._portalService.pushAction$
|
|
11569
|
+
.pipe(withLatestFrom$1(this._portalService.userLoggedIn$), filter$1(([action, userLoggedin]) => userLoggedin))
|
|
11570
|
+
.subscribe((_) => {
|
|
11575
11571
|
const pushActionStr = this._localStorage.getItem('pushAction');
|
|
11576
11572
|
if (pushActionStr) {
|
|
11577
11573
|
this._localStorage.remove('pushAction');
|
|
@@ -11579,24 +11575,14 @@ class ExecutePushNotificationCommandComponent extends BaseComponent {
|
|
|
11579
11575
|
this._portalService.ExecuteNotificationAction(pushAction.notificationTag, pushAction.action);
|
|
11580
11576
|
}
|
|
11581
11577
|
});
|
|
11582
|
-
this._activatedRoute.queryParams.pipe(tap$1((params) => this._handle(params))).subscribe();
|
|
11583
|
-
}
|
|
11584
|
-
_handle(params) {
|
|
11585
|
-
const { notificationTag, action } = params;
|
|
11586
|
-
if (notificationTag && action) {
|
|
11587
|
-
this._localStorage.setItem('pushAction', JSON.stringify({
|
|
11588
|
-
notificationTag,
|
|
11589
|
-
action
|
|
11590
|
-
}));
|
|
11591
|
-
}
|
|
11592
11578
|
}
|
|
11593
11579
|
}
|
|
11594
|
-
ExecutePushNotificationCommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, deps: [{ token: i2
|
|
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 });
|
|
11595
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 });
|
|
11596
11582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ExecutePushNotificationCommandComponent, decorators: [{
|
|
11597
11583
|
type: Component,
|
|
11598
11584
|
args: [{ selector: 'bsu-execute-push-notification-command', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
11599
|
-
}], ctorParameters: function () { return [{ type: i2
|
|
11585
|
+
}], ctorParameters: function () { return [{ type: i2.PortalService }, { type: i2.LocalStorageService }]; } });
|
|
11600
11586
|
|
|
11601
11587
|
class BarsaCartableTemplateComponent extends RichTextStaticComponent {
|
|
11602
11588
|
ngOnInit() {
|