barsa-sap-ui 3.0.4 → 3.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barsa-sap-ui",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^22.0.8",
6
6
  "@angular/common": "^22.0.8"
@@ -640,7 +640,14 @@ declare enum WidthTypeEnum {
640
640
  }
641
641
 
642
642
  declare class UiGraphComponent extends SapUiReportBaseComponent<UiReportViewBaseSetting> implements AfterViewInit {
643
+ renderedGraph: boolean;
643
644
  ngAfterViewInit(): void;
645
+ /**
646
+ * `Draw` را نمی‌شود در `ngAfterViewInit` صدا زد: این کامپوننت با `createComponent()` بدون
647
+ * hostElement ساخته می‌شود و تازه بعد از آن با `vcr.insert()` به DOM می‌چسبد، پس در آن لحظه
648
+ * `getElementById(id)` نال برمی‌گرداند. صبر می‌کنیم تا div واقعاً در صفحه دیده شود.
649
+ */
650
+ onVisibilityChange(e: any): void;
644
651
  static ɵfac: i0.ɵɵFactoryDeclaration<UiGraphComponent, never>;
645
652
  static ɵcmp: i0.ɵɵComponentDeclaration<UiGraphComponent, "bsu-ui-graph", never, {}, {}, never, never, false, never>;
646
653
  }
@@ -658,12 +665,15 @@ declare class UlvContextMenuComponent extends BaseComponent implements OnInit {
658
665
  styleIndex: number[];
659
666
  conditionalFormats: any[];
660
667
  disableOverflowContextMenu: boolean;
668
+ preserveSelectionOnOpen: boolean;
669
+ selectionContextVisible: boolean;
661
670
  footerMode: boolean;
662
671
  contextMenuOverflowText: string;
663
672
  appendTo: HTMLElement;
664
673
  commandClick: EventEmitter<any>;
665
674
  overflowClick: EventEmitter<any>;
666
675
  _disableOverflow: boolean;
676
+ get selectionContextVisibility(): 'hidden' | null;
667
677
  isOpenOverflow: boolean;
668
678
  overflowMode: boolean;
669
679
  isMobile: boolean;
@@ -677,7 +687,7 @@ declare class UlvContextMenuComponent extends BaseComponent implements OnInit {
677
687
  OpenPopoverAt(x: number, y: number): void;
678
688
  ClosePopover(): void;
679
689
  static ɵfac: i0.ɵɵFactoryDeclaration<UlvContextMenuComponent, never>;
680
- static ɵcmp: i0.ɵɵComponentDeclaration<UlvContextMenuComponent, "bsu-ulv-context-menu,[ulvContextMenu]", never, { "onlyOverflow": { "alias": "onlyOverflow"; "required": false; }; "rightClickEnable": { "alias": "rightClickEnable"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "deviceName": { "alias": "deviceName"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "allColumns": { "alias": "allColumns"; "required": false; }; "index": { "alias": "index"; "required": false; }; "mo": { "alias": "mo"; "required": false; }; "styleIndex": { "alias": "styleIndex"; "required": false; }; "conditionalFormats": { "alias": "conditionalFormats"; "required": false; }; "disableOverflowContextMenu": { "alias": "disableOverflowContextMenu"; "required": false; }; "footerMode": { "alias": "footerMode"; "required": false; }; "contextMenuOverflowText": { "alias": "contextMenuOverflowText"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; }, { "commandClick": "commandClick"; "overflowClick": "overflowClick"; }, never, never, false, never>;
690
+ static ɵcmp: i0.ɵɵComponentDeclaration<UlvContextMenuComponent, "bsu-ulv-context-menu,[ulvContextMenu]", never, { "onlyOverflow": { "alias": "onlyOverflow"; "required": false; }; "rightClickEnable": { "alias": "rightClickEnable"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "deviceName": { "alias": "deviceName"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "allColumns": { "alias": "allColumns"; "required": false; }; "index": { "alias": "index"; "required": false; }; "mo": { "alias": "mo"; "required": false; }; "styleIndex": { "alias": "styleIndex"; "required": false; }; "conditionalFormats": { "alias": "conditionalFormats"; "required": false; }; "disableOverflowContextMenu": { "alias": "disableOverflowContextMenu"; "required": false; }; "preserveSelectionOnOpen": { "alias": "preserveSelectionOnOpen"; "required": false; }; "selectionContextVisible": { "alias": "selectionContextVisible"; "required": false; }; "footerMode": { "alias": "footerMode"; "required": false; }; "contextMenuOverflowText": { "alias": "contextMenuOverflowText"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; }, { "commandClick": "commandClick"; "overflowClick": "overflowClick"; }, never, never, false, never>;
681
691
  }
682
692
 
683
693
  declare class UiMapComponent extends SapUiReportBaseComponent<UiReportViewBaseSetting> implements AfterViewInit {
@@ -2235,6 +2245,7 @@ declare class UlvFormMultiSelectComponent extends BaseComponent {
2235
2245
  dialogComponent: DialogComponent;
2236
2246
  deviceSize: string;
2237
2247
  contentDensity$: Observable<ContentDensity>;
2248
+ protected readonly _scrollLayoutContext: ScrollLayoutContextHolder;
2238
2249
  private _dialogService;
2239
2250
  private _bbbTranslatePipe;
2240
2251
  private _portalService;
@@ -3841,6 +3852,19 @@ declare class UiSimpleComboComponent extends FieldBaseComponent implements OnIni
3841
3852
  };
3842
3853
  ngOnInit(): void;
3843
3854
  onValueChange(value: any): void;
3855
+ /**
3856
+ * گیر شناخته‌شده‌ی Angular CDK 22 + fundamental 0.64: overlayهای CDK از Popover API
3857
+ * بومی استفاده می‌کنند و `showPopover()` را داخل یک `catch {}` خالی صدا می‌زنند.
3858
+ * `DialogService` هم میزبان overlay را *قبل* از اتصال به DOM جابه‌جا می‌کند، پس آن
3859
+ * فراخوانی استثنا می‌دهد، بی‌صدا بلعیده می‌شود و دیگر تکرار نمی‌شود؛ در نتیجه دیالوگ
3860
+ * حالت موبایل ساخته می‌شود ولی `:popover-open` نمی‌شود و هرگز دیده نمی‌شود.
3861
+ * اینجا خودمان popover را باز/بسته می‌کنیم.
3862
+ *
3863
+ * `setTimeout` لازم است چون این هندلر پیش از subscriberِ خودِ `SelectMobileComponent`
3864
+ * (که دیالوگ را از حالت hidden درمی‌آورد) اجرا می‌شود.
3865
+ * روی دسکتاپ `fd-select-mobile` وجود ندارد و این کد بی‌اثر است.
3866
+ */
3867
+ onOpenChange(isOpen: boolean): void;
3844
3868
  protected _handleValueChange(selectedValue: any): void;
3845
3869
  static ɵfac: i0.ɵɵFactoryDeclaration<UiSimpleComboComponent, never>;
3846
3870
  static ɵcmp: i0.ɵɵComponentDeclaration<UiSimpleComboComponent, "bsu-ui-simple-combo", never, { "MinSize": { "alias": "MinSize"; "required": false; }; }, {}, never, never, false, never>;
@@ -4290,6 +4314,16 @@ declare class BarsaNetworkOfflineComponent extends BaseComponent {
4290
4314
  static ɵcmp: i0.ɵɵComponentDeclaration<BarsaNetworkOfflineComponent, "bsu-barsa-network-offline", never, {}, {}, never, never, false, never>;
4291
4315
  }
4292
4316
 
4317
+ /** اندازه‌ی معناییِ پاپ‌آورِ پیش‌نمایش — به‌جای عددِ خامِ ابعادی */
4318
+ type FilePreviewSize = 'compact' | 'comfortable' | 'large';
4319
+ interface FilePreviewSizeConfig {
4320
+ /** به `bsu-file-viewer-content` می‌رود و روی خودِ img/blob-viewer می‌نشیند */
4321
+ width: string;
4322
+ /** روی `fd-popover-body`؛ null یعنی هیچ استایلی اعمال نشود (رفتارِ قبلی) */
4323
+ maxWidth: string | null;
4324
+ /** روی `fd-popover-body`؛ با قاعده‌ی scss به اسکرولِ داخلی تبدیل می‌شود */
4325
+ maxHeight: string | null;
4326
+ }
4293
4327
  declare class FileViewerPopoverComponent extends BaseComponent {
4294
4328
  files: FileAttachmentInfo[];
4295
4329
  file: FileAttachmentInfo;
@@ -4299,11 +4333,14 @@ declare class FileViewerPopoverComponent extends BaseComponent {
4299
4333
  disableRemove: boolean;
4300
4334
  fdType: ButtonType;
4301
4335
  attachmentViewType: number;
4336
+ /** پیش‌فرضِ `compact` = رفتارِ قبلی؛ مصرف‌کننده‌های موجود تغییری نمی‌بینند */
4337
+ previewSize: FilePreviewSize;
4302
4338
  remove: EventEmitter<void>;
4303
4339
  hideFullScreen: boolean;
4304
4340
  popoverOpened: boolean;
4341
+ get sizeConfig(): FilePreviewSizeConfig;
4305
4342
  static ɵfac: i0.ɵɵFactoryDeclaration<FileViewerPopoverComponent, never>;
4306
- static ɵcmp: i0.ɵɵComponentDeclaration<FileViewerPopoverComponent, "bsu-file-viewer-popover", never, { "files": { "alias": "files"; "required": false; }; "file": { "alias": "file"; "required": false; }; "index": { "alias": "index"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "canDownload": { "alias": "canDownload"; "required": false; }; "disableRemove": { "alias": "disableRemove"; "required": false; }; "fdType": { "alias": "fdType"; "required": false; }; "attachmentViewType": { "alias": "attachmentViewType"; "required": false; }; }, { "remove": "remove"; }, never, never, false, never>;
4343
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileViewerPopoverComponent, "bsu-file-viewer-popover", never, { "files": { "alias": "files"; "required": false; }; "file": { "alias": "file"; "required": false; }; "index": { "alias": "index"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "canDownload": { "alias": "canDownload"; "required": false; }; "disableRemove": { "alias": "disableRemove"; "required": false; }; "fdType": { "alias": "fdType"; "required": false; }; "attachmentViewType": { "alias": "attachmentViewType"; "required": false; }; "previewSize": { "alias": "previewSize"; "required": false; }; }, { "remove": "remove"; }, never, never, false, never>;
4307
4344
  }
4308
4345
 
4309
4346
  declare class FileViewerComponent extends BaseComponent implements OnInit {
@@ -5857,4 +5894,4 @@ declare class BarsaSapUiModule extends BaseModule {
5857
5894
  }
5858
5895
 
5859
5896
  export { ApplyConditionalFormatsDirective, AvatarGridColPipe, BarsaAnswerCardComponent, BarsaAspViewerComponent, BarsaBarDownloadFileComponent, BarsaBarPanelComponent, BarsaBaseLayoutPanelComponent, BarsaBottomMenuViewComponent, BarsaBreadcrumbsComponent, BarsaCardBannerComponent, BarsaCardLayoutPanelComponent, BarsaCardRowPayamComponent, BarsaCartableFormComponent, BarsaCartableGroupComponent, BarsaCartableTemplateComponent, BarsaChipComponent, BarsaColumnIndicatorComponent, BarsaColumnRendererComponent, BarsaColumnRowNumberComponent, BarsaCustomInlineEditComponent, BarsaCustomInlineEditRowComponent, BarsaDateTimePickerComponent, BarsaDynamicFieldComponent, BarsaEnumMenuButtonComponent, BarsaFieldKeyValueComponent, BarsaFieldKpiCardComponent, BarsaFormLayoutPanelComponent, BarsaFormSideContentComponent, BarsaGridLayoutPanelComponent, BarsaHorizontalFlexPanelComponent, BarsaImgSkeletonComponent, BarsaInfobarsComponent, BarsaLinkableItemsPanelComponent, BarsaListFileLinearComponent, BarsaListFileLinearGmailComponent, BarsaListLayoutPanelComponent, BarsaMegamenuComponent, BarsaModalComponent, BarsaMonacoEditorComponent, BarsaNetworkOfflineComponent, BarsaPishnamayeshPayamComponent, BarsaQuestionAnswerCommentsSectionComponent, BarsaQuestionAnswerContentActionsSectionComponent, BarsaQuestionAnswerCreatorTimeSectionComponent, BarsaQuestionAnswerFormAddCommentComponent, BarsaQuestionAnswerFormComponent, BarsaQuestionAnswerVoteSectionComponent, BarsaQuestionPostComponent, BarsaReportCardFlexViewComponent, BarsaReportCheckboxSwitchButtonComponent, BarsaReportOneOfListComponent, BarsaRowInlineActionlistComponent, BarsaSapUiModule, BarsaSapUiRoutingModule, BarsaSearchFormComponent, BarsaSimpleFormComponent, BarsaTabRouteManagerComponent, BarsaTableColumnComponent, BarsaTableHeaderComponent, BarsaTableRowComponent, BarsaTagCategoriesComponent, BarsaTagChipComponent, BarsaTagsCategoryRowComponent, BarsaTextEllipsisComponent, BarsaThemeComponent, BarsaThemeInspectorComponent, BarsaTinyemceComponent, BarsaToolbaritemSearchComponent, BarsaTreeItemComponent, BarsaUlvMainComponent, BlobViewerComponent, BreadcrumbComponent, CalendarMonthInfo, CalendarService, CaptchaFieldComponent, CardItemComponent, CardReportNavigatorComponent, CardViewContentComponent, ColRendererDirective, ColumnMatrixRendererComponent, ContentDensityDirective, CustomDateTimeComponent, DarkClassDirective, Day, DeviceInfoFieldBaseComponent, DialogHandlerDirective, DownloadFilesDirective, DynamicCommandComponent, DynamicPageSizePipe, FileCardViewerComponent, FileGalleryViewerComponent, FileInDialogComponent, FileViewerComponent, FileViewerContentComponent, FileViewerPopoverComponent, FixMoreDirective, FormDialogComponent, FormDialogLessComponent, FormToolbarButtonComponent, FormToolbarComponent, FormWizardComponent, FullscreenDialogDirective, FullscreenFilesDirective, FundamentalComboComponent, FundamentalComboDataProvider, FundamentalComboDataSource, FundamentalDynamicFormComponent, GanttDhtmlChartViewComponent, GetFormLayoutGrid, GlobalSearchComponent, GlobalSearchModuleComponent, GlobalSearchPanelComponent, HeaderAvatarComponent, HtreeCreateNewComponent, HyperlinkComponent, IconBusinessSuite, IconTNT, InlineSaveAndCancelComponent, LayoutActionsComponent, LayoutControlComponent, LayoutWizardComponent, ListItemComponent, LyEmptySpaceComponent, LyHorizontalLayoutComponent, LyLabelComponent, LyLayoutContainerComponent, LyLayoutContainerOfRootComponent, LyLayoutFieldLabelComponent, LyLayoutPanelComponent, LyLineComponent, LySimpleLabelComponent, LyTabContainerComponent, LyTabPageComponent, LyVerticalLayoutComponent, ManageFiltersReportComponent, MaskComponent, MatrixValuePipe, MessageStripComponent, NoDataComponent, NodeHasOneDepthLevelPipe, NotificationItemActionsComponent, NotificationItemComponent, ObjectStatusIconPipe, ProgressIndicatorComponent, ReportNewTopFormComponent, ReportSearchFieldsHiddenSettingsComponent, ReportSearchFieldsManageComponent, ReportSearchPanelSaveComponent, ReportViewRendererDirective, ResponsiveToolbarComponent, ResponsiveToolbarRendererComponent, RichTextColumnController, RichTextFieldController, RichTextStaticComponent, SapFontClassPipe, SapFontPipe, SapSizePipe, SapUiReportBaseComponent, SearchPanelComponent, StaticTextComponent, StringToArrayPipe, TableThDirective, TitleComponent, UiAspReportViewerComponent, UiBpmnViewerComponent, UiButtonComponent, UiCalendarComponent, UiCardViewComponent, UiCardViewHorizontalGroupComponent, UiCheckBoxComponent, UiColorUiComponent, UiContainerWithButtonComponent, UiDateRangeExComponent, UiDateTimeComponent, UiEditableGridComponent, UiExceptionFormComponent, UiFileLinearListBoxComponent, UiFormPanelComponent, UiGanttChartComponent, UiGraphComponent, UiGridColumnsComponent, UiGridComponent, UiGridFilterItemComponent, UiGridFilterSettingsComponent, UiGridSortItemComponent, UiGridSortSettingComponent, UiHtmlViewerComponent, UiInfoBarPanelComponent, UiLabelComponent, UiLinearListContainerWithButtonComponent, UiListViewComponent, UiMapComponent, UiMapReportComponent, UiMatrixViewComponent, UiMoInfoComboViewerComponent, UiMoInfoGeneralObjectUiComponent, UiMoInfoSubFormUiComponent, UiMoInfoUlvComboComponent, UiMonacoEditorComponent, UiMultiSelectCardComponent, UiMultiSelectCheckboxComponent, UiMultiSelectComboComponent, UiMultiSelectRadioComponent, UiMultiSelectSliderComponent, UiMultiSelectSmileComponent, UiNotificationViewComponent, UiNumDecimalUiComponent, UiNumIntSliderComponent, UiNumIntUiComponent, UiPdfViewerComponent, UiPictureFileComponent, UiPicturesInfoComponent, UiRadioGroupComponent, UiReadOnlyFieldComponent, UiReportCarouselViewComponent, UiReportContainerComponent, UiSearchCommandInfoUiComponent, UiSignatureComponent, UiSimpleComboComponent, UiSinglePictureComponent, UiSwitchButtonComponent, UiTableViewComponent, UiTextAreaComponent, UiTextFieldAutoCompleteComponent, UiTextFieldComponent, UiTimeSpanComponent, UiTinymceComponent, UiTreeComponent, UiTreeViewComponent, UiUlvFormMultiSelectUiComponent, UiUlvMainUiComponent, UiUlvPopupWindowUiComponent, UiWorkflowPanelUiComponent, UlLoadingMaskUiComponent, UlMsgBoxAdapterComponent, UlNotifyPopupComponent, UlToastAdapterComponent, UlvColumnSettingsComponent, UlvContextMenuComponent, UlvFilterSettingsComponent, UlvFormMultiSelectComponent, UlvGroupbySettingsComponent, UlvPagingComponent, UlvSelectionComponent, UlvSettingsComponent, UlvSortSettingsComponent, UlvToolbarComponent, UploadFileStatusPipe, UtilDateToHhMmPipe, WidthTypeEnum, WizardLayoutDirective, _trimEnd, insertAvatar };
5860
- export type { DropInfo, FormLayoutCol, IRichTextColumnView, IRichTextController, IRichTextFieldView, MegaMenuGroup, MegaMenuItem, SpecificRangeInputMode, UiDateRangeExParameters };
5897
+ export type { DropInfo, FilePreviewSize, FormLayoutCol, IRichTextColumnView, IRichTextController, IRichTextFieldView, MegaMenuGroup, MegaMenuItem, SpecificRangeInputMode, UiDateRangeExParameters };