@ghentcdh/create-crouton 0.0.1-alpha.34 → 0.0.1-alpha.36
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/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/templates/nx/workspace/apps/frontend/package.json.tmpl +1 -0
- package/dist/templates/nx/workspace/apps/frontend/src/api.ts.tmpl +10 -3
- package/dist/templates/nx/workspace/apps/frontend/src/main.ts.tmpl +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18901,6 +18901,7 @@ var DetailConfigSchema = external_exports.object({
|
|
|
18901
18901
|
// required
|
|
18902
18902
|
});
|
|
18903
18903
|
var RelationFieldInputOptionsSchema = external_exports.object({
|
|
18904
|
+
colspan: external_exports.number().optional().default(12),
|
|
18904
18905
|
/** Field to sort related records by, e.g. `"title"` or `"author.name"`. */
|
|
18905
18906
|
sort: external_exports.string().optional(),
|
|
18906
18907
|
/** Sort direction. Defaults to `"asc"` when omitted. */
|
|
@@ -18944,6 +18945,7 @@ var FieldInputSchema = external_exports.object({
|
|
|
18944
18945
|
/** Nested array detail layout (renders via `detailFixed`). */
|
|
18945
18946
|
detail: DetailConfigSchema.optional()
|
|
18946
18947
|
});
|
|
18948
|
+
var FieldVariantSchema = FieldInputSchema;
|
|
18947
18949
|
|
|
18948
18950
|
// ../crouton-core/src/lib/schema/label.helper.ts
|
|
18949
18951
|
var labelFromId = (id) => {
|
|
@@ -19045,6 +19047,18 @@ var JsonColumnSchema = external_exports.object({
|
|
|
19045
19047
|
columnType: external_exports.string().default("string"),
|
|
19046
19048
|
// default: 'string'
|
|
19047
19049
|
fieldInput: FieldInputSchema.optional(),
|
|
19050
|
+
/**
|
|
19051
|
+
* Optional per-context override for the read-only VIEW ui. Same shape as
|
|
19052
|
+
* `fieldInput`; every key optional. Falls back to `fieldInput` (deep-merged
|
|
19053
|
+
* one level into `options`). Resolved at read time by the transformer.
|
|
19054
|
+
*/
|
|
19055
|
+
fieldView: FieldVariantSchema.optional(),
|
|
19056
|
+
/**
|
|
19057
|
+
* Optional per-context override for the TABLE ui. Same shape as `fieldInput`;
|
|
19058
|
+
* every key optional. Falls back to `fieldView`, then `fieldInput`.
|
|
19059
|
+
* Resolved at read time by the transformer.
|
|
19060
|
+
*/
|
|
19061
|
+
fieldTable: FieldVariantSchema.optional(),
|
|
19048
19062
|
/**
|
|
19049
19063
|
* Path to another `resource.json` whose columns are expanded as nested sub-columns
|
|
19050
19064
|
* under this column's object key.
|
|
@@ -19533,7 +19547,7 @@ var runCreate = async (name, opts) => {
|
|
|
19533
19547
|
const tokens = {
|
|
19534
19548
|
name,
|
|
19535
19549
|
Name: toTitle(name),
|
|
19536
|
-
version: true ? "0.0.1-alpha.
|
|
19550
|
+
version: true ? "0.0.1-alpha.36" : "latest",
|
|
19537
19551
|
year: String((/* @__PURE__ */ new Date()).getFullYear()),
|
|
19538
19552
|
pmRun: pm === "npm" ? "npm run" : pm,
|
|
19539
19553
|
urlEnv: "DATABASE_URL",
|