classcard-ui 0.2.255 → 0.2.259
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 +107 -104
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -1
- package/dist/classcard-ui.umd.js +107 -104
- 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/CDatepicker/CDatepicker.vue +1 -1
- package/src/components/CEditor/CEditor.vue +18 -17
- package/src/components/CInput/CInput.vue +1 -1
- package/src/components/CInputAddon/CInputAddon.vue +4 -4
- package/src/components/CInputEmail/CInputEmail.vue +7 -7
- package/src/components/CMultiselect/CMultiselect.vue +6 -1
- package/src/components/CPhoneNumber/CPhoneNumber.vue +1 -0
- package/src/components/CTextarea/CTextarea.vue +1 -1
- package/src/stories/CEditor.stories.js +1 -0
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
:class="[
|
|
39
39
|
disabled
|
|
40
40
|
? 'border-gray-100 border-l-0 text-gray-400'
|
|
41
|
-
: 'border-gray-300 border-l-0 text-gray-
|
|
41
|
+
: 'border-gray-300 border-l-0 text-gray-900',
|
|
42
42
|
'bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
|
|
43
43
|
]"
|
|
44
44
|
:readonly="disabled"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
<quill-editor
|
|
8
8
|
class="mt-1 text-sm"
|
|
9
|
-
|
|
9
|
+
:value="content"
|
|
10
10
|
:options="editorOption"
|
|
11
11
|
@change="onChange($event)"
|
|
12
12
|
></quill-editor>
|
|
@@ -42,27 +42,25 @@ export default {
|
|
|
42
42
|
onEditorChange: {
|
|
43
43
|
type: Function,
|
|
44
44
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
editorOption: {
|
|
49
|
-
modules: {
|
|
50
|
-
toolbar: {
|
|
51
|
-
container: this.toolbarOptions,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
editorText: this.content,
|
|
56
|
-
};
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
57
48
|
},
|
|
58
49
|
methods: {
|
|
59
50
|
onChange(params) {
|
|
60
51
|
this.$emit("onEditorChange", params);
|
|
61
52
|
},
|
|
62
53
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
computed: {
|
|
55
|
+
editorOption() {
|
|
56
|
+
return {
|
|
57
|
+
modules: {
|
|
58
|
+
toolbar: {
|
|
59
|
+
container: this.toolbarOptions,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
placeholder: this.placeholder,
|
|
63
|
+
};
|
|
66
64
|
},
|
|
67
65
|
},
|
|
68
66
|
};
|
|
@@ -80,6 +78,9 @@ export default {
|
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
.ql-editor {
|
|
83
|
-
@apply text-sm;
|
|
81
|
+
@apply text-sm text-gray-900;
|
|
82
|
+
}
|
|
83
|
+
.ql-editor.ql-blank::before {
|
|
84
|
+
@apply text-gray-500 not-italic;
|
|
84
85
|
}
|
|
85
86
|
</style>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@input="$emit('input', $event.target.value)"
|
|
20
20
|
@blur="$emit('blur', $event.target.value)"
|
|
21
21
|
:class="errorClasses"
|
|
22
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50"
|
|
22
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
|
|
23
23
|
:placeholder="placeholder"
|
|
24
24
|
:disabled="disabled"
|
|
25
25
|
/>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@input="$emit('input', $event.target.value)"
|
|
29
29
|
@blur="$emit('blur', $event.target.value)"
|
|
30
30
|
:class="{ ...errorClasses, 'rounded-l-md': !addon }"
|
|
31
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-r-md sm:text-sm disabled:opacity-50"
|
|
31
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-r-md sm:text-sm disabled:opacity-50 text-gray-900"
|
|
32
32
|
:placeholder="placeholder"
|
|
33
33
|
:disabled="disabled"
|
|
34
34
|
/>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@input="$emit('input', $event.target.value)"
|
|
50
50
|
@blur="$emit('blur', $event.target.value)"
|
|
51
51
|
:class="errorClasses"
|
|
52
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-l-md sm:text-sm disabled:opacity-50"
|
|
52
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-l-md sm:text-sm disabled:opacity-50 text-gray-900"
|
|
53
53
|
:placeholder="placeholder"
|
|
54
54
|
:disabled="disabled"
|
|
55
55
|
/>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
@input="$emit('input', $event.target.value)"
|
|
77
77
|
@blur="$emit('blur', $event.target.value)"
|
|
78
78
|
:class="errorClasses"
|
|
79
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50"
|
|
79
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-full px-3 py-2 rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
|
|
80
80
|
:placeholder="placeholder"
|
|
81
81
|
:disabled="disabled"
|
|
82
82
|
/>
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
@blur="$emit('blur', $event.target.value)"
|
|
118
118
|
:class="errorClasses"
|
|
119
119
|
:style="`padding-left:${leftPaddingStyle}`"
|
|
120
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 block w-full rounded-md sm:text-sm disabled:opacity-50"
|
|
120
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 block w-full rounded-md sm:text-sm disabled:opacity-50 text-gray-900"
|
|
121
121
|
:placeholder="placeholder"
|
|
122
122
|
:disabled="disabled"
|
|
123
123
|
/>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<input
|
|
11
11
|
type="text"
|
|
12
12
|
:class="errorClasses"
|
|
13
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-96 px-3 py-2 rounded-md sm:text-sm"
|
|
13
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 flex-1 block w-96 px-3 py-2 rounded-md sm:text-sm text-gray-900"
|
|
14
14
|
:placeholder="placeholder"
|
|
15
15
|
v-model="email"
|
|
16
16
|
@blur="checkValidation"
|
|
@@ -69,12 +69,12 @@ export default {
|
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
checkValidation() {
|
|
72
|
-
this.isValidate =
|
|
73
|
-
this.email
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
72
|
+
this.isValidate =
|
|
73
|
+
/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(this.email) ||
|
|
74
|
+
this.email == ""
|
|
75
|
+
? false
|
|
76
|
+
: true;
|
|
77
|
+
},
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
</script>
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
@search:focus="$emit('search:focus')"
|
|
19
19
|
:label="optionLabel"
|
|
20
20
|
:clearable="clearable"
|
|
21
|
+
:loading="loading"
|
|
21
22
|
>
|
|
22
23
|
<template #open-indicator="{ attributes }">
|
|
23
24
|
<span v-bind="attributes">
|
|
@@ -161,6 +162,10 @@ export default {
|
|
|
161
162
|
errorMessage: {
|
|
162
163
|
type: String,
|
|
163
164
|
},
|
|
165
|
+
loading: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: false,
|
|
168
|
+
},
|
|
164
169
|
},
|
|
165
170
|
computed: {},
|
|
166
171
|
data() {
|
|
@@ -203,7 +208,7 @@ export default {
|
|
|
203
208
|
@apply rounded-b-md;
|
|
204
209
|
}
|
|
205
210
|
.vs__selected {
|
|
206
|
-
@apply border-none m-0 py-0
|
|
211
|
+
@apply border-none m-0 py-0 pl-0 pr-1.5 mr-1;
|
|
207
212
|
}
|
|
208
213
|
.vs__search,
|
|
209
214
|
.vs__search:focus {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:rows="rows"
|
|
17
17
|
:class="errorClasses"
|
|
18
18
|
:disabled="disabled"
|
|
19
|
-
class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50"
|
|
19
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50 text-gray-900"
|
|
20
20
|
></textarea>
|
|
21
21
|
<div
|
|
22
22
|
v-if="!isValidate"
|