@mobileaction/action-kit 1.1.22 → 1.1.24
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/action-kit.js +3 -3
- package/dist/action-kit.mjs +1429 -906
- package/dist/add-app-c6cfc484.mjs +16 -0
- package/dist/add-app-ca2d1245.js +1 -0
- package/dist/box-empty-2e81a600.js +1 -0
- package/dist/box-empty-c7e5e478.mjs +39 -0
- package/dist/close-circle-bulk-49febd0e.mjs +24 -0
- package/dist/close-circle-bulk-b52bdb88.js +1 -0
- package/dist/components/button/index.vue.d.ts +3 -3
- package/dist/components/dropdown/index.vue.d.ts +81 -0
- package/dist/components/dropdown/types.d.ts +4 -0
- package/dist/components/empty/index.vue.d.ts +51 -0
- package/dist/components/empty/types.d.ts +7 -0
- package/dist/components/modal/index.vue.d.ts +1 -1
- package/dist/components/spin/index.vue.d.ts +45 -0
- package/dist/components/spin/types.d.ts +4 -0
- package/dist/components/tooltip/index.vue.d.ts +3 -3
- package/dist/components/upload/composables/file.d.ts +7 -0
- package/dist/components/upload/index.vue.d.ts +203 -0
- package/dist/components/upload/singleFile.vue.d.ts +38 -0
- package/dist/components/upload/types.d.ts +17 -0
- package/dist/document-bulk-1d978376.mjs +24 -0
- package/dist/document-bulk-86acdc42.js +1 -0
- package/dist/empty-table-41155dd6.mjs +16 -0
- package/dist/empty-table-855edce8.js +1 -0
- package/dist/export-2-6595b6fa.mjs +22 -0
- package/dist/export-2-69f06f16.js +1 -0
- package/dist/export-2-bold-5629dc36.js +1 -0
- package/dist/export-2-bold-8832fb34.mjs +19 -0
- package/dist/export-2-bulk-25deffb0.mjs +24 -0
- package/dist/export-2-bulk-e71812db.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/selection-08a9c952.mjs +16 -0
- package/dist/selection-f5ae8ebf.js +1 -0
- package/dist/spin-dots-25d015b7.mjs +16 -0
- package/dist/spin-dots-388f853c.js +1 -0
- package/dist/spin-round-23788f05.js +1 -0
- package/dist/spin-round-9db617b7.mjs +26 -0
- package/dist/spin-three-circles-00b10e29.js +1 -0
- package/dist/spin-three-circles-13ae8650.mjs +33 -0
- package/dist/spin-three-dots-7cdf047c.js +1 -0
- package/dist/spin-three-dots-c116245e.mjs +36 -0
- package/dist/src/components/button/index.vue.d.ts +1 -1
- package/dist/src/components/dropdown/index.vue.d.ts +54 -0
- package/dist/src/components/dropdown/stories/constants.d.ts +4 -0
- package/dist/src/components/dropdown/stories/default.stories.d.ts +6 -0
- package/dist/src/components/dropdown/types.d.ts +4 -0
- package/dist/src/components/empty/index.vue.d.ts +39 -0
- package/dist/src/components/empty/stories/constants.d.ts +4 -0
- package/dist/src/components/empty/stories/default.stories.d.ts +6 -0
- package/dist/src/components/empty/types.d.ts +7 -0
- package/dist/src/components/modal/index.vue.d.ts +1 -1
- package/dist/src/components/spin/index.vue.d.ts +41 -0
- package/dist/src/components/spin/stories/constants.d.ts +5 -0
- package/dist/src/components/spin/stories/container.stories.d.ts +6 -0
- package/dist/src/components/spin/stories/default.stories.d.ts +6 -0
- package/dist/src/components/spin/types.d.ts +4 -0
- package/dist/src/components/tooltip/index.vue.d.ts +1 -1
- package/dist/src/components/upload/composables/file.d.ts +7 -0
- package/dist/src/components/upload/index.vue.d.ts +72 -0
- package/dist/src/components/upload/singleFile.vue.d.ts +25 -0
- package/dist/src/components/upload/stories/box.stories.d.ts +11 -0
- package/dist/src/components/upload/stories/button.stories.d.ts +6 -0
- package/dist/src/components/upload/stories/constants.d.ts +6 -0
- package/dist/src/components/upload/stories/small-box.stories.d.ts +6 -0
- package/dist/src/components/upload/types.d.ts +17 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/style.css +1 -1
- package/dist/trash-bulk-034c6526.js +1 -0
- package/dist/trash-bulk-89ab0a45.mjs +30 -0
- package/dist/upload-bulk-4dd4fc57.js +1 -0
- package/dist/upload-bulk-c4de9af1.mjs +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createStaticVNode as i } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 120 120"
|
|
6
|
+
}, l = /* @__PURE__ */ i('<g filter="url(#a)"><g clip-path="url(#b)"><rect width="120" height="120" fill="#F2F4F7" rx="60"></rect><g clip-path="url(#c)"><path fill="#fff" d="M18 35.4a4.8 4.8 0 0 1 4.8-4.8h74.4a4.8 4.8 0 0 1 4.8 4.8v85.8H18V35.4Z"></path><rect width="29.4" height="4.8" x="25.2" y="42.6" fill="#EAECF0" rx="2.4"></rect><rect width="70.8" height="13.2" x="24.6" y="51.6" fill="#fff" rx="3"></rect><rect width="70.8" height="13.2" x="24.6" y="51.6" stroke="#4478FF" stroke-width="1.2" rx="3"></rect><rect width="29.4" height="4.8" x="25.2" y="76.2" fill="#EAECF0" rx="2.4"></rect><rect width="69.6" height="12" x="25.2" y="85.8" fill="#F2F4F7" rx="2.4"></rect><rect width="29.4" height="4.8" x="25.2" y="109.8" fill="#EAECF0" rx="2.4"></rect><rect width="69.6" height="12" x="25.2" y="119.4" fill="#F2F4F7" rx="2.4"></rect></g><rect width="24" height="24" x="48" y="13.8" fill="#4478FF" rx="12"></rect><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width=".9" d="M56.4 25.8h7.2M60 29.4v-7.2"></path></g></g><defs><clipPath id="b"><rect width="120" height="120" fill="#fff" rx="60"></rect></clipPath><clipPath id="c"><path fill="#fff" d="M18 35.4a4.8 4.8 0 0 1 4.8-4.8h74.4a4.8 4.8 0 0 1 4.8 4.8v85.8H18V35.4Z"></path></clipPath><filter id="a" width="120" height="120.6" x="0" y="-.6" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="-.6"></feOffset><feGaussianBlur stdDeviation="1.2"></feGaussianBlur><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"></feComposite><feColorMatrix values="0 0 0 0 0.20434 0 0 0 0 0.329917 0 0 0 0 0.445833 0 0 0 0.12 0"></feColorMatrix><feBlend in2="shape" result="effect1_innerShadow_589_74942"></feBlend></filter></defs>', 2), h = [
|
|
7
|
+
l
|
|
8
|
+
];
|
|
9
|
+
function f(o, a) {
|
|
10
|
+
return e(), t("svg", r, h);
|
|
11
|
+
}
|
|
12
|
+
const d = { render: f };
|
|
13
|
+
export {
|
|
14
|
+
d as default,
|
|
15
|
+
f as render
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 120"},i=e.createStaticVNode('<g filter="url(#a)"><g clip-path="url(#b)"><rect width="120" height="120" fill="#F2F4F7" rx="60"></rect><g clip-path="url(#c)"><path fill="#fff" d="M18 35.4a4.8 4.8 0 0 1 4.8-4.8h74.4a4.8 4.8 0 0 1 4.8 4.8v85.8H18V35.4Z"></path><rect width="29.4" height="4.8" x="25.2" y="42.6" fill="#EAECF0" rx="2.4"></rect><rect width="70.8" height="13.2" x="24.6" y="51.6" fill="#fff" rx="3"></rect><rect width="70.8" height="13.2" x="24.6" y="51.6" stroke="#4478FF" stroke-width="1.2" rx="3"></rect><rect width="29.4" height="4.8" x="25.2" y="76.2" fill="#EAECF0" rx="2.4"></rect><rect width="69.6" height="12" x="25.2" y="85.8" fill="#F2F4F7" rx="2.4"></rect><rect width="29.4" height="4.8" x="25.2" y="109.8" fill="#EAECF0" rx="2.4"></rect><rect width="69.6" height="12" x="25.2" y="119.4" fill="#F2F4F7" rx="2.4"></rect></g><rect width="24" height="24" x="48" y="13.8" fill="#4478FF" rx="12"></rect><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width=".9" d="M56.4 25.8h7.2M60 29.4v-7.2"></path></g></g><defs><clipPath id="b"><rect width="120" height="120" fill="#fff" rx="60"></rect></clipPath><clipPath id="c"><path fill="#fff" d="M18 35.4a4.8 4.8 0 0 1 4.8-4.8h74.4a4.8 4.8 0 0 1 4.8 4.8v85.8H18V35.4Z"></path></clipPath><filter id="a" width="120" height="120.6" x="0" y="-.6" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="-.6"></feOffset><feGaussianBlur stdDeviation="1.2"></feGaussianBlur><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"></feComposite><feColorMatrix values="0 0 0 0 0.20434 0 0 0 0 0.329917 0 0 0 0 0.445833 0 0 0 0.12 0"></feColorMatrix><feBlend in2="shape" result="effect1_innerShadow_589_74942"></feBlend></filter></defs>',2),l=[i];function t(o,f){return e.openBlock(),e.createElementBlock("svg",r,l)}const h={render:t};exports.default=h;exports.render=t;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as r, createStaticVNode as e } from "vue";
|
|
2
|
+
const i = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 48 48"
|
|
6
|
+
}, o = /* @__PURE__ */ e('<rect width="4" height="12" x="22" fill="#EAECF0" rx="2"></rect><rect width="4" height="12" x="33.899" y="16.929" fill="#EAECF0" rx="2" transform="rotate(-135 33.9 16.929)"></rect><rect width="4" height="12" x="36" y="26" fill="#EAECF0" rx="2" transform="rotate(-90 36 26)"></rect><rect width="4" height="12" x="31.071" y="33.9" fill="#EAECF0" rx="2" transform="rotate(-45 31.071 33.9)"></rect><rect width="4" height="12" x="22" y="36" fill="#EAECF0" rx="2"></rect><rect width="4" height="12" x="8.444" y="42.385" fill="#EAECF0" rx="2" transform="rotate(-135 8.444 42.385)"></rect><rect width="4" height="12" y="26" fill="currentColor" rx="2" transform="rotate(-90 0 26)"></rect><rect width="4" height="12" x="5.615" y="8.444" fill="#EAECF0" rx="2" transform="rotate(-45 5.615 8.444)"></rect>', 8), c = [
|
|
7
|
+
o
|
|
8
|
+
];
|
|
9
|
+
function h(l, n) {
|
|
10
|
+
return t(), r("svg", i, c);
|
|
11
|
+
}
|
|
12
|
+
const x = { render: h };
|
|
13
|
+
export {
|
|
14
|
+
x as default,
|
|
15
|
+
h as render
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},i=t.createStaticVNode('<rect width="4" height="12" x="22" fill="#EAECF0" rx="2"></rect><rect width="4" height="12" x="33.899" y="16.929" fill="#EAECF0" rx="2" transform="rotate(-135 33.9 16.929)"></rect><rect width="4" height="12" x="36" y="26" fill="#EAECF0" rx="2" transform="rotate(-90 36 26)"></rect><rect width="4" height="12" x="31.071" y="33.9" fill="#EAECF0" rx="2" transform="rotate(-45 31.071 33.9)"></rect><rect width="4" height="12" x="22" y="36" fill="#EAECF0" rx="2"></rect><rect width="4" height="12" x="8.444" y="42.385" fill="#EAECF0" rx="2" transform="rotate(-135 8.444 42.385)"></rect><rect width="4" height="12" y="26" fill="currentColor" rx="2" transform="rotate(-90 0 26)"></rect><rect width="4" height="12" x="5.615" y="8.444" fill="#EAECF0" rx="2" transform="rotate(-45 5.615 8.444)"></rect>',8),o=[i];function e(h,l){return t.openBlock(),t.createElementBlock("svg",r,o)}const c={render:e};exports.default=c;exports.render=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56"},n=e.createElementVNode("path",{stroke:"#EAECF0","stroke-width":"8",d:"M36.639 5.609a24 24 0 1 1-17.278 44.783A24 24 0 0 1 36.64 5.61Z"},null,-1),r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"8",d:"M36.639 5.609a24 24 0 0 1 9.987 37.527"},null,-1),s=[n,r];function t(d,l){return e.openBlock(),e.createElementBlock("svg",o,s)}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 56 56"
|
|
6
|
+
}, r = /* @__PURE__ */ e("path", {
|
|
7
|
+
stroke: "#EAECF0",
|
|
8
|
+
"stroke-width": "8",
|
|
9
|
+
d: "M36.639 5.609a24 24 0 1 1-17.278 44.783A24 24 0 0 1 36.64 5.61Z"
|
|
10
|
+
}, null, -1), s = /* @__PURE__ */ e("path", {
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
"stroke-linecap": "round",
|
|
13
|
+
"stroke-width": "8",
|
|
14
|
+
d: "M36.639 5.609a24 24 0 0 1 9.987 37.527"
|
|
15
|
+
}, null, -1), c = [
|
|
16
|
+
r,
|
|
17
|
+
s
|
|
18
|
+
];
|
|
19
|
+
function d(l, i) {
|
|
20
|
+
return t(), o("svg", n, c);
|
|
21
|
+
}
|
|
22
|
+
const h = { render: d };
|
|
23
|
+
export {
|
|
24
|
+
h as default,
|
|
25
|
+
d as render
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},r=e.createElementVNode("path",{stroke:"#EAECF0","stroke-linecap":"round","stroke-width":"4",d:"M43 24a19 19 0 1 1-38 0"},null,-1),n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"4",d:"M12 24a12 12 0 0 1 24 0"},null,-1),s=e.createElementVNode("path",{stroke:"#EAECF0","stroke-linecap":"round","stroke-width":"4",d:"M20 24a4 4 0 0 0 8 0"},null,-1),c=[r,n,s];function t(d,i){return e.openBlock(),e.createElementBlock("svg",o,c)}const l={render:t};exports.default=l;exports.render=t;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 48 48"
|
|
6
|
+
}, n = /* @__PURE__ */ e("path", {
|
|
7
|
+
stroke: "#EAECF0",
|
|
8
|
+
"stroke-linecap": "round",
|
|
9
|
+
"stroke-width": "4",
|
|
10
|
+
d: "M43 24a19 19 0 1 1-38 0"
|
|
11
|
+
}, null, -1), s = /* @__PURE__ */ e("path", {
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-width": "4",
|
|
15
|
+
d: "M12 24a12 12 0 0 1 24 0"
|
|
16
|
+
}, null, -1), c = /* @__PURE__ */ e("path", {
|
|
17
|
+
stroke: "#EAECF0",
|
|
18
|
+
"stroke-linecap": "round",
|
|
19
|
+
"stroke-width": "4",
|
|
20
|
+
d: "M20 24a4 4 0 0 0 8 0"
|
|
21
|
+
}, null, -1), l = [
|
|
22
|
+
n,
|
|
23
|
+
s,
|
|
24
|
+
c
|
|
25
|
+
];
|
|
26
|
+
function d(i, a) {
|
|
27
|
+
return t(), o("svg", r, l);
|
|
28
|
+
}
|
|
29
|
+
const _ = { render: d };
|
|
30
|
+
export {
|
|
31
|
+
_ as default,
|
|
32
|
+
d as render
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},o=e.createElementVNode("circle",{cx:"10",cy:"24",r:"4",fill:"currentColor",transform:"rotate(180 10 24)"},null,-1),c=e.createElementVNode("circle",{cx:"24",cy:"24",r:"4",fill:"#EAECF0",transform:"rotate(180 24 24)"},null,-1),n=e.createElementVNode("circle",{cx:"38",cy:"24",r:"4",fill:"#EAECF0",transform:"rotate(180 38 24)"},null,-1),l=[o,c,n];function t(i,a){return e.openBlock(),e.createElementBlock("svg",r,l)}const s={render:t};exports.default=s;exports.render=t;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 48 48"
|
|
6
|
+
}, c = /* @__PURE__ */ e("circle", {
|
|
7
|
+
cx: "10",
|
|
8
|
+
cy: "24",
|
|
9
|
+
r: "4",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
transform: "rotate(180 10 24)"
|
|
12
|
+
}, null, -1), n = /* @__PURE__ */ e("circle", {
|
|
13
|
+
cx: "24",
|
|
14
|
+
cy: "24",
|
|
15
|
+
r: "4",
|
|
16
|
+
fill: "#EAECF0",
|
|
17
|
+
transform: "rotate(180 24 24)"
|
|
18
|
+
}, null, -1), l = /* @__PURE__ */ e("circle", {
|
|
19
|
+
cx: "38",
|
|
20
|
+
cy: "24",
|
|
21
|
+
r: "4",
|
|
22
|
+
fill: "#EAECF0",
|
|
23
|
+
transform: "rotate(180 38 24)"
|
|
24
|
+
}, null, -1), s = [
|
|
25
|
+
c,
|
|
26
|
+
n,
|
|
27
|
+
l
|
|
28
|
+
];
|
|
29
|
+
function i(_, a) {
|
|
30
|
+
return t(), o("svg", r, s);
|
|
31
|
+
}
|
|
32
|
+
const d = { render: i };
|
|
33
|
+
export {
|
|
34
|
+
d as default,
|
|
35
|
+
i as render
|
|
36
|
+
};
|
|
@@ -9,7 +9,7 @@ export interface MaButtonProps {
|
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
shape?: ButtonShape;
|
|
11
11
|
icon?: string;
|
|
12
|
-
|
|
12
|
+
iconAlignment?: IconAlignment;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaButtonProps>, {
|
|
15
15
|
type: string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { MaDropdownPlacement, MaDropdownTrigger } from "./types";
|
|
2
|
+
export interface MaDropdownProps {
|
|
3
|
+
destroyPopupOnHide?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
placement?: MaDropdownPlacement;
|
|
6
|
+
trigger?: MaDropdownTrigger[];
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
overlayClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDropdownProps>, {
|
|
11
|
+
destroyPopupOnHide: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
placement: string;
|
|
14
|
+
trigger: () => string[];
|
|
15
|
+
visible: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDropdownProps>, {
|
|
17
|
+
destroyPopupOnHide: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
placement: string;
|
|
20
|
+
trigger: () => string[];
|
|
21
|
+
visible: boolean;
|
|
22
|
+
}>>> & {
|
|
23
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
24
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
25
|
+
}, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
destroyPopupOnHide: boolean;
|
|
28
|
+
placement: "bottomLeft" | "bottom" | "bottomRight" | "topLeft" | "top" | "topRight";
|
|
29
|
+
trigger: ("click" | "hover" | "contextmenu")[];
|
|
30
|
+
visible: boolean;
|
|
31
|
+
}>, {
|
|
32
|
+
default: (_: {}) => any;
|
|
33
|
+
overlay: (_: {}) => any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import('vue').PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
} : P[K];
|
|
49
|
+
};
|
|
50
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const MaDropdownPlacements: readonly ["bottomLeft", "bottom", "bottomRight", "topLeft", "top", "topRight"];
|
|
2
|
+
export declare const MaDropdownTriggers: readonly ["click", "hover", "contextmenu"];
|
|
3
|
+
export declare type MaDropdownPlacement = (typeof MaDropdownPlacements)[number];
|
|
4
|
+
export declare type MaDropdownTrigger = (typeof MaDropdownTriggers)[number];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MaEmptySize, MaEmptyVariant } from './types';
|
|
2
|
+
export interface MaRateProps {
|
|
3
|
+
size?: MaEmptySize;
|
|
4
|
+
variant?: MaEmptyVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRateProps>, {
|
|
9
|
+
size: string;
|
|
10
|
+
variant: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRateProps>, {
|
|
12
|
+
size: string;
|
|
13
|
+
variant: string;
|
|
14
|
+
}>>>, {
|
|
15
|
+
size: "small" | "medium" | "large";
|
|
16
|
+
variant: "table" | "general" | "add-app" | "selection";
|
|
17
|
+
}>, {
|
|
18
|
+
default: (_: {}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
} : P[K];
|
|
34
|
+
};
|
|
35
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const MaEmptySizes: readonly ["small", "medium", "large"];
|
|
2
|
+
export declare const MaEmptyVariants: readonly ["general", "add-app", "table", "selection"];
|
|
3
|
+
export declare const MaEmptyIcons: {
|
|
4
|
+
[K in MaEmptyVariant]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type MaEmptySize = (typeof MaEmptySizes)[number];
|
|
7
|
+
export declare type MaEmptyVariant = (typeof MaEmptyVariants)[number];
|
|
@@ -29,9 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
maskClosable: boolean;
|
|
30
30
|
width: number;
|
|
31
31
|
}>>> & {
|
|
32
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
32
33
|
onOk?: (...args: any[]) => any;
|
|
33
34
|
onCancel?: (...args: any[]) => any;
|
|
34
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
35
35
|
}, {
|
|
36
36
|
mask: boolean;
|
|
37
37
|
closable: boolean;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MaSpinColor, MaSpinType } from './types';
|
|
2
|
+
export interface MaSpinProps {
|
|
3
|
+
type?: MaSpinType;
|
|
4
|
+
color?: MaSpinColor;
|
|
5
|
+
spinning?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSpinProps>, {
|
|
8
|
+
type: string;
|
|
9
|
+
color: string;
|
|
10
|
+
spinning: boolean;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSpinProps>, {
|
|
12
|
+
type: string;
|
|
13
|
+
color: string;
|
|
14
|
+
spinning: boolean;
|
|
15
|
+
}>>>, {
|
|
16
|
+
type: "round" | "dots" | "three-circles" | "three-dots";
|
|
17
|
+
color: "dark" | "blue" | "orange" | "jordy" | "grey";
|
|
18
|
+
spinning: boolean;
|
|
19
|
+
}>, {
|
|
20
|
+
default: (_: {}) => any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
} : P[K];
|
|
36
|
+
};
|
|
37
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const MaSpinTypes: readonly ["round", "dots", "three-circles", "three-dots"];
|
|
2
|
+
export declare const MaSpinColors: readonly ["dark", "jordy", "blue", "orange", "grey"];
|
|
3
|
+
export declare type MaSpinType = (typeof MaSpinTypes)[number];
|
|
4
|
+
export declare type MaSpinColor = (typeof MaSpinColors)[number];
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
}>>>, {
|
|
24
24
|
type: "primary" | "secondary";
|
|
25
25
|
placement: TooltipPlacement;
|
|
26
|
-
trigger: "click" | "
|
|
26
|
+
trigger: "click" | "hover" | "contextmenu" | "focus";
|
|
27
27
|
defaultVisible: boolean;
|
|
28
28
|
}>, {
|
|
29
29
|
default: (_: {}) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MAUploadFile, MaUploadFileStatus } from './../types';
|
|
2
|
+
export declare const generateFileID: (length?: number) => string;
|
|
3
|
+
export declare const useUploadFile: (action: string, headers: Record<string, string>, additionalData: Record<string, any>, name: string) => {
|
|
4
|
+
progress: import("vue").Ref<number>;
|
|
5
|
+
upload: (maFile: MAUploadFile, cb: (status: MaUploadFileStatus, progress: number, response?: any) => void) => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export declare const validateFile: (file: File, acceptedTypesStr: string) => boolean;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { MaUploadType, MaUploadSize, MAUploadFile } from './types';
|
|
2
|
+
export interface MaUploadProps {
|
|
3
|
+
fileList: MAUploadFile[];
|
|
4
|
+
type?: MaUploadType;
|
|
5
|
+
size?: MaUploadSize;
|
|
6
|
+
accept?: string;
|
|
7
|
+
action?: string;
|
|
8
|
+
beforeUpload?: (file: File) => Promise<File>;
|
|
9
|
+
data?: Object;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
maxCount?: number;
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
name?: string;
|
|
16
|
+
ordered?: boolean;
|
|
17
|
+
showFileList?: boolean;
|
|
18
|
+
title?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
wait?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaUploadProps>, {
|
|
23
|
+
type: string;
|
|
24
|
+
headers: () => {};
|
|
25
|
+
multiple: boolean;
|
|
26
|
+
name: string;
|
|
27
|
+
ordered: boolean;
|
|
28
|
+
showFileList: boolean;
|
|
29
|
+
size: string;
|
|
30
|
+
wait: boolean;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "change" | "remove" | "update:fileList")[], "error" | "change" | "remove" | "update:fileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaUploadProps>, {
|
|
33
|
+
type: string;
|
|
34
|
+
headers: () => {};
|
|
35
|
+
multiple: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
ordered: boolean;
|
|
38
|
+
showFileList: boolean;
|
|
39
|
+
size: string;
|
|
40
|
+
wait: boolean;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
}>>> & {
|
|
43
|
+
onChange?: (...args: any[]) => any;
|
|
44
|
+
onError?: (...args: any[]) => any;
|
|
45
|
+
onRemove?: (...args: any[]) => any;
|
|
46
|
+
"onUpdate:fileList"?: (...args: any[]) => any;
|
|
47
|
+
}, {
|
|
48
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
49
|
+
name: string;
|
|
50
|
+
type: "button" | "box" | "small-box";
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
multiple: boolean;
|
|
53
|
+
wait: boolean;
|
|
54
|
+
headers: Record<string, string>;
|
|
55
|
+
ordered: boolean;
|
|
56
|
+
showFileList: boolean;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
61
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
63
|
+
} : {
|
|
64
|
+
type: import('vue').PropType<T[K]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
69
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
70
|
+
default: D[K];
|
|
71
|
+
} : P[K];
|
|
72
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MAUploadFile } from './types';
|
|
2
|
+
export interface SingleFileProps {
|
|
3
|
+
file: MAUploadFile;
|
|
4
|
+
action?: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleFileProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "remove")[], "cancel" | "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleFileProps>, {}>>> & {
|
|
8
|
+
onCancel?: (...args: any[]) => any;
|
|
9
|
+
onRemove?: (...args: any[]) => any;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
} : P[K];
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaUpload from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaUpload>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaUpload>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithoutAction: Story;
|
|
8
|
+
export declare const BeforeUpload: Story;
|
|
9
|
+
export declare const Ordered: Story;
|
|
10
|
+
export declare const Single: Story;
|
|
11
|
+
export declare const ExistingFiles: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import MaUpload from '../index.vue';
|
|
3
|
+
export declare const baseConfig: Meta<typeof MaUpload>;
|
|
4
|
+
export declare const Template: StoryFn;
|
|
5
|
+
export declare const BeforeUploadTemplate: StoryFn;
|
|
6
|
+
export declare const ExistingFilesTemplate: StoryFn;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const MaUploadTypes: readonly ["button", "box", "small-box"];
|
|
2
|
+
export declare const MaUploadSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
3
|
+
export declare enum MaUploadFileStatus {
|
|
4
|
+
error = "error",
|
|
5
|
+
done = "done",
|
|
6
|
+
uploading = "uploading"
|
|
7
|
+
}
|
|
8
|
+
export interface MAUploadFile {
|
|
9
|
+
id: string;
|
|
10
|
+
file: File;
|
|
11
|
+
status: MaUploadFileStatus;
|
|
12
|
+
response: any;
|
|
13
|
+
progress: number;
|
|
14
|
+
cancelRequest?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare type MaUploadType = (typeof MaUploadTypes)[number];
|
|
17
|
+
export declare type MaUploadSize = (typeof MaUploadSizes)[number];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -39,5 +39,13 @@ export { default as MaModal } from './components/modal/index';
|
|
|
39
39
|
export * from './components/modal/types';
|
|
40
40
|
export { default as MaRate } from './components/rate/index.vue';
|
|
41
41
|
export * from './components/rate/types';
|
|
42
|
+
export { default as MaSpin } from './components/spin/index.vue';
|
|
43
|
+
export * from './components/spin/types';
|
|
44
|
+
export { default as MaDropdown } from './components/dropdown/index.vue';
|
|
45
|
+
export * from './components/dropdown/types';
|
|
46
|
+
export { default as MaEmpty } from './components/empty/index.vue';
|
|
47
|
+
export * from './components/empty/types';
|
|
48
|
+
export { default as MaUpload } from './components/upload/index.vue';
|
|
49
|
+
export * from './components/upload/types';
|
|
42
50
|
export { ActionKitConfig } from './services/config';
|
|
43
51
|
export { useActionKitConfig } from './composables/config';
|