inertia-bootstrap-forms 1.0.87 → 1.0.90
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-bdkZo2GW.js → index-BDrrKgQZ.js} +1 -1
- package/dist/{index-CjgH0OCJ.js → index-BWLXdiIz.js} +10 -5
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +1 -1
- package/index.d.ts +61 -1
- package/package.json +1 -1
- package/src/Select2Input.vue +9 -4
|
@@ -5,7 +5,7 @@ var et = (i) => {
|
|
|
5
5
|
var ct = (i, e, t) => e in i ? pt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
6
|
var y = (i, e, t) => ct(i, typeof e != "symbol" ? e + "" : e, t), G = (i, e, t) => e.has(i) || et("Cannot " + t);
|
|
7
7
|
var r = (i, e, t) => (G(i, e, "read from private field"), t ? t.call(i) : e.get(i)), m = (i, e, t) => e.has(i) ? et("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), c = (i, e, t, s) => (G(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t), g = (i, e, t) => (G(i, e, "access private method"), t);
|
|
8
|
-
import { T as mt } from "./index-
|
|
8
|
+
import { T as mt } from "./index-BWLXdiIz.js";
|
|
9
9
|
class K extends Error {
|
|
10
10
|
constructor(t, s = null) {
|
|
11
11
|
super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.");
|
|
@@ -6499,7 +6499,11 @@ const $g = te({
|
|
|
6499
6499
|
modelValue: "",
|
|
6500
6500
|
label: {
|
|
6501
6501
|
type: String,
|
|
6502
|
-
default:
|
|
6502
|
+
default: null
|
|
6503
|
+
},
|
|
6504
|
+
key: {
|
|
6505
|
+
type: String,
|
|
6506
|
+
default: null
|
|
6503
6507
|
},
|
|
6504
6508
|
placeholder: {
|
|
6505
6509
|
type: String,
|
|
@@ -6581,6 +6585,7 @@ const $g = te({
|
|
|
6581
6585
|
removeItemButton: !0,
|
|
6582
6586
|
placeholderValue: this.placeholder,
|
|
6583
6587
|
searchPlaceholderValue: this.placeholder,
|
|
6588
|
+
shouldSort: !1,
|
|
6584
6589
|
itemSelectText: null,
|
|
6585
6590
|
...this.localeTranslates[this.currentLocale],
|
|
6586
6591
|
...this.config
|
|
@@ -6617,7 +6622,7 @@ const $g = te({
|
|
|
6617
6622
|
this.choices.clearChoices(), await this.choices.setChoices(
|
|
6618
6623
|
r.map((s) => ({
|
|
6619
6624
|
id: s.id,
|
|
6620
|
-
name: s.name
|
|
6625
|
+
name: s.name || s.label || s.value
|
|
6621
6626
|
})),
|
|
6622
6627
|
"id",
|
|
6623
6628
|
"name",
|
|
@@ -6674,9 +6679,9 @@ function Lg(t, e, i, n, r, s) {
|
|
|
6674
6679
|
(I(!0), D(Jt, null, Ii(t.options, (o, a) => {
|
|
6675
6680
|
var l, u;
|
|
6676
6681
|
return I(), D("option", {
|
|
6677
|
-
value: o.
|
|
6682
|
+
value: (t.key ? o[t.key] : (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)) ?? o,
|
|
6678
6683
|
selected: t.multiple ? (t.selectedValue || []).includes(o.id || o) : (((l = o == null ? void 0 : o.id) == null ? void 0 : l.toString()) || o) === ((u = t.modelValue) == null ? void 0 : u.toString())
|
|
6679
|
-
}, Ae((t.label ? o[t.label] : o.name)
|
|
6684
|
+
}, Ae((t.label ? o[t.label] : (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)) ?? o), 9, Ng);
|
|
6680
6685
|
}), 256))
|
|
6681
6686
|
], 16, Dg), [
|
|
6682
6687
|
[Ac, t.modelValue]
|
|
@@ -13156,7 +13161,7 @@ const Wv = {
|
|
|
13156
13161
|
b === !0 && y === !1 && g();
|
|
13157
13162
|
}), on(() => {
|
|
13158
13163
|
var b, y, w, O, T, M, V, F;
|
|
13159
|
-
i.useXHR && import("./index-
|
|
13164
|
+
i.useXHR && import("./index-BDrrKgQZ.js").then((z) => {
|
|
13160
13165
|
const X = z.default;
|
|
13161
13166
|
o.value.use(X, {
|
|
13162
13167
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as n, C as s, a as p, b as u, c as e, _ as o, d as I, E as i, F as r, f as l, l as c, G as m, L as b, M as C, h as x, g as S, P as d, Q as g, R as h, k, S as F, j as P, i as T, m as y, n as A, o as E, e as L } from "./index-
|
|
1
|
+
import { A as n, C as s, a as p, b as u, c as e, _ as o, d as I, E as i, F as r, f as l, l as c, G as m, L as b, M as C, h as x, g as S, P as d, Q as g, R as h, k, S as F, j as P, i as T, m as y, n as A, o as E, e as L } from "./index-BWLXdiIz.js";
|
|
2
2
|
export {
|
|
3
3
|
n as AmountInput,
|
|
4
4
|
s as CaptchaInput,
|