vue-spear-tip 0.4.5 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +32 -32
- package/dist/{Button-DwDDnkJ2.js → Button-CnYM2y0o.js} +1 -1
- package/dist/{Button-BQORA3S3.cjs → Button-hXfJNn0h.cjs} +1 -1
- package/dist/{CodeHighlight-B2EtGg7D.cjs → CodeHighlight-CMgtiiH3.cjs} +1 -1
- package/dist/{CodeHighlight-DDBt4a2w.js → CodeHighlight-Dn58Ec19.js} +1 -1
- package/dist/{DateField-C6NQPL5q.cjs → DateField-DTtaRtE3.cjs} +1 -1
- package/dist/{DateField-Ckx9ExzG.js → DateField-DWKoIRjr.js} +2 -2
- package/dist/{FieldComponent.vue_vue_type_script_lang-DUI8IzRb.js → FieldComponent.vue_vue_type_script_lang-DY2T-Y0-.js} +1 -1
- package/dist/{FieldComponent.vue_vue_type_script_lang-B017zNVf.cjs → FieldComponent.vue_vue_type_script_lang-DsCLhLjj.cjs} +1 -1
- package/dist/{SelectField-NtGtAdE3.js → SelectField-BPpe9LHe.js} +2 -2
- package/dist/{SelectField-BB2JA4k3.cjs → SelectField-D1yblzf9.cjs} +1 -1
- package/dist/{StringField-PTRYYsgm.js → StringField-DhZ65z9j.js} +2 -2
- package/dist/{StringField-BUvHLCrh.cjs → StringField-DyvKvKhK.cjs} +1 -1
- package/dist/{SwitchField-Dy6M3r7M.cjs → SwitchField-Cu74O10p.cjs} +1 -1
- package/dist/{SwitchField-DY8gbvsa.js → SwitchField-j7AHzEIq.js} +2 -2
- package/dist/{Tabs-UvuD8J2A.js → Tabs-CPjcxmdv.js} +1 -1
- package/dist/{Tabs-B1T_tUZm.cjs → Tabs-ClxhWkrP.cjs} +1 -1
- package/dist/{TextField-CfKfflUG.cjs → TextField-DCmeT5Tf.cjs} +1 -1
- package/dist/{TextField-CE_xkwuN.js → TextField-DJnLViBb.js} +2 -2
- package/dist/{index-RogxxnFA.cjs → index-BTXQMtQc.cjs} +1 -1
- package/dist/{index-6k-wx20w.js → index-DFNV9hNk.js} +7 -7
- package/dist/replaceable/BaseComponent.vue +2 -2
- package/dist/vue-spear-tip.cjs.js +1 -1
- package/dist/vue-spear-tip.es.js +1 -1
- package/docs/index.html +1 -1
- package/docs/static/{Button-BhH1sSSk.js → Button-CmMMSa6d.js} +1 -1
- package/docs/static/{CodeHighlight-CbRq55Pj.js → CodeHighlight-DqcJi6RP.js} +1 -1
- package/docs/static/{DateField-C257beyk.js → DateField-Cc7ZMFE6.js} +1 -1
- package/docs/static/{FieldComponent.vue_vue_type_script_lang-D-Fg_wy_.js → FieldComponent.vue_vue_type_script_lang-B9BnoGSI.js} +1 -1
- package/docs/static/{NoSymbolIcon-Bt8TQGfd.js → NoSymbolIcon-uyJtkpe7.js} +1 -1
- package/docs/static/{SelectField-DCA_5xZp.js → SelectField-DydszTCK.js} +1 -1
- package/docs/static/{StringField-Cy98DXXI.js → StringField-CMlNaHc_.js} +1 -1
- package/docs/static/{SwitchField-Dro4oU_U.js → SwitchField-PLGRaUSv.js} +1 -1
- package/docs/static/{Tabs-BravGX2X.js → Tabs-DjEzQX44.js} +1 -1
- package/docs/static/{TextField-OTKiDQDO.js → TextField-BFVUJJiK.js} +1 -1
- package/docs/static/index-DX-dLB4y.js +2 -0
- package/docs/static/{main-DEBPJr9o.js → main-CuUCc1ed.js} +3 -3
- package/package.json +1 -1
- package/docs/static/index-WMeaz5NS.js +0 -2
|
@@ -4853,7 +4853,7 @@ let dl = (Nn = class extends Yn {
|
|
|
4853
4853
|
this.__VSTBaseComponent.clickTapHammer && (this.__VSTBaseComponent.clickTapHammer.destroy(), this.__VSTBaseComponent.clickTapHammer = new this.VST.Hammer(this.$el), this.__VSTBaseComponent.clickTapHammer.on("tap", () => this.onComponentClickOrTap()));
|
|
4854
4854
|
for (const e of this.__VSTBaseComponent.hammer) {
|
|
4855
4855
|
e.instance?.destroy?.();
|
|
4856
|
-
const n = this.$el
|
|
4856
|
+
const n = this.$el?.querySelector?.(e.selector);
|
|
4857
4857
|
(n instanceof HTMLElement || n instanceof SVGElement) && (e.instance = new this.VST.Hammer(n), e.instance.on(e.event, e.callback));
|
|
4858
4858
|
}
|
|
4859
4859
|
}
|
|
@@ -4864,7 +4864,7 @@ let dl = (Nn = class extends Yn {
|
|
|
4864
4864
|
this.__VSTBaseComponent.clickTapHammer?.destroy?.();
|
|
4865
4865
|
}
|
|
4866
4866
|
registerReactiveEvent(e, n, o) {
|
|
4867
|
-
const i = this.$el
|
|
4867
|
+
const i = this.$el?.querySelector?.(n);
|
|
4868
4868
|
let s;
|
|
4869
4869
|
(i instanceof HTMLElement || i instanceof SVGElement) && (s = new this.VST.Hammer(i), s.on(e, o)), this.__VSTBaseComponent.hammer.push({
|
|
4870
4870
|
event: e,
|
|
@@ -5166,7 +5166,7 @@ O([
|
|
|
5166
5166
|
S("design:paramtypes", [Boolean]),
|
|
5167
5167
|
S("design:returntype", void 0)
|
|
5168
5168
|
], F.prototype, "_onDisabledChanged", null);
|
|
5169
|
-
const Jp = Ze(() => import("./Button-
|
|
5169
|
+
const Jp = Ze(() => import("./Button-CnYM2y0o.js")), la = class la extends Yn {
|
|
5170
5170
|
VST;
|
|
5171
5171
|
Settings = {
|
|
5172
5172
|
directives: {
|
|
@@ -5227,7 +5227,7 @@ const Jp = Ze(() => import("./Button-DwDDnkJ2.js")), la = class la extends Yn {
|
|
|
5227
5227
|
this.__VSTBaseComponent.clickTapHammer && (this.__VSTBaseComponent.clickTapHammer.destroy(), this.__VSTBaseComponent.clickTapHammer = new this.VST.Hammer(this.$el), this.__VSTBaseComponent.clickTapHammer.on("tap", () => this.onComponentClickOrTap()));
|
|
5228
5228
|
for (const e of this.__VSTBaseComponent.hammer) {
|
|
5229
5229
|
e.instance?.destroy?.();
|
|
5230
|
-
const n = this.$el
|
|
5230
|
+
const n = this.$el?.querySelector?.(e.selector);
|
|
5231
5231
|
(n instanceof HTMLElement || n instanceof SVGElement) && (e.instance = new this.VST.Hammer(n), e.instance.on(e.event, e.callback));
|
|
5232
5232
|
}
|
|
5233
5233
|
}
|
|
@@ -5238,7 +5238,7 @@ const Jp = Ze(() => import("./Button-DwDDnkJ2.js")), la = class la extends Yn {
|
|
|
5238
5238
|
this.__VSTBaseComponent.clickTapHammer?.destroy?.();
|
|
5239
5239
|
}
|
|
5240
5240
|
registerReactiveEvent(e, n, o) {
|
|
5241
|
-
const i = this.$el
|
|
5241
|
+
const i = this.$el?.querySelector?.(n);
|
|
5242
5242
|
let s;
|
|
5243
5243
|
(i instanceof HTMLElement || i instanceof SVGElement) && (s = new this.VST.Hammer(i), s.on(e, o)), this.__VSTBaseComponent.hammer.push({
|
|
5244
5244
|
event: e,
|
|
@@ -5530,7 +5530,7 @@ O([
|
|
|
5530
5530
|
S("design:paramtypes", [Boolean]),
|
|
5531
5531
|
S("design:returntype", void 0)
|
|
5532
5532
|
], $.prototype, "_onDisabledChanged", null);
|
|
5533
|
-
const Kp = Ze(() => import("./Tabs-
|
|
5533
|
+
const Kp = Ze(() => import("./Tabs-CPjcxmdv.js")), Qp = Ze(() => import("./SelectField-BPpe9LHe.js")), tm = Ze(() => import("./StringField-DhZ65z9j.js")), em = Ze(() => import("./SwitchField-j7AHzEIq.js")), nm = Ze(() => import("./TextField-DJnLViBb.js")), rm = Ze(() => import("./DateField-DWKoIRjr.js"));
|
|
5534
5534
|
var Zp = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, Xr = /* @__PURE__ */ r((t, e, n, o) => {
|
|
5535
5535
|
for (var i = o > 1 ? void 0 : o ? Lp(e, n) : e, s = t.length - 1, c; s >= 0; s--)
|
|
5536
5536
|
(c = t[s]) && (i = (o ? c(e, n, i) : c(i)) || i);
|
|
@@ -5583,7 +5583,7 @@ Xr([
|
|
|
5583
5583
|
Xr([
|
|
5584
5584
|
Sn("value", !0)
|
|
5585
5585
|
], gn.prototype, "_valueWatch", 1);
|
|
5586
|
-
const om = Ze(() => import("./CodeHighlight-
|
|
5586
|
+
const om = Ze(() => import("./CodeHighlight-Dn58Ec19.js"));
|
|
5587
5587
|
export {
|
|
5588
5588
|
F as B,
|
|
5589
5589
|
Gp as C,
|
|
@@ -120,7 +120,7 @@ export default abstract class BaseComponent extends VueClass implements IBaseVue
|
|
|
120
120
|
}
|
|
121
121
|
for (const h of this.__VSTBaseComponent.hammer) {
|
|
122
122
|
h.instance?.destroy?.()
|
|
123
|
-
const el = this.$el
|
|
123
|
+
const el = this.$el?.querySelector?.(h.selector)
|
|
124
124
|
if (el instanceof HTMLElement || el instanceof SVGElement) {
|
|
125
125
|
h.instance = new this.VST.Hammer(el) as any
|
|
126
126
|
h.instance!.on(h.event, h.callback as any)
|
|
@@ -137,7 +137,7 @@ export default abstract class BaseComponent extends VueClass implements IBaseVue
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
registerReactiveEvent(event: BaseComponentEvents, componentSelector: string, callback: (e: BaseComponentEventInput) => any) {
|
|
140
|
-
const el = this.$el
|
|
140
|
+
const el = this.$el?.querySelector?.(componentSelector)
|
|
141
141
|
let hammer
|
|
142
142
|
if (el instanceof HTMLElement || el instanceof SVGElement) {
|
|
143
143
|
hammer = new this.VST.Hammer(el) as any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BTXQMtQc.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;
|
package/dist/vue-spear-tip.es.js
CHANGED
|
@@ -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-
|
|
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-DFNV9hNk.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-
|
|
6
|
+
<script type="module" crossorigin src="/static/main-CuUCc1ed.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-
|
|
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-CuUCc1ed.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+"-click-tap"]:!0,[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-fb751319"]]);export{P as default};
|