inertia-bootstrap-forms 1.0.73 → 1.0.75
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-Dng0BtGd.js → index-Dfg9Yk-z.js} +1165 -1180
- package/dist/{index-AepvCbxj.js → index-DpghCC9Y.js} +1 -1
- package/dist/inertia-bootstrap-forms.es.js +12 -13
- package/dist/inertia-bootstrap-forms.umd.js +5 -5
- package/dist/style.css +1 -1
- package/index.d.ts +3 -8
- package/package.json +1 -1
- package/src/EditorInput.vue +4 -0
- package/src/Select2Input.vue +13 -1
- package/src/SubmitButton.vue +1 -2
- package/src/index.js +0 -2
- package/src/SecondarySubmitButton.vue +0 -23
package/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ import MultiQuantityInput from './src/MultiQuantityInput.vue';
|
|
|
20
20
|
import PasswordInput from './src/PasswordInput.vue';
|
|
21
21
|
import PersianDatePickerInput from './src/PersianDatePickerInput.vue';
|
|
22
22
|
import QuantityInput from './src/QuantityInput.vue';
|
|
23
|
-
import SecondarySubmitButton from './src/SecondarySubmitButton.vue';
|
|
24
23
|
import Select2Input from './src/Select2Input.vue';
|
|
25
24
|
import StarRatingInput from './src/StarRatingInput.vue';
|
|
26
25
|
import SubmitButton from './src/SubmitButton.vue';
|
|
@@ -53,7 +52,6 @@ export {
|
|
|
53
52
|
PasswordInput,
|
|
54
53
|
PersianDatePickerInput,
|
|
55
54
|
QuantityInput,
|
|
56
|
-
SecondarySubmitButton,
|
|
57
55
|
Select2Input,
|
|
58
56
|
StarRatingInput,
|
|
59
57
|
SubmitButton,
|
|
@@ -87,7 +85,6 @@ const Vue3FormComponents = {
|
|
|
87
85
|
PasswordInput,
|
|
88
86
|
PersianDatePickerInput,
|
|
89
87
|
QuantityInput,
|
|
90
|
-
SecondarySubmitButton,
|
|
91
88
|
Select2Input,
|
|
92
89
|
StarRatingInput,
|
|
93
90
|
SubmitButton,
|
|
@@ -223,15 +220,14 @@ export const MultiQuantityInput: DefineComponent<{}, {}, any>;
|
|
|
223
220
|
export const PasswordInput: DefineComponent<{}, {}, any>;
|
|
224
221
|
export const PersianDatePickerInput: DefineComponent<{}, {}, any>;
|
|
225
222
|
export const QuantityInput: DefineComponent<{}, {}, any>;
|
|
226
|
-
export const
|
|
223
|
+
export const Select2Input: DefineComponent<{}, {}, any>;
|
|
224
|
+
export const StarRatingInput: DefineComponent<{}, {}, any>;
|
|
225
|
+
export const SubmitButton: DefineComponent<{
|
|
227
226
|
disabled: {
|
|
228
227
|
type: Boolean,
|
|
229
228
|
default: false
|
|
230
229
|
}
|
|
231
230
|
}, {}, any>;
|
|
232
|
-
export const Select2Input: DefineComponent<{}, {}, any>;
|
|
233
|
-
export const StarRatingInput: DefineComponent<{}, {}, any>;
|
|
234
|
-
export const SubmitButton: DefineComponent<{}, {}, any>;
|
|
235
231
|
export const TelInput: DefineComponent<{}, {}, any>;
|
|
236
232
|
export const TextAreaInput: DefineComponent<{}, {}, any>;
|
|
237
233
|
export const TextInput: DefineComponent<{}, {}, any>;
|
|
@@ -296,7 +292,6 @@ declare const Vue3FormComponents: {
|
|
|
296
292
|
PasswordInput: typeof PasswordInput;
|
|
297
293
|
PersianDatePickerInput: typeof PersianDatePickerInput;
|
|
298
294
|
QuantityInput: typeof QuantityInput;
|
|
299
|
-
SecondarySubmitButton: typeof SecondarySubmitButton;
|
|
300
295
|
Select2Input: typeof Select2Input;
|
|
301
296
|
StarRatingInput: typeof StarRatingInput;
|
|
302
297
|
SubmitButton: typeof SubmitButton;
|
package/package.json
CHANGED
package/src/EditorInput.vue
CHANGED
package/src/Select2Input.vue
CHANGED
|
@@ -88,8 +88,20 @@ export default defineComponent({
|
|
|
88
88
|
return (typeof this.modelValue == 'object') ? Object.values(this.modelValue) : (this.modelValue ? [this.modelValue] : null)
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
+
watch: {
|
|
92
|
+
'options': {
|
|
93
|
+
handler: function (val, old) {
|
|
94
|
+
setTimeout(() => this.init(), 300);
|
|
95
|
+
},
|
|
96
|
+
deep: true
|
|
97
|
+
}
|
|
98
|
+
},
|
|
91
99
|
methods: {
|
|
92
100
|
init() {
|
|
101
|
+
if (this.choices) {
|
|
102
|
+
this.destroy();
|
|
103
|
+
}
|
|
104
|
+
|
|
93
105
|
this.choices = new Choices(this.$refs.input, {
|
|
94
106
|
searchEnabled: (this.searchEnabled || !!this.search?.url),
|
|
95
107
|
searchChoices: (this.searchEnabled && !this.search?.url),
|
|
@@ -126,7 +138,7 @@ export default defineComponent({
|
|
|
126
138
|
);
|
|
127
139
|
},
|
|
128
140
|
async doSearch(searchTerm) {
|
|
129
|
-
if(!this.search?.url) return;
|
|
141
|
+
if (!this.search?.url) return;
|
|
130
142
|
|
|
131
143
|
await this.setLoading();
|
|
132
144
|
|
package/src/SubmitButton.vue
CHANGED
|
@@ -18,8 +18,7 @@ export default defineComponent({
|
|
|
18
18
|
<template>
|
|
19
19
|
<button
|
|
20
20
|
type="submit"
|
|
21
|
-
:disabled="(disabled || form?.processing || form?.uploading)"
|
|
22
|
-
class="btn btn-primary px-3 px-sm-4">
|
|
21
|
+
:disabled="(disabled || form?.processing || form?.uploading)">
|
|
23
22
|
<Spinner v-if="form?.processing || form?.uploading"/>
|
|
24
23
|
<slot :form="form">
|
|
25
24
|
تایید و ثبت اطلاعات
|
package/src/index.js
CHANGED
|
@@ -15,7 +15,6 @@ import MobileInput from "./MobileInput.vue";
|
|
|
15
15
|
import PasswordInput from "./PasswordInput.vue";
|
|
16
16
|
import QuantityInput from "./QuantityInput.vue";
|
|
17
17
|
import MultiQuantityInput from "./MultiQuantityInput.vue";
|
|
18
|
-
import SecondarySubmitButton from "./SecondarySubmitButton.vue";
|
|
19
18
|
import Select2Input from "./Select2Input.vue";
|
|
20
19
|
import StarRatingInput from "./StarRatingInput.vue";
|
|
21
20
|
import SubmitButton from "./SubmitButton.vue";
|
|
@@ -49,7 +48,6 @@ export {
|
|
|
49
48
|
QuantityInput,
|
|
50
49
|
MultiQuantityInput,
|
|
51
50
|
SubmitButton,
|
|
52
|
-
SecondarySubmitButton,
|
|
53
51
|
StarRatingInput,
|
|
54
52
|
Select2Input,
|
|
55
53
|
FormLabel,
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import {Spinner} from "vue3-bootstrap-components";
|
|
3
|
-
import {defineComponent} from "vue";
|
|
4
|
-
|
|
5
|
-
export default defineComponent({
|
|
6
|
-
components: {
|
|
7
|
-
Spinner
|
|
8
|
-
},
|
|
9
|
-
inject: ['form'],
|
|
10
|
-
props: {},
|
|
11
|
-
})
|
|
12
|
-
</script>
|
|
13
|
-
<template>
|
|
14
|
-
<button
|
|
15
|
-
type="submit"
|
|
16
|
-
:disabled="form?.processing"
|
|
17
|
-
class="btn btn-secondary px-3 px-sm-4">
|
|
18
|
-
<Spinner v-if="form?.processing"/>
|
|
19
|
-
<slot>
|
|
20
|
-
تایید و ثبت اطلاعات
|
|
21
|
-
</slot>
|
|
22
|
-
</button>
|
|
23
|
-
</template>
|