inertia-bootstrap-forms 1.0.104 → 1.0.106
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/{index-CK85SnLT.js → index-CzuJpZl2.js} +1 -1
- package/dist/{index-D4MafNHB.js → index-NKheQ5p3.js} +463 -460
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +2 -2
- package/package.json +1 -1
- package/src/MultiQuantityInput.vue +6 -2
- package/src/PersianDatePickerInput.vue +5 -3
- package/src/Select2Input.vue +1 -1
- package/src/UppyInput.vue +9 -7
package/package.json
CHANGED
|
@@ -87,10 +87,14 @@ export default defineComponent({
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
mounted() {
|
|
90
|
-
window
|
|
90
|
+
if(typeof window !== 'undefined'){
|
|
91
|
+
window.addEventListener('click', this.clickOnOutside);
|
|
92
|
+
}
|
|
91
93
|
},
|
|
92
94
|
beforeUnmount() {
|
|
93
|
-
window
|
|
95
|
+
if(typeof window !== 'undefined'){
|
|
96
|
+
window.removeEventListener('click', this.clickOnOutside);
|
|
97
|
+
}
|
|
94
98
|
},
|
|
95
99
|
data() {
|
|
96
100
|
return {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import {computed, defineAsyncComponent, defineComponent, inject} from "vue";
|
|
3
|
+
const Vue3PersianDatetimePicker = defineAsyncComponent(() =>
|
|
4
|
+
import('vue3-persian-datetime-picker')
|
|
5
|
+
);
|
|
4
6
|
|
|
5
7
|
let _this;
|
|
6
8
|
export default defineComponent({
|
|
@@ -74,7 +76,7 @@ export default defineComponent({
|
|
|
74
76
|
},
|
|
75
77
|
computed: {
|
|
76
78
|
isSsr() {
|
|
77
|
-
return
|
|
79
|
+
return typeof window === 'undefined';
|
|
78
80
|
},
|
|
79
81
|
inputID() {
|
|
80
82
|
return this.form.getID(this)
|
package/src/Select2Input.vue
CHANGED
package/src/UppyInput.vue
CHANGED
|
@@ -226,13 +226,15 @@ function handleError(error) {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
function showError(message) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
inputEl.value
|
|
235
|
-
|
|
229
|
+
if(typeof window !== 'undefined'){
|
|
230
|
+
const errorEl = document?.createElement('div');
|
|
231
|
+
errorEl.textContent = message;
|
|
232
|
+
errorEl.className = 'uppy-error';
|
|
233
|
+
|
|
234
|
+
if (inputEl.value) {
|
|
235
|
+
inputEl.value.prepend(errorEl);
|
|
236
|
+
setTimeout(() => errorEl.remove(), 3000);
|
|
237
|
+
}
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
240
|
|