All property forms now allow tags
This commit is contained in:
@@ -29,6 +29,14 @@
|
|||||||
:menu-props="{auto: true, lazy: true}"
|
:menu-props="{auto: true, lazy: true}"
|
||||||
@change="change('target', ...arguments)"
|
@change="change('target', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,14 @@
|
|||||||
name="Advanced"
|
name="Advanced"
|
||||||
standalone
|
standalone
|
||||||
>
|
>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
<div class="layout column align-center">
|
<div class="layout column align-center">
|
||||||
<smart-switch
|
<smart-switch
|
||||||
v-if="model.attributeType !== 'hitDice'"
|
v-if="model.attributeType !== 'hitDice'"
|
||||||
|
|||||||
@@ -31,6 +31,14 @@
|
|||||||
:menu-props="{auto: true, lazy: true}"
|
:menu-props="{auto: true, lazy: true}"
|
||||||
@change="change('target', ...arguments)"
|
@change="change('target', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,14 @@
|
|||||||
name="Advanced"
|
name="Advanced"
|
||||||
standalone
|
standalone
|
||||||
>
|
>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
<div class="layout row justify-center">
|
<div class="layout row justify-center">
|
||||||
<div>
|
<div>
|
||||||
<smart-switch
|
<smart-switch
|
||||||
|
|||||||
@@ -28,6 +28,16 @@
|
|||||||
:menu-props="{auto: true, lazy: true}"
|
:menu-props="{auto: true, lazy: true}"
|
||||||
@change="change('target', ...arguments)"
|
@change="change('target', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
class="mr-2"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
:error-messages="errors.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,14 @@
|
|||||||
@change="change('value', ...arguments)"
|
@change="change('value', ...arguments)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -79,12 +79,6 @@
|
|||||||
name="Advanced"
|
name="Advanced"
|
||||||
standalone
|
standalone
|
||||||
>
|
>
|
||||||
<smart-switch
|
|
||||||
label="Show increment button"
|
|
||||||
:value="model.showIncrement"
|
|
||||||
:error-messages="errors.showIncrement"
|
|
||||||
@change="change('showIncrement', ...arguments)"
|
|
||||||
/>
|
|
||||||
<smart-combobox
|
<smart-combobox
|
||||||
label="Tags"
|
label="Tags"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
@@ -95,6 +89,12 @@
|
|||||||
:error-messages="errors.tags"
|
:error-messages="errors.tags"
|
||||||
@change="change('tags', ...arguments)"
|
@change="change('tags', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-switch
|
||||||
|
label="Show increment button"
|
||||||
|
:value="model.showIncrement"
|
||||||
|
:error-messages="errors.showIncrement"
|
||||||
|
@change="change('showIncrement', ...arguments)"
|
||||||
|
/>
|
||||||
<smart-switch
|
<smart-switch
|
||||||
label="Requires attunement"
|
label="Requires attunement"
|
||||||
:value="model.requiresAttunement"
|
:value="model.requiresAttunement"
|
||||||
|
|||||||
@@ -13,6 +13,14 @@
|
|||||||
:error-messages="errors.description"
|
:error-messages="errors.description"
|
||||||
@change="change('description', ...arguments)"
|
@change="change('description', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,14 @@
|
|||||||
@change="change('value', ...arguments)"
|
@change="change('value', ...arguments)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,16 @@
|
|||||||
:error-messages="errors.stat"
|
:error-messages="errors.stat"
|
||||||
@change="change('stat', ...arguments)"
|
@change="change('stat', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
class="mr-2"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
:error-messages="errors.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,14 @@
|
|||||||
name="Advanced"
|
name="Advanced"
|
||||||
standalone
|
standalone
|
||||||
>
|
>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
<div class="layout row justify-center">
|
<div class="layout row justify-center">
|
||||||
<text-field
|
<text-field
|
||||||
label="Base Value"
|
label="Base Value"
|
||||||
|
|||||||
@@ -15,6 +15,12 @@
|
|||||||
:error-messages="errors.name"
|
:error-messages="errors.name"
|
||||||
@change="change('name', ...arguments)"
|
@change="change('name', ...arguments)"
|
||||||
/>
|
/>
|
||||||
|
<text-area
|
||||||
|
label="Description"
|
||||||
|
:value="model.description"
|
||||||
|
:error-messages="errors.description"
|
||||||
|
@change="change('description', ...arguments)"
|
||||||
|
/>
|
||||||
<text-field
|
<text-field
|
||||||
label="Picture URL"
|
label="Picture URL"
|
||||||
hint="A link to an image representing this property"
|
hint="A link to an image representing this property"
|
||||||
@@ -31,15 +37,6 @@
|
|||||||
:error-messages="errors.slotFillerType"
|
:error-messages="errors.slotFillerType"
|
||||||
@change="change('slotFillerType', ...arguments)"
|
@change="change('slotFillerType', ...arguments)"
|
||||||
/>
|
/>
|
||||||
<smart-combobox
|
|
||||||
label="Tags"
|
|
||||||
multiple
|
|
||||||
chips
|
|
||||||
deletable-chips
|
|
||||||
:value="model.tags"
|
|
||||||
:error-messages="errors.tags"
|
|
||||||
@change="change('tags', ...arguments)"
|
|
||||||
/>
|
|
||||||
<text-field
|
<text-field
|
||||||
label="Quantity"
|
label="Quantity"
|
||||||
type="number"
|
type="number"
|
||||||
@@ -57,25 +54,23 @@
|
|||||||
:error-messages="errors.slotFillerCondition"
|
:error-messages="errors.slotFillerCondition"
|
||||||
@change="change('slotFillerCondition', ...arguments)"
|
@change="change('slotFillerCondition', ...arguments)"
|
||||||
/>
|
/>
|
||||||
<calculation-error-list :errors="model.slotConditionErrors" />
|
<smart-combobox
|
||||||
<text-area
|
label="Tags"
|
||||||
label="Description"
|
multiple
|
||||||
:value="model.description"
|
chips
|
||||||
:error-messages="errors.description"
|
deletable-chips
|
||||||
@change="change('description', ...arguments)"
|
:value="model.tags"
|
||||||
|
:error-messages="errors.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js';
|
import propertyFormMixin from '/imports/ui/properties/forms/shared/propertyFormMixin.js';
|
||||||
import CalculationErrorList from '/imports/ui/properties/forms/shared/CalculationErrorList.vue';
|
|
||||||
import PROPERTIES from '/imports/constants/PROPERTIES.js';
|
import PROPERTIES from '/imports/constants/PROPERTIES.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
CalculationErrorList,
|
|
||||||
},
|
|
||||||
mixins: [propertyFormMixin],
|
mixins: [propertyFormMixin],
|
||||||
data(){
|
data(){
|
||||||
let slotTypes = [];
|
let slotTypes = [];
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
@change="change('slotType', ...arguments)"
|
@change="change('slotType', ...arguments)"
|
||||||
/>
|
/>
|
||||||
<smart-combobox
|
<smart-combobox
|
||||||
label="Tags"
|
label="Tags Required"
|
||||||
hint="The slot must be filled with a property which has all the listed tags"
|
hint="The slot must be filled with a property which has all the listed tags"
|
||||||
multiple
|
multiple
|
||||||
chips
|
chips
|
||||||
@@ -54,6 +54,14 @@
|
|||||||
name="Advanced"
|
name="Advanced"
|
||||||
standalone
|
standalone
|
||||||
>
|
>
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
<div class="layout row wrap justify-space-between">
|
<div class="layout row wrap justify-space-between">
|
||||||
<smart-switch
|
<smart-switch
|
||||||
label="Ignored"
|
label="Ignored"
|
||||||
|
|||||||
@@ -31,6 +31,14 @@
|
|||||||
@change="change('maxPrepared', ...arguments)"
|
@change="change('maxPrepared', ...arguments)"
|
||||||
/>
|
/>
|
||||||
<calculation-error-list :errors="model.maxPreparedErrors" />
|
<calculation-error-list :errors="model.maxPreparedErrors" />
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,14 @@
|
|||||||
/>
|
/>
|
||||||
</v-fade-transition>
|
</v-fade-transition>
|
||||||
<calculation-error-list :errors="model.errors" />
|
<calculation-error-list :errors="model.errors" />
|
||||||
|
<smart-combobox
|
||||||
|
label="Tags"
|
||||||
|
multiple
|
||||||
|
chips
|
||||||
|
deletable-chips
|
||||||
|
:value="model.tags"
|
||||||
|
@change="change('tags', ...arguments)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user