@iapps/ng-dhis2-ui 1.2.167 → 1.2.169
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 +64 -32
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +13 -6
- package/package.json +1 -1
|
@@ -4300,6 +4300,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
4300
4300
|
type: Injectable
|
|
4301
4301
|
}] });
|
|
4302
4302
|
|
|
4303
|
+
var LineListColumnMetadataDisplayMode;
|
|
4304
|
+
(function (LineListColumnMetadataDisplayMode) {
|
|
4305
|
+
LineListColumnMetadataDisplayMode["ALL_ATTRIBUTES"] = "ALL_ATTRIBUTES";
|
|
4306
|
+
LineListColumnMetadataDisplayMode["ALL_ATTRIBUTES_AND_DATA_ELEMENTS"] = "ALL_ATTRIBUTES_AND_DATA_ELEMENTS";
|
|
4307
|
+
})(LineListColumnMetadataDisplayMode || (LineListColumnMetadataDisplayMode = {}));
|
|
4308
|
+
|
|
4303
4309
|
const getOptionCode = (option) => option.code ?? option.value ?? option.id;
|
|
4304
4310
|
const getMultiOptionCodes = (value) => {
|
|
4305
4311
|
if (Array.isArray(value)) {
|
|
@@ -4323,10 +4329,16 @@ const formatMultiTextOptionValue = (value, options = []) => {
|
|
|
4323
4329
|
return codes.map((code) => optionByCode.get(code)?.name || code).join(', ');
|
|
4324
4330
|
};
|
|
4325
4331
|
|
|
4326
|
-
const getTrackedEntityTableData = (response, programId, pager, metaData, searcheableDataElements, customDisplayInReportsIds, columnNameSource = 'NAME') => {
|
|
4332
|
+
const getTrackedEntityTableData = (response, programId, pager, metaData, searcheableDataElements, customDisplayInReportsIds, columnNameSource = 'NAME', columnMetadataDisplayMode) => {
|
|
4327
4333
|
const getColumnLabel = (item) => columnNameSource === 'FORM_NAME'
|
|
4328
4334
|
? item?.formName || item?.name || 'Default'
|
|
4329
4335
|
: item?.name || item?.formName || 'Default';
|
|
4336
|
+
const shouldShowAllAttributes = columnMetadataDisplayMode ===
|
|
4337
|
+
LineListColumnMetadataDisplayMode.ALL_ATTRIBUTES ||
|
|
4338
|
+
columnMetadataDisplayMode ===
|
|
4339
|
+
LineListColumnMetadataDisplayMode.ALL_ATTRIBUTES_AND_DATA_ELEMENTS;
|
|
4340
|
+
const shouldShowAllDataElements = columnMetadataDisplayMode ===
|
|
4341
|
+
LineListColumnMetadataDisplayMode.ALL_ATTRIBUTES_AND_DATA_ELEMENTS;
|
|
4330
4342
|
const teisRaw = response.data
|
|
4331
4343
|
.trackedEntityInstances;
|
|
4332
4344
|
const teis = Array.isArray(teisRaw)
|
|
@@ -4336,15 +4348,22 @@ const getTrackedEntityTableData = (response, programId, pager, metaData, searche
|
|
|
4336
4348
|
const incidentDateLabel = metaData.incidentDateLabel;
|
|
4337
4349
|
const orgUnitMap = response.data
|
|
4338
4350
|
.orgUnitsMap;
|
|
4339
|
-
const attributeColumns =
|
|
4351
|
+
const attributeColumns = (shouldShowAllAttributes
|
|
4352
|
+
? metaData.trackedEntityAttributes
|
|
4353
|
+
: metaData.displayInListTrackedEntityAttributes)
|
|
4340
4354
|
.sort((a, b) => a.sortOrder - b.sortOrder)
|
|
4341
4355
|
.map((trackedEntityAttribute) => ({
|
|
4342
4356
|
label: getColumnLabel(trackedEntityAttribute),
|
|
4343
4357
|
key: trackedEntityAttribute.id,
|
|
4344
4358
|
}));
|
|
4345
|
-
const shouldIncludeDataElement = (psde) =>
|
|
4346
|
-
|
|
4347
|
-
|
|
4359
|
+
const shouldIncludeDataElement = (psde) => {
|
|
4360
|
+
if (shouldShowAllDataElements) {
|
|
4361
|
+
return true;
|
|
4362
|
+
}
|
|
4363
|
+
return customDisplayInReportsIds !== undefined
|
|
4364
|
+
? customDisplayInReportsIds.includes(psde.dataElement?.id)
|
|
4365
|
+
: psde.displayInReports === true;
|
|
4366
|
+
};
|
|
4348
4367
|
const tableSearcheableDataElements = metaData
|
|
4349
4368
|
.programStages.sort((a, b) => a.sortOrder - b.sortOrder)
|
|
4350
4369
|
.flatMap((stage) => stage
|
|
@@ -4648,15 +4667,14 @@ const addActionsColumn = (columns, actionOptions) => {
|
|
|
4648
4667
|
];
|
|
4649
4668
|
};
|
|
4650
4669
|
|
|
4651
|
-
const getEvents = (response, programStageId, pager, metaData, columnNameSource = 'NAME') => {
|
|
4670
|
+
const getEvents = (response, programStageId, pager, metaData, columnNameSource = 'NAME', columnMetadataDisplayMode) => {
|
|
4652
4671
|
const getColumnLabel = (item) => columnNameSource === 'FORM_NAME'
|
|
4653
4672
|
? item?.formName || item?.name || 'Default'
|
|
4654
4673
|
: item?.name || item?.formName || 'Default';
|
|
4655
|
-
const
|
|
4656
|
-
const
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
});
|
|
4674
|
+
const eventsRaw = response.data.events;
|
|
4675
|
+
const events = Array.isArray(eventsRaw)
|
|
4676
|
+
? eventsRaw
|
|
4677
|
+
: [eventsRaw].filter(Boolean);
|
|
4660
4678
|
let stageFromMetaData;
|
|
4661
4679
|
if (programStageId) {
|
|
4662
4680
|
stageFromMetaData = metaData.programStages.find((stage) => stage.id === programStageId);
|
|
@@ -4667,15 +4685,16 @@ const getEvents = (response, programStageId, pager, metaData, columnNameSource =
|
|
|
4667
4685
|
if (!stageFromMetaData) {
|
|
4668
4686
|
throw new Error(`Program stage with ID ${programStageId} not found`);
|
|
4669
4687
|
}
|
|
4670
|
-
const
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4688
|
+
const shouldShowAllDataElements = columnMetadataDisplayMode ===
|
|
4689
|
+
LineListColumnMetadataDisplayMode.ALL_ATTRIBUTES_AND_DATA_ELEMENTS;
|
|
4690
|
+
const dataElementMetaList = stageFromMetaData
|
|
4691
|
+
.programStageDataElements.filter((psde) => shouldShowAllDataElements ? true : psde.displayInReports === true)
|
|
4692
|
+
.sort((a, b) => a.sortOrder - b.sortOrder);
|
|
4693
|
+
const displayedDataElementIds = new Set(dataElementMetaList.map((psde) => psde.dataElement.id));
|
|
4694
|
+
const entityColumns = dataElementMetaList.map((psde) => ({
|
|
4695
|
+
label: getColumnLabel(psde.dataElement),
|
|
4696
|
+
key: psde.dataElement.id,
|
|
4697
|
+
}));
|
|
4679
4698
|
const dataElementsData = events.map((event, idx) => {
|
|
4680
4699
|
const row = {
|
|
4681
4700
|
event: { value: event.event },
|
|
@@ -4686,10 +4705,13 @@ const getEvents = (response, programStageId, pager, metaData, columnNameSource =
|
|
|
4686
4705
|
value: (pager.page - 1) * pager.pageSize + idx + 1,
|
|
4687
4706
|
},
|
|
4688
4707
|
};
|
|
4689
|
-
|
|
4708
|
+
displayedDataElementIds.forEach((dataElementId) => {
|
|
4690
4709
|
row[dataElementId] = { value: '' };
|
|
4691
4710
|
});
|
|
4692
|
-
event.dataValues.forEach((dv) => {
|
|
4711
|
+
(event.dataValues || []).forEach((dv) => {
|
|
4712
|
+
if (!displayedDataElementIds.has(dv.dataElement)) {
|
|
4713
|
+
return;
|
|
4714
|
+
}
|
|
4693
4715
|
const dataElementMeta = stageFromMetaData.programStageDataElements.find((psde) => psde.dataElement.id === dv.dataElement);
|
|
4694
4716
|
if (dataElementMeta?.dataElement.optionSet) {
|
|
4695
4717
|
const optionSet = dataElementMeta.dataElement.optionSet;
|
|
@@ -4758,7 +4780,7 @@ const applyDownloadColumnFilter = (columns, filterableColumnIds) => {
|
|
|
4758
4780
|
const filterableColumnIdsSet = new Set(filterableColumnIds);
|
|
4759
4781
|
return columns.filter((column) => filterableColumnIdsSet.has(column.key));
|
|
4760
4782
|
};
|
|
4761
|
-
const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStageId, orgUnit, ouMode, startDate, endDate, dataQueryFilters, enrollmentStatus, eventStatus, filterableColumnIds, searcheableDataElements, customDisplayInReportsIds, columnNameSource, fetchOrgUnits, }) => {
|
|
4783
|
+
const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStageId, orgUnit, ouMode, startDate, endDate, dataQueryFilters, enrollmentStatus, eventStatus, filterableColumnIds, searcheableDataElements, customDisplayInReportsIds, columnNameSource, columnMetadataDisplayMode, fetchOrgUnits, }) => {
|
|
4762
4784
|
if (!metaData) {
|
|
4763
4785
|
return { columns: [], data: [] };
|
|
4764
4786
|
}
|
|
@@ -4769,11 +4791,13 @@ const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStage
|
|
|
4769
4791
|
if (programStageId || isEvent) {
|
|
4770
4792
|
const eventQuery = d2.eventModule.event
|
|
4771
4793
|
.setEndDate(resolvedEndDate)
|
|
4772
|
-
.setStartDate(startDate)
|
|
4773
4794
|
.setProgram(programId)
|
|
4774
4795
|
.setOrgUnit(orgUnit)
|
|
4775
4796
|
.setOuMode(ouMode)
|
|
4776
4797
|
.setPagination(downloadPager);
|
|
4798
|
+
if (startDate) {
|
|
4799
|
+
eventQuery.setStartDate(startDate);
|
|
4800
|
+
}
|
|
4777
4801
|
if (programStageId) {
|
|
4778
4802
|
eventQuery.setProgramStage(programStageId);
|
|
4779
4803
|
}
|
|
@@ -4790,7 +4814,7 @@ const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStage
|
|
|
4790
4814
|
pageSize: events.length || 1,
|
|
4791
4815
|
}),
|
|
4792
4816
|
};
|
|
4793
|
-
const downloadRows = getEvents({ data: eventsResponse }, programStageId || '', eventsResponse.pager, metaData, columnNameSource);
|
|
4817
|
+
const downloadRows = getEvents({ data: eventsResponse }, programStageId || '', eventsResponse.pager, metaData, columnNameSource, columnMetadataDisplayMode);
|
|
4794
4818
|
return {
|
|
4795
4819
|
columns: applyDownloadColumnFilter(downloadRows.columns, filterableColumnIds),
|
|
4796
4820
|
data: downloadRows.data,
|
|
@@ -4799,7 +4823,6 @@ const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStage
|
|
|
4799
4823
|
if (isTracker) {
|
|
4800
4824
|
const trackerQuery = d2.trackerModule.trackedEntity
|
|
4801
4825
|
.setEndDate(resolvedEndDate)
|
|
4802
|
-
.setStartDate(startDate)
|
|
4803
4826
|
.setProgram(programId)
|
|
4804
4827
|
.setOrgUnit(orgUnit)
|
|
4805
4828
|
.setOuMode(ouMode)
|
|
@@ -4809,6 +4832,9 @@ const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStage
|
|
|
4809
4832
|
.setOrderCriterias([
|
|
4810
4833
|
new DataOrderCriteria().setField('createdAt').setOrder('desc'),
|
|
4811
4834
|
]);
|
|
4835
|
+
if (startDate) {
|
|
4836
|
+
trackerQuery.setStartDate(startDate);
|
|
4837
|
+
}
|
|
4812
4838
|
if (eventStatus?.status && eventStatus?.programStage) {
|
|
4813
4839
|
trackerQuery.setEventStatus(eventStatus.status, eventStatus.programStage);
|
|
4814
4840
|
}
|
|
@@ -4840,7 +4866,7 @@ const fetchLineListDownloadRows = async ({ d2, metaData, programId, programStage
|
|
|
4840
4866
|
}),
|
|
4841
4867
|
orgUnitsMap: fetchedOrgUnits,
|
|
4842
4868
|
};
|
|
4843
|
-
const downloadRows = getTrackedEntityTableData({ data: trackedEntityResponse }, programId, trackedEntityResponse.pager, metaData, searcheableDataElements, customDisplayInReportsIds, columnNameSource);
|
|
4869
|
+
const downloadRows = getTrackedEntityTableData({ data: trackedEntityResponse }, programId, trackedEntityResponse.pager, metaData, searcheableDataElements, customDisplayInReportsIds, columnNameSource, columnMetadataDisplayMode);
|
|
4844
4870
|
return {
|
|
4845
4871
|
columns: applyDownloadColumnFilter(downloadRows.columns, filterableColumnIds),
|
|
4846
4872
|
data: downloadRows.data,
|
|
@@ -4994,7 +5020,7 @@ class LineListTableComponent extends ReactWrapperModule {
|
|
|
4994
5020
|
pager: pager,
|
|
4995
5021
|
// orgUnitsMap: fetchedOrgUnits,
|
|
4996
5022
|
};
|
|
4997
|
-
const { columns, data } = getEvents({ data: eventsResponse }, this.programStageId, pager, metaData, this.columnNameSource);
|
|
5023
|
+
const { columns, data } = getEvents({ data: eventsResponse }, this.programStageId, pager, metaData, this.columnNameSource, this.columnMetadataDisplayMode);
|
|
4998
5024
|
// const filterableColumnIdsSet = new Set(
|
|
4999
5025
|
// this.filterableColumnIds
|
|
5000
5026
|
// );
|
|
@@ -5074,7 +5100,7 @@ class LineListTableComponent extends ReactWrapperModule {
|
|
|
5074
5100
|
pager: pager,
|
|
5075
5101
|
orgUnitsMap: fetchedOrgUnits,
|
|
5076
5102
|
};
|
|
5077
|
-
const { columns, data, filteredEntityColumns, orgUnitLabel } = getTrackedEntityTableData({ data: trackedEntityResponse }, this.programId, pager, metaData, this.searcheableDataElements, this.customDisplayInReportsIds, this.columnNameSource);
|
|
5103
|
+
const { columns, data, filteredEntityColumns, orgUnitLabel } = getTrackedEntityTableData({ data: trackedEntityResponse }, this.programId, pager, metaData, this.searcheableDataElements, this.customDisplayInReportsIds, this.columnNameSource, this.columnMetadataDisplayMode);
|
|
5078
5104
|
setFilteredColumns((prev) => filteredEntityColumns.length > 0 ? filteredEntityColumns : prev);
|
|
5079
5105
|
let updatedFilterableColumnIds;
|
|
5080
5106
|
if (Array.isArray(this.filterableColumnIds) &&
|
|
@@ -5141,6 +5167,7 @@ class LineListTableComponent extends ReactWrapperModule {
|
|
|
5141
5167
|
searcheableDataElements: this.searcheableDataElements,
|
|
5142
5168
|
customDisplayInReportsIds: this.customDisplayInReportsIds,
|
|
5143
5169
|
columnNameSource: this.columnNameSource,
|
|
5170
|
+
columnMetadataDisplayMode: this.columnMetadataDisplayMode,
|
|
5144
5171
|
fetchOrgUnits: (orgUnitIds) => this.lineListService.fetchOrgUnits(orgUnitIds),
|
|
5145
5172
|
});
|
|
5146
5173
|
if (format === 'CSV') {
|
|
@@ -5441,7 +5468,7 @@ class LineListTableComponent extends ReactWrapperModule {
|
|
|
5441
5468
|
this.render();
|
|
5442
5469
|
}
|
|
5443
5470
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5444
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: LineListTableComponent, isStandalone: false, selector: "ng-dhis2-ui-line-list", inputs: { triggerToken: "triggerToken", programId: "programId", orgUnit: "orgUnit", programStageId: "programStageId", actionOptions: "actionOptions", actionOptionOrientation: "actionOptionOrientation", attributeFilters: "attributeFilters", useOuModeWithOlderDHIS2Instance: "useOuModeWithOlderDHIS2Instance", startDate: "startDate", endDate: "endDate", dataQueryFilters: "dataQueryFilters", lineListRowActionFilterConfig: "lineListRowActionFilterConfig", hydrateForActionFiltering: "hydrateForActionFiltering", ouMode: "ouMode", isButtonLoading: "isButtonLoading", buttonFilter: "buttonFilter", filterRootOrgUnit: "filterRootOrgUnit", showFilters: "showFilters", isOptionSetNameVisible: "isOptionSetNameVisible", allowRowsSelection: "allowRowsSelection", enrollmentStatus: "enrollmentStatus", filterableColumnIds: "filterableColumnIds", triggerRefetch: "triggerRefetch", eventStatus: "eventStatus", showActionButtons: "showActionButtons", showEnrollmentDates: "showEnrollmentDates", showDownloadButton: "showDownloadButton", searcheableDataElements: "searcheableDataElements", columnNameSource: "columnNameSource", customDisplayInReportsIds: "customDisplayInReportsIds" }, outputs: { actionSelected: "actionSelected", rowsSelected: "rowsSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";::ng-deep .line-list-root{width:100%;max-width:100%;min-width:0}::ng-deep .line-list-download-toolbar{position:sticky;left:0;z-index:2;display:flex;justify-content:flex-end;width:100%;max-width:100%;box-sizing:border-box;background:#fff}::ng-deep .line-list-table-scroll{width:100%;max-width:100%;overflow-x:auto}::ng-deep .custom-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-input div{margin:0!important}::ng-deep .custom-input label{font-size:12px;padding-right:0}::ng-deep .custom-input input{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-input input:focus{border:none!important;box-shadow:none!important}::ng-deep .custom-input [data-test=calendar-clear-button]{background-color:#f2f2f2!important;color:#870808!important;border-radius:6px!important;padding:4px 10px!important;font-size:0!important}::ng-deep .custom-input [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:14px;color:#870808}::ng-deep .custom-input [data-test=calendar-clear-button]:hover{background-color:#ddd}::ng-deep .calendar-input-wrapper{position:relative}::ng-deep .calendar-input-wrapper .custom-input{position:relative;width:100%;display:flex;align-items:center}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]{right:8px;bottom:14px;margin:auto;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:0!important;background-color:#a0adba!important;border-radius:50%;padding:2px;cursor:pointer}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:10px;color:#f0f0f0}::ng-deep .calendar-input-wrapper input{padding-right:40px!important;height:40px;line-height:40px;box-sizing:border-box}::ng-deep .custom-input label{color:gray!important;opacity:1}::ng-deep .table-top-toolbar{background-color:var(--colors-grey100)!important;color:var(--colors-grey900)!important}::ng-deep .custom-select-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-select-input div{margin:0!important}::ng-deep .custom-select-input [data-test=dhis2-uiwidgets-singleselectfield-label]{font-size:12px;color:gray!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]:focus-within{box-shadow:none!important}::ng-deep .custom-select-input input:focus{border:none!important;box-shadow:none!important}\n"] }); }
|
|
5471
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: LineListTableComponent, isStandalone: false, selector: "ng-dhis2-ui-line-list", inputs: { triggerToken: "triggerToken", programId: "programId", orgUnit: "orgUnit", programStageId: "programStageId", actionOptions: "actionOptions", actionOptionOrientation: "actionOptionOrientation", attributeFilters: "attributeFilters", useOuModeWithOlderDHIS2Instance: "useOuModeWithOlderDHIS2Instance", startDate: "startDate", endDate: "endDate", dataQueryFilters: "dataQueryFilters", lineListRowActionFilterConfig: "lineListRowActionFilterConfig", hydrateForActionFiltering: "hydrateForActionFiltering", ouMode: "ouMode", isButtonLoading: "isButtonLoading", buttonFilter: "buttonFilter", filterRootOrgUnit: "filterRootOrgUnit", showFilters: "showFilters", isOptionSetNameVisible: "isOptionSetNameVisible", allowRowsSelection: "allowRowsSelection", enrollmentStatus: "enrollmentStatus", filterableColumnIds: "filterableColumnIds", triggerRefetch: "triggerRefetch", eventStatus: "eventStatus", showActionButtons: "showActionButtons", showEnrollmentDates: "showEnrollmentDates", showDownloadButton: "showDownloadButton", searcheableDataElements: "searcheableDataElements", columnNameSource: "columnNameSource", customDisplayInReportsIds: "customDisplayInReportsIds", columnMetadataDisplayMode: "columnMetadataDisplayMode" }, outputs: { actionSelected: "actionSelected", rowsSelected: "rowsSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";::ng-deep .line-list-root{width:100%;max-width:100%;min-width:0}::ng-deep .line-list-download-toolbar{position:sticky;left:0;z-index:2;display:flex;justify-content:flex-end;width:100%;max-width:100%;box-sizing:border-box;background:#fff}::ng-deep .line-list-table-scroll{width:100%;max-width:100%;overflow-x:auto}::ng-deep .custom-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-input div{margin:0!important}::ng-deep .custom-input label{font-size:12px;padding-right:0}::ng-deep .custom-input input{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-input input:focus{border:none!important;box-shadow:none!important}::ng-deep .custom-input [data-test=calendar-clear-button]{background-color:#f2f2f2!important;color:#870808!important;border-radius:6px!important;padding:4px 10px!important;font-size:0!important}::ng-deep .custom-input [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:14px;color:#870808}::ng-deep .custom-input [data-test=calendar-clear-button]:hover{background-color:#ddd}::ng-deep .calendar-input-wrapper{position:relative}::ng-deep .calendar-input-wrapper .custom-input{position:relative;width:100%;display:flex;align-items:center}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]{right:8px;bottom:14px;margin:auto;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:0!important;background-color:#a0adba!important;border-radius:50%;padding:2px;cursor:pointer}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:10px;color:#f0f0f0}::ng-deep .calendar-input-wrapper input{padding-right:40px!important;height:40px;line-height:40px;box-sizing:border-box}::ng-deep .custom-input label{color:gray!important;opacity:1}::ng-deep .table-top-toolbar{background-color:var(--colors-grey100)!important;color:var(--colors-grey900)!important}::ng-deep .custom-select-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-select-input div{margin:0!important}::ng-deep .custom-select-input [data-test=dhis2-uiwidgets-singleselectfield-label]{font-size:12px;color:gray!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]:focus-within{box-shadow:none!important}::ng-deep .custom-select-input input:focus{border:none!important;box-shadow:none!important}\n"] }); }
|
|
5445
5472
|
}
|
|
5446
5473
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListTableComponent, decorators: [{
|
|
5447
5474
|
type: Component,
|
|
@@ -5510,6 +5537,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
5510
5537
|
type: Input
|
|
5511
5538
|
}], customDisplayInReportsIds: [{
|
|
5512
5539
|
type: Input
|
|
5540
|
+
}], columnMetadataDisplayMode: [{
|
|
5541
|
+
type: Input
|
|
5513
5542
|
}] } });
|
|
5514
5543
|
|
|
5515
5544
|
class LineListModule {
|
|
@@ -13159,7 +13188,10 @@ class ProgramEntryFormMetaData {
|
|
|
13159
13188
|
async #getCustomFieldConfigurations() {
|
|
13160
13189
|
try {
|
|
13161
13190
|
const response = await this.d2.httpInstance.get('dataStore/field-extensions?fields=id,fieldOptionsDependsOn,optionSet&paging=false');
|
|
13162
|
-
const
|
|
13191
|
+
const responseData = response?.data;
|
|
13192
|
+
const entries = Array.isArray(responseData)
|
|
13193
|
+
? responseData
|
|
13194
|
+
: responseData?.['entries'];
|
|
13163
13195
|
if (!Array.isArray(entries)) {
|
|
13164
13196
|
return {};
|
|
13165
13197
|
}
|
|
@@ -13579,5 +13611,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
13579
13611
|
* Generated bundle index. Do not edit.
|
|
13580
13612
|
*/
|
|
13581
13613
|
|
|
13582
|
-
export { Boolean$1 as 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 };
|
|
13614
|
+
export { Boolean$1 as 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, LineListColumnMetadataDisplayMode, 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 };
|
|
13583
13615
|
//# sourceMappingURL=iapps-ng-dhis2-ui.mjs.map
|