@steedos/standard-ui 3.0.0-beta.36 → 3.0.0-beta.40
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.
|
@@ -41,11 +41,5 @@ module.exports = {
|
|
|
41
41
|
if(Steedos.Object.base.actions.standard_edit.visible(object_name, record_id, record_permissions)){
|
|
42
42
|
return record.from_code_id;
|
|
43
43
|
}
|
|
44
|
-
},
|
|
45
|
-
standard_editVisible: function(object_name, record_id, record_permissions, record){
|
|
46
|
-
return false
|
|
47
|
-
},
|
|
48
|
-
standard_newVisible: function(object_name, record_id, record_permissions, record){
|
|
49
|
-
return false
|
|
50
44
|
}
|
|
51
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.40",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "ec76285f37e717e2ac48077ea51665119dc5437a",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"clone": "^2.1.2"
|
|
18
18
|
}
|
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
name: apps
|
|
2
|
-
label: App
|
|
3
|
-
icon: apps
|
|
4
|
-
hidden: true
|
|
5
|
-
version: 2
|
|
6
|
-
enable_dataloader: false
|
|
7
|
-
fields:
|
|
8
|
-
name:
|
|
9
|
-
label: Name
|
|
10
|
-
type: text
|
|
11
|
-
defaultValue: ''
|
|
12
|
-
description: ''
|
|
13
|
-
inlineHelpText: ''
|
|
14
|
-
required: true
|
|
15
|
-
searchable: true
|
|
16
|
-
filterable: true
|
|
17
|
-
index: true
|
|
18
|
-
code:
|
|
19
|
-
label: API Name
|
|
20
|
-
type: text
|
|
21
|
-
required: true
|
|
22
|
-
searchable: true
|
|
23
|
-
filterable: true
|
|
24
|
-
icon_slds:
|
|
25
|
-
label: SLDS Icon
|
|
26
|
-
type: lookup
|
|
27
|
-
required: true
|
|
28
|
-
optionsFunction: !!js/function |
|
|
29
|
-
function () {
|
|
30
|
-
var options;
|
|
31
|
-
options = [];
|
|
32
|
-
|
|
33
|
-
_.forEach(Steedos.resources.sldsIcons.standard, function (svg) {
|
|
34
|
-
return options.push({
|
|
35
|
-
value: svg,
|
|
36
|
-
label: svg,
|
|
37
|
-
icon: svg
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
return options;
|
|
42
|
-
}
|
|
43
|
-
filterable: true
|
|
44
|
-
sort:
|
|
45
|
-
label: Sort Number
|
|
46
|
-
type: number
|
|
47
|
-
defaultValue: 9100
|
|
48
|
-
sortable: true
|
|
49
|
-
description:
|
|
50
|
-
label: Description
|
|
51
|
-
type: textarea
|
|
52
|
-
is_wide: true
|
|
53
|
-
searchable: true
|
|
54
|
-
filterable: true
|
|
55
|
-
tabs:
|
|
56
|
-
label: Tabs
|
|
57
|
-
type: lookup
|
|
58
|
-
multiple: true
|
|
59
|
-
group: Business object
|
|
60
|
-
is_wide: true
|
|
61
|
-
reference_to: tabs
|
|
62
|
-
reference_to_field: name
|
|
63
|
-
hidden: true
|
|
64
|
-
tab_groups:
|
|
65
|
-
type: grid
|
|
66
|
-
blackbox: true
|
|
67
|
-
is_wide: true
|
|
68
|
-
# hidden: true
|
|
69
|
-
visible_on: "{{false}}"
|
|
70
|
-
tab_groups.$.group_name:
|
|
71
|
-
type: text
|
|
72
|
-
tab_groups.$.default_open:
|
|
73
|
-
type: boolean
|
|
74
|
-
tab_items:
|
|
75
|
-
label: Tabs
|
|
76
|
-
type: object
|
|
77
|
-
blackbox: true
|
|
78
|
-
is_wide: true
|
|
79
|
-
required: false
|
|
80
|
-
group: Tabs
|
|
81
|
-
visible_on: "{{global.mode ==='read' ? false : true}}"
|
|
82
|
-
# tab_items.$:
|
|
83
|
-
# label: Tabs
|
|
84
|
-
# blackbox: true
|
|
85
|
-
# type: object
|
|
86
|
-
# tab_items.$.tab_name:
|
|
87
|
-
# label: Tab Name
|
|
88
|
-
# type: lookup
|
|
89
|
-
# multiple: false
|
|
90
|
-
# is_wide: false
|
|
91
|
-
# required: true
|
|
92
|
-
# reference_to: tabs
|
|
93
|
-
# reference_to_field: name
|
|
94
|
-
# tab_items.$.group:
|
|
95
|
-
# label: Group
|
|
96
|
-
# type: text
|
|
97
|
-
|
|
98
|
-
# filterable: true
|
|
99
|
-
is_creator:
|
|
100
|
-
type: boolean
|
|
101
|
-
label: Show this app for Desktop
|
|
102
|
-
# defaultValue: true
|
|
103
|
-
mobile:
|
|
104
|
-
type: boolean
|
|
105
|
-
label: Show this app for Mobile
|
|
106
|
-
# defaultValue: true
|
|
107
|
-
icon:
|
|
108
|
-
label: Icon
|
|
109
|
-
type: text
|
|
110
|
-
hidden: true
|
|
111
|
-
visible:
|
|
112
|
-
label: Visible
|
|
113
|
-
type: boolean
|
|
114
|
-
# defaultValue: true
|
|
115
|
-
|
|
116
|
-
showSidebar:
|
|
117
|
-
label: 显示左侧导航
|
|
118
|
-
type: boolean
|
|
119
|
-
defaultValue: false
|
|
120
|
-
|
|
121
|
-
nav_schema:
|
|
122
|
-
label: 自定义导航
|
|
123
|
-
type: code
|
|
124
|
-
language: json
|
|
125
|
-
visible_on: "{{false}}"
|
|
126
|
-
# members:
|
|
127
|
-
# type: object
|
|
128
|
-
# label: Members
|
|
129
|
-
# is_wide: true
|
|
130
|
-
# members.users:
|
|
131
|
-
# type: lookup
|
|
132
|
-
# label: User Members
|
|
133
|
-
# reference_to: users
|
|
134
|
-
# multiple: true
|
|
135
|
-
# filterable: true
|
|
136
|
-
# members.organizations:
|
|
137
|
-
# type: lookup
|
|
138
|
-
# label: Department Members
|
|
139
|
-
# reference_to: organizations
|
|
140
|
-
# multiple: true
|
|
141
|
-
# filterable: true
|
|
142
|
-
|
|
143
|
-
url:
|
|
144
|
-
label: URL
|
|
145
|
-
type: url
|
|
146
|
-
group: External Application
|
|
147
|
-
is_use_ie:
|
|
148
|
-
type: boolean
|
|
149
|
-
label: Open in IE (Using Steedos Desktop)
|
|
150
|
-
defaultValue: false
|
|
151
|
-
group: External Application
|
|
152
|
-
filterable: true
|
|
153
|
-
is_use_iframe:
|
|
154
|
-
type: boolean
|
|
155
|
-
label: Open with iframe
|
|
156
|
-
defaultValue: false
|
|
157
|
-
group: External Application
|
|
158
|
-
visible_on: "{{false}}"
|
|
159
|
-
filterable: true
|
|
160
|
-
is_new_window:
|
|
161
|
-
type: boolean
|
|
162
|
-
label: Open in New Window
|
|
163
|
-
defaultValue: false
|
|
164
|
-
group: External Application
|
|
165
|
-
filterable: true
|
|
166
|
-
on_click:
|
|
167
|
-
type: textarea
|
|
168
|
-
label: onClick
|
|
169
|
-
rows: 2
|
|
170
|
-
is_wide: true
|
|
171
|
-
group: External Application
|
|
172
|
-
|
|
173
|
-
auth_name:
|
|
174
|
-
label: Auth Name
|
|
175
|
-
type: text
|
|
176
|
-
group: External Application
|
|
177
|
-
secret:
|
|
178
|
-
label: API Secret Key
|
|
179
|
-
type: text
|
|
180
|
-
max: 16
|
|
181
|
-
min: 16
|
|
182
|
-
group: External Application
|
|
183
|
-
objects:
|
|
184
|
-
label: Desktop Menu(Invalid)
|
|
185
|
-
type: lookup
|
|
186
|
-
multiple: true
|
|
187
|
-
group: other
|
|
188
|
-
reference_to: objects
|
|
189
|
-
reference_to_field: name
|
|
190
|
-
# filterable: true
|
|
191
|
-
mobile_objects:
|
|
192
|
-
label: Mobile Menus(Invalid)
|
|
193
|
-
type: lookup
|
|
194
|
-
multiple: true
|
|
195
|
-
reference_to: objects
|
|
196
|
-
reference_to_field: name
|
|
197
|
-
# filterable: true
|
|
198
|
-
group: other
|
|
199
|
-
visible_on:
|
|
200
|
-
name: visible_on
|
|
201
|
-
is_wide: true
|
|
202
|
-
label: Visible On
|
|
203
|
-
inlineHelpText: Visible On
|
|
204
|
-
type: textarea
|
|
205
|
-
group: other
|
|
206
|
-
enable_nav_schema:
|
|
207
|
-
label: 启用自定义导航
|
|
208
|
-
type: boolean
|
|
209
|
-
required: false
|
|
210
|
-
group: other
|
|
211
|
-
|
|
212
|
-
oauth2_enabled:
|
|
213
|
-
group: OAuth2
|
|
214
|
-
label: OAuth2 Enabled
|
|
215
|
-
type: boolean
|
|
216
|
-
hidden: true
|
|
217
|
-
oauth2_callback_url:
|
|
218
|
-
group: OAuth2
|
|
219
|
-
label: Callback URL
|
|
220
|
-
type: text
|
|
221
|
-
required: "{{formData.oauth2_enabled}}"
|
|
222
|
-
hidden: true
|
|
223
|
-
oauth2_scopes:
|
|
224
|
-
group: OAuth2
|
|
225
|
-
label: Scopes
|
|
226
|
-
type: select
|
|
227
|
-
hidden: true
|
|
228
|
-
multiple: true
|
|
229
|
-
required: "{{formData.oauth2_enabled}}"
|
|
230
|
-
options:
|
|
231
|
-
- label: Access to Your Unique Identifier (openid)
|
|
232
|
-
value: openid
|
|
233
|
-
- label: Access Basic Information (id, email, address, phone, locale)
|
|
234
|
-
value: profile
|
|
235
|
-
- label: Access Fully (full)
|
|
236
|
-
value: full
|
|
237
|
-
oauth2_logout_enabled:
|
|
238
|
-
group: OAuth2
|
|
239
|
-
label: OAuth2 Logout Enabled
|
|
240
|
-
type: boolean
|
|
241
|
-
hidden: true
|
|
242
|
-
oauth2_logout_url:
|
|
243
|
-
group: OAuth2
|
|
244
|
-
label: OAuth2 Logout URL
|
|
245
|
-
type: url
|
|
246
|
-
hidden: true
|
|
247
|
-
oauth2_home_url:
|
|
248
|
-
group: OAuth2
|
|
249
|
-
label: Homepage URL
|
|
250
|
-
type: url
|
|
251
|
-
required: "{{formData.oauth2_enabled}}"
|
|
252
|
-
hidden: true
|
|
253
|
-
oauth2_logo:
|
|
254
|
-
group: OAuth2
|
|
255
|
-
label: OAuth2 Logo
|
|
256
|
-
type: image
|
|
257
|
-
required: "{{formData.oauth2_enabled}}"
|
|
258
|
-
hidden: true
|
|
259
|
-
oauth2_client_secret:
|
|
260
|
-
group: OAuth2
|
|
261
|
-
label: OAuth2 Client secret
|
|
262
|
-
type: text
|
|
263
|
-
omit: true
|
|
264
|
-
hidden: true
|
|
265
|
-
saml_enabled:
|
|
266
|
-
hidden: true
|
|
267
|
-
group: SAML
|
|
268
|
-
label: SAML Enabled
|
|
269
|
-
type: boolean
|
|
270
|
-
saml_entity_id:
|
|
271
|
-
hidden: true
|
|
272
|
-
group: SAML
|
|
273
|
-
label: Entity Id
|
|
274
|
-
type: text
|
|
275
|
-
saml_issuer:
|
|
276
|
-
hidden: true
|
|
277
|
-
group: SAML
|
|
278
|
-
label: Issuer
|
|
279
|
-
type: text
|
|
280
|
-
saml_idp_cert:
|
|
281
|
-
hidden: true
|
|
282
|
-
group: SAML
|
|
283
|
-
label: IDP Cert
|
|
284
|
-
type: text
|
|
285
|
-
saml_acs_url:
|
|
286
|
-
hidden: true
|
|
287
|
-
group: SAML
|
|
288
|
-
label: ACS URL
|
|
289
|
-
type: url
|
|
290
|
-
saml_name_id_format:
|
|
291
|
-
hidden: true
|
|
292
|
-
group: SAML
|
|
293
|
-
label: Name
|
|
294
|
-
type: text
|
|
295
|
-
saml_logout_enabled:
|
|
296
|
-
hidden: true
|
|
297
|
-
group: SAML
|
|
298
|
-
label: SAML Logout Enabled
|
|
299
|
-
type: boolean
|
|
300
|
-
saml_logout_url:
|
|
301
|
-
hidden: true
|
|
302
|
-
group: SAML
|
|
303
|
-
label: SAML Logout URL
|
|
304
|
-
type: url
|
|
305
|
-
saml_logout_block:
|
|
306
|
-
hidden: true
|
|
307
|
-
group: SAML
|
|
308
|
-
label: SAML Logout Block
|
|
309
|
-
type: select
|
|
310
|
-
options:
|
|
311
|
-
- label: HTTP Redirect
|
|
312
|
-
value: redirect
|
|
313
|
-
- label: HTTP Post
|
|
314
|
-
value: post
|
|
315
|
-
is_system:
|
|
316
|
-
type: boolean
|
|
317
|
-
label: System
|
|
318
|
-
# omit: true
|
|
319
|
-
readonly: true
|
|
320
|
-
visible_on: "{{global.mode ==='read' ? true : false}}"
|
|
321
|
-
disabled: true
|
|
322
|
-
from_code_id:
|
|
323
|
-
type: text
|
|
324
|
-
visible_on: "{{false}}"
|
|
325
|
-
disabled: true
|
|
326
|
-
paging:
|
|
327
|
-
enabled: false
|
|
328
|
-
actions:
|
|
329
|
-
customize:
|
|
330
|
-
label: Customize
|
|
331
|
-
on: record_only
|
|
332
|
-
reset:
|
|
333
|
-
label: Reset
|
|
334
|
-
on: record_only
|
|
335
|
-
createOAuth2App:
|
|
336
|
-
label: 创建 OAuth 应用
|
|
337
|
-
on: list
|
|
338
|
-
sort: 180
|
|
339
|
-
standard_edit:
|
|
340
|
-
visible: false
|
|
341
|
-
standard_new:
|
|
342
|
-
visible: false
|
|
343
|
-
list_views:
|
|
344
|
-
all:
|
|
345
|
-
label: All Apps
|
|
346
|
-
filter_scope: space
|
|
347
|
-
columns:
|
|
348
|
-
- name
|
|
349
|
-
- code
|
|
350
|
-
- description
|
|
351
|
-
- visible
|
|
352
|
-
- sort
|
|
353
|
-
- is_system
|
|
354
|
-
permission_set:
|
|
355
|
-
user:
|
|
356
|
-
allowCreate: false
|
|
357
|
-
allowDelete: false
|
|
358
|
-
allowEdit: false
|
|
359
|
-
allowRead: true
|
|
360
|
-
modifyAllRecords: false
|
|
361
|
-
viewAllRecords: true
|
|
362
|
-
admin:
|
|
363
|
-
allowCreate: true
|
|
364
|
-
allowDelete: true
|
|
365
|
-
allowEdit: true
|
|
366
|
-
allowRead: true
|
|
367
|
-
modifyAllRecords: true
|
|
368
|
-
viewAllRecords: true
|
|
369
|
-
# triggers:
|
|
370
|
-
# before.insert.server.apps:
|
|
371
|
-
# 'on': server
|
|
372
|
-
# when: before.insert
|
|
373
|
-
# todo: !!js/function |
|
|
374
|
-
# function (userId, doc) {
|
|
375
|
-
# return doc.icon = doc.icon_slds;
|
|
376
|
-
# }
|
|
377
|
-
# after.update.server.apps:
|
|
378
|
-
# 'on': server
|
|
379
|
-
# when: after.update
|
|
380
|
-
# todo: !!js/function |
|
|
381
|
-
# function (userId, doc, fieldNames, modifier, options) {
|
|
382
|
-
# var ref;
|
|
383
|
-
|
|
384
|
-
# if (modifier != null ? (ref = modifier.$set) != null ? ref.icon_slds : void 0 : void 0) {
|
|
385
|
-
# return Creator.getCollection("apps").direct.update({
|
|
386
|
-
# _id: doc._id
|
|
387
|
-
# }, {
|
|
388
|
-
# $set: {
|
|
389
|
-
# icon: modifier.$set.icon_slds
|
|
390
|
-
# }
|
|
391
|
-
# });
|
|
392
|
-
# }
|
|
393
|
-
# }
|