barsa-novin-ray-core 1.0.310 → 1.0.311

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.
@@ -4540,7 +4540,7 @@ class UlvMainService {
4540
4540
  this.visible$ = this._visibleSource.asObservable().pipe(takeUntil(this._onDestroy$));
4541
4541
  this.enable$ = this._enableSource.asObservable().pipe(takeUntil(this._onDestroy$));
4542
4542
  this.readonly$ = this._readonlySource.asObservable().pipe(takeUntil(this._onDestroy$));
4543
- this.menuItems$ = this._menuItemsSource.asObservable().pipe(takeUntil(this._onDestroy$), map((items) => items.filter((c) => c.itemId !== 'ExportToExcel' && c.itemId !== 'Delete')));
4543
+ this.menuItems$ = this._menuItemsSource.asObservable().pipe(takeUntil(this._onDestroy$), filter((items) => items?.length > 0), map((items) => items.filter((c) => c.itemId !== 'ExportToExcel' && c.itemId !== 'Delete')));
4544
4544
  this.title$ = this._titleSource.asObservable().pipe(takeUntil(this._onDestroy$));
4545
4545
  this.formPanelControlShowWindow$ = this._formPanelControlShowWindowSource
4546
4546
  .asObservable()
@@ -5768,7 +5768,6 @@ class ServiceWorkerNotificationService {
5768
5768
  this._logService = _logService;
5769
5769
  this._swPush = _swPush;
5770
5770
  this._portalService = _portalService;
5771
- this._notifications = [];
5772
5771
  _logService.info(`swPush enable ${_swPush.isEnabled}`);
5773
5772
  _swPush.notificationClicks.pipe(tap$1((c) => console.log(c))).subscribe((e) => {
5774
5773
  if (!e.notification.tag) {
@@ -5779,7 +5778,7 @@ class ServiceWorkerNotificationService {
5779
5778
  if (actionTitle === '') {
5780
5779
  return;
5781
5780
  }
5782
- if (!BarsaApi.LoginFormData.IsUserLoggedIn) {
5781
+ if (!BarsaApi?.LoginFormData?.IsUserLoggedIn) {
5783
5782
  return;
5784
5783
  }
5785
5784
  this._portalService.ExecuteNotificationAction(e.notification.tag, actionTitle);
@@ -5816,7 +5815,6 @@ class ServiceWorkerNotificationService {
5816
5815
  url: `#/login?notificationTag=${tag}&action=${action.title}`
5817
5816
  };
5818
5817
  });
5819
- this._notifications.push(notificationItem);
5820
5818
  sw?.showNotification(notificationItem.Title, {
5821
5819
  dir,
5822
5820
  tag,
@@ -8338,6 +8336,12 @@ class FormComponent extends BaseComponent {
8338
8336
  });
8339
8337
  }
8340
8338
  async _renderFormPanelUi(customFormPanelUi) {
8339
+ if (this.params.isSimple) {
8340
+ if (!customFormPanelUi.Setting.View.ExtraJsonProp) {
8341
+ customFormPanelUi.Setting.View.ExtraJsonProp = {};
8342
+ }
8343
+ customFormPanelUi.Setting.View.ExtraJsonProp.IsSimple = this.params.isSimple;
8344
+ }
8341
8345
  const customUiSetting = BarsaApi.Common.Util.TryGetValue(customFormPanelUi.Setting, 'View.CustomUi', null);
8342
8346
  const { moduleName, modulePath, componentName, selector } = getComponentDefined(customFormPanelUi, customUiSetting);
8343
8347
  this.portalService
@@ -8458,7 +8462,7 @@ class BaseColumnPropsComponent extends BaseComponent {
8458
8462
  }
8459
8463
  }
8460
8464
  BaseColumnPropsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseColumnPropsComponent, deps: [{ token: ColumnService, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
8461
- BaseColumnPropsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseColumnPropsComponent, selector: "bnrc-base-column-props", inputs: { allColumns: "allColumns", column: "column", mo: "mo", index: "index", editMode: "editMode", customRowHeight: "customRowHeight", controlUi: "controlUi", formLayoutShowLabel: "formLayoutShowLabel", isChecked: "isChecked", isNewInlineMo: "isNewInlineMo", layout94: "layout94", detailsComponentSetting: "detailsComponentSetting", value: "value", icon: "icon", rtl: "rtl", deviceName: "deviceName", deviceSize: "deviceSize" }, outputs: { save: "save", cancel: "cancel", tab: "tab", changeToEditMode: "changeToEditMode" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
8465
+ BaseColumnPropsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseColumnPropsComponent, selector: "bnrc-base-column-props", inputs: { allColumns: "allColumns", column: "column", mo: "mo", index: "index", editMode: "editMode", customRowHeight: "customRowHeight", controlUi: "controlUi", formLayoutShowLabel: "formLayoutShowLabel", isChecked: "isChecked", isNewInlineMo: "isNewInlineMo", layout94: "layout94", detailsComponentSetting: "detailsComponentSetting", value: "value", icon: "icon", rtl: "rtl", deviceName: "deviceName", deviceSize: "deviceSize", customComponent: "customComponent" }, outputs: { save: "save", cancel: "cancel", tab: "tab", changeToEditMode: "changeToEditMode" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
8462
8466
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseColumnPropsComponent, decorators: [{
8463
8467
  type: Component,
8464
8468
  args: [{
@@ -8512,6 +8516,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
8512
8516
  type: Input
8513
8517
  }], deviceSize: [{
8514
8518
  type: Input
8519
+ }], customComponent: [{
8520
+ type: Input
8515
8521
  }] } });
8516
8522
 
8517
8523
  class TilePropsComponent extends BaseComponent {