tedir-select
Advanced tools
Comparing version 0.0.1-wood6 to 0.0.1-wood7
@@ -10,6 +10,6 @@ import { defineComponent, ref, computed, onUpdated, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, Fragment, createTextVNode, toDisplayString, withDirectives, vModelText, normalizeStyle, renderList, unref, renderSlot } from "vue"; | ||
}; | ||
const _hoisted_1 = { class: "selectPicker" }; | ||
const _hoisted_2 = { class: "selectWrap" }; | ||
const _hoisted_3 = ["onClick"]; | ||
const _hoisted_4 = { class: "selectCheck" }; | ||
const _hoisted_1$1 = { class: "selectPicker" }; | ||
const _hoisted_2$1 = { class: "selectWrap" }; | ||
const _hoisted_3$1 = ["onClick"]; | ||
const _hoisted_4$1 = { class: "selectCheck" }; | ||
const _hoisted_5 = ["checked", "id", "onChange"]; | ||
@@ -25,3 +25,3 @@ const _hoisted_6 = ["for"]; | ||
const _hoisted_14 = ["onClick"]; | ||
const _sfc_main = /* @__PURE__ */ defineComponent({ | ||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({ | ||
props: { | ||
@@ -97,4 +97,4 @@ modelValue: { default: null }, | ||
]), | ||
createElementVNode("div", _hoisted_1, [ | ||
createElementVNode("div", _hoisted_2, [ | ||
createElementVNode("div", _hoisted_1$1, [ | ||
createElementVNode("div", _hoisted_2$1, [ | ||
withDirectives(createElementVNode("input", { | ||
@@ -125,3 +125,3 @@ type: "search", | ||
}, [ | ||
createElementVNode("div", _hoisted_4, [ | ||
createElementVNode("div", _hoisted_4$1, [ | ||
createElementVNode("input", { | ||
@@ -142,3 +142,3 @@ type: "checkbox", | ||
]) | ||
], 8, _hoisted_3)) : typeof option === "object" && __props.prop in option ? (openBlock(), createElementBlock("div", { | ||
], 8, _hoisted_3$1)) : typeof option === "object" && __props.prop in option ? (openBlock(), createElementBlock("div", { | ||
key: 1, | ||
@@ -223,3 +223,108 @@ onClick: ($event) => { | ||
}); | ||
var SelectBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37fb9193"]]); | ||
export { SelectBox }; | ||
var SelectBox = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a5af6912"]]); | ||
var ComboBox_vue_vue_type_style_index_0_scoped_true_lang = ""; | ||
const _hoisted_1 = { class: "comboPicker" }; | ||
const _hoisted_2 = ["onClick"]; | ||
const _hoisted_3 = ["onClick"]; | ||
const _hoisted_4 = ["onClick"]; | ||
const _sfc_main = /* @__PURE__ */ defineComponent({ | ||
props: { | ||
modelValue: { default: null }, | ||
options: { default: [] }, | ||
prop: { default: "value" }, | ||
placeholder: { default: "-- combo option --" }, | ||
size: { default: 0 } | ||
}, | ||
emits: ["update:modelValue"], | ||
setup(__props, { emit }) { | ||
const props = __props; | ||
const picker = ref(false); | ||
const searchStr = ref(""); | ||
const filteredOptions = computed(() => { | ||
let newOptions = props.options; | ||
if (searchStr.value.length >= 1) { | ||
newOptions = newOptions.filter((item) => { | ||
if (isNaN(item) === false && Number(item) === Number(searchStr.value)) { | ||
return true; | ||
} else if (typeof item === "string" && item.toLowerCase().includes(searchStr.value.toLowerCase())) { | ||
return true; | ||
} else if (typeof item === "object" && item !== null && Object.prototype.toString.call(item) === "[object Object]") { | ||
for (const key of Object.keys(item)) { | ||
if (isNaN(item[key]) === false && Number(item[key]) === Number(searchStr.value)) { | ||
return true; | ||
} else if (typeof item[key] === "string" && item[key].toLowerCase().includes(searchStr.value.toLowerCase())) { | ||
return true; | ||
} | ||
} | ||
} | ||
return false; | ||
}); | ||
} | ||
return newOptions; | ||
}); | ||
onUpdated(() => { | ||
document.addEventListener("click", () => { | ||
picker.value = false; | ||
}); | ||
}); | ||
return (_ctx, _cache) => { | ||
return openBlock(), createElementBlock("div", { | ||
class: normalizeClass(["combo", { show: picker.value === true }]), | ||
onClick: _cache[3] || (_cache[3] = withModifiers(() => { | ||
}, ["stop"])) | ||
}, [ | ||
withDirectives(createElementVNode("input", { | ||
type: "search", | ||
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchStr.value = $event), | ||
onInput: _cache[1] || (_cache[1] = ($event) => unref(filteredOptions).length >= 1 && searchStr.value !== "" ? picker.value = true : picker.value = false), | ||
onClick: _cache[2] || (_cache[2] = ($event) => unref(filteredOptions).length >= 1 && searchStr.value !== "" ? picker.value = true : picker.value = false), | ||
class: "comboBox" | ||
}, null, 544), [ | ||
[vModelText, searchStr.value] | ||
]), | ||
createElementVNode("div", _hoisted_1, [ | ||
createElementVNode("div", { | ||
class: "comboList", | ||
style: normalizeStyle({ "max-height": Number(__props.size) !== 0 ? Number(__props.size) * 44 + "px" : "auto" }) | ||
}, [ | ||
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredOptions), (option, index) => { | ||
return openBlock(), createElementBlock(Fragment, { | ||
key: "option-" + option | ||
}, [ | ||
typeof option === "string" ? (openBlock(), createElementBlock("div", { | ||
key: 0, | ||
onClick: ($event) => { | ||
searchStr.value = option; | ||
emit("update:modelValue", option); | ||
picker.value = false; | ||
}, | ||
class: "comboItem" | ||
}, toDisplayString(option), 9, _hoisted_2)) : typeof option === "object" && __props.prop in option ? (openBlock(), createElementBlock("div", { | ||
key: 1, | ||
onClick: ($event) => { | ||
searchStr.value = option[__props.prop]; | ||
emit("update:modelValue", option); | ||
picker.value = false; | ||
}, | ||
class: "comboItem" | ||
}, toDisplayString(option[__props.prop]), 9, _hoisted_3)) : (openBlock(), createElementBlock("div", { | ||
key: 2, | ||
onClick: ($event) => { | ||
searchStr.value = option; | ||
emit("update:modelValue", option); | ||
picker.value = false; | ||
}, | ||
class: "comboItem" | ||
}, [ | ||
renderSlot(_ctx.$slots, "default", { option }, void 0, true) | ||
], 8, _hoisted_4)) | ||
], 64); | ||
}), 128)) | ||
], 4) | ||
]) | ||
], 2); | ||
}; | ||
} | ||
}); | ||
var ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75a36584"]]); | ||
export { ComboBox, SelectBox }; |
@@ -1,1 +0,1 @@ | ||
(function(s,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis!="undefined"?globalThis:s||self,e(s.TedirSelect={},s.Vue))})(this,function(s,e){"use strict";var $="",V=(l,c)=>{const k=l.__vccOpts||l;for(const[n,o]of c)k[n]=o;return k};const h={class:"selectPicker"},y={class:"selectWrap"},g=["onClick"],B={class:"selectCheck"},C=["checked","id","onChange"],E=["for"],N=["onClick"],S={class:"selectCheck"},b=["checked","id","onChange"],x=["for"],I=["onClick"],j=["onClick"],L=["onClick"],D=["onClick"];var T=V(e.defineComponent({props:{modelValue:{default:null},options:{default:[]},prop:{default:"value"},placeholder:{default:"-- Select option --"},size:{default:0}},emits:["update:modelValue"],setup(l,{emit:c}){const k=l,n=e.ref(!1),o=e.ref(""),f=e.computed(()=>{let d=k.options;return o.value.length>=1&&(d=d.filter(a=>{if(isNaN(a)===!1&&Number(a)===Number(o.value))return!0;if(typeof a=="string"&&a.toLowerCase().includes(o.value.toLowerCase()))return!0;if(typeof a=="object"&&a!==null&&Object.prototype.toString.call(a)==="[object Object]")for(const t of Object.keys(a)){if(isNaN(a[t])===!1&&Number(a[t])===Number(o.value))return!0;if(typeof a[t]=="string"&&a[t].toLowerCase().includes(o.value.toLowerCase()))return!0}return!1})),d});e.onUpdated(()=>{document.addEventListener("click",()=>{n.value=!1})});const u=(()=>{let d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a="";for(let t=0;t<10;t++)a+=d.charAt(Math.floor(Math.random()*d.length));return a})();return(d,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select",{show:n.value===!0}]),onClick:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"selectBox",onClick:a[0]||(a[0]=t=>n.value=!n.value)},[typeof l.modelValue=="string"&&l.modelValue!==""?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.modelValue),1)],64)):typeof l.modelValue=="object"&&l.prop in l.modelValue?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.modelValue[l.prop]),1)],64)):Array.isArray(l.modelValue)&&l.modelValue.length>=1&&typeof l.modelValue[0]=="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(l.modelValue.join(", ")),1)],64)):Array.isArray(l.modelValue)&&l.modelValue.length>=1&&typeof l.modelValue[0]=="object"&&l.prop in l.modelValue[0]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(l.modelValue.map(t=>t[l.prop]).join(", ")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode(e.toDisplayString(l.placeholder),1)],64))]),e.createElementVNode("div",h,[e.createElementVNode("div",y,[e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":a[1]||(a[1]=t=>o.value=t),class:"selectSearch"},null,512),[[e.vModelText,o.value]])]),Array.isArray(l.modelValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"selectList",style:e.normalizeStyle({"max-height":Number(l.size)!==0?Number(l.size)*44+"px":"auto"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(t,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"option-"+t},[typeof t=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:i=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(r=>r===t),1):l.modelValue.push(t),c("update:modelValue",l.modelValue)},class:"selectItem"},[e.createElementVNode("div",B,[e.createElementVNode("input",{type:"checkbox",class:"selectCheckInput",checked:l.modelValue.includes(t),id:"check-"+(e.unref(u)+String(m)),onChange:i=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(r=>r===t),1):l.modelValue.push(t),c("update:modelValue",l.modelValue)}},null,40,C),e.createElementVNode("label",{class:"selectCheckLabel",for:"check-"+(e.unref(u)+String(m))},e.toDisplayString(t),9,E)])],8,g)):typeof t=="object"&&l.prop in t?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:i=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(r=>r[l.prop]===t[l.prop]),1):l.modelValue.push(t),c("update:modelValue",l.modelValue)},class:"selectItem"},[e.createElementVNode("div",S,[e.createElementVNode("input",{type:"checkbox",class:"selectCheckInput",checked:l.modelValue.includes(t),id:"check-"+(e.unref(u)+String(m)),onChange:i=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(r=>r[l.prop]===t[l.prop]),1):l.modelValue.push(t),c("update:modelValue",l.modelValue)}},null,40,b),e.createElementVNode("label",{class:"selectCheckLabel",for:"check-"+(e.unref(u)+String(m))},e.toDisplayString(t[l.prop]),9,x)])],8,N)):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:i=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(r=>r===t),1):l.modelValue.push(t),c("update:modelValue",l.modelValue)},class:"selectItem"},[e.renderSlot(d.$slots,"default",{option:t,items:l.modelValue},void 0,!0)],8,I))],64))),128))],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"selectList",style:e.normalizeStyle({"max-height":Number(l.size)!==0?Number(l.size)*44+"px":"auto"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(t,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"option-"+t},[typeof t=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:i=>{c("update:modelValue",t),n.value=!1},class:"selectItem"},e.toDisplayString(t),9,j)):typeof t=="object"&&l.prop in t?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:i=>{c("update:modelValue",t),n.value=!1},class:"selectItem"},e.toDisplayString(t[l.prop]),9,L)):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:i=>{c("update:modelValue",t),n.value=!1},class:"selectItem"},[e.renderSlot(d.$slots,"default",{option:t},void 0,!0)],8,D))],64))),128))],4))])],2))}}),[["__scopeId","data-v-37fb9193"]]);s.SelectBox=T,Object.defineProperty(s,"__esModule",{value:!0}),s[Symbol.toStringTag]="Module"}); | ||
(function(s,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis!="undefined"?globalThis:s||self,e(s.TedirSelect={},s.Vue))})(this,function(s,e){"use strict";var A="",y=(l,r)=>{const u=l.__vccOpts||l;for(const[d,c]of r)u[d]=c;return u};const h={class:"selectPicker"},g={class:"selectWrap"},B=["onClick"],C={class:"selectCheck"},b=["checked","id","onChange"],N=["for"],E=["onClick"],S={class:"selectCheck"},x=["checked","id","onChange"],$=["for"],j=["onClick"],I=["onClick"],L=["onClick"],w=["onClick"];var z=y(e.defineComponent({props:{modelValue:{default:null},options:{default:[]},prop:{default:"value"},placeholder:{default:"-- Select option --"},size:{default:0}},emits:["update:modelValue"],setup(l,{emit:r}){const u=l,d=e.ref(!1),c=e.ref(""),k=e.computed(()=>{let a=u.options;return c.value.length>=1&&(a=a.filter(o=>{if(isNaN(o)===!1&&Number(o)===Number(c.value))return!0;if(typeof o=="string"&&o.toLowerCase().includes(c.value.toLowerCase()))return!0;if(typeof o=="object"&&o!==null&&Object.prototype.toString.call(o)==="[object Object]")for(const t of Object.keys(o)){if(isNaN(o[t])===!1&&Number(o[t])===Number(c.value))return!0;if(typeof o[t]=="string"&&o[t].toLowerCase().includes(c.value.toLowerCase()))return!0}return!1})),a});e.onUpdated(()=>{document.addEventListener("click",()=>{d.value=!1})});const n=(()=>{let a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o="";for(let t=0;t<10;t++)o+=a.charAt(Math.floor(Math.random()*a.length));return o})();return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select",{show:d.value===!0}]),onClick:o[2]||(o[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"selectBox",onClick:o[0]||(o[0]=t=>d.value=!d.value)},[typeof l.modelValue=="string"&&l.modelValue!==""?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.modelValue),1)],64)):typeof l.modelValue=="object"&&l.prop in l.modelValue?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.modelValue[l.prop]),1)],64)):Array.isArray(l.modelValue)&&l.modelValue.length>=1&&typeof l.modelValue[0]=="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(l.modelValue.join(", ")),1)],64)):Array.isArray(l.modelValue)&&l.modelValue.length>=1&&typeof l.modelValue[0]=="object"&&l.prop in l.modelValue[0]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(l.modelValue.map(t=>t[l.prop]).join(", ")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode(e.toDisplayString(l.placeholder),1)],64))]),e.createElementVNode("div",h,[e.createElementVNode("div",g,[e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":o[1]||(o[1]=t=>c.value=t),class:"selectSearch"},null,512),[[e.vModelText,c.value]])]),Array.isArray(l.modelValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"selectList",style:e.normalizeStyle({"max-height":Number(l.size)!==0?Number(l.size)*44+"px":"auto"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(t,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"option-"+t},[typeof t=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:m=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(i=>i===t),1):l.modelValue.push(t),r("update:modelValue",l.modelValue)},class:"selectItem"},[e.createElementVNode("div",C,[e.createElementVNode("input",{type:"checkbox",class:"selectCheckInput",checked:l.modelValue.includes(t),id:"check-"+(e.unref(n)+String(V)),onChange:m=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(i=>i===t),1):l.modelValue.push(t),r("update:modelValue",l.modelValue)}},null,40,b),e.createElementVNode("label",{class:"selectCheckLabel",for:"check-"+(e.unref(n)+String(V))},e.toDisplayString(t),9,N)])],8,B)):typeof t=="object"&&l.prop in t?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:m=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(i=>i[l.prop]===t[l.prop]),1):l.modelValue.push(t),r("update:modelValue",l.modelValue)},class:"selectItem"},[e.createElementVNode("div",S,[e.createElementVNode("input",{type:"checkbox",class:"selectCheckInput",checked:l.modelValue.includes(t),id:"check-"+(e.unref(n)+String(V)),onChange:m=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(i=>i[l.prop]===t[l.prop]),1):l.modelValue.push(t),r("update:modelValue",l.modelValue)}},null,40,x),e.createElementVNode("label",{class:"selectCheckLabel",for:"check-"+(e.unref(n)+String(V))},e.toDisplayString(t[l.prop]),9,$)])],8,E)):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:m=>{l.modelValue.includes(t)?l.modelValue.splice(l.modelValue.findIndex(i=>i===t),1):l.modelValue.push(t),r("update:modelValue",l.modelValue)},class:"selectItem"},[e.renderSlot(a.$slots,"default",{option:t,items:l.modelValue},void 0,!0)],8,j))],64))),128))],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"selectList",style:e.normalizeStyle({"max-height":Number(l.size)!==0?Number(l.size)*44+"px":"auto"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(t,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"option-"+t},[typeof t=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:m=>{r("update:modelValue",t),d.value=!1},class:"selectItem"},e.toDisplayString(t),9,I)):typeof t=="object"&&l.prop in t?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:m=>{r("update:modelValue",t),d.value=!1},class:"selectItem"},e.toDisplayString(t[l.prop]),9,L)):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:m=>{r("update:modelValue",t),d.value=!1},class:"selectItem"},[e.renderSlot(a.$slots,"default",{option:t},void 0,!0)],8,w))],64))),128))],4))])],2))}}),[["__scopeId","data-v-a5af6912"]]),p="";const D={class:"comboPicker"},O=["onClick"],F=["onClick"],T=["onClick"];var M=y(e.defineComponent({props:{modelValue:{default:null},options:{default:[]},prop:{default:"value"},placeholder:{default:"-- combo option --"},size:{default:0}},emits:["update:modelValue"],setup(l,{emit:r}){const u=l,d=e.ref(!1),c=e.ref(""),k=e.computed(()=>{let f=u.options;return c.value.length>=1&&(f=f.filter(n=>{if(isNaN(n)===!1&&Number(n)===Number(c.value))return!0;if(typeof n=="string"&&n.toLowerCase().includes(c.value.toLowerCase()))return!0;if(typeof n=="object"&&n!==null&&Object.prototype.toString.call(n)==="[object Object]")for(const a of Object.keys(n)){if(isNaN(n[a])===!1&&Number(n[a])===Number(c.value))return!0;if(typeof n[a]=="string"&&n[a].toLowerCase().includes(c.value.toLowerCase()))return!0}return!1})),f});return e.onUpdated(()=>{document.addEventListener("click",()=>{d.value=!1})}),(f,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["combo",{show:d.value===!0}]),onClick:n[3]||(n[3]=e.withModifiers(()=>{},["stop"]))},[e.withDirectives(e.createElementVNode("input",{type:"search","onUpdate:modelValue":n[0]||(n[0]=a=>c.value=a),onInput:n[1]||(n[1]=a=>e.unref(k).length>=1&&c.value!==""?d.value=!0:d.value=!1),onClick:n[2]||(n[2]=a=>e.unref(k).length>=1&&c.value!==""?d.value=!0:d.value=!1),class:"comboBox"},null,544),[[e.vModelText,c.value]]),e.createElementVNode("div",D,[e.createElementVNode("div",{class:"comboList",style:e.normalizeStyle({"max-height":Number(l.size)!==0?Number(l.size)*44+"px":"auto"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"option-"+a},[typeof a=="string"?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:t=>{c.value=a,r("update:modelValue",a),d.value=!1},class:"comboItem"},e.toDisplayString(a),9,O)):typeof a=="object"&&l.prop in a?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:t=>{c.value=a[l.prop],r("update:modelValue",a),d.value=!1},class:"comboItem"},e.toDisplayString(a[l.prop]),9,F)):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:t=>{c.value=a,r("update:modelValue",a),d.value=!1},class:"comboItem"},[e.renderSlot(f.$slots,"default",{option:a},void 0,!0)],8,T))],64))),128))],4)])],2))}}),[["__scopeId","data-v-75a36584"]]);s.ComboBox=M,s.SelectBox=z,Object.defineProperty(s,"__esModule",{value:!0}),s[Symbol.toStringTag]="Module"}); |
{ | ||
"name": "tedir-select", | ||
"version": "0.0.1-wood6", | ||
"version": "0.0.1-wood7", | ||
"description": "Tedir Select is a Vue 3 & Web Component Custom SelectBox, ListBox, Taggable, etc.", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue/tedir-select-vue.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
278670
5807
0