barsa-novin-ray-core 2.3.75 → 2.3.77

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.
@@ -3668,13 +3668,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
3668
3668
 
3669
3669
  class FilterWorkflowInMobilePipe {
3670
3670
  constructor() { }
3671
- transform(buttons, _worfklowButtonsOnFooter = false
3671
+ transform(buttons, worfklowButtonsOnFooter = false
3672
3672
  // fileCount: number
3673
3673
  ) {
3674
3674
  // const isMobileOrTablet = getDeviceIsMobile() || worfklowButtonsOnFooter;
3675
- // if (!isMobileOrTablet) {
3676
- // return buttons;
3677
- // }
3675
+ if (!worfklowButtonsOnFooter) {
3676
+ return buttons;
3677
+ }
3678
3678
  return buttons.filter((button) => !button.isWorkflow);
3679
3679
  }
3680
3680
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: FilterWorkflowInMobilePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
@@ -4458,7 +4458,7 @@ class FormPanelService extends BaseComponent {
4458
4458
  this.fieldDict$ = this.mo$.pipe(map((c) => c.$FieldDict), takeUntil(this._onDestroy$));
4459
4459
  this.view$ = this._viewSource.asObservable().pipe(tap((view) => this._prepareView(view)), takeUntil(this._onDestroy$));
4460
4460
  this.toolbarItems$ = this._toolbarItemsSource.asObservable().pipe(map((items) => this._filterToolbarItems(items)), takeUntil(this._onDestroy$));
4461
- this.workflowButtons$ = this.workflowPanelUi$.pipe(map((c) => c?.buttonList || []), withLatestFrom(this._toolbarItemsSource.asObservable().pipe(map((items) => this._filterToolbarItems(items)), map((items) => items.filter((c) => c.isWorkflow)))), map(([items1, items2]) => [...items2, ...items1]), takeUntil(this._onDestroy$));
4461
+ this.workflowButtons$ = this.workflowPanelUi$.pipe(map((c) => c?.buttonList || []), withLatestFrom(this._toolbarItemsSource.asObservable().pipe(map((items) => this._filterToolbarItems(items)), map((items) => items.filter((c) => c.isWorkflow)))), map(([items1, items2]) => (items2.length > 0 ? [...items2] : [...items1])), takeUntil(this._onDestroy$));
4462
4462
  // this._toolbarItemsSource.asObservable().pipe(
4463
4463
  // map((items) => this._filterToolbarItems(items)),
4464
4464
  // map((items) => items.filter((c) => c.isWorkflow)),