@dhyasama/totem-models 6.3.0 → 6.3.3
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/lib/Organization.js +24 -23
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/package-lock.json +0 -1829
package/lib/Organization.js
CHANGED
|
@@ -216,43 +216,43 @@ module.exports = function(mongoose, config) {
|
|
|
216
216
|
standardFields: {
|
|
217
217
|
|
|
218
218
|
// active set to false will keep the field out of system for customer, i.e., off list page, org page deal section and deal edit form
|
|
219
|
-
// showOnList controls if the field will be on deal list page
|
|
220
219
|
// if a field is active, it will show up on the org page deal section and deal edit form. there is no way to hide it in those places.
|
|
221
220
|
// order for standard fields only sets the order on the list page. their position is fixed on the org page deal section and edit form.
|
|
222
221
|
// order is co-mingled with order for custom fields
|
|
222
|
+
// colspan is for the number of columns the field should take up on the list page
|
|
223
223
|
// filter controls whether values are extracted and used in filtering options on list page
|
|
224
|
-
//
|
|
224
|
+
// list controls if the field will be on deal list page
|
|
225
225
|
|
|
226
226
|
fundraise: {
|
|
227
227
|
active: { type: Boolean, default: true },
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
filter: { type: Boolean, default:
|
|
231
|
-
|
|
228
|
+
order: { type: Number, default: 99 },
|
|
229
|
+
colspan: { type: Number, default: 1 },
|
|
230
|
+
filter: { type: Boolean, default: true },
|
|
231
|
+
list: { type: Boolean, default: true }
|
|
232
232
|
},
|
|
233
233
|
|
|
234
234
|
sources: {
|
|
235
235
|
active: { type: Boolean, default: true },
|
|
236
|
-
showOnList: { type: Boolean, default: false },
|
|
237
236
|
order: { type: Number, default: 99 },
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
colspan: { type: Number, default: 1 },
|
|
238
|
+
filter: { type: Boolean, default: true },
|
|
239
|
+
list: { type: Boolean, default: true }
|
|
240
240
|
},
|
|
241
241
|
|
|
242
242
|
referrers: {
|
|
243
243
|
active: { type: Boolean, default: true },
|
|
244
|
-
showOnList: { type: Boolean, default: false },
|
|
245
244
|
order: { type: Number, default: 99 },
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
colspan: { type: Number, default: 1 },
|
|
246
|
+
filter: { type: Boolean, default: true },
|
|
247
|
+
list: { type: Boolean, default: true }
|
|
248
248
|
},
|
|
249
249
|
|
|
250
250
|
resources: {
|
|
251
251
|
active: { type: Boolean, default: true },
|
|
252
|
-
showOnList: { type: Boolean, default: false },
|
|
253
252
|
order: { type: Number, default: 99 },
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
colspan: { type: Number, default: 1 },
|
|
254
|
+
filter: { type: Boolean, default: true },
|
|
255
|
+
list: { type: Boolean, default: true }
|
|
256
256
|
},
|
|
257
257
|
|
|
258
258
|
},
|
|
@@ -271,7 +271,7 @@ module.exports = function(mongoose, config) {
|
|
|
271
271
|
|
|
272
272
|
// Dictates the type of control rendered on form
|
|
273
273
|
// Also impacts data validation
|
|
274
|
-
type: { type: String, enum: ['Text', 'Number', 'Tags', 'Poll', 'Checkbox', 'Single
|
|
274
|
+
type: { type: String, enum: ['Text', 'Number', 'Tags', 'Poll', 'Checkbox', 'Single Select', 'Multiple Select'], required: true },
|
|
275
275
|
|
|
276
276
|
// These will be the choices in polls, single-selects and multi-selects
|
|
277
277
|
options: [{
|
|
@@ -290,18 +290,19 @@ module.exports = function(mongoose, config) {
|
|
|
290
290
|
// For controlling display on web pages
|
|
291
291
|
display: {
|
|
292
292
|
|
|
293
|
-
//
|
|
293
|
+
// sets the order to render fields on list, org page deal section and deal edit form
|
|
294
|
+
// order is co-mingled with order for standard fields
|
|
294
295
|
order: { type: Number },
|
|
295
296
|
|
|
296
|
-
//
|
|
297
|
+
// colspan is for the number of columns the field should take up on the list page
|
|
297
298
|
colspan: { type: Number, default: 1 },
|
|
298
299
|
|
|
299
|
-
//
|
|
300
|
-
|
|
300
|
+
// filter controls whether values are extracted and used in filtering options on list page
|
|
301
|
+
filter: { type: Boolean, default: true },
|
|
301
302
|
|
|
302
|
-
//
|
|
303
|
-
//
|
|
304
|
-
|
|
303
|
+
// list controls if the field will be on deal list page
|
|
304
|
+
// fields are always shown on org pages and in edit forms
|
|
305
|
+
list: { type: Boolean, default: true }
|
|
305
306
|
|
|
306
307
|
}
|
|
307
308
|
|
package/package.json
CHANGED