@aplus-frontend/ui 0.1.30 → 0.1.32
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/es/index.mjs +153 -145
- package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
- package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
- package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
- package/es/src/ap-button/ap-button.vue.d.ts +48 -0
- package/es/src/ap-button/ap-button.vue.mjs +118 -0
- package/es/src/ap-button/ap-button.vue2.mjs +4 -0
- package/es/src/ap-button/index.d.ts +4 -0
- package/es/src/ap-button/index.mjs +3 -0
- package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/ap-descriptions/helper.d.ts +19 -1
- package/es/src/ap-descriptions/helper.mjs +22 -12
- package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/es/src/ap-download/ap-download.vue.mjs +51 -40
- package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
- package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/es/src/ap-form/dependency/index.vue.mjs +37 -0
- package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +10 -6
- package/es/src/ap-form/interface.d.ts +3 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
- package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +60 -0
- package/es/src/business/ap-card/index.css +10 -0
- package/es/src/business/ap-card/interface.d.ts +9 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +56 -65
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/es/src/business/hooks/useTableRefresh.mjs +1 -1
- package/es/src/business/index.d.ts +21 -235
- package/es/src/business/index.mjs +30 -29
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +20 -19
- package/es/src/config-provider/constants.d.ts +9 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/editable-table/interface.d.ts +3 -2
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +274 -265
- package/es/src/theme/ap-card/ap-card.css +10 -0
- package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/es/src/theme/css-var/index.mjs +33 -15
- package/lib/index.js +1 -1
- package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
- package/lib/src/ap-button/ap-action-button.vue.js +1 -0
- package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
- package/lib/src/ap-button/ap-button.vue.d.ts +48 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -0
- package/lib/src/ap-button/ap-button.vue2.js +1 -0
- package/lib/src/ap-button/index.d.ts +4 -0
- package/lib/src/ap-button/index.js +1 -0
- package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/ap-descriptions/helper.d.ts +19 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/lib/src/ap-form/dependency/index.vue.js +1 -0
- package/lib/src/ap-form/dependency/index.vue2.js +1 -0
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/lib/src/business/{ap-action-button/ApActionButton.vue.js → ap-card/ApCard.vue.js} +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
- package/lib/src/business/ap-card/index.css +10 -0
- package/lib/src/business/ap-card/interface.d.ts +9 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/business/index.d.ts +21 -235
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +9 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/editable-table/interface.d.ts +3 -2
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-card/ap-card.css +10 -0
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
- /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
- /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/style.css +0 -0
- /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
- /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/style.css +0 -0
- /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, computed as a, openBlock as h, createBlock as P, unref as p, mergeProps as x, createSlots as A, renderList as _, withCtx as w, renderSlot as z, normalizeProps as F, guardReactiveProps as O } from "vue";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
import { Button as S } from "ant-design-vue";
|
|
4
|
-
import "../../config-provider/index.mjs";
|
|
5
|
-
import { omit as T } from "lodash-unified";
|
|
6
|
-
import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
import { useGlobalConfig as G } from "../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
-
const I = 88, K = /* @__PURE__ */ M({
|
|
9
|
-
__name: "ApActionButton",
|
|
10
|
-
props: {
|
|
11
|
-
prefixCls: {},
|
|
12
|
-
htmlType: {},
|
|
13
|
-
shape: {},
|
|
14
|
-
size: {},
|
|
15
|
-
loading: { type: [Boolean, Object] },
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
ghost: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
danger: { type: Boolean },
|
|
20
|
-
icon: {},
|
|
21
|
-
href: {},
|
|
22
|
-
target: {},
|
|
23
|
-
title: {},
|
|
24
|
-
onClick: {},
|
|
25
|
-
onMousedown: {},
|
|
26
|
-
type: { default: "borderLink" },
|
|
27
|
-
borderLinkColor: {},
|
|
28
|
-
minWidth: { type: [Boolean, Number, String], default: !0 }
|
|
29
|
-
},
|
|
30
|
-
setup(v) {
|
|
31
|
-
const e = v, c = {
|
|
32
|
-
aplus: "#0070FF",
|
|
33
|
-
admin: "#34b77c"
|
|
34
|
-
}, { b: l } = j("ap-action-button"), g = G("uiMode"), k = a(
|
|
35
|
-
() => e.borderLinkColor || c[g.value] || c.aplus
|
|
36
|
-
), d = a(
|
|
37
|
-
() => e.type === "borderLink" ? k.value : void 0
|
|
38
|
-
), f = a(() => $(d.value)), B = a(() => e.minWidth === !0 ? `${I}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), W = a(
|
|
39
|
-
() => (e.type === "borderLink" ? "default" : e.type) || "default"
|
|
40
|
-
);
|
|
41
|
-
function L() {
|
|
42
|
-
const r = T(e, ["type", "borderLinkColor", "minWidth"]);
|
|
43
|
-
return r ? {
|
|
44
|
-
...r,
|
|
45
|
-
type: W.value
|
|
46
|
-
} : {};
|
|
47
|
-
}
|
|
48
|
-
function $(r, s = "0.7") {
|
|
49
|
-
var y;
|
|
50
|
-
try {
|
|
51
|
-
var t = r == null ? void 0 : r.toLowerCase(), u = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
52
|
-
if (t && u.test(t)) {
|
|
53
|
-
if (t.length === 4) {
|
|
54
|
-
for (var m = "#", o = 1; o < 4; o += 1)
|
|
55
|
-
m += t.slice(o, o + 1).concat(t.slice(o, o + 1));
|
|
56
|
-
t = m;
|
|
57
|
-
}
|
|
58
|
-
for (var b = [], i = 1; i < 7; i += 2)
|
|
59
|
-
b.push(parseInt("0x" + t.slice(i, i + 2)));
|
|
60
|
-
return "rgba(" + b.join(",") + "," + s + ")";
|
|
61
|
-
}
|
|
62
|
-
if (t && t.startsWith("rgb")) {
|
|
63
|
-
let n = t.match(/(\d(\.\d+)?)+/g);
|
|
64
|
-
return n = (y = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : y.concat(s), "rgba(" + n.join(",") + ")";
|
|
65
|
-
}
|
|
66
|
-
return t;
|
|
67
|
-
} catch {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return (r, s) => (h(), P(p(S), x({
|
|
72
|
-
class: {
|
|
73
|
-
[p(l)()]: !0,
|
|
74
|
-
[`${p(l)()}-border-link`]: f.value
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
...r.$attrs,
|
|
78
|
-
...L()
|
|
79
|
-
}, {
|
|
80
|
-
style: {
|
|
81
|
-
color: d.value,
|
|
82
|
-
minWidth: B.value,
|
|
83
|
-
"--button-border-color": f.value
|
|
84
|
-
}
|
|
85
|
-
}), A({ _: 2 }, [
|
|
86
|
-
_(Object.keys(r.$slots), (t) => ({
|
|
87
|
-
name: t,
|
|
88
|
-
fn: w((u) => [
|
|
89
|
-
z(r.$slots, t, F(O(u || {})))
|
|
90
|
-
])
|
|
91
|
-
}))
|
|
92
|
-
]), 1040, ["class", "style"]));
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export {
|
|
96
|
-
K as default
|
|
97
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./index.css");const M=require("ant-design-vue");require("../../config-provider/index.js");const q=require("lodash-unified"),$=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-global-config.js"),P=88,_=e.defineComponent({__name:"ApActionButton",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object]},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onClick:{},onMousedown:{},type:{default:"borderLink"},borderLinkColor:{},minWidth:{type:[Boolean,Number,String],default:!0}},setup(y){const n=y,c={aplus:"#0070FF",admin:"#34b77c"},{b:d}=$.useNamespace("ap-action-button"),v=h.useGlobalConfig("uiMode"),g=e.computed(()=>n.borderLinkColor||c[v.value]||c.aplus),l=e.computed(()=>n.type==="borderLink"?g.value:void 0),p=e.computed(()=>L(l.value)),k=e.computed(()=>n.minWidth===!0?`${P}px`:typeof n.minWidth=="number"?`${n.minWidth}px`:typeof n.minWidth=="string"?n.minWidth:void 0),B=e.computed(()=>(n.type==="borderLink"?"default":n.type)||"default");function W(){const r=q.omit(n,["type","borderLinkColor","minWidth"]);return r?{...r,type:B.value}:{}}function L(r,a="0.7"){var m;try{var t=r==null?void 0:r.toLowerCase(),s=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t&&s.test(t)){if(t.length===4){for(var f="#",o=1;o<4;o+=1)f+=t.slice(o,o+1).concat(t.slice(o,o+1));t=f}for(var b=[],i=1;i<7;i+=2)b.push(parseInt("0x"+t.slice(i,i+2)));return"rgba("+b.join(",")+","+a+")"}if(t&&t.startsWith("rgb")){let u=t.match(/(\d(\.\d+)?)+/g);return u=(m=u==null?void 0:u.slice(0,3))==null?void 0:m.concat(a),"rgba("+u.join(",")+")"}return t}catch{return}}return(r,a)=>(e.openBlock(),e.createBlock(e.unref(M.Button),e.mergeProps({class:{[e.unref(d)()]:!0,[`${e.unref(d)()}-border-link`]:p.value}},{...r.$attrs,...W()},{style:{color:l.value,minWidth:k.value,"--button-border-color":p.value}}),e.createSlots({_:2},[e.renderList(Object.keys(r.$slots),t=>({name:t,fn:e.withCtx(s=>[e.renderSlot(r.$slots,t,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["class","style"]))}});exports.default=_;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|