@cedarjs/cli 7.0.0-canary.3228 → 7.0.0-canary.3231
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.
|
@@ -56,6 +56,19 @@ interface ${singularPascalName}FormProps {
|
|
|
56
56
|
const ${singularPascalName}Form = (props: ${singularPascalName}FormProps) => {
|
|
57
57
|
const onSubmit = (data: Form${singularPascalName}) => {
|
|
58
58
|
<% editableColumns.forEach(column => { %>
|
|
59
|
+
<% if (column.type === 'DateTime' && !column.isList) { %>
|
|
60
|
+
// The input only holds minutes, so an untouched field is sent back as the
|
|
61
|
+
// stored value, keeping its seconds, milliseconds and, when daylight
|
|
62
|
+
// saving time ends, which of the two repeated hours it was in
|
|
63
|
+
if (
|
|
64
|
+
data.${column.name} &&
|
|
65
|
+
props.${singularCamelName}?.${column.name} &&
|
|
66
|
+
formatDatetime(data.${column.name}) ===
|
|
67
|
+
formatDatetime(props.${singularCamelName}.${column.name})
|
|
68
|
+
) {
|
|
69
|
+
data.${column.name} = props.${singularCamelName}.${column.name}
|
|
70
|
+
}
|
|
71
|
+
<% } %>
|
|
59
72
|
<% if (column.isEnum && !column.isList && !column.isRequired) { %>
|
|
60
73
|
if (data.${column.name} === '') {
|
|
61
74
|
data.${column.name} = null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3231",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@babel/preset-typescript": "7.29.7",
|
|
37
37
|
"@babel/traverse": "7.29.8",
|
|
38
38
|
"@babel/types": "7.29.8",
|
|
39
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
40
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
41
|
-
"@cedarjs/cli-helpers": "7.0.0-canary.
|
|
42
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
43
|
-
"@cedarjs/prerender": "7.0.0-canary.
|
|
44
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
45
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
46
|
-
"@cedarjs/telemetry": "7.0.0-canary.
|
|
47
|
-
"@cedarjs/utils": "7.0.0-canary.
|
|
48
|
-
"@cedarjs/vite": "7.0.0-canary.
|
|
49
|
-
"@cedarjs/web-server": "7.0.0-canary.
|
|
39
|
+
"@cedarjs/api-server": "7.0.0-canary.3231",
|
|
40
|
+
"@cedarjs/babel-config": "7.0.0-canary.3231",
|
|
41
|
+
"@cedarjs/cli-helpers": "7.0.0-canary.3231",
|
|
42
|
+
"@cedarjs/internal": "7.0.0-canary.3231",
|
|
43
|
+
"@cedarjs/prerender": "7.0.0-canary.3231",
|
|
44
|
+
"@cedarjs/project-config": "7.0.0-canary.3231",
|
|
45
|
+
"@cedarjs/structure": "7.0.0-canary.3231",
|
|
46
|
+
"@cedarjs/telemetry": "7.0.0-canary.3231",
|
|
47
|
+
"@cedarjs/utils": "7.0.0-canary.3231",
|
|
48
|
+
"@cedarjs/vite": "7.0.0-canary.3231",
|
|
49
|
+
"@cedarjs/web-server": "7.0.0-canary.3231",
|
|
50
50
|
"@listr2/prompt-adapter-enquirer": "4.3.2",
|
|
51
51
|
"@opentelemetry/api": "1.9.1",
|
|
52
52
|
"@opentelemetry/core": "2.11.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"yargs": "17.7.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
97
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3231",
|
|
98
98
|
"@prisma/dmmf": "7.10.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
100
|
"memfs": "4.78.1",
|