@westartcom/bread-quasar-fields 0.1.0 → 0.1.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/fields/DateField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="field-wrap" :id="id">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -58,6 +58,11 @@ export default defineComponent({
|
|
|
58
58
|
type: Object as PropType<DateFieldDefinition>,
|
|
59
59
|
required: true
|
|
60
60
|
},
|
|
61
|
+
showLabel: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
required: false,
|
|
64
|
+
default: true
|
|
65
|
+
},
|
|
61
66
|
modelValue: String,
|
|
62
67
|
errors: Array as PropType<string[]>
|
|
63
68
|
},
|
package/fields/EmailField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="field-wrap" :id="id">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -52,7 +52,12 @@ export default defineComponent({
|
|
|
52
52
|
required: true
|
|
53
53
|
},
|
|
54
54
|
modelValue: String,
|
|
55
|
-
errors: Array as PropType<string[]
|
|
55
|
+
errors: Array as PropType<string[]>,
|
|
56
|
+
showLabel: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
required: false,
|
|
59
|
+
default: true
|
|
60
|
+
}
|
|
56
61
|
},
|
|
57
62
|
|
|
58
63
|
emits: [
|
package/fields/NumberField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div :id="id" class="field-wrap">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -51,7 +51,12 @@ export default defineComponent({
|
|
|
51
51
|
required: true
|
|
52
52
|
},
|
|
53
53
|
modelValue: [String, Number],
|
|
54
|
-
errors: Array as PropType<string[]
|
|
54
|
+
errors: Array as PropType<string[]>,
|
|
55
|
+
showLabel: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false,
|
|
58
|
+
default: true
|
|
59
|
+
}
|
|
55
60
|
},
|
|
56
61
|
|
|
57
62
|
emits: [
|
package/fields/SelectField.vue
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
outlined
|
|
12
12
|
:disable="isDisabled"
|
|
13
13
|
input-debounce="100"
|
|
14
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
14
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
15
15
|
emit-value
|
|
16
16
|
v-model="internalValue">
|
|
17
17
|
<template #selected-item="scope">
|
|
@@ -102,6 +102,11 @@ export default defineComponent({
|
|
|
102
102
|
hiddenOptionValues: {
|
|
103
103
|
type: Array as PropType<string[]>,
|
|
104
104
|
default: () => []
|
|
105
|
+
},
|
|
106
|
+
showLabel: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
required: false,
|
|
109
|
+
default: true
|
|
105
110
|
}
|
|
106
111
|
},
|
|
107
112
|
|
package/fields/TelField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="field-wrap" :id="id">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -51,7 +51,12 @@ export default defineComponent({
|
|
|
51
51
|
required: true
|
|
52
52
|
},
|
|
53
53
|
modelValue: String,
|
|
54
|
-
errors: Array as PropType<string[]
|
|
54
|
+
errors: Array as PropType<string[]>,
|
|
55
|
+
showLabel: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false,
|
|
58
|
+
default: true
|
|
59
|
+
}
|
|
55
60
|
},
|
|
56
61
|
|
|
57
62
|
emits: [
|
package/fields/TextField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div :id="id" class="field-wrap">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -55,7 +55,12 @@ export default defineComponent({
|
|
|
55
55
|
required: true
|
|
56
56
|
},
|
|
57
57
|
modelValue: String,
|
|
58
|
-
errors: Array as PropType<string[]
|
|
58
|
+
errors: Array as PropType<string[]>,
|
|
59
|
+
showLabel: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
required: false,
|
|
62
|
+
default: true
|
|
63
|
+
}
|
|
59
64
|
},
|
|
60
65
|
|
|
61
66
|
emits: [
|
package/fields/TextareaField.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div :id="id" class="field-wrap">
|
|
3
3
|
<div class="field-wrap-inner">
|
|
4
4
|
<q-input
|
|
5
|
-
:label="field.label + ((field.required) ? ' *' : '')"
|
|
5
|
+
:label="(showLabel) ? field.label + ((field.required) ? ' *' : '') : undefined"
|
|
6
6
|
:name="field.name"
|
|
7
7
|
:id="id + '-input'"
|
|
8
8
|
:placeholder="field.placeholder"
|
|
@@ -57,7 +57,12 @@ export default defineComponent({
|
|
|
57
57
|
required: true
|
|
58
58
|
},
|
|
59
59
|
modelValue: String,
|
|
60
|
-
errors: Array as PropType<string[]
|
|
60
|
+
errors: Array as PropType<string[]>,
|
|
61
|
+
showLabel: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
required: false,
|
|
64
|
+
default: true
|
|
65
|
+
}
|
|
61
66
|
},
|
|
62
67
|
|
|
63
68
|
emits: [
|