@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.
Files changed (120) hide show
  1. package/es/index.mjs +153 -145
  2. package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
  3. package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
  4. package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
  5. package/es/src/ap-button/ap-button.vue.d.ts +48 -0
  6. package/es/src/ap-button/ap-button.vue.mjs +118 -0
  7. package/es/src/ap-button/ap-button.vue2.mjs +4 -0
  8. package/es/src/ap-button/index.d.ts +4 -0
  9. package/es/src/ap-button/index.mjs +3 -0
  10. package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
  11. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
  12. package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
  13. package/es/src/ap-descriptions/helper.d.ts +19 -1
  14. package/es/src/ap-descriptions/helper.mjs +22 -12
  15. package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
  16. package/es/src/ap-download/ap-download.vue.mjs +51 -40
  17. package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
  18. package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
  19. package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
  20. package/es/src/ap-form/dependency/index.vue.mjs +37 -0
  21. package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
  22. package/es/src/ap-form/index.d.ts +3 -1
  23. package/es/src/ap-form/index.mjs +10 -6
  24. package/es/src/ap-form/interface.d.ts +3 -0
  25. package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
  26. package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
  27. package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
  28. package/es/src/business/ap-card/ApCard.vue2.mjs +60 -0
  29. package/es/src/business/ap-card/index.css +10 -0
  30. package/es/src/business/ap-card/interface.d.ts +9 -0
  31. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +56 -65
  32. package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  33. package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
  34. package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
  35. package/es/src/business/hooks/useTableRefresh.mjs +1 -1
  36. package/es/src/business/index.d.ts +21 -235
  37. package/es/src/business/index.mjs +30 -29
  38. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  39. package/es/src/config-provider/config-provider-props.mjs +6 -2
  40. package/es/src/config-provider/config-provider.d.ts +10 -1
  41. package/es/src/config-provider/config-provider.mjs +20 -19
  42. package/es/src/config-provider/constants.d.ts +9 -0
  43. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  44. package/es/src/config-provider/index.d.ts +20 -1
  45. package/es/src/editable-table/interface.d.ts +3 -2
  46. package/es/src/index.d.ts +1 -0
  47. package/es/src/index.mjs +274 -265
  48. package/es/src/theme/ap-card/ap-card.css +10 -0
  49. package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  50. package/es/src/theme/css-var/index.mjs +33 -15
  51. package/lib/index.js +1 -1
  52. package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-action-button.vue.d.ts} +3 -3
  53. package/lib/src/ap-button/ap-action-button.vue.js +1 -0
  54. package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
  55. package/lib/src/ap-button/ap-button.vue.d.ts +48 -0
  56. package/lib/src/ap-button/ap-button.vue.js +1 -0
  57. package/lib/src/ap-button/ap-button.vue2.js +1 -0
  58. package/lib/src/ap-button/index.d.ts +4 -0
  59. package/lib/src/ap-button/index.js +1 -0
  60. package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +3 -1
  61. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  62. package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
  63. package/lib/src/ap-descriptions/helper.d.ts +19 -1
  64. package/lib/src/ap-descriptions/helper.js +1 -1
  65. package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
  66. package/lib/src/ap-download/ap-download.vue.js +1 -1
  67. package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
  68. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  69. package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
  70. package/lib/src/ap-form/dependency/index.vue.js +1 -0
  71. package/lib/src/ap-form/dependency/index.vue2.js +1 -0
  72. package/lib/src/ap-form/index.d.ts +3 -1
  73. package/lib/src/ap-form/index.js +1 -1
  74. package/lib/src/ap-form/interface.d.ts +3 -0
  75. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  76. package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
  77. package/lib/src/business/{ap-action-button/ApActionButton.vue.js → ap-card/ApCard.vue.js} +1 -1
  78. package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
  79. package/lib/src/business/ap-card/index.css +10 -0
  80. package/lib/src/business/ap-card/interface.d.ts +9 -0
  81. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  82. package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
  83. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
  84. package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
  85. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  86. package/lib/src/business/index.d.ts +21 -235
  87. package/lib/src/business/index.js +1 -1
  88. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  89. package/lib/src/config-provider/config-provider-props.js +1 -1
  90. package/lib/src/config-provider/config-provider.d.ts +10 -1
  91. package/lib/src/config-provider/config-provider.js +1 -1
  92. package/lib/src/config-provider/constants.d.ts +9 -0
  93. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  94. package/lib/src/config-provider/index.d.ts +20 -1
  95. package/lib/src/editable-table/interface.d.ts +3 -2
  96. package/lib/src/index.d.ts +1 -0
  97. package/lib/src/index.js +1 -1
  98. package/lib/src/theme/ap-card/ap-card.css +10 -0
  99. package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
  100. package/lib/src/theme/css-var/index.js +1 -1
  101. package/package.json +1 -1
  102. package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
  103. package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
  104. package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
  105. /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
  106. /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
  107. /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  108. /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
  109. /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
  110. /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
  111. /package/es/src/business/{title → ap-title}/style.css +0 -0
  112. /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
  113. /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
  114. /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
  115. /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
  116. /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
  117. /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
  118. /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
  119. /package/lib/src/business/{title → ap-title}/style.css +0 -0
  120. /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
@@ -1,4 +0,0 @@
1
- import f from "./ApActionButton.vue2.mjs";
2
- export {
3
- f as default
4
- };
@@ -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