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/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 SecondarySubmitButton: DefineComponent<{
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertia-bootstrap-forms",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
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",
@@ -91,4 +91,8 @@ textarea.tiny-editor-input-el {
91
91
  .tox .tox-edit-area::before {
92
92
  display: none;
93
93
  }
94
+
95
+ .tox .tox-throbber{
96
+ z-index: var(--bs-dropdown-zindex, 900);
97
+ }
94
98
  </style>
@@ -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
 
@@ -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>