classcard-ui 0.2.658 → 0.2.661

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.658",
3
+ "version": "0.2.661",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -9,6 +9,9 @@
9
9
  <div class="mt-1 w-full shadow-sm">
10
10
  <vue-tel-input v-bind="bindProps" :autoFormat="false" v-model="value"></vue-tel-input>
11
11
  </div>
12
+ <p v-if="!isValidate" class="mt-1 text-sm text-red-600">
13
+ {{ errorMessage }}
14
+ </p>
12
15
  </div>
13
16
  </template>
14
17
  <script>
@@ -24,10 +27,17 @@ export default {
24
27
  type: String,
25
28
  },
26
29
  label: String,
27
- isRequired:{
28
- type:Boolean,
29
- default:false
30
- }
30
+ isValidate: {
31
+ type: Boolean,
32
+ default: true,
33
+ },
34
+ isRequired: {
35
+ type: Boolean,
36
+ default: false,
37
+ },
38
+ errorMessage: {
39
+ type: String,
40
+ },
31
41
  },
32
42
  data() {
33
43
  return {
@@ -5,8 +5,8 @@
5
5
  v-if="tableActions"
6
6
  class="mb-4 rounded-lg bg-gray-50 p-3"
7
7
  >
8
- <div class="flex justify-between">
9
- <div v-if="searching">
8
+ <div class="flex items-center justify-between">
9
+ <div v-if="searching" class="flex-1">
10
10
  <c-input
11
11
  v-model="searchTerm"
12
12
  :isValidate="searching"
@@ -15,7 +15,7 @@
15
15
  type="text"
16
16
  ></c-input>
17
17
  </div>
18
- <div class="flex">
18
+ <div class="flex flex-1 justify-end">
19
19
  <!-- dropdown icon on top right of table -->
20
20
  <slot name="customTableActions"></slot>
21
21
  <div class="relative inline-block text-left" v-if="enableVisibility">
@@ -376,13 +376,13 @@ export default {
376
376
  },
377
377
  methods: {
378
378
  handleControlClick(event) {
379
- if (event.keyCode === 17) {
379
+ if (event.keyCode === 17 || event.keyCode === 91) {
380
380
  event.preventDefault();
381
381
  this.controlClick = true;
382
382
  }
383
383
  },
384
384
  handleControlRelease(event) {
385
- if (event.keyCode === 17) {
385
+ if (event.keyCode === 17 || event.keyCode === 91) {
386
386
  event.preventDefault();
387
387
  this.controlClick = false;
388
388
  }