bootstrap-vue-wrapper 2.1.10 → 2.1.12

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.
@@ -1037,7 +1037,7 @@ const ct = /* @__PURE__ */ c(we, [["render", _e]]), De = m({
1037
1037
  value: "",
1038
1038
  disabled: "",
1039
1039
  hidden: ""
1040
- }, ze = ["value"], je = ["textContent"], Ue = ["id", "textContent"];
1040
+ }, ze = ["value", "disabled"], je = ["textContent"], Ue = ["id", "textContent"];
1041
1041
  function Ge(e, t, r, d, v, f) {
1042
1042
  return a(), i(b, null, [
1043
1043
  e.label !== void 0 ? (a(), i("label", {
@@ -1059,7 +1059,8 @@ function Ge(e, t, r, d, v, f) {
1059
1059
  e.placeholder !== void 0 ? (a(), i("option", Fe, l(e.placeholder), 1)) : u("", !0),
1060
1060
  (a(!0), i(b, null, y(e.options, (o, n) => (a(), i("option", {
1061
1061
  key: n,
1062
- value: o.value
1062
+ value: o.value,
1063
+ disabled: o.disabled !== void 0 && o.disabled
1063
1064
  }, l(o.text), 9, ze))), 128))
1064
1065
  ], 16, Te),
1065
1066
  e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
@@ -2,13 +2,14 @@ import { PropType, Ref } from 'vue';
2
2
  interface Option {
3
3
  value: number | string;
4
4
  text: string;
5
+ disabled: boolean | undefined;
5
6
  }
6
7
  declare const _default: import("vue").DefineComponent<{
7
8
  /**
8
9
  * Value for v-model
9
10
  */
10
11
  modelValue: {
11
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
12
+ type: PropType<string | number | string[] | number[] | null>;
12
13
  default: null;
13
14
  };
14
15
  /**
@@ -82,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
82
83
  * Value for v-model
83
84
  */
84
85
  modelValue: {
85
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
86
+ type: PropType<string | number | string[] | number[] | null>;
86
87
  default: null;
87
88
  };
88
89
  /**
@@ -131,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{
131
132
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
132
133
  }, {
133
134
  label: string;
134
- modelValue: string | number | unknown[];
135
+ modelValue: string | number | string[] | number[] | null;
135
136
  hint: string;
136
137
  validatorEnabled: boolean;
137
138
  placeholder: string;
@@ -1,4 +1,7 @@
1
1
  import { Ref } from 'vue';
2
+ /**
3
+ * @deprecated Use @zemkogabor/vue-form-validator instead of this file.
4
+ */
2
5
  export declare function useValidator(inputRef: Ref<HTMLInputElement | null>): {
3
6
  onInvalid: (event: Event) => void;
4
7
  getInvalidMessage: () => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-wrapper",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "description": "Bootstrap 5 components in Vue3 wrapper.",
5
5
  "module": "./dist/bootstrap-vue-wrapper.js",
6
6
  "types": "./dist/index.d.ts",