|
|
@ -55,122 +55,149 @@ const { |
|
|
|
v-on="$listeners" |
|
|
|
v-on="$listeners" |
|
|
|
/> --> |
|
|
|
/> --> |
|
|
|
|
|
|
|
|
|
|
|
<RatingCell |
|
|
|
<!-- <RatingCell --> |
|
|
|
v-else-if="isRating" |
|
|
|
<!-- v-if="isRating" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
:active="active" |
|
|
|
<!-- v-model="localState" |
|
|
|
:is-form="isForm" |
|
|
|
:active="active" |
|
|
|
:column="column" |
|
|
|
:is-form="isForm" |
|
|
|
:is-public-grid="isPublic && !isForm" |
|
|
|
:column="column" |
|
|
|
:is-public-form="isPublic && isForm" |
|
|
|
:is-public-grid="isPublic && !isForm" |
|
|
|
:is-locked="isLocked" |
|
|
|
:is-public-form="isPublic && isForm" |
|
|
|
v-on="$listeners" |
|
|
|
:is-locked="isLocked" |
|
|
|
/> |
|
|
|
v-on="$listeners" |
|
|
|
|
|
|
|
/> --> |
|
|
|
<DurationCell |
|
|
|
|
|
|
|
v-else-if="isDuration" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
:active="active" |
|
|
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
|
|
|
:column="column" |
|
|
|
|
|
|
|
:is-locked="isLocked" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<BooleanCell |
|
|
|
|
|
|
|
v-else-if="isBoolean" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
:column="column" |
|
|
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<IntegerCell |
|
|
|
<!-- <DurationCell --> |
|
|
|
v-else-if="isInt" |
|
|
|
<!-- v-else-if="isDuration" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
/> |
|
|
|
<!-- :active="active" --> |
|
|
|
|
|
|
|
<!-- :is-form="isForm" --> |
|
|
|
|
|
|
|
<!-- :column="column" --> |
|
|
|
|
|
|
|
<!-- :is-locked="isLocked" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
<FloatCell |
|
|
|
|
|
|
|
v-else-if="isFloat" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DatePickerCell |
|
|
|
|
|
|
|
v-else-if="isDate" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TimePickerCell |
|
|
|
<!-- <IntegerCell --> |
|
|
|
v-else-if="isTime" |
|
|
|
<!-- v-else-if="isInt" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
@save="$emit('save')" |
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
/> |
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
<DateTimePickerCell |
|
|
|
<!-- <FloatCell --> |
|
|
|
v-else-if="isDateTime" |
|
|
|
<!-- v-else-if="isFloat" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
ignore-focus |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
/> |
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
<EnumCell |
|
|
|
<!-- <DatePickerCell --> |
|
|
|
v-else-if="isEnum && ((!isForm && !active) || isLocked || (isPublic && !isForm))" |
|
|
|
<!-- v-else-if="isDate" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
:column="column" |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
/> |
|
|
|
<!-- />–> --> |
|
|
|
<EnumListCell |
|
|
|
|
|
|
|
v-else-if="isEnum" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
|
|
|
:column="column" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<JsonEditableCell |
|
|
|
<!-- <TimePickerCell --> |
|
|
|
v-else-if="isJSON" |
|
|
|
<!-- v-else-if="isTime" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
:is-form="isForm" |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
@input="$emit('save')" |
|
|
|
<!-- @save="$emit('save')" --> |
|
|
|
/> |
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
<SetListEditableCell |
|
|
|
<!-- <DateTimePickerCell --> |
|
|
|
v-else-if="isSet && (active || isForm) && !isLocked && !(isPublic && !isForm)" |
|
|
|
<!-- v-else-if="isDateTime" --> |
|
|
|
v-model="localState" |
|
|
|
<!-- /> --> |
|
|
|
:column="column" |
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
v-on="parentListeners" |
|
|
|
<!-- ignore-focus --> |
|
|
|
/> |
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
<SetListCell |
|
|
|
<!-- />–> --> |
|
|
|
v-else-if="isSet" |
|
|
|
|
|
|
|
v-model="localState" |
|
|
|
|
|
|
|
:column="column" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditableUrlCell v-else-if="isURL" v-model="localState" v-on="parentListeners" /> |
|
|
|
<!-- <EnumCell --> |
|
|
|
|
|
|
|
<!-- v-else-if="isEnum && ((!isForm && !active) || isLocked || (isPublic && !isForm))" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
|
|
|
|
<!-- :column="column" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
<!-- <EnumListCell --> |
|
|
|
|
|
|
|
<!-- v-else-if="isEnum" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState"–> --> |
|
|
|
|
|
|
|
<!-- <!– :is-form="isForm"–> --> |
|
|
|
|
|
|
|
<!-- <!– :column="column"–> --> |
|
|
|
|
|
|
|
<!-- <!– v-on="parentListeners"–> --> |
|
|
|
|
|
|
|
<!-- <!– />–> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <JsonEditableCell --> |
|
|
|
|
|
|
|
<!-- v-else-if="isJSON" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
|
|
|
|
<!-- :is-form="isForm" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- @input="$emit('save')" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <SetListEditableCell --> |
|
|
|
|
|
|
|
<!-- v-else-if="isSet && (active || isForm) && !isLocked && !(isPublic && !isForm)" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
|
|
|
|
<!-- :column="column" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
<!-- <SetListCell --> |
|
|
|
|
|
|
|
<!-- v-else-if="isSet" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
|
|
|
|
<!-- :column="column" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <EditableUrlCell v-else-if="isURL" --> |
|
|
|
|
|
|
|
<!-- /> --> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" v-on="parentListeners" –> --> |
|
|
|
|
|
|
|
<!-- <!– />–> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditableCellText v-if="isString" v-model="localState" /> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditableCellTextArea v-else-if="isTextArea" v-model="localState" /> |
|
|
|
|
|
|
|
<!-- v-model="localState" |
|
|
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> --> |
|
|
|
|
|
|
|
|
|
|
|
<TextCell v-else-if="isString" v-model="localState" v-on="parentListeners" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextAreaCell |
|
|
|
<EditableCellBoolean |
|
|
|
v-else-if="isTextArea" |
|
|
|
v-else-if="isBoolean" |
|
|
|
v-model="localState" |
|
|
|
v-model="localState" |
|
|
|
:is-form="isForm" |
|
|
|
|
|
|
|
v-on="parentListeners" |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- <!– v-model="localState" --> |
|
|
|
|
|
|
|
<!-- :column="column" --> |
|
|
|
|
|
|
|
<!-- :is-form="isForm" --> |
|
|
|
|
|
|
|
<!-- v-on="parentListeners" --> |
|
|
|
|
|
|
|
<!-- />–> --> |
|
|
|
|
|
|
|
|
|
|
|
<TextCell v-else v-model="localState" v-on="$listeners" /> |
|
|
|
|
|
|
|
<span v-if="hint" class="nc-hint">{{ hint }}</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="(isLocked || (isPublic && !isForm)) && !isAttachment" class="nc-locked-overlay" /> |
|
|
|
<EditableCellText v-else v-model="localState" /> |
|
|
|
|
|
|
|
<!-- v-on="$listeners" <span v-if="hint" class="nc-hint">{{ hint }}</span> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div v-if="(isLocked || (isPublic && !isForm)) && !isAttachment" class="nc-locked-overlay" /> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
<style scoped> |
|
|
|
|
|
|
|
textarea { |
|
|
|
|
|
|
|
outline: none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
div { |
|
|
|
div { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|