@iapps/ng-dhis2-ui 1.2.139 → 1.2.146
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 +98 -13
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +15 -3
- package/package.json +1 -1
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';
|
|
@@ -1398,7 +1410,7 @@ declare class D2FormModule {
|
|
|
1398
1410
|
declare class FieldUtil {
|
|
1399
1411
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1400
1412
|
static sanitizeOptions(options: any[]): any;
|
|
1401
|
-
static getFieldType(valueType: string): "
|
|
1413
|
+
static getFieldType(valueType: string): "number" | "text" | "email" | "tel" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
|
|
1402
1414
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1403
1415
|
static getOptionEntities?(options: any[]): any;
|
|
1404
1416
|
}
|
|
@@ -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 };
|