@acorex/components 16.20.8 → 16.20.9
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.
|
@@ -2765,6 +2765,7 @@ class AXDataSourceReceivedEvent extends AXDataEvent {
|
|
|
2765
2765
|
class AXDataSourceComponent {
|
|
2766
2766
|
onDataReceived = new EventEmitter();
|
|
2767
2767
|
onFetchStart = new EventEmitter();
|
|
2768
|
+
onFetchError = new EventEmitter();
|
|
2768
2769
|
provideData;
|
|
2769
2770
|
params;
|
|
2770
2771
|
fetch(params) {
|
|
@@ -2777,7 +2778,8 @@ class AXDataSourceComponent {
|
|
|
2777
2778
|
params.extra = this.params;
|
|
2778
2779
|
}
|
|
2779
2780
|
//
|
|
2780
|
-
this.provideData(params)
|
|
2781
|
+
this.provideData(params)
|
|
2782
|
+
.then((_data) => {
|
|
2781
2783
|
const data = new AXDataSourceReceivedResult();
|
|
2782
2784
|
data.result = _data;
|
|
2783
2785
|
data.requestId = params == null ? null : params.requestId;
|
|
@@ -2785,6 +2787,9 @@ class AXDataSourceComponent {
|
|
|
2785
2787
|
component: this,
|
|
2786
2788
|
data: data,
|
|
2787
2789
|
});
|
|
2790
|
+
})
|
|
2791
|
+
.catch((err) => {
|
|
2792
|
+
this.onFetchError.emit({ component: this, data: err });
|
|
2788
2793
|
});
|
|
2789
2794
|
}
|
|
2790
2795
|
}
|
|
@@ -2796,7 +2801,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
2796
2801
|
args: [{
|
|
2797
2802
|
selector: 'ax-data-source',
|
|
2798
2803
|
template: '<ng-content></ng-content>',
|
|
2799
|
-
standalone: false
|
|
2804
|
+
standalone: false,
|
|
2800
2805
|
}]
|
|
2801
2806
|
}], propDecorators: { provideData: [{
|
|
2802
2807
|
type: Input
|
|
@@ -13948,6 +13953,9 @@ class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
|
13948
13953
|
handleValueChange(e) {
|
|
13949
13954
|
super.handleValueChange(e.value);
|
|
13950
13955
|
}
|
|
13956
|
+
navigate(value) {
|
|
13957
|
+
this.date.navigate(value);
|
|
13958
|
+
}
|
|
13951
13959
|
ngAfterViewInit() {
|
|
13952
13960
|
this.registerForValidationForm(this.date);
|
|
13953
13961
|
this.onRenderCompleted.emit();
|
|
@@ -13999,7 +14007,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
13999
14007
|
<ax-validation [rules]="validation?.rules"> </ax-validation>
|
|
14000
14008
|
</ax-date-picker>
|
|
14001
14009
|
`,
|
|
14002
|
-
standalone: false
|
|
14010
|
+
standalone: false,
|
|
14003
14011
|
}]
|
|
14004
14012
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { date: [{
|
|
14005
14013
|
type: ViewChild,
|