@iapps/ng-dhis2-ui 1.2.139 → 1.2.140
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/index.d.ts
CHANGED
|
@@ -964,6 +964,18 @@ interface OptionsPathCascadeConfig extends CascadeConfigBase {
|
|
|
964
964
|
*/
|
|
965
965
|
parentValueType?: ParentValueType;
|
|
966
966
|
}
|
|
967
|
+
/** Discriminated union of all supported cascade configs */
|
|
968
|
+
type CascadeConfig = OptionsPathCascadeConfig;
|
|
969
|
+
/** Form-level configuration as an array */
|
|
970
|
+
type CascadeConfigList = ReadonlyArray<CascadeConfig>;
|
|
971
|
+
/** Optional: fast lookup map by child fieldId */
|
|
972
|
+
type CascadeConfigMap = Readonly<Record<FieldId, CascadeConfig>>;
|
|
973
|
+
/**
|
|
974
|
+
* Centralized defaults for OPTIONS_PATH
|
|
975
|
+
* (keep defaults here, merge in util).
|
|
976
|
+
*/
|
|
977
|
+
declare const DEFAULT_OPTIONS_PATH_CASCADE: Required<Pick<OptionsPathCascadeConfig, 'optionPathSeparator' | 'parentMatchMode' | 'childPathField' | 'parentValueType' | 'disableUntilParentSelected' | 'clearOnParentChange' | 'allowAllIfParentMissing'>>;
|
|
978
|
+
type OptionsPathCascadeConfigMap = Readonly<Record<FieldId, OptionsPathCascadeConfig>>;
|
|
967
979
|
|
|
968
980
|
/** ---------------- Types ---------------- */
|
|
969
981
|
type CoordinateAccuracySource = 'MANUAL' | 'DEVICE' | 'UNKNOWN';
|
|
@@ -1600,14 +1612,14 @@ declare class ProgramEntryFormModule {
|
|
|
1600
1612
|
metaData: _angular_core.WritableSignal<IProgramEntryFormMetaData>;
|
|
1601
1613
|
isFormValid: _angular_core.WritableSignal<boolean>;
|
|
1602
1614
|
isFormValid$: Observable<boolean>;
|
|
1603
|
-
instance: _angular_core.WritableSignal<
|
|
1615
|
+
instance: _angular_core.WritableSignal<DHIS2Event | TrackedEntityInstance>;
|
|
1604
1616
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1605
1617
|
preprocess: _angular_core.InputSignal<(payload: {
|
|
1606
1618
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1607
1619
|
}) => void>;
|
|
1608
|
-
instanceSave: EventEmitter<
|
|
1620
|
+
instanceSave: EventEmitter<DHIS2Event | TrackedEntityInstance>;
|
|
1609
1621
|
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1610
|
-
instanceUpdate: EventEmitter<
|
|
1622
|
+
instanceUpdate: EventEmitter<DHIS2Event | TrackedEntityInstance>;
|
|
1611
1623
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1612
1624
|
formCancel: EventEmitter<any>;
|
|
1613
1625
|
FormLoader: () => React.JSX.Element;
|
|
@@ -1621,5 +1633,5 @@ declare class ProgramEntryFormModule {
|
|
|
1621
1633
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgramEntryFormModule, "ng-dhis2-ui-program-entry-form", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; "event": { "alias": "event"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "orgUnit": { "alias": "orgUnit"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": false; "isSignal": true; }; "collapsibleSections": { "alias": "collapsibleSections"; "required": false; "isSignal": true; }; "preprocess": { "alias": "preprocess"; "required": false; "isSignal": true; }; }, { "instanceSave": "instanceSave"; "instanceSaveCompleted": "instanceSaveCompleted"; "instanceUpdate": "instanceUpdate"; "formValidityUpdate": "formValidityUpdate"; "formCancel": "formCancel"; }, never, never, true, never>;
|
|
1622
1634
|
}
|
|
1623
1635
|
|
|
1624
|
-
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CheckBox, D2FormModule, DEFAULT_KEYWORD_TO_LEVEL, DataTableUIComponent, DataTableUIModule, DateField, DateRangeValue, Dropdown, EventFormComponent, EventFormModule, FACILITY_KEYWORDS, FieldConfig, FieldControlTypeUtil, FieldDropdown, FieldType, FieldUtil, FlatFormComponent, FormComponent, FormConfig, FormField, FormFieldComponent, FormFieldGroup, FormFieldTypeUtil, FormMetaData, FormMetadataSection, FormUtil, FormValue, FormValueUtil, GLOBAL_TYPE_RULES, HeaderBarComponent, HeaderBarModule, LOWERCASE_FACILITY_KEYWORDS, LevelMatchMode, LevelSelectorMode, LineListModule, LineListTableComponent, MetadataRule, MetadataRuleAction, ORG_UNIT_LEVEL_TO_KEYWORD, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1625
|
-
export type { AbsoluteLevelSelector, ActionOption, ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, ColumnDefinition, CustomOrgUnitConfig, CustomOrgUnitRootConfig, DropdownMenuOption$1 as DropdownMenuOption, DropdownOption, EocForm, FieldControlType, FieldData, FieldsData, FormConfiguration, FormDirection, FormFieldExtension, FormFieldMetaType, FormGroupField, FormSection, IFieldDropdown, IFormField, IFormFieldGroup, IFormMetadata, IFormMetadataSection, IMetadataRule, IMetadataRuleAction, IProgramEntryFormConfig, IProgramEntryFormMetaData, IProgramEntryFormSection, KeywordLevelMap, KeywordLevelSelector, LevelSelector, LineListActionOption, Option, OrgUnitLevelKeyword, OrgUnitSemanticType, OrgUnitTypeKeywordRule, OrgUnitTypeMatch, OrganisationUnitSelectionUsageType, ProgramAttributesFilter, ProgramRuleActionType, ProgramStageDataElementFilter, RelativeLevelSelector, SelectionFilterColumnDefinition, SelectionFilterTableRow, SelectionFiltersProps, TableRow };
|
|
1636
|
+
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CascadeKind, CheckBox, D2FormModule, DEFAULT_KEYWORD_TO_LEVEL, DEFAULT_OPTIONS_PATH_CASCADE, DataTableUIComponent, DataTableUIModule, DateField, DateRangeValue, Dropdown, EventFormComponent, EventFormModule, FACILITY_KEYWORDS, FieldConfig, FieldControlTypeUtil, FieldDropdown, FieldType, FieldUtil, FlatFormComponent, FormComponent, FormConfig, FormField, FormFieldComponent, FormFieldGroup, FormFieldTypeUtil, FormMetaData, FormMetadataSection, FormUtil, FormValue, FormValueUtil, GLOBAL_TYPE_RULES, HeaderBarComponent, HeaderBarModule, LOWERCASE_FACILITY_KEYWORDS, LevelMatchMode, LevelSelectorMode, LineListModule, LineListTableComponent, MetadataRule, MetadataRuleAction, ORG_UNIT_LEVEL_TO_KEYWORD, OptionPathField, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, ParentMatchMode, ParentValueType, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1637
|
+
export type { AbsoluteLevelSelector, ActionOption, ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, CascadeConfig, CascadeConfigBase, CascadeConfigList, CascadeConfigMap, ColumnDefinition, CustomOrgUnitConfig, CustomOrgUnitRootConfig, DropdownMenuOption$1 as DropdownMenuOption, DropdownOption, EocForm, FieldControlType, FieldData, FieldId, FieldsData, FormConfiguration, FormDirection, FormFieldExtension, FormFieldMetaType, FormGroupField, FormSection, IFieldDropdown, IFormField, IFormFieldGroup, IFormMetadata, IFormMetadataSection, IMetadataRule, IMetadataRuleAction, IProgramEntryFormConfig, IProgramEntryFormMetaData, IProgramEntryFormSection, KeywordLevelMap, KeywordLevelSelector, LevelSelector, LineListActionOption, Option, OptionsPathCascadeConfig, OptionsPathCascadeConfigMap, OrgUnitLevelKeyword, OrgUnitSemanticType, OrgUnitTypeKeywordRule, OrgUnitTypeMatch, OrganisationUnitSelectionUsageType, ProgramAttributesFilter, ProgramRuleActionType, ProgramStageDataElementFilter, RelativeLevelSelector, SelectionFilterColumnDefinition, SelectionFilterTableRow, SelectionFiltersProps, TableRow };
|