@humandialog/forms.svelte 0.4.30 → 0.4.32

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.
@@ -255,9 +255,7 @@ async function on_choose(itm) {
255
255
  if (is_association) {
256
256
  if (choice_callback) {
257
257
  let body = {
258
- choice: {
259
- $ref: itm.Key
260
- }
258
+ choice: itm.Key
261
259
  };
262
260
  let path;
263
261
  if (item.$ref)
@@ -282,9 +280,7 @@ async function on_choose(itm) {
282
280
  let result = await reef.post(
283
281
  path,
284
282
  {
285
- [a]: {
286
- $ref: itm.Key
287
- }
283
+ [a]: itm.Key
288
284
  }
289
285
  );
290
286
  if (result) {
@@ -84,7 +84,7 @@ function setup(...args) {
84
84
  typename = item.$type;
85
85
  else if (item.$ref) {
86
86
  let s2 = item.$ref.split("/");
87
- typename = s2[0];
87
+ typename = s2[1];
88
88
  }
89
89
  }
90
90
  if (!item[a])
@@ -35,7 +35,7 @@ if (!typename) {
35
35
  typename = item.$type;
36
36
  else if (item.$ref) {
37
37
  let s = item.$ref.split("/");
38
- typename = s[0];
38
+ typename = s[1];
39
39
  }
40
40
  }
41
41
  let item_key = "";
@@ -97,17 +97,11 @@
97
97
  if(config.customOperations && Array.isArray(config.customOperations) && config.customOperations.length > 0)
98
98
  {
99
99
  config.customOperations.forEach( o => {
100
- if(o.condition)
101
- {
102
- if(o.condition())
103
- {
104
- options.push({
100
+ options.push({
105
101
  caption: o.caption,
106
102
  icon: o.icon,
107
103
  action: o.action
108
104
  })
109
- }
110
- }
111
105
  })
112
106
  }
113
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humandialog/forms.svelte",
3
- "version": "0.4.30",
3
+ "version": "0.4.32",
4
4
  "description": "Basic Svelte UI components for Object Reef applications",
5
5
  "devDependencies": {
6
6
  "@playwright/test": "^1.28.1",
@@ -90,17 +90,11 @@
90
90
  if(config.customOperations && Array.isArray(config.customOperations) && config.customOperations.length > 0)
91
91
  {
92
92
  config.customOperations.forEach( o => {
93
- if(o.condition)
94
- {
95
- if(o.condition())
96
- {
97
- options.push({
93
+ options.push({
98
94
  caption: o.caption,
99
95
  icon: o.icon,
100
96
  action: o.action
101
97
  })
102
- }
103
- }
104
98
  })
105
99
  }
106
100