@drax/crud-vue 0.5.16 → 0.5.20

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.5.16",
6
+ "version": "0.5.20",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@drax/common-front": "^0.5.11",
28
- "@drax/crud-front": "^0.5.3",
29
- "@drax/crud-share": "^0.5.16"
28
+ "@drax/crud-front": "^0.5.20",
29
+ "@drax/crud-share": "^0.5.17"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "pinia": "^2.2.2",
@@ -63,5 +63,5 @@
63
63
  "vue-tsc": "^2.0.11",
64
64
  "vuetify": "^3.7.1"
65
65
  },
66
- "gitHead": "4233d302b134b351965288bc7fe981e0afc94fc4"
66
+ "gitHead": "0f55c328d87019aafcf55402d7d182945f034982"
67
67
  }
@@ -14,7 +14,6 @@ const {entity} = defineProps({
14
14
  actions: {type: Boolean, default: false},
15
15
  })
16
16
 
17
- const formRef = ref()
18
17
 
19
18
  async function filter() {
20
19
  emit('filter')
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import {computed} from "vue";
2
+ import {computed, ref} from "vue";
3
3
  import type {PropType} from "vue";
4
4
  import CrudFormList from "./CrudFormList.vue";
5
5
  import CrudAutocomplete from "./CrudAutocomplete.vue";
@@ -40,6 +40,8 @@ if (!field) {
40
40
  throw new Error("CrudFormField must be provided with a field object")
41
41
  }
42
42
 
43
+ const show = ref(false)
44
+
43
45
  const name = computed(() => index >= 0 ? `${field.name}_${index}` : field.name)
44
46
 
45
47
  const label = computed(() => {
@@ -88,6 +90,28 @@ defineEmits(['updateValue'])
88
90
  @update:modelValue="$emit('updateValue')"
89
91
  />
90
92
 
93
+ <v-text-field
94
+ v-if="field.type === 'password'"
95
+ :name="name"
96
+ :label="label"
97
+ v-model="valueModel"
98
+ :readonly="readonly"
99
+ :error-messages="inputErrors"
100
+ :rules="rules"
101
+ :density="density"
102
+ :variant="variant"
103
+ :clearable="clearable"
104
+ :hide-details="hideDetails"
105
+ :single-line="singleLine"
106
+ :prepend-icon="prependIcon"
107
+ :append-icon="appendIcon"
108
+ :prepend-inner-icon="prependInnerIcon"
109
+ @update:modelValue="$emit('updateValue')"
110
+ :type="show ? 'text' : 'password'"
111
+ :append-inner-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
112
+ @click:append-inner="show = !show"
113
+ />
114
+
91
115
  <v-combobox
92
116
  v-if="field.type === 'enum'"
93
117
  type="text"