classcard-ui 0.2.316 → 0.2.319

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.316",
3
+ "version": "0.2.319",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -10,9 +10,9 @@
10
10
  <input
11
11
  type="text"
12
12
  :class="errorClasses"
13
- class="block flex-1 rounded-md px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
13
+ class="block w-full flex-1 rounded-md px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
14
14
  :placeholder="placeholder"
15
- v-model="email"
15
+ :value="email"
16
16
  @blur="checkValidation"
17
17
  @input="$emit('input', $event.target.value)"
18
18
  />
@@ -47,10 +47,14 @@ export default {
47
47
  helpText: {
48
48
  type: String,
49
49
  },
50
+ // v-model of the field
51
+ value: {
52
+ type: String,
53
+ },
50
54
  },
51
55
  data() {
52
56
  return {
53
- email: "",
57
+ email: this.value,
54
58
  isValidate: false,
55
59
  };
56
60
  },
@@ -71,5 +75,10 @@ export default {
71
75
  : true;
72
76
  },
73
77
  },
78
+ watch: {
79
+ value() {
80
+ this.email = this.value;
81
+ },
82
+ },
74
83
  };
75
84
  </script>
@@ -53,6 +53,10 @@ export default {
53
53
  type: Number,
54
54
  default: null,
55
55
  },
56
+ displayMode: {
57
+ type: String,
58
+ default: "inline",
59
+ },
56
60
  },
57
61
  data() {
58
62
  return {
@@ -63,7 +67,7 @@ export default {
63
67
  initFilestack() {
64
68
  const client = filestack.init(this.filestackApiKey);
65
69
  const options = {
66
- displayMode: "inline",
70
+ displayMode: this.displayMode,
67
71
  container: "#filestack-uploader",
68
72
  uploadInBackground: false,
69
73
  maxFiles: this.maxFiles,