@drax/crud-vue 0.15.3 → 0.15.5
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.15.
|
|
6
|
+
"version": "0.15.5",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@drax/common-front": "^0.15.0",
|
|
28
28
|
"@drax/crud-front": "^0.15.0",
|
|
29
|
-
"@drax/crud-share": "^0.15.
|
|
29
|
+
"@drax/crud-share": "^0.15.4",
|
|
30
30
|
"@drax/media-vue": "^0.15.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"vue-tsc": "^2.1.10",
|
|
65
65
|
"vuetify": "^3.8.2"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "7807c04d9824580ac4232264237597dbb113c921"
|
|
68
68
|
}
|
package/src/components/Crud.vue
CHANGED
|
@@ -20,6 +20,8 @@ const {entity, multiple} = defineProps({
|
|
|
20
20
|
readonly: {type: Boolean, default: false},
|
|
21
21
|
clearable: {type: Boolean, default: true},
|
|
22
22
|
label: {type: String},
|
|
23
|
+
hint: {type: String},
|
|
24
|
+
persistentHint: {type: Boolean, default: false},
|
|
23
25
|
itemValue: {type: [String], default: '_id'},
|
|
24
26
|
itemTitle: {type: [String], default: 'name'},
|
|
25
27
|
rules: {type: Array as PropType<any>, default: () => []},
|
|
@@ -96,6 +98,8 @@ defineEmits(['updateValue'])
|
|
|
96
98
|
<v-autocomplete
|
|
97
99
|
v-model="valueModel"
|
|
98
100
|
:label="label ? label : field.label"
|
|
101
|
+
:hint="field.hint"
|
|
102
|
+
:persistent-hint="field.persistentHint"
|
|
99
103
|
:placeholder="field.label"
|
|
100
104
|
:items="items"
|
|
101
105
|
:multiple="multiple"
|
|
@@ -75,6 +75,8 @@ defineEmits(['updateValue'])
|
|
|
75
75
|
type="text"
|
|
76
76
|
:name="name"
|
|
77
77
|
:label="label"
|
|
78
|
+
:hint="field.hint"
|
|
79
|
+
:persistent-hint="field.persistentHint"
|
|
78
80
|
v-model="valueModel"
|
|
79
81
|
:readonly="readonly"
|
|
80
82
|
:error-messages="inputErrors"
|
|
@@ -97,6 +99,8 @@ defineEmits(['updateValue'])
|
|
|
97
99
|
type="text"
|
|
98
100
|
:name="name"
|
|
99
101
|
:label="label"
|
|
102
|
+
:hint="field.hint"
|
|
103
|
+
:persistent-hint="field.persistentHint"
|
|
100
104
|
v-model="valueModel"
|
|
101
105
|
:readonly="readonly"
|
|
102
106
|
:error-messages="inputErrors"
|
|
@@ -117,6 +121,8 @@ defineEmits(['updateValue'])
|
|
|
117
121
|
v-if="field.type === 'password'"
|
|
118
122
|
:name="name"
|
|
119
123
|
:label="label"
|
|
124
|
+
:hint="field.hint"
|
|
125
|
+
:persistent-hint="field.persistentHint"
|
|
120
126
|
v-model="valueModel"
|
|
121
127
|
:readonly="readonly"
|
|
122
128
|
:error-messages="inputErrors"
|
|
@@ -140,6 +146,8 @@ defineEmits(['updateValue'])
|
|
|
140
146
|
type="text"
|
|
141
147
|
:name="name"
|
|
142
148
|
:label="label"
|
|
149
|
+
:hint="field.hint"
|
|
150
|
+
:persistent-hint="field.persistentHint"
|
|
143
151
|
v-model="valueModel"
|
|
144
152
|
:items="field.enum"
|
|
145
153
|
:readonly="readonly"
|
|
@@ -164,6 +172,8 @@ defineEmits(['updateValue'])
|
|
|
164
172
|
type="number"
|
|
165
173
|
:name="name"
|
|
166
174
|
:label="label"
|
|
175
|
+
:hint="field.hint"
|
|
176
|
+
:persistent-hint="field.persistentHint"
|
|
167
177
|
v-model.number="valueModel"
|
|
168
178
|
:readonly="readonly"
|
|
169
179
|
:error-messages="inputErrors"
|
|
@@ -224,6 +234,8 @@ defineEmits(['updateValue'])
|
|
|
224
234
|
v-if="field.type === 'boolean'"
|
|
225
235
|
:name="name"
|
|
226
236
|
:label="label"
|
|
237
|
+
:hint="field.hint"
|
|
238
|
+
:persistent-hint="field.persistentHint"
|
|
227
239
|
v-model="valueModel"
|
|
228
240
|
:readonly="readonly"
|
|
229
241
|
:error-messages="inputErrors"
|
|
@@ -247,6 +259,8 @@ defineEmits(['updateValue'])
|
|
|
247
259
|
type="text"
|
|
248
260
|
:name="name"
|
|
249
261
|
:label="label"
|
|
262
|
+
:hint="field.hint"
|
|
263
|
+
:persistent-hint="field.persistentHint"
|
|
250
264
|
v-model="valueModel"
|
|
251
265
|
:readonly="readonly"
|
|
252
266
|
:error-messages="inputErrors"
|
|
@@ -270,6 +284,8 @@ defineEmits(['updateValue'])
|
|
|
270
284
|
:item-title="field?.refDisplay"
|
|
271
285
|
v-model="valueModel"
|
|
272
286
|
:label="label"
|
|
287
|
+
:hint="field.hint"
|
|
288
|
+
:persistent-hint="field.persistentHint"
|
|
273
289
|
:error-messages="inputErrors"
|
|
274
290
|
:rules="rules"
|
|
275
291
|
:density="density"
|
|
@@ -315,6 +331,8 @@ defineEmits(['updateValue'])
|
|
|
315
331
|
type="text"
|
|
316
332
|
:name="name"
|
|
317
333
|
:label="label"
|
|
334
|
+
:hint="field.hint"
|
|
335
|
+
:persistent-hint="field.persistentHint"
|
|
318
336
|
v-model="valueModel"
|
|
319
337
|
:multiple="true"
|
|
320
338
|
:chips="true"
|
|
@@ -340,6 +358,8 @@ defineEmits(['updateValue'])
|
|
|
340
358
|
type="text"
|
|
341
359
|
:name="name"
|
|
342
360
|
:label="label"
|
|
361
|
+
:hint="field.hint"
|
|
362
|
+
:persistent-hint="field.persistentHint"
|
|
343
363
|
v-model="valueModel"
|
|
344
364
|
:items="field.enum"
|
|
345
365
|
:multiple="true"
|
|
@@ -371,6 +391,8 @@ defineEmits(['updateValue'])
|
|
|
371
391
|
:multiple="true"
|
|
372
392
|
:chips="true"
|
|
373
393
|
:label="label"
|
|
394
|
+
:hint="field.hint"
|
|
395
|
+
:persistent-hint="field.persistentHint"
|
|
374
396
|
:rules="rules"
|
|
375
397
|
:error-messages="inputErrors"
|
|
376
398
|
:density="density"
|
|
@@ -391,6 +413,8 @@ defineEmits(['updateValue'])
|
|
|
391
413
|
type="number"
|
|
392
414
|
:name="name"
|
|
393
415
|
:label="label"
|
|
416
|
+
:hint="field.hint"
|
|
417
|
+
:persistent-hint="field.persistentHint"
|
|
394
418
|
v-model ="valueModel"
|
|
395
419
|
:multiple="true"
|
|
396
420
|
:chips="true"
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import CrudForm from "./components/CrudForm.vue";
|
|
|
4
4
|
import CrudFormField from "./components/CrudFormField.vue";
|
|
5
5
|
import CrudFormList from "./components/CrudFormList.vue";
|
|
6
6
|
import CrudList from "./components/CrudList.vue";
|
|
7
|
+
import CrudFilters from "./components/CrudFilters.vue";
|
|
7
8
|
import CrudNotify from "./components/CrudNotify.vue";
|
|
8
9
|
import CrudSearch from "./components/CrudSearch.vue";
|
|
9
10
|
import CrudAutocomplete from "./components/CrudAutocomplete.vue";
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
CrudNotify,
|
|
25
26
|
CrudSearch,
|
|
26
27
|
CrudAutocomplete,
|
|
28
|
+
CrudFilters,
|
|
27
29
|
useCrud,
|
|
28
30
|
useFormUtils,
|
|
29
31
|
useCrudStore,
|