vue-spear-tip 0.4.1 → 0.4.2

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 (38) hide show
  1. package/dist/.vite/manifest.json +32 -32
  2. package/dist/{Button-B82hIPB9.js → Button-CYcXBn6e.js} +1 -1
  3. package/dist/{Button-DxLp9N9g.cjs → Button-Cp9T3IYN.cjs} +1 -1
  4. package/dist/{CodeHighlight-i6cLcG6c.js → CodeHighlight-CKc5muo1.js} +1 -1
  5. package/dist/{CodeHighlight-PD0vEJtl.cjs → CodeHighlight-DQTjGiNu.cjs} +1 -1
  6. package/dist/{DateField-tmaGyhbE.js → DateField-C07lf30q.js} +2 -2
  7. package/dist/{DateField-CKYIcSSS.cjs → DateField-uw3R6WT-.cjs} +1 -1
  8. package/dist/{FieldComponent.vue_vue_type_script_lang-Z2AsW_tO.cjs → FieldComponent.vue_vue_type_script_lang-DklZyWmK.cjs} +1 -1
  9. package/dist/{FieldComponent.vue_vue_type_script_lang-seZyOj65.js → FieldComponent.vue_vue_type_script_lang-wBvdbbJm.js} +1 -1
  10. package/dist/{SelectField-BTanQJDL.cjs → SelectField-BRkffT1m.cjs} +1 -1
  11. package/dist/{SelectField-C5D6qBeB.js → SelectField-CSMs0Syw.js} +2 -2
  12. package/dist/{StringField-BwURUI2q.js → StringField-BavxMpHv.js} +2 -2
  13. package/dist/{StringField-CuO2Ab1t.cjs → StringField-DT_VSBqj.cjs} +1 -1
  14. package/dist/{SwitchField-SN0f12CP.cjs → SwitchField-D9WEyMPj.cjs} +1 -1
  15. package/dist/{SwitchField-Dl7SogjO.js → SwitchField-DlkrJwDd.js} +2 -2
  16. package/dist/{Tabs-BfNoOMlu.js → Tabs-COfVQ8iX.js} +1 -1
  17. package/dist/{Tabs-Pl-Sx7oO.cjs → Tabs-DVI-t0Wo.cjs} +1 -1
  18. package/dist/{TextField-CKl8NKk1.js → TextField-DTk4zbvg.js} +2 -2
  19. package/dist/{TextField-DZ9JJuTB.cjs → TextField-fPwRsNJx.cjs} +1 -1
  20. package/dist/{index-CqbXmoUJ.cjs → index-BzJgL_gB.cjs} +1 -1
  21. package/dist/{index-DqMVhqhl.js → index-C2FyHQM_.js} +7 -7
  22. package/dist/vue-spear-tip.cjs.js +1 -1
  23. package/dist/vue-spear-tip.es.js +1 -1
  24. package/docs/index.html +1 -1
  25. package/docs/static/{Button-BH6IXZKO.js → Button-rIzfcWIC.js} +1 -1
  26. package/docs/static/{CodeHighlight-DJ-G7mz6.js → CodeHighlight-ei0IA0GY.js} +1 -1
  27. package/docs/static/{DateField-CHLMX8oi.js → DateField-B-0zfupO.js} +1 -1
  28. package/docs/static/{FieldComponent.vue_vue_type_script_lang-CCYLnk6I.js → FieldComponent.vue_vue_type_script_lang-CWcc-m1H.js} +1 -1
  29. package/docs/static/{NoSymbolIcon-q3VjiGYR.js → NoSymbolIcon-CHDiT1Bi.js} +1 -1
  30. package/docs/static/{SelectField-CgYVlA9r.js → SelectField-DY2c_Mpo.js} +1 -1
  31. package/docs/static/{StringField-DY5P9Vut.js → StringField-CCR2aQo9.js} +1 -1
  32. package/docs/static/{SwitchField-C76diQok.js → SwitchField-BS7HnUcr.js} +1 -1
  33. package/docs/static/{Tabs-Bvtgfr9f.js → Tabs-ByKftH1E.js} +1 -1
  34. package/docs/static/{TextField-D63M2yDj.js → TextField-DSYfcfvb.js} +1 -1
  35. package/docs/static/index-smyOpGNE.js +2 -0
  36. package/docs/static/{main-3BK_-Alb.js → main-CFEGvCly.js} +3 -3
  37. package/package.json +1 -1
  38. package/docs/static/index-Go3EtJ9a.js +0 -2
@@ -4950,9 +4950,9 @@ let F = (Rn = class extends dl {
4950
4950
  currentColorActive = null;
4951
4951
  innerTitle = null;
4952
4952
  mountedParent() {
4953
- if (this.randomClass = "button-c" + Math.random().toString().split(".")[1], this.updateTheme(), this.$refs?.button) {
4953
+ if (this.randomClass = "button-c" + Math.random().toString().split(".")[1], this.updateTheme(), this.$refs?.button instanceof HTMLElement) {
4954
4954
  const e = new this.VST.Hammer(this.$refs.button);
4955
- e.on("tap", (n) => this.clickTap(n)), this.hookWhenComponentDestroy(() => e.destroy());
4955
+ e.on("tap", (n) => this.clickTap(n.srcEvent)), this.hookWhenComponentDestroy(() => e.destroy());
4956
4956
  }
4957
4957
  }
4958
4958
  updateTheme() {
@@ -5145,7 +5145,7 @@ B([
5145
5145
  S("design:paramtypes", [Boolean]),
5146
5146
  S("design:returntype", void 0)
5147
5147
  ], F.prototype, "_onDisabledChanged", null);
5148
- const Jp = Ze(() => import("./Button-B82hIPB9.js")), lc = class lc extends Yn {
5148
+ const Jp = Ze(() => import("./Button-CYcXBn6e.js")), lc = class lc extends Yn {
5149
5149
  VST;
5150
5150
  emitsParent = ["update:modelValue", "clickTap"];
5151
5151
  constructor() {
@@ -5291,9 +5291,9 @@ const hc = class hc extends xi {
5291
5291
  currentColorActive = null;
5292
5292
  innerTitle = null;
5293
5293
  mountedParent() {
5294
- if (this.randomClass = "button-c" + Math.random().toString().split(".")[1], this.updateTheme(), this.$refs?.button) {
5294
+ if (this.randomClass = "button-c" + Math.random().toString().split(".")[1], this.updateTheme(), this.$refs?.button instanceof HTMLElement) {
5295
5295
  const e = new this.VST.Hammer(this.$refs.button);
5296
- e.on("tap", (n) => this.clickTap(n)), this.hookWhenComponentDestroy(() => e.destroy());
5296
+ e.on("tap", (n) => this.clickTap(n.srcEvent)), this.hookWhenComponentDestroy(() => e.destroy());
5297
5297
  }
5298
5298
  }
5299
5299
  updateTheme() {
@@ -5488,7 +5488,7 @@ B([
5488
5488
  S("design:paramtypes", [Boolean]),
5489
5489
  S("design:returntype", void 0)
5490
5490
  ], $.prototype, "_onDisabledChanged", null);
5491
- const Kp = Ze(() => import("./Tabs-BfNoOMlu.js")), Qp = Ze(() => import("./SelectField-C5D6qBeB.js")), tm = Ze(() => import("./StringField-BwURUI2q.js")), em = Ze(() => import("./SwitchField-Dl7SogjO.js")), nm = Ze(() => import("./TextField-CKl8NKk1.js")), rm = Ze(() => import("./DateField-tmaGyhbE.js"));
5491
+ const Kp = Ze(() => import("./Tabs-COfVQ8iX.js")), Qp = Ze(() => import("./SelectField-CSMs0Syw.js")), tm = Ze(() => import("./StringField-BavxMpHv.js")), em = Ze(() => import("./SwitchField-DlkrJwDd.js")), nm = Ze(() => import("./TextField-DTk4zbvg.js")), rm = Ze(() => import("./DateField-C07lf30q.js"));
5492
5492
  var Zp = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, Xr = /* @__PURE__ */ r((t, e, n, o) => {
5493
5493
  for (var i = o > 1 ? void 0 : o ? Lp(e, n) : e, s = t.length - 1, a; s >= 0; s--)
5494
5494
  (a = t[s]) && (i = (o ? a(e, n, i) : a(i)) || i);
@@ -5541,7 +5541,7 @@ Xr([
5541
5541
  Xr([
5542
5542
  Sn("value", !0)
5543
5543
  ], gn.prototype, "_valueWatch", 1);
5544
- const om = Ze(() => import("./CodeHighlight-i6cLcG6c.js"));
5544
+ const om = Ze(() => import("./CodeHighlight-CKc5muo1.js"));
5545
5545
  export {
5546
5546
  F as B,
5547
5547
  Gp as C,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CqbXmoUJ.cjs");exports.BaseComponent=e.BaseComponent$1;exports.Button=e.VSTButton;exports.ButtonInherited=e.ButtonInherited$1;exports.CodeHighlight=e.index;exports.Computed=e.Computed;exports.DateField=e.index$5;exports.FieldComponent=e.FieldComponent;exports.Prop=e.Prop;exports.SelectField=e.index$2;exports.StringField=e.VSTStringField;exports.SwitchField=e.index$3;exports.Tabs=e.index$1;exports.TextField=e.index$4;exports.VST=e.VST;exports.VueClass=e.VueClass;exports.VueClassComponent=e.VueClassComponent;exports.Watch=e.Watch;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BzJgL_gB.cjs");exports.BaseComponent=e.BaseComponent$1;exports.Button=e.VSTButton;exports.ButtonInherited=e.ButtonInherited$1;exports.CodeHighlight=e.index;exports.Computed=e.Computed;exports.DateField=e.index$5;exports.FieldComponent=e.FieldComponent;exports.Prop=e.Prop;exports.SelectField=e.index$2;exports.StringField=e.VSTStringField;exports.SwitchField=e.index$3;exports.Tabs=e.index$1;exports.TextField=e.index$4;exports.VST=e.VST;exports.VueClass=e.VueClass;exports.VueClassComponent=e.VueClassComponent;exports.Watch=e.Watch;
@@ -1,4 +1,4 @@
1
- import { e, c as t, h as o, i, C as l, m as d, F as n, P as C, j as F, b as h, k as m, g as p, l as r, V as u, d as c, f as g, W as S } from "./index-DqMVhqhl.js";
1
+ import { e, c as t, h as o, i, C as l, m as d, F as n, P as C, j as F, b as h, k as m, g as p, l as r, V as u, d as c, f as g, W as S } from "./index-C2FyHQM_.js";
2
2
  export {
3
3
  e as BaseComponent,
4
4
  t as Button,
package/docs/index.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <meta charset="UTF-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
5
  <title>Vue Spear Tip</title>
6
- <script type="module" crossorigin src="/static/main-3BK_-Alb.js"></script>
6
+ <script type="module" crossorigin src="/static/main-CFEGvCly.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/static/main-hpuWh67r.css">
8
8
  </head>
9
9
  <body>
@@ -1 +1 @@
1
- var v=Object.defineProperty;var p=(e,o)=>v(e,"name",{value:o,configurable:!0});import{N as g,V as w,c as r,f as a,o as t,a as C,h as B,e as T,g as b,t as s,n as i,i as $,j as m,F as k,k as z,w as R,b as H}from"./main-3BK_-Alb.js";var M=Object.getOwnPropertyDescriptor,O=p((e,o,y,f)=>{for(var d=f>1?void 0:f?M(o,y):o,u=e.length-1,n;u>=0;u--)(n=e[u])&&(d=n(d)||d);return d},"__decorateClass"),l;let h=(l=class extends g{},p(l,"Button"),l);h=O([w],h);const S=["title","data-theme","data-offset","data-placement"],W=["title","data-theme","data-offset","data-placement","disabled","type"],V=["innerHTML"],A=["innerHTML"],D=["href"],F=["href"];function I(e,o,y,f,d,u){return e.showButton?(t(),r("div",{key:0,class:i(["d-inline-block relative whitespace-nowrap",{h24px:e.size=="sm",h34px:e.size=="md","min-h40px":e.size=="lg"}]),title:e.disabled?e.disabledTitle:"","data-theme":e.dataThemeInner,"data-offset":e.dataOffset,"data-placement":e.dataPlacement},[C("button",{class:i(["relative w100% h100% flex! items-center! justify-center!",{shine:e.shine,[e.randomClass+(e.isOnHover?" hover":"")]:!0,"py10px px8px":e.size=="sm","py10px px13px":e.size=="md","py10px px18px":e.size=="lg"}]),title:e.disabled?"":e.innerTitle,"data-theme":e.dataThemeInner,"data-offset":e.dataOffset,"data-placement":e.dataPlacement,onMouseover:o[0]||(o[0]=n=>e.isOnHover=!0),onMouseout:o[1]||(o[1]=n=>e.isOnHover=!1),onTouchstart:o[2]||(o[2]=(...n)=>e.touchstart&&e.touchstart(...n)),onTouchend:o[3]||(o[3]=(...n)=>e.touchend&&e.touchend(...n)),onMouseup:o[4]||(o[4]=(...n)=>e.mouseup&&e.mouseup(...n)),onMousedown:o[5]||(o[5]=(...n)=>e.mousedown&&e.mousedown(...n)),onKeydown:o[6]||(o[6]=R((...n)=>e.keydownEnter&&e.keydownEnter(...n),["enter"])),onMouseleave:o[7]||(o[7]=n=>e.isButtonActive=!1),disabled:e.disabled,type:e.type,style:b({fontSize:e.size=="sm"?"0.75rem":e.fontSize,fontFamily:e.fontFamily,borderRadius:e.borderRadius,width:e.width,...e.style}),ref:"button"},[e.badge?(t(),r("div",{key:0,class:"absolute right--9px top--9px bg-lightblue-400 fw-bold rounded-full z-3 px7px",style:b({background:e.badgeBg??void 0,color:e.badgeColor??"#ffffff"})},s(e.badge),5)):a("",!0),e.icon?(t(),r("span",{key:1,class:i(["left-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim?.()?.length?"left-icon":""])},[e.icon?.startsWith("<")?(t(),r("div",{key:0,innerHTML:e.icon},null,8,V)):(t(),r("i",{key:1,class:i(["fa",e.icon])},null,2))],2)):a("",!0),B(e.$slots,"default",{},void 0,!0),e.iconRight?(t(),r("span",{key:2,class:i(["right-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim?.()?.length?"right-icon":""])},[e.iconRight?.startsWith("<")?(t(),r("div",{key:0,innerHTML:e.iconRight},null,8,A)):(t(),r("i",{key:1,class:i(["fa",e.iconRight])},null,2))],2)):a("",!0),(t(),T(z("style"),null,{default:$(()=>[m("."+s(e.randomClass)+" { background: "+s(e.style?.bacground??e.currentBg+"!important")+"; box-shadow: none !important; color: "+s(e.currentColor)+" !important; border-color: "+s(e.currentBorderColor)+" !important; }",1),e.currentColorHover?(t(),r(k,{key:0},[m("."+s(e.randomClass)+":hover { color: "+s(e.style?.color??e.currentColorHover+"!important")+"; }",1)],64)):a("",!0),e.disabled?a("",!0):(t(),r(k,{key:1},[m("."+s(e.randomClass)+":active { background: "+s(e.currentBgActive)+" !important; border-color: "+s(e.currentBorderColorActive)+" !important; color: "+s(e.currentColorActive)+" !important; opacity: 1 !important; "+s(e.boxShadowCss)+" !important; }",1)],64))]),_:1})),e.link&&e.link?.startsWith("http")||e.link?.startsWith("//")?(t(),r("a",{key:3,class:"d-none",ref:"link",href:e.link,target:"_blank"}," ",8,D)):!e.link&&e.linkRevert&&!e.linkRevert?.startsWith("http")&&!e.linkRevert?.startsWith("//")?(t(),r("a",{key:4,class:"d-none",ref:"link",href:e.linkRevert,target:"_blank"}," ",8,F)):a("",!0)],46,W)],10,S)):a("",!0)}p(I,"render");const P=H(h,[["render",I],["__scopeId","data-v-4053962d"]]);export{P as default};
1
+ var v=Object.defineProperty;var p=(e,o)=>v(e,"name",{value:o,configurable:!0});import{N as g,V as w,c as r,f as a,o as t,a as C,h as B,e as T,g as b,t as s,n as i,i as $,j as m,F as k,k as z,w as R,b as H}from"./main-CFEGvCly.js";var M=Object.getOwnPropertyDescriptor,O=p((e,o,y,f)=>{for(var d=f>1?void 0:f?M(o,y):o,u=e.length-1,n;u>=0;u--)(n=e[u])&&(d=n(d)||d);return d},"__decorateClass"),l;let h=(l=class extends g{},p(l,"Button"),l);h=O([w],h);const S=["title","data-theme","data-offset","data-placement"],W=["title","data-theme","data-offset","data-placement","disabled","type"],V=["innerHTML"],A=["innerHTML"],D=["href"],F=["href"];function I(e,o,y,f,d,u){return e.showButton?(t(),r("div",{key:0,class:i(["d-inline-block relative whitespace-nowrap",{h24px:e.size=="sm",h34px:e.size=="md","min-h40px":e.size=="lg"}]),title:e.disabled?e.disabledTitle:"","data-theme":e.dataThemeInner,"data-offset":e.dataOffset,"data-placement":e.dataPlacement},[C("button",{class:i(["relative w100% h100% flex! items-center! justify-center!",{shine:e.shine,[e.randomClass+(e.isOnHover?" hover":"")]:!0,"py10px px8px":e.size=="sm","py10px px13px":e.size=="md","py10px px18px":e.size=="lg"}]),title:e.disabled?"":e.innerTitle,"data-theme":e.dataThemeInner,"data-offset":e.dataOffset,"data-placement":e.dataPlacement,onMouseover:o[0]||(o[0]=n=>e.isOnHover=!0),onMouseout:o[1]||(o[1]=n=>e.isOnHover=!1),onTouchstart:o[2]||(o[2]=(...n)=>e.touchstart&&e.touchstart(...n)),onTouchend:o[3]||(o[3]=(...n)=>e.touchend&&e.touchend(...n)),onMouseup:o[4]||(o[4]=(...n)=>e.mouseup&&e.mouseup(...n)),onMousedown:o[5]||(o[5]=(...n)=>e.mousedown&&e.mousedown(...n)),onKeydown:o[6]||(o[6]=R((...n)=>e.keydownEnter&&e.keydownEnter(...n),["enter"])),onMouseleave:o[7]||(o[7]=n=>e.isButtonActive=!1),disabled:e.disabled,type:e.type,style:b({fontSize:e.size=="sm"?"0.75rem":e.fontSize,fontFamily:e.fontFamily,borderRadius:e.borderRadius,width:e.width,...e.style}),ref:"button"},[e.badge?(t(),r("div",{key:0,class:"absolute right--9px top--9px bg-lightblue-400 fw-bold rounded-full z-3 px7px",style:b({background:e.badgeBg??void 0,color:e.badgeColor??"#ffffff"})},s(e.badge),5)):a("",!0),e.icon?(t(),r("span",{key:1,class:i(["left-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim?.()?.length?"left-icon":""])},[e.icon?.startsWith("<")?(t(),r("div",{key:0,innerHTML:e.icon},null,8,V)):(t(),r("i",{key:1,class:i(["fa",e.icon])},null,2))],2)):a("",!0),B(e.$slots,"default",{},void 0,!0),e.iconRight?(t(),r("span",{key:2,class:i(["right-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim?.()?.length?"right-icon":""])},[e.iconRight?.startsWith("<")?(t(),r("div",{key:0,innerHTML:e.iconRight},null,8,A)):(t(),r("i",{key:1,class:i(["fa",e.iconRight])},null,2))],2)):a("",!0),(t(),T(z("style"),null,{default:$(()=>[m("."+s(e.randomClass)+" { background: "+s(e.style?.bacground??e.currentBg+"!important")+"; box-shadow: none !important; color: "+s(e.currentColor)+" !important; border-color: "+s(e.currentBorderColor)+" !important; }",1),e.currentColorHover?(t(),r(k,{key:0},[m("."+s(e.randomClass)+":hover { color: "+s(e.style?.color??e.currentColorHover+"!important")+"; }",1)],64)):a("",!0),e.disabled?a("",!0):(t(),r(k,{key:1},[m("."+s(e.randomClass)+":active { background: "+s(e.currentBgActive)+" !important; border-color: "+s(e.currentBorderColorActive)+" !important; color: "+s(e.currentColorActive)+" !important; opacity: 1 !important; "+s(e.boxShadowCss)+" !important; }",1)],64))]),_:1})),e.link&&e.link?.startsWith("http")||e.link?.startsWith("//")?(t(),r("a",{key:3,class:"d-none",ref:"link",href:e.link,target:"_blank"}," ",8,D)):!e.link&&e.linkRevert&&!e.linkRevert?.startsWith("http")&&!e.linkRevert?.startsWith("//")?(t(),r("a",{key:4,class:"d-none",ref:"link",href:e.linkRevert,target:"_blank"}," ",8,F)):a("",!0)],46,W)],10,S)):a("",!0)}p(I,"render");const P=H(h,[["render",I],["__scopeId","data-v-4053962d"]]);export{P as default};