@steedos/service-plugin-amis 2.5.17-beta.9 → 2.5.17

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.
@@ -203,72 +203,36 @@
203
203
  "id": "u:111b043b193c"
204
204
  }
205
205
  ],
206
- "messages": "",
206
+ "messages": {},
207
207
  "api": {
208
208
  "method": "post",
209
209
  "url": "${context.rootUrl}/graphql",
210
- "adaptor": " let data = payload.data; data.tabs_options = []; if (data.options && data.options.length) { data.tabs_options = data.options.map(function (option) { option.label = option.label + '(' + option.value + ')'; return option; }); } if (!api.body.recordId) { const defaultValues = { is_creator: true, mobile: true, visible: true, sort: 9100 } ;data = Object.assign({}, data, defaultValues); } delete data.options ;payload.data = data; return payload; ",
210
+ "adaptor": "let data = payload.data;\ndata.tabs_options = [];\nif (data.options && data.options.length) {\n data.tabs_options = data.options.map(function (option) {\n option.label = option.label + '(' + option.value + ')';\n return option;\n });\n}\nif (!api.body.recordId) {\n const defaultValues = {\n is_creator: true,\n mobile: true,\n visible: true,\n sort: 9100\n };\n data = Object.assign({}, data, defaultValues);\n}\ndelete data.options;\npayload.data = data;\nreturn payload; ",
211
211
  "data": {
212
212
  "query": "{options:tabs{_id label:label value:name,type,object,desktop,mobile}}",
213
213
  "recordId": "${recordId}"
214
214
  },
215
215
  "headers": {
216
216
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
217
- }
217
+ },
218
+ "messages": {},
219
+ "requestAdaptor": ""
218
220
  }
219
221
  }
220
- ]
222
+ ],
223
+ "id": "u:0f089a2850b6"
221
224
  }
222
225
  },
223
226
  "objects": {
224
227
  "amis": {
225
- "name": "objects",
226
- "type": "select",
227
- "className": "m-0",
228
- "labelClassName": "text-left",
229
- "id": "u:4e5047e44905",
230
- "joinValues": false,
231
- "extractValue": true,
232
- "labelField": "label",
233
- "valueField": "value",
234
- "multiple": true,
235
- "checkAll": false,
236
- "searchable": true,
237
- "menuTpl": "",
238
- "source": {
239
- "method": "get",
240
- "url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/options",
241
- "headers": {
242
- "Authorization": "Bearer ${context.tenantId},${context.authToken}"
243
- }
244
- },
245
- "autoComplete": ""
228
+ "visible": false,
229
+ "id": "u:0da32850b9c4"
246
230
  }
247
231
  },
248
232
  "mobile_objects": {
249
233
  "amis": {
250
- "name": "mobile_objects",
251
- "type": "select",
252
- "className": "m-0",
253
- "labelClassName": "text-left",
254
- "id": "u:cfaeb2f857a8",
255
- "joinValues": false,
256
- "extractValue": true,
257
- "labelField": "label",
258
- "valueField": "value",
259
- "multiple": true,
260
- "checkAll": false,
261
- "searchable": true,
262
- "menuTpl": "",
263
- "source": {
264
- "method": "get",
265
- "url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/options",
266
- "messages": {},
267
- "headers": {
268
- "Authorization": "Bearer ${context.tenantId},${context.authToken}"
269
- }
270
- },
271
- "autoComplete": ""
234
+ "visible": false,
235
+ "id": "u:e6a9ebf91dbc"
272
236
  }
273
237
  }
274
238
  },
@@ -140,9 +140,9 @@
140
140
  "tpl": null,
141
141
  "className": "m-0",
142
142
  "labelClassName": "text-left",
143
- "option": "共享视图到工作区",
143
+ "label": "共享视图到工作区",
144
144
  "en-US": {
145
- "option": "Shared to All Users"
145
+ "label": "Shared to All Users"
146
146
  },
147
147
  "id": "u:3ba5090f7fd0"
148
148
  },
@@ -152,9 +152,9 @@
152
152
  "tpl": null,
153
153
  "className": "m-0",
154
154
  "labelClassName": "text-left",
155
- "option": "显示条目数",
155
+ "label": "显示条目数",
156
156
  "en-US": {
157
- "option": "Show Record Count"
157
+ "label": "Show Record Count"
158
158
  },
159
159
  "id": "u:811f0c5d03ad"
160
160
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.5.17-beta.9",
3
+ "version": "2.5.17",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "yarn build:tailwind-base && yarn build:tailwind",
@@ -13,7 +13,7 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "gitHead": "a7e9f116971d37d386d71bc8ed84e15dcc5d7946",
16
+ "gitHead": "c1e5161c0f7357c2daf621a09818f675fa76861e",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }