@westartcom/bread-quasar-fields 0.0.12 → 0.0.13
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/fields/ModelSearchField.vue +34 -33
- package/package.json +1 -1
|
@@ -116,39 +116,40 @@
|
|
|
116
116
|
{{ option[displayField] }}
|
|
117
117
|
</template>
|
|
118
118
|
</q-chip>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
119
|
+
|
|
120
|
+
<div class="selected-options-multiple table-list" v-if="multiValueStyle === 'table' && selectedOptions.length && field.extra_data.multiple">
|
|
121
|
+
<div class="labels table-header" v-if="showLabels">
|
|
122
|
+
<div class="label column" v-for="(label, displayField) of field.extra_data.display_field_labels" :key="displayField">
|
|
123
|
+
{{ label }}
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="selected-option-row table-row" v-for="option in selectedOptions" :key="option.id">
|
|
127
|
+
<template v-if="showLabels">
|
|
128
|
+
<slot name="selected-option-label" :option="option" :display-fields="displayFields">
|
|
129
|
+
<div class="selected-option-label column" v-for="(label, displayField) of field.extra_data.display_field_labels" :key="displayField">{{ option[displayField] }}</div>
|
|
130
|
+
</slot>
|
|
131
|
+
</template>
|
|
132
|
+
<template v-else>
|
|
133
|
+
<div class="selected-option-label text-weight-bold column">
|
|
134
|
+
<slot name="selected-option-label" :option="option" :display-fields="displayFields">
|
|
135
|
+
<template v-for="displayField in displayFields">
|
|
136
|
+
{{ option[displayField] }}
|
|
137
|
+
</template>
|
|
138
|
+
</slot>
|
|
139
|
+
</div>
|
|
140
|
+
</template>
|
|
141
|
+
<div class="column actions">
|
|
142
|
+
<slot name="selected-option-actions" :option="option" />
|
|
143
|
+
<q-btn
|
|
144
|
+
flat
|
|
145
|
+
round
|
|
146
|
+
icon="fa-solid fa-trash"
|
|
147
|
+
color="negative"
|
|
148
|
+
:title="$i18n.get('actions.remove')"
|
|
149
|
+
@click="removeOption(option)"></q-btn>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
152
153
|
|
|
153
154
|
<div class="selected-options-multiple tags" v-else-if="multiValueStyle === 'tags' && selectedOptions.length && field.extra_data.multiple">
|
|
154
155
|
<div class="selected-option-tag" v-for="option in selectedOptions" :key="option.id">
|