@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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppSelectProps } from './types.ts';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AppSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (...args: any[]) => void;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<AppSelectProps> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
size: import('../../types.ts').Size;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as AppButton } from './buttons/AppButton/index.vue';
|
|
2
|
+
import { default as AppSelect } from './form/AppSelect/index.vue';
|
|
2
3
|
import { AppButtonProps } from './buttons/AppButton/types';
|
|
3
4
|
import { default as AppIcon } from './AppIcon/index.vue';
|
|
4
5
|
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<{}>, {
|
|
5
6
|
transparent: boolean;
|
|
6
7
|
color: import('quasar').NamedColor;
|
|
7
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export { AppButton, AppButtonProps, AppIcon, AppButtonCopy };
|
|
9
|
+
export { AppButton, AppButtonProps, AppIcon, AppButtonCopy, AppSelect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("./index-pgLl9453.cjs");function s(n){const e=document.createElement("textarea");e.value=n,e.contentEditable="true",e.style.position="fixed";const o=()=>{};a.addFocusout(o),document.body.appendChild(e),e.focus(),e.select();const c=document.execCommand("copy");return e.remove(),a.removeFocusout(o),c}function u(n){return navigator.clipboard!==void 0?navigator.clipboard.writeText(n):new Promise((e,o)=>{const c=s(n);c?e(!0):o(c)})}const r={COPY:"copy_o",COPIED:"copied_o"},d=t.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:a.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},setup(n){const e=n,o=t.ref(r.COPY),c=()=>{o.value=r.COPIED,setTimeout(()=>{o.value=r.COPY},2e3)},l=()=>{u(e.text).then(c).catch(i=>{console.log(i)})};return(i,p)=>(t.openBlock(),t.createBlock(t.unref(a.AppButton),t.mergeProps(e,{"icon-middle":o.value,onClick:t.withModifiers(l,["prevent"])}),null,16,["icon-middle"]))}});exports.default=d;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as i, ref as l, openBlock as s, createBlock as d, unref as p, mergeProps as u, withModifiers as m } from "vue";
|
|
2
|
+
import { a as f, r as C, A as y, C as b } from "./index-NqUac_wO.js";
|
|
3
|
+
function v(t) {
|
|
4
|
+
const e = document.createElement("textarea");
|
|
5
|
+
e.value = t, e.contentEditable = "true", e.style.position = "fixed";
|
|
6
|
+
const o = () => {
|
|
7
|
+
};
|
|
8
|
+
f(o), document.body.appendChild(e), e.focus(), e.select();
|
|
9
|
+
const n = document.execCommand("copy");
|
|
10
|
+
return e.remove(), C(o), n;
|
|
11
|
+
}
|
|
12
|
+
function O(t) {
|
|
13
|
+
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(t) : new Promise((e, o) => {
|
|
14
|
+
const n = v(t);
|
|
15
|
+
n ? e(!0) : o(n);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const a = {
|
|
19
|
+
COPY: "copy_o",
|
|
20
|
+
COPIED: "copied_o"
|
|
21
|
+
}, h = /* @__PURE__ */ i({
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
text: {},
|
|
25
|
+
size: {},
|
|
26
|
+
transparent: { type: Boolean, default: !0 },
|
|
27
|
+
flat: { type: Boolean },
|
|
28
|
+
rounded: { type: Boolean },
|
|
29
|
+
color: { default: b.INFO },
|
|
30
|
+
iconLeft: {},
|
|
31
|
+
iconRight: {},
|
|
32
|
+
iconMiddle: {},
|
|
33
|
+
disabled: { type: Boolean },
|
|
34
|
+
loading: { type: Boolean },
|
|
35
|
+
to: {},
|
|
36
|
+
href: {},
|
|
37
|
+
target: {},
|
|
38
|
+
submit: { type: Boolean },
|
|
39
|
+
ariaLabel: {},
|
|
40
|
+
label: {}
|
|
41
|
+
},
|
|
42
|
+
setup(t) {
|
|
43
|
+
const e = t, o = l(a.COPY), n = () => {
|
|
44
|
+
o.value = a.COPIED, setTimeout(() => {
|
|
45
|
+
o.value = a.COPY;
|
|
46
|
+
}, 2e3);
|
|
47
|
+
}, r = () => {
|
|
48
|
+
O(e.text).then(n).catch((c) => {
|
|
49
|
+
console.log(c);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return (c, x) => (s(), d(p(y), u(e, {
|
|
53
|
+
"icon-middle": o.value,
|
|
54
|
+
onClick: m(r, ["prevent"])
|
|
55
|
+
}), null, 16, ["icon-middle"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
h as default
|
|
60
|
+
};
|