glib-web 0.6.2 → 0.6.3

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.
@@ -3,6 +3,7 @@
3
3
  v-model="fieldModel"
4
4
  :name="fieldName"
5
5
  :disabled="spec.readOnly"
6
+ :rules="$validation()"
6
7
  >
7
8
  <div v-for="(item, index) in spec.childViews" :key="index">
8
9
  <ui-component :spec="item" />
@@ -0,0 +1,10 @@
1
+ export default {
2
+ mounted() {
3
+ if (this.spec && this.spec.dataset) {
4
+ const data = this.spec.dataset;
5
+ for (const key in this.spec.dataset) {
6
+ this.$el.dataset[key] = data[key];
7
+ }
8
+ }
9
+ }
10
+ };
package/index.js CHANGED
@@ -78,6 +78,9 @@ Vue.mixin(stylesMixin);
78
78
  import scrollingMixin from "./components/mixins/scrolling.js";
79
79
  Vue.mixin(scrollingMixin);
80
80
 
81
+ import datasetMixins from "./components/mixins/dataset.js";
82
+ Vue.mixin(datasetMixins);
83
+
81
84
  import longClickDirective from "./components/mixins/longClick.js";
82
85
  window.longClickInstance = longClickDirective({ delay: 500, interval: 0 });
83
86
  Vue.directive("longclick", window.longClickInstance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {