@validol4ik/uikit 0.3.3 → 0.3.5
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 +7 -1
- package/dist/focusout-DjvPXP_b.js +135 -0
- package/dist/focusout-DzWGke-4.cjs +1 -0
- package/dist/{index-0R6r0Ppp.js → index-B3ClYuZF.js} +8 -7
- package/dist/index-B7i_chyx.js +985 -0
- package/dist/index-BNgXKI6Q.cjs +1 -0
- package/dist/index-CjvD9fEe.js +3362 -0
- package/dist/index-DJsI5Qyh.cjs +1 -0
- package/dist/index-DTcaHgxl.cjs +1 -0
- package/dist/style.css +1 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +2 -2
- package/package.json +1 -1
- package/dist/icons.css +0 -1
- package/dist/index-CA-sZ-Zx.js +0 -4396
- package/dist/index-CZlaUwuY.cjs +0 -1
- package/dist/index-CrrrDDws.cjs +0 -1
- package/dist/index.css +0 -1
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { default as AppButton } from './buttons/AppButton/index.vue';
|
|
2
|
-
import { default as AppSelect } from './form/AppSelect/index.vue';
|
|
3
2
|
import { AppButtonProps } from './buttons/AppButton/types';
|
|
4
3
|
import { default as AppIcon } from './AppIcon/index.vue';
|
|
5
4
|
declare const AppButtonCopy: import('vue').DefineComponent<import('./buttons/CopyButton/types').default, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./buttons/CopyButton/types').default> & Readonly<{}>, {
|
|
6
5
|
transparent: boolean;
|
|
7
6
|
color: import('quasar').NamedColor;
|
|
8
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const AppSelect: import('vue').DefineComponent<import('./form/AppSelect/types').AppSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('./form/AppSelect/types').AppSelectProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: import('./types').Size;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
15
|
export { AppButton, AppButtonProps, AppIcon, AppButtonCopy, AppSelect };
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as i, ref as l, openBlock as s, createBlock as
|
|
2
|
-
import {
|
|
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";
|
|
3
4
|
function v(t) {
|
|
4
5
|
const e = document.createElement("textarea");
|
|
5
6
|
e.value = t, e.contentEditable = "true", e.style.position = "fixed";
|
|
6
7
|
const o = () => {
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
C(o), document.body.appendChild(e), e.focus(), e.select();
|
|
9
10
|
const n = document.execCommand("copy");
|
|
10
|
-
return e.remove(),
|
|
11
|
+
return e.remove(), f(o), n;
|
|
11
12
|
}
|
|
12
13
|
function O(t) {
|
|
13
14
|
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(t) : new Promise((e, o) => {
|
|
@@ -18,7 +19,7 @@ function O(t) {
|
|
|
18
19
|
const a = {
|
|
19
20
|
COPY: "copy_o",
|
|
20
21
|
COPIED: "copied_o"
|
|
21
|
-
},
|
|
22
|
+
}, P = /* @__PURE__ */ i({
|
|
22
23
|
__name: "index",
|
|
23
24
|
props: {
|
|
24
25
|
text: {},
|
|
@@ -49,12 +50,12 @@ const a = {
|
|
|
49
50
|
console.log(c);
|
|
50
51
|
});
|
|
51
52
|
};
|
|
52
|
-
return (c, x) => (s(), d(
|
|
53
|
+
return (c, x) => (s(), p(d(y), u(e, {
|
|
53
54
|
"icon-middle": o.value,
|
|
54
55
|
onClick: m(r, ["prevent"])
|
|
55
56
|
}), null, 16, ["icon-middle"]));
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
P as default
|
|
60
61
|
};
|