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