@iapps/ng-dhis2-ui 1.0.5 → 1.0.7
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/README.md +60 -3
- package/esm2022/lib/modules/button/button.component.mjs +3 -3
- package/esm2022/lib/modules/button/button.module.mjs +4 -4
- package/esm2022/lib/modules/header-bar/header-bar.component.mjs +3 -3
- package/esm2022/lib/modules/header-bar/header-bar.module.mjs +4 -4
- package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.mjs +11 -8
- package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.mjs +3 -3
- package/esm2022/lib/modules/organisation-unit-selector/organisation-unit-selector.module.mjs +4 -4
- package/esm2022/lib/modules/period-selector/containers/period-selector/period-selector.component.mjs +11 -8
- package/esm2022/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.mjs +3 -3
- package/esm2022/lib/modules/period-selector/period-selector.module.mjs +4 -4
- package/esm2022/lib/modules/react-wrapper/react-wrapper.component.mjs +16 -16
- package/esm2022/lib/modules/react-wrapper/react-wrapper.module.mjs +4 -4
- package/esm2022/lib/shared/shared.module.mjs +4 -4
- package/esm2022/lib/shared/utils/dimensionIsEmpty.mjs +1 -1
- package/esm2022/lib/shared/utils/dimensionIsValid.mjs +3 -2
- package/fesm2022/iapps-ng-dhis2-ui.mjs +73 -66
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +3 -2
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +3 -2
- package/lib/shared/utils/axis.d.ts +1 -1
- package/lib/shared/utils/dimension.d.ts +20 -10
- package/lib/shared/utils/dimensionIsEmpty.d.ts +3 -1
- package/lib/shared/utils/dimensionIsValid.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
3
|
import { ReactWrapperComponent } from '../../../react-wrapper';
|
|
4
4
|
import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
|
|
@@ -9,11 +9,12 @@ type OrganisationUnitSelectionEvent = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
|
|
11
11
|
private httpClient;
|
|
12
|
+
private ngZone;
|
|
12
13
|
selectedOrgUnits: any[];
|
|
13
14
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
14
15
|
selectOrgUnits: EventEmitter<any>;
|
|
15
16
|
props: Record<string, unknown>;
|
|
16
|
-
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
|
|
17
|
+
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService, ngZone: NgZone);
|
|
17
18
|
ngAfterViewInit(): Promise<void>;
|
|
18
19
|
private getAppConfig;
|
|
19
20
|
getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
|
package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
3
|
import { ReactWrapperComponent } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,10 +8,11 @@ type PeriodSelectionEvent = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class PeriodSelectorComponent extends ReactWrapperComponent {
|
|
10
10
|
private httpClient;
|
|
11
|
+
private ngZone;
|
|
11
12
|
selectedPeriods: any[];
|
|
12
13
|
selectPeriods: EventEmitter<any>;
|
|
13
14
|
props: Record<string, unknown>;
|
|
14
|
-
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
|
|
15
|
+
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService, ngZone: NgZone);
|
|
15
16
|
ngAfterViewInit(): Promise<void>;
|
|
16
17
|
onSelectItems(selectionEvent: PeriodSelectionEvent): void;
|
|
17
18
|
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
@@ -1,45 +1,55 @@
|
|
|
1
1
|
export declare const DIMENSION: {
|
|
2
|
-
isValid: (dimension: any) =>
|
|
2
|
+
isValid: (dimension: any) => dimension is object;
|
|
3
3
|
};
|
|
4
4
|
export declare const DIMENSION_PROP_ID: {
|
|
5
5
|
name: string;
|
|
6
6
|
defaultValue: string;
|
|
7
7
|
required: boolean;
|
|
8
|
-
isValid: (prop: any) =>
|
|
8
|
+
isValid: (prop: any) => prop is string;
|
|
9
9
|
};
|
|
10
10
|
export declare const DIMENSION_PROP_ITEMS: {
|
|
11
11
|
name: string;
|
|
12
12
|
defaultValue: any[];
|
|
13
13
|
required: boolean;
|
|
14
|
-
isValid: (prop: any) =>
|
|
14
|
+
isValid: (prop: any) => prop is any[];
|
|
15
15
|
};
|
|
16
16
|
export declare const DIMENSION_PROP_FILTER: {
|
|
17
17
|
name: string;
|
|
18
18
|
defaultValue: any[];
|
|
19
19
|
required: boolean;
|
|
20
|
-
isValid: (prop: any) =>
|
|
20
|
+
isValid: (prop: any) => prop is string;
|
|
21
21
|
};
|
|
22
22
|
export declare const DIMENSION_PROP_LEGEND_SET: {
|
|
23
23
|
name: string;
|
|
24
24
|
defaultValue: any[];
|
|
25
25
|
required: boolean;
|
|
26
|
-
isValid: (prop: any) =>
|
|
26
|
+
isValid: (prop: any) => prop is string;
|
|
27
27
|
};
|
|
28
28
|
export declare const DIMENSION_PROP_PROGRAM_STAGE: {
|
|
29
29
|
name: string;
|
|
30
30
|
defaultValue: {};
|
|
31
31
|
required: boolean;
|
|
32
|
-
isValid: (prop: any) =>
|
|
32
|
+
isValid: (prop: any) => prop is object;
|
|
33
33
|
};
|
|
34
34
|
export declare const DIMENSION_PROP_REPETITION: {
|
|
35
35
|
name: string;
|
|
36
36
|
defaultValue: any[];
|
|
37
37
|
required: boolean;
|
|
38
|
-
isValid: (prop: any) =>
|
|
38
|
+
isValid: (prop: any) => prop is any[];
|
|
39
39
|
};
|
|
40
|
-
export declare const DIMENSION_PROPS: {
|
|
40
|
+
export declare const DIMENSION_PROPS: ({
|
|
41
|
+
name: string;
|
|
42
|
+
defaultValue: string;
|
|
43
|
+
required: boolean;
|
|
44
|
+
isValid: (prop: any) => prop is string;
|
|
45
|
+
} | {
|
|
46
|
+
name: string;
|
|
47
|
+
defaultValue: any[];
|
|
48
|
+
required: boolean;
|
|
49
|
+
isValid: (prop: any) => prop is string;
|
|
50
|
+
} | {
|
|
41
51
|
name: string;
|
|
42
52
|
defaultValue: {};
|
|
43
53
|
required: boolean;
|
|
44
|
-
isValid: (prop: any) =>
|
|
45
|
-
}[];
|
|
54
|
+
isValid: (prop: any) => prop is object;
|
|
55
|
+
})[];
|