classcard-ui 0.2.1069 → 0.2.1070
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 +24 -24
- package/dist/classcard-ui.common.js +56 -53
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +56 -53
- 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 +82 -82
- package/src/App.vue +16 -16
- package/src/components/CAlerts/CAlerts.vue +70 -70
- package/src/components/CAlerts/index.js +2 -2
- package/src/components/CAnchorTabs/CAnchorTabs.vue +96 -96
- package/src/components/CAnchorTabs/index.js +2 -2
- package/src/components/CAnchorTag/CAnchorTag.vue +62 -62
- package/src/components/CAnchorTag/index.js +2 -2
- package/src/components/CAvatar/CAvatar.vue +212 -212
- package/src/components/CAvatar/index.js +2 -2
- package/src/components/CAvatarGroup/CAvatarGroup.vue +145 -145
- package/src/components/CAvatarGroup/index.js +2 -2
- package/src/components/CBasicTable/CBasicTable.vue +184 -184
- package/src/components/CBasicTable/index.js +2 -2
- package/src/components/CBreadcrumbs/CBreadcrumbs.vue +38 -38
- package/src/components/CBreadcrumbs/index.js +2 -2
- package/src/components/CButton/CButton.vue +152 -152
- package/src/components/CButton/index.js +2 -2
- package/src/components/CButtonGroup/CButtonGroup.vue +118 -118
- package/src/components/CButtonGroup/index.js +2 -2
- package/src/components/CButtonIcon/CButtonIcon.vue +117 -117
- package/src/components/CButtonIcon/index.js +2 -2
- package/src/components/CButtonLink/CButtonLink.vue +39 -39
- package/src/components/CButtonLink/index.js +2 -2
- package/src/components/CButtonSelect/CButtonSelect.vue +134 -134
- package/src/components/CButtonSelect/index.js +2 -2
- package/src/components/CButtonSelectBorder/CButtonSelectBorder.vue +135 -135
- package/src/components/CButtonSelectBorder/index.js +3 -3
- package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +135 -135
- package/src/components/CButtonWithDropdown/index.js +2 -2
- package/src/components/CCalendar/CCalendar.vue +410 -410
- package/src/components/CCalendar/index.js +3 -3
- package/src/components/CCard/CCard.vue +49 -49
- package/src/components/CCard/index.js +2 -2
- package/src/components/CCheckbox/CCheckbox.vue +123 -123
- package/src/components/CCheckbox/index.js +2 -2
- package/src/components/CCircularButton/CCircularButton.vue +53 -53
- package/src/components/CCircularButton/index.js +2 -2
- package/src/components/CCollapsibleSection/CCollapsibleSection.vue +101 -101
- package/src/components/CCollapsibleSection/index.js +2 -2
- package/src/components/CColorDots/CColorDots.vue +51 -51
- package/src/components/CColorDots/index.js +3 -3
- package/src/components/CConfirmActionModal/CConfirmActionModal.vue +180 -180
- package/src/components/CConfirmActionModal/index.js +3 -3
- package/src/components/CDatepicker/CDatepicker.vue +201 -201
- package/src/components/CDatepicker/index.js +2 -2
- package/src/components/CDualSelect/CDualSelect.vue +193 -193
- package/src/components/CDualSelect/index.js +2 -2
- package/src/components/CEditor/CEditor.vue +98 -98
- package/src/components/CEditor/index.js +2 -2
- package/src/components/CFormSectionHeading/CFormSectionHeading.vue +53 -53
- package/src/components/CFormSectionHeading/index.js +2 -2
- package/src/components/CGroupedSelect/CGroupedSelect.vue +245 -245
- package/src/components/CGroupedSelect/index.js +3 -3
- package/src/components/CIcon/CIcon.vue +91 -91
- package/src/components/CIcon/index.js +2 -2
- package/src/components/CIconDropdown/CIconDropdown.vue +146 -146
- package/src/components/CIconDropdown/index.js +2 -2
- package/src/components/CInput/CInput.vue +134 -134
- package/src/components/CInput/index.js +2 -2
- package/src/components/CInputAddon/CInputAddon.vue +228 -228
- package/src/components/CInputAddon/index.js +2 -2
- package/src/components/CInputEmail/CInputEmail.vue +93 -93
- package/src/components/CInputEmail/index.js +2 -2
- package/src/components/CInsetTabs/CInsetTabs.vue +88 -88
- package/src/components/CInsetTabs/index.js +3 -3
- package/src/components/CModalHeading/CModalHeading.vue +22 -22
- package/src/components/CModalHeading/index.js +2 -2
- package/src/components/CModuleHelpLinks/CModuleHelpLinks.vue +70 -70
- package/src/components/CModuleHelpLinks/index.js +3 -3
- package/src/components/CMultiselect/CMultiselect.vue +615 -615
- package/src/components/CMultiselect/index.js +2 -2
- package/src/components/CMultiselectr/CMultiselectr.vue +44 -44
- package/src/components/CMultiselectr/index.js +2 -2
- package/src/components/CPageHeading/CPageHeading.vue +56 -56
- package/src/components/CPageHeading/index.js +2 -2
- package/src/components/CPagination/CPagination.vue +233 -233
- package/src/components/CPagination/index.js +2 -2
- package/src/components/CPhoneNumber/CPhoneNumber.vue +114 -114
- package/src/components/CPhoneNumber/index.js +2 -2
- package/src/components/CProgress/CProgress.vue +57 -57
- package/src/components/CProgress/index.js +2 -2
- package/src/components/CRadio/CRadio.vue +126 -126
- package/src/components/CRadio/index.js +2 -2
- package/src/components/CRangeSlider/CRangeSlider.vue +55 -55
- package/src/components/CRangeSlider/index.js +2 -2
- package/src/components/CReorderableStackedList/CReorderableStackedList.vue +94 -94
- package/src/components/CReorderableStackedList/index.js +2 -2
- package/src/components/CSelect/CSelect.vue +539 -539
- package/src/components/CSelect/index.js +2 -2
- package/src/components/CSmallTimeline/CSmallTimeline.vue +40 -40
- package/src/components/CSmallTimeline/index.js +2 -2
- package/src/components/CStackedList/CStackedList.vue +150 -150
- package/src/components/CStackedList/index.js +2 -2
- package/src/components/CStats/CStats.vue +116 -116
- package/src/components/CStats/index.js +2 -2
- package/src/components/CSwitch/CSwitch.vue +176 -176
- package/src/components/CSwitch/index.js +2 -2
- package/src/components/CTabLazy/CTabLazy.vue +63 -63
- package/src/components/CTabLazy/index.js +2 -2
- package/src/components/CTable/CTable.vue +671 -671
- package/src/components/CTable/index.js +2 -2
- package/src/components/CTabs/CTabs.vue +169 -169
- package/src/components/CTabs/index.js +2 -2
- package/src/components/CTag/CTag.vue +59 -59
- package/src/components/CTag/index.js +2 -2
- package/src/components/CTextarea/CTextarea.vue +107 -107
- package/src/components/CTextarea/index.js +2 -2
- package/src/components/CTimeline/CTimeline.vue +237 -237
- package/src/components/CTimeline/index.js +2 -2
- package/src/components/CUpload/CUpload.vue +267 -267
- package/src/components/CUpload/index.js +2 -2
- package/src/components/index.js +53 -53
- package/src/icons.js +459 -453
- package/src/main.js +22 -22
- package/src/stories/CAlerts.stories.js +37 -37
- package/src/stories/CAnchorTabs.stories.js +29 -29
- package/src/stories/CAnchorTag.stories.js +36 -36
- package/src/stories/CAvatar.stories.js +38 -38
- package/src/stories/CAvatarGroup.stories.js +100 -100
- package/src/stories/CBasicTable.stories.js +316 -316
- package/src/stories/CBreadcrumbs.stories.js +24 -24
- package/src/stories/CButton.stories.js +47 -47
- package/src/stories/CButtonGroup.stories.js +33 -33
- package/src/stories/CButtonIcon.stories.js +27 -27
- package/src/stories/CButtonLink.stories.js +24 -24
- package/src/stories/CButtonSelect.stories.js +41 -41
- package/src/stories/CButtonSelectBorder.stories.js +48 -48
- package/src/stories/CButtonWithDropdown.stories.js +41 -41
- package/src/stories/CCalendar.stories.js +16 -16
- package/src/stories/CCard.stories.js +30 -30
- package/src/stories/CCheckbox.stories.js +29 -29
- package/src/stories/CCircularButton.stories.js +29 -29
- package/src/stories/CCollapsibleSection.stories.js +28 -28
- package/src/stories/CColorDots.stories.js +28 -28
- package/src/stories/CConfirmActionModal.stories.js +59 -59
- package/src/stories/CDatepicker.stories.js +30 -30
- package/src/stories/CDualSelect.stories.js +29 -29
- package/src/stories/CEditor.stories.js +30 -30
- package/src/stories/CFormSectionHeading.stories.js +34 -34
- package/src/stories/CGroupedSelect.stories.js +71 -71
- package/src/stories/CIcon.stories.js +28 -28
- package/src/stories/CIconDropdown.stories.js +45 -45
- package/src/stories/CInput.stories.js +36 -36
- package/src/stories/CInputAddon.stories.js +37 -37
- package/src/stories/CInputEmail.stories.js +27 -27
- package/src/stories/CInsetTabs.stories.js +38 -38
- package/src/stories/CModalHeading.stories.js +25 -25
- package/src/stories/CModuleHelpLinks.stories.js +25 -25
- package/src/stories/CMultiselect.stories.js +167 -167
- package/src/stories/CMultiselectr.stories.js +23 -23
- package/src/stories/CPageHeading.stories.js +32 -32
- package/src/stories/CPagination.stories.js +30 -30
- package/src/stories/CPhoneNumber.stories.js +29 -29
- package/src/stories/CProgress.stories.js +23 -23
- package/src/stories/CRadio.stories.js +36 -36
- package/src/stories/CRangeSlider.stories.js +23 -23
- package/src/stories/CReorderableStackedList.stories.js +23 -23
- package/src/stories/CSelect.stories.js +109 -109
- package/src/stories/CSmallTimeline.stories.js +26 -26
- package/src/stories/CStackedList.stories.js +37 -37
- package/src/stories/CStats.stories.js +33 -33
- package/src/stories/CSwitch.stories.js +28 -28
- package/src/stories/CTabLazy.stories.js +26 -26
- package/src/stories/CTable.stories.js +169 -169
- package/src/stories/CTabs.stories.js +36 -36
- package/src/stories/CTag.stories.js +34 -34
- package/src/stories/CTextarea.stories.js +32 -32
- package/src/stories/CTimeline.stories.js +26 -26
- package/src/stories/CUpload.stories.js +36 -36
- package/src/stories/Introduction.stories.mdx +207 -207
- package/src/stories/Page.vue +88 -88
- 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 +26 -26
- package/src/stories/page.css +69 -69
- package/src/stories/utils.css +17 -17
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<focus-trap :active="true" :escapeDeactivates="false">
|
|
3
|
-
<div
|
|
4
|
-
v-scroll-lock="true"
|
|
5
|
-
id="confirmModal"
|
|
6
|
-
class="fixed inset-0 z-100 overflow-y-auto"
|
|
7
|
-
>
|
|
8
|
-
<div
|
|
9
|
-
class="flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0"
|
|
10
|
-
@click="shouldBlur ? $emit('close') : null"
|
|
11
|
-
>
|
|
12
|
-
<transition
|
|
13
|
-
enter-active-class="ease-out duration-300"
|
|
14
|
-
enter-class="opacity-0"
|
|
15
|
-
enter-to-class="opacity-100"
|
|
16
|
-
leave-active-class="ease-in duration-200"
|
|
17
|
-
leave-class="opacity-100"
|
|
18
|
-
leave-to-class="opacity-0"
|
|
19
|
-
>
|
|
20
|
-
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
|
21
|
-
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
|
22
|
-
</div>
|
|
23
|
-
</transition>
|
|
24
|
-
|
|
25
|
-
<!-- This element is to trick the browser into centering the modal contents. -->
|
|
26
|
-
<span
|
|
27
|
-
class="hidden align-middle sm:inline-block sm:h-screen"
|
|
28
|
-
aria-hidden="true"
|
|
29
|
-
>​</span
|
|
30
|
-
>
|
|
31
|
-
<transition
|
|
32
|
-
enter-active-class="ease-out duration-300"
|
|
33
|
-
enter-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
34
|
-
enter-to-class="opacity-100 translate-y-0 sm:scale-100"
|
|
35
|
-
leave-active-class="ease-in duration-200"
|
|
36
|
-
leave-class="opacity-100 translate-y-0 sm:scale-100"
|
|
37
|
-
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
38
|
-
>
|
|
39
|
-
<div
|
|
40
|
-
class="inline-block w-full transform overflow-y-visible rounded-lg bg-white text-left align-middle shadow-xl transition-all sm:my-8 sm:max-w-sm md:max-w-2xl"
|
|
41
|
-
role="dialog"
|
|
42
|
-
aria-modal="true"
|
|
43
|
-
aria-labelledby="modal-headline"
|
|
44
|
-
@click.stop
|
|
45
|
-
>
|
|
46
|
-
<div class="rounded-lg bg-white shadow">
|
|
47
|
-
<div class="px-4 py-5 sm:p-6">
|
|
48
|
-
<h3 class="text-lg font-medium leading-6 text-gray-900">
|
|
49
|
-
{{ title }}
|
|
50
|
-
<span v-if="isRequired" class="text-red-600">*</span>
|
|
51
|
-
</h3>
|
|
52
|
-
<div class="mt-2 max-w-xl text-sm text-gray-500">
|
|
53
|
-
<p>{{ message }}</p>
|
|
54
|
-
<p v-if="description" class="mt-1 text-gray-500">
|
|
55
|
-
{{ description }}
|
|
56
|
-
</p>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="mt-2" v-if="isEnabletextArea">
|
|
59
|
-
<c-textarea
|
|
60
|
-
class="mr-3 flex-grow"
|
|
61
|
-
:value="textValue"
|
|
62
|
-
:isValidate="isTextValid"
|
|
63
|
-
:disabled="false"
|
|
64
|
-
:helpText="textAreaHelperText"
|
|
65
|
-
:errorMessage="errorMessage"
|
|
66
|
-
@input="handleTextAreaInputChange"
|
|
67
|
-
></c-textarea>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="mt-5 flex justify-end space-x-2">
|
|
70
|
-
<c-button
|
|
71
|
-
v-if="!hideActionOne"
|
|
72
|
-
@action="$emit('action-one')"
|
|
73
|
-
:type="actionOneType"
|
|
74
|
-
:label="actionOneLabel"
|
|
75
|
-
></c-button>
|
|
76
|
-
<c-button
|
|
77
|
-
@action="$emit('action-two')"
|
|
78
|
-
:type="actionTwoType"
|
|
79
|
-
:label="actionTwoLabel"
|
|
80
|
-
:isLoading="loadButton"
|
|
81
|
-
:disabled="loadButton"
|
|
82
|
-
></c-button>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</transition>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</focus-trap>
|
|
91
|
-
</template>
|
|
92
|
-
|
|
93
|
-
<script>
|
|
94
|
-
import CButton from "../CButton";
|
|
95
|
-
import CTextarea from "../CTextarea";
|
|
96
|
-
export default {
|
|
97
|
-
name: "CConfirmActionModal",
|
|
98
|
-
components: {
|
|
99
|
-
CButton,
|
|
100
|
-
CTextarea,
|
|
101
|
-
},
|
|
102
|
-
props: {
|
|
103
|
-
title: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: "Are you sure?",
|
|
106
|
-
},
|
|
107
|
-
message: {
|
|
108
|
-
type: String,
|
|
109
|
-
default: "",
|
|
110
|
-
},
|
|
111
|
-
description: {
|
|
112
|
-
type: String,
|
|
113
|
-
},
|
|
114
|
-
actionOneLabel: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: "Cancel",
|
|
117
|
-
},
|
|
118
|
-
actionTwoLabel: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: "Ok",
|
|
121
|
-
},
|
|
122
|
-
actionOneType: {
|
|
123
|
-
type: String,
|
|
124
|
-
default: "secondary-gray",
|
|
125
|
-
},
|
|
126
|
-
actionTwoType: {
|
|
127
|
-
type: String,
|
|
128
|
-
default: "secondary-gray",
|
|
129
|
-
},
|
|
130
|
-
loadButton: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: false,
|
|
133
|
-
},
|
|
134
|
-
hideActionOne: {
|
|
135
|
-
type: Boolean,
|
|
136
|
-
default: false,
|
|
137
|
-
},
|
|
138
|
-
isRequired: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: false,
|
|
141
|
-
},
|
|
142
|
-
//props for ctextarea
|
|
143
|
-
isEnabletextArea: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
default: false,
|
|
146
|
-
},
|
|
147
|
-
textValue: {
|
|
148
|
-
type: String,
|
|
149
|
-
},
|
|
150
|
-
isTextValid: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: false,
|
|
153
|
-
},
|
|
154
|
-
textAreaHelperText: {
|
|
155
|
-
type: String,
|
|
156
|
-
},
|
|
157
|
-
errorMessage: {
|
|
158
|
-
type: String,
|
|
159
|
-
},
|
|
160
|
-
shouldBlur: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
default: false,
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
methods: {
|
|
166
|
-
handleTextAreaInputChange(value) {
|
|
167
|
-
this.$emit("input-value-change", value);
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
</script>
|
|
172
|
-
|
|
173
|
-
<style>
|
|
174
|
-
.form-content {
|
|
175
|
-
max-height: calc(100vh - 200px);
|
|
176
|
-
}
|
|
177
|
-
/* #confirmModal {
|
|
178
|
-
-webkit-transform: translate3d(0, 0, 0);
|
|
179
|
-
} */
|
|
180
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<focus-trap :active="true" :escapeDeactivates="false">
|
|
3
|
+
<div
|
|
4
|
+
v-scroll-lock="true"
|
|
5
|
+
id="confirmModal"
|
|
6
|
+
class="fixed inset-0 z-100 overflow-y-auto"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0"
|
|
10
|
+
@click="shouldBlur ? $emit('close') : null"
|
|
11
|
+
>
|
|
12
|
+
<transition
|
|
13
|
+
enter-active-class="ease-out duration-300"
|
|
14
|
+
enter-class="opacity-0"
|
|
15
|
+
enter-to-class="opacity-100"
|
|
16
|
+
leave-active-class="ease-in duration-200"
|
|
17
|
+
leave-class="opacity-100"
|
|
18
|
+
leave-to-class="opacity-0"
|
|
19
|
+
>
|
|
20
|
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
|
21
|
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
|
22
|
+
</div>
|
|
23
|
+
</transition>
|
|
24
|
+
|
|
25
|
+
<!-- This element is to trick the browser into centering the modal contents. -->
|
|
26
|
+
<span
|
|
27
|
+
class="hidden align-middle sm:inline-block sm:h-screen"
|
|
28
|
+
aria-hidden="true"
|
|
29
|
+
>​</span
|
|
30
|
+
>
|
|
31
|
+
<transition
|
|
32
|
+
enter-active-class="ease-out duration-300"
|
|
33
|
+
enter-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
34
|
+
enter-to-class="opacity-100 translate-y-0 sm:scale-100"
|
|
35
|
+
leave-active-class="ease-in duration-200"
|
|
36
|
+
leave-class="opacity-100 translate-y-0 sm:scale-100"
|
|
37
|
+
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
38
|
+
>
|
|
39
|
+
<div
|
|
40
|
+
class="inline-block w-full transform overflow-y-visible rounded-lg bg-white text-left align-middle shadow-xl transition-all sm:my-8 sm:max-w-sm md:max-w-2xl"
|
|
41
|
+
role="dialog"
|
|
42
|
+
aria-modal="true"
|
|
43
|
+
aria-labelledby="modal-headline"
|
|
44
|
+
@click.stop
|
|
45
|
+
>
|
|
46
|
+
<div class="rounded-lg bg-white shadow">
|
|
47
|
+
<div class="px-4 py-5 sm:p-6">
|
|
48
|
+
<h3 class="text-lg font-medium leading-6 text-gray-900">
|
|
49
|
+
{{ title }}
|
|
50
|
+
<span v-if="isRequired" class="text-red-600">*</span>
|
|
51
|
+
</h3>
|
|
52
|
+
<div class="mt-2 max-w-xl text-sm text-gray-500">
|
|
53
|
+
<p>{{ message }}</p>
|
|
54
|
+
<p v-if="description" class="mt-1 text-gray-500">
|
|
55
|
+
{{ description }}
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="mt-2" v-if="isEnabletextArea">
|
|
59
|
+
<c-textarea
|
|
60
|
+
class="mr-3 flex-grow"
|
|
61
|
+
:value="textValue"
|
|
62
|
+
:isValidate="isTextValid"
|
|
63
|
+
:disabled="false"
|
|
64
|
+
:helpText="textAreaHelperText"
|
|
65
|
+
:errorMessage="errorMessage"
|
|
66
|
+
@input="handleTextAreaInputChange"
|
|
67
|
+
></c-textarea>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="mt-5 flex justify-end space-x-2">
|
|
70
|
+
<c-button
|
|
71
|
+
v-if="!hideActionOne"
|
|
72
|
+
@action="$emit('action-one')"
|
|
73
|
+
:type="actionOneType"
|
|
74
|
+
:label="actionOneLabel"
|
|
75
|
+
></c-button>
|
|
76
|
+
<c-button
|
|
77
|
+
@action="$emit('action-two')"
|
|
78
|
+
:type="actionTwoType"
|
|
79
|
+
:label="actionTwoLabel"
|
|
80
|
+
:isLoading="loadButton"
|
|
81
|
+
:disabled="loadButton"
|
|
82
|
+
></c-button>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</transition>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</focus-trap>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<script>
|
|
94
|
+
import CButton from "../CButton";
|
|
95
|
+
import CTextarea from "../CTextarea";
|
|
96
|
+
export default {
|
|
97
|
+
name: "CConfirmActionModal",
|
|
98
|
+
components: {
|
|
99
|
+
CButton,
|
|
100
|
+
CTextarea,
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
title: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "Are you sure?",
|
|
106
|
+
},
|
|
107
|
+
message: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "",
|
|
110
|
+
},
|
|
111
|
+
description: {
|
|
112
|
+
type: String,
|
|
113
|
+
},
|
|
114
|
+
actionOneLabel: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "Cancel",
|
|
117
|
+
},
|
|
118
|
+
actionTwoLabel: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "Ok",
|
|
121
|
+
},
|
|
122
|
+
actionOneType: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: "secondary-gray",
|
|
125
|
+
},
|
|
126
|
+
actionTwoType: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: "secondary-gray",
|
|
129
|
+
},
|
|
130
|
+
loadButton: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false,
|
|
133
|
+
},
|
|
134
|
+
hideActionOne: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
138
|
+
isRequired: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false,
|
|
141
|
+
},
|
|
142
|
+
//props for ctextarea
|
|
143
|
+
isEnabletextArea: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: false,
|
|
146
|
+
},
|
|
147
|
+
textValue: {
|
|
148
|
+
type: String,
|
|
149
|
+
},
|
|
150
|
+
isTextValid: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false,
|
|
153
|
+
},
|
|
154
|
+
textAreaHelperText: {
|
|
155
|
+
type: String,
|
|
156
|
+
},
|
|
157
|
+
errorMessage: {
|
|
158
|
+
type: String,
|
|
159
|
+
},
|
|
160
|
+
shouldBlur: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: false,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
methods: {
|
|
166
|
+
handleTextAreaInputChange(value) {
|
|
167
|
+
this.$emit("input-value-change", value);
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<style>
|
|
174
|
+
.form-content {
|
|
175
|
+
max-height: calc(100vh - 200px);
|
|
176
|
+
}
|
|
177
|
+
/* #confirmModal {
|
|
178
|
+
-webkit-transform: translate3d(0, 0, 0);
|
|
179
|
+
} */
|
|
180
|
+
</style>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import CConfirmActionModal from "./CConfirmActionModal.vue";
|
|
2
|
-
|
|
3
|
-
export default CConfirmActionModal;
|
|
1
|
+
import CConfirmActionModal from "./CConfirmActionModal.vue";
|
|
2
|
+
|
|
3
|
+
export default CConfirmActionModal;
|