classcard-ui 0.2.351 → 0.2.354
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 +1 -1
- package/src/components/CButton/CButton.vue +2 -1
- package/src/components/CSwitch/CSwitch.vue +1 -1
- package/src/components/CTable/CTable.vue +13 -2
package/package.json
CHANGED
|
@@ -83,7 +83,8 @@ export default {
|
|
|
83
83
|
this.type == "primary",
|
|
84
84
|
"text-white hover:bg-red-800 bg-red-700 focus:ring-red-600 border border-transparent":
|
|
85
85
|
this.type == "danger",
|
|
86
|
-
"text-white hover:bg-green-800 bg-green-700 focus:ring-green-600
|
|
86
|
+
"text-white hover:bg-green-800 bg-green-700 focus:ring-green-600 border border-transparent":
|
|
87
|
+
this.type == "success",
|
|
87
88
|
"text-green-800 border border-solid border-gray-300 bg-white hover:bg-gray-50 focus:ring-indigo-600":
|
|
88
89
|
this.type == "secondary-success",
|
|
89
90
|
"text-gray-700 hover:bg-gray-200 bg-gray-100": this.type == "secondary-gray",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
type="button"
|
|
63
63
|
aria-pressed="false"
|
|
64
64
|
:class="{ 'bg-indigo-600': isToggle == 1, 'bg-gray-200': isToggle == 0 }"
|
|
65
|
-
@click="switchValue"
|
|
65
|
+
@click.stop="switchValue"
|
|
66
66
|
class="focus:outline-none relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-50"
|
|
67
67
|
:disabled="disabled"
|
|
68
68
|
>
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="flex">
|
|
15
15
|
<!-- dropdown icon on top right of table -->
|
|
16
|
-
<div
|
|
16
|
+
<div
|
|
17
|
+
class="relative inline-block text-left"
|
|
18
|
+
v-if="enableVisibility">
|
|
17
19
|
<!-- button to show list of columns to show hide in table -->
|
|
18
20
|
<div>
|
|
19
21
|
<button
|
|
@@ -60,7 +62,8 @@
|
|
|
60
62
|
</div>
|
|
61
63
|
</div>
|
|
62
64
|
|
|
63
|
-
<div
|
|
65
|
+
<div
|
|
66
|
+
v-if="enableDownload">
|
|
64
67
|
<c-button-icon
|
|
65
68
|
type="white"
|
|
66
69
|
:icon="{
|
|
@@ -234,6 +237,14 @@ export default {
|
|
|
234
237
|
enableSelection: {
|
|
235
238
|
type: Boolean,
|
|
236
239
|
},
|
|
240
|
+
enableVisibility: {
|
|
241
|
+
type: Boolean,
|
|
242
|
+
default: true
|
|
243
|
+
},
|
|
244
|
+
enableDownload: {
|
|
245
|
+
type: Boolean,
|
|
246
|
+
default: true
|
|
247
|
+
},
|
|
237
248
|
// To show and hide loader on table
|
|
238
249
|
isLoading: {
|
|
239
250
|
type: Boolean,
|