classcard-ui 0.2.259 → 0.2.263
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 +75 -64
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +75 -64
- 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 +5 -5
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +1 -1
- package/src/components/CGroupedSelect/CGroupedSelect.vue +8 -0
- package/src/components/CInputAddon/CInputAddon.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "classcard-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.263",
|
|
4
4
|
"main": "dist/classcard-ui.common.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@babel/core": "^7.15.5",
|
|
41
|
-
"@storybook/addon-actions": "^6.4.
|
|
42
|
-
"@storybook/addon-essentials": "^6.4.
|
|
43
|
-
"@storybook/addon-links": "^6.4.
|
|
44
|
-
"@storybook/vue": "^6.4.
|
|
41
|
+
"@storybook/addon-actions": "^6.4.13",
|
|
42
|
+
"@storybook/addon-essentials": "^6.4.13",
|
|
43
|
+
"@storybook/addon-links": "^6.4.13",
|
|
44
|
+
"@storybook/vue": "^6.4.13",
|
|
45
45
|
"@tailwindcss/postcss7-compat": "^2.2.14",
|
|
46
46
|
"@types/lodash-es": "^4.17.5",
|
|
47
47
|
"@vue/cli-plugin-babel": "^4.5.13",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
v-for="item in items"
|
|
36
36
|
v-bind:key="item.items"
|
|
37
37
|
@mousedown="selectOption($event, item.value)"
|
|
38
|
-
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 cursor-pointer"
|
|
38
|
+
class="block px-4 py-2 text-sm text-left text-gray-700 hover:bg-gray-100 hover:text-gray-900 cursor-pointer"
|
|
39
39
|
role="menuitem"
|
|
40
40
|
>
|
|
41
41
|
{{ item.text }}
|
|
@@ -145,6 +145,9 @@
|
|
|
145
145
|
<!-- More items... -->
|
|
146
146
|
</ul>
|
|
147
147
|
</div>
|
|
148
|
+
<p v-if="isError" class="mt-2 text-sm text-red-600">
|
|
149
|
+
{{ errorMessage }}
|
|
150
|
+
</p>
|
|
148
151
|
</div>
|
|
149
152
|
</template>
|
|
150
153
|
|
|
@@ -159,6 +162,11 @@ export default {
|
|
|
159
162
|
value: Object,
|
|
160
163
|
placeholder: String,
|
|
161
164
|
isSearching: Boolean,
|
|
165
|
+
isError: { type: Boolean, default: false },
|
|
166
|
+
errorMessage: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: "This field cannot be empty",
|
|
169
|
+
},
|
|
162
170
|
},
|
|
163
171
|
data() {
|
|
164
172
|
return {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
|
|
129
129
|
</div>
|
|
130
130
|
</div>
|
|
131
|
-
<p v-if="!isValidate" class="mt-2 text-sm text-red-600">
|
|
131
|
+
<p v-if="!isValidate" class="mt-2 text-sm text-red-600 text-left">
|
|
132
132
|
{{ errorMessage }}
|
|
133
133
|
</p>
|
|
134
134
|
<p
|