@tak-ps/vue-tabler 3.7.0 → 3.7.1
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/CHANGELOG.md +6 -0
- package/components/Enum.vue +9 -0
- package/components/Schema.vue +6 -6
- package/components/Toggle.vue +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.7.1
|
|
14
|
+
|
|
15
|
+
- :bug: Include missing components in `Enum` & `Toggle` comps
|
|
16
|
+
- :rocket: `TablerSchema`: Default to empty string for description prop
|
|
17
|
+
- :rocket: `TablerSchema`: Default to false for required prop
|
|
18
|
+
|
|
13
19
|
### v3.7.0
|
|
14
20
|
|
|
15
21
|
- :rocket: Include `description` and `required` to `TablerSchema` and sub components
|
package/components/Enum.vue
CHANGED
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
|
+
import {
|
|
27
|
+
InfoSquareIcon
|
|
28
|
+
} from 'vue-tabler-icons';
|
|
29
|
+
import Help from './Help.vue';
|
|
30
|
+
|
|
26
31
|
export default {
|
|
27
32
|
name: 'TablerEnum',
|
|
28
33
|
props: {
|
|
@@ -69,6 +74,10 @@ export default {
|
|
|
69
74
|
if (this.current === this.modelValue) return;
|
|
70
75
|
this.$emit('update:modelValue', this.current);
|
|
71
76
|
}
|
|
77
|
+
},
|
|
78
|
+
components: {
|
|
79
|
+
InfoSquareIcon,
|
|
80
|
+
Help
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
</script>
|
package/components/Schema.vue
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<TablerEnum
|
|
6
6
|
:label='key'
|
|
7
7
|
:disabled='disabled'
|
|
8
|
-
:required='schema.properties[key].required'
|
|
9
|
-
:description='schema.properties[key].description'
|
|
8
|
+
:required='schema.properties[key].required || false'
|
|
9
|
+
:description='schema.properties[key].description || ""'
|
|
10
10
|
v-model='data[key]'
|
|
11
11
|
:options='schema.properties[key].enum'
|
|
12
12
|
:default='schema.properties[key].default'
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<TablerInput
|
|
17
17
|
:label='key'
|
|
18
18
|
:disabled='disabled'
|
|
19
|
-
:required='schema.properties[key].required'
|
|
20
|
-
:description='schema.properties[key].description'
|
|
19
|
+
:required='schema.properties[key].required || false'
|
|
20
|
+
:description='schema.properties[key].description || ""'
|
|
21
21
|
v-model='data[key]'
|
|
22
22
|
/>
|
|
23
23
|
</template>
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
<TablerToggle
|
|
26
26
|
:label='key'
|
|
27
27
|
:disabled='disabled'
|
|
28
|
-
:required='schema.properties[key].required'
|
|
29
|
-
:description='schema.properties[key].description'
|
|
28
|
+
:required='schema.properties[key].required || false'
|
|
29
|
+
:description='schema.properties[key].description || ""'
|
|
30
30
|
v-model='data[key]'
|
|
31
31
|
/>
|
|
32
32
|
</template>
|
package/components/Toggle.vue
CHANGED
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
|
+
import {
|
|
25
|
+
InfoSquareIcon
|
|
26
|
+
} from 'vue-tabler-icons';
|
|
27
|
+
import Help from './Help.vue';
|
|
28
|
+
|
|
24
29
|
export default {
|
|
25
30
|
name: 'TablerToggle',
|
|
26
31
|
props: {
|
|
@@ -62,5 +67,9 @@ export default {
|
|
|
62
67
|
this.$emit('update:modelValue', this.current);
|
|
63
68
|
}
|
|
64
69
|
},
|
|
70
|
+
components: {
|
|
71
|
+
InfoSquareIcon,
|
|
72
|
+
Help
|
|
73
|
+
}
|
|
65
74
|
}
|
|
66
75
|
</script>
|