@iapps/ng-dhis2-ui 1.1.3 → 1.1.4
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/fesm2022/iapps-ng-dhis2-ui.mjs +11 -1
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +3 -2
- package/lib/modules/form/utils/field-type.util.d.ts +1 -1
- package/lib/modules/form/utils/field.util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3633,8 +3633,18 @@ class DataTableUIComponent extends ReactWrapperModule {
|
|
|
3633
3633
|
this.component = this.DataTableUI;
|
|
3634
3634
|
this.render();
|
|
3635
3635
|
}
|
|
3636
|
+
ngOnChanges(changes) {
|
|
3637
|
+
console.log("THIS IS MORE");
|
|
3638
|
+
if (changes['data'] || changes['columnDefinitions']) {
|
|
3639
|
+
if (!this.elementRef)
|
|
3640
|
+
throw new Error('No element ref');
|
|
3641
|
+
this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
|
|
3642
|
+
this.component = this.DataTableUI;
|
|
3643
|
+
this.render();
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3636
3646
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: DataTableUIComponent, isStandalone: false, selector: "app-data-table-ui", inputs: { data: "data", columnDefinitions: "columnDefinitions", actionOptions: "actionOptions" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [""] }); }
|
|
3647
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: DataTableUIComponent, isStandalone: false, selector: "app-data-table-ui", inputs: { data: "data", columnDefinitions: "columnDefinitions", actionOptions: "actionOptions" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [""] }); }
|
|
3638
3648
|
}
|
|
3639
3649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIComponent, decorators: [{
|
|
3640
3650
|
type: Component,
|