barbican-reset 3.9.0 → 3.10.0
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/animations/index.js +2 -2
- package/components/BrConfirmDone.vue +7 -7
- package/components/BrConfirmEmail.vue +7 -7
- package/components/BrFormCheckbox/Component.vue +16 -17
- package/components/BrFormGroup/Component.vue +3 -3
- package/components/BrFormInput/Component.vue +14 -15
- package/package.json +6 -6
- package/scripts/helpers.js +1 -1
package/animations/index.js
CHANGED
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script>
|
|
12
|
-
import BrCard from
|
|
13
|
-
import BrCardTitle from
|
|
14
|
-
import BrCardText from
|
|
12
|
+
import BrCard from '#components/BrCard.vue'
|
|
13
|
+
import BrCardTitle from '#components/BrCardTitle.vue'
|
|
14
|
+
import BrCardText from '#components/BrCardText.vue'
|
|
15
15
|
|
|
16
|
-
import Animations from
|
|
17
|
-
import DoneIcon from
|
|
16
|
+
import Animations from '#animations/index'
|
|
17
|
+
import DoneIcon from '#icons/confirm/done.vue'
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
mixins: [Animations],
|
|
21
21
|
components: { BrCard, BrCardTitle, BrCardText, DoneIcon },
|
|
22
22
|
mounted() {
|
|
23
|
-
this.animateDone()
|
|
23
|
+
this.animateDone()
|
|
24
24
|
},
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
</script>
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
-
import BrCard from
|
|
15
|
-
import BrCardTitle from
|
|
16
|
-
import BrCardText from
|
|
14
|
+
import BrCard from '#components/BrCard.vue'
|
|
15
|
+
import BrCardTitle from '#components/BrCardTitle.vue'
|
|
16
|
+
import BrCardText from '#components/BrCardText.vue'
|
|
17
17
|
|
|
18
|
-
import Animations from
|
|
19
|
-
import EmailIcon from
|
|
18
|
+
import Animations from '#animations/index'
|
|
19
|
+
import EmailIcon from '#icons/confirm/email.vue'
|
|
20
20
|
|
|
21
21
|
export default {
|
|
22
22
|
mixins: [Animations],
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
EmailIcon,
|
|
28
28
|
},
|
|
29
29
|
mounted() {
|
|
30
|
-
this.animateEmail()
|
|
30
|
+
this.animateEmail()
|
|
31
31
|
},
|
|
32
|
-
}
|
|
32
|
+
}
|
|
33
33
|
</script>
|
|
@@ -11,29 +11,28 @@
|
|
|
11
11
|
:table="table"
|
|
12
12
|
:name="name"
|
|
13
13
|
v-model="model"
|
|
14
|
-
:value="value"
|
|
15
|
-
/>
|
|
14
|
+
:value="value" />
|
|
16
15
|
<label v-if="$slots.default" :for="generateID" ref="label"><slot /></label>
|
|
17
16
|
</div>
|
|
18
17
|
</template>
|
|
19
18
|
|
|
20
19
|
<script>
|
|
21
|
-
import mixins from
|
|
20
|
+
import mixins from '#mixins/inputs'
|
|
22
21
|
|
|
23
22
|
export default {
|
|
24
23
|
inheritAttrs: false, // Allow us to put attributes on the input.
|
|
25
24
|
mixins: [mixins],
|
|
26
|
-
emits: [
|
|
25
|
+
emits: ['update:modelValue', 'change'],
|
|
27
26
|
props: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
'modelValue',
|
|
28
|
+
'disabled',
|
|
29
|
+
'success',
|
|
30
|
+
'checked',
|
|
31
|
+
'toggle',
|
|
32
|
+
'table',
|
|
33
|
+
'name',
|
|
34
|
+
'id',
|
|
35
|
+
'value',
|
|
37
36
|
],
|
|
38
37
|
computed: {
|
|
39
38
|
// You cannot use a prop with v-model, it results in the below error. The suggested option is to have a local
|
|
@@ -41,13 +40,13 @@ export default {
|
|
|
41
40
|
// Error: VueCompilerError: v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
42
41
|
model: {
|
|
43
42
|
get() {
|
|
44
|
-
return this.modelValue
|
|
43
|
+
return this.modelValue
|
|
45
44
|
},
|
|
46
45
|
set(value) {
|
|
47
|
-
this.$emit(
|
|
48
|
-
this.$emit(
|
|
46
|
+
this.$emit('update:modelValue', value)
|
|
47
|
+
this.$emit('change', { value }) // Support @change.
|
|
49
48
|
},
|
|
50
49
|
},
|
|
51
50
|
},
|
|
52
|
-
}
|
|
51
|
+
}
|
|
53
52
|
</script>
|
|
@@ -10,29 +10,28 @@
|
|
|
10
10
|
:type="type"
|
|
11
11
|
:name="name"
|
|
12
12
|
:min="min"
|
|
13
|
-
:max="max"
|
|
14
|
-
/>
|
|
13
|
+
:max="max" />
|
|
15
14
|
<label v-if="$slots.default" :for="generateID" ref="label"><slot /></label>
|
|
16
15
|
</template>
|
|
17
16
|
|
|
18
17
|
<script>
|
|
19
|
-
import mixins from
|
|
18
|
+
import mixins from '#mixins/inputs'
|
|
20
19
|
|
|
21
20
|
export default {
|
|
22
21
|
inheritAttrs: false, // Allow us to put attributes on the input.
|
|
23
22
|
mixins: [mixins],
|
|
24
|
-
emits: [
|
|
23
|
+
emits: ['update:modelValue'],
|
|
25
24
|
props: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
'modelValue',
|
|
26
|
+
'autocomplete',
|
|
27
|
+
'required',
|
|
28
|
+
'disabled',
|
|
29
|
+
'value',
|
|
30
|
+
'name',
|
|
31
|
+
'type',
|
|
32
|
+
'min',
|
|
33
|
+
'max',
|
|
34
|
+
'id',
|
|
36
35
|
],
|
|
37
|
-
}
|
|
36
|
+
}
|
|
38
37
|
</script>
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
],
|
|
82
82
|
"imports": {
|
|
83
83
|
"#animations/*": [
|
|
84
|
-
"./animations
|
|
84
|
+
"./animations/*.js"
|
|
85
85
|
],
|
|
86
86
|
"#components/*": [
|
|
87
87
|
"./components/*"
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
"./icons/*"
|
|
91
91
|
],
|
|
92
92
|
"#mixins/*": [
|
|
93
|
-
"./mixins
|
|
93
|
+
"./mixins/*.js"
|
|
94
94
|
],
|
|
95
95
|
"#styles/*": [
|
|
96
|
-
"./scss
|
|
96
|
+
"./scss/*.scsss"
|
|
97
97
|
],
|
|
98
|
-
"#
|
|
99
|
-
"./
|
|
98
|
+
"#scripts/*": [
|
|
99
|
+
"./scripts/*.js"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"exports": {
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"style:patterns": "cd patterns && gulp build:css",
|
|
132
132
|
"build:patterns": "cd patterns && rm -rf html && pug views --out html"
|
|
133
133
|
},
|
|
134
|
-
"version": "3.
|
|
134
|
+
"version": "3.10.0"
|
|
135
135
|
}
|
package/scripts/helpers.js
CHANGED