classcard-ui 0.2.828 → 0.2.830

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.828",
3
+ "version": "0.2.830",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -54,6 +54,17 @@
54
54
  {{ description }}
55
55
  </p>
56
56
  </div>
57
+ <div class="mt-2" v-if="isEnabletextArea">
58
+ <c-textarea
59
+ class="mr-3 flex-grow"
60
+ :value="textValue"
61
+ :isValidate="isTextValid"
62
+ :disabled="false"
63
+ :helpText="textAreaHelperText"
64
+ :errorMessage="errorMessage"
65
+ @input="handleTextAreaInputChange"
66
+ ></c-textarea>
67
+ </div>
57
68
  <div class="mt-5 flex justify-end space-x-2">
58
69
  <c-button
59
70
  v-if="!hideActionOne"
@@ -80,11 +91,12 @@
80
91
 
81
92
  <script>
82
93
  import CButton from "../CButton";
83
-
94
+ import CTextarea from "../CTextarea";
84
95
  export default {
85
96
  name: "CConfirmActionModal",
86
97
  components: {
87
98
  CButton,
99
+ CTextarea,
88
100
  },
89
101
  props: {
90
102
  title: {
@@ -122,6 +134,29 @@ export default {
122
134
  type: Boolean,
123
135
  default: false,
124
136
  },
137
+ //props for ctextarea
138
+ isEnabletextArea: {
139
+ type: Boolean,
140
+ default: false,
141
+ },
142
+ textValue: {
143
+ type: String,
144
+ },
145
+ isTextValid: {
146
+ type: Boolean,
147
+ default: false,
148
+ },
149
+ textAreaHelperText: {
150
+ type: String,
151
+ },
152
+ errorMessage: {
153
+ type: String,
154
+ },
155
+ },
156
+ methods: {
157
+ handleTextAreaInputChange(value) {
158
+ this.$emit("input-value-change", value);
159
+ },
125
160
  },
126
161
  };
127
162
  </script>