@wizishop/angular-components 14.4.59 → 14.4.61
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/services/history.service.mjs +5 -5
- package/esm2020/lib/wizi-components.module.mjs +2 -4
- package/fesm2015/wizishop-angular-components.mjs +5 -6
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +5 -6
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-14.4.61.tgz +0 -0
- package/wizishop-angular-components-14.4.59.tgz +0 -0
|
@@ -20,7 +20,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
20
20
|
import * as i4 from 'ngx-autosize';
|
|
21
21
|
import { AutosizeModule } from 'ngx-autosize';
|
|
22
22
|
import * as i1$3 from '@angular/router';
|
|
23
|
-
import {
|
|
23
|
+
import { NavigationStart, RouterModule } from '@angular/router';
|
|
24
24
|
import * as i2$1 from 'ngx-scrollbar';
|
|
25
25
|
import { NgScrollbarModule } from 'ngx-scrollbar';
|
|
26
26
|
import * as i3$1 from 'ngx-scrollbar/reached-event';
|
|
@@ -2574,11 +2574,11 @@ class HistoryService {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
registerHistory() {
|
|
2576
2576
|
this.router.events.subscribe((event) => {
|
|
2577
|
-
if (event instanceof
|
|
2578
|
-
if (this.history.length > 0 && this.history[this.history.length - 1] === event.
|
|
2577
|
+
if (event instanceof NavigationStart) {
|
|
2578
|
+
if (this.history.length > 0 && this.history[this.history.length - 1] === event.url.split('?')[0]) {
|
|
2579
2579
|
return;
|
|
2580
2580
|
}
|
|
2581
|
-
this.history.push(event.
|
|
2581
|
+
this.history.push(event.url.split('?')[0]);
|
|
2582
2582
|
console.log('history', this.history);
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
@@ -6134,7 +6134,7 @@ WiziComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
|
|
|
6134
6134
|
SharedDirectives,
|
|
6135
6135
|
SharedPipes,
|
|
6136
6136
|
NwbAllModule], exports: [SharedComponentsModule, SharedDirectives, SharedPipes] });
|
|
6137
|
-
WiziComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: WiziComponentsModule,
|
|
6137
|
+
WiziComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: WiziComponentsModule, imports: [CommonModule,
|
|
6138
6138
|
SharedComponentsModule,
|
|
6139
6139
|
SharedDirectives,
|
|
6140
6140
|
SharedPipes,
|
|
@@ -6149,7 +6149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
6149
6149
|
SharedPipes,
|
|
6150
6150
|
NwbAllModule
|
|
6151
6151
|
],
|
|
6152
|
-
providers: [HistoryService],
|
|
6153
6152
|
exports: [SharedComponentsModule, SharedDirectives, SharedPipes]
|
|
6154
6153
|
}]
|
|
6155
6154
|
}] });
|