// @ts-ignore 1240 /* eslint-disable no-underscore-dangle */ import type { Field } from '../types.js' import BaseMixin from './BaseMixin.js' class ObjectMixin extends BaseMixin { id: Field = { name :'id', display :['edit'], readOnly :true, formField:{ type :'text', label:'ID', }, } type: Field = { name :'type', display:[ 'create', 'edit', ], formField:{ type :'text', label :'Type', optional:true, disabled:true, }, } name: Field = { name :'name', display:[ 'create', 'edit', ], formField:{ type :'text', label:'Name', }, } summary: Field = { name :'summary', display:[ 'create', 'edit', ], formField:{ type :'textarea', label:'Summary', }, } content: Field = { name :'content', display:[ 'create', 'edit', ], formField:{ type :'textarea', label:'Content', }, } mediaType: Field = { name :'mediaType', display:[ 'create', 'edit', ], formField:{ type :'text', label :'Media Type', optional:true, }, } url: Field = { name :'url', display:[ 'create', 'edit', ], formField:{ type :'url', label :'URL', optional:true, }, } xOwner: Field = { name :'xOwner', display :['create'], formField:{ type: 'hidden' }, } // attachment: Field[] = []; // attributedTo: Field[] = []; // audience: Field[] = []; // context: Field[] = [] // tag: Field[] = []; // location: Field[] = []; // icon: Field[] = []; // image: Field[] = []; created: Field = { name :'created', display :['edit'], readOnly :true, formField:{ type :'datetime-local', label :'Created', optional:true, }, } updated: Field = { name :'updated', display :['edit'], readOnly :true, formField:{ type :'datetime-local', label :'Updated', optional:true, }, } published: Field = { name :'published', display:[ 'create', 'edit', ], readOnly :true, formField:{ type :'datetime-local', label :'Published', optional:true, }, } constructor( kwargs: Record = {}, mutations = null, ) { super( kwargs, mutations, ) // this._initialize(kwargs) } } export default ObjectMixin