inertia-bootstrap-forms 3.0.2 → 4.0.1

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.
Files changed (59) hide show
  1. package/README.fa.md +86 -6
  2. package/README.md +95 -8
  3. package/dist/chunks/UppyInput-Dt8CPfgC.js +210 -0
  4. package/dist/chunks/UppyInput-ldc834tZ.cjs +1 -0
  5. package/dist/chunks/_plugin-vue_export-helper-13TPlHFF.js +81 -0
  6. package/dist/chunks/_plugin-vue_export-helper-BHyUve4F.cjs +1 -0
  7. package/dist/chunks/http-CDPNmbjF.cjs +1 -0
  8. package/dist/chunks/http-DV3dRBe5.js +158 -0
  9. package/dist/country-codes.cjs +1 -0
  10. package/dist/country-codes.js +245 -0
  11. package/dist/dropzone.cjs +1 -0
  12. package/dist/dropzone.js +81 -0
  13. package/dist/editor.cjs +1 -0
  14. package/dist/editor.js +52 -0
  15. package/dist/index.cjs +1 -0
  16. package/dist/index.js +3230 -0
  17. package/dist/location.cjs +1 -0
  18. package/dist/location.js +84 -0
  19. package/dist/persian-date.cjs +1 -0
  20. package/dist/persian-date.js +73 -0
  21. package/dist/style.css +1 -0
  22. package/dist/tel.cjs +1 -0
  23. package/dist/tel.js +85 -0
  24. package/dist/uppy-dashboard.cjs +1 -0
  25. package/dist/uppy-dashboard.js +31 -0
  26. package/dist/uppy.cjs +1 -0
  27. package/dist/uppy.js +4 -0
  28. package/index.d.ts +50 -30
  29. package/package.json +101 -17
  30. package/src/CheckboxToggle.vue +1 -1
  31. package/src/ComboboxInput.vue +495 -496
  32. package/src/PasswordInput.vue +124 -123
  33. package/src/StarRatingInput.vue +1 -1
  34. package/src/UppyDashboardInput.vue +45 -0
  35. package/src/UppyInput.vue +36 -3
  36. package/src/VoiceRecorderInput.vue +660 -0
  37. package/src/VoiceRecorderResultArea.vue +109 -0
  38. package/src/composables/useVoiceChannel.js +31 -0
  39. package/src/entries/country-codes.js +1 -0
  40. package/src/entries/dropzone.js +1 -0
  41. package/src/entries/editor.js +1 -0
  42. package/src/entries/location.js +1 -0
  43. package/src/entries/persian-date.js +1 -0
  44. package/src/entries/tel.js +1 -0
  45. package/src/entries/uppy-dashboard.js +1 -0
  46. package/src/entries/uppy.js +1 -0
  47. package/src/index.js +6 -19
  48. package/types/country-codes.d.ts +1 -0
  49. package/types/dropzone.d.ts +2 -0
  50. package/types/editor.d.ts +2 -0
  51. package/types/location.d.ts +2 -0
  52. package/types/persian-date.d.ts +2 -0
  53. package/types/tel.d.ts +2 -0
  54. package/types/uppy-dashboard.d.ts +12 -0
  55. package/types/uppy.d.ts +10 -0
  56. package/dist/inertia-bootstrap-forms.cjs.js +0 -1
  57. package/dist/inertia-bootstrap-forms.es.js +0 -3536
  58. package/src/RangeSliderInput.vue +0 -103
  59. package/src/Select2Input.vue +0 -251
@@ -0,0 +1 @@
1
+ "use strict";var k=Object.create;var y=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var z=(e,o,l,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of b(o))!L.call(e,r)&&r!==l&&y(e,r,{get:()=>o[r],enumerable:!(a=h(o,r))||a.enumerable});return e};var p=(e,o,l)=>(l=e!=null?k(C(e)):{},z(o||!e||!e.__esModule?y(l,"default",{value:e,enumerable:!0}):l,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),c=require("./chunks/_plugin-vue_export-helper-BHyUve4F.cjs"),M=n.defineAsyncComponent(()=>import("@vue-leaflet/vue-leaflet").then(e=>e.LMap)),S=n.defineAsyncComponent(()=>import("@vue-leaflet/vue-leaflet").then(e=>e.LTileLayer)),N=n.defineAsyncComponent(()=>import("@vue-leaflet/vue-leaflet").then(e=>e.LMarker)),B=n.defineComponent({name:"LocationInput",components:{LMap:M,LTileLayer:S,LMarker:N},emits:["update:modelValue","change","ready"],props:{...c.fieldProps,name:{type:String,default:"location"},center:{type:Object,default:()=>({lat:35.69293,lng:51.36372})},zoom:{type:Number,default:13},height:{type:[Number,String],default:300},tileUrl:{type:String,default:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"},attribution:{type:String,default:"© OpenStreetMap contributors"}},setup(e,{emit:o}){const l=c.useField(e,o),a=n.ref(!1),r=n.ref(e.zoom);n.onMounted(()=>{a.value=!0});const u=n.computed(()=>{const t=l.model.value;return(t==null?void 0:t.lat)!==void 0&&(t==null?void 0:t.lat)!==null&&(t==null?void 0:t.lng)!==void 0&&(t==null?void 0:t.lng)!==null?{lat:Number(t.lat),lng:Number(t.lng)}:null}),d=n.computed(()=>u.value??e.center),i=n.computed(()=>e.readonly||l.isDisabled.value);n.watch(()=>e.zoom,t=>r.value=t);function m(t){var f;if(i.value)return;const s=(t==null?void 0:t.latlng)??((f=t==null?void 0:t.target)==null?void 0:f._latlng);if(!s)return;const g={lat:s.lat,lng:s.lng};l.model.value=g,l.emitChange(g,t)}return{...l,ready:a,zoomLevel:r,marker:u,mapCenter:d,locked:i,setMarker:m,heightCss:n.computed(()=>typeof e.height=="number"?`${e.height}px`:e.height)}}}),V=["id"];function $(e,o,l,a,r,u){const d=n.resolveComponent("l-tile-layer"),i=n.resolveComponent("l-marker"),m=n.resolveComponent("l-map");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["location-map-container position-relative overflow-hidden",{disabled:e.locked,"is-invalid":e.isInvalid}]),id:e.inputId,style:n.normalizeStyle({width:"100%",height:e.heightCss})},[e.ready?(n.openBlock(),n.createBlock(m,{key:0,zoom:e.zoomLevel,"onUpdate:zoom":o[0]||(o[0]=t=>e.zoomLevel=t),"use-global-leaflet":!1,center:e.mapCenter,onClick:e.setMarker,onReady:o[1]||(o[1]=t=>e.$emit("ready",t))},{default:n.withCtx(()=>[n.createVNode(d,{url:e.tileUrl,attribution:e.attribution,"layer-type":"base",name:"OpenStreetMap"},null,8,["url","attribution"]),e.marker?(n.openBlock(),n.createBlock(i,{key:0,"lat-lng":e.marker,draggable:!e.locked,onDragend:e.setMarker},null,8,["lat-lng","draggable","onDragend"])):n.createCommentVNode("",!0)]),_:1},8,["zoom","center","onClick"])):n.createCommentVNode("",!0)],14,V)}const I=c._export_sfc(B,[["render",$]]);exports.LocationInput=I;
@@ -0,0 +1,84 @@
1
+ import { defineComponent as C, resolveComponent as p, createElementBlock as L, openBlock as c, normalizeStyle as z, normalizeClass as M, createBlock as h, createCommentVNode as k, withCtx as S, createVNode as N, defineAsyncComponent as g, ref as b, onMounted as $, computed as a, watch as w } from "vue";
2
+ import { _ as I, f as B, u as D } from "./chunks/_plugin-vue_export-helper-13TPlHFF.js";
3
+ const O = g(() => import("@vue-leaflet/vue-leaflet").then((e) => e.LMap)), U = g(() => import("@vue-leaflet/vue-leaflet").then((e) => e.LTileLayer)), V = g(() => import("@vue-leaflet/vue-leaflet").then((e) => e.LMarker)), _ = C({
4
+ name: "LocationInput",
5
+ components: { LMap: O, LTileLayer: U, LMarker: V },
6
+ emits: ["update:modelValue", "change", "ready"],
7
+ props: {
8
+ ...B,
9
+ name: { type: String, default: "location" },
10
+ /** Initial map centre when there is no value yet. */
11
+ center: { type: Object, default: () => ({ lat: 35.69293, lng: 51.36372 }) },
12
+ zoom: { type: Number, default: 13 },
13
+ height: { type: [Number, String], default: 300 },
14
+ tileUrl: { type: String, default: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" },
15
+ attribution: { type: String, default: "© OpenStreetMap contributors" }
16
+ },
17
+ setup(e, { emit: n }) {
18
+ const l = D(e, n), r = b(!1), i = b(e.zoom);
19
+ $(() => {
20
+ r.value = !0;
21
+ });
22
+ const m = a(() => {
23
+ const t = l.model.value;
24
+ return (t == null ? void 0 : t.lat) !== void 0 && (t == null ? void 0 : t.lat) !== null && (t == null ? void 0 : t.lng) !== void 0 && (t == null ? void 0 : t.lng) !== null ? { lat: Number(t.lat), lng: Number(t.lng) } : null;
25
+ }), s = a(() => m.value ?? e.center), o = a(() => e.readonly || l.isDisabled.value);
26
+ w(() => e.zoom, (t) => i.value = t);
27
+ function u(t) {
28
+ var y;
29
+ if (o.value) return;
30
+ const d = (t == null ? void 0 : t.latlng) ?? ((y = t == null ? void 0 : t.target) == null ? void 0 : y._latlng);
31
+ if (!d) return;
32
+ const f = { lat: d.lat, lng: d.lng };
33
+ l.model.value = f, l.emitChange(f, t);
34
+ }
35
+ return {
36
+ ...l,
37
+ ready: r,
38
+ zoomLevel: i,
39
+ marker: m,
40
+ mapCenter: s,
41
+ locked: o,
42
+ setMarker: u,
43
+ heightCss: a(() => typeof e.height == "number" ? `${e.height}px` : e.height)
44
+ };
45
+ }
46
+ }), T = ["id"];
47
+ function j(e, n, l, r, i, m) {
48
+ const s = p("l-tile-layer"), o = p("l-marker"), u = p("l-map");
49
+ return c(), L("div", {
50
+ class: M(["location-map-container position-relative overflow-hidden", { disabled: e.locked, "is-invalid": e.isInvalid }]),
51
+ id: e.inputId,
52
+ style: z({ width: "100%", height: e.heightCss })
53
+ }, [
54
+ e.ready ? (c(), h(u, {
55
+ key: 0,
56
+ zoom: e.zoomLevel,
57
+ "onUpdate:zoom": n[0] || (n[0] = (t) => e.zoomLevel = t),
58
+ "use-global-leaflet": !1,
59
+ center: e.mapCenter,
60
+ onClick: e.setMarker,
61
+ onReady: n[1] || (n[1] = (t) => e.$emit("ready", t))
62
+ }, {
63
+ default: S(() => [
64
+ N(s, {
65
+ url: e.tileUrl,
66
+ attribution: e.attribution,
67
+ "layer-type": "base",
68
+ name: "OpenStreetMap"
69
+ }, null, 8, ["url", "attribution"]),
70
+ e.marker ? (c(), h(o, {
71
+ key: 0,
72
+ "lat-lng": e.marker,
73
+ draggable: !e.locked,
74
+ onDragend: e.setMarker
75
+ }, null, 8, ["lat-lng", "draggable", "onDragend"])) : k("", !0)
76
+ ]),
77
+ _: 1
78
+ }, 8, ["zoom", "center", "onClick"])) : k("", !0)
79
+ ], 14, T);
80
+ }
81
+ const F = /* @__PURE__ */ I(_, [["render", j]]);
82
+ export {
83
+ F as LocationInput
84
+ };
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.create;var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var g=(e,n,a,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of f(n))!y.call(e,t)&&t!==a&&d(e,t,{get:()=>n[t],enumerable:!(o=m(n,t))||o.enumerable});return e};var v=(e,n,a)=>(a=e!=null?s(c(e)):{},g(n||!e||!e.__esModule?d(a,"default",{value:e,enumerable:!0}):a,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./chunks/_plugin-vue_export-helper-BHyUve4F.cjs"),P=l.defineAsyncComponent(()=>import("vue3-persian-datetime-picker")),k=l.defineComponent({name:"PersianDatePickerInput",components:{Vue3PersianDatetimePicker:P},emits:["update:modelValue","change","open","close"],props:{...u.fieldProps,calendar:{type:String,default:"date"},view:{type:String,default:"date"},min:{type:String,default:null},max:{type:String,default:null},range:{type:Boolean,default:!1},locale:{type:String,default:"fa"},format:{type:String,default:"jYYYY/jMM/jDD"},inputFormat:{type:String,default:null},placeholder:{type:String,default:null},inputClass:{type:String,default:"form-control fanum"},pickerOptions:{type:Object,default:()=>({})}},setup(e,{emit:n,expose:a}){const o=u.useField(e,n),t=l.ref(!1);return l.onMounted(()=>{t.value=!0}),l.watch(()=>o.model.value,(p,r)=>n("change",p,r)),a({clear:()=>o.model.value=null}),{...o,ready:t}}}),S=["placeholder"];function b(e,n,a,o,t,p){const r=l.resolveComponent("Vue3PersianDatetimePicker");return e.ready?(l.openBlock(),l.createBlock(r,l.mergeProps({key:0,modelValue:e.model,"onUpdate:modelValue":n[0]||(n[0]=i=>e.model=i),name:e.name,id:e.inputId,type:e.calendar,view:e.view,min:e.min,max:e.max,range:e.range,locale:e.locale,format:e.format,"input-format":e.inputFormat||e.format,placeholder:e.placeholder,disabled:e.isDisabled||e.readonly,"input-class":[e.inputClass,{"is-invalid":e.isInvalid}],editable:"",jumpminute:"15",roundminute:!0,"show-now-btn":!0,"auto-submit":!0},e.pickerOptions,{onOpen:n[1]||(n[1]=i=>e.$emit("open")),onClose:n[2]||(n[2]=i=>e.$emit("close"))}),null,16,["modelValue","name","id","type","view","min","max","range","locale","format","input-format","placeholder","disabled","input-class"])):(l.openBlock(),l.createElementBlock("input",{key:1,type:"text",class:l.normalizeClass(["form-control",{"is-invalid":e.isInvalid}]),placeholder:e.placeholder,disabled:""},null,10,S))}const D=u._export_sfc(k,[["render",b]]);exports.PersianDatePickerInput=D;
@@ -0,0 +1,73 @@
1
+ import { defineComponent as d, resolveComponent as s, createBlock as u, createElementBlock as m, openBlock as p, mergeProps as f, normalizeClass as y, defineAsyncComponent as c, ref as g, onMounted as v, watch as k } from "vue";
2
+ import { _ as P, f as S, u as b } from "./chunks/_plugin-vue_export-helper-13TPlHFF.js";
3
+ const D = c(() => import("vue3-persian-datetime-picker")), $ = d({
4
+ name: "PersianDatePickerInput",
5
+ components: { Vue3PersianDatetimePicker: D },
6
+ emits: ["update:modelValue", "change", "open", "close"],
7
+ props: {
8
+ ...S,
9
+ /** date | datetime | time | year-month | month */
10
+ calendar: { type: String, default: "date" },
11
+ view: { type: String, default: "date" },
12
+ min: { type: String, default: null },
13
+ max: { type: String, default: null },
14
+ range: { type: Boolean, default: !1 },
15
+ locale: { type: String, default: "fa" },
16
+ /** Format of the stored value. */
17
+ format: { type: String, default: "jYYYY/jMM/jDD" },
18
+ /** Format shown in the input (defaults to `format`). */
19
+ inputFormat: { type: String, default: null },
20
+ placeholder: { type: String, default: null },
21
+ inputClass: { type: String, default: "form-control fanum" },
22
+ /** Extra props forwarded to vue3-persian-datetime-picker. */
23
+ pickerOptions: { type: Object, default: () => ({}) }
24
+ },
25
+ setup(e, { emit: n, expose: r }) {
26
+ const a = b(e, n), l = g(!1);
27
+ return v(() => {
28
+ l.value = !0;
29
+ }), k(
30
+ () => a.model.value,
31
+ (i, t) => n("change", i, t)
32
+ ), r({ clear: () => a.model.value = null }), { ...a, ready: l };
33
+ }
34
+ }), h = ["placeholder"];
35
+ function w(e, n, r, a, l, i) {
36
+ const t = s("Vue3PersianDatetimePicker");
37
+ return e.ready ? (p(), u(t, f({
38
+ key: 0,
39
+ modelValue: e.model,
40
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => e.model = o),
41
+ name: e.name,
42
+ id: e.inputId,
43
+ type: e.calendar,
44
+ view: e.view,
45
+ min: e.min,
46
+ max: e.max,
47
+ range: e.range,
48
+ locale: e.locale,
49
+ format: e.format,
50
+ "input-format": e.inputFormat || e.format,
51
+ placeholder: e.placeholder,
52
+ disabled: e.isDisabled || e.readonly,
53
+ "input-class": [e.inputClass, { "is-invalid": e.isInvalid }],
54
+ editable: "",
55
+ jumpminute: "15",
56
+ roundminute: !0,
57
+ "show-now-btn": !0,
58
+ "auto-submit": !0
59
+ }, e.pickerOptions, {
60
+ onOpen: n[1] || (n[1] = (o) => e.$emit("open")),
61
+ onClose: n[2] || (n[2] = (o) => e.$emit("close"))
62
+ }), null, 16, ["modelValue", "name", "id", "type", "view", "min", "max", "range", "locale", "format", "input-format", "placeholder", "disabled", "input-class"])) : (p(), m("input", {
63
+ key: 1,
64
+ type: "text",
65
+ class: y(["form-control", { "is-invalid": e.isInvalid }]),
66
+ placeholder: e.placeholder,
67
+ disabled: ""
68
+ }, null, 10, h));
69
+ }
70
+ const j = /* @__PURE__ */ P($, [["render", w]]);
71
+ export {
72
+ j as PersianDatePickerInput
73
+ };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .voice-recorder-box{display:block;background-color:var(--bg-1);border-radius:var(--border-radius);border:2px dashed var(--border-color)}.voice-recorder-box audio{vertical-align:middle}
package/dist/tel.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.create;var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var C=(e,t,l,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!v.call(e,o)&&o!==l&&p(e,o,{get:()=>t[o],enumerable:!(r=f(t,o))||r.enumerable});return e};var g=(e,t,l)=>(l=e!=null?c(y(e)):{},C(t||!e||!e.__esModule?p(l,"default",{value:e,enumerable:!0}):l,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),s=require("./chunks/_plugin-vue_export-helper-BHyUve4F.cjs"),I=n.defineAsyncComponent(()=>import("vue-tel-input").then(e=>e.VueTelInput)),O=n.defineComponent({name:"TelInput",components:{VueTelInput:I},emits:["update:modelValue","change","validate","country-changed","focus","blur"],props:{...s.fieldProps,placeholder:{type:String,default:"000 000 0000"},placeHolder:{type:String,default:null},defaultCountry:{type:String,default:"ir"},preferredCountries:{type:Array,default:()=>["ir","us","tr","ca"]},mode:{type:String,default:"national"},validCharactersOnly:{type:Boolean,default:!0},validate:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:"Search…"},dropdownOptions:{type:Object,default:()=>({})},inputOptions:{type:Object,default:()=>({})}},setup(e,{emit:t}){const l=s.useField(e,t),r=n.ref(l.model.value??""),o=n.ref(null);let d=l.model.value??"";n.watch(()=>l.model.value,u=>{(u??"")!==d&&(r.value=u??"")});function i(u,a){d=(a==null?void 0:a.number)??"",l.model.value=d,o.value=(a==null?void 0:a.valid)??null,t("validate",o.value,a),l.emitChange(d)}return{...l,text:r,valid:o,onInput:i,dropdown:n.computed(()=>({showDialCodeInList:!0,showDialCodeInSelection:!0,showSearchBox:!0,searchBoxPlaceholder:e.searchPlaceholder,showFlags:!1,...e.dropdownOptions})),inputOpts:n.computed(()=>({placeholder:e.placeHolder??e.placeholder,id:l.inputId.value,name:e.name,readonly:e.readonly,...e.inputOptions})),invalidClass:n.computed(()=>l.isInvalid.value||e.validate&&o.value===!1)}}}),b={class:"telephone-input input-group fanum",dir:"ltr"};function h(e,t,l,r,o,d){const i=n.resolveComponent("VueTelInput");return n.openBlock(),n.createElementBlock("div",b,[n.createVNode(i,{modelValue:e.text,"onUpdate:modelValue":t[0]||(t[0]=u=>e.text=u),mode:e.mode,"valid-characters-only":e.validCharactersOnly,"default-country":e.defaultCountry,"preferred-countries":e.preferredCountries,disabled:e.isDisabled,"dropdown-options":e.dropdown,"input-options":e.inputOpts,"style-classes":"form-control form-control-tel fanum"+(e.invalidClass?" is-invalid":""),onOnInput:e.onInput,onCountryChanged:t[1]||(t[1]=u=>e.$emit("country-changed",u)),onFocus:t[2]||(t[2]=u=>e.$emit("focus",u)),onBlur:t[3]||(t[3]=u=>e.$emit("blur",u))},null,8,["modelValue","mode","valid-characters-only","default-country","preferred-countries","disabled","dropdown-options","input-options","style-classes","onOnInput"])])}const w=s._export_sfc(O,[["render",h]]);exports.TelInput=w;
package/dist/tel.js ADDED
@@ -0,0 +1,85 @@
1
+ import { defineComponent as p, resolveComponent as f, createElementBlock as m, openBlock as c, createVNode as y, defineAsyncComponent as v, ref as s, watch as C, computed as i } from "vue";
2
+ import { _ as I, f as g, u as O } from "./chunks/_plugin-vue_export-helper-13TPlHFF.js";
3
+ const h = v(() => import("vue-tel-input").then((e) => e.VueTelInput)), w = p({
4
+ name: "TelInput",
5
+ components: { VueTelInput: h },
6
+ emits: ["update:modelValue", "change", "validate", "country-changed", "focus", "blur"],
7
+ props: {
8
+ ...g,
9
+ placeholder: { type: String, default: "000 000 0000" },
10
+ /** Legacy alias of `placeholder`. */
11
+ placeHolder: { type: String, default: null },
12
+ defaultCountry: { type: String, default: "ir" },
13
+ preferredCountries: { type: Array, default: () => ["ir", "us", "tr", "ca"] },
14
+ mode: { type: String, default: "national" },
15
+ validCharactersOnly: { type: Boolean, default: !0 },
16
+ /** Mark the field invalid as soon as the typed number is not valid. */
17
+ validate: { type: Boolean, default: !0 },
18
+ searchPlaceholder: { type: String, default: "Search…" },
19
+ dropdownOptions: { type: Object, default: () => ({}) },
20
+ inputOptions: { type: Object, default: () => ({}) }
21
+ },
22
+ setup(e, { emit: t }) {
23
+ const n = O(e, t), r = s(n.model.value ?? ""), a = s(null);
24
+ let d = n.model.value ?? "";
25
+ C(
26
+ () => n.model.value,
27
+ (l) => {
28
+ (l ?? "") !== d && (r.value = l ?? "");
29
+ }
30
+ );
31
+ function u(l, o) {
32
+ d = (o == null ? void 0 : o.number) ?? "", n.model.value = d, a.value = (o == null ? void 0 : o.valid) ?? null, t("validate", a.value, o), n.emitChange(d);
33
+ }
34
+ return {
35
+ ...n,
36
+ text: r,
37
+ valid: a,
38
+ onInput: u,
39
+ dropdown: i(() => ({
40
+ showDialCodeInList: !0,
41
+ showDialCodeInSelection: !0,
42
+ showSearchBox: !0,
43
+ searchBoxPlaceholder: e.searchPlaceholder,
44
+ showFlags: !1,
45
+ ...e.dropdownOptions
46
+ })),
47
+ inputOpts: i(() => ({
48
+ placeholder: e.placeHolder ?? e.placeholder,
49
+ id: n.inputId.value,
50
+ name: e.name,
51
+ readonly: e.readonly,
52
+ ...e.inputOptions
53
+ })),
54
+ invalidClass: i(() => n.isInvalid.value || e.validate && a.value === !1)
55
+ };
56
+ }
57
+ }), b = {
58
+ class: "telephone-input input-group fanum",
59
+ dir: "ltr"
60
+ };
61
+ function V(e, t, n, r, a, d) {
62
+ const u = f("VueTelInput");
63
+ return c(), m("div", b, [
64
+ y(u, {
65
+ modelValue: e.text,
66
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => e.text = l),
67
+ mode: e.mode,
68
+ "valid-characters-only": e.validCharactersOnly,
69
+ "default-country": e.defaultCountry,
70
+ "preferred-countries": e.preferredCountries,
71
+ disabled: e.isDisabled,
72
+ "dropdown-options": e.dropdown,
73
+ "input-options": e.inputOpts,
74
+ "style-classes": "form-control form-control-tel fanum" + (e.invalidClass ? " is-invalid" : ""),
75
+ onOnInput: e.onInput,
76
+ onCountryChanged: t[1] || (t[1] = (l) => e.$emit("country-changed", l)),
77
+ onFocus: t[2] || (t[2] = (l) => e.$emit("focus", l)),
78
+ onBlur: t[3] || (t[3] = (l) => e.$emit("blur", l))
79
+ }, null, 8, ["modelValue", "mode", "valid-characters-only", "default-country", "preferred-countries", "disabled", "dropdown-options", "input-options", "style-classes", "onOnInput"])
80
+ ]);
81
+ }
82
+ const $ = /* @__PURE__ */ I(w, [["render", V]]);
83
+ export {
84
+ $ as TelInput
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),i=require("@uppy/audio"),s=require("@uppy/webcam"),d=require("@uppy/vue/dashboard"),r=require("./chunks/UppyInput-ldc834tZ.cjs"),c=o.defineComponent({name:"UppyDashboardInput",inheritAttrs:!1,props:{webcam:{type:[Boolean,Object],default:!1},audio:{type:[Boolean,Object],default:!1},dashboardProps:{type:Object,default:()=>({})}},setup(e,{attrs:a,slots:u}){const n=o.computed(()=>{const t=[];return e.webcam&&t.push({plugin:s,options:{id:"Webcam",...typeof e.webcam=="object"?e.webcam:{}}}),e.audio&&t.push({plugin:i,options:{id:"Audio",...typeof e.audio=="object"?e.audio:{}}}),t});return()=>o.h(r.UppyInput,{...a,plugins:n.value,dashboardComponent:d,dashboardProps:e.dashboardProps},u)}});exports.UppyDashboardInput=c;
@@ -0,0 +1,31 @@
1
+ import { defineComponent as p, computed as d, h as n } from "vue";
2
+ import s from "@uppy/audio";
3
+ import u from "@uppy/webcam";
4
+ import r from "@uppy/vue/dashboard";
5
+ import { U as m } from "./chunks/UppyInput-Dt8CPfgC.js";
6
+ const y = p({
7
+ name: "UppyDashboardInput",
8
+ inheritAttrs: !1,
9
+ props: {
10
+ /** Camera: true or @uppy/webcam options, e.g. { modes: ['picture'], mirror: true }. Needs HTTPS / localhost. */
11
+ webcam: { type: [Boolean, Object], default: !1 },
12
+ /** Voice recorder: true or @uppy/audio options, e.g. { showAudioSourceDropdown: true }. Needs HTTPS / localhost. */
13
+ audio: { type: [Boolean, Object], default: !1 },
14
+ /** Dashboard options: { height, width, theme, note, … }. */
15
+ dashboardProps: { type: Object, default: () => ({}) }
16
+ },
17
+ setup(o, { attrs: t, slots: e }) {
18
+ const i = d(() => {
19
+ const a = [];
20
+ return o.webcam && a.push({ plugin: u, options: { id: "Webcam", ...typeof o.webcam == "object" ? o.webcam : {} } }), o.audio && a.push({ plugin: s, options: { id: "Audio", ...typeof o.audio == "object" ? o.audio : {} } }), a;
21
+ });
22
+ return () => n(
23
+ m,
24
+ { ...t, plugins: i.value, dashboardComponent: r, dashboardProps: o.dashboardProps },
25
+ e
26
+ );
27
+ }
28
+ });
29
+ export {
30
+ y as UppyDashboardInput
31
+ };
package/dist/uppy.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./chunks/UppyInput-ldc834tZ.cjs");exports.UppyInput=p.UppyInput;
package/dist/uppy.js ADDED
@@ -0,0 +1,4 @@
1
+ import { U as r } from "./chunks/UppyInput-Dt8CPfgC.js";
2
+ export {
3
+ r as UppyInput
4
+ };
package/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface FieldProps {
14
14
  invalid?: boolean | null;
15
15
  }
16
16
 
17
- type Comp<P = {}, E = {}> = DefineComponent<FieldProps & P, {}, {}, {}, {}, {}, {}, E>;
17
+ export type FieldComponent<P = {}, E = {}> = DefineComponent<FieldProps & P, {}, {}, {}, {}, {}, {}>;
18
18
 
19
19
  export type Locale = 'auto' | 'en' | 'fa' | (string & {});
20
20
  export type OptionItem = string | number | { [key: string]: any; disabled?: boolean; description?: string };
@@ -49,28 +49,51 @@ export declare const FormLabel: DefineComponent<{ for?: string | null; required?
49
49
  export declare const GroupControl: DefineComponent<{ name: string; index?: number | string | null }>;
50
50
  export declare const SubmitButton: DefineComponent<{ disabled?: boolean; loading?: boolean | null; variant?: string | null; theme?: string; locale?: Locale | null }>;
51
51
 
52
- export declare const TextInput: Comp<{ type?: string; placeholder?: string | null; size?: 'sm' | 'lg' | null }>;
53
- export declare const TextAreaInput: Comp<{ rows?: number | string; placeholder?: string | null; size?: 'sm' | 'lg' | null }>;
54
- export declare const EmailInput: Comp<{ placeholder?: string | null; locale?: Locale | null }>;
55
- export declare const PasswordInput: Comp<{ placeholder?: string | null; toggle?: boolean; locale?: Locale | null }>;
56
- export declare const MobileInput: Comp<{ placeholder?: string | null; locale?: Locale | null }>;
57
- export declare const TelInput: Comp<{ placeholder?: string; defaultCountry?: string; preferredCountries?: string[]; mode?: string; validCharactersOnly?: boolean; validate?: boolean; dropdownOptions?: object; inputOptions?: object }>;
58
- export declare const FormAdornInput: Comp<{ type?: string; placeholder?: string | null; startText?: string | null; endText?: string | null; size?: 'sm' | 'lg' | null }>;
52
+ export declare const TextInput: FieldComponent<{ type?: string; placeholder?: string | null; size?: 'sm' | 'lg' | null }>;
53
+ export declare const TextAreaInput: FieldComponent<{ rows?: number | string; placeholder?: string | null; size?: 'sm' | 'lg' | null }>;
54
+ export declare const EmailInput: FieldComponent<{ placeholder?: string | null; locale?: Locale | null }>;
55
+ export declare const PasswordInput: FieldComponent<{ placeholder?: string | null; toggle?: boolean; strength?: boolean; strengthText?: boolean; strengthMessages?: { weak?: string; fair?: string; good?: string; strong?: string } | null; strengthOptions?: { minLength?: number; thresholds?: number[]; weights?: object; scorer?: (password: string) => number }; size?: 'sm' | 'lg' | null; locale?: Locale | null }>;
56
+ export declare const MobileInput: FieldComponent<{ placeholder?: string | null; locale?: Locale | null }>;
57
+ export declare const FormAdornInput: FieldComponent<{ type?: string; placeholder?: string | null; startText?: string | null; endText?: string | null; size?: 'sm' | 'lg' | null }>;
59
58
  export declare const FormAdorn: typeof FormAdornInput;
60
59
 
61
- export declare const AmountInput: Comp<{ placeholder?: string | null; unit?: string | null; min?: number | null; max?: number | null; size?: 'sm' | 'lg' | null; locale?: Locale | null }>;
62
- export declare const QuantityInput: Comp<{ min?: number; max?: number | null; step?: number; unit?: string | null; locale?: Locale | null }>;
63
- export declare const MultiQuantityInput: Comp<{ options?: Array<string | { name: string; min?: number; max?: number; description?: string; html?: boolean }>; min?: number; max?: number | null; totalMin?: number | null; totalMax?: number | null; unit?: string | null; placement?: string; locale?: Locale | null }>;
64
- export declare const RangeInput: Comp<{ min?: number; max?: number; step?: number; bubble?: boolean; formatter?: ((v: number) => string) | null; ticks?: Array<number | { value: number; label: string }> }>;
60
+ export declare const AmountInput: FieldComponent<{ placeholder?: string | null; unit?: string | null; min?: number | null; max?: number | null; size?: 'sm' | 'lg' | null; locale?: Locale | null }>;
61
+ export declare const QuantityInput: FieldComponent<{ min?: number; max?: number | null; step?: number; unit?: string | null; locale?: Locale | null }>;
62
+ export declare const MultiQuantityInput: FieldComponent<{ options?: Array<string | { name: string; min?: number; max?: number; description?: string; html?: boolean }>; min?: number; max?: number | null; totalMin?: number | null; totalMax?: number | null; unit?: string | null; placement?: string; locale?: Locale | null }>;
63
+ export declare const RangeInput: FieldComponent<{ min?: number; max?: number; step?: number; bubble?: boolean; formatter?: ((v: number) => string) | null; ticks?: Array<number | { value: number; label: string }> }>;
65
64
  export declare const RangeSliderInput: typeof RangeInput;
66
- export declare const StarRatingInput: Comp<{ value?: number; maxStars?: number; precision?: number; showValue?: boolean; clearable?: boolean }>;
65
+ export declare const StarRatingInput: FieldComponent<{ value?: number; maxStars?: number; precision?: number; showValue?: boolean; clearable?: boolean }>;
67
66
 
68
- export declare const CheckboxInput: Comp<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; indeterminate?: boolean; label?: string | null }>;
69
- export declare const SwitchInput: Comp<{ value?: any; trueValue?: any; falseValue?: any; checked?: boolean; label?: string | null }>;
70
- export declare const CheckboxButtonInput: Comp<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; variant?: string; theme?: string }>;
71
- export declare const CheckboxToggle: Comp<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; hideInput?: boolean }>;
67
+ export declare const CheckboxInput: FieldComponent<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; indeterminate?: boolean; label?: string | null }>;
68
+ export declare const SwitchInput: FieldComponent<{ value?: any; trueValue?: any; falseValue?: any; checked?: boolean; label?: string | null }>;
69
+ export declare const CheckboxButtonInput: FieldComponent<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; variant?: string; theme?: string }>;
70
+ export declare const CheckboxToggle: FieldComponent<{ type?: 'checkbox' | 'radio'; value?: any; trueValue?: any; falseValue?: any; checked?: boolean; hideInput?: boolean, formField?: boolean, formFieldCard?: boolean }>;
71
+ export declare const VoiceRecorderInput: FieldComponent<{
72
+ variant?: 'box' | 'button';
73
+ url?: string;
74
+ fieldName?: string;
75
+ multiple?: boolean;
76
+ headers?: Record<string, string>;
77
+ maxDuration?: number | null;
78
+ audioBitsPerSecond?: number;
79
+ audioConstraints?: MediaTrackConstraints;
80
+ buttonClass?: string | string[] | Record<string, boolean>;
81
+ recordingClass?: string | string[] | Record<string, boolean>;
82
+ showList?: boolean;
83
+ deleteOnRemove?: boolean;
84
+ playbackUrl?: (value: any) => string;
85
+ startText?: string | null;
86
+ stopText?: string | null;
87
+ locale?: Locale | null;
88
+ }>;
89
+
90
+ export declare const VoiceRecorderResultArea: DefineComponent<{
91
+ for: string; showList?: boolean; showProblem?: boolean;
92
+ listClass?: string | string[] | Record<string, boolean>;
93
+ alertClass?: string | string[] | Record<string, boolean>; internal?: boolean;
94
+ }>;
72
95
 
73
- export declare const ComboboxInput: Comp<{
96
+ export declare const ComboboxInput: FieldComponent<{
74
97
  options?: OptionItem[];
75
98
  valueKey?: string | null;
76
99
  labelKey?: string | null;
@@ -86,6 +109,9 @@ export declare const ComboboxInput: Comp<{
86
109
  noResultsText?: string | null;
87
110
  loadingText?: string | null;
88
111
  selectedText?: string | null;
112
+ showSelected?: boolean;
113
+ maxVisible?: number | null;
114
+ selectedSeparator?: string | null;
89
115
  searchNormalize?: boolean;
90
116
  placement?: string;
91
117
  size?: 'sm' | 'lg' | null;
@@ -94,23 +120,17 @@ export declare const ComboboxInput: Comp<{
94
120
  }>;
95
121
  /** @deprecated alias of ComboboxInput */
96
122
  export declare const Select2Input: typeof ComboboxInput;
97
- export declare const ChipsInput: Comp<{ placeholder?: string | null; separator?: string | null; allowDuplicates?: boolean; maxChips?: number | null; dismissible?: boolean; dismissIcon?: string | null; createOnBlur?: boolean; validator?: ((value: string) => boolean) | null; locale?: Locale | null }>;
98
- export declare const OTPInput: Comp<{ length?: number | null; maxLength?: number | null; type?: 'numeric' | 'alphanumeric' | 'alpha'; mask?: boolean; groups?: number[] | null; separator?: string; autoSubmit?: boolean; autofocus?: boolean }>;
123
+ export declare const ChipsInput: FieldComponent<{ placeholder?: string | null; separator?: string | null; allowDuplicates?: boolean; maxChips?: number | null; dismissible?: boolean; dismissIcon?: string | null; createOnBlur?: boolean; validator?: ((value: string) => boolean) | null; locale?: Locale | null }>;
124
+ export declare const OTPInput: FieldComponent<{ length?: number | null; maxLength?: number | null; type?: 'numeric' | 'alphanumeric' | 'alpha'; mask?: boolean; groups?: number[] | null; separator?: string; autoSubmit?: boolean; autofocus?: boolean }>;
99
125
 
100
- export declare const PersianDatePickerInput: Comp<{ calendar?: string; view?: string; min?: string | null; max?: string | null; range?: boolean; locale?: string; format?: string; inputFormat?: string | null; placeholder?: string | null; inputClass?: string; pickerOptions?: object }>;
101
- export declare const EditorInput: Comp<{ placeholder?: string; options?: object; height?: number | string | null; tinymceScriptSrc?: string | null; apiKey?: string | null }>;
102
- export declare const LocationInput: Comp<{ center?: { lat: number; lng: number }; zoom?: number; height?: number | string; tileUrl?: string; attribution?: string }>;
103
- export declare const CaptchaInput: Comp<{ url?: string; placeholder?: string | null; refreshOnSubmit?: boolean; imageWidth?: number | string; imageHeight?: number | string; locale?: Locale | null }>;
126
+ export declare const CaptchaInput: FieldComponent<{ url?: string; placeholder?: string | null; refreshOnSubmit?: boolean; imageWidth?: number | string; imageHeight?: number | string; locale?: Locale | null }>;
104
127
 
105
- export declare const FileInput: Comp<{ multiple?: boolean; endpoint?: string; accept?: string | null; headers?: Record<string, string>; fieldName?: string; locale?: Locale | null }>;
128
+ export declare const FileInput: FieldComponent<{ multiple?: boolean; endpoint?: string; accept?: string | null; headers?: Record<string, string>; fieldName?: string; locale?: Locale | null }>;
106
129
  /** @deprecated alias of FileInput */
107
130
  export declare const SimpleUploader: typeof FileInput;
108
- export declare const DropzoneInput: Comp<{ multiple?: boolean; url?: string; options?: object; headers?: Record<string, string>; locale?: Locale | null }>;
109
- export declare const UppyInput: Comp<{ multiple?: boolean; useXHR?: boolean; XHRConfig?: object; url?: string; config?: object; errorHandler?: ((m: any) => void) | null; showRestrictionCaption?: boolean; locale?: Locale | null }>;
110
131
 
111
- export declare const countryCodes: Array<{ country: string; code: string; iso: string }>;
112
132
 
113
- export interface BootstrapPlugins { Combobox?: any; Chips?: any; OtpInput?: any; Range?: any; Menu?: any }
133
+ export interface BootstrapPlugins { Combobox?: any; Chips?: any; OtpInput?: any; Range?: any; Menu?: any; Strength?: any }
114
134
  export declare function configureBootstrap(modules: BootstrapPlugins): void;
115
135
  export declare function configureI18n(options: { locale?: Locale; messages?: Record<string, Record<string, string>> }): void;
116
136
 
@@ -136,7 +156,7 @@ export declare function useDisposables(): {
136
156
  dispose: () => void;
137
157
  isDisposed: () => boolean;
138
158
  };
139
- export declare function useBsInstance(name: 'Combobox' | 'Chips' | 'OtpInput' | 'Range' | 'Menu', getElement: () => HTMLElement | null, getConfig: () => object, hooks?: { onCreate?: (instance: any, el: HTMLElement) => void; onDestroy?: (instance: any, el: HTMLElement | null) => void }): { instance: Ref<any>; create: () => Promise<any>; destroy: () => void };
159
+ export declare function useBsInstance(name: 'Combobox' | 'Chips' | 'OtpInput' | 'Range' | 'Menu' | 'Strength', getElement: () => HTMLElement | null, getConfig: () => object, hooks?: { onCreate?: (instance: any, el: HTMLElement) => void; onDestroy?: (instance: any, el: HTMLElement | null) => void }): { instance: Ref<any>; create: () => Promise<any>; destroy: () => void };
140
160
  export declare function toEnglishDigits(input: unknown): string;
141
161
 
142
162
  declare const plugin: Plugin;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "inertia-bootstrap-forms",
3
- "version": "3.0.2",
3
+ "version": "4.0.1",
4
4
  "description": "Bootstrap 6 form components for Vue 3 + Inertia.js (Laravel). Every field is bound to a single FormContainer v-model.",
5
5
  "type": "module",
6
- "main": "dist/inertia-bootstrap-forms.cjs.js",
7
- "module": "dist/inertia-bootstrap-forms.es.js",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
8
  "types": "./index.d.ts",
9
- "sideEffects": false,
9
+ "sideEffects": ["**/*.css"],
10
10
  "scripts": {
11
11
  "dev": "vite build --watch",
12
12
  "build": "vite build",
@@ -15,6 +15,7 @@
15
15
  "files": [
16
16
  "dist",
17
17
  "src",
18
+ "types",
18
19
  "index.d.ts",
19
20
  "README.md",
20
21
  "README.fa.md"
@@ -22,9 +23,50 @@
22
23
  "exports": {
23
24
  ".": {
24
25
  "types": "./index.d.ts",
25
- "import": "./dist/inertia-bootstrap-forms.es.js",
26
- "require": "./dist/inertia-bootstrap-forms.cjs.js"
26
+ "import": "./dist/index.js",
27
+ "require": "./dist/index.cjs"
27
28
  },
29
+ "./uppy": {
30
+ "types": "./types/uppy.d.ts",
31
+ "import": "./dist/uppy.js",
32
+ "require": "./dist/uppy.cjs"
33
+ },
34
+ "./uppy-dashboard": {
35
+ "types": "./types/uppy-dashboard.d.ts",
36
+ "import": "./dist/uppy-dashboard.js",
37
+ "require": "./dist/uppy-dashboard.cjs"
38
+ },
39
+ "./dropzone": {
40
+ "types": "./types/dropzone.d.ts",
41
+ "import": "./dist/dropzone.js",
42
+ "require": "./dist/dropzone.cjs"
43
+ },
44
+ "./editor": {
45
+ "types": "./types/editor.d.ts",
46
+ "import": "./dist/editor.js",
47
+ "require": "./dist/editor.cjs"
48
+ },
49
+ "./location": {
50
+ "types": "./types/location.d.ts",
51
+ "import": "./dist/location.js",
52
+ "require": "./dist/location.cjs"
53
+ },
54
+ "./tel": {
55
+ "types": "./types/tel.d.ts",
56
+ "import": "./dist/tel.js",
57
+ "require": "./dist/tel.cjs"
58
+ },
59
+ "./persian-date": {
60
+ "types": "./types/persian-date.d.ts",
61
+ "import": "./dist/persian-date.js",
62
+ "require": "./dist/persian-date.cjs"
63
+ },
64
+ "./country-codes": {
65
+ "types": "./types/country-codes.d.ts",
66
+ "import": "./dist/country-codes.js",
67
+ "require": "./dist/country-codes.cjs"
68
+ },
69
+ "./style.css": "./dist/style.css",
28
70
  "./src/*": "./src/*",
29
71
  "./package.json": "./package.json"
30
72
  },
@@ -45,45 +87,87 @@
45
87
  "chips",
46
88
  "otp"
47
89
  ],
48
- "dependencies": {
90
+ "peerDependencies": {
91
+ "@floating-ui/dom": "^1.7.6",
92
+ "@inertiajs/vue3": ">=2.0.0",
93
+ "bootstrap": "^6.0.0-alpha.1",
94
+ "vue": "^3.3.0",
49
95
  "@tinymce/tinymce-vue": "^6.1.0",
96
+ "@uppy/audio": "^3.1.0",
50
97
  "@uppy/core": "^5.2.0",
98
+ "@uppy/dashboard": "^5.1.1",
51
99
  "@uppy/vue": "^3.2.0",
100
+ "@uppy/webcam": "^5.1.0",
52
101
  "@uppy/xhr-upload": "^5.1.1",
53
102
  "@vue-leaflet/vue-leaflet": "^0.10.1",
54
- "vue-tel-input": "^9.3.0",
55
- "vue3-persian-datetime-picker": "^1.2.2"
56
- },
57
- "peerDependencies": {
58
- "@floating-ui/dom": "^1.7.6",
59
- "@inertiajs/vue3": ">=2.0.0",
60
- "bootstrap": "^6.0.0-alpha.1",
61
103
  "dropzone": "^6.0.0-beta.2",
62
104
  "leaflet": "^1.9.0",
63
- "vue": "^3.3.0"
105
+ "vue-tel-input": "^9.3.0",
106
+ "vue3-persian-datetime-picker": "^1.2.2"
64
107
  },
65
108
  "peerDependenciesMeta": {
109
+ "@tinymce/tinymce-vue": {
110
+ "optional": true
111
+ },
112
+ "@uppy/audio": {
113
+ "optional": true
114
+ },
115
+ "@uppy/core": {
116
+ "optional": true
117
+ },
118
+ "@uppy/dashboard": {
119
+ "optional": true
120
+ },
121
+ "@uppy/vue": {
122
+ "optional": true
123
+ },
124
+ "@uppy/webcam": {
125
+ "optional": true
126
+ },
127
+ "@uppy/xhr-upload": {
128
+ "optional": true
129
+ },
130
+ "@vue-leaflet/vue-leaflet": {
131
+ "optional": true
132
+ },
66
133
  "dropzone": {
67
134
  "optional": true
68
135
  },
69
136
  "leaflet": {
70
137
  "optional": true
138
+ },
139
+ "vue-tel-input": {
140
+ "optional": true
141
+ },
142
+ "vue3-persian-datetime-picker": {
143
+ "optional": true
71
144
  }
72
145
  },
73
146
  "devDependencies": {
74
147
  "@floating-ui/dom": "^1.7.6",
75
148
  "@inertiajs/vue3": "^2.0.0",
149
+ "@tinymce/tinymce-vue": "^6.1.0",
150
+ "@uppy/audio": "^3.1.0",
151
+ "@uppy/core": "^5.2.0",
152
+ "@uppy/dashboard": "^5.1.1",
153
+ "@uppy/vue": "^3.2.0",
154
+ "@uppy/webcam": "^5.1.0",
155
+ "@uppy/xhr-upload": "^5.1.1",
76
156
  "@vitejs/plugin-vue": "^5.2.4",
157
+ "@vue-leaflet/vue-leaflet": "^0.10.1",
77
158
  "@vue/test-utils": "^2.4.6",
78
159
  "bootstrap": "6.0.0-alpha.1",
79
160
  "dropzone": "^6.0.0-beta.2",
80
161
  "jsdom": "^25.0.0",
162
+ "leaflet": "^1.9.0",
81
163
  "vite": "^5",
82
164
  "vitest": "^2.1.0",
83
- "vue": "^3.5.0"
165
+ "vue": "^3.5.0",
166
+ "vue-tel-input": "^9.3.0",
167
+ "vue3-persian-datetime-picker": "^1.2.2"
84
168
  },
85
169
  "bugs": {
86
170
  "url": "https://github.com/novinvision/inertia-bootstrap-forms/issues"
87
171
  },
88
172
  "homepage": "https://github.com/novinvision/inertia-bootstrap-forms#readme"
89
- }
173
+ }
@@ -31,7 +31,7 @@ export default defineComponent({
31
31
  </script>
32
32
 
33
33
  <template>
34
- <div :class="{
34
+ <div :class="{
35
35
  'form-field': formField,
36
36
  'form-field-card': formFieldCard,
37
37
  'is-invalid': isInvalid, disabled: isDisabled || readonly ,