vue-spear-tip 0.1.7-beta.2 → 0.1.7-beta.3
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/README.md +9 -2
- package/dist/.vite/manifest.json +2 -11
- package/dist/Button-XAIC1Az8.js +110 -0
- package/dist/Button-hkwUsLqp.cjs +1 -0
- package/dist/builder.d.ts +1 -1
- package/dist/components/Elements/Button/ButtonInherited.d.ts +71 -0
- package/dist/components/Elements/Button/index.d.ts +2 -0
- package/dist/components/LazyComponents.d.ts +2 -4
- package/dist/index.d.ts +4 -2
- package/dist/kit/elements/index.d.ts +2 -0
- package/dist/kit/index.d.ts +1 -0
- package/dist/vue-spear-tip.cjs.js +1 -1
- package/dist/vue-spear-tip.css +1 -1
- package/dist/vue-spear-tip.es.js +398 -119
- package/docs/index.html +2 -2
- package/docs/static/Button-C46yH8-k.js +1 -0
- package/docs/static/Button-DdMRVjcQ.css +1 -0
- package/docs/static/index-DJgNTS_9.js +2 -0
- package/docs/static/{main-bs2HNQOb.js → main-B0L3mSRB.js} +4 -4
- package/docs/static/{Button-CGZ2ZPCO.css → main-peHkuX6i.css} +1 -1
- package/package.json +5 -4
- package/dist/Button-Bdo8WMVO.js +0 -317
- package/dist/Button-CK3_dQ_H.cjs +0 -1
- package/dist/index-C3eDUyUz.js +0 -5
- package/dist/index-Cqf-28CG.cjs +0 -1
- package/docs/static/Button-N-5qYKot.js +0 -1
- package/docs/static/index-BYhKsRS0.js +0 -2
- package/docs/static/main-tn0RQdqM.css +0 -0
package/README.md
CHANGED
|
@@ -13,6 +13,14 @@ Built documentation with examples: [vue-spear-tip.smartrus.org](https://vue-spea
|
|
|
13
13
|
```
|
|
14
14
|
npm install vue-spear-tip
|
|
15
15
|
```
|
|
16
|
+
or with Yarn
|
|
17
|
+
```
|
|
18
|
+
yarn add vue-spear-tip
|
|
19
|
+
```
|
|
20
|
+
or with Bun.JS
|
|
21
|
+
```
|
|
22
|
+
bun add vue-spear-tip
|
|
23
|
+
```
|
|
16
24
|
|
|
17
25
|
[//]: # (Use with vite + html/pug + typescript classes + sass/scss)
|
|
18
26
|
|
|
@@ -43,9 +51,8 @@ Need enable experimental decorators in `tsconfig.json`:
|
|
|
43
51
|
<script lang="ts">
|
|
44
52
|
import {VST, Prop, Watch, Computed, BaseComponent} from 'vue-spear-tip'
|
|
45
53
|
|
|
46
|
-
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Component example
|
|
49
56
|
* @author CHORNY
|
|
50
57
|
* @copyright https://smartrus.org
|
|
51
58
|
*/
|
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"src/components/Elements/Button/Button.vue": {
|
|
3
|
-
"file": "Button-
|
|
3
|
+
"file": "Button-hkwUsLqp.cjs",
|
|
4
4
|
"name": "Button",
|
|
5
5
|
"src": "src/components/Elements/Button/Button.vue",
|
|
6
6
|
"isDynamicEntry": true,
|
|
@@ -8,22 +8,13 @@
|
|
|
8
8
|
"src/index.ts"
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
|
-
"src/components/Elements/Button/index.ts": {
|
|
12
|
-
"file": "index-Cqf-28CG.cjs",
|
|
13
|
-
"name": "index",
|
|
14
|
-
"src": "src/components/Elements/Button/index.ts",
|
|
15
|
-
"isDynamicEntry": true,
|
|
16
|
-
"dynamicImports": [
|
|
17
|
-
"src/components/Elements/Button/Button.vue"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
11
|
"src/index.ts": {
|
|
21
12
|
"file": "vue-spear-tip.cjs.js",
|
|
22
13
|
"name": "index.js",
|
|
23
14
|
"src": "src/index.ts",
|
|
24
15
|
"isEntry": true,
|
|
25
16
|
"dynamicImports": [
|
|
26
|
-
"src/components/Elements/Button/
|
|
17
|
+
"src/components/Elements/Button/Button.vue"
|
|
27
18
|
]
|
|
28
19
|
},
|
|
29
20
|
"style.css": {
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ButtonInherited as h, VST as y } from "./vue-spear-tip.es.js";
|
|
2
|
+
import { createElementBlock as a, createCommentVNode as l, openBlock as r, createElementVNode as m, normalizeStyle as k, withKeys as g, normalizeClass as u, renderSlot as C, createBlock as w, toDisplayString as n, resolveDynamicComponent as B, withCtx as $, createTextVNode as p, Fragment as v } from "vue";
|
|
3
|
+
var T = Object.getOwnPropertyDescriptor, O = (e, o, i, d) => {
|
|
4
|
+
for (var s = d > 1 ? void 0 : d ? T(o, i) : o, f = e.length - 1, t; f >= 0; f--)
|
|
5
|
+
(t = e[f]) && (s = t(s) || s);
|
|
6
|
+
return s;
|
|
7
|
+
};
|
|
8
|
+
let b = class extends h {
|
|
9
|
+
};
|
|
10
|
+
b = O([
|
|
11
|
+
y
|
|
12
|
+
], b);
|
|
13
|
+
const R = ["title", "data-theme", "data-offset", "data-placement"], S = ["title", "data-theme", "data-offset", "data-placement", "disabled", "type"], z = ["href"], H = ["href"];
|
|
14
|
+
function M(e, o, i, d, s, f) {
|
|
15
|
+
return e.showButton ? (r(), a("span", {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "d-inline-block relative",
|
|
18
|
+
title: e.disabled ? e.disabledTitle : "",
|
|
19
|
+
"data-theme": e.dataThemeInner,
|
|
20
|
+
"data-offset": e.dataOffset,
|
|
21
|
+
"data-placement": e.dataPlacement
|
|
22
|
+
}, [
|
|
23
|
+
m("button", {
|
|
24
|
+
class: u(["relative", {
|
|
25
|
+
shine: e.shine,
|
|
26
|
+
[e.randomClass + (e.isOnHover ? " hover" : "")]: !0
|
|
27
|
+
// mobile: viewPortType == 'mobile',
|
|
28
|
+
// tablet: viewPortType == 'tablet',
|
|
29
|
+
}]),
|
|
30
|
+
title: e.disabled ? "" : e.innerTitle,
|
|
31
|
+
"data-theme": e.dataThemeInner,
|
|
32
|
+
"data-offset": e.dataOffset,
|
|
33
|
+
"data-placement": e.dataPlacement,
|
|
34
|
+
onMouseover: o[0] || (o[0] = (t) => e.isOnHover = !0),
|
|
35
|
+
onMouseout: o[1] || (o[1] = (t) => e.isOnHover = !1),
|
|
36
|
+
onClick: o[2] || (o[2] = (...t) => e.click && e.click(...t)),
|
|
37
|
+
onTouchstart: o[3] || (o[3] = (...t) => e.touchstart && e.touchstart(...t)),
|
|
38
|
+
onTouchend: o[4] || (o[4] = (...t) => e.touchend && e.touchend(...t)),
|
|
39
|
+
onMouseup: o[5] || (o[5] = (...t) => e.mouseup && e.mouseup(...t)),
|
|
40
|
+
onMousedown: o[6] || (o[6] = (...t) => e.mousedown && e.mousedown(...t)),
|
|
41
|
+
onKeydown: o[7] || (o[7] = g((...t) => e.keydownEnter && e.keydownEnter(...t), ["enter"])),
|
|
42
|
+
onMouseleave: o[8] || (o[8] = (t) => e.isButtonActive = !1),
|
|
43
|
+
disabled: e.disabled,
|
|
44
|
+
type: e.type,
|
|
45
|
+
style: k({ fontSize: e.fontSize, fontFamily: e.fontFamily, borderRadius: e.borderRadius, width: e.width, ...e.style }),
|
|
46
|
+
ref: "button"
|
|
47
|
+
}, [
|
|
48
|
+
e.badge ? (r(), a("div", {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "absolute right--9px top--9px bg-lightblue-400 fw-bold rounded-full z-3 px7px",
|
|
51
|
+
style: k({
|
|
52
|
+
background: e.badgeBg ?? void 0,
|
|
53
|
+
color: e.badgeColor ?? "#ffffff"
|
|
54
|
+
})
|
|
55
|
+
}, n(e.badge), 5)) : l("", !0),
|
|
56
|
+
e.icon ? (r(), a("span", {
|
|
57
|
+
key: 1,
|
|
58
|
+
class: u(["left-icon-animate", e.$slots.default && e.$refs?.button?.innerText?.trim()?.length ? "left-icon" : ""])
|
|
59
|
+
}, [
|
|
60
|
+
m("i", {
|
|
61
|
+
class: u(["fa", e.icon])
|
|
62
|
+
}, null, 2)
|
|
63
|
+
], 2)) : l("", !0),
|
|
64
|
+
C(e.$slots, "default", {}, void 0, !0),
|
|
65
|
+
e.iconRight ? (r(), a("span", {
|
|
66
|
+
key: 2,
|
|
67
|
+
class: u(["right-icon-animate", e.$slots.default && e.$refs?.button?.innerText?.trim()?.length ? "right-icon" : ""])
|
|
68
|
+
}, [
|
|
69
|
+
m("i", {
|
|
70
|
+
class: u(["fa", e.iconRight])
|
|
71
|
+
}, null, 2)
|
|
72
|
+
], 2)) : l("", !0),
|
|
73
|
+
(r(), w(B("style"), null, {
|
|
74
|
+
default: $(() => [
|
|
75
|
+
p("." + n(e.randomClass) + " { background: " + n(e.style?.bacground ?? e.currentBg + "!important") + "; box-shadow: none !important; color: " + n(e.currentColor) + " !important; border-color: " + n(e.currentBorderColor) + " !important; }", 1),
|
|
76
|
+
e.currentColorHover ? (r(), a(v, { key: 0 }, [
|
|
77
|
+
p("." + n(e.randomClass) + ":hover { color: " + n(e.style?.color ?? e.currentColorHover + "!important") + "; }", 1)
|
|
78
|
+
], 64)) : l("", !0),
|
|
79
|
+
e.disabled ? l("", !0) : (r(), a(v, { key: 1 }, [
|
|
80
|
+
p("." + n(e.randomClass) + ":active { background: " + n(e.currentBgActive) + " !important; border-color: " + n(e.currentBorderColorActive) + " !important; color: " + n(e.currentColorActive) + " !important; opacity: 1 !important; " + n(e.boxShadowCss) + " !important; }", 1)
|
|
81
|
+
], 64))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})),
|
|
85
|
+
e.link && e.link?.startsWith("http") || e.link?.startsWith("//") ? (r(), a("a", {
|
|
86
|
+
key: 3,
|
|
87
|
+
class: "d-none",
|
|
88
|
+
ref: "link",
|
|
89
|
+
href: e.link,
|
|
90
|
+
target: "_blank"
|
|
91
|
+
}, " ", 8, z)) : !e.link && e.linkRevert && !e.linkRevert?.startsWith("http") && !e.linkRevert?.startsWith("//") ? (r(), a("a", {
|
|
92
|
+
key: 4,
|
|
93
|
+
class: "d-none",
|
|
94
|
+
ref: "link",
|
|
95
|
+
href: e.linkRevert,
|
|
96
|
+
target: "_blank"
|
|
97
|
+
}, " ", 8, H)) : l("", !0)
|
|
98
|
+
], 46, S)
|
|
99
|
+
], 8, R)) : l("", !0);
|
|
100
|
+
}
|
|
101
|
+
const A = (e, o) => {
|
|
102
|
+
const i = e.__vccOpts || e;
|
|
103
|
+
for (const [d, s] of o)
|
|
104
|
+
i[d] = s;
|
|
105
|
+
return i;
|
|
106
|
+
}, P = /* @__PURE__ */ A(b, [["render", M], ["__scopeId", "data-v-fdfb0ec4"]]);
|
|
107
|
+
export {
|
|
108
|
+
h as ButtonInherited,
|
|
109
|
+
P as default
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./vue-spear-tip.cjs.js"),t=require("vue");var u=Object.getOwnPropertyDescriptor,m=(e,o,a,l)=>{for(var r=l>1?void 0:l?u(o,a):o,s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(r)||r);return r};let i=class extends d.ButtonInherited{};i=m([d.VST],i);const p=["title","data-theme","data-offset","data-placement"],f=["title","data-theme","data-offset","data-placement","disabled","type"],k=["href"],y=["href"];function g(e,o,a,l,r,s){return e.showButton?(t.openBlock(),t.createElementBlock("span",{key:0,class:"d-inline-block relative",title:e.disabled?e.disabledTitle:"","data-theme":e.dataThemeInner,"data-offset":e.dataOffset,"data-placement":e.dataPlacement},[t.createElementVNode("button",{class:t.normalizeClass(["relative",{shine:e.shine,[e.randomClass+(e.isOnHover?" hover":"")]:!0}]),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),onClick:o[2]||(o[2]=(...n)=>e.click&&e.click(...n)),onTouchstart:o[3]||(o[3]=(...n)=>e.touchstart&&e.touchstart(...n)),onTouchend:o[4]||(o[4]=(...n)=>e.touchend&&e.touchend(...n)),onMouseup:o[5]||(o[5]=(...n)=>e.mouseup&&e.mouseup(...n)),onMousedown:o[6]||(o[6]=(...n)=>e.mousedown&&e.mousedown(...n)),onKeydown:o[7]||(o[7]=t.withKeys((...n)=>e.keydownEnter&&e.keydownEnter(...n),["enter"])),onMouseleave:o[8]||(o[8]=n=>e.isButtonActive=!1),disabled:e.disabled,type:e.type,style:t.normalizeStyle({fontSize:e.fontSize,fontFamily:e.fontFamily,borderRadius:e.borderRadius,width:e.width,...e.style}),ref:"button"},[e.badge?(t.openBlock(),t.createElementBlock("div",{key:0,class:"absolute right--9px top--9px bg-lightblue-400 fw-bold rounded-full z-3 px7px",style:t.normalizeStyle({background:e.badgeBg??void 0,color:e.badgeColor??"#ffffff"})},t.toDisplayString(e.badge),5)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["left-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim()?.length?"left-icon":""])},[t.createElementVNode("i",{class:t.normalizeClass(["fa",e.icon])},null,2)],2)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},void 0,!0),e.iconRight?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["right-icon-animate",e.$slots.default&&e.$refs?.button?.innerText?.trim()?.length?"right-icon":""])},[t.createElementVNode("i",{class:t.normalizeClass(["fa",e.iconRight])},null,2)],2)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent("style"),null,{default:t.withCtx(()=>[t.createTextVNode("."+t.toDisplayString(e.randomClass)+" { background: "+t.toDisplayString(e.style?.bacground??e.currentBg+"!important")+"; box-shadow: none !important; color: "+t.toDisplayString(e.currentColor)+" !important; border-color: "+t.toDisplayString(e.currentBorderColor)+" !important; }",1),e.currentColorHover?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("."+t.toDisplayString(e.randomClass)+":hover { color: "+t.toDisplayString(e.style?.color??e.currentColorHover+"!important")+"; }",1)],64)):t.createCommentVNode("",!0),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("."+t.toDisplayString(e.randomClass)+":active { background: "+t.toDisplayString(e.currentBgActive)+" !important; border-color: "+t.toDisplayString(e.currentBorderColorActive)+" !important; color: "+t.toDisplayString(e.currentColorActive)+" !important; opacity: 1 !important; "+t.toDisplayString(e.boxShadowCss)+" !important; }",1)],64))]),_:1})),e.link&&e.link?.startsWith("http")||e.link?.startsWith("//")?(t.openBlock(),t.createElementBlock("a",{key:3,class:"d-none",ref:"link",href:e.link,target:"_blank"}," ",8,k)):!e.link&&e.linkRevert&&!e.linkRevert?.startsWith("http")&&!e.linkRevert?.startsWith("//")?(t.openBlock(),t.createElementBlock("a",{key:4,class:"d-none",ref:"link",href:e.linkRevert,target:"_blank"}," ",8,y)):t.createCommentVNode("",!0)],46,f)],8,p)):t.createCommentVNode("",!0)}const b=(e,o)=>{const a=e.__vccOpts||e;for(const[l,r]of o)a[l]=r;return a},v=b(i,[["render",g],["__scopeId","data-v-fdfb0ec4"]]);exports.ButtonInherited=d.ButtonInherited;exports.default=v;
|
package/dist/builder.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import 'uno.css';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { VueClass } from '../../../core';
|
|
2
|
+
export default abstract class ButtonInherited extends VueClass {
|
|
3
|
+
emits: string[];
|
|
4
|
+
readonly icon: string;
|
|
5
|
+
readonly iconRight: string;
|
|
6
|
+
readonly badge: string;
|
|
7
|
+
readonly badgeBg: string | null;
|
|
8
|
+
readonly badgeColor: string | null;
|
|
9
|
+
readonly style: Partial<CSSStyleDeclaration>;
|
|
10
|
+
readonly bg: string | null;
|
|
11
|
+
readonly color: string | null;
|
|
12
|
+
readonly borderColor: string | null;
|
|
13
|
+
readonly bgActive: string | null;
|
|
14
|
+
readonly colorActive: string | null;
|
|
15
|
+
readonly colorHover: string | null;
|
|
16
|
+
readonly borderColorActive: string | null;
|
|
17
|
+
readonly boxShadowColor: string | null;
|
|
18
|
+
readonly fontSize: string | null;
|
|
19
|
+
readonly fontFamily: string | null;
|
|
20
|
+
readonly bgGradientTop: string | null;
|
|
21
|
+
readonly bgGradientBottom: string | null;
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
readonly shine: boolean;
|
|
24
|
+
readonly type: string;
|
|
25
|
+
readonly title: string | null;
|
|
26
|
+
readonly disabledTitle: string | null;
|
|
27
|
+
readonly dataTheme: string;
|
|
28
|
+
readonly dataDisabledTheme: string;
|
|
29
|
+
readonly dataPlacement: string;
|
|
30
|
+
readonly dataOffset: string;
|
|
31
|
+
readonly width: string;
|
|
32
|
+
readonly borderRadius: string;
|
|
33
|
+
/** Открыть ссылку при нажатии, если начинается с http или https будет открыто в новом окне */
|
|
34
|
+
readonly link: string | null;
|
|
35
|
+
/** Для открытия локальных ссылок в новом окне и внешних в текущем, будет проигнорирован при указанном link */
|
|
36
|
+
readonly linkRevert: string | null;
|
|
37
|
+
readonly theme: 'success' | 'default' | 'primary' | 'warning' | 'danger' | 'info' | 'pink' | 'purple' | 'indigo' | 'grey' | 'white' | 'yellow' | null;
|
|
38
|
+
backgroundCss: string;
|
|
39
|
+
boxShadowCss: string;
|
|
40
|
+
isOnHover: boolean;
|
|
41
|
+
isButtonActive: boolean;
|
|
42
|
+
randomClass: string;
|
|
43
|
+
dataThemeInner: string;
|
|
44
|
+
showButton: boolean;
|
|
45
|
+
currentBg: string | null;
|
|
46
|
+
currentColor: string | null;
|
|
47
|
+
currentColorHover: string | null;
|
|
48
|
+
currentBorderColor: string | null;
|
|
49
|
+
currentBgActive: string | null;
|
|
50
|
+
currentBorderColorActive: string | null;
|
|
51
|
+
currentBoxShadowColor: string | null;
|
|
52
|
+
currentColorActive: string | null;
|
|
53
|
+
innerTitle: string | null;
|
|
54
|
+
hasTouchpad: boolean;
|
|
55
|
+
mountedParent(): void;
|
|
56
|
+
$refs: {
|
|
57
|
+
button: HTMLButtonElement;
|
|
58
|
+
link: HTMLLinkElement;
|
|
59
|
+
};
|
|
60
|
+
updateTheme(): void;
|
|
61
|
+
click(e: Event): void;
|
|
62
|
+
touchstart(e: Event): void;
|
|
63
|
+
touchend(e: Event): void;
|
|
64
|
+
mouseup(e: Event): void;
|
|
65
|
+
mousedown(e: Event): void;
|
|
66
|
+
keydownEnter(e: Event): void;
|
|
67
|
+
focus(): void;
|
|
68
|
+
private _onThemeChanged;
|
|
69
|
+
private _onTitleChanged;
|
|
70
|
+
private _onDisabledChanged;
|
|
71
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from './core';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export * from './kit';
|
|
3
|
+
import BaseComponent from './replaceable/BaseComponent.vue';
|
|
4
|
+
import FieldComponent from './replaceable/FieldComponent.vue';
|
|
5
|
+
export { BaseComponent, FieldComponent, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './elements';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");class i{mixins=[];components={};emits=[];emitsParent=[];inject=[];injectParent=[];provide={};provideParent={};instance=this;$attrs={};$data={};$root;$emit(n,...e){}$forceUpdate(n){}$watch(n,e,s){}$nextTick(n){}$={};beforeCreate(){}created(){}beforeMount(){}mounted(){}beforeUpdate(){}updated(){}beforeUnmount(){}unmounted(){}beforeCreateParent(){}createdParent(){}beforeMountParent(){}mountedParent(){}beforeUpdateParent(){}updatedParent(){}beforeUnmountParent(){}unmountedParent(){}nextTick(n,e=1){}hasExternalHandlerEvent(n){return!1}}const V=["$attrs","$data","$el","$off","$on","$emit","$forceUpdate","$nextTick","$options","$parent","$props","$refs","$root","$slots","$watch"];typeof globalThis.__VST>"u"&&(globalThis.__VST={});typeof globalThis.__VST._vueClassInstances>"u"&&(globalThis.__VST._vueClassInstances={});typeof globalThis.__VST._vueClassProps>"u"&&(globalThis.__VST._vueClassProps={});typeof globalThis.__VST._vueClassWatchers>"u"&&(globalThis.__VST._vueClassWatchers={});typeof globalThis.__VST._vueComputed>"u"&&(globalThis.__VST._vueComputed={});function S(t){return typeof t=="function"?b(t):function(n){return b(n,t)}}function b(t,n={}){let e=globalThis.__VST?._vueClassInstances[t.name]??new t;if(!(e instanceof i))throw`Класс ${t.name} должен наследоваться от класса VueClass или его потомков`;globalThis.__VST?._vueClassInstances[t.name]||(globalThis.__VST._vueClassInstances[t.name]=e);const s={},a=new $;for(let o of I(v(e),v(a,!0)))s[o]=e[o];const r={};let _=Object.assign({},globalThis.__VST._vueClassProps[t.name]??{}),f=Object.getPrototypeOf(e);do _=Object.assign(_,globalThis.__VST._vueClassProps[f.constructor.name]??{});while((f=Object.getPrototypeOf(f))instanceof i);for(let o of P(e))_[o]||(r[o]=e[o]);let h=Object.assign({},globalThis.__VST._vueClassWatchers[t.name]??{}),T=Object.getPrototypeOf(e);do h=Object.assign(h,globalThis.__VST._vueClassWatchers[T.constructor.name]??{});while((T=Object.getPrototypeOf(T))instanceof i);let p=Object.assign({},globalThis.__VST._vueComputed[t.name]??{});for(let o in p)delete e[o];let m=[];return u.defineComponent({props:_,watch:h,computed:p,name:e.name??e.instance?.constructor?.name,mixins:e.mixins,components:e.components,emits:e.emits.concat(e.emitsParent),inject:e.inject.concat(e.injectParent),provide:{...e.provideParent,...e.provide},beforeCreate:function(){e=new t,e.$options=this.$options,e.$parent=this.$parent,e.$root=this.$root,e.$slots=this.$slots,e.instance=e,this.name=e.name??e.instance?.constructor.name,this.nextTick=e.nextTick=(o,c=1)=>{const l=d=>{this.$nextTick(()=>{d>1?l(d-1):typeof o=="function"&&!(o instanceof Promise)&&o?.call?.(this)})};l(c)},e.beforeCreateParent.call(this),e.beforeCreate.call(this)},created:function(){this.name=e.name??e.instance?.constructor.name;for(let o in s)this[o]=e[o].bind(this);e.createdParent.call(this),e.created.call(this)},beforeMount:function(){e.beforeMountParent.call(this),e.beforeMount.call(this);const o=()=>{const c=u.getCurrentInstance();c&&c.vnode.props&&(m=Object.keys(c.vnode.props).filter(l=>l.startsWith("on")).map(l=>l.slice(2).toLowerCase()))};o(),u.nextTick(()=>{o()}),this.hasExternalHandlerEvent=c=>m.includes(c)},mounted:function(){e.mountedParent.call(this),e.mounted.call(this)},beforeUpdate:function(){e.beforeUpdateParent.call(this),e.beforeUpdate.call(this);const o=()=>{const c=u.getCurrentInstance();c&&c.vnode.props&&(m=Object.keys(c.vnode.props).filter(l=>l.startsWith("on")).map(l=>l.slice(2).toLowerCase()))};o(),u.nextTick(()=>{o()}),this.hasExternalHandlerEvent=c=>m.includes(c)},updated:function(){e.updatedParent.call(this),e.updated.call(this)},beforeUnmount:function(){e.beforeUnmountParent.call(this),e.beforeUnmount.call(this)},unmounted:function(){e.unmountedParent.call(this),e.unmounted.call(this)},data:function(){return{...r,__vue_class_instance__:null}}})}const C=S;function v(t,n=!1){let e=new Set,s=t;do{if(!n&&s.constructor.name=="VueClass")break;Object.getOwnPropertyNames(s).map(a=>e.add(a))}while(s=Object.getPrototypeOf(s));return[...e.keys()].filter(a=>typeof t[a]=="function"&&typeof Object[a]!="function")}function P(t,n=!1){let e=new Set,s=t;do{if(!n&&s.constructor.name=="VueClass")break;Object.getOwnPropertyNames(s).map(a=>e.add(a))}while(s=Object.getPrototypeOf(s));return[...e.keys()].filter(a=>V.indexOf(a)==-1&&a!="__vue_props__"&&t[a]!=="function"&&typeof Object[a]!="function")}function I(t,n){return t.filter(e=>!n.includes(e))}class $ extends i{}const O=(t,...n)=>(e,s,a)=>{globalThis.__VST._vueClassInstances[e.constructor.name]||(globalThis.__VST._vueClassInstances[e.constructor.name]=new e.constructor,globalThis.__VST._vueClassInstances[e.constructor.name].name=globalThis.__VST._vueClassInstances[e.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[e.constructor.name].name??"");let r=typeof t=="object"?t:{type:[t,...n]};globalThis.__VST._vueClassInstances[e.constructor.name][s]&&(r.default=globalThis.__VST._vueClassInstances[e.constructor.name][s]),globalThis.__VST._vueClassProps[e.constructor.name]||(globalThis.__VST._vueClassProps[e.constructor.name]={}),globalThis.__VST._vueClassProps[e.constructor.name][s]=r},g=function(t,n=!1,e=!1){return(s,a,r)=>{globalThis.__VST._vueClassInstances[s.constructor.name]||(globalThis.__VST._vueClassInstances[s.constructor.name]=new s.constructor,globalThis.__VST._vueClassInstances[s.constructor.name].name=globalThis.__VST._vueClassInstances[s.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[s.constructor.name].name??""),s?.constructor?.prototype?.__vue_watch__||(s.constructor.prototype.__vue_watch__={}),s?.constructor?.prototype?.__vue_watch__[s.constructor.name]||(s.constructor.prototype.__vue_watch__[s.constructor.name]={}),s.constructor.prototype.__vue_watch__[s.constructor.name][t]=globalThis.__VST._vueClassInstances[s.constructor.name][a],globalThis.__VST._vueClassWatchers[s.constructor.name]||(globalThis.__VST._vueClassWatchers[s.constructor.name]={}),globalThis.__VST._vueClassWatchers[s.constructor.name][t]={handler:globalThis.__VST._vueClassInstances[s.constructor.name][a],deep:n,immediate:e}}},j=function(t){return(n,e,s)=>{globalThis.__VST._vueClassInstances[n.constructor.name]||(globalThis.__VST._vueClassInstances[n.constructor.name]=new n.constructor,globalThis.__VST._vueClassInstances[n.constructor.name].name="test",globalThis.__VST._vueClassInstances[n.constructor.name].name=globalThis.__VST._vueClassInstances[n.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[n.constructor.name].name??""),n?.constructor?.prototype?.__vue_computed__||(n.constructor.prototype.__vue_computed__={}),n?.constructor?.prototype?.__vue_computed__[n.constructor.name]||(n.constructor.prototype.__vue_computed__[n.constructor.name]={}),n.constructor.prototype.__vue_computed__[n.constructor.name][t??e]=globalThis.__VST._vueClassInstances[n.constructor.name][e],globalThis.__VST._vueComputed[n.constructor.name]||(globalThis.__VST._vueComputed[n.constructor.name]={});let a=globalThis.__VST._vueClassInstances[n.constructor.name][e];globalThis.__VST._vueClassInstances[n.constructor.name][e]=void 0,delete globalThis.__VST._vueClassInstances[n.constructor.name][e],globalThis.__VST._vueComputed[n.constructor.name][t??e]={get:a}}};class w extends i{emitsParent=["update:modelValue"];constructor(){super()}mountedParent(){}}globalThis.__VST={_vueClassInstances:{},_vueClassProps:{},_vueClassWatchers:{},_vueComputed:{}};const y=C;let k={Button:u.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cqf-28CG.cjs")))};exports.BaseComponent=w;exports.Computed=j;exports.LazyComponents=k;exports.Prop=O;exports.VST=y;exports.VueClass=i;exports.VueClassComponent=C;exports.Watch=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue");class _{mixins=[];components={};emits=[];emitsParent=[];inject=[];injectParent=[];provide={};provideParent={};instance=this;$attrs={};$data={};$root;$emit(e,...t){}$forceUpdate(e){}$watch(e,t,o){}$nextTick(e){}$={};beforeCreate(){}created(){}beforeMount(){}mounted(){}beforeUpdate(){}updated(){}beforeUnmount(){}unmounted(){}beforeCreateParent(){}createdParent(){}beforeMountParent(){}mountedParent(){}beforeUpdateParent(){}updatedParent(){}beforeUnmountParent(){}unmountedParent(){}nextTick(e,t=1){}hasExternalHandlerEvent(e){return!1}}const O=["$attrs","$data","$el","$off","$on","$emit","$forceUpdate","$nextTick","$options","$parent","$props","$refs","$root","$slots","$watch"];typeof globalThis.__VST>"u"&&(globalThis.__VST={});typeof globalThis.__VST._vueClassInstances>"u"&&(globalThis.__VST._vueClassInstances={});typeof globalThis.__VST._vueClassProps>"u"&&(globalThis.__VST._vueClassProps={});typeof globalThis.__VST._vueClassWatchers>"u"&&(globalThis.__VST._vueClassWatchers={});typeof globalThis.__VST._vueComputed>"u"&&(globalThis.__VST._vueComputed={});function V(n){return typeof n=="function"?y(n):function(e){return y(e,n)}}function y(n,e={}){let t=globalThis.__VST?._vueClassInstances[n.name]??new n;if(!(t instanceof _))throw`Класс ${n.name} должен наследоваться от класса VueClass или его потомков`;globalThis.__VST?._vueClassInstances[n.name]||(globalThis.__VST._vueClassInstances[n.name]=t);const o={},l=new A;for(let a of k(B(t),B(l,!0)))o[a]=t[a];const u={};let d=Object.assign({},globalThis.__VST._vueClassProps[n.name]??{}),p=Object.getPrototypeOf(t);do d=Object.assign(d,globalThis.__VST._vueClassProps[p.constructor.name]??{});while((p=Object.getPrototypeOf(p))instanceof _);for(let a of P(t))d[a]||(u[a]=t[a]);let C=Object.assign({},globalThis.__VST._vueClassWatchers[n.name]??{}),g=Object.getPrototypeOf(t);do C=Object.assign(C,globalThis.__VST._vueClassWatchers[g.constructor.name]??{});while((g=Object.getPrototypeOf(g))instanceof _);let T=Object.assign({},globalThis.__VST._vueComputed[n.name]??{});for(let a in T)delete t[a];let b=[];return m.defineComponent({props:d,watch:C,computed:T,name:t.name??t.instance?.constructor?.name,mixins:t.mixins,components:t.components,emits:t.emits.concat(t.emitsParent),inject:t.inject.concat(t.injectParent),provide:{...t.provideParent,...t.provide},beforeCreate:function(){t=new n,t.$options=this.$options,t.$parent=this.$parent,t.$root=this.$root,t.$slots=this.$slots,t.instance=t,this.name=t.name??t.instance?.constructor.name,this.nextTick=t.nextTick=(a,h=1)=>{const f=S=>{this.$nextTick(()=>{S>1?f(S-1):typeof a=="function"&&!(a instanceof Promise)&&a?.call?.(this)})};f(h)},t.beforeCreateParent.call(this),t.beforeCreate.call(this)},created:function(){this.name=t.name??t.instance?.constructor.name;for(let a in o)this[a]=t?.[a].bind?.(this);t.createdParent.call(this),t.created.call(this)},beforeMount:function(){t.beforeMountParent.call(this),t.beforeMount.call(this);const a=()=>{const h=m.getCurrentInstance();h&&h.vnode.props&&(b=Object.keys(h.vnode.props).filter(f=>f.startsWith("on")).map(f=>f.slice(2).toLowerCase()))};a(),m.nextTick(()=>{a()}),this.hasExternalHandlerEvent=h=>b.includes(h)},mounted:function(){t.mountedParent.call(this),t.mounted.call(this)},beforeUpdate:function(){t.beforeUpdateParent.call(this),t.beforeUpdate.call(this);const a=()=>{const h=m.getCurrentInstance();h&&h.vnode.props&&(b=Object.keys(h.vnode.props).filter(f=>f.startsWith("on")).map(f=>f.slice(2).toLowerCase()))};a(),m.nextTick(()=>{a()}),this.hasExternalHandlerEvent=h=>b.includes(h)},updated:function(){t.updatedParent.call(this),t.updated.call(this)},beforeUnmount:function(){t.beforeUnmountParent.call(this),t.beforeUnmount.call(this)},unmounted:function(){t.unmountedParent.call(this),t.unmounted.call(this)},data:function(){return{...u,__vue_class_instance__:null}}})}const w=V;function B(n,e=!1){let t=new Set,o=n;do{if(!e&&o.constructor.name=="VueClass")break;Object.getOwnPropertyNames(o).map(l=>t.add(l))}while(o=Object.getPrototypeOf(o));return[...t.keys()].filter(l=>typeof n[l]=="function"&&typeof Object[l]!="function")}function P(n,e=!1){let t=new Set,o=n;do{if(!e&&o.constructor.name=="VueClass")break;Object.getOwnPropertyNames(o).map(l=>t.add(l))}while(o=Object.getPrototypeOf(o));return[...t.keys()].filter(l=>O.indexOf(l)==-1&&l!="__vue_props__"&&n[l]!=="function"&&typeof Object[l]!="function")}function k(n,e){return n.filter(t=>!e.includes(t))}class A extends _{}const c=(n,...e)=>(t,o,l)=>{globalThis.__VST._vueClassInstances[t.constructor.name]||(globalThis.__VST._vueClassInstances[t.constructor.name]=new t.constructor,globalThis.__VST._vueClassInstances[t.constructor.name].name=globalThis.__VST._vueClassInstances[t.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[t.constructor.name].name??"");let u=typeof n=="object"?n:{type:[n,...e]};globalThis.__VST._vueClassInstances[t.constructor.name][o]&&(u.default=globalThis.__VST._vueClassInstances[t.constructor.name][o]),globalThis.__VST._vueClassProps[t.constructor.name]||(globalThis.__VST._vueClassProps[t.constructor.name]={}),globalThis.__VST._vueClassProps[t.constructor.name][o]=u},v=function(n,e=!1,t=!1){return(o,l,u)=>{globalThis.__VST._vueClassInstances[o.constructor.name]||(globalThis.__VST._vueClassInstances[o.constructor.name]=new o.constructor,globalThis.__VST._vueClassInstances[o.constructor.name].name=globalThis.__VST._vueClassInstances[o.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[o.constructor.name].name??""),o?.constructor?.prototype?.__vue_watch__||(o.constructor.prototype.__vue_watch__={}),o?.constructor?.prototype?.__vue_watch__[o.constructor.name]||(o.constructor.prototype.__vue_watch__[o.constructor.name]={}),o.constructor.prototype.__vue_watch__[o.constructor.name][n]=globalThis.__VST._vueClassInstances[o.constructor.name][l],globalThis.__VST._vueClassWatchers[o.constructor.name]||(globalThis.__VST._vueClassWatchers[o.constructor.name]={}),globalThis.__VST._vueClassWatchers[o.constructor.name][n]={handler:globalThis.__VST._vueClassInstances[o.constructor.name][l],deep:e,immediate:t}}},$=function(n){return(e,t,o)=>{globalThis.__VST._vueClassInstances[e.constructor.name]||(globalThis.__VST._vueClassInstances[e.constructor.name]=new e.constructor,globalThis.__VST._vueClassInstances[e.constructor.name].name="test",globalThis.__VST._vueClassInstances[e.constructor.name].name=globalThis.__VST._vueClassInstances[e.constructor.name]?.constructor?.name?.toString()??globalThis.__VST._vueClassInstances[e.constructor.name].name??""),e?.constructor?.prototype?.__vue_computed__||(e.constructor.prototype.__vue_computed__={}),e?.constructor?.prototype?.__vue_computed__[e.constructor.name]||(e.constructor.prototype.__vue_computed__[e.constructor.name]={}),e.constructor.prototype.__vue_computed__[e.constructor.name][n??t]=globalThis.__VST._vueClassInstances[e.constructor.name][t],globalThis.__VST._vueComputed[e.constructor.name]||(globalThis.__VST._vueComputed[e.constructor.name]={});let l=globalThis.__VST._vueClassInstances[e.constructor.name][t];globalThis.__VST._vueClassInstances[e.constructor.name][t]=void 0,delete globalThis.__VST._vueClassInstances[e.constructor.name][t],globalThis.__VST._vueComputed[e.constructor.name][n??t]={get:l}}};let x=class extends _{emitsParent=["update:modelValue"];constructor(){super()}mountedParent(){}};globalThis.__VST={_vueClassInstances:{},_vueClassProps:{},_vueClassWatchers:{},_vueComputed:{}};const j=w;function i(n,e,t,o){var l=arguments.length,u=l<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,e,t,o);else for(var p=n.length-1;p>=0;p--)(d=n[p])&&(u=(l<3?d(u):l>3?d(e,t,u):d(e,t))||u);return l>3&&u&&Object.defineProperty(e,t,u),u}function r(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}class s extends _{emits=["click","touchstart","touchend","mousedown","mouseup","clickTap","clickTouch","clickOrTouchstart","clickOrTouchend","mousedownOrTouchstart","mouseupOrTouchend","keydownEnter"];icon="";iconRight="";badge="";badgeBg=null;badgeColor=null;style={};bg=null;color=null;borderColor=null;bgActive=null;colorActive=null;colorHover=null;borderColorActive=null;boxShadowColor=null;fontSize=null;fontFamily=null;bgGradientTop=null;bgGradientBottom=null;disabled=!1;shine=!1;type="button";title=null;disabledTitle=null;dataTheme="black";dataDisabledTheme="gray";dataPlacement="top";dataOffset="top";width="calc(100% - 8px)";borderRadius="3px";link=null;linkRevert=null;theme="default";backgroundCss="";boxShadowCss="";isOnHover=!1;isButtonActive=!1;randomClass="";dataThemeInner="";showButton=!0;currentBg=null;currentColor=null;currentColorHover=null;currentBorderColor=null;currentBgActive=null;currentBorderColorActive=null;currentBoxShadowColor=null;currentColorActive=null;innerTitle=null;hasTouchpad=!1;mountedParent(){this.randomClass="button-c",this.updateTheme(),this.$refs?.button}updateTheme(){const e="#ccc",t="#000",o="#cacaca",l="#ccc",u="#b6b6b6",d="#5b5a5a";this.currentBgActive,this.currentBorderColor=this.currentColor=this.currentBg=this.currentColorActive=null,this.theme=="primary"&&(this.currentBg="#005bbf",this.currentColor="#fff",this.currentBorderColor="#0367d5",this.currentBgActive="#005fc8",this.currentBorderColorActive="#0871e3",this.currentBoxShadowColor="#065e8d",this.currentColorActive="#fff",this.currentColorHover="#fff"),this.theme=="success"?(this.currentBg="#0aa86d",this.currentColor="#fff",this.currentBorderColor="#24a876",this.currentBgActive="#0b9762",this.currentBorderColorActive="#0b9762",this.currentBoxShadowColor="#31735b",this.currentColorActive="#fff",this.currentColorHover="#fff"):this.theme=="danger"?(this.currentBg="#FF3B30",this.currentColor="#fff",this.currentBorderColor="#FF3B30",this.currentBgActive="#FF3B30",this.currentBorderColorActive="#FF3B30",this.currentBoxShadowColor="#ff8179",this.currentColorActive="#fff",this.currentColorHover="#fff"):this.theme=="pink"?(this.currentBg="#ff6161",this.currentColor="#fff",this.currentBorderColor="#ff4741c9",this.currentBgActive="#ff6a60",this.currentBorderColorActive="#ff4141",this.currentBoxShadowColor="#ff6a60",this.currentColorActive="#fff",this.currentColorHover="#fff"):this.theme=="warning"?(this.currentBg="#FF9500",this.currentColor="#fff",this.currentBorderColor="#FF9500",this.currentBgActive="#ffb546",this.currentBorderColorActive="#ffb546",this.currentBoxShadowColor="#ffbe64",this.currentColorActive="#fdff98",this.currentColorHover="#fff8e8"):this.theme=="info"?(this.currentBg="#78d9ff",this.currentColor="#203464",this.currentColorHover="#34aff1",this.currentBorderColor="#3db0ee",this.currentBgActive="#78d9ff",this.currentBorderColorActive="#78d9ff",this.currentBoxShadowColor="#78d9ff",this.currentColorActive="#fff",this.currentColorHover="#304460"):this.theme=="yellow"?(this.currentBg="#ffd900",this.currentColor="#444",this.currentBorderColor="#ffd900",this.currentBgActive="#ffc400",this.currentBorderColorActive="#f3c922",this.currentBoxShadowColor="#cac838",this.currentColorActive="#fff"):this.theme=="white"?(this.currentBg="#ffffff",this.currentColor="#444",this.currentColorHover="#164205",this.currentBorderColor="#cacaca",this.currentBgActive="#efede7",this.currentBorderColorActive="##cacaca",this.currentBoxShadowColor="#b3b3ab",this.currentColorActive="#164205"):this.theme=="purple"?(this.currentBg="#942cdd",this.currentColor="#fff",this.currentColorHover="#e7c0ff",this.currentBorderColor="#a539f3",this.currentBgActive="#b755ff",this.currentBorderColorActive="#b755ff",this.currentBoxShadowColor="#7f18c5",this.currentColorActive="#ffffff"):this.theme=="black"&&(this.currentBg="#32383e",this.currentColor="#fff",this.currentColorHover="#fcb7ab",this.currentBorderColor="#32383e",this.currentBgActive="#3b4249",this.currentBorderColorActive="#3b4249",this.currentBoxShadowColor="#32383e",this.currentColorActive="#ffffff"),this.currentBg=this.bg??this.currentBg??e,this.currentColor=this.color??this.currentColor??t,this.currentBorderColor=this.borderColor??this.currentBorderColor??o,this.currentBgActive=this.bgActive??this.currentBgActive??l,this.currentBorderColorActive=this.borderColorActive??this.currentBorderColorActive??u,this.currentBoxShadowColor=this.boxShadowColor??this.currentBoxShadowColor??d,this.currentColorActive=this.colorActive??this.currentColorActive??null,this.boxShadowCss=this.disabled?"box-shadow: none":`box-shadow: 0px 1px 2px 0px ${this.currentBoxShadowColor}`,this.dataThemeInner=this.disabled?this.dataDisabledTheme:this.dataTheme,this.backgroundCss="background: "+(this.bgGradientTop&&this.bgGradientBottom?`linear-gradient(to bottom, ${this.bgGradientTop}, ${this.bgGradientBottom})`:this.bg)}click(e){this.disabled||(this.$emit("click",e,this),this.hasTouchpad||(this.$emit("clickTouch",e,this),this.$emit("clickOrTouchstart",e,this),this.$emit("clickTap",e,this),this.link&&(this.link?.startsWith("http")||this.link?.startsWith("//"))||this.link&&this.linkRevert&&!this.linkRevert?.startsWith("http")&&!this.linkRevert?.startsWith("//")?this.$refs.link?.click():(this.link||this.linkRevert)&&window.pjax(this.link||this.linkRevert)))}touchstart(e){this.disabled||(this.$emit("touchstart",e,this),this.hasTouchpad&&(this.$emit("clickTouch",e,this),this.$emit("clickOrTouchstart",e,this)))}touchend(e){this.disabled||(this.$emit("touchend",e,this),this.hasTouchpad||this.$emit("clickOrTouchend",e,this))}mouseup(e){this.disabled||(this.$emit("mouseup",e,this),this.$emit("mouseupOrTouchend",e,this),this.$emit("clickOrTouchend",e,this))}mousedown(e){this.disabled||(this.$emit("mousedown",e,this),this.$emit("mousedownOrTouchstart",e,this))}keydownEnter(e){this.disabled||this.$emit("keydownEnter",e,this)}focus(){this.$refs?.button?.focus()}_onThemeChanged(){this.updateTheme()}_onTitleChanged(e){this.innerTitle=null,e&&this.nextTick(()=>this.innerTitle=e)}_onDisabledChanged(e){this.dataThemeInner=e?this.dataDisabledTheme:this.dataTheme,this.showButton=!1,this.nextTick(()=>this.showButton=!0)}}i([c(String),r("design:type",String)],s.prototype,"icon",void 0);i([c(String),r("design:type",String)],s.prototype,"iconRight",void 0);i([c(String),r("design:type",String)],s.prototype,"badge",void 0);i([c(String),r("design:type",Object)],s.prototype,"badgeBg",void 0);i([c(String),r("design:type",Object)],s.prototype,"badgeColor",void 0);i([c(Object),r("design:type",Object)],s.prototype,"style",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"bg",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"color",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"borderColor",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"bgActive",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"colorActive",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"colorHover",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"borderColorActive",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"boxShadowColor",void 0);i([c(String),r("design:type",Object)],s.prototype,"fontSize",void 0);i([c(String),r("design:type",Object)],s.prototype,"fontFamily",void 0);i([c(String),r("design:type",Object)],s.prototype,"bgGradientTop",void 0);i([c(String),r("design:type",Object)],s.prototype,"bgGradientBottom",void 0);i([c(Boolean),r("design:type",Boolean)],s.prototype,"disabled",void 0);i([c(Boolean),r("design:type",Boolean)],s.prototype,"shine",void 0);i([c(String),r("design:type",String)],s.prototype,"type",void 0);i([c(String),r("design:type",Object)],s.prototype,"title",void 0);i([c(String),r("design:type",Object)],s.prototype,"disabledTitle",void 0);i([c(String),r("design:type",String)],s.prototype,"dataTheme",void 0);i([c(String),r("design:type",String)],s.prototype,"dataDisabledTheme",void 0);i([c(String),r("design:type",String)],s.prototype,"dataPlacement",void 0);i([c(String),r("design:type",String)],s.prototype,"dataOffset",void 0);i([c(String),r("design:type",String)],s.prototype,"width",void 0);i([c(String),r("design:type",String)],s.prototype,"borderRadius",void 0);i([c(String),r("design:type",Object)],s.prototype,"link",void 0);i([c(String),r("design:type",Object)],s.prototype,"linkRevert",void 0);i([c(String,null),r("design:type",Object)],s.prototype,"theme",void 0);i([v("theme"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"_onThemeChanged",null);i([v("title",!1,!0),r("design:type",Function),r("design:paramtypes",[String]),r("design:returntype",void 0)],s.prototype,"_onTitleChanged",null);i([v("disabled"),r("design:type",Function),r("design:paramtypes",[Boolean]),r("design:returntype",void 0)],s.prototype,"_onDisabledChanged",null);const I=m.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Button-hkwUsLqp.cjs")));class H extends _{emitsParent=["update:modelValue"];constructor(){super()}mountedParent(){}}class F extends x{emitsParent=["update:modelValue"];constructor(){super()}mountedParent(){}}exports.BaseComponent=H;exports.Button=I;exports.ButtonInherited=s;exports.Computed=$;exports.FieldComponent=F;exports.Prop=c;exports.VST=j;exports.VueClass=_;exports.VueClassComponent=w;exports.Watch=v;
|
package/dist/vue-spear-tip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
button[data-v-fdfb0ec4]{width:100%;height:100%;display:flex!important;align-items:center!important;justify-content:center!important;touch-action:manipulation;position:relative;font-size:14px;margin:2px 4px;opacity:.9;-webkit-user-select:none;user-select:none;box-shadow:none;outline:none;cursor:pointer;display:inline-block;border:1px solid #fff;transition:all .04s ease-in-out;padding:4px 10px}button .left-icon[data-v-fdfb0ec4]{padding-right:5px}button .right-icon[data-v-fdfb0ec4]{padding-left:5px}button:not(:disabled) .left-icon-animate i[data-v-fdfb0ec4],button:not(:disabled) .right-icon-animate i[data-v-fdfb0ec4]{transition:all .1s ease-in-out!important}button[data-v-fdfb0ec4]:disabled{opacity:.5;cursor:not-allowed}button[data-v-fdfb0ec4]:focus-visible{border-radius:8px;--un-outline-color-opacity:1 !important;outline-color:rgb(249 115 22 / var(--un-outline-color-opacity))!important}button.shine[data-v-fdfb0ec4]:not(:disabled):before{content:"";position:absolute;-webkit-user-select:none;user-select:none;inset:0;width:100%;opacity:0;background:linear-gradient(120deg,transparent 0%,transparent 25%,rgba(255,255,255,.6) 45%,rgba(255,255,255,.6) 50%,transparent 75%,transparent 100%);animation:shine-fdfb0ec4 3s linear infinite;z-index:1;pointer-events:none}@keyframes shine-fdfb0ec4{0%{opacity:0;transform:translate(-100%)}45%{opacity:.005;transform:translate(-60%)}50%{opacity:.8;transform:translate(0)}54%{opacity:0;transform:translate(60%)}to{opacity:0;transform:translate(100%)}}button[data-v-fdfb0ec4]:hover:not(:disabled),button[data-v-fdfb0ec4]:focus-visible:not(:disabled){transform:scale(1.06);border-radius:8px}button:hover:not(:disabled) .left-icon-animate i[data-v-fdfb0ec4],button:hover:not(:disabled) .right-icon-animate i[data-v-fdfb0ec4],button:focus-visible:not(:disabled) .left-icon-animate i[data-v-fdfb0ec4],button:focus-visible:not(:disabled) .right-icon-animate i[data-v-fdfb0ec4]{transform:rotate(-18deg)}button[data-v-fdfb0ec4]:active:not(:disabled){transform:scale(1)}button:active:not(:disabled) .left-icon-animate i[data-v-fdfb0ec4],button:active:not(:disabled) .right-icon-animate i[data-v-fdfb0ec4]{transform:rotate(22deg)}
|