classcard-ui 0.2.217 → 0.2.223
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 +84 -75
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +84 -75
- 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/CButton/CButton.vue +2 -0
- package/src/components/CCheckbox/CCheckbox.vue +1 -1
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +5 -0
- package/src/components/CTable/CTable.vue +8 -4
- package/src/icons.js +2 -0
- package/src/stories/CButton.stories.js +1 -0
package/package.json
CHANGED
|
@@ -83,6 +83,8 @@ export default {
|
|
|
83
83
|
this.type == "danger",
|
|
84
84
|
"text-white hover:bg-green-800 bg-green-700 focus:ring-green-600":
|
|
85
85
|
this.type == "success",
|
|
86
|
+
"text-green-800 border border-solid border-gray-300 bg-white hover:bg-gray-50 focus:ring-indigo-600":
|
|
87
|
+
this.type == "secondary-success",
|
|
86
88
|
"text-gray-700 hover:bg-gray-200 bg-gray-100":
|
|
87
89
|
this.type == "secondary-gray",
|
|
88
90
|
"bg-red-100 text-red-800 hover:bg-red-200 focus:ring-red-200":
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
<!-- content to render in collapsible section -->
|
|
37
37
|
<div class="text-sm text-gray-500 mt-5"
|
|
38
|
-
:class="divider || showSection ? 'border-b border-gray-200 pb-
|
|
38
|
+
:class="divider || showSection ? 'border-b border-gray-200 pb-8' : ''"
|
|
39
39
|
v-if="showSection">
|
|
40
40
|
<slot></slot>
|
|
41
41
|
</div>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@input="setSelectedOptions"
|
|
14
14
|
@search="fetchOptions"
|
|
15
15
|
:label="optionLabel"
|
|
16
|
+
:clearable="clearable"
|
|
16
17
|
>
|
|
17
18
|
<template #open-indicator="{ attributes }">
|
|
18
19
|
<span v-bind="attributes">
|
|
@@ -116,6 +117,10 @@ export default {
|
|
|
116
117
|
type: Boolean,
|
|
117
118
|
default: false,
|
|
118
119
|
},
|
|
120
|
+
clearable: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: true,
|
|
123
|
+
},
|
|
119
124
|
},
|
|
120
125
|
computed: {},
|
|
121
126
|
data() {
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
<!-- button to show list of columns to show hide in table -->
|
|
13
13
|
<div>
|
|
14
14
|
<button
|
|
15
|
-
@click="
|
|
15
|
+
@click="handleToggle"
|
|
16
16
|
class="inline-flex justify-center w-full rounded-md border border-gray-200 shadow-sm px-2 py-2 bg-white text-sm font-medium hover:bg-gray-50 focus:outline-none focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600"
|
|
17
17
|
aria-haspopup="true"
|
|
18
18
|
aria-expanded="true"
|
|
19
|
-
@blur="toggleDropdown = false"
|
|
20
19
|
>
|
|
21
20
|
<c-icon name="view-board" type="solid" class="text-gray-400 h-5 w-5"></c-icon>
|
|
22
21
|
<c-icon
|
|
@@ -28,9 +27,11 @@
|
|
|
28
27
|
</div>
|
|
29
28
|
<!-- dropdown having list of all columns to show hide -->
|
|
30
29
|
<div
|
|
31
|
-
v-
|
|
30
|
+
v-if="toggleDropdown"
|
|
32
31
|
class="origin-top-right absolute right-0 mt-2 -mr-1 w-56 rounded-md shadow-lg bg-white ring-1 ring-gray-900 ring-opacity-5 z-100 overflow-y-auto max-h-96"
|
|
33
|
-
|
|
32
|
+
tabindex="0"
|
|
33
|
+
@blur="handleToggle"
|
|
34
|
+
>
|
|
34
35
|
<div
|
|
35
36
|
class="py-1"
|
|
36
37
|
role="menu"
|
|
@@ -303,6 +304,9 @@ export default {
|
|
|
303
304
|
};
|
|
304
305
|
},
|
|
305
306
|
methods: {
|
|
307
|
+
handleToggle() {
|
|
308
|
+
this.toggleDropdown = !this.toggleDropdown;
|
|
309
|
+
},
|
|
306
310
|
showHideColumn(value, name) {
|
|
307
311
|
this.$emit("hideCols", value, name);
|
|
308
312
|
},
|
package/src/icons.js
CHANGED
|
@@ -191,5 +191,7 @@ export default {
|
|
|
191
191
|
"check-circle-outline": "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
192
192
|
"play-solid":
|
|
193
193
|
"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",
|
|
194
|
+
"phone-outgoing-solid":
|
|
195
|
+
"M17.924 2.617a.997.997 0 00-.215-.322l-.004-.004A.997.997 0 0017 2h-4a1 1 0 100 2h1.586l-3.293 3.293a1 1 0 001.414 1.414L16 5.414V7a1 1 0 102 0V3a.997.997 0 00-.076-.383z M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z",
|
|
194
196
|
save: "M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z",
|
|
195
197
|
};
|