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/dist/classcard-ui.common.js +91 -69
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +91 -69
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CPhoneNumber/CPhoneNumber.vue +14 -4
- package/src/components/CTable/CTable.vue +5 -5
package/package.json
CHANGED
|
@@ -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
|
-
|
|
28
|
-
type:Boolean,
|
|
29
|
-
default:
|
|
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
|
}
|