classcard-ui 0.2.659 → 0.2.663
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 +106 -82
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +106 -82
- 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/CRadio/CRadio.vue +6 -2
- package/src/components/CTable/CTable.vue +3 -3
- package/src/components/CTextarea/CTextarea.vue +4 -4
- package/src/stories/CRadio.stories.js +2 -2
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 {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div
|
|
5
5
|
v-for="(item, index) in items"
|
|
6
6
|
class="relative pb-4 first:rounded-t-md last:rounded-b-md"
|
|
7
|
-
v-bind:key="item
|
|
7
|
+
v-bind:key="item[labelName]"
|
|
8
8
|
:class="customClasses ? classes(item, index) : ''"
|
|
9
9
|
>
|
|
10
10
|
<div class="flex items-start">
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
: ''
|
|
30
30
|
"
|
|
31
31
|
>
|
|
32
|
-
{{ item
|
|
32
|
+
{{ item[labelName] }}
|
|
33
33
|
</span>
|
|
34
34
|
<span
|
|
35
35
|
class="block text-sm"
|
|
@@ -71,6 +71,10 @@ export default {
|
|
|
71
71
|
type: String,
|
|
72
72
|
required: true,
|
|
73
73
|
},
|
|
74
|
+
labelName:{
|
|
75
|
+
type:String,
|
|
76
|
+
default:'label'
|
|
77
|
+
}
|
|
74
78
|
},
|
|
75
79
|
data() {
|
|
76
80
|
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">
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
:disabled="disabled"
|
|
25
25
|
class="block w-full rounded-md text-gray-900 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 disabled:opacity-50 sm:text-sm"
|
|
26
26
|
></textarea>
|
|
27
|
-
<div
|
|
27
|
+
<!-- <div
|
|
28
28
|
v-if="!isValidate"
|
|
29
29
|
class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-red-600"
|
|
30
30
|
>
|
|
31
31
|
<c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
|
|
32
|
-
</div>
|
|
32
|
+
</div> -->
|
|
33
33
|
</div>
|
|
34
34
|
<p v-if="!isValidate" class="mt-2 text-sm text-red-600">
|
|
35
35
|
{{ errorMessage }}
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
</template>
|
|
42
42
|
<script>
|
|
43
|
-
import CIcon from "../CIcon/CIcon.vue";
|
|
43
|
+
// import CIcon from "../CIcon/CIcon.vue";
|
|
44
44
|
export default {
|
|
45
45
|
name: "CTextarea",
|
|
46
|
-
components: { CIcon },
|
|
46
|
+
// components: { CIcon },
|
|
47
47
|
props: {
|
|
48
48
|
label: {
|
|
49
49
|
type: String,
|
|
@@ -20,12 +20,12 @@ export const Default = Template.bind({});
|
|
|
20
20
|
Default.args = {
|
|
21
21
|
items: [
|
|
22
22
|
{
|
|
23
|
-
|
|
23
|
+
text: "Public access",
|
|
24
24
|
description: "This project would be available to anyone who has the link",
|
|
25
25
|
value: "value1",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
|
|
28
|
+
text: "Private to Project Members",
|
|
29
29
|
description: "Only members of this project would be able to access",
|
|
30
30
|
value: "value2",
|
|
31
31
|
},
|