@aplus-frontend/ui 0.2.27 → 0.2.29

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 (41) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +8 -8
  2. package/es/src/ap-field/select/index.vue.mjs +10 -10
  3. package/es/src/ap-field/text/index.vue2.mjs +23 -20
  4. package/es/src/ap-field/text/password.vue.mjs +19 -16
  5. package/es/src/ap-field/text-area/index.vue.mjs +7 -4
  6. package/es/src/ap-form/items/text/index.vue.d.ts +30 -0
  7. package/es/src/ap-form/items/text/password.vue.d.ts +30 -0
  8. package/es/src/ap-form/items/text-area/index.vue.d.ts +27 -0
  9. package/es/src/ap-form/search-form/index.vue.mjs +77 -77
  10. package/es/src/ap-form/search-form/utils.d.ts +1 -0
  11. package/es/src/ap-form/search-form/utils.mjs +18 -11
  12. package/es/src/ap-table/constants.d.ts +90 -0
  13. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
  14. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +57 -56
  15. package/es/src/business/ap-export-group/index.d.ts +57 -35
  16. package/es/src/business/ap-export-group/interface.d.ts +1 -0
  17. package/es/src/business/ap-summary/ap-summary.vue2.mjs +5 -5
  18. package/es/src/business/batch-input-group/index.vue.mjs +35 -32
  19. package/es/src/locale/lang/en.mjs +2 -1
  20. package/es/src/locale/lang/zh-cn.mjs +2 -1
  21. package/lib/src/ap-field/number/index.vue.d.ts +8 -8
  22. package/lib/src/ap-field/select/index.vue.js +1 -1
  23. package/lib/src/ap-field/text/index.vue2.js +1 -1
  24. package/lib/src/ap-field/text/password.vue.js +1 -1
  25. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  26. package/lib/src/ap-form/items/text/index.vue.d.ts +30 -0
  27. package/lib/src/ap-form/items/text/password.vue.d.ts +30 -0
  28. package/lib/src/ap-form/items/text-area/index.vue.d.ts +27 -0
  29. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  30. package/lib/src/ap-form/search-form/utils.d.ts +1 -0
  31. package/lib/src/ap-form/search-form/utils.js +1 -1
  32. package/lib/src/ap-table/constants.d.ts +90 -0
  33. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
  34. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  35. package/lib/src/business/ap-export-group/index.d.ts +57 -35
  36. package/lib/src/business/ap-export-group/interface.d.ts +1 -0
  37. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  38. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  39. package/lib/src/locale/lang/en.js +1 -1
  40. package/lib/src/locale/lang/zh-cn.js +1 -1
  41. package/package.json +5 -5
@@ -3,27 +3,27 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
3
3
  export * from './interface';
4
4
  declare const ApExportGroup: {
5
5
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
6
- selectedRowKeys: {
7
- type: PropType<any[]>;
6
+ text: {
7
+ type: PropType<string>;
8
8
  };
9
9
  disabled: {
10
10
  type: PropType<boolean>;
11
11
  };
12
- auth: {
13
- type: PropType<string>;
12
+ request: {
13
+ type: PropType<(key: any) => Promise<any>>;
14
+ };
15
+ selectedRowKeys: {
16
+ type: PropType<any[]>;
14
17
  };
15
18
  ifShow: {
16
19
  type: PropType<() => boolean>;
17
20
  };
18
- text: {
21
+ auth: {
19
22
  type: PropType<string>;
20
23
  };
21
24
  idKey: {
22
25
  type: PropType<string>;
23
26
  };
24
- request: {
25
- type: PropType<(key: any) => Promise<any>>;
26
- };
27
27
  getRequestParams: {
28
28
  type: PropType<() => Record<string, any>>;
29
29
  };
@@ -33,28 +33,32 @@ declare const ApExportGroup: {
33
33
  beforeRequest: {
34
34
  type: PropType<(params: any) => Record<string, any>>;
35
35
  };
36
+ successMessage: {
37
+ type: PropType<string | boolean>;
38
+ default: boolean;
39
+ };
36
40
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
37
- selectedRowKeys: {
38
- type: PropType<any[]>;
41
+ text: {
42
+ type: PropType<string>;
39
43
  };
40
44
  disabled: {
41
45
  type: PropType<boolean>;
42
46
  };
43
- auth: {
44
- type: PropType<string>;
47
+ request: {
48
+ type: PropType<(key: any) => Promise<any>>;
49
+ };
50
+ selectedRowKeys: {
51
+ type: PropType<any[]>;
45
52
  };
46
53
  ifShow: {
47
54
  type: PropType<() => boolean>;
48
55
  };
49
- text: {
56
+ auth: {
50
57
  type: PropType<string>;
51
58
  };
52
59
  idKey: {
53
60
  type: PropType<string>;
54
61
  };
55
- request: {
56
- type: PropType<(key: any) => Promise<any>>;
57
- };
58
62
  getRequestParams: {
59
63
  type: PropType<() => Record<string, any>>;
60
64
  };
@@ -64,7 +68,13 @@ declare const ApExportGroup: {
64
68
  beforeRequest: {
65
69
  type: PropType<(params: any) => Record<string, any>>;
66
70
  };
67
- }>>, {}, true, {}, {}, {
71
+ successMessage: {
72
+ type: PropType<string | boolean>;
73
+ default: boolean;
74
+ };
75
+ }>>, {
76
+ successMessage: boolean | string;
77
+ }, true, {}, {}, {
68
78
  P: {};
69
79
  B: {};
70
80
  D: {};
@@ -72,27 +82,27 @@ declare const ApExportGroup: {
72
82
  M: {};
73
83
  Defaults: {};
74
84
  }, Readonly< ExtractPropTypes<{
75
- selectedRowKeys: {
76
- type: PropType<any[]>;
85
+ text: {
86
+ type: PropType<string>;
77
87
  };
78
88
  disabled: {
79
89
  type: PropType<boolean>;
80
90
  };
81
- auth: {
82
- type: PropType<string>;
91
+ request: {
92
+ type: PropType<(key: any) => Promise<any>>;
93
+ };
94
+ selectedRowKeys: {
95
+ type: PropType<any[]>;
83
96
  };
84
97
  ifShow: {
85
98
  type: PropType<() => boolean>;
86
99
  };
87
- text: {
100
+ auth: {
88
101
  type: PropType<string>;
89
102
  };
90
103
  idKey: {
91
104
  type: PropType<string>;
92
105
  };
93
- request: {
94
- type: PropType<(key: any) => Promise<any>>;
95
- };
96
106
  getRequestParams: {
97
107
  type: PropType<() => Record<string, any>>;
98
108
  };
@@ -102,32 +112,38 @@ declare const ApExportGroup: {
102
112
  beforeRequest: {
103
113
  type: PropType<(params: any) => Record<string, any>>;
104
114
  };
105
- }>>, {}, {}, {}, {}, {}>;
115
+ successMessage: {
116
+ type: PropType<string | boolean>;
117
+ default: boolean;
118
+ };
119
+ }>>, {}, {}, {}, {}, {
120
+ successMessage: boolean | string;
121
+ }>;
106
122
  __isFragment?: never;
107
123
  __isTeleport?: never;
108
124
  __isSuspense?: never;
109
125
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
110
- selectedRowKeys: {
111
- type: PropType<any[]>;
126
+ text: {
127
+ type: PropType<string>;
112
128
  };
113
129
  disabled: {
114
130
  type: PropType<boolean>;
115
131
  };
116
- auth: {
117
- type: PropType<string>;
132
+ request: {
133
+ type: PropType<(key: any) => Promise<any>>;
134
+ };
135
+ selectedRowKeys: {
136
+ type: PropType<any[]>;
118
137
  };
119
138
  ifShow: {
120
139
  type: PropType<() => boolean>;
121
140
  };
122
- text: {
141
+ auth: {
123
142
  type: PropType<string>;
124
143
  };
125
144
  idKey: {
126
145
  type: PropType<string>;
127
146
  };
128
- request: {
129
- type: PropType<(key: any) => Promise<any>>;
130
- };
131
147
  getRequestParams: {
132
148
  type: PropType<() => Record<string, any>>;
133
149
  };
@@ -137,7 +153,13 @@ declare const ApExportGroup: {
137
153
  beforeRequest: {
138
154
  type: PropType<(params: any) => Record<string, any>>;
139
155
  };
140
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
156
+ successMessage: {
157
+ type: PropType<string | boolean>;
158
+ default: boolean;
159
+ };
160
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
161
+ successMessage: boolean | string;
162
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
141
163
  $props: {
142
164
  onClick?: () => void;
143
165
  };
@@ -37,6 +37,7 @@ export interface ApExportGroupProps {
37
37
  */
38
38
  getInitialParams?: () => Record<string, any>;
39
39
  beforeRequest?: (params: any) => Record<string, any>;
40
+ successMessage?: boolean | string;
40
41
  }
41
42
  export declare enum ApExportGroupActionType {
42
43
  ALL = "ALL",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified"),p=require("@aplus-frontend/antdv"),o=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),_=require("../../config-provider/hooks/use-namespace.js"),v=e.defineComponent({name:"ApSummary",__name:"ap-summary",props:{data:{},columns:{},summaryTitle:{default:"合计"},hasSelect:{type:Boolean,default:!0},size:{default:"middle"}},setup(f){const s=f,y=n=>n===0,x=(n,u)=>{var r;if(!n||!i.isNumeric(n)||u.valueType!=="number")return n;const a=(r=u.fieldProps)==null?void 0:r.field,t=(a==null?void 0:a.precision)||0;return(l.isNil(a==null?void 0:a.thousands)?!0:a==null?void 0:a.thousands)?i.toThousand(n,t):i.toFixed(n,t)},k=e.computed(()=>{let n=[];s.hasSelect&&n.push({key:"select",rowSpan:1,align:"left",value:""});const a=o.flattenColumns(s.columns).map((t,m)=>{let r;const S=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key));if(y(m))r=s.summaryTitle;else if(S&&(t.customRender||t.renderText)){const d=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),T=o.formatDataIndex(t.dataIndex||t.key),c=t.customRender||t.renderText;r=c==null?void 0:c({value:d,record:{[T]:d},text:void 0,index:0,renderIndex:0,column:{}})}else r=x(l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),t);return{key:t.key,rowSpan:1,align:t.align,value:e.createVNode(e.Fragment,null,[r])}});return n.concat(a)}),{b:g,e:h,em:C}=_.useNamespace("ap-summary");return(n,u)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryRow),{class:e.normalizeClass(e.unref(g)())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(a,t)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryCell),{class:e.normalizeClass(`${s.size==="small"?e.unref(C)("item","small"):e.unref(h)("item")}`),key:a.key,index:t,style:e.normalizeStyle({textAlign:a.align})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:2},1032,["class","index","style"]))),128))]),_:1},8,["class"]))}});exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified"),p=require("@aplus-frontend/antdv"),o=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),T=require("../../config-provider/hooks/use-namespace.js"),_=e.defineComponent({name:"ApSummary",__name:"ap-summary",props:{data:{},columns:{},summaryTitle:{default:"合计"},hasSelect:{type:Boolean,default:!0},size:{default:"middle"}},setup(f){const s=f,y=n=>n===0,x=(n,u)=>{var r;if(!i.isNumeric(n)||u.valueType!=="number")return n;const a=(r=u.fieldProps)==null?void 0:r.field,t=(a==null?void 0:a.precision)||0;return(l.isNil(a==null?void 0:a.thousands)?!0:a==null?void 0:a.thousands)?i.toThousand(n,t):i.toFixed(n,t)},k=e.computed(()=>{let n=[];s.hasSelect&&n.push({key:"select",rowSpan:1,align:"left",value:""});const a=o.flattenColumns(s.columns).map((t,m)=>{let r;const C=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key));if(y(m))r=s.summaryTitle;else if(C&&(t.customRender||t.renderText)){const d=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),S=o.formatDataIndex(t.dataIndex||t.key),c=t.customRender||t.renderText;r=c==null?void 0:c({value:d,record:{[S]:d},text:void 0,index:0,renderIndex:0,column:{}})}else r=x(l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),t);return{key:t.key,rowSpan:1,align:t.align,value:e.createVNode(e.Fragment,null,[r])}});return n.concat(a)}),{b:g,e:h,em:v}=T.useNamespace("ap-summary");return(n,u)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryRow),{class:e.normalizeClass(e.unref(g)())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(a,t)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryCell),{class:e.normalizeClass(`${s.size==="small"?e.unref(v)("item","small"):e.unref(h)("item")}`),key:a.key,index:t,style:e.normalizeStyle({textAlign:a.align})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:2},1032,["class","index","style"]))),128))]),_:1},8,["class"]))}});exports.default=_;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../ap-field/index.js");const w=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const j=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const L=require("../../utils/index.js"),O=require("../../ap-field/hooks/use-default-placeholder.js"),P=require("../../hooks/useControllableValue.js"),R=require("../../config-provider/hooks/use-locale.js"),E=require("../../ap-field/select/index.vue.js"),F=require("../../ap-field/text/index.js"),T=require("./popover-input/index.vue2.js"),i="GROUP_SEARCH_ALL",z=t.defineComponent({__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},mode:{default:"edit"},class:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(m,{emit:h}){const l=m,g=O.useDefaultPlaceholder("Text",l),B=h,{value:u,updateValue:a}=P.useControllableValue(l,B),p=t.ref(),c=t.ref(),{t:_}=R.useLocale(),V=t.computed(()=>l.options?l.options.length>1&&l.hasAll?[{value:i,label:_("ap.apGroupSearch.all")},...l.options]:l.options:[]),A=t.computed(()=>l.options?l.options.map(e=>e.value):[]),C=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(","):""}),q=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(`
2
- `):""}),S=t.computed(()=>{var n;const e=(n=t.unref(u))==null?void 0:n.key;if(e!=null&&e.length)return e.length===1?e[0]:i}),x=t.computed(()=>{var o;const e=(o=t.unref(u))==null?void 0:o.key;return!e||(e==null?void 0:e.length)<=1?t.unref(g):(l.options||[]).filter(r=>e.includes(r.value)).map(r=>r.label).join("/")});function b(e){const n=t.unref(u)||{},o=e===i?t.unref(A):L.isDef(e)?[e]:[];a({...n,key:o})}function U(e){var f,v;const n=t.unref(u)||{},o=e.target.value||"",r=o.replace(/[,]+/g,",");if(o!==r){const y=(v=(f=c.value)==null?void 0:f.$el)==null?void 0:v.querySelector("input");y&&(y.value=r)}let s=r.split(",");s.length===1&&s[0]===""&&(s=[]),a({...n,value:s})}function k(e){const n=t.unref(u)||{};let o=e.split(/,|\n/);a({...n,value:o})}function d(){var o;const e=t.unref(u)||{},n=(o=e.value)==null?void 0:o.filter(Boolean);a({...e,value:n})}function I(e){var n;d(),(n=l.onBlur)==null||n.call(l,e)}return(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"containerRef",ref:p,style:{position:"relative"},onFocus:n[0]||(n[0]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[1]||(n[1]=(...o)=>e.onBlur&&e.onBlur(...o))},[t.createVNode(t.unref(w.Space).Compact,{block:""},{default:t.withCtx(()=>{var o;return[(o=e.options)!=null&&o.length?(t.openBlock(),t.createBlock(t.unref(E.default),{key:0,style:t.normalizeStyle(e.style),options:V.value,value:S.value,"onUpdate:value":b,"allow-clear":!1,"dropdown-match-select-width":!1},null,8,["style","options","value"])):t.createCommentVNode("",!0),t.createVNode(t.unref(F.ApFieldText),t.mergeProps({style:e.inputStyle},t.unref(j.omit)(l,["style","value","onUpdate:value","inputStyle","hasAll","options"]),{ref_key:"inputRef",ref:c,value:C.value,onInput:U,onBlur:I,placeholder:x.value}),{suffix:t.withCtx(()=>[t.createVNode(T.default,{_parent:p.value,value:q.value,"onUpdate:value":k,onClose:d},null,8,["_parent","value"])]),_:1},16,["style","value","placeholder"])]}),_:1})],544))}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../ap-field/index.js");const k=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const R=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const j=require("../../utils/index.js"),L=require("../../ap-field/hooks/use-default-placeholder.js"),O=require("../../hooks/useControllableValue.js"),P=require("../../config-provider/hooks/use-locale.js"),E=require("../../ap-field/select/index.vue.js"),F=require("../../ap-field/text/index.js"),T=require("./popover-input/index.vue2.js"),i="GROUP_SEARCH_ALL",M=t.defineComponent({__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},mode:{default:"edit"},class:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(m,{emit:h}){const l=m,g=L.useDefaultPlaceholder("Text",l),B=h,{value:u,updateValue:a}=O.useControllableValue(l,B),p=t.ref(),c=t.ref(),{t:_}=P.useLocale(),V=t.computed(()=>l.options?l.options.length>1&&l.hasAll?[{value:i,label:_("ap.apGroupSearch.all")},...l.options]:l.options:[]),A=t.computed(()=>l.options?l.options.map(e=>e.value):[]),C=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(","):""}),q=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(`
2
+ `):""}),S=t.computed(()=>{var n;const e=(n=t.unref(u))==null?void 0:n.key;if(e!=null&&e.length)return e.length===1?e[0]:i}),x=t.computed(()=>{var o;const e=(o=t.unref(u))==null?void 0:o.key;return!e||(e==null?void 0:e.length)<=1?t.unref(g):(l.options||[]).filter(r=>e.includes(r.value)).map(r=>r.label).join("/")});function b(e){const n=t.unref(u)||{},o=e===i?t.unref(A):j.isDef(e)?[e]:[];a({...n,key:o})}function U(e){var f,v;const n=t.unref(u)||{},o=e.target.value||"",r=o.replace(/[,]+/g,",");if(o!==r){const y=(v=(f=c.value)==null?void 0:f.$el)==null?void 0:v.querySelector("input");y&&(y.value=r)}let s=r.split(",");s.length===1&&s[0]===""&&(s=[]),a({...n,value:s})}function w(e){const n=t.unref(u)||{};let o=e.split(/,|\n/);a({...n,value:o})}function d(){var o;const e=t.unref(u)||{},n=(o=e.value)==null?void 0:o.filter(Boolean);a({...e,value:n})}function I(e){var n;d(),(n=l.onBlur)==null||n.call(l,e)}return(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"containerRef",ref:p,style:{position:"relative"},onFocus:n[0]||(n[0]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[1]||(n[1]=(...o)=>e.onBlur&&e.onBlur(...o))},[t.createVNode(t.unref(k.Space).Compact,{block:""},{default:t.withCtx(()=>{var o;return[(o=e.options)!=null&&o.length?(t.openBlock(),t.createBlock(t.unref(E.default),{key:0,style:t.normalizeStyle(e.style),options:V.value,value:S.value,"onUpdate:value":b,"allow-clear":!1,"dropdown-match-select-width":!1},null,8,["style","options","value"])):t.createCommentVNode("",!0),t.createVNode(t.unref(F.ApFieldText),t.mergeProps({style:e.inputStyle},t.unref(R.omit)(l,["style","value","onUpdate:value","inputStyle","hasAll","options"]),{ref_key:"inputRef",ref:c,value:C.value,onInput:U,onBlur:I,placeholder:x.value}),{suffix:t.withCtx(()=>[t.createVNode(T.default,{_parent:p.value,value:q.value,"onUpdate:value":w,onClose:d},null,8,["_parent","value"])]),_:1},16,["style","value","placeholder"])]}),_:1})],544))}});exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"}}};exports.default=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"}}};exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -64,18 +64,18 @@
64
64
  "sortablejs": "^1.15.2",
65
65
  "vue-virtual-scroller": "2.0.0-beta.8",
66
66
  "vuedraggable": "^4.1.0",
67
- "@aplus-frontend/hooks": "1.0.7",
68
- "@aplus-frontend/utils": "1.0.43"
67
+ "@aplus-frontend/utils": "1.0.43",
68
+ "@aplus-frontend/hooks": "1.0.7"
69
69
  },
70
70
  "peerDependencies": {
71
- "@aplus-frontend/antdv": "^1.0.6",
71
+ "@aplus-frontend/antdv": "^1.0.7",
72
72
  "@aplus-frontend/icon": "^1.1.3",
73
73
  "@aplus-frontend/oss": "^1.1.2",
74
74
  "vue": "3.4.38",
75
75
  "@aplus-frontend/ui-theme": "1.0.22"
76
76
  },
77
77
  "devDependencies": {
78
- "@aplus-frontend/antdv": "^1.0.5",
78
+ "@aplus-frontend/antdv": "^1.0.7",
79
79
  "@aplus-frontend/icon": "^1.1.3",
80
80
  "@aplus-frontend/oss": "^1.1.2",
81
81
  "@types/sortablejs": "^1.15.8",