@solidstarters/solid-core 1.2.29 → 1.2.31
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/dist/services/field-metadata.service.js +1 -0
- package/dist/services/field-metadata.service.js.map +1 -1
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +13 -3
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
- package/publish.js +16 -0
- package/src/services/field-metadata.service.ts +1 -1
- package/src/services/model-metadata.service.ts +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidstarters/solid-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31",
|
|
4
4
|
"description": "This module is a NestJS module containing all the required core providers required by a Solid application",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"test:cov": "jest --coverage",
|
|
25
25
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
26
26
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
27
|
-
"prepare": "npm run build"
|
|
27
|
+
"prepare": "npm run build",
|
|
28
|
+
"publish:patch": "node publish.js patch",
|
|
29
|
+
"publish:minor": "node publish.js minor",
|
|
30
|
+
"publish:major": "node publish.js major"
|
|
28
31
|
},
|
|
29
32
|
"author": "Oswald Rodrigues <oswald@logicloop.io>",
|
|
30
33
|
"license": "ISC",
|
package/publish.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const { execSync } = require("child_process");
|
|
2
|
+
|
|
3
|
+
const versionType = process.argv[2] || "patch"; // Default to patch if not specified
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
console.log(`🔄 Updating package version (${versionType})...`);
|
|
7
|
+
execSync(`npm version ${versionType}`, { stdio: "inherit" });
|
|
8
|
+
|
|
9
|
+
console.log("📦 Publishing package...");
|
|
10
|
+
execSync("npm publish", { stdio: "inherit" });
|
|
11
|
+
|
|
12
|
+
console.log("✅ Published successfully!");
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.error("❌ Error:", error.message);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
@@ -344,6 +344,7 @@ export class ModelMetadataService {
|
|
|
344
344
|
dataSource: model.dataSource,
|
|
345
345
|
dataSourceType: model.dataSourceType,
|
|
346
346
|
tableName: model.tableName,
|
|
347
|
+
userKeyFieldUserKey: model.fields.find(field => field.isUserKey)?.name,
|
|
347
348
|
fields: []
|
|
348
349
|
}
|
|
349
350
|
|
|
@@ -388,7 +389,7 @@ export class ModelMetadataService {
|
|
|
388
389
|
|
|
389
390
|
const menu = {
|
|
390
391
|
displayName: `${model.displayName}`,
|
|
391
|
-
name: `${model.singularName}`,
|
|
392
|
+
name: `${model.singularName}-menu-item`,
|
|
392
393
|
sequenceNumber: 1,
|
|
393
394
|
actionUserKey: `${model.singularName}-list-view`,
|
|
394
395
|
moduleUserKey: `${model.module.name}`,
|
|
@@ -447,7 +448,7 @@ export class ModelMetadataService {
|
|
|
447
448
|
},
|
|
448
449
|
{
|
|
449
450
|
type: "column",
|
|
450
|
-
attrs: { name: "group-
|
|
451
|
+
attrs: { name: "group-2", label: "", className: "col-6" },
|
|
451
452
|
children: column2Fields
|
|
452
453
|
}]
|
|
453
454
|
},
|
|
@@ -608,6 +609,7 @@ export class ModelMetadataService {
|
|
|
608
609
|
dataSource: model.dataSource,
|
|
609
610
|
dataSourceType: model.dataSourceType,
|
|
610
611
|
tableName: model.tableName,
|
|
612
|
+
userKeyFieldUserKey: model.fields.find(field => field.isUserKey)?.name,
|
|
611
613
|
fields: []
|
|
612
614
|
}
|
|
613
615
|
|
|
@@ -735,6 +737,10 @@ export class ModelMetadataService {
|
|
|
735
737
|
}
|
|
736
738
|
}));
|
|
737
739
|
|
|
740
|
+
const midIndex = Math.ceil(formViewLayout.length / 2);
|
|
741
|
+
const firstHalf = formViewLayout.slice(0, midIndex);
|
|
742
|
+
const secondHalf = formViewLayout.slice(midIndex);
|
|
743
|
+
|
|
738
744
|
const resolvedModule = await this.dataSource.getRepository(ModuleMetadata).findOne({
|
|
739
745
|
where: { id: model.module.id }
|
|
740
746
|
});
|
|
@@ -786,7 +792,12 @@ export class ModelMetadataService {
|
|
|
786
792
|
{
|
|
787
793
|
type: "column",
|
|
788
794
|
attrs: { name: "group-1", label: "", className: "col-6" },
|
|
789
|
-
children:
|
|
795
|
+
children: firstHalf
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
type: "column",
|
|
799
|
+
attrs: { name: "group-2", label: "", className: "col-6" },
|
|
800
|
+
children: secondHalf
|
|
790
801
|
}
|
|
791
802
|
]
|
|
792
803
|
}
|