barsa-sap-ui 2.3.31 → 2.3.32
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-sap-ui.mjs +67 -20
- package/fesm2022/barsa-sap-ui.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, Pipe, EventEmitter, inject, NgZone, Renderer2, ElementRef, Output, HostBinding, ViewChild, ViewEncapsulation, ChangeDetectorRef, ViewChildren, DOCUMENT, Directive, TemplateRef, HostListener, signal, ViewContainerRef, Injector, ComponentFactoryResolver, NgModule, Injectable, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input, Pipe, EventEmitter, inject, NgZone, Renderer2, ElementRef, Output, HostBinding, ViewChild, ViewEncapsulation, ChangeDetectorRef, ViewChildren, DOCUMENT, Directive, TemplateRef, HostListener, signal, ViewContainerRef, Injector, ComponentFactoryResolver, NgModule, Injectable, provideAppInitializer, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import * as i2 from 'barsa-novin-ray-core';
|
|
4
4
|
import { BaseComponent, ReportViewBaseComponent, getUniqueId, BarsaApi, LayoutItemBaseComponent, getDeviceIsMobile, BbbTranslatePipe, LayoutService, measureText, getLabelWidth, SortDirection, BaseUlvSettingComponent, getResetGridSettings, FormComponent, createFormPanelMetaConditions, ReportBaseComponent, SelectionMode, FormPanelService, LayoutMainContentService, GetAllColumnsSorted, getParentHeight, getControlSizeMode, getDeviceIsDesktop, getDeviceIsTablet, getGridSettings, BaseDirective, PortalService, FieldBaseComponent, getDateService as getDateService$1, DateService, DateMiladiService, DateHijriService, DateShamsiService, DynamicDarkColorPipe, EllipsifyDirective, createGridEditorFormPanel, TabpageService, LocalStorageService, getAllItemsPerChildren, setOneDepthLevel, BaseViewItemPropsComponent, MoReportValuePipe, ExecuteDynamicCommand, PictureFieldSourcePipe, isImage, getIcon, UploadService, LayoutPanelBaseComponent, UlvMainService, BaseColumnPropsComponent, ColumnService, BaseViewContentPropsComponent, enumValueToStringSize, PreventDefaulEvent, setTableThWidth, TableHeaderWidthMode, calcContextMenuWidth, setColumnWidthByMaxMoContentWidth, calculateColumnWidth, calculateColumnContent, calculateColumnWidthFitToContainer, calculateFreeColumnSize, NotificationService, DateRanges, LogService, BreadcrumbService, IsDarkMode, isFunction, FilesValidationHelper, getValidExtension, getImagePath, LinearListHelper, FormToolbarBaseComponent, isFirefox, FormBaseComponent, getFieldValue, ContainerComponent, DialogParams, ContainerService, FindToolbarItem, FindLayoutSettingFromLayout94, FormPropsBaseComponent, UiService, NumberBaseComponent, ImageMimeType, BaseFormToolbaritemPropsComponent, NetworkStatusService, isInLocalMode, executeUlvCommandHandler, FillAllLayoutControls, IntersectionStatus, FORM_DIALOG_COMPONENT, NOTIFICATAION_POPUP_SERVER, TOAST_SERVICE, BaseModule, DynamicComponentService, BarsaNovinRayCoreModule, ResizableModule, DIALOG_SERVICE } from 'barsa-novin-ray-core';
|
|
5
5
|
import moment from 'moment';
|
|
@@ -10097,7 +10097,7 @@ class UlLoadingMaskUiComponent extends BaseComponent {
|
|
|
10097
10097
|
unmaskAll() {
|
|
10098
10098
|
// this._dialogService.dismissAll();
|
|
10099
10099
|
this._dialogRefList.forEach((item) => {
|
|
10100
|
-
item.
|
|
10100
|
+
item.unmaskSubject.next();
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
10103
10103
|
maskBody(duration) {
|
|
@@ -10110,9 +10110,8 @@ class UlLoadingMaskUiComponent extends BaseComponent {
|
|
|
10110
10110
|
this._unmask(body);
|
|
10111
10111
|
}
|
|
10112
10112
|
_unmask(containerRef) {
|
|
10113
|
-
if (containerRef && containerRef.
|
|
10114
|
-
containerRef.
|
|
10115
|
-
containerRef.maskDialog = null;
|
|
10113
|
+
if (containerRef && containerRef.unmaskSubject) {
|
|
10114
|
+
containerRef.unmaskSubject.next();
|
|
10116
10115
|
}
|
|
10117
10116
|
}
|
|
10118
10117
|
getBody() {
|
|
@@ -10123,19 +10122,43 @@ class UlLoadingMaskUiComponent extends BaseComponent {
|
|
|
10123
10122
|
return;
|
|
10124
10123
|
}
|
|
10125
10124
|
// const maskDelay = 15000;
|
|
10126
|
-
const
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10125
|
+
const containerId = getUniqueId(3);
|
|
10126
|
+
if (!containerRef.__id) {
|
|
10127
|
+
containerRef.__id = containerId;
|
|
10128
|
+
}
|
|
10129
|
+
const x = this._dialogRefList.find((c) => c.__id === containerId) || containerRef;
|
|
10130
|
+
if (containerRef.maskSubject) {
|
|
10131
|
+
containerRef.maskSubject.next();
|
|
10132
|
+
}
|
|
10133
|
+
else {
|
|
10134
|
+
containerRef.maskSubject = new Subject();
|
|
10135
|
+
containerRef.unmaskSubject = new Subject();
|
|
10136
|
+
containerRef.maskSubject
|
|
10137
|
+
.asObservable()
|
|
10138
|
+
.pipe(takeUntil(containerRef.unmaskSubject), switchMap((_c) => {
|
|
10139
|
+
if (!x) {
|
|
10140
|
+
this._dialogRefList.push(x);
|
|
10141
|
+
}
|
|
10142
|
+
return of(this._dialogService.open(this.waitRef, {
|
|
10143
|
+
container: containerRef,
|
|
10144
|
+
mobile: true,
|
|
10145
|
+
dialogPanelClass: 'maskloading-container'
|
|
10146
|
+
}));
|
|
10147
|
+
}), delay(_option?.delay || 0))
|
|
10148
|
+
.subscribe((c) => {
|
|
10149
|
+
c.close();
|
|
10150
|
+
this._dialogRefList = this._dialogRefList.filter((c) => c.__id !== containerId);
|
|
10151
|
+
});
|
|
10152
|
+
containerRef.maskSubject.next();
|
|
10153
|
+
}
|
|
10154
|
+
// x.afterLoaded.subscribe(() => ((containerRef.maskDialog = x), this._dialogRefList.push(x)));
|
|
10155
|
+
// of(true)
|
|
10156
|
+
// .pipe(takeUntil(this._onDestroy$))
|
|
10157
|
+
// .subscribe(() => {
|
|
10158
|
+
// if (containerRef.maskDialog?.close) {
|
|
10159
|
+
// containerRef.maskDialog.close();
|
|
10160
|
+
// }
|
|
10161
|
+
// });
|
|
10139
10162
|
}
|
|
10140
10163
|
resolveElement(element) {
|
|
10141
10164
|
let containerRef = element;
|
|
@@ -16593,7 +16616,19 @@ class BarsaSapUiModule extends BaseModule {
|
|
|
16593
16616
|
PlatformIconTabBarModule, i234.ContentDensityModule, ScrollingModule,
|
|
16594
16617
|
UtilDateToHhMmPipe,
|
|
16595
16618
|
UtilChatTimeBadgePipe], exports: [BarsaBarDownloadFileComponent, UiTextFieldComponent, LyLayoutFieldLabelComponent, UiCheckBoxComponent, UiSimpleComboComponent, UiRadioGroupComponent, UiGridComponent, UiMapComponent, LyLayoutContainerOfRootComponent, LyLayoutPanelComponent, UiReadOnlyFieldComponent, UiContainerWithButtonComponent, UiPictureFileComponent, UiMoInfoUlvComboComponent, UiMultiSelectComboComponent, UiNumDecimalUiComponent, UiNumIntUiComponent, UiTimeSpanComponent, UiFileLinearListBoxComponent, LyEmptySpaceComponent, UiSinglePictureComponent, UlvSelectionComponent, UlvToolbarComponent, UlvPagingComponent, UiGridSortSettingComponent, UiGridSortItemComponent, UiGridColumnsComponent, MaskComponent, UiInfoBarPanelComponent, UiFormPanelComponent, UiSearchCommandInfoUiComponent, UlvSettingsComponent, UiTinymceComponent, UiButtonComponent, UiDateTimeComponent, FormDialogComponent, UiMoInfoSubFormUiComponent, ResponsiveToolbarComponent, ResponsiveToolbarRendererComponent, UiTextAreaComponent, LayoutControlComponent, LayoutWizardComponent, FormWizardComponent, FormDialogLessComponent, RichTextStaticComponent, UiPicturesInfoComponent, LyHorizontalLayoutComponent, LyVerticalLayoutComponent, LyTabContainerComponent, LyTabPageComponent, LyLabelComponent, UiMoInfoComboViewerComponent, UlMsgBoxAdapterComponent, UiTreeComponent, HeaderAvatarComponent, UiWorkflowPanelUiComponent, UlvContextMenuComponent, UlLoadingMaskUiComponent, UiTextFieldAutoCompleteComponent, CaptchaFieldComponent, LySimpleLabelComponent, GlobalSearchPanelComponent, GlobalSearchModuleComponent, GlobalSearchComponent, HyperlinkComponent, StaticTextComponent, UlToastAdapterComponent, MessageStripComponent, UiLinearListContainerWithButtonComponent, FundamentalDynamicFormComponent, LayoutActionsComponent, LyLayoutContainerComponent, UiUlvFormMultiSelectUiComponent, UlvFormMultiSelectComponent, UlvColumnSettingsComponent, UlvFilterSettingsComponent, UlvSortSettingsComponent, UlvGroupbySettingsComponent, BarsaListFileLinearComponent, UiPdfViewerComponent, BarsaTinyemceComponent, UiMonacoEditorComponent, BarsaMonacoEditorComponent, BarsaDateTimePickerComponent, BarsaTreeItemComponent, UiSwitchButtonComponent, UiColorUiComponent, LyLineComponent, UiUlvMainUiComponent, ReportNavigatorComponent, ManageFiltersReportComponent, ReportSearchFieldsManageComponent, ReportSearchFieldsHiddenSettingsComponent, SearchPanelComponent, ReportSearchPanelSaveComponent, UiGridFilterSettingsComponent, UiGridFilterItemComponent, UiDateRangeExComponent, UlNotifyPopupComponent, UiTableViewComponent, UiListViewComponent, UiCardViewComponent, UiReportContainerComponent, NoDataComponent, ColumnRendererComponent, InlineSaveAndCancelComponent, UiTreeViewComponent, InlineSaveAndCancelComponent, UiCalendarComponent, UiAspReportViewerComponent, UiGraphComponent, UiExceptionFormComponent, UiEditableGridComponent, ColumnMatrixRendererComponent, UiMatrixViewComponent, CustomDateTimeComponent, BarsaAspViewerComponent, FileInDialogComponent, UiMoInfoGeneralObjectUiComponent, UiGanttChartComponent, GanttDhtmlChartViewComponent, ProgressIndicatorComponent, CardViewContentComponent, CardItemComponent, UiCardViewHorizontalGroupComponent, TitleComponent, BarsaUlvMainComponent, ListItemComponent, HtreeCreateNewComponent, BarsaTableHeaderComponent, BarsaTableRowComponent, BarsaTableColumnComponent, BreadcrumbComponent, UiLabelComponent, FormToolbarButtonComponent, BarsaSearchFormComponent, ReportNewTopFormComponent, BarsaNetworkOfflineComponent, FileViewerContentComponent, FileViewerPopoverComponent, FileViewerComponent, BlobViewerComponent, NotificationItemComponent, BarsaCartableTemplateComponent, BarsaCartableGroupComponent, BarsaCartableFormComponent, BarsaColumnIndicatorComponent, BarsaFieldKeyValueComponent, BarsaToolbaritemSearchComponent, UiHtmlViewerComponent, BarsaPishnamayeshPayamComponent, BarsaTextEllipsisComponent, BarsaListFileLinearGmailComponent, BarsaLinkableItemsPanelComponent, BarsaEnumMenuButtonComponent, BarsaCardLayoutPanelComponent, BarsaHorizontalFlexPanelComponent, BarsaBaseLayoutPanelComponent, BarsaBarPanelComponent, BarsaFormSideContentComponent, BarsaSimpleFormComponent, FormToolbarComponent, BarsaListLayoutPanelComponent, BarsaGridLayoutPanelComponent, BarsaDynamicFieldComponent, UiMultiSelectRadioComponent, UiMultiSelectCheckboxComponent, UiNumIntSliderComponent, UiMultiSelectSliderComponent, UiMultiSelectCardComponent, UiMultiSelectSmileComponent, BarsaReportCheckboxSwitchButtonComponent, BarsaColumnRowNumberComponent, BarsaCardRowPayamComponent, BarsaColumnRowNumberComponent, BarsaQuestionPostComponent, BarsaQuestionAnswerFormComponent, BarsaQuestionAnswerFormAddCommentComponent, BarsaAnswerCardComponent, BarsaQuestionAnswerContentActionsSectionComponent, BarsaQuestionAnswerVoteSectionComponent, BarsaQuestionAnswerCreatorTimeSectionComponent, BarsaQuestionAnswerCommentsSectionComponent, BarsaChipComponent, BarsaTagChipComponent, BarsaReportCardFlexViewComponent, BarsaTagsCategoryRowComponent, BarsaTagCategoriesComponent, BarsaReportOneOfListComponent, BarsaCardRowPayamComponent, BarsaCustomInlineEditComponent, BarsaCustomInlineEditRowComponent, BarsaChatComponent, BarsaChatContentComponent, BarsaChatMessageComponent, BarsaChatThreadComponent, BarsaChatThreadsListComponent, BarsaChatThreadsListToolbarComponent, BarsaChatContentToolbarComponent, BarsaChatListComponent, BarsaModalComponent, BarsaTabRouteManagerComponent, BarsaBreadcrumbsComponent, BarsaRowInlineActionlistComponent, UiBpmnViewerComponent, UiNotificationViewComponent, NotificationItemActionsComponent, BarsaFormLayoutPanelComponent, UiReportCarouselViewComponent, BarsaCardBannerComponent, BarsaThemeComponent, BarsaImgSkeletonComponent, BarsaBottomMenuViewComponent, UiSignatureComponent, BarsaMegamenuComponent, WizardLayoutDirective, ColRendererDirective, ApplyConditionalFormatsDirective, ReportViewRendererDirective, FullscreenDialogDirective, FullscreenFilesDirective, DownloadFilesDirective, DialogHandlerDirective, TableThDirective, ContentDensityDirective, DarkClassDirective, FixTabMoreDirective, UploadFileStatusPipe, SapFontPipe, SapFontClassPipe, StringToArrayPipe, NodeHasOneDepthLevelPipe, MatrixValuePipe, DynamicPageSizePipe, SapSizePipe, AvatarGridColPipe, ObjectStatusIconPipe] }); }
|
|
16596
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaSapUiModule, providers: [
|
|
16619
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaSapUiModule, providers: [
|
|
16620
|
+
{ provide: DIALOG_SERVICE, useClass: DialogService },
|
|
16621
|
+
provideAppInitializer(() => {
|
|
16622
|
+
const initializerFn = ((dynamicComponentService) => () => dynamicComponentService.addDynamicModuleResolver({
|
|
16623
|
+
BarsaNavigator: () => import('barsa-navigator'),
|
|
16624
|
+
BarsaAuth: () => import('barsa-auth'),
|
|
16625
|
+
BarsaKanban: () => import('barsa-kanban'),
|
|
16626
|
+
BarsaDevelopComponents: () => import('barsa-develop-components'),
|
|
16627
|
+
BarsaTiles: () => import('barsa-tiles')
|
|
16628
|
+
}))(inject(DynamicComponentService));
|
|
16629
|
+
return initializerFn();
|
|
16630
|
+
})
|
|
16631
|
+
], imports: [CommonModule,
|
|
16597
16632
|
FormsModule,
|
|
16598
16633
|
ReactiveFormsModule,
|
|
16599
16634
|
BarsaNovinRayCoreModule,
|
|
@@ -16658,7 +16693,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
16658
16693
|
UtilChatTimeBadgePipe
|
|
16659
16694
|
],
|
|
16660
16695
|
exports: [...components, ...directives, ...pipes],
|
|
16661
|
-
providers: [
|
|
16696
|
+
providers: [
|
|
16697
|
+
{ provide: DIALOG_SERVICE, useClass: DialogService },
|
|
16698
|
+
provideAppInitializer(() => {
|
|
16699
|
+
const initializerFn = ((dynamicComponentService) => () => dynamicComponentService.addDynamicModuleResolver({
|
|
16700
|
+
BarsaNavigator: () => import('barsa-navigator'),
|
|
16701
|
+
BarsaAuth: () => import('barsa-auth'),
|
|
16702
|
+
BarsaKanban: () => import('barsa-kanban'),
|
|
16703
|
+
BarsaDevelopComponents: () => import('barsa-develop-components'),
|
|
16704
|
+
BarsaTiles: () => import('barsa-tiles')
|
|
16705
|
+
}))(inject(DynamicComponentService));
|
|
16706
|
+
return initializerFn();
|
|
16707
|
+
})
|
|
16708
|
+
]
|
|
16662
16709
|
}]
|
|
16663
16710
|
}], ctorParameters: () => [] });
|
|
16664
16711
|
|