@iapps/ng-dhis2-ui 1.1.3 → 1.1.5
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 +40 -18
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import { ColumnDefinition, TableRow } from '../../models/data-table.models';
|
|
5
5
|
import { DropdownMenuOption } from '../../components/dropdown-menu';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DataTableUIComponent extends ReactWrapperModule implements AfterViewInit {
|
|
7
|
+
export declare class DataTableUIComponent extends ReactWrapperModule implements AfterViewInit, OnChanges {
|
|
8
8
|
data: TableRow[];
|
|
9
9
|
columnDefinitions: ColumnDefinition[];
|
|
10
10
|
actionOptions?: DropdownMenuOption[];
|
|
@@ -14,6 +14,7 @@ export declare class DataTableUIComponent extends ReactWrapperModule implements
|
|
|
14
14
|
}>;
|
|
15
15
|
DataTableUI: () => React.JSX.Element;
|
|
16
16
|
ngAfterViewInit(): Promise<void>;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableUIComponent, never>;
|
|
18
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableUIComponent, "app-data-table-ui", never, { "data": { "alias": "data"; "required": false; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
19
20
|
}
|
|
@@ -3,7 +3,7 @@ import { DropdownOption } from '../models';
|
|
|
3
3
|
export declare class FieldUtil {
|
|
4
4
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
5
5
|
static sanitizeOptions(options: any[]): any;
|
|
6
|
-
static getFieldType(valueType: string): "date" | "org-unit" | "file" | "tel" | "
|
|
6
|
+
static getFieldType(valueType: string): "number" | "date" | "org-unit" | "file" | "tel" | "text";
|
|
7
7
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
8
|
static getOptionEntities?(options: any[]): any;
|
|
9
9
|
}
|