@stonecrop/desktop 0.10.5 → 0.10.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/desktop",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -32,10 +32,10 @@
32
32
  "**/*.css"
33
33
  ],
34
34
  "dependencies": {
35
- "@stonecrop/aform": "0.10.5",
36
- "@stonecrop/stonecrop": "0.10.5",
37
- "@stonecrop/themes": "0.10.5",
38
- "@stonecrop/atable": "0.10.5"
35
+ "@stonecrop/stonecrop": "0.10.6",
36
+ "@stonecrop/aform": "0.10.6",
37
+ "@stonecrop/themes": "0.10.6",
38
+ "@stonecrop/atable": "0.10.6"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "vue": "^3.5.28"
@@ -240,14 +240,14 @@ const getAvailableTransitions = () => {
240
240
  }
241
241
 
242
242
  try {
243
- const meta = stonecrop.value.registry.getDoctype(currentDoctype.value)
244
- if (!meta?.workflow) return []
243
+ const doctype = stonecrop.value.registry.getDoctype(currentDoctype.value)
244
+ if (!doctype?.workflow) return []
245
245
 
246
246
  // Delegate state resolution to Stonecrop — reads record 'status', falls back to workflow.initial
247
247
  const currentState = stonecrop.value.getRecordState(currentDoctype.value, currentRecordId.value)
248
248
 
249
- // Delegate transition lookup to DoctypeMeta — no more manual workflow introspection
250
- const transitions = meta.getAvailableTransitions(currentState)
249
+ // Delegate transition lookup to Doctype — no more manual workflow introspection
250
+ const transitions = doctype.getAvailableTransitions(currentState)
251
251
 
252
252
  const recordData = currentViewData.value || {}
253
253
 
@@ -543,15 +543,15 @@ const getRecordFormSchema = (): SchemaTypes[] => {
543
543
 
544
544
  try {
545
545
  const registry = stonecrop.value?.registry
546
- const meta = registry?.registry[currentDoctype.value]
546
+ const doctype = registry?.registry[currentDoctype.value]
547
547
 
548
- if (!meta?.schema) {
548
+ if (!doctype?.schema) {
549
549
  // Let the template fallback handle the loading state
550
550
  return []
551
551
  }
552
552
 
553
553
  // Data is provided via v-model:data="currentViewData" — no need to spread values into schema
554
- return 'toArray' in meta.schema ? meta.schema.toArray() : meta.schema
554
+ return 'toArray' in doctype.schema ? doctype.schema.toArray() : doctype.schema
555
555
  } catch {
556
556
  return []
557
557
  }
@@ -578,10 +578,10 @@ const getColumns = () => {
578
578
 
579
579
  try {
580
580
  const registry = stonecrop.value.registry
581
- const meta = registry.registry[currentDoctype.value]
581
+ const doctype = registry.registry[currentDoctype.value]
582
582
 
583
- if (meta?.schema) {
584
- const schemaArray = 'toArray' in meta.schema ? meta.schema.toArray() : meta.schema
583
+ if (doctype?.schema) {
584
+ const schemaArray = 'toArray' in doctype.schema ? doctype.schema.toArray() : doctype.schema
585
585
  return schemaArray.map(field => ({
586
586
  fieldname: field.fieldname,
587
587
  label: ('label' in field && field.label) || field.fieldname,