classcard-ui 0.2.210 → 0.2.211
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/README.md +0 -0
- package/dist/classcard-ui.common.js +200 -232
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -3
- package/dist/classcard-ui.umd.js +200 -232
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +2 -2
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +0 -0
- package/src/components/CAlerts/CAlerts.vue +0 -0
- package/src/components/CAlerts/index.js +0 -0
- package/src/components/CAnchorTabs/CAnchorTabs.vue +0 -0
- package/src/components/CAnchorTabs/index.js +0 -0
- package/src/components/CAnchorTag/CAnchorTag.vue +0 -0
- package/src/components/CAnchorTag/index.js +0 -0
- package/src/components/CAvatar/CAvatar.vue +0 -0
- package/src/components/CAvatar/index.js +0 -0
- package/src/components/CAvatarGroup/CAvatarGroup.vue +0 -0
- package/src/components/CAvatarGroup/index.js +0 -0
- package/src/components/CBasicTable/CBasicTable.vue +0 -0
- package/src/components/CBasicTable/index.js +0 -0
- package/src/components/CBreadcrumbs/CBreadcrumbs.vue +0 -0
- package/src/components/CBreadcrumbs/index.js +0 -0
- package/src/components/CButton/CButton.vue +0 -0
- package/src/components/CButton/index.js +0 -0
- package/src/components/CButtonGroup/CButtonGroup.vue +0 -0
- package/src/components/CButtonGroup/index.js +0 -0
- package/src/components/CButtonIcon/CButtonIcon.vue +0 -0
- package/src/components/CButtonIcon/index.js +0 -0
- package/src/components/CButtonLink/CButtonLink.vue +0 -0
- package/src/components/CButtonLink/index.js +0 -0
- package/src/components/CButtonSelect/CButtonSelect.vue +0 -0
- package/src/components/CButtonSelect/index.js +0 -0
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +0 -0
- package/src/components/CButtonWithDropdown/index.js +0 -0
- package/src/components/CCard/CCard.vue +0 -0
- package/src/components/CCard/index.js +0 -0
- package/src/components/CCheckbox/CCheckbox.vue +0 -0
- package/src/components/CCheckbox/index.js +0 -0
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +0 -0
- package/src/components/CCollapsibleSection/index.js +0 -0
- package/src/components/CColorDots/CColorDots.vue +0 -0
- package/src/components/CColorDots/index.js +0 -0
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +0 -0
- package/src/components/CConfirmActionModal/index.js +0 -0
- package/src/components/CDatepicker/CDatepicker.vue +3 -4
- package/src/components/CDatepicker/index.js +0 -0
- package/src/components/CDualSelect/CDualSelect.vue +0 -0
- package/src/components/CDualSelect/index.js +0 -0
- package/src/components/CEditor/CEditor.vue +0 -0
- package/src/components/CEditor/index.js +0 -0
- package/src/components/CFormSectionHeading/CFormSectionHeading.vue +0 -0
- package/src/components/CFormSectionHeading/index.js +0 -0
- package/src/components/CGroupedSelect/CGroupedSelect.vue +0 -0
- package/src/components/CGroupedSelect/index.js +0 -0
- package/src/components/CIcon/CIcon.vue +1 -1
- package/src/components/CIcon/index.js +0 -0
- package/src/components/CIconDropdown/CIconDropdown.vue +0 -0
- package/src/components/CIconDropdown/index.js +0 -0
- package/src/components/CInput/CInput.vue +0 -1
- package/src/components/CInput/index.js +0 -0
- package/src/components/CInputAddon/CInputAddon.vue +7 -6
- package/src/components/CInputAddon/index.js +0 -0
- package/src/components/CInputEmail/CInputEmail.vue +0 -0
- package/src/components/CInputEmail/index.js +0 -0
- package/src/components/CModalHeading/CModalHeading.vue +0 -0
- package/src/components/CModalHeading/index.js +0 -0
- package/src/components/CModuleHelpLinks/CModuleHelpLinks.vue +0 -0
- package/src/components/CModuleHelpLinks/index.js +0 -0
- package/src/components/CMultiselect/CMultiselect.vue +1 -7
- package/src/components/CMultiselect/index.js +0 -0
- package/src/components/CMultiselectr/CMultiselectr.vue +3 -2
- package/src/components/CMultiselectr/index.js +0 -0
- package/src/components/CPageHeading/CPageHeading.vue +0 -0
- package/src/components/CPageHeading/index.js +0 -0
- package/src/components/CPagination/CPagination.vue +68 -73
- package/src/components/CPagination/index.js +0 -0
- package/src/components/CPhoneNumber/CPhoneNumber.vue +0 -0
- package/src/components/CPhoneNumber/index.js +0 -0
- package/src/components/CRadio/CRadio.vue +1 -9
- package/src/components/CRadio/index.js +0 -0
- package/src/components/CRangeSlider/CRangeSlider.vue +0 -0
- package/src/components/CRangeSlider/index.js +0 -0
- package/src/components/CReorderableStackedList/CReorderableStackedList.vue +0 -0
- package/src/components/CReorderableStackedList/index.js +0 -0
- package/src/components/CSelect/CSelect.vue +0 -0
- package/src/components/CSelect/index.js +0 -0
- package/src/components/CSmallTimeline/CSmallTimeline.vue +0 -0
- package/src/components/CSmallTimeline/index.js +0 -0
- package/src/components/CStackedList/CStackedList.vue +0 -0
- package/src/components/CStackedList/index.js +0 -0
- package/src/components/CStats/CStats.vue +0 -0
- package/src/components/CStats/index.js +0 -0
- package/src/components/CSwitch/CSwitch.vue +14 -15
- package/src/components/CSwitch/index.js +0 -0
- package/src/components/CTable/CTable.vue +58 -71
- package/src/components/CTable/index.js +0 -0
- package/src/components/CTabs/CTabs.vue +1 -1
- package/src/components/CTabs/index.js +0 -0
- package/src/components/CTag/CTag.vue +0 -0
- package/src/components/CTag/index.js +0 -0
- package/src/components/CTextarea/CTextarea.vue +6 -1
- package/src/components/CTextarea/index.js +0 -0
- package/src/components/CTimeline/CTimeline.vue +0 -0
- package/src/components/CTimeline/index.js +0 -0
- package/src/components/CUpload/CUpload.vue +0 -0
- package/src/components/CUpload/index.js +0 -0
- package/src/components/index.js +0 -0
- package/src/icons.js +6 -5
- package/src/main.js +0 -1
- package/src/stories/CAlerts.stories.js +0 -0
- package/src/stories/CAnchorTabs.stories.js +0 -0
- package/src/stories/CAnchorTag.stories.js +0 -0
- package/src/stories/CAvatar.stories.js +0 -0
- package/src/stories/CAvatarGroup.stories.js +0 -0
- package/src/stories/CBasicTable.stories.js +0 -0
- package/src/stories/CBreadcrumbs.stories.js +0 -0
- package/src/stories/CButton.stories.js +0 -0
- package/src/stories/CButtonGroup.stories.js +0 -0
- package/src/stories/CButtonIcon.stories.js +0 -0
- package/src/stories/CButtonLink.stories.js +0 -0
- package/src/stories/CButtonSelect.stories.js +0 -0
- package/src/stories/CButtonWithDropdown.stories.js +0 -0
- package/src/stories/CCard.stories.js +0 -0
- package/src/stories/CCheckbox.stories.js +1 -1
- package/src/stories/CCollapsibleSection.stories.js +0 -0
- package/src/stories/CColorDots.stories.js +0 -0
- package/src/stories/CConfirmActionModal.stories.js +0 -0
- package/src/stories/CDatepicker.stories.js +0 -0
- package/src/stories/CDualSelect.stories.js +0 -0
- package/src/stories/CEditor.stories.js +0 -0
- package/src/stories/CFormSectionHeading.stories.js +0 -0
- package/src/stories/CGroupedSelect.stories.js +0 -0
- package/src/stories/CIcon.stories.js +0 -0
- package/src/stories/CIconDropdown.stories.js +0 -0
- package/src/stories/CInput.stories.js +0 -0
- package/src/stories/CInputAddon.stories.js +0 -0
- package/src/stories/CInputEmail.stories.js +0 -0
- package/src/stories/CModalHeading.stories.js +0 -0
- package/src/stories/CModuleHelpLinks.stories.js +0 -0
- package/src/stories/CMultiselect.stories.js +1 -2
- package/src/stories/CMultiselectr.stories.js +0 -0
- package/src/stories/CPageHeading.stories.js +0 -0
- package/src/stories/CPagination.stories.js +1 -6
- package/src/stories/CPhoneNumber.stories.js +0 -0
- package/src/stories/CRadio.stories.js +0 -1
- package/src/stories/CRangeSlider.stories.js +0 -0
- package/src/stories/CReorderableStackedList.stories.js +0 -0
- package/src/stories/CSelect.stories.js +0 -0
- package/src/stories/CSmallTimeline.stories.js +0 -0
- package/src/stories/CStackedList.stories.js +0 -0
- package/src/stories/CStats.stories.js +0 -0
- package/src/stories/CSwitch.stories.js +0 -1
- package/src/stories/CTable.stories.js +7 -99
- package/src/stories/CTabs.stories.js +0 -0
- package/src/stories/CTag.stories.js +0 -0
- package/src/stories/CTextarea.stories.js +12 -11
- package/src/stories/CTimeline.stories.js +0 -0
- package/src/stories/CUpload.stories.js +0 -0
- package/src/stories/Introduction.stories.mdx +0 -0
- package/src/stories/Page.vue +0 -0
- package/src/stories/assets/code-brackets.svg +0 -0
- package/src/stories/assets/colors.svg +0 -0
- package/src/stories/assets/comments.svg +0 -0
- package/src/stories/assets/direction.svg +0 -0
- package/src/stories/assets/flow.svg +0 -0
- package/src/stories/assets/plugin.svg +0 -0
- package/src/stories/assets/repo.svg +0 -0
- package/src/stories/assets/stackalt.svg +0 -0
- package/src/stories/header.css +0 -0
- package/src/stories/page.css +0 -0
- package/src/stories/utils.css +0 -0
- package/src/assets/tailwind.css +0 -5
|
@@ -1,72 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
4
|
-
<div slot="table-actions" v-if="tableActions" class="bg-gray-50 rounded-lg p-3 mb-4">
|
|
5
|
-
<div class="flex justify-between">
|
|
6
|
-
<div v-if="searching">
|
|
7
|
-
<c-input v-model="searchTerm" :isValidate="searching" :placeholder="searchPlaceholder" class="-mt-1 w-56" type="text"></c-input>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="flex">
|
|
10
|
-
<!-- dropdown icon on top right of table -->
|
|
11
|
-
<div class="relative inline-block text-left">
|
|
12
|
-
<!-- button to show list of columns to show hide in table -->
|
|
13
|
-
<div>
|
|
14
|
-
<button
|
|
15
|
-
@click="toggleDropdown = !toggleDropdown"
|
|
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
|
-
aria-haspopup="true"
|
|
18
|
-
aria-expanded="true"
|
|
19
|
-
@blur="toggleDropdown = false"
|
|
20
|
-
>
|
|
21
|
-
<c-icon name="view-board" type="solid" class="text-gray-400 h-5 w-5"></c-icon>
|
|
22
|
-
<c-icon
|
|
23
|
-
name="chevron-down"
|
|
24
|
-
type="solid"
|
|
25
|
-
class="ml-1 text-gray-400 h-5 w-5"
|
|
26
|
-
></c-icon>
|
|
27
|
-
</button>
|
|
28
|
-
</div>
|
|
29
|
-
<!-- dropdown having list of all columns to show hide -->
|
|
30
|
-
<div
|
|
31
|
-
v-show="toggleDropdown"
|
|
32
|
-
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
|
-
>
|
|
34
|
-
<div
|
|
35
|
-
class="py-1"
|
|
36
|
-
role="menu"
|
|
37
|
-
aria-orientation="vertical"
|
|
38
|
-
aria-labelledby="option-menu"
|
|
39
|
-
>
|
|
40
|
-
<a
|
|
41
|
-
href="#"
|
|
42
|
-
v-for="column in showHideColumnList"
|
|
43
|
-
v-bind:key="column.field"
|
|
44
|
-
class="flex block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
|
45
|
-
role="menuitem"
|
|
46
|
-
>
|
|
47
|
-
<c-checkbox
|
|
48
|
-
:label="column.label"
|
|
49
|
-
@onChange="showHideColumn($event, column.field)"
|
|
50
|
-
:value="!column.hidden"
|
|
51
|
-
></c-checkbox>
|
|
52
|
-
</a>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div>
|
|
58
|
-
<c-button-icon
|
|
59
|
-
type="white"
|
|
60
|
-
:icon="{ name: 'download-solid', type: 'solid', class: 'h-5 w-5 text-gray-400' }"
|
|
61
|
-
class="ml-3"
|
|
62
|
-
></c-button-icon>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
3
|
<vue-good-table
|
|
69
|
-
class="border-solid border-2 border-gray-100 rounded-lg overflow-hidden"
|
|
70
4
|
mode="remote"
|
|
71
5
|
ref="my-table"
|
|
72
6
|
:styleClass="showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'"
|
|
@@ -79,7 +13,6 @@
|
|
|
79
13
|
:rows="rows"
|
|
80
14
|
:search-options="{
|
|
81
15
|
enabled: searching,
|
|
82
|
-
externalQuery: searchTerm,
|
|
83
16
|
placeholder: searchPlaceholder,
|
|
84
17
|
trigger: 'enter',
|
|
85
18
|
}"
|
|
@@ -149,6 +82,63 @@
|
|
|
149
82
|
{{ props.formattedRow[props.column.field] }}
|
|
150
83
|
</span>
|
|
151
84
|
</template>
|
|
85
|
+
<div slot="table-actions" v-if="tableActions">
|
|
86
|
+
<div class="flex flex-row-reverse">
|
|
87
|
+
<!-- dropdown icon on top right of table -->
|
|
88
|
+
<div>
|
|
89
|
+
<c-button-icon
|
|
90
|
+
type="white"
|
|
91
|
+
:icon="{ name: 'download', type: 'outline', class: 'h-5 w-5 text-gray-400' }"
|
|
92
|
+
class="ml-3"
|
|
93
|
+
></c-button-icon>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="relative inline-block text-left">
|
|
96
|
+
<!-- button to show list of columns to show hide in table -->
|
|
97
|
+
<div>
|
|
98
|
+
<button
|
|
99
|
+
@click="toggleDropdown = !toggleDropdown"
|
|
100
|
+
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"
|
|
101
|
+
aria-haspopup="true"
|
|
102
|
+
aria-expanded="true"
|
|
103
|
+
>
|
|
104
|
+
<c-icon name="view-board" type="solid" class="text-gray-400 h-5 w-5"></c-icon>
|
|
105
|
+
<c-icon
|
|
106
|
+
name="chevron-down"
|
|
107
|
+
type="solid"
|
|
108
|
+
class="ml-1 text-gray-400 h-5 w-5"
|
|
109
|
+
></c-icon>
|
|
110
|
+
</button>
|
|
111
|
+
</div>
|
|
112
|
+
<!-- dropdown having list of all columns to show hide -->
|
|
113
|
+
<div
|
|
114
|
+
v-show="toggleDropdown"
|
|
115
|
+
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"
|
|
116
|
+
>
|
|
117
|
+
<div
|
|
118
|
+
class="py-1"
|
|
119
|
+
role="menu"
|
|
120
|
+
aria-orientation="vertical"
|
|
121
|
+
aria-labelledby="option-menu"
|
|
122
|
+
>
|
|
123
|
+
<a
|
|
124
|
+
href="#"
|
|
125
|
+
v-for="column in showHideColumnList"
|
|
126
|
+
v-bind:key="column.field"
|
|
127
|
+
class="flex block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
|
128
|
+
role="menuitem"
|
|
129
|
+
>
|
|
130
|
+
<c-checkbox
|
|
131
|
+
:label="column.label"
|
|
132
|
+
@onChange="showHideColumn($event, column.field)"
|
|
133
|
+
:value="!column.hidden"
|
|
134
|
+
></c-checkbox>
|
|
135
|
+
</a>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<slot name="action"></slot>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
152
142
|
<!-- Custom pagination component -->
|
|
153
143
|
<template v-if="pagination" slot="pagination-bottom">
|
|
154
144
|
<c-pagination
|
|
@@ -157,7 +147,6 @@
|
|
|
157
147
|
@setCurrentPage="setCurrentPageRecords"
|
|
158
148
|
@setPreviousPage="setPreviousPageRecords"
|
|
159
149
|
@setNextPage="setNextPageRecords"
|
|
160
|
-
class="border-t-0"
|
|
161
150
|
></c-pagination>
|
|
162
151
|
</template>
|
|
163
152
|
<!-- Custom loader for table -->
|
|
@@ -196,7 +185,6 @@ import CButtonIcon from "../CButtonIcon/CButtonIcon.vue";
|
|
|
196
185
|
import "vue-good-table/dist/vue-good-table.css";
|
|
197
186
|
import { VueGoodTable } from "vue-good-table";
|
|
198
187
|
import Sortable from "@shopify/draggable/lib/es5/sortable.js";
|
|
199
|
-
import CInput from '../CInput/CInput.vue';
|
|
200
188
|
|
|
201
189
|
export default {
|
|
202
190
|
name: "CTable",
|
|
@@ -206,7 +194,6 @@ export default {
|
|
|
206
194
|
VueGoodTable,
|
|
207
195
|
CPagination,
|
|
208
196
|
CButtonIcon,
|
|
209
|
-
CInput,
|
|
210
197
|
},
|
|
211
198
|
props: {
|
|
212
199
|
// To show or hide pagination section
|
|
@@ -298,7 +285,7 @@ export default {
|
|
|
298
285
|
return {
|
|
299
286
|
toggleDropdown: false,
|
|
300
287
|
showLoader: this.isLoading,
|
|
301
|
-
searchTerm:
|
|
288
|
+
searchTerm: "",
|
|
302
289
|
paginationRecords: this.paginationData,
|
|
303
290
|
reorderedArray: [...this.rows],
|
|
304
291
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
:placeholder="placeholder"
|
|
15
15
|
:rows="rows"
|
|
16
16
|
:class="errorClasses"
|
|
17
|
-
|
|
17
|
+
:disabled="disabled"
|
|
18
|
+
class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50"
|
|
18
19
|
></textarea>
|
|
19
20
|
<div
|
|
20
21
|
v-if="!isValidate"
|
|
@@ -55,6 +56,10 @@ export default {
|
|
|
55
56
|
errorMessage: {
|
|
56
57
|
type: String,
|
|
57
58
|
},
|
|
59
|
+
disabled: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
58
63
|
},
|
|
59
64
|
computed: {
|
|
60
65
|
errorClasses() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/components/index.js
CHANGED
|
File without changes
|
package/src/icons.js
CHANGED
|
@@ -52,7 +52,8 @@ export default {
|
|
|
52
52
|
"M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3",
|
|
53
53
|
"clipboard-check":
|
|
54
54
|
"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
55
|
-
cloud:
|
|
55
|
+
cloud:
|
|
56
|
+
"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z",
|
|
56
57
|
search: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
|
|
57
58
|
"menu-alt-2": "M4 6h16M4 12h16M4 18h7",
|
|
58
59
|
close: "M6 18L18 6M6 6l12 12",
|
|
@@ -99,7 +100,8 @@ export default {
|
|
|
99
100
|
"M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2zM7 8H5v2h2V8zm2 0h2v2H9V8zm6 0h-2v2h2V8z",
|
|
100
101
|
"check-circle-solid":
|
|
101
102
|
"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
102
|
-
"folder-solid":
|
|
103
|
+
"folder-solid":
|
|
104
|
+
"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",
|
|
103
105
|
"shopping-cart-outline":
|
|
104
106
|
"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z",
|
|
105
107
|
"external-link-outline":
|
|
@@ -184,11 +186,10 @@ export default {
|
|
|
184
186
|
"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",
|
|
185
187
|
"x-circle-solid":
|
|
186
188
|
"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",
|
|
187
|
-
"x-circle-outline":
|
|
189
|
+
"x-circle-outline":
|
|
190
|
+
"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
188
191
|
"check-circle-outline": "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
189
192
|
"play-solid":
|
|
190
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",
|
|
191
|
-
"phone-outgoing-solid":
|
|
192
|
-
"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",
|
|
193
194
|
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",
|
|
194
195
|
};
|
package/src/main.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,6 @@ export default {
|
|
|
8
8
|
options: Array,
|
|
9
9
|
label: String,
|
|
10
10
|
filterable: Boolean,
|
|
11
|
-
optionLabel: String,
|
|
12
11
|
},
|
|
13
12
|
};
|
|
14
13
|
|
|
@@ -20,6 +19,7 @@ const Template = (args, { argTypes }) => ({
|
|
|
20
19
|
|
|
21
20
|
export const Default = Template.bind({});
|
|
22
21
|
Default.args = {
|
|
22
|
+
// options: ["list", "of", "options"],
|
|
23
23
|
options: [
|
|
24
24
|
{
|
|
25
25
|
text: "Subjects",
|
|
@@ -90,7 +90,6 @@ Default.args = {
|
|
|
90
90
|
children: [{ id: "15820_Package", text: "Mathematics" }],
|
|
91
91
|
},
|
|
92
92
|
],
|
|
93
|
-
optionLabel: "text",
|
|
94
93
|
label: "Active",
|
|
95
94
|
showOptionImage: true,
|
|
96
95
|
filterable: false,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -22,8 +22,7 @@ export default {
|
|
|
22
22
|
const Template = (args, { argTypes }) => ({
|
|
23
23
|
props: Object.keys(argTypes),
|
|
24
24
|
components: { CTable },
|
|
25
|
-
template:
|
|
26
|
-
'<c-table @hideCols="hideCols" @showCheckbox="showCheckbox" @reordered="handleReorder" v-bind="$props" />',
|
|
25
|
+
template: '<c-table @hideCols="hideCols" @showCheckbox="showCheckbox" @reordered="handleReorder" v-bind="$props" />',
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
export const Default = Template.bind({});
|
|
@@ -36,8 +35,8 @@ Default.args = {
|
|
|
36
35
|
field: "menuOptions",
|
|
37
36
|
hidden: false,
|
|
38
37
|
customizeColumn: true,
|
|
39
|
-
width: "60px"
|
|
40
|
-
}
|
|
38
|
+
width: "60px"
|
|
39
|
+
}
|
|
41
40
|
],
|
|
42
41
|
showHideColumnList: [
|
|
43
42
|
{ label: "", field: "drag", hidden: false },
|
|
@@ -46,100 +45,9 @@ Default.args = {
|
|
|
46
45
|
field: "mode",
|
|
47
46
|
hidden: false,
|
|
48
47
|
sortable: true,
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
rows: [
|
|
52
|
-
{
|
|
53
|
-
id: 5,
|
|
54
|
-
mode: "ATM Machine 1",
|
|
55
|
-
sort_order: 2,
|
|
56
|
-
status: 1,
|
|
57
|
-
rcInstitutionID: 82,
|
|
58
|
-
created_at: "2020-09-02T12:53:09.000000Z",
|
|
59
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: 11,
|
|
63
|
-
mode: "QA 1",
|
|
64
|
-
sort_order: 3,
|
|
65
|
-
status: 1,
|
|
66
|
-
rcInstitutionID: 82,
|
|
67
|
-
created_at: "2020-09-04T09:57:47.000000Z",
|
|
68
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: 7,
|
|
72
|
-
mode: "ATM Machine 2",
|
|
73
|
-
sort_order: 4,
|
|
74
|
-
status: 1,
|
|
75
|
-
rcInstitutionID: 82,
|
|
76
|
-
created_at: "2020-09-04T09:45:47.000000Z",
|
|
77
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: 18,
|
|
81
|
-
mode: "QA 3",
|
|
82
|
-
sort_order: 8,
|
|
83
|
-
status: 1,
|
|
84
|
-
rcInstitutionID: 82,
|
|
85
|
-
created_at: "2020-09-04T10:05:15.000000Z",
|
|
86
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: 12,
|
|
90
|
-
mode: "QA 2",
|
|
91
|
-
sort_order: 21,
|
|
92
|
-
status: 1,
|
|
93
|
-
rcInstitutionID: 82,
|
|
94
|
-
created_at: "2020-09-04T09:57:55.000000Z",
|
|
95
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: 15,
|
|
99
|
-
mode: "QA 4",
|
|
100
|
-
sort_order: 22,
|
|
101
|
-
status: 1,
|
|
102
|
-
rcInstitutionID: 82,
|
|
103
|
-
created_at: "2020-09-04T10:00:23.000000Z",
|
|
104
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: 162,
|
|
108
|
-
mode: "Yes bank",
|
|
109
|
-
sort_order: 62,
|
|
110
|
-
status: 1,
|
|
111
|
-
rcInstitutionID: 82,
|
|
112
|
-
created_at: "2020-11-18T09:22:43.000000Z",
|
|
113
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 163,
|
|
117
|
-
mode: "SBI bank",
|
|
118
|
-
sort_order: 63,
|
|
119
|
-
status: 1,
|
|
120
|
-
rcInstitutionID: 82,
|
|
121
|
-
created_at: "2020-11-18T09:33:17.000000Z",
|
|
122
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 164,
|
|
126
|
-
mode: "BOB bank",
|
|
127
|
-
sort_order: 64,
|
|
128
|
-
status: 1,
|
|
129
|
-
rcInstitutionID: 82,
|
|
130
|
-
created_at: "2020-11-18T09:35:12.000000Z",
|
|
131
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: 165,
|
|
135
|
-
mode: "PNB bank",
|
|
136
|
-
sort_order: 65,
|
|
137
|
-
status: 1,
|
|
138
|
-
rcInstitutionID: 82,
|
|
139
|
-
created_at: "2020-11-18T09:55:16.000000Z",
|
|
140
|
-
updated_at: "2021-11-25T13:13:56.000000Z",
|
|
141
|
-
},
|
|
48
|
+
}
|
|
142
49
|
],
|
|
50
|
+
rows: [{"id":5,"mode":"ATM Machine 1","sort_order":2,"status":1,"rcInstitutionID":82,"created_at":"2020-09-02T12:53:09.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":11,"mode":"QA 1","sort_order":3,"status":1,"rcInstitutionID":82,"created_at":"2020-09-04T09:57:47.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":7,"mode":"ATM Machine 2","sort_order":4,"status":1,"rcInstitutionID":82,"created_at":"2020-09-04T09:45:47.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":18,"mode":"QA 3","sort_order":8,"status":1,"rcInstitutionID":82,"created_at":"2020-09-04T10:05:15.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":12,"mode":"QA 2","sort_order":21,"status":1,"rcInstitutionID":82,"created_at":"2020-09-04T09:57:55.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":15,"mode":"QA 4","sort_order":22,"status":1,"rcInstitutionID":82,"created_at":"2020-09-04T10:00:23.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":162,"mode":"Yes bank","sort_order":62,"status":1,"rcInstitutionID":82,"created_at":"2020-11-18T09:22:43.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":163,"mode":"SBI bank","sort_order":63,"status":1,"rcInstitutionID":82,"created_at":"2020-11-18T09:33:17.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":164,"mode":"BOB bank","sort_order":64,"status":1,"rcInstitutionID":82,"created_at":"2020-11-18T09:35:12.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"},{"id":165,"mode":"PNB bank","sort_order":65,"status":1,"rcInstitutionID":82,"created_at":"2020-11-18T09:55:16.000000Z","updated_at":"2021-11-25T13:13:56.000000Z"}],
|
|
143
51
|
pagination: true,
|
|
144
52
|
sorting: false,
|
|
145
53
|
searching: true,
|
|
@@ -162,8 +70,8 @@ Default.args = {
|
|
|
162
70
|
},
|
|
163
71
|
handleReorder(val) {
|
|
164
72
|
Default.args.rows = val;
|
|
165
|
-
val.forEach((item) => {
|
|
73
|
+
val.forEach((item, index) => {
|
|
166
74
|
console.log(item);
|
|
167
75
|
});
|
|
168
|
-
}
|
|
76
|
+
}
|
|
169
77
|
};
|
|
File without changes
|
|
File without changes
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import CTextarea from
|
|
2
|
-
import
|
|
1
|
+
import CTextarea from "../components/CTextarea/CTextarea.vue";
|
|
2
|
+
import "./utils.css";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title:
|
|
5
|
+
title: "CTextarea",
|
|
6
6
|
component: CTextarea,
|
|
7
7
|
argTypes: {
|
|
8
8
|
label: String,
|
|
9
9
|
placeholder: String,
|
|
10
10
|
rows: String,
|
|
11
11
|
helpText: String,
|
|
12
|
-
hint:String,
|
|
13
|
-
isValidate: Boolean
|
|
12
|
+
hint: String,
|
|
13
|
+
isValidate: Boolean,
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -22,10 +22,11 @@ const Template = (args, { argTypes }) => ({
|
|
|
22
22
|
|
|
23
23
|
export const Default = Template.bind({});
|
|
24
24
|
Default.args = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
label: "Name",
|
|
26
|
+
placeholder: "Enter your name",
|
|
27
|
+
rows: "3",
|
|
28
|
+
helpText: "This information is displayed on booking page",
|
|
29
|
+
hint: "Optional",
|
|
30
|
+
isValidate: true,
|
|
31
|
+
disabled: false,
|
|
31
32
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/stories/Page.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|