@live-change/frontend-auto-form 0.9.205 → 0.9.206
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/front/locales/en.json
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"empty": "This field is required.",
|
|
5
5
|
"tooShort": "Too short, minimum {length} characters.",
|
|
6
6
|
"tooLong": "Too long, maximum {length} characters.",
|
|
7
|
+
"tooSmall": "The value is below the allowed minimum.",
|
|
8
|
+
"tooLarge": "The value is above the allowed maximum.",
|
|
9
|
+
"notANumber": "Please enter a valid number.",
|
|
10
|
+
"notAnInteger": "Please enter a whole number.",
|
|
7
11
|
"wrongUrl": "Invalid URL. Acceptable url formats: https://example.com or www.example.com"
|
|
8
12
|
},
|
|
9
13
|
"info": {
|
package/front/locales/pl.json
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"empty": "To pole jest wymagane.",
|
|
5
5
|
"tooShort": "Za krótkie, minimum {length} znaków.",
|
|
6
6
|
"tooLong": "Za długie, maksimum {length} znaków.",
|
|
7
|
+
"tooSmall": "Wartość jest mniejsza niż dozwolone minimum.",
|
|
8
|
+
"tooLarge": "Wartość jest większa niż dozwolone maksimum.",
|
|
9
|
+
"notANumber": "Podaj prawidłową liczbę.",
|
|
10
|
+
"notAnInteger": "Podaj liczbę całkowitą.",
|
|
7
11
|
"wrongUrl": "Nieprawidłowy URL. Akceptowalne formaty: https://example.com lub www.example.com"
|
|
8
12
|
},
|
|
9
13
|
"info": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:id="uid"
|
|
16
16
|
:i18n="i18n" />
|
|
17
17
|
</slot>
|
|
18
|
-
<div>
|
|
18
|
+
<div class="flex justify-between flex-row flex-wrap">
|
|
19
19
|
<slot name="error" v-bind="{ validationResult, uid }" >
|
|
20
20
|
<Message v-if="validationResult && !minLengthErrorVisible" severity="error" variant="simple" size="small"
|
|
21
21
|
class="mt-1">
|
|
@@ -26,6 +26,8 @@ export default function editorData(options) {
|
|
|
26
26
|
debounce = 600,
|
|
27
27
|
timeField = 'lastUpdate',
|
|
28
28
|
crudSource = 'crud',
|
|
29
|
+
/** When true, call the read view even if `identifiers` is `{}` (e.g. ownerCrud `my…` views). Default false keeps create-only forms from subscribing to a read path. */
|
|
30
|
+
allowReadWithoutIdentifiers = false,
|
|
29
31
|
|
|
30
32
|
savedToast = "Saved",
|
|
31
33
|
savedDraftToast = "Draft saved",
|
|
@@ -89,7 +91,9 @@ export default function editorData(options) {
|
|
|
89
91
|
actionType: serviceName, action: crudMethods.read, targetType: modelName, target: draftId
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
const savedDataPath = Object.keys(identifiers).length > 0
|
|
94
|
+
const savedDataPath = (Object.keys(identifiers).length > 0 || allowReadWithoutIdentifiers)
|
|
95
|
+
? path[serviceName][crudMethods.read](identifiers)
|
|
96
|
+
: null
|
|
93
97
|
const draftDataPath = (draft && path.draft.myDraft(draftIdentifiers)) || null
|
|
94
98
|
|
|
95
99
|
const updateAction = api.actions[serviceName][crudMethods.update]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/frontend-auto-form",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.206",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
25
|
-
"@live-change/cli": "^0.9.
|
|
26
|
-
"@live-change/dao": "^0.9.
|
|
27
|
-
"@live-change/dao-vue3": "^0.9.
|
|
28
|
-
"@live-change/dao-websocket": "^0.9.
|
|
29
|
-
"@live-change/framework": "^0.9.
|
|
30
|
-
"@live-change/image-frontend": "^0.9.
|
|
31
|
-
"@live-change/image-service": "^0.9.
|
|
32
|
-
"@live-change/session-service": "^0.9.
|
|
33
|
-
"@live-change/vue3-components": "^0.9.
|
|
34
|
-
"@live-change/vue3-ssr": "^0.9.
|
|
25
|
+
"@live-change/cli": "^0.9.206",
|
|
26
|
+
"@live-change/dao": "^0.9.206",
|
|
27
|
+
"@live-change/dao-vue3": "^0.9.206",
|
|
28
|
+
"@live-change/dao-websocket": "^0.9.206",
|
|
29
|
+
"@live-change/framework": "^0.9.206",
|
|
30
|
+
"@live-change/image-frontend": "^0.9.206",
|
|
31
|
+
"@live-change/image-service": "^0.9.206",
|
|
32
|
+
"@live-change/session-service": "^0.9.206",
|
|
33
|
+
"@live-change/vue3-components": "^0.9.206",
|
|
34
|
+
"@live-change/vue3-ssr": "^0.9.206",
|
|
35
35
|
"@vueuse/core": "^12.3.0",
|
|
36
36
|
"codeceptjs-assert": "^0.0.5",
|
|
37
37
|
"compression": "^1.7.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue3-scroll-border": "0.1.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@live-change/codeceptjs-helper": "^0.9.
|
|
55
|
+
"@live-change/codeceptjs-helper": "^0.9.206",
|
|
56
56
|
"codeceptjs": "^3.7.6",
|
|
57
57
|
"generate-password": "^1.7.1",
|
|
58
58
|
"playwright": "^1.49.1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
64
64
|
"license": "ISC",
|
|
65
65
|
"description": "",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "550ec614c03ed33fbb8a094d23a63dd2d20d5de3"
|
|
67
67
|
}
|