@masterteam/components 0.0.284 → 0.0.286
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/assets/i18n/ar.json +1 -1
- package/assets/i18n/en.json +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs +58 -14
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +48 -8
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +12 -1
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +6 -0
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +15 -2
- package/types/masterteam-components-entities.d.ts +45 -2
- package/types/masterteam-components-formula.d.ts +12 -0
- package/types/masterteam-components.d.ts +6 -0
package/assets/i18n/ar.json
CHANGED
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"edit": "تعديل",
|
|
120
120
|
"delete": "حذف",
|
|
121
121
|
"readingNotAllowed": "القراءة غير مسموح بها لهذا الحقل.",
|
|
122
|
-
"
|
|
122
|
+
"missingConfiguration": "لم يتم إعداد هذا الحقل بالكامل.",
|
|
123
123
|
"noRelatedItems": "لا توجد عناصر مرتبطة.",
|
|
124
124
|
"loadFailed": "فشل تحميل العناصر المرتبطة"
|
|
125
125
|
},
|
package/assets/i18n/en.json
CHANGED
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"edit": "Edit",
|
|
120
120
|
"delete": "Delete",
|
|
121
121
|
"readingNotAllowed": "Reading is not allowed for this field.",
|
|
122
|
-
"
|
|
122
|
+
"missingConfiguration": "This field is not fully configured.",
|
|
123
123
|
"noRelatedItems": "No related items.",
|
|
124
124
|
"loadFailed": "Failed to load related items"
|
|
125
125
|
},
|
|
@@ -770,6 +770,12 @@ class EntityListField {
|
|
|
770
770
|
configuration = input(null, ...(ngDevMode ? [{ debugName: "configuration" }] : /* istanbul ignore next */ []));
|
|
771
771
|
/** Runtime ids needed to call the read endpoint. */
|
|
772
772
|
runtimeContext = input(null, ...(ngDevMode ? [{ debugName: "runtimeContext" }] : /* istanbul ignore next */ []));
|
|
773
|
+
/**
|
|
774
|
+
* Full lookup catalog of the host form, forwarded to the add/edit dialog's
|
|
775
|
+
* nested form. `process-form-load` returns only the lookup *id* per field,
|
|
776
|
+
* so without this the target module's Lookup fields render "no options".
|
|
777
|
+
*/
|
|
778
|
+
lookups = input([], ...(ngDevMode ? [{ debugName: "lookups" }] : /* istanbul ignore next */ []));
|
|
773
779
|
/** Optional HttpContext (kept for back-compat). */
|
|
774
780
|
context = input(undefined, ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
775
781
|
// CVA state — pass-through value (EntityList stored JSON shape).
|
|
@@ -912,13 +918,13 @@ class EntityListField {
|
|
|
912
918
|
return [...existing, ...this.createdRows()];
|
|
913
919
|
}, ...(ngDevMode ? [{ debugName: "displayRows" }] : /* istanbul ignore next */ []));
|
|
914
920
|
hasRows = computed(() => this.displayRows().length > 0, ...(ngDevMode ? [{ debugName: "hasRows" }] : /* istanbul ignore next */ []));
|
|
915
|
-
hasRequiredContext = computed(() => this.levelId()
|
|
916
|
-
this.
|
|
917
|
-
this.moduleId() != null &&
|
|
921
|
+
hasRequiredContext = computed(() => Number(this.levelId()) > 0 &&
|
|
922
|
+
Number(this.moduleId()) > 0 &&
|
|
918
923
|
this.readFields().length > 0, ...(ngDevMode ? [{ debugName: "hasRequiredContext" }] : /* istanbul ignore next */ []));
|
|
919
924
|
onTouched = () => { };
|
|
920
925
|
onModelChange = () => { };
|
|
921
926
|
http = inject(HttpClient);
|
|
927
|
+
fetchSubscription;
|
|
922
928
|
destroyRef = inject(DestroyRef);
|
|
923
929
|
modal = inject(ModalService);
|
|
924
930
|
transloco = inject(TranslocoService);
|
|
@@ -934,8 +940,8 @@ class EntityListField {
|
|
|
934
940
|
if (this.ngControl) {
|
|
935
941
|
this.ngControl.valueAccessor = this;
|
|
936
942
|
}
|
|
937
|
-
//
|
|
938
|
-
//
|
|
943
|
+
// Draft parents load column metadata only. Persisted parents load the
|
|
944
|
+
// Table projection, scoped to their record ID.
|
|
939
945
|
effect(() => {
|
|
940
946
|
const allowedRead = this.canRead();
|
|
941
947
|
const allowedWrite = this.writeAllowed();
|
|
@@ -945,17 +951,22 @@ class EntityListField {
|
|
|
945
951
|
const moduleId = this.moduleId();
|
|
946
952
|
const readFields = this.readFields();
|
|
947
953
|
untracked(() => {
|
|
954
|
+
this.fetchSubscription?.unsubscribe();
|
|
955
|
+
this.columns.set([]);
|
|
956
|
+
this.rows.set([]);
|
|
957
|
+
this.errorMessage.set(null);
|
|
948
958
|
if ((!allowedRead && !allowedWrite) ||
|
|
949
959
|
!ready ||
|
|
950
960
|
levelId == null ||
|
|
951
|
-
levelDataId == null ||
|
|
952
961
|
moduleId == null) {
|
|
953
|
-
this.columns.set([]);
|
|
954
|
-
this.rows.set([]);
|
|
955
|
-
this.errorMessage.set(null);
|
|
956
962
|
return;
|
|
957
963
|
}
|
|
958
|
-
|
|
964
|
+
if (levelDataId == null || Number(levelDataId) <= 0 || !allowedRead) {
|
|
965
|
+
this.fetchDraftColumns(levelId, moduleId, readFields);
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
this.fetchRows(levelId, levelDataId, moduleId, readFields);
|
|
969
|
+
}
|
|
959
970
|
});
|
|
960
971
|
});
|
|
961
972
|
}
|
|
@@ -1058,6 +1069,7 @@ class EntityListField {
|
|
|
1058
1069
|
levelId: this.levelId(),
|
|
1059
1070
|
levelDataId: this.levelDataId(),
|
|
1060
1071
|
writeFields: this.writeFields(),
|
|
1072
|
+
lookups: this.lookups(),
|
|
1061
1073
|
},
|
|
1062
1074
|
});
|
|
1063
1075
|
ref.onClose.pipe(take(1)).subscribe((result) => {
|
|
@@ -1094,6 +1106,7 @@ class EntityListField {
|
|
|
1094
1106
|
levelId: this.levelId(),
|
|
1095
1107
|
levelDataId: this.levelDataId(),
|
|
1096
1108
|
writeFields: this.writeFields(),
|
|
1109
|
+
lookups: this.lookups(),
|
|
1097
1110
|
initialValues,
|
|
1098
1111
|
isEdit: true,
|
|
1099
1112
|
},
|
|
@@ -1373,6 +1386,37 @@ class EntityListField {
|
|
|
1373
1386
|
// ============================================================================
|
|
1374
1387
|
// Read endpoint — POST /api/fetch/query (Table projection)
|
|
1375
1388
|
// ============================================================================
|
|
1389
|
+
fetchDraftColumns(levelId, moduleId, propertyKeys) {
|
|
1390
|
+
this.loading.set(true);
|
|
1391
|
+
const ctx = this.context();
|
|
1392
|
+
this.fetchSubscription = this.http
|
|
1393
|
+
.get('fetch/catalog', {
|
|
1394
|
+
params: { contextKey: `level:${levelId}/module:${moduleId}` },
|
|
1395
|
+
...(ctx ? { context: ctx } : {}),
|
|
1396
|
+
})
|
|
1397
|
+
.pipe(takeUntilDestroyed(this.destroyRef), finalize(() => this.loading.set(false)))
|
|
1398
|
+
.subscribe({
|
|
1399
|
+
next: (response) => {
|
|
1400
|
+
const properties = response.data.properties.filter((property) => propertyKeys.includes(property.key) ||
|
|
1401
|
+
propertyKeys.includes(property.normalizedKey));
|
|
1402
|
+
this.applyResponse({
|
|
1403
|
+
catalog: { properties },
|
|
1404
|
+
records: [],
|
|
1405
|
+
projectionMeta: {
|
|
1406
|
+
columns: properties.map((property) => ({
|
|
1407
|
+
key: property.normalizedKey || property.key,
|
|
1408
|
+
label: property.label,
|
|
1409
|
+
viewType: property.viewType,
|
|
1410
|
+
order: property.order,
|
|
1411
|
+
visible: true,
|
|
1412
|
+
configuration: property.configuration ?? null,
|
|
1413
|
+
})),
|
|
1414
|
+
},
|
|
1415
|
+
});
|
|
1416
|
+
},
|
|
1417
|
+
error: () => this.errorMessage.set(this.transloco.translate('components.entityListField.loadFailed')),
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1376
1420
|
fetchRows(levelId, levelDataId, moduleId, propertyKeys) {
|
|
1377
1421
|
this.loading.set(true);
|
|
1378
1422
|
this.errorMessage.set(null);
|
|
@@ -1392,7 +1436,7 @@ class EntityListField {
|
|
|
1392
1436
|
page: 1,
|
|
1393
1437
|
pageSize: 3000,
|
|
1394
1438
|
};
|
|
1395
|
-
this.http
|
|
1439
|
+
this.fetchSubscription = this.http
|
|
1396
1440
|
.post('fetch/query', body, ctx ? { context: ctx } : {})
|
|
1397
1441
|
.pipe(takeUntilDestroyed(this.destroyRef), finalize(() => this.loading.set(false)), catchError((err) => {
|
|
1398
1442
|
console.error('EntityList fetch/query failed', err);
|
|
@@ -1478,7 +1522,7 @@ class EntityListField {
|
|
|
1478
1522
|
};
|
|
1479
1523
|
}
|
|
1480
1524
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityListField, isStandalone: true, selector: "mt-entity-list-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, propertyId: { classPropertyName: "propertyId", publicName: "propertyId", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-1" }, ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (errorMessage(); as err) {\r\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\r\n } @else if (canWrite()) {\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"'components.entityListField.add' | transloco\"\r\n icon=\"general.plus\"\r\n size=\"small\"\r\n [disabled]=\"disabled()\"\r\n (onClick)=\"openAddDialog()\"\r\n />\r\n </div>\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"writeRowActions()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n } @else if (!canRead()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.readingNotAllowed\" | transloco }}\r\n </div>\r\n } @else if (!hasRequiredContext()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.
|
|
1525
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityListField, isStandalone: true, selector: "mt-entity-list-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, propertyId: { classPropertyName: "propertyId", publicName: "propertyId", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null }, lookups: { classPropertyName: "lookups", publicName: "lookups", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-1" }, ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (errorMessage(); as err) {\r\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\r\n } @else if (canWrite()) {\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"'components.entityListField.add' | transloco\"\r\n icon=\"general.plus\"\r\n size=\"small\"\r\n [disabled]=\"disabled()\"\r\n (onClick)=\"openAddDialog()\"\r\n />\r\n </div>\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"writeRowActions()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n } @else if (!canRead()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.readingNotAllowed\" | transloco }}\r\n </div>\r\n } @else if (!hasRequiredContext()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.missingConfiguration\" | transloco }}\r\n </div>\r\n } @else if (loading() && !hasRows()) {\r\n <div class=\"flex flex-col gap-2\">\r\n <p-skeleton width=\"100%\" height=\"3rem\" />\r\n <p-skeleton width=\"100%\" height=\"3rem\" />\r\n </div>\r\n } @else if (!hasRows()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.noRelatedItems\" | transloco }}\r\n </div>\r\n } @else {\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n }\r\n\r\n @if (ngControl?.control) {\r\n <mt-field-validation\r\n [control]=\"ngControl?.control!\"\r\n [touched]=\"ngControl?.touched ?? false\"\r\n />\r\n }\r\n</div>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched", "messageId"] }, { kind: "component", type: Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: Message, selector: "p-message", inputs: ["severity", "text", "escape", "style", "styleClass", "closable", "icon", "closeIcon", "life", "showTransitionOptions", "hideTransitionOptions", "size", "variant", "motionOptions"], outputs: ["onClose"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1482
1526
|
}
|
|
1483
1527
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListField, decorators: [{
|
|
1484
1528
|
type: Component,
|
|
@@ -1490,8 +1534,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
1490
1534
|
Table,
|
|
1491
1535
|
Button,
|
|
1492
1536
|
TranslocoPipe,
|
|
1493
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-1' }, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (errorMessage(); as err) {\r\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\r\n } @else if (canWrite()) {\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"'components.entityListField.add' | transloco\"\r\n icon=\"general.plus\"\r\n size=\"small\"\r\n [disabled]=\"disabled()\"\r\n (onClick)=\"openAddDialog()\"\r\n />\r\n </div>\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"writeRowActions()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n } @else if (!canRead()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.readingNotAllowed\" | transloco }}\r\n </div>\r\n } @else if (!hasRequiredContext()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.
|
|
1494
|
-
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], propertyId: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyId", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }], runtimeContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "runtimeContext", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
|
|
1537
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-1' }, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (errorMessage(); as err) {\r\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\r\n } @else if (canWrite()) {\r\n <div class=\"flex justify-end\">\r\n <mt-button\r\n [label]=\"'components.entityListField.add' | transloco\"\r\n icon=\"general.plus\"\r\n size=\"small\"\r\n [disabled]=\"disabled()\"\r\n (onClick)=\"openAddDialog()\"\r\n />\r\n </div>\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n [rowActions]=\"writeRowActions()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n } @else if (!canRead()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.readingNotAllowed\" | transloco }}\r\n </div>\r\n } @else if (!hasRequiredContext()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.missingConfiguration\" | transloco }}\r\n </div>\r\n } @else if (loading() && !hasRows()) {\r\n <div class=\"flex flex-col gap-2\">\r\n <p-skeleton width=\"100%\" height=\"3rem\" />\r\n <p-skeleton width=\"100%\" height=\"3rem\" />\r\n </div>\r\n } @else if (!hasRows()) {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.entityListField.noRelatedItems\" | transloco }}\r\n </div>\r\n } @else {\r\n <mt-table\r\n [noCard]=\"true\"\r\n [data]=\"displayRows()\"\r\n [columns]=\"columns()\"\r\n dataKey=\"Id\"\r\n [loading]=\"loading()\"\r\n />\r\n }\r\n\r\n @if (ngControl?.control) {\r\n <mt-field-validation\r\n [control]=\"ngControl?.control!\"\r\n [touched]=\"ngControl?.touched ?? false\"\r\n />\r\n }\r\n</div>\r\n", styles: [":host{display:block}\n"] }]
|
|
1538
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], propertyId: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyId", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }], runtimeContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "runtimeContext", required: false }] }], lookups: [{ type: i0.Input, args: [{ isSignal: true, alias: "lookups", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
|
|
1495
1539
|
|
|
1496
1540
|
/** Page size when loading the full deliverable list, and a hard safety cap. */
|
|
1497
1541
|
const PAGE_SIZE = 100;
|