@masterteam/components 0.0.296 → 0.0.298
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 +391 -387
- package/assets/i18n/en.json +391 -387
- package/fesm2022/masterteam-components-business-fields.mjs +151 -8
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-checkbox-field.mjs +2 -2
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +2 -2
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +58 -2
|
@@ -793,6 +793,20 @@ const ROW_PREFILL_KEY = '__prefill';
|
|
|
793
793
|
* object and would otherwise display a bare id.
|
|
794
794
|
*/
|
|
795
795
|
const OBJECT_VALUED_VIEW_TYPES = new Set(['User', 'MultiUser']);
|
|
796
|
+
/** Internal row key carrying the staged operation, for export and tests. */
|
|
797
|
+
const ROW_CHANGE_KEY = '__change';
|
|
798
|
+
/** Column key of the synthetic flag column — never a target property key. */
|
|
799
|
+
const ROW_CHANGE_COLUMN_KEY = '__changeState';
|
|
800
|
+
/**
|
|
801
|
+
* Badge colour per staged operation, as a hex: `mt-entity-status` derives its
|
|
802
|
+
* own 12%-alpha background by slicing the value's `color`, so a Tailwind class
|
|
803
|
+
* would render an uncoloured badge.
|
|
804
|
+
*/
|
|
805
|
+
const ROW_CHANGE_COLORS = {
|
|
806
|
+
added: '#16a34a',
|
|
807
|
+
edited: '#d97706',
|
|
808
|
+
deleted: '#dc2626',
|
|
809
|
+
};
|
|
796
810
|
class EntityListField {
|
|
797
811
|
// Inputs
|
|
798
812
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -1012,20 +1026,145 @@ class EntityListField {
|
|
|
1012
1026
|
this.accessMode() === 'Write' ||
|
|
1013
1027
|
this.pendingSubmission(), ...(ngDevMode ? [{ debugName: "showsPendingOperations" }] : /* istanbul ignore next */ []));
|
|
1014
1028
|
/**
|
|
1015
|
-
*
|
|
1016
|
-
* removed
|
|
1029
|
+
* Whether each row is flagged with the operation the request performs on it,
|
|
1030
|
+
* and a removed row stays on screen instead of disappearing.
|
|
1031
|
+
*
|
|
1032
|
+
* Only while reviewing an unapplied submission. In an editable field the user
|
|
1033
|
+
* just pressed delete, so the row leaving *is* the feedback — putting it back
|
|
1034
|
+
* with a badge and no way to undo reads as a delete that failed.
|
|
1035
|
+
*/
|
|
1036
|
+
showsChangeFlags = computed(() => this.pendingSubmission(), ...(ngDevMode ? [{ debugName: "showsChangeFlags" }] : /* istanbul ignore next */ []));
|
|
1037
|
+
/**
|
|
1038
|
+
* Rows rendered in the table: existing rows merged with pending edits, and
|
|
1039
|
+
* created rows appended.
|
|
1040
|
+
*
|
|
1041
|
+
* While reviewing a submission the removed rows stay too, flagged `deleted`,
|
|
1042
|
+
* and every row carries the operation it represents. An approver has to see
|
|
1043
|
+
* the deletes they are approving — hiding them understated what pressing
|
|
1044
|
+
* Approve would do. Everywhere else a removed row is simply gone.
|
|
1017
1045
|
*/
|
|
1018
1046
|
displayRows = computed(() => {
|
|
1019
1047
|
if (!this.showsPendingOperations())
|
|
1020
1048
|
return this.rows();
|
|
1021
1049
|
const deleted = new Set(this.deletedIds());
|
|
1022
1050
|
const edited = this.editedRowsByEntityId();
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1051
|
+
const flagged = this.showsChangeFlags();
|
|
1052
|
+
const existing = [];
|
|
1053
|
+
for (const row of this.rows()) {
|
|
1054
|
+
const entityId = Number(row[ROW_ENTITY_ID_KEY]);
|
|
1055
|
+
if (deleted.has(entityId)) {
|
|
1056
|
+
if (flagged)
|
|
1057
|
+
existing.push(this.withRowChange(row, 'deleted'));
|
|
1058
|
+
continue;
|
|
1059
|
+
}
|
|
1060
|
+
const pending = edited.get(entityId);
|
|
1061
|
+
existing.push(pending
|
|
1062
|
+
? this.withRowChange(pending, 'edited')
|
|
1063
|
+
: this.withRowChange(row, null));
|
|
1064
|
+
}
|
|
1065
|
+
const created = this.createdRows().map((row) => this.withRowChange(row, 'added'));
|
|
1066
|
+
return [...existing, ...this.orphanDeletedRows(), ...created];
|
|
1027
1067
|
}, ...(ngDevMode ? [{ debugName: "displayRows" }] : /* istanbul ignore next */ []));
|
|
1028
1068
|
hasRows = computed(() => this.displayRows().length > 0, ...(ngDevMode ? [{ debugName: "hasRows" }] : /* istanbul ignore next */ []));
|
|
1069
|
+
/**
|
|
1070
|
+
* Tag a rendered row with its staged operation and the cell that displays it.
|
|
1071
|
+
* A no-op outside a reviewed submission, so an editable table keeps the rows
|
|
1072
|
+
* exactly as the projection built them.
|
|
1073
|
+
*/
|
|
1074
|
+
withRowChange(row, change) {
|
|
1075
|
+
if (!this.showsChangeFlags())
|
|
1076
|
+
return row;
|
|
1077
|
+
return {
|
|
1078
|
+
...row,
|
|
1079
|
+
[ROW_CHANGE_KEY]: change,
|
|
1080
|
+
[ROW_CHANGE_COLUMN_KEY]: change ? this.buildRowChangeCell(change) : null,
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Deleted ids with no loaded record behind them — already applied elsewhere,
|
|
1085
|
+
* or outside the level-data scope this table queries. They render as an empty
|
|
1086
|
+
* flagged row rather than vanishing: a review screen that silently drops a
|
|
1087
|
+
* delete is the bug this whole overlay exists to avoid, and an id the table
|
|
1088
|
+
* cannot describe is still a deletion the approver is signing off on.
|
|
1089
|
+
*/
|
|
1090
|
+
orphanDeletedRows() {
|
|
1091
|
+
if (!this.showsChangeFlags())
|
|
1092
|
+
return [];
|
|
1093
|
+
const loaded = this.rowsByEntityId();
|
|
1094
|
+
return this.deletedIds()
|
|
1095
|
+
.filter((entityId) => !loaded.has(entityId))
|
|
1096
|
+
.map((entityId) => ({
|
|
1097
|
+
Id: entityId,
|
|
1098
|
+
[ROW_ID_KEY]: `entity-${entityId}`,
|
|
1099
|
+
[ROW_ENTITY_ID_KEY]: entityId,
|
|
1100
|
+
[ROW_VALUES_KEY]: {},
|
|
1101
|
+
[ROW_PREFILL_KEY]: {},
|
|
1102
|
+
[ROW_CHANGE_KEY]: 'deleted',
|
|
1103
|
+
[ROW_CHANGE_COLUMN_KEY]: this.buildRowChangeCell('deleted'),
|
|
1104
|
+
}));
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* The flag cell, built as the `Status` entity `mt-table` already renders — a
|
|
1108
|
+
* `rounded-md` badge tinted from the value's own colour. Assembled here
|
|
1109
|
+
* rather than as a bespoke cell template so the column looks like every other
|
|
1110
|
+
* cell in the table and needs no host wiring.
|
|
1111
|
+
*/
|
|
1112
|
+
buildRowChangeCell(change) {
|
|
1113
|
+
return {
|
|
1114
|
+
key: ROW_CHANGE_COLUMN_KEY,
|
|
1115
|
+
name: this.rowChangeLabels().column,
|
|
1116
|
+
viewType: 'Status',
|
|
1117
|
+
value: {
|
|
1118
|
+
key: change,
|
|
1119
|
+
display: this.rowChangeLabels()[change],
|
|
1120
|
+
color: ROW_CHANGE_COLORS[change],
|
|
1121
|
+
},
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Badge labels, re-resolved when the active language changes. `translate()`
|
|
1126
|
+
* is a plain call, so without a language signal to depend on the computed
|
|
1127
|
+
* would keep whichever language it first ran in.
|
|
1128
|
+
*/
|
|
1129
|
+
rowChangeLabels = computed(() => {
|
|
1130
|
+
const lang = this.lang();
|
|
1131
|
+
const translate = (key) => this.transloco.translate(`components.entityListField.${key}`, {}, lang);
|
|
1132
|
+
return {
|
|
1133
|
+
column: translate('changeColumn'),
|
|
1134
|
+
added: translate('changeAdded'),
|
|
1135
|
+
edited: translate('changeEdited'),
|
|
1136
|
+
deleted: translate('changeDeleted'),
|
|
1137
|
+
};
|
|
1138
|
+
}, ...(ngDevMode ? [{ debugName: "rowChangeLabels" }] : /* istanbul ignore next */ []));
|
|
1139
|
+
/**
|
|
1140
|
+
* Columns bound to the table: the data columns, followed by the flag column
|
|
1141
|
+
* while reviewing a submission.
|
|
1142
|
+
*
|
|
1143
|
+
* Last, not first: the leading column is what identifies a row, and pushing
|
|
1144
|
+
* the record's own name aside for a badge makes the table harder to read for
|
|
1145
|
+
* the rows nothing happened to — which is most of them.
|
|
1146
|
+
*
|
|
1147
|
+
* Deliberately separate from `columns()`, which is the metadata projection
|
|
1148
|
+
* the row builders iterate — a synthetic column in there would be looked up
|
|
1149
|
+
* against the record values and add an empty cell to every row.
|
|
1150
|
+
*/
|
|
1151
|
+
tableColumns = computed(() => {
|
|
1152
|
+
const columns = this.columns();
|
|
1153
|
+
if (!this.showsChangeFlags())
|
|
1154
|
+
return columns;
|
|
1155
|
+
return [
|
|
1156
|
+
...columns,
|
|
1157
|
+
{
|
|
1158
|
+
key: ROW_CHANGE_COLUMN_KEY,
|
|
1159
|
+
label: this.rowChangeLabels().column,
|
|
1160
|
+
type: 'entity',
|
|
1161
|
+
sortable: false,
|
|
1162
|
+
filterable: false,
|
|
1163
|
+
shrink: true,
|
|
1164
|
+
exportValue: (row) => row[ROW_CHANGE_KEY] ?? '',
|
|
1165
|
+
},
|
|
1166
|
+
];
|
|
1167
|
+
}, ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
|
|
1029
1168
|
/** Enough context to ask the backend what this field should render. */
|
|
1030
1169
|
hasRequiredContext = computed(() => this.propertyKeyId() > 0 && Number(this.levelId()) > 0, ...(ngDevMode ? [{ debugName: "hasRequiredContext" }] : /* istanbul ignore next */ []));
|
|
1031
1170
|
/**
|
|
@@ -1062,6 +1201,10 @@ class EntityListField {
|
|
|
1062
1201
|
destroyRef = inject(DestroyRef);
|
|
1063
1202
|
modal = inject(ModalService);
|
|
1064
1203
|
transloco = inject(TranslocoService);
|
|
1204
|
+
/** Active language — see `rowChangeLabels`. */
|
|
1205
|
+
lang = toSignal(this.transloco.langChanges$, {
|
|
1206
|
+
initialValue: this.transloco.getActiveLang(),
|
|
1207
|
+
});
|
|
1065
1208
|
/**
|
|
1066
1209
|
* Optional rich add-row dialog (provided by `@masterteam/forms` via
|
|
1067
1210
|
* `provideEntityListAddForm()`). When available, used instead of the local
|
|
@@ -1817,7 +1960,7 @@ class EntityListField {
|
|
|
1817
1960
|
};
|
|
1818
1961
|
}
|
|
1819
1962
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1820
|
-
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 }, pendingSubmission: { classPropertyName: "pendingSubmission", publicName: "pendingSubmission", 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\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (errorMessage(); as err) {\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\n } @else if (noticeKey(); as notice) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ notice | transloco }}\n </div>\n } @else if (canWrite()) {\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"'components.entityListField.add' | transloco\"\n icon=\"general.plus\"\n size=\"small\"\n [disabled]=\"disabled()\"\n (onClick)=\"openAddDialog()\"\n />\n </div>\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"
|
|
1963
|
+
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 }, pendingSubmission: { classPropertyName: "pendingSubmission", publicName: "pendingSubmission", 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\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (errorMessage(); as err) {\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\n } @else if (noticeKey(); as notice) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ notice | transloco }}\n </div>\n } @else if (canWrite()) {\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"'components.entityListField.add' | transloco\"\n icon=\"general.plus\"\n size=\"small\"\n [disabled]=\"disabled()\"\n (onClick)=\"openAddDialog()\"\n />\n </div>\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"tableColumns()\"\n [rowActions]=\"writeRowActions()\"\n dataKey=\"Id\"\n [loading]=\"loading()\"\n />\n } @else if (loading() && !hasRows()) {\n <div class=\"flex flex-col gap-2\">\n <p-skeleton width=\"100%\" height=\"3rem\" borderRadius=\"0.375rem\" />\n <p-skeleton width=\"100%\" height=\"3rem\" borderRadius=\"0.375rem\" />\n </div>\n } @else if (!hasRows()) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ \"components.entityListField.noRelatedItems\" | transloco }}\n </div>\n } @else {\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"tableColumns()\"\n dataKey=\"Id\"\n [loading]=\"loading()\"\n />\n }\n\n @if (ngControl?.control) {\n <mt-field-validation\n [control]=\"ngControl?.control!\"\n [touched]=\"ngControl?.touched ?? false\"\n />\n }\n</div>\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 });
|
|
1821
1964
|
}
|
|
1822
1965
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListField, decorators: [{
|
|
1823
1966
|
type: Component,
|
|
@@ -1829,7 +1972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
1829
1972
|
Table,
|
|
1830
1973
|
Button,
|
|
1831
1974
|
TranslocoPipe,
|
|
1832
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-1' }, template: "<div class=\"flex flex-col gap-2\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (errorMessage(); as err) {\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\n } @else if (noticeKey(); as notice) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ notice | transloco }}\n </div>\n } @else if (canWrite()) {\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"'components.entityListField.add' | transloco\"\n icon=\"general.plus\"\n size=\"small\"\n [disabled]=\"disabled()\"\n (onClick)=\"openAddDialog()\"\n />\n </div>\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"
|
|
1975
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-1' }, template: "<div class=\"flex flex-col gap-2\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (errorMessage(); as err) {\n <p-message severity=\"error\" [text]=\"err\" styleClass=\"w-full\" />\n } @else if (noticeKey(); as notice) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ notice | transloco }}\n </div>\n } @else if (canWrite()) {\n <div class=\"flex justify-end\">\n <mt-button\n [label]=\"'components.entityListField.add' | transloco\"\n icon=\"general.plus\"\n size=\"small\"\n [disabled]=\"disabled()\"\n (onClick)=\"openAddDialog()\"\n />\n </div>\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"tableColumns()\"\n [rowActions]=\"writeRowActions()\"\n dataKey=\"Id\"\n [loading]=\"loading()\"\n />\n } @else if (loading() && !hasRows()) {\n <div class=\"flex flex-col gap-2\">\n <p-skeleton width=\"100%\" height=\"3rem\" borderRadius=\"0.375rem\" />\n <p-skeleton width=\"100%\" height=\"3rem\" borderRadius=\"0.375rem\" />\n </div>\n } @else if (!hasRows()) {\n <div\n class=\"rounded-md border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ \"components.entityListField.noRelatedItems\" | transloco }}\n </div>\n } @else {\n <mt-table\n [noCard]=\"true\"\n [data]=\"displayRows()\"\n [columns]=\"tableColumns()\"\n dataKey=\"Id\"\n [loading]=\"loading()\"\n />\n }\n\n @if (ngControl?.control) {\n <mt-field-validation\n [control]=\"ngControl?.control!\"\n [touched]=\"ngControl?.touched ?? false\"\n />\n }\n</div>\n", styles: [":host{display:block}\n"] }]
|
|
1833
1976
|
}], 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 }] }], pendingSubmission: [{ type: i0.Input, args: [{ isSignal: true, alias: "pendingSubmission", required: false }] }], lookups: [{ type: i0.Input, args: [{ isSignal: true, alias: "lookups", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
|
|
1834
1977
|
|
|
1835
1978
|
/** Page size when loading the full deliverable list, and a hard safety cap. */
|