|
|
@ -20,16 +20,22 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<v-col v-if="isEditable" class="h-100 col-md-4 col-lg-3"> |
|
|
|
<v-col v-if="isEditable" class="h-100 col-md-4 col-lg-3"> |
|
|
|
<v-card class="h-100 overflow-auto pa-2 backgroundColor elevation-0 nc-form-left-nav"> |
|
|
|
<v-card class="h-100 overflow-auto pa-4 pa-md-6 backgroundColor elevation-0 nc-form-left-nav"> |
|
|
|
<div class="d-flex grey--text"> |
|
|
|
<div class="d-flex grey--text"> |
|
|
|
<span class="">Fields</span> |
|
|
|
<span class="">Fields</span> |
|
|
|
<v-spacer /> |
|
|
|
<v-spacer /> |
|
|
|
<span |
|
|
|
<span |
|
|
|
|
|
|
|
v-if="hiddenColumns.length" |
|
|
|
class="pointer caption mr-2" |
|
|
|
class="pointer caption mr-2" |
|
|
|
style="border-bottom: 2px solid rgba(128,128,128,0.67)" |
|
|
|
style="border-bottom: 2px solid rgb(218,218,218)" |
|
|
|
@click="columns=[...allColumns]" |
|
|
|
@click="columns=[...allColumns]" |
|
|
|
>add all</span> |
|
|
|
>add all</span> |
|
|
|
<span class="pointer caption" style="border-bottom: 2px solid rgba(128,128,128,0.67)" @click="columns=[]">remove all</span> |
|
|
|
<span |
|
|
|
|
|
|
|
v-if="columns.length" |
|
|
|
|
|
|
|
class="pointer caption" |
|
|
|
|
|
|
|
style="border-bottom: 2px solid rgb(218,218,218)" |
|
|
|
|
|
|
|
@click="columns=[]" |
|
|
|
|
|
|
|
>remove all</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<draggable |
|
|
|
<draggable |
|
|
|
v-model="hiddenColumns" |
|
|
|
v-model="hiddenColumns" |
|
|
@ -71,8 +77,8 @@ |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</v-card> |
|
|
|
</v-card> |
|
|
|
<div class="mt-1 nc-drag-n-drop-to-hide py-3 text-center grey--text text--lighter-1"> |
|
|
|
<div class="mt-4 nc-drag-n-drop-to-hide py-3 text-center grey--text text--lighter-1"> |
|
|
|
Drag and drop field here to hide |
|
|
|
Drag and drop fields here to hide |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</draggable> |
|
|
|
</draggable> |
|
|
|
|
|
|
|
|
|
|
@ -84,7 +90,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<template #activator="{on}"> |
|
|
|
<template #activator="{on}"> |
|
|
|
<div class="grey--text caption text-center mt-4" v-on="on"> |
|
|
|
<div class="grey--text caption text-center mt-4" v-on="on"> |
|
|
|
<v-icon samll color="grey"> |
|
|
|
<v-icon size="20" color="grey"> |
|
|
|
mdi-plus |
|
|
|
mdi-plus |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
Add new field to this table |
|
|
|
Add new field to this table |
|
|
@ -128,7 +134,7 @@ |
|
|
|
<editable |
|
|
|
<editable |
|
|
|
:is="isEditable ? 'editable' : 'h2'" |
|
|
|
:is="isEditable ? 'editable' : 'h2'" |
|
|
|
v-model.lazy="localParams.name" |
|
|
|
v-model.lazy="localParams.name" |
|
|
|
class="display-1 font-weight-bold text-center" |
|
|
|
class="display-1 font-weight-bold text-left mx-4 mb-3 px-1 text--text text--lighten-1" |
|
|
|
:class="{'nc-meta-inputs': isEditable}" |
|
|
|
:class="{'nc-meta-inputs': isEditable}" |
|
|
|
placeholder="Form Title" |
|
|
|
placeholder="Form Title" |
|
|
|
> |
|
|
|
> |
|
|
@ -139,7 +145,7 @@ |
|
|
|
:is="isEditable ? 'editable' : 'div'" |
|
|
|
:is="isEditable ? 'editable' : 'div'" |
|
|
|
v-model.lazy="localParams.description" |
|
|
|
v-model.lazy="localParams.description" |
|
|
|
:class="{'nc-meta-inputs': isEditable}" |
|
|
|
:class="{'nc-meta-inputs': isEditable}" |
|
|
|
class="body-1 text-center" |
|
|
|
class="body-1 text-left mx-4 py-2 px-1 text--text text--lighten-2" |
|
|
|
placeholder="Add form description" |
|
|
|
placeholder="Add form description" |
|
|
|
> |
|
|
|
> |
|
|
|
{{ localParams.description }} |
|
|
|
{{ localParams.description }} |
|
|
@ -176,7 +182,7 @@ |
|
|
|
v-if="localParams.fields && localParams.fields[col.alias]" |
|
|
|
v-if="localParams.fields && localParams.fields[col.alias]" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'active-row' : active === col._cn, |
|
|
|
'active-row' : active === col._cn, |
|
|
|
required: isRequired(col, localState) || localParams.fields[col.alias].required |
|
|
|
required: isRequired(col, localState, localParams.fields[col.alias].required) |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="nc-field-editables" :class="{'nc-show' : isActiveRow(col)}"> |
|
|
|
<div class="nc-field-editables" :class="{'nc-show' : isActiveRow(col)}"> |
|
|
@ -194,22 +200,23 @@ |
|
|
|
class="nc-required-switch ml-1 mt-0" |
|
|
|
class="nc-required-switch ml-1 mt-0" |
|
|
|
hide-details |
|
|
|
hide-details |
|
|
|
flat |
|
|
|
flat |
|
|
|
color="grey" |
|
|
|
color="primary" |
|
|
|
dense |
|
|
|
dense |
|
|
|
inset |
|
|
|
inset |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<editable |
|
|
|
<editable |
|
|
|
v-model="localParams.fields[col.alias].label" |
|
|
|
v-model="localParams.fields[col.alias].label" |
|
|
|
style="width:300px" |
|
|
|
style="width:300px;white-space: pre-wrap" |
|
|
|
placeholder=" Enter form input label" |
|
|
|
placeholder=" Enter form input label" |
|
|
|
class="caption pa-1 backgroundColor darken-1 mb-2 " |
|
|
|
class="caption pa-1 backgroundColor darken-1 mb-2 " |
|
|
|
/> |
|
|
|
/> |
|
|
|
<editable |
|
|
|
<editable |
|
|
|
v-model="localParams.fields[col.alias].description" |
|
|
|
v-model="localParams.fields[col.alias].description" |
|
|
|
style="width:300px" |
|
|
|
style="width:300px;white-space: pre-wrap" |
|
|
|
placeholder=" Add some help text" |
|
|
|
placeholder=" Add some help text" |
|
|
|
class="caption pa-1 backgroundColor darken-1 mb-2" |
|
|
|
class="caption pa-1 backgroundColor darken-1 mb-2" |
|
|
|
|
|
|
|
@keydown.enter.prevent |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<label |
|
|
|
<label |
|
|
@ -224,7 +231,7 @@ |
|
|
|
:nodes="nodes" |
|
|
|
:nodes="nodes" |
|
|
|
:is-form="true" |
|
|
|
:is-form="true" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:required="localParams.fields[col.alias].required" |
|
|
|
:required="isRequired(col, localState, localParams.fields[col.alias].required)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<header-cell |
|
|
|
<header-cell |
|
|
|
v-else |
|
|
|
v-else |
|
|
@ -233,13 +240,15 @@ |
|
|
|
:value="localParams.fields[col.alias].label || col._cn" |
|
|
|
:value="localParams.fields[col.alias].label || col._cn" |
|
|
|
:column="col" |
|
|
|
:column="col" |
|
|
|
:sql-ui="sqlUi" |
|
|
|
:sql-ui="sqlUi" |
|
|
|
:required="localParams.fields[col.alias].required" |
|
|
|
:required="isRequired(col, localState, localParams.fields[col.alias].required)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</label> |
|
|
|
</label> |
|
|
|
|
|
|
|
<div |
|
|
|
<virtual-cell |
|
|
|
|
|
|
|
v-if="col.virtual" |
|
|
|
v-if="col.virtual" |
|
|
|
|
|
|
|
@click.stop |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<virtual-cell |
|
|
|
ref="virtual" |
|
|
|
ref="virtual" |
|
|
|
:disabled-columns="{}" |
|
|
|
:disabled-columns="{}" |
|
|
|
:column="col" |
|
|
|
:column="col" |
|
|
@ -252,10 +261,32 @@ |
|
|
|
:is-new="true" |
|
|
|
:is-new="true" |
|
|
|
:is-form="true" |
|
|
|
:is-form="true" |
|
|
|
:hint="localParams.fields[col.alias].description" |
|
|
|
:hint="localParams.fields[col.alias].description" |
|
|
|
|
|
|
|
:required="localParams.fields[col.alias].description" |
|
|
|
|
|
|
|
@update:localState="state => $set(virtual,col.alias, state)" |
|
|
|
|
|
|
|
@updateCol="updateCol" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-if="$v.virtual && $v.virtual.$dirty && $v.virtual[col.alias] && (!$v.virtual[col.alias].required || !$v.virtual[col.alias].minLength)" |
|
|
|
|
|
|
|
class="error--text caption" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Field is required. |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- todo: optimize --> |
|
|
|
|
|
|
|
<template |
|
|
|
|
|
|
|
v-if="col.bt && $v.localState && $v.localState.$dirty && $v.localState[meta.columns.find(c => c.cn === col.bt.cn)._cn]" |
|
|
|
|
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-else-if="col.ai || (col.pk && !isNew) || disabledColumns[col._cn]" |
|
|
|
v-if="!$v.localState[meta.columns.find(c => c.cn === col.bt.cn)._cn].required" |
|
|
|
|
|
|
|
class="error--text caption" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Field is required. |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-if="col.ai || (col.pk && !isNew) || disabledColumns[col._cn]" |
|
|
|
style="height:100%; width:100%" |
|
|
|
style="height:100%; width:100%" |
|
|
|
class="caption xc-input" |
|
|
|
class="caption xc-input" |
|
|
|
@click.stop |
|
|
|
@click.stop |
|
|
@ -287,16 +318,21 @@ |
|
|
|
@blur="active = ''" |
|
|
|
@blur="active = ''" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<template v-if="$v.localState&& $v.localState.$dirty && $v.localState[col._cn] "> |
|
|
|
|
|
|
|
<div v-if="!$v.localState[col._cn].required" class="error--text caption"> |
|
|
|
|
|
|
|
Field is required. |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="!columns.length" |
|
|
|
v-if="!columns.length" |
|
|
|
class="mt-1 nc-drag-n-drop-to-show py-4 text-center grey--text text--lighter-1" |
|
|
|
class="nc-drag-n-drop-to-show py-4 mx-8 my-10 text-center grey--text text--lighter-1" |
|
|
|
> |
|
|
|
> |
|
|
|
Drag and drop field here to add |
|
|
|
Drag and drop fields here to add |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</draggable> |
|
|
|
</draggable> |
|
|
|
<div class="my-10 text-center"> |
|
|
|
<div class="my-10 text-center"> |
|
|
@ -359,6 +395,8 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
|
|
import draggable from 'vuedraggable' |
|
|
|
import draggable from 'vuedraggable' |
|
|
|
|
|
|
|
import { validationMixin } from 'vuelidate' |
|
|
|
|
|
|
|
import { required, minLength } from 'vuelidate/lib/validators' |
|
|
|
import VirtualHeaderCell from '../components/virtualHeaderCell' |
|
|
|
import VirtualHeaderCell from '../components/virtualHeaderCell' |
|
|
|
import HeaderCell from '../components/headerCell' |
|
|
|
import HeaderCell from '../components/headerCell' |
|
|
|
import VirtualCell from '../components/virtualCell' |
|
|
|
import VirtualCell from '../components/virtualCell' |
|
|
@ -370,7 +408,7 @@ import form from '../mixins/form' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'FormView', |
|
|
|
name: 'FormView', |
|
|
|
components: { EditColumn, Editable, EditableCell, VirtualCell, HeaderCell, VirtualHeaderCell, draggable }, |
|
|
|
components: { EditColumn, Editable, EditableCell, VirtualCell, HeaderCell, VirtualHeaderCell, draggable }, |
|
|
|
mixins: [form], |
|
|
|
mixins: [form, validationMixin], |
|
|
|
props: ['meta', 'availableColumns', 'nodes', 'sqlUi', 'formParams', 'showFields', 'fieldsOrder', 'allColumns', 'dbAlias', 'api'], |
|
|
|
props: ['meta', 'availableColumns', 'nodes', 'sqlUi', 'formParams', 'showFields', 'fieldsOrder', 'allColumns', 'dbAlias', 'api'], |
|
|
|
data: () => ({ |
|
|
|
data: () => ({ |
|
|
|
localState: {}, |
|
|
|
localState: {}, |
|
|
@ -382,9 +420,27 @@ export default { |
|
|
|
isNew: true, |
|
|
|
isNew: true, |
|
|
|
submitted: false, |
|
|
|
submitted: false, |
|
|
|
secondsRemain: null, |
|
|
|
secondsRemain: null, |
|
|
|
loading: false |
|
|
|
loading: false, |
|
|
|
|
|
|
|
virtual: {} |
|
|
|
// hiddenColumns: [] |
|
|
|
// hiddenColumns: [] |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
validations() { |
|
|
|
|
|
|
|
const obj = { localState: {}, virtual: {} } |
|
|
|
|
|
|
|
for (const column of this.columns) { |
|
|
|
|
|
|
|
if (!column.virtual && ((column.rqd && !column.default) || this.localParams.fields[column.alias].required)) { |
|
|
|
|
|
|
|
obj.localState[column._cn] = { required } |
|
|
|
|
|
|
|
} else if (column.bt) { |
|
|
|
|
|
|
|
const col = this.meta.columns.find(c => c.cn === column.bt.cn) |
|
|
|
|
|
|
|
if ((col.rqd && !col.default) || this.localParams.fields[column.alias].required) { |
|
|
|
|
|
|
|
obj.localState[col._cn] = { required } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (column.virtual && this.localParams.fields[column.alias].required && (column.mm || column.hm)) { |
|
|
|
|
|
|
|
obj.virtual[column.alias] = { minLength: minLength(1), required } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return obj |
|
|
|
|
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
isEditable() { |
|
|
|
isEditable() { |
|
|
|
return this._isUIAllowed('editFormView') |
|
|
|
return this._isUIAllowed('editFormView') |
|
|
@ -399,7 +455,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
hiddenColumns: { |
|
|
|
hiddenColumns: { |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return this.allColumns.filter(c => !this.showFields[c.alias]) |
|
|
|
return this.allColumns.filter(c => !this.showFields[c.alias] && !(c.pk && c.ai) && !(this.meta.v || []).some(v => v.bt && v.bt.cn === c.cn)) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
columns: { |
|
|
|
columns: { |
|
|
@ -453,6 +509,9 @@ export default { |
|
|
|
// this.hiddenColumns = this.meta.columns.filter(c => this.availableColumns.find(c1 => c.cn === c1.cn && c._cn === c1._cn)) |
|
|
|
// this.hiddenColumns = this.meta.columns.filter(c => this.availableColumns.find(c1 => c.cn === c1.cn && c._cn === c1._cn)) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
updateCol(_, column, id) { |
|
|
|
|
|
|
|
this.$set(this.localState, column, id) |
|
|
|
|
|
|
|
}, |
|
|
|
isActiveRow(col) { |
|
|
|
isActiveRow(col) { |
|
|
|
return this.activeRow === col.alias |
|
|
|
return this.activeRow === col.alias |
|
|
|
}, |
|
|
|
}, |
|
|
@ -471,6 +530,13 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async save() { |
|
|
|
async save() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
this.$v.$touch() |
|
|
|
|
|
|
|
if (this.$v.localState.$invalid) { |
|
|
|
|
|
|
|
this.$toast.error('Provide values of all required field').goAway(3000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.loading = true |
|
|
|
this.loading = true |
|
|
|
// const id = this.meta.columns.filter(c => c.pk).map(c => this.localState[c._cn]).join('___') |
|
|
|
// const id = this.meta.columns.filter(c => c.pk).map(c => this.localState[c._cn]).join('___') |
|
|
|
|
|
|
|
|
|
|
@ -481,8 +547,8 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// if (this.isNew) { |
|
|
|
// if (this.isNew) { |
|
|
|
// const data = |
|
|
|
// const data = |
|
|
|
await this.api.insert(this.localState) |
|
|
|
const data = await this.api.insert(this.localState) |
|
|
|
this.localState = {} // { ...this.localState, ...data } |
|
|
|
this.localState = { ...this.localState, ...data } |
|
|
|
|
|
|
|
|
|
|
|
// save hasmany and manytomany relations from local state |
|
|
|
// save hasmany and manytomany relations from local state |
|
|
|
if (this.$refs.virtual && Array.isArray(this.$refs.virtual)) { |
|
|
|
if (this.$refs.virtual && Array.isArray(this.$refs.virtual)) { |
|
|
@ -492,6 +558,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.virtual = {} |
|
|
|
|
|
|
|
|
|
|
|
this.submitted = true |
|
|
|
this.submitted = true |
|
|
|
|
|
|
|
|
|
|
|
this.$toast.success(this.localParams.submit.message || 'Saved successfully.', { |
|
|
|
this.$toast.success(this.localParams.submit.message || 'Saved successfully.', { |
|
|
@ -567,6 +636,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
::v-deep { |
|
|
|
::v-deep { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.nc-hint { |
|
|
|
|
|
|
|
padding-left: 3px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-required-switch, .nc-switch { |
|
|
|
.nc-required-switch, .nc-switch { |
|
|
|
.v-input--selection-controls__input { |
|
|
|
.v-input--selection-controls__input { |
|
|
|
transform: scale(0.65) !important; |
|
|
|
transform: scale(0.65) !important; |
|
|
@ -592,19 +666,19 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
.nc-field-wrapper { |
|
|
|
.nc-field-wrapper { |
|
|
|
|
|
|
|
|
|
|
|
.required { |
|
|
|
//.required { |
|
|
|
& > input, |
|
|
|
// & > input, |
|
|
|
& > .xc-input > input, |
|
|
|
// .xc-input > input, |
|
|
|
& > .xc-input .v-input__slot input, |
|
|
|
// .xc-input .v-input__slot input, |
|
|
|
& > .xc-input > div > input, |
|
|
|
// .xc-input > div > input, |
|
|
|
& > select, |
|
|
|
// & > select, |
|
|
|
& > .xc-input > select, |
|
|
|
// .xc-input > select, |
|
|
|
textarea:not(.inputarea) { |
|
|
|
// textarea:not(.inputarea) { |
|
|
|
border: 1px solid red; |
|
|
|
// border: 1px solid rgba(255, 0, 0, 0.98); |
|
|
|
border-radius: 4px; |
|
|
|
// border-radius: 4px; |
|
|
|
background: var(--v-backgroundColorDefault-base); |
|
|
|
// background: var(--v-backgroundColorDefault-base); |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
div > input, |
|
|
|
div > input, |
|
|
|
div > .xc-input > input, |
|
|
|
div > .xc-input > input, |
|
|
@ -639,9 +713,9 @@ export default { |
|
|
|
//width: 400px; |
|
|
|
//width: 400px; |
|
|
|
min-height: 40px; |
|
|
|
min-height: 40px; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
display: flex; |
|
|
|
//display: flex; |
|
|
|
align-items: center; |
|
|
|
//align-items: center; |
|
|
|
justify-content: center; |
|
|
|
//justify-content: center; |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
background: var(--v-backgroundColor-base); |
|
|
|
background: var(--v-backgroundColor-base); |
|
|
@ -653,9 +727,10 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-drag-n-drop-to-hide, .nc-drag-n-drop-to-show { |
|
|
|
.nc-drag-n-drop-to-hide, .nc-drag-n-drop-to-show { |
|
|
|
border: 2px dotted #a1a1a1; |
|
|
|
border: 2px dashed #c4c4c4; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
font-size: .6rem; |
|
|
|
font-size: .62rem; |
|
|
|
|
|
|
|
|
|
|
|
color: grey |
|
|
|
color: grey |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -702,12 +777,12 @@ export default { |
|
|
|
//.nc-field-labels, |
|
|
|
//.nc-field-labels, |
|
|
|
.nc-field-editables { |
|
|
|
.nc-field-editables { |
|
|
|
max-height: 0; |
|
|
|
max-height: 0; |
|
|
|
transition: .4s max-height linear; |
|
|
|
transition: .4s max-height; |
|
|
|
overflow: hidden; |
|
|
|
overflow-y: hidden; |
|
|
|
display: block; |
|
|
|
display: block; |
|
|
|
|
|
|
|
|
|
|
|
&.nc-show { |
|
|
|
&.nc-show { |
|
|
|
max-height: 150px; |
|
|
|
max-height: 500px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|