@solidstarters/solid-core 1.2.30 → 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/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +11 -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/model-metadata.service.ts +12 -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
|
+
}
|
|
@@ -389,7 +389,7 @@ export class ModelMetadataService {
|
|
|
389
389
|
|
|
390
390
|
const menu = {
|
|
391
391
|
displayName: `${model.displayName}`,
|
|
392
|
-
name: `${model.singularName}`,
|
|
392
|
+
name: `${model.singularName}-menu-item`,
|
|
393
393
|
sequenceNumber: 1,
|
|
394
394
|
actionUserKey: `${model.singularName}-list-view`,
|
|
395
395
|
moduleUserKey: `${model.module.name}`,
|
|
@@ -448,7 +448,7 @@ export class ModelMetadataService {
|
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
type: "column",
|
|
451
|
-
attrs: { name: "group-
|
|
451
|
+
attrs: { name: "group-2", label: "", className: "col-6" },
|
|
452
452
|
children: column2Fields
|
|
453
453
|
}]
|
|
454
454
|
},
|
|
@@ -737,6 +737,10 @@ export class ModelMetadataService {
|
|
|
737
737
|
}
|
|
738
738
|
}));
|
|
739
739
|
|
|
740
|
+
const midIndex = Math.ceil(formViewLayout.length / 2);
|
|
741
|
+
const firstHalf = formViewLayout.slice(0, midIndex);
|
|
742
|
+
const secondHalf = formViewLayout.slice(midIndex);
|
|
743
|
+
|
|
740
744
|
const resolvedModule = await this.dataSource.getRepository(ModuleMetadata).findOne({
|
|
741
745
|
where: { id: model.module.id }
|
|
742
746
|
});
|
|
@@ -788,7 +792,12 @@ export class ModelMetadataService {
|
|
|
788
792
|
{
|
|
789
793
|
type: "column",
|
|
790
794
|
attrs: { name: "group-1", label: "", className: "col-6" },
|
|
791
|
-
children:
|
|
795
|
+
children: firstHalf
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
type: "column",
|
|
799
|
+
attrs: { name: "group-2", label: "", className: "col-6" },
|
|
800
|
+
children: secondHalf
|
|
792
801
|
}
|
|
793
802
|
]
|
|
794
803
|
}
|