@live-change/frontend-auto-form 0.9.205 → 0.9.207

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.
@@ -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": {
@@ -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": {
@@ -34,6 +34,7 @@
34
34
  <script setup>
35
35
 
36
36
  import Message from "primevue/message"
37
+ import Button from "primevue/button"
37
38
 
38
39
  import { ref, computed, onMounted, defineProps, defineEmits, toRefs, getCurrentInstance, unref } from 'vue'
39
40
  import { useI18n } from 'vue-i18n'
@@ -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 ? path[serviceName][crudMethods.read](identifiers) : null
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.205",
3
+ "version": "0.9.207",
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.205",
26
- "@live-change/dao": "^0.9.205",
27
- "@live-change/dao-vue3": "^0.9.205",
28
- "@live-change/dao-websocket": "^0.9.205",
29
- "@live-change/framework": "^0.9.205",
30
- "@live-change/image-frontend": "^0.9.205",
31
- "@live-change/image-service": "^0.9.205",
32
- "@live-change/session-service": "^0.9.205",
33
- "@live-change/vue3-components": "^0.9.205",
34
- "@live-change/vue3-ssr": "^0.9.205",
25
+ "@live-change/cli": "^0.9.207",
26
+ "@live-change/dao": "^0.9.207",
27
+ "@live-change/dao-vue3": "^0.9.207",
28
+ "@live-change/dao-websocket": "^0.9.207",
29
+ "@live-change/framework": "^0.9.207",
30
+ "@live-change/image-frontend": "^0.9.207",
31
+ "@live-change/image-service": "^0.9.207",
32
+ "@live-change/session-service": "^0.9.207",
33
+ "@live-change/vue3-components": "^0.9.207",
34
+ "@live-change/vue3-ssr": "^0.9.207",
35
35
  "@vueuse/core": "^12.3.0",
36
36
  "codeceptjs-assert": "^0.0.5",
37
37
  "compression": "^1.7.5",
@@ -52,10 +52,10 @@
52
52
  "vue3-scroll-border": "0.1.7"
53
53
  },
54
54
  "devDependencies": {
55
- "@live-change/codeceptjs-helper": "^0.9.205",
55
+ "@live-change/codeceptjs-helper": "^0.9.207",
56
56
  "codeceptjs": "^3.7.6",
57
57
  "generate-password": "^1.7.1",
58
- "playwright": "^1.49.1",
58
+ "playwright": "=1.50.1",
59
59
  "random-profile-generator": "^2.3.0",
60
60
  "txtgen": "^3.0.7",
61
61
  "webdriverio": "^9.5.1"
@@ -63,5 +63,5 @@
63
63
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
64
64
  "license": "ISC",
65
65
  "description": "",
66
- "gitHead": "ef195e51ea283e56d891b11da5d5f586691507db"
66
+ "gitHead": "1937f8f9798d5df011b38341119a25afe0def6d1"
67
67
  }