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