inertia-bootstrap-forms 1.0.72 → 1.0.74

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/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,10 +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 SecondarySubmitButton: DefineComponent<{}, {}, any>;
227
223
  export const Select2Input: DefineComponent<{}, {}, any>;
228
224
  export const StarRatingInput: DefineComponent<{}, {}, any>;
229
- export const SubmitButton: DefineComponent<{}, {}, any>;
225
+ export const SubmitButton: DefineComponent<{
226
+ disabled: {
227
+ type: Boolean,
228
+ default: false
229
+ }
230
+ }, {}, any>;
230
231
  export const TelInput: DefineComponent<{}, {}, any>;
231
232
  export const TextAreaInput: DefineComponent<{}, {}, any>;
232
233
  export const TextInput: DefineComponent<{}, {}, any>;
@@ -291,7 +292,6 @@ declare const Vue3FormComponents: {
291
292
  PasswordInput: typeof PasswordInput;
292
293
  PersianDatePickerInput: typeof PersianDatePickerInput;
293
294
  QuantityInput: typeof QuantityInput;
294
- SecondarySubmitButton: typeof SecondarySubmitButton;
295
295
  Select2Input: typeof Select2Input;
296
296
  StarRatingInput: typeof StarRatingInput;
297
297
  SubmitButton: typeof SubmitButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertia-bootstrap-forms",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "Create bootstrap forms with inertia and twitter bootstrap",
5
5
  "main": "dist/inertia-bootstrap-forms.cjs.js",
6
6
  "module": "dist/inertia-bootstrap-forms.es.js",
@@ -7,14 +7,18 @@ export default defineComponent({
7
7
  Spinner
8
8
  },
9
9
  inject: ['form'],
10
- props: {},
10
+ props: {
11
+ disabled: {
12
+ type: Boolean,
13
+ default: false
14
+ }
15
+ },
11
16
  })
12
17
  </script>
13
18
  <template>
14
19
  <button
15
20
  type="submit"
16
- :disabled="form?.processing || form?.uploading"
17
- class="btn btn-primary px-3 px-sm-4">
21
+ :disabled="(disabled || form?.processing || form?.uploading)">
18
22
  <Spinner v-if="form?.processing || form?.uploading"/>
19
23
  <slot :form="form">
20
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>