@smartsoft001/angular 1.2.62 → 1.2.63
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/esm2020/lib/components/list/base/base.component.mjs +14 -10
- package/fesm2015/smartsoft001-angular.mjs +15 -11
- package/fesm2015/smartsoft001-angular.mjs.map +1 -1
- package/fesm2020/smartsoft001-angular.mjs +14 -10
- package/fesm2020/smartsoft001-angular.mjs.map +1 -1
- package/lib/components/list/base/base.component.d.ts +2 -2
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import decode from 'jwt-decode';
|
|
|
11
11
|
import * as i1 from 'ngx-cookie';
|
|
12
12
|
import { CookieModule } from 'ngx-cookie';
|
|
13
13
|
import * as i2 from '@ionic/angular';
|
|
14
|
-
import { IonicModule, IonSearchbar,
|
|
14
|
+
import { IonicModule, IonSearchbar, IonSegment } from '@ionic/angular';
|
|
15
15
|
import * as i1$4 from '@angular/common';
|
|
16
16
|
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
|
17
17
|
import { Storage } from '@ionic/storage';
|
|
@@ -28,7 +28,7 @@ import { of, Subject, BehaviorSubject, Subscription, combineLatest, isObservable
|
|
|
28
28
|
import { TableVirtualScrollDataSource } from 'ng-table-virtual-scroll';
|
|
29
29
|
import * as i1$2 from '@angular/platform-browser';
|
|
30
30
|
import * as i1$3 from '@angular/router';
|
|
31
|
-
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
|
31
|
+
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, Router, RouterModule } from '@angular/router';
|
|
32
32
|
import * as i2$2 from 'ng-dynamic-component';
|
|
33
33
|
import { DynamicModule } from 'ng-dynamic-component';
|
|
34
34
|
import * as i1$5 from 'ng2-charts';
|
|
@@ -5295,7 +5295,7 @@ var ListMode;
|
|
|
5295
5295
|
class ListBaseComponent {
|
|
5296
5296
|
constructor() {
|
|
5297
5297
|
this.authService = inject(AuthService);
|
|
5298
|
-
this.
|
|
5298
|
+
this.router = inject(Router);
|
|
5299
5299
|
this.alertService = inject(AlertService);
|
|
5300
5300
|
this.cd = inject(ChangeDetectorRef);
|
|
5301
5301
|
this.translateService = inject(TranslateService);
|
|
@@ -5344,13 +5344,17 @@ class ListBaseComponent {
|
|
|
5344
5344
|
if (val.item) {
|
|
5345
5345
|
if (!val.item['options'])
|
|
5346
5346
|
throw Error('Must set edit options');
|
|
5347
|
-
this.itemHandler =
|
|
5348
|
-
if (val.item['options'].routingPrefix)
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5347
|
+
this.itemHandler = (id) => {
|
|
5348
|
+
if (val.item['options'].routingPrefix) {
|
|
5349
|
+
setTimeout(async () => {
|
|
5350
|
+
await this.router.navigate([
|
|
5351
|
+
val.item['options'].routingPrefix.replace('//', '/'),
|
|
5352
|
+
id,
|
|
5353
|
+
]);
|
|
5354
|
+
this.cd.detectChanges();
|
|
5355
|
+
});
|
|
5356
|
+
}
|
|
5357
|
+
else if (val.item['options'].select)
|
|
5354
5358
|
val.item['options'].select(id);
|
|
5355
5359
|
};
|
|
5356
5360
|
}
|