hzzt-plus 0.0.1-dev → 0.0.1-dev-01

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.
@@ -7020,7 +7020,7 @@
7020
7020
  },
7021
7021
  emits: ["change"],
7022
7022
  setup(__props, { emit: emits }) {
7023
- const props = __props;
7023
+ const dProps = __props;
7024
7024
  const toggle = vue.ref(false);
7025
7025
  function dropToggle() {
7026
7026
  toggle.value = !toggle.value;
@@ -7029,10 +7029,10 @@
7029
7029
  toggle.value = false;
7030
7030
  }
7031
7031
  function selectValue(val) {
7032
- if (props.returnType === "Array") {
7032
+ if (dProps.returnType === "Array") {
7033
7033
  emits("change", val);
7034
7034
  }
7035
- if (props.returnType === "String") {
7035
+ if (dProps.returnType === "String") {
7036
7036
  emits("change", val.last);
7037
7037
  }
7038
7038
  }
@@ -7049,31 +7049,31 @@
7049
7049
  vue.createElementVNode("ul", _hoisted_4, [
7050
7050
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option, index) => {
7051
7051
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
7052
- option[props.children] && option[props.children].length ? (vue.openBlock(), vue.createElementBlock("li", {
7053
- class: vue.normalizeClass({ "hzzt-dropdown-menu-item": true, selected: __props.defaultValue.includes(option[props.value]) }),
7052
+ option[__props.props.children] && option[__props.props.children].length ? (vue.openBlock(), vue.createElementBlock("li", {
7053
+ class: vue.normalizeClass({ "hzzt-dropdown-menu-item": true, selected: __props.defaultValue.includes(option[__props.props.value]) }),
7054
7054
  key: index
7055
7055
  }, [
7056
7056
  vue.createElementVNode("a", {
7057
- onClick: ($event) => selectValue([option[props.value]]),
7057
+ onClick: ($event) => selectValue([option[__props.props.value]]),
7058
7058
  class: "hzzt-dropdown-menu-item-label"
7059
- }, vue.toDisplayString(option[props.label]), 9, _hoisted_5)
7059
+ }, vue.toDisplayString(option[__props.props.label]), 9, _hoisted_5)
7060
7060
  ], 2)) : (vue.openBlock(), vue.createElementBlock("li", {
7061
7061
  key: index + "submenu",
7062
7062
  class: "hzzt-dropdown-menu-item hzzt-dropdown-submenu"
7063
7063
  }, [
7064
- vue.createElementVNode("a", _hoisted_6, vue.toDisplayString(option[props.label]), 1),
7064
+ vue.createElementVNode("a", _hoisted_6, vue.toDisplayString(option[__props.props.label]), 1),
7065
7065
  vue.createElementVNode("ul", {
7066
7066
  class: vue.normalizeClass([["pull-" + __props.position], "hzzt-dropdown-menu"])
7067
7067
  }, [
7068
7068
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(option.children, (child, cIndex) => {
7069
7069
  return vue.openBlock(), vue.createElementBlock("li", {
7070
- class: vue.normalizeClass({ "hzzt-dropdown-menu-item": true, selected: __props.defaultValue.includes(child[props.value]) }),
7070
+ class: vue.normalizeClass({ "hzzt-dropdown-menu-item": true, selected: __props.defaultValue.includes(child[__props.props.value]) }),
7071
7071
  key: cIndex
7072
7072
  }, [
7073
7073
  vue.createElementVNode("a", {
7074
- onClick: ($event) => selectValue([option[props.value], child[props.value]]),
7074
+ onClick: ($event) => selectValue([option[__props.props.value], child[__props.props.value]]),
7075
7075
  class: "hzzt-dropdown-menu-item-label"
7076
- }, vue.toDisplayString(child[props.label]), 9, _hoisted_7)
7076
+ }, vue.toDisplayString(child[__props.props.label]), 9, _hoisted_7)
7077
7077
  ], 2);
7078
7078
  }), 128))
7079
7079
  ], 2)
@@ -25,5 +25,5 @@ function print() { __p += __j.call(arguments, '') }
25
25
  * Released under MIT license <https://lodash.com/license>
26
26
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
27
27
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
28
- */it&&document.body;const nu=(n,r)=>{if(n.install=t=>{for(const e of[n,...Object.values(r!=null?r:{})])t.component(e.name,e)},r)for(const[t,e]of Object.entries(r))n[t]=e;return n};var ru=(n,r)=>{const t=n.__vccOpts||n;for(const[e,i]of r)t[e]=i;return t};const M$={key:0,class:"hzzt-title flex align-items-center"},B$={key:0,class:"decorative-line"},W$={class:"label-name"},D$=d.defineComponent({name:"HzztTitle"}),N$=d.defineComponent({...D$,props:{label:String,sideline:{type:Boolean,default:!0}},setup(n){const r=n,t=d.useSlots(),e=d.computed(()=>{var i,a,u;return r.label||((u=(a=(i=t==null?void 0:t.default)==null?void 0:i.call(t))==null?void 0:a[0])==null?void 0:u.children)});return(i,a)=>d.unref(e)?(d.openBlock(),d.createElementBlock("div",M$,[n.sideline?(d.openBlock(),d.createElementBlock("span",B$)):d.createCommentVNode("v-if",!0),d.renderSlot(i.$slots,"before"),d.createElementVNode("label",W$,[d.renderSlot(i.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(n.label),1)])])])):d.createCommentVNode("v-if",!0)}});var G$=ru(N$,[["__file","index.vue"]]);const tu=nu(G$),U$=n=>typeof Element=="undefined"?!1:n instanceof Element,Un=new Map;let eu;it&&(document.addEventListener("mousedown",n=>eu=n),document.addEventListener("mouseup",n=>{for(const r of Un.values())for(const{documentHandler:t}of r)t(n,eu)}));function iu(n,r){let t=[];return Array.isArray(r.arg)?t=r.arg:U$(r.arg)&&t.push(r.arg),function(e,i){const a=r.instance.popperRef,u=e.target,f=i==null?void 0:i.target,l=!r||!r.instance,s=!u||!f,c=n.contains(u)||n.contains(f),v=n===u,h=t.length&&t.some(A=>A==null?void 0:A.contains(u))||t.length&&t.includes(f),g=a&&(a.contains(u)||a.contains(f));l||s||c||v||h||g||r.value(e,i)}}const j$={beforeMount(n,r){Un.has(n)||Un.set(n,[]),Un.get(n).push({documentHandler:iu(n,r),bindingFn:r.value})},updated(n,r){Un.has(n)||Un.set(n,[]);const t=Un.get(n),e=t.findIndex(a=>a.bindingFn===r.oldValue),i={documentHandler:iu(n,r),bindingFn:r.value};e>=0?t.splice(e,1,i):t.push(i)},unmounted(n){Un.delete(n)}},z$=["onClick"],H$={class:"hzzt-dropdown-name"},Y$=d.createElementVNode("span",{class:"caret"},null,-1),q$={class:"hzzt-dropdown-menu"},K$=["onClick"],X$={class:"submenu"},Z$=["onClick"],k$=d.defineComponent({name:"HzztDropDown"}),J$=d.defineComponent({...k$,props:{options:{type:Array,default:()=>[]},label:String,value:String,defaultValue:{type:Array,default:()=>[]},position:{type:String,default:"right"},props:{type:Object,default:()=>({children:"children",label:"label",value:"value"})},returnType:{type:String,default:"Array"}},emits:["change"],setup(n,{emit:r}){const t=n,e=d.ref(!1);function i(){e.value=!e.value}function a(){e.value=!1}function u(f){t.returnType==="Array"&&r("change",f),t.returnType==="String"&&r("change",f.last)}return(f,l)=>d.withDirectives((d.openBlock(),d.createElementBlock("ul",{onClick:d.withModifiers(i,["stop"]),class:"hzzt-dropdown"},[d.createElementVNode("li",{class:d.normalizeClass({"hzzt-dropdown-li":!0,"hzzt-dropdown-li-show":e.value})},[d.createElementVNode("span",H$,d.toDisplayString(n.label),1),Y$,d.createElementVNode("ul",q$,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.options,(s,c)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[s[t.children]&&s[t.children].length?(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass({"hzzt-dropdown-menu-item":!0,selected:n.defaultValue.includes(s[t.value])}),key:c},[d.createElementVNode("a",{onClick:v=>u([s[t.value]]),class:"hzzt-dropdown-menu-item-label"},d.toDisplayString(s[t.label]),9,K$)],2)):(d.openBlock(),d.createElementBlock("li",{key:c+"submenu",class:"hzzt-dropdown-menu-item hzzt-dropdown-submenu"},[d.createElementVNode("a",X$,d.toDisplayString(s[t.label]),1),d.createElementVNode("ul",{class:d.normalizeClass([["pull-"+n.position],"hzzt-dropdown-menu"])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.children,(v,h)=>(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass({"hzzt-dropdown-menu-item":!0,selected:n.defaultValue.includes(v[t.value])}),key:h},[d.createElementVNode("a",{onClick:g=>u([s[t.value],v[t.value]]),class:"hzzt-dropdown-menu-item-label"},d.toDisplayString(v[t.label]),9,Z$)],2))),128))],2)])),s.divider?(d.openBlock(),d.createElementBlock("li",{class:"divider",key:c+"divider"})):d.createCommentVNode("v-if",!0)],64))),256))])],2)],8,z$)),[[d.unref(j$),a]])}});var V$=ru(J$,[["__file","index.vue"]]);const au=nu(V$);var Q$=[tu,au],ny=[],me=we([...Q$,...ny]);const ry=me.install,ty=me.version;M.HzztDropdown=au,M.HzztTitle=tu,M.default=me,M.install=ry,M.makeInstaller=we,M.version=ty,Object.defineProperty(M,"__esModule",{value:!0})});
28
+ */it&&document.body;const nu=(n,r)=>{if(n.install=t=>{for(const e of[n,...Object.values(r!=null?r:{})])t.component(e.name,e)},r)for(const[t,e]of Object.entries(r))n[t]=e;return n};var ru=(n,r)=>{const t=n.__vccOpts||n;for(const[e,i]of r)t[e]=i;return t};const M$={key:0,class:"hzzt-title flex align-items-center"},B$={key:0,class:"decorative-line"},W$={class:"label-name"},D$=d.defineComponent({name:"HzztTitle"}),N$=d.defineComponent({...D$,props:{label:String,sideline:{type:Boolean,default:!0}},setup(n){const r=n,t=d.useSlots(),e=d.computed(()=>{var i,a,u;return r.label||((u=(a=(i=t==null?void 0:t.default)==null?void 0:i.call(t))==null?void 0:a[0])==null?void 0:u.children)});return(i,a)=>d.unref(e)?(d.openBlock(),d.createElementBlock("div",M$,[n.sideline?(d.openBlock(),d.createElementBlock("span",B$)):d.createCommentVNode("v-if",!0),d.renderSlot(i.$slots,"before"),d.createElementVNode("label",W$,[d.renderSlot(i.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(n.label),1)])])])):d.createCommentVNode("v-if",!0)}});var G$=ru(N$,[["__file","index.vue"]]);const tu=nu(G$),U$=n=>typeof Element=="undefined"?!1:n instanceof Element,Un=new Map;let eu;it&&(document.addEventListener("mousedown",n=>eu=n),document.addEventListener("mouseup",n=>{for(const r of Un.values())for(const{documentHandler:t}of r)t(n,eu)}));function iu(n,r){let t=[];return Array.isArray(r.arg)?t=r.arg:U$(r.arg)&&t.push(r.arg),function(e,i){const a=r.instance.popperRef,u=e.target,f=i==null?void 0:i.target,l=!r||!r.instance,s=!u||!f,c=n.contains(u)||n.contains(f),v=n===u,h=t.length&&t.some(A=>A==null?void 0:A.contains(u))||t.length&&t.includes(f),g=a&&(a.contains(u)||a.contains(f));l||s||c||v||h||g||r.value(e,i)}}const j$={beforeMount(n,r){Un.has(n)||Un.set(n,[]),Un.get(n).push({documentHandler:iu(n,r),bindingFn:r.value})},updated(n,r){Un.has(n)||Un.set(n,[]);const t=Un.get(n),e=t.findIndex(a=>a.bindingFn===r.oldValue),i={documentHandler:iu(n,r),bindingFn:r.value};e>=0?t.splice(e,1,i):t.push(i)},unmounted(n){Un.delete(n)}},z$=["onClick"],H$={class:"hzzt-dropdown-name"},Y$=d.createElementVNode("span",{class:"caret"},null,-1),q$={class:"hzzt-dropdown-menu"},K$=["onClick"],X$={class:"submenu"},Z$=["onClick"],k$=d.defineComponent({name:"HzztDropDown"}),J$=d.defineComponent({...k$,props:{options:{type:Array,default:()=>[]},label:String,value:String,defaultValue:{type:Array,default:()=>[]},position:{type:String,default:"right"},props:{type:Object,default:()=>({children:"children",label:"label",value:"value"})},returnType:{type:String,default:"Array"}},emits:["change"],setup(n,{emit:r}){const t=n,e=d.ref(!1);function i(){e.value=!e.value}function a(){e.value=!1}function u(f){t.returnType==="Array"&&r("change",f),t.returnType==="String"&&r("change",f.last)}return(f,l)=>d.withDirectives((d.openBlock(),d.createElementBlock("ul",{onClick:d.withModifiers(i,["stop"]),class:"hzzt-dropdown"},[d.createElementVNode("li",{class:d.normalizeClass({"hzzt-dropdown-li":!0,"hzzt-dropdown-li-show":e.value})},[d.createElementVNode("span",H$,d.toDisplayString(n.label),1),Y$,d.createElementVNode("ul",q$,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.options,(s,c)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[s[n.props.children]&&s[n.props.children].length?(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass({"hzzt-dropdown-menu-item":!0,selected:n.defaultValue.includes(s[n.props.value])}),key:c},[d.createElementVNode("a",{onClick:v=>u([s[n.props.value]]),class:"hzzt-dropdown-menu-item-label"},d.toDisplayString(s[n.props.label]),9,K$)],2)):(d.openBlock(),d.createElementBlock("li",{key:c+"submenu",class:"hzzt-dropdown-menu-item hzzt-dropdown-submenu"},[d.createElementVNode("a",X$,d.toDisplayString(s[n.props.label]),1),d.createElementVNode("ul",{class:d.normalizeClass([["pull-"+n.position],"hzzt-dropdown-menu"])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.children,(v,h)=>(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass({"hzzt-dropdown-menu-item":!0,selected:n.defaultValue.includes(v[n.props.value])}),key:h},[d.createElementVNode("a",{onClick:g=>u([s[n.props.value],v[n.props.value]]),class:"hzzt-dropdown-menu-item-label"},d.toDisplayString(v[n.props.label]),9,Z$)],2))),128))],2)])),s.divider?(d.openBlock(),d.createElementBlock("li",{class:"divider",key:c+"divider"})):d.createCommentVNode("v-if",!0)],64))),256))])],2)],8,z$)),[[d.unref(j$),a]])}});var V$=ru(J$,[["__file","index.vue"]]);const au=nu(V$);var Q$=[tu,au],ny=[],me=we([...Q$,...ny]);const ry=me.install,ty=me.version;M.HzztDropdown=au,M.HzztTitle=tu,M.default=me,M.install=ry,M.makeInstaller=we,M.version=ty,Object.defineProperty(M,"__esModule",{value:!0})});
29
29
  //# sourceMappingURL=index.full.min.js.map