@praxisui/core 8.0.0-beta.62 → 8.0.0-beta.64
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.
|
@@ -12034,7 +12034,8 @@ class SurfaceOpenMaterializerService {
|
|
|
12034
12034
|
}
|
|
12035
12035
|
shouldMaterializeItemReadProjection(payload) {
|
|
12036
12036
|
const surface = payload.context?.['surface'];
|
|
12037
|
-
|
|
12037
|
+
const kind = String(surface?.['kind'] || '').toUpperCase();
|
|
12038
|
+
return ((kind === 'READ_PROJECTION' || kind === 'VIEW') &&
|
|
12038
12039
|
surface?.['scope'] === 'ITEM' &&
|
|
12039
12040
|
String(surface?.['method'] || '').toUpperCase() === 'GET');
|
|
12040
12041
|
}
|
|
@@ -12072,6 +12073,7 @@ class SurfaceOpenMaterializerService {
|
|
|
12072
12073
|
}
|
|
12073
12074
|
materializeArrayAsTable(payload, data, fields, resourceId, readUrl) {
|
|
12074
12075
|
const previousInputs = payload.widget.inputs || {};
|
|
12076
|
+
const tableInputOverrides = this.projectTableInputs(previousInputs);
|
|
12075
12077
|
return {
|
|
12076
12078
|
...payload,
|
|
12077
12079
|
widget: {
|
|
@@ -12088,7 +12090,7 @@ class SurfaceOpenMaterializerService {
|
|
|
12088
12090
|
'enableCustomization',
|
|
12089
12091
|
],
|
|
12090
12092
|
inputs: {
|
|
12091
|
-
...
|
|
12093
|
+
...tableInputOverrides,
|
|
12092
12094
|
resourcePath: '',
|
|
12093
12095
|
tableId: String(previousInputs['tableId'] || this.stableSurfaceId(payload)),
|
|
12094
12096
|
componentInstanceId: `${this.stableSurfaceId(payload)}.${resourceId}`,
|
|
@@ -12107,6 +12109,24 @@ class SurfaceOpenMaterializerService {
|
|
|
12107
12109
|
}),
|
|
12108
12110
|
};
|
|
12109
12111
|
}
|
|
12112
|
+
projectTableInputs(inputs) {
|
|
12113
|
+
const supported = new Set([
|
|
12114
|
+
'tableId',
|
|
12115
|
+
'componentInstanceId',
|
|
12116
|
+
'title',
|
|
12117
|
+
'subtitle',
|
|
12118
|
+
'icon',
|
|
12119
|
+
'enableCustomization',
|
|
12120
|
+
'dense',
|
|
12121
|
+
'horizontalScroll',
|
|
12122
|
+
'autoDelete',
|
|
12123
|
+
'notifyIfOutdated',
|
|
12124
|
+
'snoozeMs',
|
|
12125
|
+
'autoOpenSettingsOnOutdated',
|
|
12126
|
+
'crudContext',
|
|
12127
|
+
]);
|
|
12128
|
+
return Object.fromEntries(Object.entries(inputs).filter(([key]) => supported.has(key)));
|
|
12129
|
+
}
|
|
12110
12130
|
buildLocalTableConfig(fields, data) {
|
|
12111
12131
|
const schemaColumns = fields
|
|
12112
12132
|
.filter((field) => !field.hidden && !field.tableHidden && !!field.name)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.64",
|
|
4
4
|
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
package/types/praxisui-core.d.ts
CHANGED
|
@@ -8972,6 +8972,7 @@ declare class SurfaceOpenMaterializerService {
|
|
|
8972
8972
|
private resolveItemReadUrl;
|
|
8973
8973
|
private resolveSchemaFields;
|
|
8974
8974
|
private materializeArrayAsTable;
|
|
8975
|
+
private projectTableInputs;
|
|
8975
8976
|
private buildLocalTableConfig;
|
|
8976
8977
|
private inferColumnsFromData;
|
|
8977
8978
|
private mergeMaterializationContext;
|