@bildvitta/quasar-ui-asteroid 3.4.0-beta.0 → 3.4.0-beta.2
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 +1 -1
- package/src/components/app-bar/QasAppBar.vue +1 -2
- package/src/components/field/QasField.vue +3 -2
- package/src/components/form-generator/QasFormGenerator.vue +6 -2
- package/src/components/password-input/QasPasswordInput.vue +12 -2
- package/src/components/search-box/QasSearchBox.vue +2 -2
package/package.json
CHANGED
|
@@ -76,8 +76,9 @@ export default {
|
|
|
76
76
|
mask,
|
|
77
77
|
maxFiles,
|
|
78
78
|
useIso,
|
|
79
|
+
useLazyLoading,
|
|
79
80
|
useSearch,
|
|
80
|
-
|
|
81
|
+
useStrengthChecker
|
|
81
82
|
} = this.formattedField
|
|
82
83
|
|
|
83
84
|
// Default error attributes for Quasar.
|
|
@@ -125,7 +126,7 @@ export default {
|
|
|
125
126
|
number: { is: 'qas-input', type: 'number', ...input },
|
|
126
127
|
hidden: { is: 'input', name, type },
|
|
127
128
|
email: { is: 'qas-input', type, ...input },
|
|
128
|
-
password: { is: 'qas-password-input', ...input },
|
|
129
|
+
password: { is: 'qas-password-input', ...input, useStrengthChecker },
|
|
129
130
|
|
|
130
131
|
decimal: { ...numericInput, mode: 'decimal' },
|
|
131
132
|
money: { ...numericInput, mode: 'money' },
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
<div :class="mx_classes">
|
|
10
10
|
<div v-for="(field, key) in fieldsetItem.fields.visible" :key="key" :class="mx_getFieldClass(key)">
|
|
11
11
|
<slot :field="field" :name="`field-${field.name}`">
|
|
12
|
-
<qas-field :disable="
|
|
12
|
+
<qas-field :disable="isDisabled(field)" v-bind="fieldsProps[field.name]" :error="errors[key]" :field="field" :model-value="modelValue[field.name]" @update:model-value="updateModelValue(field.name, $event)" />
|
|
13
13
|
</slot>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<div v-for="(field, key) in fieldsetItem.fields.hidden" :key="key">
|
|
18
18
|
<slot :field="field" :name="`field-${field.name}`">
|
|
19
|
-
<qas-field :disable="
|
|
19
|
+
<qas-field :disable="isDisabled(field)" v-bind="fieldsProps[field.name]" :field="field" :model-value="modelValue[field.name]" @update:model-value="updateModelValue(field.name, $event)" />
|
|
20
20
|
</slot>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
@@ -162,6 +162,10 @@ export default {
|
|
|
162
162
|
models[key] = value
|
|
163
163
|
|
|
164
164
|
this.$emit('update:modelValue', models)
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
isDisabled ({ disable }) {
|
|
168
|
+
return disable || this.disable
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
171
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<qas-input v-model="model" :bottom-slots="
|
|
2
|
+
<qas-input v-model="model" :bottom-slots="hasBottomSlots" v-bind="$attrs" :type="type" use-remove-error-on-type>
|
|
3
3
|
<template #append>
|
|
4
4
|
<q-icon class="cursor-pointer" :color="iconColor" :name="icon" @click="toggle" />
|
|
5
5
|
</template>
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
<slot :name="name" v-bind="context || {}" />
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
|
-
<template v-if="
|
|
11
|
+
<template v-if="hasStrengthChecker" #hint>
|
|
12
12
|
<qas-password-strength-checker v-bind="strengthCheckerProps" :password="model" />
|
|
13
13
|
</template>
|
|
14
14
|
</qas-input>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
|
+
import QasInput from '../input/QasInput.vue'
|
|
18
19
|
import passwordMixin from '../../mixins/password.js'
|
|
19
20
|
import QasPasswordStrengthChecker from '../password-strength-checker/QasPasswordStrengthChecker.vue'
|
|
20
21
|
|
|
@@ -22,6 +23,7 @@ export default {
|
|
|
22
23
|
name: 'QasPasswordInput',
|
|
23
24
|
|
|
24
25
|
components: {
|
|
26
|
+
QasInput,
|
|
25
27
|
QasPasswordStrengthChecker
|
|
26
28
|
},
|
|
27
29
|
|
|
@@ -76,6 +78,14 @@ export default {
|
|
|
76
78
|
|
|
77
79
|
type () {
|
|
78
80
|
return this.toggleType ? 'password' : 'text'
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
hasBottomSlots () {
|
|
84
|
+
return !!this.model.length
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
hasStrengthChecker () {
|
|
88
|
+
return this.useStrengthChecker && this.hasBottomSlots
|
|
79
89
|
}
|
|
80
90
|
},
|
|
81
91
|
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
return {
|
|
113
113
|
clearable: true,
|
|
114
114
|
disable: this.isDisabled,
|
|
115
|
-
debounce: this.useLazyLoading ?
|
|
115
|
+
debounce: this.useLazyLoading ? 800 : 0,
|
|
116
116
|
outlined: true,
|
|
117
117
|
placeholder: this.placeholder,
|
|
118
118
|
hideBottomSpace: true,
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
161
161
|
},
|
|
162
162
|
|
|
163
163
|
isDisabled () {
|
|
164
|
-
return (!this.useLazyLoading && !this.list.length) || this.
|
|
164
|
+
return (!this.useLazyLoading && !this.list.length) || this.hasNoOptionsOnFirstFetch
|
|
165
165
|
},
|
|
166
166
|
|
|
167
167
|
showEmptyResult () {
|