@validol4ik/uikit 0.3.6 → 0.3.7
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/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.d.ts +1 -1
- package/dist/uikit.es.js +4455 -6
- package/package.json +1 -1
- package/dist/focusout-DjvPXP_b.js +0 -135
- package/dist/focusout-DzWGke-4.cjs +0 -1
- package/dist/icons/icons.cjs +0 -1
- package/dist/icons/icons.d.ts +0 -1
- package/dist/icons/icons.es.js +0 -1
- package/dist/icons/index.d.ts +0 -1
- package/dist/index-B3ClYuZF.js +0 -61
- package/dist/index-B7i_chyx.js +0 -985
- package/dist/index-BNgXKI6Q.cjs +0 -1
- package/dist/index-CjvD9fEe.js +0 -3362
- package/dist/index-DJsI5Qyh.cjs +0 -1
- package/dist/index-DTcaHgxl.cjs +0 -1
- /package/dist/{common/helpers → utils}/requiredRule.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { ref as p, reactive as v } from "vue";
|
|
2
|
-
function m(o, r, a, i) {
|
|
3
|
-
return Object.defineProperty(o, r, {
|
|
4
|
-
get: a,
|
|
5
|
-
set: i,
|
|
6
|
-
enumerable: !0
|
|
7
|
-
}), o;
|
|
8
|
-
}
|
|
9
|
-
const s = p(
|
|
10
|
-
!1
|
|
11
|
-
);
|
|
12
|
-
let l;
|
|
13
|
-
function h(o, r) {
|
|
14
|
-
const a = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(o) || /(opr)[\/]([\w.]+)/.exec(o) || /(vivaldi)[\/]([\w.]+)/.exec(o) || /(chrome|crios)[\/]([\w.]+)/.exec(o) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o) || /(firefox|fxios)[\/]([\w.]+)/.exec(o) || /(webkit)[\/]([\w.]+)/.exec(o) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(o) || [];
|
|
15
|
-
return {
|
|
16
|
-
browser: a[5] || a[3] || a[1] || "",
|
|
17
|
-
version: a[4] || a[2] || "0",
|
|
18
|
-
platform: r[0] || ""
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function x(o) {
|
|
22
|
-
return /(ipad)/.exec(o) || /(ipod)/.exec(o) || /(windows phone)/.exec(o) || /(iphone)/.exec(o) || /(kindle)/.exec(o) || /(silk)/.exec(o) || /(android)/.exec(o) || /(win)/.exec(o) || /(mac)/.exec(o) || /(linux)/.exec(o) || /(cros)/.exec(o) || /(playbook)/.exec(o) || /(bb)/.exec(o) || /(blackberry)/.exec(o) || [];
|
|
23
|
-
}
|
|
24
|
-
const b = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
25
|
-
function k(o) {
|
|
26
|
-
const r = o.toLowerCase(), a = x(r), i = h(r, a), e = {
|
|
27
|
-
mobile: !1,
|
|
28
|
-
desktop: !1,
|
|
29
|
-
cordova: !1,
|
|
30
|
-
capacitor: !1,
|
|
31
|
-
nativeMobile: !1,
|
|
32
|
-
// nativeMobileWrapper: void 0,
|
|
33
|
-
electron: !1,
|
|
34
|
-
bex: !1,
|
|
35
|
-
linux: !1,
|
|
36
|
-
mac: !1,
|
|
37
|
-
win: !1,
|
|
38
|
-
cros: !1,
|
|
39
|
-
chrome: !1,
|
|
40
|
-
firefox: !1,
|
|
41
|
-
opera: !1,
|
|
42
|
-
safari: !1,
|
|
43
|
-
vivaldi: !1,
|
|
44
|
-
edge: !1,
|
|
45
|
-
edgeChromium: !1,
|
|
46
|
-
ie: !1,
|
|
47
|
-
webkit: !1,
|
|
48
|
-
android: !1,
|
|
49
|
-
ios: !1,
|
|
50
|
-
ipad: !1,
|
|
51
|
-
iphone: !1,
|
|
52
|
-
ipod: !1,
|
|
53
|
-
kindle: !1,
|
|
54
|
-
winphone: !1,
|
|
55
|
-
blackberry: !1,
|
|
56
|
-
playbook: !1,
|
|
57
|
-
silk: !1
|
|
58
|
-
};
|
|
59
|
-
i.browser && (e[i.browser] = !0, e.version = i.version, e.versionNumber = parseInt(i.version, 10)), i.platform && (e[i.platform] = !0);
|
|
60
|
-
const f = e.android || e.ios || e.bb || e.blackberry || e.ipad || e.iphone || e.ipod || e.kindle || e.playbook || e.silk || e["windows phone"];
|
|
61
|
-
if (f === !0 || r.indexOf("mobile") !== -1 ? e.mobile = !0 : e.desktop = !0, e["windows phone"] && (e.winphone = !0, delete e["windows phone"]), e.edga || e.edgios || e.edg ? (e.edge = !0, i.browser = "edge") : e.crios ? (e.chrome = !0, i.browser = "chrome") : e.fxios && (e.firefox = !0, i.browser = "firefox"), (e.ipod || e.ipad || e.iphone) && (e.ios = !0), e.vivaldi && (i.browser = "vivaldi", e.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
62
|
-
(e.chrome || e.opr || e.safari || e.vivaldi || e.mobile === !0 && e.ios !== !0 && f !== !0) && (e.webkit = !0), e.opr && (i.browser = "opera", e.opera = !0), e.safari && (e.blackberry || e.bb ? (i.browser = "blackberry", e.blackberry = !0) : e.playbook ? (i.browser = "playbook", e.playbook = !0) : e.android ? (i.browser = "android", e.android = !0) : e.kindle ? (i.browser = "kindle", e.kindle = !0) : e.silk && (i.browser = "silk", e.silk = !0)), e.name = i.browser, e.platform = i.platform, r.indexOf("electron") !== -1)
|
|
63
|
-
e.electron = !0;
|
|
64
|
-
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
65
|
-
e.bex = !0;
|
|
66
|
-
else {
|
|
67
|
-
if (window.Capacitor !== void 0 ? (e.capacitor = !0, e.nativeMobile = !0, e.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (e.cordova = !0, e.nativeMobile = !0, e.nativeMobileWrapper = "cordova"), s.value === !0 && (l = { is: { ...e } }), b === !0 && e.mac === !0 && (e.desktop === !0 && e.safari === !0 || e.nativeMobile === !0 && e.android !== !0 && e.ios !== !0 && e.ipad !== !0)) {
|
|
68
|
-
delete e.mac, delete e.desktop;
|
|
69
|
-
const c = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
70
|
-
Object.assign(e, {
|
|
71
|
-
mobile: !0,
|
|
72
|
-
ios: !0,
|
|
73
|
-
platform: c,
|
|
74
|
-
[c]: !0
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
e.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete e.desktop, e.mobile = !0);
|
|
78
|
-
}
|
|
79
|
-
return e;
|
|
80
|
-
}
|
|
81
|
-
const d = navigator.userAgent || navigator.vendor || window.opera, y = {
|
|
82
|
-
has: {
|
|
83
|
-
touch: !1,
|
|
84
|
-
webStorage: !1
|
|
85
|
-
},
|
|
86
|
-
within: { iframe: !1 }
|
|
87
|
-
}, n = {
|
|
88
|
-
userAgent: d,
|
|
89
|
-
is: k(d),
|
|
90
|
-
has: {
|
|
91
|
-
touch: b
|
|
92
|
-
},
|
|
93
|
-
within: {
|
|
94
|
-
iframe: window.self !== window.top
|
|
95
|
-
}
|
|
96
|
-
}, w = {
|
|
97
|
-
install(o) {
|
|
98
|
-
const { $q: r } = o;
|
|
99
|
-
s.value === !0 ? (o.onSSRHydrated.push(() => {
|
|
100
|
-
Object.assign(r.platform, n), s.value = !1;
|
|
101
|
-
}), r.platform = v(this)) : r.platform = this;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
{
|
|
105
|
-
let o;
|
|
106
|
-
m(n.has, "webStorage", () => {
|
|
107
|
-
if (o !== void 0)
|
|
108
|
-
return o;
|
|
109
|
-
try {
|
|
110
|
-
if (window.localStorage)
|
|
111
|
-
return o = !0, !0;
|
|
112
|
-
} catch {
|
|
113
|
-
}
|
|
114
|
-
return o = !1, !1;
|
|
115
|
-
}), Object.assign(w, n), s.value === !0 && (Object.assign(w, l, y), l = null);
|
|
116
|
-
}
|
|
117
|
-
const t = [];
|
|
118
|
-
function u(o) {
|
|
119
|
-
t[t.length - 1](o);
|
|
120
|
-
}
|
|
121
|
-
function M(o) {
|
|
122
|
-
n.is.desktop === !0 && (t.push(o), t.length === 1 && document.body.addEventListener("focusin", u));
|
|
123
|
-
}
|
|
124
|
-
function O(o) {
|
|
125
|
-
const r = t.indexOf(o);
|
|
126
|
-
r !== -1 && (t.splice(r, 1), t.length === 0 && document.body.removeEventListener("focusin", u));
|
|
127
|
-
}
|
|
128
|
-
export {
|
|
129
|
-
w as P,
|
|
130
|
-
M as a,
|
|
131
|
-
m as b,
|
|
132
|
-
n as c,
|
|
133
|
-
s as i,
|
|
134
|
-
O as r
|
|
135
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("vue");function b(o,r,a,i){return Object.defineProperty(o,r,{get:a,set:i,enumerable:!0}),o}const s=w.ref(!1);let l;function m(o,r){const a=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:a[5]||a[3]||a[1]||"",version:a[4]||a[2]||"0",platform:r[0]||""}}function h(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const p="ontouchstart"in window||window.navigator.maxTouchPoints>0;function x(o){const r=o.toLowerCase(),a=h(r),i=m(r,a),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};i.browser&&(e[i.browser]=!0,e.version=i.version,e.versionNumber=parseInt(i.version,10)),i.platform&&(e[i.platform]=!0);const c=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(c===!0||r.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,i.browser="edge"):e.crios?(e.chrome=!0,i.browser="chrome"):e.fxios&&(e.firefox=!0,i.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(i.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&c!==!0)&&(e.webkit=!0),e.opr&&(i.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(i.browser="blackberry",e.blackberry=!0):e.playbook?(i.browser="playbook",e.playbook=!0):e.android?(i.browser="android",e.android=!0):e.kindle?(i.browser="kindle",e.kindle=!0):e.silk&&(i.browser="silk",e.silk=!0)),e.name=i.browser,e.platform=i.platform,r.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),s.value===!0&&(l={is:{...e}}),p===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const u=navigator.userAgent||navigator.vendor||window.opera,k={has:{touch:!1,webStorage:!1},within:{iframe:!1}},n={userAgent:u,is:x(u),has:{touch:p},within:{iframe:window.self!==window.top}},f={install(o){const{$q:r}=o;s.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(r.platform,n),s.value=!1}),r.platform=w.reactive(this)):r.platform=this}};{let o;b(n.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(f,n),s.value===!0&&(Object.assign(f,l,k),l=null)}const t=[];function v(o){t[t.length-1](o)}function y(o){n.is.desktop===!0&&(t.push(o),t.length===1&&document.body.addEventListener("focusin",v))}function g(o){const r=t.indexOf(o);r!==-1&&(t.splice(r,1),t.length===0&&document.body.removeEventListener("focusin",v))}exports.Platform=f;exports.addFocusout=y;exports.client=n;exports.injectProp=b;exports.isRuntimeSsrPreHydration=s;exports.removeFocusout=g;
|
package/dist/icons/icons.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/icons/icons.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/icons/icons.es.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/icons/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index-B3ClYuZF.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, ref as l, openBlock as s, createBlock as p, unref as d, mergeProps as u, withModifiers as m } from "vue";
|
|
2
|
-
import { r as f, a as C } from "./focusout-DjvPXP_b.js";
|
|
3
|
-
import { A as y, C as b } from "./index-B7i_chyx.js";
|
|
4
|
-
function v(t) {
|
|
5
|
-
const e = document.createElement("textarea");
|
|
6
|
-
e.value = t, e.contentEditable = "true", e.style.position = "fixed";
|
|
7
|
-
const o = () => {
|
|
8
|
-
};
|
|
9
|
-
C(o), document.body.appendChild(e), e.focus(), e.select();
|
|
10
|
-
const n = document.execCommand("copy");
|
|
11
|
-
return e.remove(), f(o), n;
|
|
12
|
-
}
|
|
13
|
-
function O(t) {
|
|
14
|
-
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(t) : new Promise((e, o) => {
|
|
15
|
-
const n = v(t);
|
|
16
|
-
n ? e(!0) : o(n);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const a = {
|
|
20
|
-
COPY: "copy_o",
|
|
21
|
-
COPIED: "copied_o"
|
|
22
|
-
}, P = /* @__PURE__ */ i({
|
|
23
|
-
__name: "index",
|
|
24
|
-
props: {
|
|
25
|
-
text: {},
|
|
26
|
-
size: {},
|
|
27
|
-
transparent: { type: Boolean, default: !0 },
|
|
28
|
-
flat: { type: Boolean },
|
|
29
|
-
rounded: { type: Boolean },
|
|
30
|
-
color: { default: b.INFO },
|
|
31
|
-
iconLeft: {},
|
|
32
|
-
iconRight: {},
|
|
33
|
-
iconMiddle: {},
|
|
34
|
-
disabled: { type: Boolean },
|
|
35
|
-
loading: { type: Boolean },
|
|
36
|
-
to: {},
|
|
37
|
-
href: {},
|
|
38
|
-
target: {},
|
|
39
|
-
submit: { type: Boolean },
|
|
40
|
-
ariaLabel: {},
|
|
41
|
-
label: {}
|
|
42
|
-
},
|
|
43
|
-
setup(t) {
|
|
44
|
-
const e = t, o = l(a.COPY), n = () => {
|
|
45
|
-
o.value = a.COPIED, setTimeout(() => {
|
|
46
|
-
o.value = a.COPY;
|
|
47
|
-
}, 2e3);
|
|
48
|
-
}, r = () => {
|
|
49
|
-
O(e.text).then(n).catch((c) => {
|
|
50
|
-
console.log(c);
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
return (c, x) => (s(), p(d(y), u(e, {
|
|
54
|
-
"icon-middle": o.value,
|
|
55
|
-
onClick: m(r, ["prevent"])
|
|
56
|
-
}), null, 16, ["icon-middle"]));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
P as default
|
|
61
|
-
};
|