@iapps/ng-dhis2-ui 1.2.103 → 1.2.105
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 +604 -384
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +1306 -13
- package/package.json +1 -1
- package/lib/modules/breadcrumb/breadcrumb.module.d.ts +0 -8
- package/lib/modules/breadcrumb/components/breadcrumb-item.component.d.ts +0 -6
- package/lib/modules/breadcrumb/containers/breadcrumb.component.d.ts +0 -12
- package/lib/modules/breadcrumb/index.d.ts +0 -3
- package/lib/modules/breadcrumb/models/breadcrumb-item.model.d.ts +0 -6
- package/lib/modules/breadcrumb/models/index.d.ts +0 -1
- package/lib/modules/button/button.component.d.ts +0 -18
- package/lib/modules/button/button.module.d.ts +0 -9
- package/lib/modules/button/index.d.ts +0 -2
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.d.ts +0 -19
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/data-table-ui/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +0 -20
- package/lib/modules/data-table-ui/data-table-ui.module.d.ts +0 -10
- package/lib/modules/data-table-ui/hooks/index.d.ts +0 -1
- package/lib/modules/data-table-ui/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/data-table-ui/index.d.ts +0 -3
- package/lib/modules/data-table-ui/models/data-table.models.d.ts +0 -10
- package/lib/modules/event-form/event-form.component.d.ts +0 -21
- package/lib/modules/event-form/event-form.module.d.ts +0 -9
- package/lib/modules/event-form/index.d.ts +0 -2
- package/lib/modules/form/components/base-form-field.component.d.ts +0 -41
- package/lib/modules/form/components/file-upload-field.component.d.ts +0 -15
- package/lib/modules/form/components/form-field-item.component.d.ts +0 -6
- package/lib/modules/form/components/org-unit-form-field.component.d.ts +0 -20
- package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +0 -11
- package/lib/modules/form/containers/form/form.component.d.ts +0 -41
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +0 -59
- package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +0 -38
- package/lib/modules/form/containers/section-form/section-form.component.d.ts +0 -33
- package/lib/modules/form/form.module.d.ts +0 -16
- package/lib/modules/form/hooks/field-validation.hook.d.ts +0 -13
- package/lib/modules/form/hooks/index.d.ts +0 -1
- package/lib/modules/form/index.d.ts +0 -9
- package/lib/modules/form/interfaces/field-control-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +0 -7
- package/lib/modules/form/interfaces/field-type.interface.d.ts +0 -16
- package/lib/modules/form/interfaces/form-configuration.model.d.ts +0 -63
- package/lib/modules/form/interfaces/form-field-extension.interface.d.ts +0 -6
- package/lib/modules/form/interfaces/form-field-group.interface.d.ts +0 -15
- package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/form-field.interface.d.ts +0 -47
- package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +0 -10
- package/lib/modules/form/interfaces/form-metadata.interface.d.ts +0 -11
- package/lib/modules/form/interfaces/index.d.ts +0 -10
- package/lib/modules/form/models/boolean.model.d.ts +0 -5
- package/lib/modules/form/models/check-box.model.d.ts +0 -5
- package/lib/modules/form/models/date-field.model.d.ts +0 -7
- package/lib/modules/form/models/date-range-value.model.d.ts +0 -4
- package/lib/modules/form/models/dropdown-option.model.d.ts +0 -6
- package/lib/modules/form/models/dropdown.model.d.ts +0 -5
- package/lib/modules/form/models/field-config.model.d.ts +0 -5
- package/lib/modules/form/models/field-dropdown.model.d.ts +0 -10
- package/lib/modules/form/models/fields-data.model.d.ts +0 -8
- package/lib/modules/form/models/form-config.model.d.ts +0 -10
- package/lib/modules/form/models/form-field-group.model.d.ts +0 -23
- package/lib/modules/form/models/form-field.model.d.ts +0 -50
- package/lib/modules/form/models/form-metadata-rule.model.d.ts +0 -35
- package/lib/modules/form/models/form-metadata-section.model.d.ts +0 -33
- package/lib/modules/form/models/form-metadata.model.d.ts +0 -26
- package/lib/modules/form/models/form-value.model.d.ts +0 -19
- package/lib/modules/form/models/form.model.d.ts +0 -14
- package/lib/modules/form/models/index.d.ts +0 -17
- package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +0 -29
- package/lib/modules/form/shared/components/index.d.ts +0 -1
- package/lib/modules/form/shared/index.d.ts +0 -1
- package/lib/modules/form/utils/field-control-type.util.d.ts +0 -4
- package/lib/modules/form/utils/field-type.util.d.ts +0 -3
- package/lib/modules/form/utils/field.util.d.ts +0 -9
- package/lib/modules/form/utils/form-value.util.d.ts +0 -4
- package/lib/modules/form/utils/form.util.d.ts +0 -9
- package/lib/modules/form/utils/index.d.ts +0 -6
- package/lib/modules/form/utils/translation.util.d.ts +0 -3
- package/lib/modules/header-bar/header-bar.component.d.ts +0 -11
- package/lib/modules/header-bar/header-bar.module.d.ts +0 -9
- package/lib/modules/header-bar/index.d.ts +0 -2
- package/lib/modules/header-bar/models/header-bar-app.model.d.ts +0 -10
- package/lib/modules/header-bar/models/header-bar-data.model.d.ts +0 -16
- package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +0 -5
- package/lib/modules/header-bar/models/index.d.ts +0 -2
- package/lib/modules/header-bar/utils/apps.d.ts +0 -16
- package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +0 -15
- package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +0 -7
- package/lib/modules/header-bar/utils/header-bar-context.d.ts +0 -14
- package/lib/modules/header-bar/utils/header-bar.d.ts +0 -19
- package/lib/modules/header-bar/utils/join-path.d.ts +0 -1
- package/lib/modules/header-bar/utils/logo-image.d.ts +0 -8
- package/lib/modules/header-bar/utils/logo.d.ts +0 -12
- package/lib/modules/header-bar/utils/notification-icon.d.ts +0 -21
- package/lib/modules/header-bar/utils/notifications.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/index.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +0 -13
- package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +0 -14
- package/lib/modules/header-bar/utils/profile.d.ts +0 -18
- package/lib/modules/header-bar/utils/title.d.ts +0 -15
- package/lib/modules/line-list/components/data-table-actions/data-table-actions.d.ts +0 -9
- package/lib/modules/line-list/components/data-table-actions/index.d.ts +0 -1
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.d.ts +0 -12
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/line-list/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/line-list/components/org-unit-form-field.component.d.ts +0 -14
- package/lib/modules/line-list/components/orgUnitSelector.d.ts +0 -2
- package/lib/modules/line-list/components/table/filterToolbar.d.ts +0 -3
- package/lib/modules/line-list/components/table/lineListTable.d.ts +0 -2
- package/lib/modules/line-list/components/table/pagination.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableBody.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableCell.d.ts +0 -5
- package/lib/modules/line-list/components/table/tableFooter.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableHeader.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableRow.d.ts +0 -2
- package/lib/modules/line-list/containers/line-list.component.d.ts +0 -52
- package/lib/modules/line-list/hooks/index.d.ts +0 -1
- package/lib/modules/line-list/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/line-list/index.d.ts +0 -3
- package/lib/modules/line-list/line-list.module.d.ts +0 -10
- package/lib/modules/line-list/models/action-option-orientation.model.d.ts +0 -1
- package/lib/modules/line-list/models/attribute-filter.model.d.ts +0 -10
- package/lib/modules/line-list/models/dropdown-menu.model.d.ts +0 -9
- package/lib/modules/line-list/models/filter-config.model.d.ts +0 -6
- package/lib/modules/line-list/models/index.d.ts +0 -3
- package/lib/modules/line-list/models/line-list-action-option.model.d.ts +0 -6
- package/lib/modules/line-list/models/line-list.models.d.ts +0 -262
- package/lib/modules/line-list/services/line-list.service.d.ts +0 -13
- package/lib/modules/line-list/utils/event-table-data-util.d.ts +0 -6
- package/lib/modules/line-list/utils/tei-table-data-utils.d.ts +0 -9
- package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +0 -28
- package/lib/modules/organisation-unit-selector/components/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/components/utils/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.d.ts +0 -10
- package/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +0 -27
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +0 -30
- package/lib/modules/organisation-unit-selector/index.d.ts +0 -4
- package/lib/modules/organisation-unit-selector/models/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.d.ts +0 -13
- package/lib/modules/organisation-unit-selector/organisation-unit-selector.module.d.ts +0 -10
- package/lib/modules/period-selector/components/FixedPeriodFilter.d.ts +0 -18
- package/lib/modules/period-selector/components/PeriodDimension.d.ts +0 -15
- package/lib/modules/period-selector/components/PeriodTransfer.d.ts +0 -28
- package/lib/modules/period-selector/components/RelativePeriodFilter.d.ts +0 -11
- package/lib/modules/period-selector/components/utils/fixedPeriods.d.ts +0 -17
- package/lib/modules/period-selector/components/utils/index.d.ts +0 -4
- package/lib/modules/period-selector/components/utils/periodTypes.d.ts +0 -19
- package/lib/modules/period-selector/components/utils/relativePeriods.d.ts +0 -17
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +0 -21
- package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +0 -16
- package/lib/modules/period-selector/index.d.ts +0 -3
- package/lib/modules/period-selector/period-selector.module.d.ts +0 -10
- package/lib/modules/program-entry-form/index.d.ts +0 -2
- package/lib/modules/program-entry-form/models/index.d.ts +0 -3
- package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +0 -29
- package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +0 -16
- package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +0 -58
- package/lib/modules/program-entry-form/program-entry-form.component.d.ts +0 -38
- package/lib/modules/program-entry-form/utils/index.d.ts +0 -2
- package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +0 -80
- package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +0 -8
- package/lib/modules/react-wrapper/react-wrapper.component.d.ts +0 -17
- package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +0 -39
- package/lib/modules/selection-filters-ui/index.d.ts +0 -2
- package/lib/modules/selection-filters-ui/models/selection-filters-ui.model.d.ts +0 -54
- package/lib/modules/selection-filters-ui/selection-filters-ui.module.d.ts +0 -11
- package/lib/modules/tracker-form/index.d.ts +0 -2
- package/lib/modules/tracker-form/tracker-form.component.d.ts +0 -19
- package/lib/modules/tracker-form/tracker-form.module.d.ts +0 -9
- package/lib/shared/assets/AssignedCategoriesIcon.d.ts +0 -2
- package/lib/shared/assets/DimensionItemIcons/PeriodIcon.d.ts +0 -3
- package/lib/shared/components/index.d.ts +0 -1
- package/lib/shared/components/transfer-option.component.d.ts +0 -19
- package/lib/shared/hooks/dynamic-styles.hook.d.ts +0 -1
- package/lib/shared/hooks/index.d.ts +0 -1
- package/lib/shared/index.d.ts +0 -4
- package/lib/shared/shared.module.d.ts +0 -7
- package/lib/shared/styles/DimensionSelector.style.d.ts +0 -2
- package/lib/shared/styles/index.d.ts +0 -1
- package/lib/shared/utils/axis.d.ts +0 -11
- package/lib/shared/utils/axisGetDimension.d.ts +0 -1
- package/lib/shared/utils/axisHasDimension.d.ts +0 -1
- package/lib/shared/utils/dimension.d.ts +0 -55
- package/lib/shared/utils/dimensionGetItems.d.ts +0 -1
- package/lib/shared/utils/dimensionIs.d.ts +0 -1
- package/lib/shared/utils/dimensionIsEmpty.d.ts +0 -3
- package/lib/shared/utils/dimensionIsValid.d.ts +0 -3
- package/lib/shared/utils/dimensionSelectorHelper.d.ts +0 -3
- package/lib/shared/utils/index.d.ts +0 -11
- package/lib/shared/utils/layoutGetAllAxes.d.ts +0 -1
- package/lib/shared/utils/layoutGetAllDimensions.d.ts +0 -1
- package/lib/shared/utils/layoutGetDimension.d.ts +0 -1
- package/lib/shared/utils/layoutReplaceDimension.d.ts +0 -1
- package/lib/shared/utils/list.d.ts +0 -1
- package/lib/shared/utils/predefinedDimensions.d.ts +0 -67
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./containers/breadcrumb.component.tsx";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class BreadcrumbModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BreadcrumbModule, [typeof i1.BreadcrumbComponent], [typeof i2.CommonModule], [typeof i1.BreadcrumbComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BreadcrumbModule>;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component';
|
|
3
|
-
import { BreadcrumbItem } from '../models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BreadcrumbComponent extends ReactWrapperModule {
|
|
6
|
-
#private;
|
|
7
|
-
breadcrumbs: import("@angular/core").InputSignal<BreadcrumbItem[]>;
|
|
8
|
-
selectBreadcrumb: EventEmitter<BreadcrumbItem>;
|
|
9
|
-
ngAfterViewInit(): Promise<void>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ng-dhis2-ui-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; }, { "selectBreadcrumb": "selectBreadcrumb"; }, never, ["*"], false, never>;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './breadcrumb-item.model';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ReactWrapperModule } from '../react-wrapper/react-wrapper.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ButtonComponent extends ReactWrapperModule {
|
|
5
|
-
label: string;
|
|
6
|
-
primary?: boolean;
|
|
7
|
-
secondary?: boolean;
|
|
8
|
-
destructive?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
small?: boolean;
|
|
11
|
-
large?: boolean;
|
|
12
|
-
buttonClick: EventEmitter<any>;
|
|
13
|
-
ngAfterViewInit(): Promise<void>;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
onButtonClick(event: any): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ng-dhis2-ui-button", never, { "label": { "alias": "label"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "destructive": { "alias": "destructive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, ["*"], false, never>;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./button.component.tsx";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../../shared/shared.module";
|
|
5
|
-
export declare class ButtonModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule], [typeof i1.ButtonComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
9
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface DropdownMenuOption {
|
|
3
|
-
id?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
icon?: any;
|
|
7
|
-
destructive?: boolean;
|
|
8
|
-
onClick?: Function;
|
|
9
|
-
}
|
|
10
|
-
export declare const ContextMenu: (params: {
|
|
11
|
-
dropDownOptions: DropdownMenuOption[];
|
|
12
|
-
anchorRef: any;
|
|
13
|
-
onClose: Function;
|
|
14
|
-
onMenuClick: (dropdownOption: DropdownMenuOption) => void;
|
|
15
|
-
}) => React.JSX.Element;
|
|
16
|
-
export declare const DropdownMenu: (props: {
|
|
17
|
-
dropdownOptions: DropdownMenuOption[];
|
|
18
|
-
onClick: (dropdownOption: DropdownMenuOption) => void;
|
|
19
|
-
}) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dropdown-menu';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
|
-
import { ColumnDefinition, TableRow } from '../../models/data-table.models';
|
|
5
|
-
import { DropdownMenuOption } from '../../components/dropdown-menu';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DataTableUIComponent extends ReactWrapperModule implements AfterViewInit, OnChanges {
|
|
8
|
-
data: TableRow[];
|
|
9
|
-
columnDefinitions: ColumnDefinition[];
|
|
10
|
-
actionOptions?: DropdownMenuOption[];
|
|
11
|
-
actionSelected: EventEmitter<{
|
|
12
|
-
action: string;
|
|
13
|
-
row: TableRow;
|
|
14
|
-
}>;
|
|
15
|
-
DataTableUI: () => React.JSX.Element;
|
|
16
|
-
ngAfterViewInit(): Promise<void>;
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableUIComponent, never>;
|
|
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>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./containers/data-table-ui/data-table-ui.component.tsx";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../../shared/shared.module";
|
|
5
|
-
import * as i4 from "../react-wrapper/react-wrapper.component.tsx";
|
|
6
|
-
export declare class DataTableUIModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableUIModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DataTableUIModule, [typeof i1.DataTableUIComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule, typeof i4.ReactWrapperModule], [typeof i1.DataTableUIComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DataTableUIModule>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './use-dynamic-styles.hook';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDynamicStyles: <T extends Record<string, React.CSSProperties | any>>(stylesObj: T) => { [K in keyof T]: string; };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseEventQuery, DHIS2Event } from '@iapps/d2-web-sdk';
|
|
3
|
-
import { IFormMetadata } from '../form';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EventFormComponent implements OnInit {
|
|
6
|
-
program: import("@angular/core").InputSignal<string>;
|
|
7
|
-
programStage: import("@angular/core").InputSignal<string>;
|
|
8
|
-
eventId: import("@angular/core").InputSignal<string>;
|
|
9
|
-
enrollment: import("@angular/core").InputSignal<string>;
|
|
10
|
-
trackedEntity: import("@angular/core").InputSignal<string>;
|
|
11
|
-
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
12
|
-
eventQuery: BaseEventQuery<DHIS2Event>;
|
|
13
|
-
formMetaData: IFormMetadata;
|
|
14
|
-
instance: DHIS2Event;
|
|
15
|
-
ngOnInit(): Promise<void>;
|
|
16
|
-
onFormUpdate(values: any): void;
|
|
17
|
-
onSave(event: any): void;
|
|
18
|
-
onCancel(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EventFormComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EventFormComponent, "ng-dhis2-ui-event-form", never, { "program": { "alias": "program"; "required": true; "isSignal": true; }; "programStage": { "alias": "programStage"; "required": true; "isSignal": true; }; "eventId": { "alias": "eventId"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./event-form.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../form/form.module";
|
|
5
|
-
export declare class EventFormModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EventFormModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EventFormModule, [typeof i1.EventFormComponent], [typeof i2.CommonModule, typeof i3.D2FormModule], [typeof i1.EventFormComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<EventFormModule>;
|
|
9
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, NgZone, Signal } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component';
|
|
5
|
-
import { IFormField } from '../interfaces';
|
|
6
|
-
import { FieldConfig } from '../models';
|
|
7
|
-
import { CustomOrgUnitConfig } from './org-unit-form-field.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
10
|
-
#private;
|
|
11
|
-
ngZone: NgZone;
|
|
12
|
-
fieldType: string;
|
|
13
|
-
field: import("@angular/core").InputSignal<IFormField<string>>;
|
|
14
|
-
fieldError: import("@angular/core").InputSignal<string>;
|
|
15
|
-
fieldConfig: import("@angular/core").InputSignal<FieldConfig>;
|
|
16
|
-
form: import("@angular/core").ModelSignal<FormGroup<any>>;
|
|
17
|
-
isValid: import("@angular/core").InputSignal<boolean>;
|
|
18
|
-
isValueAssigned: import("@angular/core").InputSignal<boolean>;
|
|
19
|
-
dataId: import("@angular/core").InputSignal<string>;
|
|
20
|
-
customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
|
|
21
|
-
value: import("@angular/core").ModelSignal<string>;
|
|
22
|
-
protected value$: import("rxjs").Observable<string>;
|
|
23
|
-
protected isValueAssigned$: import("rxjs").Observable<boolean>;
|
|
24
|
-
protected fieldError$: import("rxjs").Observable<string>;
|
|
25
|
-
label: Signal<string | undefined>;
|
|
26
|
-
placeholder: Signal<string>;
|
|
27
|
-
InputField: () => React.JSX.Element;
|
|
28
|
-
update: EventEmitter<{
|
|
29
|
-
form: FormGroup;
|
|
30
|
-
value: any;
|
|
31
|
-
}>;
|
|
32
|
-
immediateUpdate: EventEmitter<{
|
|
33
|
-
form: FormGroup;
|
|
34
|
-
value: any;
|
|
35
|
-
}>;
|
|
36
|
-
ngAfterViewInit(): Promise<void>;
|
|
37
|
-
onChange(event: any): void;
|
|
38
|
-
searchForDuplicates(value: string): Promise<boolean>;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormFieldComponent, never>;
|
|
40
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
41
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormFieldExtension } from '../interfaces';
|
|
3
|
-
export declare const FileUploadField: (props: {
|
|
4
|
-
label?: string;
|
|
5
|
-
id: string;
|
|
6
|
-
fileId?: string;
|
|
7
|
-
performUpload?: boolean;
|
|
8
|
-
hasError?: boolean;
|
|
9
|
-
uploadUrl?: string;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
validationText?: string;
|
|
12
|
-
onChange?: (files: any[]) => void;
|
|
13
|
-
onUploadSuccess?: (fileId: string) => void;
|
|
14
|
-
extension?: FormFieldExtension;
|
|
15
|
-
}) => React.JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseFormFieldComponent } from './base-form-field.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormFieldItemComponent extends BaseFormFieldComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldItemComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldItemComponent, "ng-dhis2-ui-form-field-item", never, {}, {}, never, ["*"], false, never>;
|
|
6
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type CustomOrgUnitConfig = {
|
|
3
|
-
field: string;
|
|
4
|
-
orgUnit: string;
|
|
5
|
-
};
|
|
6
|
-
type Props = {
|
|
7
|
-
key: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
field: string;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
onSelectOrgUnit: (selectedOrgUnits: any) => void;
|
|
12
|
-
onBlur?: (selectedOrgUnit: Record<string, unknown>) => void;
|
|
13
|
-
selected?: string;
|
|
14
|
-
maxTreeHeight?: number;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
customOrgUnitRoots?: CustomOrgUnitConfig[];
|
|
17
|
-
previousOrgUnitId?: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const OrgUnitFormField: (props: Props) => React.JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { BaseFormWrapperComponent } from '../../shared';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FlatFormComponent extends BaseFormWrapperComponent implements OnInit {
|
|
6
|
-
formGroup: FormGroup;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
onFormUpdate(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlatFormComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlatFormComponent, "ng-dhis2-ui-flat-form", never, {}, {}, never, never, false, never>;
|
|
11
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { EffectRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FieldsData, FormConfig, IMetadataRuleAction } from '../../models';
|
|
4
|
-
import { FormFieldComponent } from '../form-field/form-field.component';
|
|
5
|
-
import { IFormField } from '../../interfaces';
|
|
6
|
-
import { CustomOrgUnitConfig } from '../../components/org-unit-form-field.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
9
|
-
#private;
|
|
10
|
-
formConfig: import("@angular/core").InputSignal<FormConfig>;
|
|
11
|
-
fields: import("@angular/core").InputSignal<IFormField<string>[]>;
|
|
12
|
-
form: import("@angular/core").InputSignal<FormGroup<any>>;
|
|
13
|
-
isFormHorizontal: import("@angular/core").InputSignal<boolean>;
|
|
14
|
-
showSaveButton: import("@angular/core").InputSignal<boolean>;
|
|
15
|
-
fieldsData: import("@angular/core").InputSignal<FieldsData>;
|
|
16
|
-
fieldClass: import("@angular/core").InputSignal<string>;
|
|
17
|
-
shouldRenderAsCheckBoxesButton: import("@angular/core").InputSignal<boolean>;
|
|
18
|
-
programRuleActions: import("@angular/core").InputSignal<IMetadataRuleAction[]>;
|
|
19
|
-
dataEntities: import("@angular/core").InputSignal<any>;
|
|
20
|
-
dataId: import("@angular/core").InputSignal<string>;
|
|
21
|
-
customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
|
|
22
|
-
configuration: import("@angular/core").Signal<FormConfig>;
|
|
23
|
-
formUpdate: EventEmitter<any>;
|
|
24
|
-
formValidityUpdate: EventEmitter<boolean>;
|
|
25
|
-
fieldComponents: FormFieldComponent[];
|
|
26
|
-
values: any;
|
|
27
|
-
get sanitizedFields(): IFormField<string>[];
|
|
28
|
-
get layoutCssClass(): string;
|
|
29
|
-
ruleProcessor: EffectRef;
|
|
30
|
-
constructor();
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
-
onSubmit(): void;
|
|
34
|
-
onFieldUpdate(form: FormGroup, field: IFormField<string>): void;
|
|
35
|
-
onClear(): void;
|
|
36
|
-
isFormInValid(): boolean;
|
|
37
|
-
onRunTimeOptionUpdate(result: any): void;
|
|
38
|
-
ngOnDestroy(): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
41
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { EffectRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { IFormField } from '../../interfaces';
|
|
5
|
-
import { FieldConfig, IMetadataRuleAction } from '../../models';
|
|
6
|
-
import { CustomOrgUnitConfig } from '../../components/org-unit-form-field.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
9
|
-
#private;
|
|
10
|
-
field: import("@angular/core").InputSignal<IFormField<string>>;
|
|
11
|
-
fieldConfig: import("@angular/core").InputSignal<FieldConfig>;
|
|
12
|
-
form: FormGroup;
|
|
13
|
-
isCheckBoxButton: import("@angular/core").InputSignal<boolean>;
|
|
14
|
-
fieldClass: import("@angular/core").InputSignal<string>;
|
|
15
|
-
programRuleActions: import("@angular/core").InputSignal<IMetadataRuleAction[]>;
|
|
16
|
-
dataEntities: import("@angular/core").InputSignal<any>;
|
|
17
|
-
minDate: import("@angular/core").InputSignal<any>;
|
|
18
|
-
maxDate: import("@angular/core").InputSignal<Date>;
|
|
19
|
-
dataId: import("@angular/core").InputSignal<string>;
|
|
20
|
-
customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
|
|
21
|
-
color: string;
|
|
22
|
-
fieldUpdate: EventEmitter<FormGroup>;
|
|
23
|
-
immediateFieldUpdate: EventEmitter<{
|
|
24
|
-
value: string;
|
|
25
|
-
}>;
|
|
26
|
-
runtimeOptionChange: EventEmitter<any>;
|
|
27
|
-
value: import("@angular/core").WritableSignal<any>;
|
|
28
|
-
runtimeError: import("@angular/core").WritableSignal<string>;
|
|
29
|
-
private _runtimeOptions;
|
|
30
|
-
runtimeOptions: any;
|
|
31
|
-
fieldFilterControl: FormControl;
|
|
32
|
-
protected _onDestroy: Subject<void>;
|
|
33
|
-
optionSearchTerm: string;
|
|
34
|
-
isValueAssigned: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
-
ruleProcessor: EffectRef;
|
|
36
|
-
constructor();
|
|
37
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
-
ngOnInit(): void;
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
get isValid(): boolean;
|
|
41
|
-
get fieldError(): string | undefined;
|
|
42
|
-
get minErrorText(): string | undefined;
|
|
43
|
-
get maxErrorText(): string | undefined;
|
|
44
|
-
get isInvalid(): boolean;
|
|
45
|
-
get isDate(): boolean;
|
|
46
|
-
get isDateTime(): boolean;
|
|
47
|
-
get isBoolean(): boolean;
|
|
48
|
-
get isCheckbox(): boolean;
|
|
49
|
-
get isCommonField(): boolean;
|
|
50
|
-
get fieldId(): string;
|
|
51
|
-
onValueChange(): void;
|
|
52
|
-
onImmediateChange(event: {
|
|
53
|
-
value: string;
|
|
54
|
-
}): void;
|
|
55
|
-
onFieldUpdate(e?: any, isDate?: boolean, isDateTime?: boolean): void;
|
|
56
|
-
onUpdateRuntimeOptions(options: any[]): void;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "ng-dhis2-ui-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "isCheckBoxButton": { "alias": "isCheckBoxButton"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "fieldUpdate": "fieldUpdate"; "immediateFieldUpdate": "immediateFieldUpdate"; "runtimeOptionChange": "runtimeOptionChange"; }, never, never, false, never>;
|
|
59
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { IFormFieldGroup } from '../../interfaces';
|
|
4
|
-
import { FormValue } from '../../models';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class RepeatableFormComponent implements OnInit {
|
|
7
|
-
#private;
|
|
8
|
-
ngZone: NgZone;
|
|
9
|
-
formObject: any;
|
|
10
|
-
formData: any;
|
|
11
|
-
fieldGroup: import("@angular/core").InputSignal<IFormFieldGroup>;
|
|
12
|
-
form: FormGroup;
|
|
13
|
-
numberOfRows: number | string;
|
|
14
|
-
programRuleActions: any[];
|
|
15
|
-
events: import("@angular/core").ModelSignal<unknown>;
|
|
16
|
-
program: string;
|
|
17
|
-
programStage: string;
|
|
18
|
-
repeatDependentField: string;
|
|
19
|
-
dataEntities: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
20
|
-
repeatableEvents: any[];
|
|
21
|
-
repeatableData: {
|
|
22
|
-
[index: number]: FormValue;
|
|
23
|
-
};
|
|
24
|
-
repeatableStageUpdate: EventEmitter<any>;
|
|
25
|
-
repeatableFormEntities: {
|
|
26
|
-
[event: string]: FormGroup;
|
|
27
|
-
};
|
|
28
|
-
eventForm: FormGroup;
|
|
29
|
-
eventFormValue: import("@angular/core").WritableSignal<FormValue>;
|
|
30
|
-
showForm: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
-
eventIndex: import("@angular/core").WritableSignal<number>;
|
|
32
|
-
constructor();
|
|
33
|
-
get isValid(): boolean;
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
onFormUpdate(formValue: FormValue): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatableFormComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RepeatableFormComponent, "ng-dhis2-ui-repeatable-form", never, { "formObject": { "alias": "formObject"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "fieldGroup": { "alias": "fieldGroup"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "numberOfRows": { "alias": "numberOfRows"; "required": false; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; }; "events": { "alias": "events"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; }; "programStage": { "alias": "programStage"; "required": false; }; "repeatDependentField": { "alias": "repeatDependentField"; "required": false; }; "dataEntities": { "alias": "dataEntities"; "required": true; "isSignal": true; }; }, { "events": "eventsChange"; "repeatableStageUpdate": "repeatableStageUpdate"; }, never, never, false, never>;
|
|
38
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { IFormFieldGroup, IFormMetadata } from '../../interfaces';
|
|
5
|
-
import { FormValue } from '../../models';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SectionFormComponent implements OnInit {
|
|
8
|
-
#private;
|
|
9
|
-
ngZone: NgZone;
|
|
10
|
-
loading: import("@angular/core").InputSignal<boolean>;
|
|
11
|
-
isloading: boolean;
|
|
12
|
-
formMetaData: import("@angular/core").InputSignal<IFormMetadata>;
|
|
13
|
-
dataValueEntities: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
14
|
-
formGroups: Record<string, FormGroup>;
|
|
15
|
-
formValueEntity: Record<string, FormValue>;
|
|
16
|
-
repeatableFormValueEntity: Record<string, Record<number, FormValue>>;
|
|
17
|
-
ruleActions: import("@angular/core").WritableSignal<any[]>;
|
|
18
|
-
save: EventEmitter<Record<string, unknown>>;
|
|
19
|
-
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
20
|
-
cancel: EventEmitter<any>;
|
|
21
|
-
formValidityUpdate: EventEmitter<boolean>;
|
|
22
|
-
inValid: import("@angular/core").WritableSignal<boolean>;
|
|
23
|
-
inValid$: Observable<boolean>;
|
|
24
|
-
constructor();
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
onUpdateRepeatableStage(repeatableData: Record<number, FormValue>, fieldGroup: IFormFieldGroup): void;
|
|
27
|
-
onFormUpdate(formValue: FormValue, fieldGroupId: string): void;
|
|
28
|
-
onSubmit(): void;
|
|
29
|
-
onCancel(event?: MouseEvent): void;
|
|
30
|
-
checkIfInValid(): boolean;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SectionFormComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionFormComponent, "ng-dhis2-ui-section-form", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": true; "isSignal": true; }; "dataValueEntities": { "alias": "dataValueEntities"; "required": true; "isSignal": true; }; }, { "save": "save"; "formUpdate": "formUpdate"; "cancel": "cancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./containers/form-field/form-field.component";
|
|
3
|
-
import * as i2 from "./containers/form/form.component";
|
|
4
|
-
import * as i3 from "./containers/repeatable-form/repeatable-form.component";
|
|
5
|
-
import * as i4 from "./containers/section-form/section-form.component";
|
|
6
|
-
import * as i5 from "./containers/flat-form/flat-form.component";
|
|
7
|
-
import * as i6 from "./components/form-field-item.component";
|
|
8
|
-
import * as i7 from "@angular/common";
|
|
9
|
-
import * as i8 from "@angular/forms";
|
|
10
|
-
import * as i9 from "../react-wrapper/react-wrapper.component.tsx";
|
|
11
|
-
import * as i10 from "../organisation-unit-selector/organisation-unit-selector.module";
|
|
12
|
-
export declare class D2FormModule {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<D2FormModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<D2FormModule, [typeof i1.FormFieldComponent, typeof i2.FormComponent, typeof i3.RepeatableFormComponent, typeof i4.SectionFormComponent, typeof i5.FlatFormComponent, typeof i6.FormFieldItemComponent], [typeof i7.CommonModule, typeof i8.ReactiveFormsModule, typeof i9.ReactWrapperModule, typeof i10.OrganisationUnitSelectorModule], [typeof i1.FormFieldComponent, typeof i2.FormComponent, typeof i3.RepeatableFormComponent, typeof i4.SectionFormComponent, typeof i5.FlatFormComponent]>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<D2FormModule>;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
import { IFormField } from '../interfaces';
|
|
3
|
-
export declare const useFieldValidation: (props: {
|
|
4
|
-
form: FormGroup;
|
|
5
|
-
field: IFormField<string>;
|
|
6
|
-
touched: boolean;
|
|
7
|
-
value: string;
|
|
8
|
-
initialError?: string;
|
|
9
|
-
recordExistError?: string;
|
|
10
|
-
}) => {
|
|
11
|
-
validationError: any;
|
|
12
|
-
hasError: boolean;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './field-validation.hook';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './form.module';
|
|
2
|
-
export * from './containers/form-field/form-field.component';
|
|
3
|
-
export * from './containers/form/form.component';
|
|
4
|
-
export * from './containers/repeatable-form/repeatable-form.component';
|
|
5
|
-
export * from './containers/section-form/section-form.component';
|
|
6
|
-
export * from './containers/flat-form/flat-form.component';
|
|
7
|
-
export * from './models';
|
|
8
|
-
export * from './interfaces';
|
|
9
|
-
export * from './utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'transfer' | 'search';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum FieldType {
|
|
2
|
-
TEXT = "TEXT",
|
|
3
|
-
MULTI_TEXT = "MULTI_TEXT",
|
|
4
|
-
TRUE_ONLY = "TRUE_ONLY",
|
|
5
|
-
LONG_TEXT = "LONG_TEXT",
|
|
6
|
-
BOOLEAN = "BOOLEAN",
|
|
7
|
-
NUMBER = "NUMBER",
|
|
8
|
-
INTEGER_ZERO_OR_POSITIVE = "INTEGER_ZERO_OR_POSITIVE",
|
|
9
|
-
IMAGE = "IMAGE",
|
|
10
|
-
FILE_RESOURCE = "FILE_RESOURCE",
|
|
11
|
-
DATE = "DATE",
|
|
12
|
-
DATE_TIME = "DATETIME",
|
|
13
|
-
ORG_UNIT = "ORGANISATION_UNIT",
|
|
14
|
-
PHONE_NUMBER = "PHONE_NUMBER",
|
|
15
|
-
EMAIL = "EMAIL"
|
|
16
|
-
}
|