barsa-novin-ray-core 2.3.111 → 2.3.113

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.
@@ -1426,7 +1426,6 @@ function _calcWidthOfTh(column, i, propName, thList) {
1426
1426
  if (fieldTypeId === 6 || fieldTypeId === 5 || isPicture) {
1427
1427
  return isPicture ? '48px' : '32px';
1428
1428
  }
1429
- debugger;
1430
1429
  }
1431
1430
  return column.$IsImageOricon && i < thList.length - 1 ? '42px' : column[propName];
1432
1431
  }
@@ -1686,9 +1685,9 @@ function compareVersions(v1, v2) {
1686
1685
  const score1 = getVersionScore(v1);
1687
1686
  const score2 = getVersionScore(v2);
1688
1687
  // ۳. مقایسه اعداد نهایی
1689
- if (score1 > score2)
1690
- return 1;
1691
1688
  if (score1 < score2)
1689
+ return 1;
1690
+ if (score1 > score2)
1692
1691
  return -1;
1693
1692
  return 0;
1694
1693
  }
@@ -5327,7 +5326,7 @@ function searchNavigatorInApp(app, keyword) {
5327
5326
  if (node.Caption && node.Caption.toLowerCase().includes(keyword.toLowerCase())) {
5328
5327
  let url = '';
5329
5328
  if (!node.IsRoot && node.ReportId && node.ReportId !== '0') {
5330
- url = `#/application/${app.Id}/report/${node.FolderId}__${node.Caption}__${node.ReportId}`;
5329
+ url = `#/application/report/${node.FolderId}__${node.Caption}__${node.ReportId}`;
5331
5330
  }
5332
5331
  else if (node.IsRoot) {
5333
5332
  url = `#/application/${app.Id}`;
@@ -5490,7 +5489,7 @@ class ApplicationCtrlrService {
5490
5489
  // console.error(`system data for systemid ${systemId} not found.`);
5491
5490
  return;
5492
5491
  }
5493
- if (this.deviceSize !== 's' && this.deviceSize !== 'm') {
5492
+ if (this.deviceSize !== 's' && this.deviceSize !== 'm' && this.deviceSize !== 'l') {
5494
5493
  this.sidebarToggled(true);
5495
5494
  }
5496
5495
  this._selectedSystemTitle$.next(systemData.Caption);
@@ -5516,7 +5515,7 @@ class ApplicationCtrlrService {
5516
5515
  selectSystemCommand(command) {
5517
5516
  this.selectSystemCommandId(command.Key);
5518
5517
  new Promise((resolve, _reject) => {
5519
- this._routeToSelectedSystem();
5518
+ // this._routeToSystem(this._selectedSystemId$.getValue());
5520
5519
  if (command.DynamicCommand) {
5521
5520
  BarsaApi.Common.CustomCodeManager.RunDynamicCommand(command.Key, {}, resolve);
5522
5521
  }
@@ -5604,6 +5603,7 @@ class ApplicationCtrlrService {
5604
5603
  searchItemClick(data) {
5605
5604
  if (data.original.IsRoot) {
5606
5605
  this._routeToSystem(data.appId);
5606
+ this.sidebarToggled(true);
5607
5607
  }
5608
5608
  else if (data.source === 'Command') {
5609
5609
  this.selectSystemCommand(data.original);
@@ -5611,6 +5611,7 @@ class ApplicationCtrlrService {
5611
5611
  else if (data.source === 'Navigator') {
5612
5612
  if (data.original.ReportId === '0') {
5613
5613
  this._routeToSystem(data.appId);
5614
+ this.sidebarToggled(true);
5614
5615
  this.selectNavGroup(data.id, false);
5615
5616
  }
5616
5617
  else {
@@ -5619,8 +5620,7 @@ class ApplicationCtrlrService {
5619
5620
  }
5620
5621
  }
5621
5622
  _routeToSystem(systemId) {
5622
- this.selectedSystem(systemId);
5623
- this._routeToSelectedSystem();
5623
+ this.systemChange(systemId);
5624
5624
  }
5625
5625
  getLastActivatedRoute() {
5626
5626
  let route = this._router.routerState.root;
@@ -5630,15 +5630,7 @@ class ApplicationCtrlrService {
5630
5630
  return route;
5631
5631
  }
5632
5632
  _routeToReport(navGroupId, caption, reportId) {
5633
- this._router.navigate([
5634
- 'application',
5635
- this._selectedSystemId$.getValue(),
5636
- 'report',
5637
- navGroupId + '__' + caption + '__' + reportId
5638
- ]);
5639
- }
5640
- _routeToSelectedSystem() {
5641
- this._router.navigate(['application', this._selectedSystemId$.getValue()]);
5633
+ this._router.navigate(['application', 'report', navGroupId + '__' + caption + '__' + reportId]);
5642
5634
  }
5643
5635
  flattenLeafCommands(commands) {
5644
5636
  const result = [];