@aplus-frontend/ui 0.2.7 → 0.2.9

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 (79) hide show
  1. package/es/index.mjs +151 -147
  2. package/es/src/ap-field/switch/index.vue.mjs +38 -37
  3. package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
  4. package/es/src/ap-modal/utils/createModal.mjs +14 -13
  5. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
  6. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
  7. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +191 -0
  8. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  9. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
  10. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +124 -0
  11. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  12. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
  13. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  14. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
  15. package/es/src/business/ap-group-search/index.d.ts +2830 -0
  16. package/es/src/business/ap-group-search/index.mjs +14 -0
  17. package/es/src/business/ap-group-search/interface.d.ts +11 -0
  18. package/es/src/business/ap-group-search/interface.mjs +1 -0
  19. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  20. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
  21. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
  22. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  23. package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
  24. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  25. package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
  26. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  27. package/es/src/business/ap-group-search/style/css.js +1 -0
  28. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  29. package/es/src/business/ap-group-search/style/index.js +1 -0
  30. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +24 -23
  31. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +17 -11
  32. package/es/src/business/index.d.ts +1 -0
  33. package/es/src/business/index.mjs +30 -26
  34. package/es/src/check-card/index.vue2.mjs +43 -43
  35. package/es/src/index.mjs +33 -29
  36. package/es/src/locale/lang/en.mjs +8 -0
  37. package/es/src/locale/lang/zh-cn.mjs +8 -0
  38. package/es/src/path-map.mjs +3 -1
  39. package/es/src/work-order-modal/createWorkOrder.mjs +13 -12
  40. package/lib/index.js +1 -1
  41. package/lib/src/ap-field/switch/index.vue.js +1 -1
  42. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  43. package/lib/src/ap-modal/utils/createModal.js +1 -1
  44. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
  45. package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
  46. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
  47. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  48. package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
  49. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
  50. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  51. package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
  52. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  53. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
  54. package/lib/src/business/ap-group-search/index.d.ts +2830 -0
  55. package/lib/src/business/ap-group-search/index.js +1 -0
  56. package/lib/src/business/ap-group-search/interface.d.ts +11 -0
  57. package/lib/src/business/ap-group-search/interface.js +1 -0
  58. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  59. package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
  60. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
  61. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  62. package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
  63. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  64. package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
  65. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  66. package/lib/src/business/ap-group-search/style/css.js +1 -0
  67. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
  68. package/lib/src/business/ap-group-search/style/index.js +1 -0
  69. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  70. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  71. package/lib/src/business/index.d.ts +1 -0
  72. package/lib/src/business/index.js +1 -1
  73. package/lib/src/check-card/index.vue2.js +1 -1
  74. package/lib/src/index.js +1 -1
  75. package/lib/src/locale/lang/en.js +1 -1
  76. package/lib/src/locale/lang/zh-cn.js +1 -1
  77. package/lib/src/path-map.js +1 -1
  78. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  79. package/package.json +6 -5
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),d=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const M=require("../../utils/slot.js");require("../../config-provider/index.js");const g=require("lodash-unified"),L=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function k(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!t.isVNode(c)}const I=t.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(c,{expose:W,emit:x}){const i=c,h=t.useSlots(),N=x,a=t.ref(),f=t.ref(),u=t.ref(!1),{value:V,updateValue:m}=j.useControllableValue(i,N,{valuePropName:"open",defaultValue:!1}),p=t.computed(()=>{var n,o,r,s;const e={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return g.isBoolean(i.resize)?i.resize?e:{}:{minWidth:((n=i.resize)==null?void 0:n.minWidth)??e.minWidth,maxWidth:((o=i.resize)==null?void 0:o.maxWidth)??e.maxWidth,onResize:((r=i.resize)==null?void 0:r.onResize)??e.onResize,resizeOnOpen:g.isUndefined((s=i.resize)==null?void 0:s.resizeOnOpen)?e.onResize:i.resize.resizeOnOpen}}),v=t.ref(y()),{t:b}=E.useLocale(),{e:T}=U.useNamespace("ap-form-drawer-form");t.watch(()=>a.value,e=>{var n;e&&f.value&&((n=e.setFieldsValue)==null||n.call(e,f.value),f.value=void 0)}),t.watch(()=>t.unref(V),e=>{var n;e&&(n=t.unref(p))!=null&&n.resizeOnOpen&&(v.value=y())});function y(){var n;const e=(n=t.unref(p))==null?void 0:n.minWidth;return!e||e&&e<i.width?i.width:e}const F=M.getSingleVNode(h.trigger),w=F?t.cloneVNode(F,{onClick:()=>{m(!0)}}):null,O=t.computed(()=>{var n,o,r,s;const e=[];if(i.submitter===!1)return null;if(i.showCancel){let l;e.push(t.createVNode(d.Button,{onClick:z,disabled:u.value},k(l=b("ap.common.cancelText"))?l:{default:()=>[l]}))}return((n=i.submitter)==null?void 0:n.resetButtonProps)!==!1&&e.push(t.createVNode(d.Button,t.mergeProps(((o=i.submitter)==null?void 0:o.resetButtonProps)||{},{key:"submit",disabled:u.value,onClick:P}),{default:()=>{var l;return[((l=i.submitter)==null?void 0:l.resetText)||b("ap.common.resetText")]}})),((r=i.submitter)==null?void 0:r.submitButtonProps)!==!1&&e.push(t.createVNode(d.Button,t.mergeProps({type:"primary",key:"submit"},((s=i.submitter)==null?void 0:s.submitButtonProps)||{},{loading:u.value,onClick:q}),{default:()=>{var l;return[((l=i.submitter)==null?void 0:l.submitText)||b("ap.common.okText")]}})),t.createVNode(d.Flex,{justify:"flex-end"},{default:()=>[h.submitter?h.submitter(e):t.createVNode(d.Space,null,k(e)?e:{default:()=>[e]})]})});function _(){var e,n;(n=(e=p.value)==null?void 0:e.onResize)==null||n.call(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",B)}function C(e){const n=t.unref(p),o=(document.body.offsetWidth||1e3)-(e.clientX-document.body.offsetLeft),r=(n==null?void 0:n.minWidth)??(i.width||800),s=(n==null?void 0:n.maxWidth)??window.innerWidth*.8;let l=o;o<r&&(l=r),o>s&&(l=s),v.value=l}function B(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",B)}function P(){var e,n,o;i.submitter!==!1&&((e=a.value)==null||e.resetFields(),(o=(n=i.submitter)==null?void 0:n.onReset)==null||o.call(n))}async function q(){var e,n,o,r;if(i.submitter!==!1)try{const s=await((e=a.value)==null?void 0:e.validateFields());(o=(n=i.submitter)==null?void 0:n.onSubmit)==null||o.call(n),u.value=!0;const l=(r=i.onFinish)==null?void 0:r.call(i,L.convertReactiveToRaw(s));if(i.submitTimeout&&l instanceof Promise){const S=setTimeout(()=>u.value=!1,i.submitTimeout);l.finally(()=>{clearTimeout(S),u.value=!1})}await l&&m(!1)}finally{u.value=!1}}function z(){t.unref(u)||m(!1)}function R(e){!e&&t.unref(u)||m(e)}return W({resetFields:()=>{var e;(e=a.value)==null||e.resetFields()},clearValidate:e=>{var n;(n=a.value)==null||n.clearValidate(e)},validateFields:(e,n)=>{var o;return(o=a.value)==null?void 0:o.validateFields(e,n)},getFieldsValue:e=>{var n;return(n=a.value)==null?void 0:n.getFieldsValue(e)},validate:(e,n)=>{var o;return(o=a.value)==null?void 0:o.validate(e,n)},scrollToField:(e,n={})=>{var o;(o=a.value)==null||o.scrollToField(e,n)},setFieldValue:(e,n)=>{var o,r;(r=(o=a.value)==null?void 0:o.setFieldValue)==null||r.call(o,e,n)},setFieldsValue:e=>{var n,o;if(!a.value){f.value=e;return}(o=(n=a.value)==null?void 0:n.setFieldsValue)==null||o.call(n,e)},getInternalInstance:e=>{var n;return(n=a.value)==null?void 0:n.getInternalInstance(e)}}),(e,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(d.Drawer),t.mergeProps(e.drawerProps,{open:t.unref(V),"onUpdate:open":R,onCancel:z,width:v.value}),{title:t.withCtx(()=>[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])]),footer:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(O.value)))]),default:t.withCtx(()=>[t.createVNode(D.default,t.mergeProps({ref_key:"formRef",ref:a},t.unref(g.omit)(i,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16),e.resize?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(T)("resize-bar")),onMousedown:t.withModifiers(_,["stop","prevent"])},null,34)):t.createCommentVNode("",!0)]),_:3},16,["open","width"]),t.unref(w)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(w)),{key:0})):t.createCommentVNode("",!0)],64))}});exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const j=require("../../utils/slot.js");require("../../config-provider/index.js");const g=require("lodash-unified"),E=require("../../utils/index.js"),U=require("../../hooks/useControllableValue.js"),D=require("../../config-provider/hooks/use-locale.js"),I=require("../../config-provider/hooks/use-namespace.js"),$=require("../ap-form.vue2.js");function k(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!t.isVNode(f)}const A=t.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},drawerProps:{default:()=>({})},title:{},width:{default:378},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{},resize:{type:[Object,Boolean],default:!1}},emits:["update:open"],setup(f,{expose:x,emit:N}){const o=f,v=t.useSlots(),T=N,a=t.ref(),p=t.ref(),u=t.ref(!1),{value:V,updateValue:h}=U.useControllableValue(o,T,{valuePropName:"open",defaultValue:!1}),d=t.computed(()=>{var n,i,r,s;const e={onResize:()=>{},minWidth:300,maxWidth:window.innerWidth*.8,resizeOnOpen:!0};return g.isBoolean(o.resize)?o.resize?e:{}:{minWidth:((n=o.resize)==null?void 0:n.minWidth)??e.minWidth,maxWidth:((i=o.resize)==null?void 0:i.maxWidth)??e.maxWidth,onResize:((r=o.resize)==null?void 0:r.onResize)??e.onResize,resizeOnOpen:g.isUndefined((s=o.resize)==null?void 0:s.resizeOnOpen)?e.onResize:o.resize.resizeOnOpen}}),m=t.ref(F()),{t:b}=D.useLocale(),{e:O,em:y}=I.useNamespace("ap-form-drawer-form"),_=t.computed(()=>[O("resize-bar"),{[y("resize-bar","min-disabled")]:t.unref(m)===t.unref(d).minWidth},{[y("resize-bar","max-disabled")]:t.unref(m)===t.unref(d).maxWidth}]);t.watch(()=>a.value,e=>{var n;e&&p.value&&((n=e.setFieldsValue)==null||n.call(e,p.value),p.value=void 0)}),t.watch(()=>t.unref(V),e=>{var n;e&&(n=t.unref(d))!=null&&n.resizeOnOpen&&(m.value=F())});function F(){var n;const e=(n=t.unref(d))==null?void 0:n.minWidth;return!e||e&&e<o.width?o.width:e}const C=j.getSingleVNode(v.trigger),w=C?t.cloneVNode(C,{onClick:()=>{h(!0)}}):null,P=t.computed(()=>{var n,i,r,s;const e=[];if(o.submitter===!1)return null;if(o.showCancel){let l;e.push(t.createVNode(c.Button,{onClick:W,disabled:u.value},k(l=b("ap.common.cancelText"))?l:{default:()=>[l]}))}return((n=o.submitter)==null?void 0:n.resetButtonProps)!==!1&&e.push(t.createVNode(c.Button,t.mergeProps(((i=o.submitter)==null?void 0:i.resetButtonProps)||{},{key:"submit",disabled:u.value,onClick:q}),{default:()=>{var l;return[((l=o.submitter)==null?void 0:l.resetText)||b("ap.common.resetText")]}})),((r=o.submitter)==null?void 0:r.submitButtonProps)!==!1&&e.push(t.createVNode(c.Button,t.mergeProps({type:"primary",key:"submit"},((s=o.submitter)==null?void 0:s.submitButtonProps)||{},{loading:u.value,onClick:S}),{default:()=>{var l;return[((l=o.submitter)==null?void 0:l.submitText)||b("ap.common.okText")]}})),t.createVNode(c.Flex,{justify:"flex-end"},{default:()=>[v.submitter?v.submitter(e):t.createVNode(c.Space,null,k(e)?e:{default:()=>[e]})]})});function R(){var e,n;(n=(e=d.value)==null?void 0:e.onResize)==null||n.call(e),document.addEventListener("mousemove",z),document.addEventListener("mouseup",B)}function z(e){const n=t.unref(d),i=(document.body.offsetWidth||1e3)-(e.clientX-document.body.offsetLeft),r=(n==null?void 0:n.minWidth)??(o.width||800),s=(n==null?void 0:n.maxWidth)??window.innerWidth*.8;let l=i;i<r&&(l=r),i>s&&(l=s),m.value=l}function B(){document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",B)}function q(){var e,n,i;o.submitter!==!1&&((e=a.value)==null||e.resetFields(),(i=(n=o.submitter)==null?void 0:n.onReset)==null||i.call(n))}async function S(){var e,n,i,r;if(o.submitter!==!1)try{const s=await((e=a.value)==null?void 0:e.validateFields());(i=(n=o.submitter)==null?void 0:n.onSubmit)==null||i.call(n),u.value=!0;const l=(r=o.onFinish)==null?void 0:r.call(o,E.convertReactiveToRaw(s));if(o.submitTimeout&&l instanceof Promise){const L=setTimeout(()=>u.value=!1,o.submitTimeout);l.finally(()=>{clearTimeout(L),u.value=!1})}await l&&h(!1)}finally{u.value=!1}}function W(){t.unref(u)||h(!1)}function M(e){!e&&t.unref(u)||h(e)}return x({resetFields:()=>{var e;(e=a.value)==null||e.resetFields()},clearValidate:e=>{var n;(n=a.value)==null||n.clearValidate(e)},validateFields:(e,n)=>{var i;return(i=a.value)==null?void 0:i.validateFields(e,n)},getFieldsValue:e=>{var n;return(n=a.value)==null?void 0:n.getFieldsValue(e)},validate:(e,n)=>{var i;return(i=a.value)==null?void 0:i.validate(e,n)},scrollToField:(e,n={})=>{var i;(i=a.value)==null||i.scrollToField(e,n)},setFieldValue:(e,n)=>{var i,r;(r=(i=a.value)==null?void 0:i.setFieldValue)==null||r.call(i,e,n)},setFieldsValue:e=>{var n,i;if(!a.value){p.value=e;return}(i=(n=a.value)==null?void 0:n.setFieldsValue)==null||i.call(n,e)},getInternalInstance:e=>{var n;return(n=a.value)==null?void 0:n.getInternalInstance(e)}}),(e,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(c.Drawer),t.mergeProps(e.drawerProps,{open:t.unref(V),"onUpdate:open":M,onCancel:W,width:m.value}),{title:t.withCtx(()=>[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(o.title),1)])]),footer:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.value)))]),default:t.withCtx(()=>[t.createVNode($.default,t.mergeProps({ref_key:"formRef",ref:a},t.unref(g.omit)(o,["drawerProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16),e.resize?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(_.value),onMousedown:t.withModifiers(R,["stop","prevent"])},null,34)):t.createCommentVNode("",!0)]),_:3},16,["open","width"]),t.unref(w)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(w)),{key:0})):t.createCommentVNode("",!0)],64))}});exports.default=A;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),C=require("@aplus-frontend/antdv"),u=require("../../config-provider/config-provider.js"),g=p=>{let i,t;function c(){i&&i(!1),setTimeout(()=>{o.render(null,a),l.removeChild(a)},500)}function h(e){t&&t(e)}const f=o.defineComponent({data(){return{open:!0,props:p}},methods:{async handleCancel(){var e,n,r,s,d;if((e=this.props)!=null&&e.onCancel){const m=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await((d=this.props)==null?void 0:d.onCancel(m))}c()},async handleOk(){var e,n,r,s;try{if(t({confirmLoading:!0}),(e=this.props)!=null&&e.onOk){const d=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await this.props.onOk(d)}t({confirmLoading:!1}),c()}catch{t({confirmLoading:!1})}}},created(){i=e=>{this.open=e},t=e=>{this.props={...this.props,...e}}},render(){const{...e}=this.props;return delete e.onCancel,delete e.onOk,o.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[o.createVNode(C.Modal,o.mergeProps({open:this.open,destroyOnClose:!0,onCancel:this.handleCancel,onOk:this.handleOk},e),{default:()=>{var n;return[(n=this.props)==null?void 0:n.content]}})]})}}),l=p.getContainer||document.body,a=document.createElement("div");return l.appendChild(a),o.render(o.h(f),a),{destroy:c,update:h}};exports.createModal=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),C=require("@aplus-frontend/antdv"),l=require("../../config-provider/config-provider.js"),g=p=>{let i,t;function c(){i&&i(!1),setTimeout(()=>{var e;o.render(null,r),(e=r.parentElement)==null||e.removeChild(r)},500)}function u(e){t&&t(e)}const h=o.defineComponent({data(){return{open:!0,props:p}},methods:{async handleCancel(){var e,n,s,a,d;if((e=this.props)!=null&&e.onCancel){const m=((a=(s=(n=this.props)==null?void 0:n.content)==null?void 0:s.component)==null?void 0:a.exposed)??void 0;await((d=this.props)==null?void 0:d.onCancel(m))}c()},async handleOk(){var e,n,s,a;try{if(t({confirmLoading:!0}),(e=this.props)!=null&&e.onOk){const d=((a=(s=(n=this.props)==null?void 0:n.content)==null?void 0:s.component)==null?void 0:a.exposed)??void 0;await this.props.onOk(d)}t({confirmLoading:!1}),c()}catch{t({confirmLoading:!1})}}},created(){i=e=>{this.open=e},t=e=>{this.props={...this.props,...e}}},render(){const{...e}=this.props;return delete e.onCancel,delete e.onOk,o.createVNode(l.ConfigProvider,l.globalConfigCached.value,{default:()=>[o.createVNode(C.Modal,o.mergeProps({open:this.open,destroyOnClose:!0,onCancel:this.handleCancel,onOk:this.handleOk},e),{default:()=>{var n;return[(n=this.props)==null?void 0:n.content]}})]})}}),f=p.getContainer||document.body,r=document.createElement("div");return f.appendChild(r),o.render(o.h(h),r),{destroy:c,update:u}};exports.createModal=g;
@@ -0,0 +1,53 @@
1
+ import { SelectValue } from '@aplus-frontend/antdv/es/select';
2
+ import { GroupSearchProps } from './interface';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
+ declare function __VLS_template(): {
5
+ slots: {
6
+ search?(_: {
7
+ value: any;
8
+ change: (e: any) => void;
9
+ key: SelectValue;
10
+ }): any;
11
+ };
12
+ refs: {};
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
17
+ hasAll: boolean;
18
+ dropdownMatchSelectWidth: boolean;
19
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:value": (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
22
+ hasAll: boolean;
23
+ dropdownMatchSelectWidth: boolean;
24
+ }>>> & {
25
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
26
+ }, {
27
+ dropdownMatchSelectWidth: number | boolean;
28
+ hasAll: boolean;
29
+ }, {}>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
34
+ default: D[K];
35
+ }> : P[K];
36
+ };
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToOption<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
51
+ type __VLS_PrettifyLocal<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ap-group-search.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),h=require("@aplus-frontend/antdv"),V=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const M=require("../../config-provider/hooks/use-locale.js"),N=require("../../config-provider/hooks/use-global-config.js"),k=require("../../config-provider/hooks/use-namespace.js"),q=require("./extension-select/index.vue2.js"),c="GROUP_SEARCH_ALL",I=o.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{default:!1},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{}},emits:["update:value"],setup(f,{emit:m}){const{t:p}=M.useLocale(),y=N.useGlobalConfig("uiMode","aplus"),n=f,v=o.computed(()=>({width:"auto",...n.style})),g=m,{value:a,updateValue:s}=x.useControllableValue(n,g),C=e=>{let t=e;e===c?t=n.options.map(l=>l.value):t=toString.call(t)==="[object Array]"?e:[e],s({...a.value,key:t})},S=o.computed(()=>{let e=[];return n.hasAll&&(e=[{value:c,label:p("ap.apGroupSearch.all")}]),[...e,...n.options]}),w=o.computed(()=>{var r,u;const e=(r=a==null?void 0:a.value)==null?void 0:r.key,t=p("ap.apGroupSearch.defaultPlaceholder");if(!e)return t;const l=toString.call(e)==="[object Array]"?e:[e];return((u=n.options)==null?void 0:u.filter(i=>l.includes(i.value)).map(i=>i.label).join("/"))||t});o.onMounted(()=>{o.watch(()=>{var e;return[n.hasAll,(e=o.unref(a))==null?void 0:e.key]},()=>{var e,t;n.hasAll&&!((e=o.unref(a))!=null&&e.key)&&s({...o.unref(a),key:(t=n.options)==null?void 0:t.map(l=>l.value)})},{immediate:!0})});const b=o.computed(()=>{var t,l;const e=(t=o.unref(a))==null?void 0:t.key;if(e)return toString.call(e)==="[object Array]"?(e==null?void 0:e.length)===((l=n.options)==null?void 0:l.length)?c:e==null?void 0:e[0]:e}),d=e=>{var t;e!==((t=o.unref(a))==null?void 0:t.value)&&s({...a.value,value:e})},{b:_,e:B,em:A}=k.useNamespace("ap-group-search");return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(_)())},[o.createVNode(o.unref(h.Flex),null,{default:o.withCtx(()=>{var l,r;return[o.createVNode(o.unref(h.Select),{value:b.value,style:o.normalizeStyle(v.value),class:o.normalizeClass(`${e.$attrs.class} ${o.unref(y)==="admin"?o.unref(A)("search","admin"):o.unref(B)("search")}`),options:S.value,bordered:!1,dropdownMatchSelectWidth:n.dropdownMatchSelectWidth,onChange:C},{suffixIcon:o.withCtx(()=>[o.createVNode(V.default)]),_:1},8,["value","style","class","options","dropdownMatchSelectWidth"]),o.renderSlot(e.$slots,"search",{value:(l=o.unref(a))==null?void 0:l.value,change:d,key:(r=o.unref(a))==null?void 0:r.key},()=>{var u;return[o.createVNode(q.default,{style:{width:"100%"},maxTagCount:"responsive",value:(u=o.unref(a))==null?void 0:u.value,onChange:d,placeholder:w.value},null,8,["value","placeholder"])]})]}),_:3})],2))}});exports.default=I;
@@ -0,0 +1,355 @@
1
+ import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
2
+ import { DefineComponent, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps } from 'vue';
3
+ import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
4
+ import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
+ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
+ import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
7
+ import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
8
+ import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
9
+ declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
10
+ value: {
11
+ type: PropType<SelectValue>;
12
+ default: SelectValue;
13
+ };
14
+ defaultValue: {
15
+ type: PropType<SelectValue>;
16
+ default: SelectValue;
17
+ };
18
+ notFoundContent: VueTypeValidableDef<any>;
19
+ suffixIcon: VueTypeValidableDef<any>;
20
+ itemIcon: VueTypeValidableDef<any>;
21
+ size: {
22
+ type: PropType<ButtonSize>;
23
+ default: ButtonSize;
24
+ };
25
+ mode: {
26
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
27
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
28
+ };
29
+ bordered: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ transitionName: StringConstructor;
34
+ choiceTransitionName: {
35
+ type: PropType<"">;
36
+ default: "";
37
+ };
38
+ popupClassName: StringConstructor;
39
+ dropdownClassName: StringConstructor;
40
+ placement: {
41
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
42
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
43
+ };
44
+ status: {
45
+ type: PropType<"" | "error" | "warning">;
46
+ default: "" | "error" | "warning";
47
+ };
48
+ 'onUpdate:value': {
49
+ type: PropType<(val: SelectValue) => void>;
50
+ default: (val: SelectValue) => void;
51
+ };
52
+ children: PropType< VueNode[]>;
53
+ listHeight: NumberConstructor;
54
+ onMouseenter: PropType<(e: MouseEvent) => void>;
55
+ onMouseleave: PropType<(e: MouseEvent) => void>;
56
+ tabindex: NumberConstructor;
57
+ onClick: PropType<(e: MouseEvent) => void>;
58
+ onFocus: {
59
+ type: PropType<(e: FocusEvent) => void>;
60
+ };
61
+ onBlur: {
62
+ type: PropType<(e: FocusEvent) => void>;
63
+ };
64
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
65
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
66
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
67
+ onMousedown: PropType<(e: MouseEvent) => void>;
68
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
69
+ open: {
70
+ type: BooleanConstructor;
71
+ default: any;
72
+ };
73
+ animation: StringConstructor;
74
+ direction: {
75
+ type: PropType<"rtl" | "ltr">;
76
+ };
77
+ disabled: {
78
+ type: BooleanConstructor;
79
+ default: any;
80
+ };
81
+ prefixCls: StringConstructor;
82
+ id: StringConstructor;
83
+ autofocus: BooleanConstructor;
84
+ getPopupContainer: {
85
+ type: PropType<RenderDOMFunc>;
86
+ };
87
+ virtual: {
88
+ type: BooleanConstructor;
89
+ default: any;
90
+ };
91
+ dropdownMatchSelectWidth: {
92
+ type: PropType<number | boolean>;
93
+ default: any;
94
+ };
95
+ options: PropType< DefaultOptionType[]>;
96
+ showAction: {
97
+ type: PropType<("click" | "focus")[]>;
98
+ };
99
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
100
+ loading: {
101
+ type: BooleanConstructor;
102
+ default: any;
103
+ };
104
+ placeholder: VueTypeValidableDef<any>;
105
+ clearIcon: VueTypeValidableDef<any>;
106
+ allowClear: {
107
+ type: BooleanConstructor;
108
+ default: any;
109
+ };
110
+ onSearch: PropType<(value: string) => void>;
111
+ fieldNames: PropType<FieldNames>;
112
+ dropdownStyle: {
113
+ type: PropType<CSSProperties>;
114
+ };
115
+ dropdownRender: {
116
+ type: PropType<DropdownRender>;
117
+ };
118
+ dropdownAlign: PropType<AlignType>;
119
+ showSearch: {
120
+ type: BooleanConstructor;
121
+ default: any;
122
+ };
123
+ searchValue: StringConstructor;
124
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
125
+ removeIcon: VueTypeValidableDef<any>;
126
+ maxTagCount: {
127
+ type: PropType<number | "responsive">;
128
+ };
129
+ maxTagTextLength: NumberConstructor;
130
+ maxTagPlaceholder: VueTypeValidableDef<any>;
131
+ tokenSeparators: {
132
+ type: PropType<string[]>;
133
+ };
134
+ tagRender: {
135
+ type: PropType<(props: CustomTagProps) => any>;
136
+ };
137
+ optionLabelRender: {
138
+ type: PropType<(option: Record<string, any>) => any>;
139
+ };
140
+ onClear: PropType<() => void>;
141
+ defaultOpen: {
142
+ type: BooleanConstructor;
143
+ default: any;
144
+ };
145
+ onDropdownVisibleChange: {
146
+ type: PropType<(open: boolean) => void>;
147
+ };
148
+ showArrow: {
149
+ type: BooleanConstructor;
150
+ default: any;
151
+ };
152
+ onPopupScroll: PropType<(e: UIEvent) => void>;
153
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
154
+ listItemHeight: NumberConstructor;
155
+ inputValue: StringConstructor;
156
+ autoClearSearchValue: {
157
+ type: BooleanConstructor;
158
+ default: any;
159
+ };
160
+ filterOption: {
161
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
162
+ default: any;
163
+ };
164
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
165
+ optionFilterProp: StringConstructor;
166
+ optionLabelProp: StringConstructor;
167
+ defaultActiveFirstOption: {
168
+ type: BooleanConstructor;
169
+ default: any;
170
+ };
171
+ labelInValue: {
172
+ type: BooleanConstructor;
173
+ default: any;
174
+ };
175
+ }>>, "mode" | "suffixIcon">>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
176
+ change: (value: SelectValue) => void;
177
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
178
+ value: {
179
+ type: PropType<SelectValue>;
180
+ default: SelectValue;
181
+ };
182
+ defaultValue: {
183
+ type: PropType<SelectValue>;
184
+ default: SelectValue;
185
+ };
186
+ notFoundContent: VueTypeValidableDef<any>;
187
+ suffixIcon: VueTypeValidableDef<any>;
188
+ itemIcon: VueTypeValidableDef<any>;
189
+ size: {
190
+ type: PropType<ButtonSize>;
191
+ default: ButtonSize;
192
+ };
193
+ mode: {
194
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
195
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
196
+ };
197
+ bordered: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ transitionName: StringConstructor;
202
+ choiceTransitionName: {
203
+ type: PropType<"">;
204
+ default: "";
205
+ };
206
+ popupClassName: StringConstructor;
207
+ dropdownClassName: StringConstructor;
208
+ placement: {
209
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
210
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
211
+ };
212
+ status: {
213
+ type: PropType<"" | "error" | "warning">;
214
+ default: "" | "error" | "warning";
215
+ };
216
+ 'onUpdate:value': {
217
+ type: PropType<(val: SelectValue) => void>;
218
+ default: (val: SelectValue) => void;
219
+ };
220
+ children: PropType< VueNode[]>;
221
+ listHeight: NumberConstructor;
222
+ onMouseenter: PropType<(e: MouseEvent) => void>;
223
+ onMouseleave: PropType<(e: MouseEvent) => void>;
224
+ tabindex: NumberConstructor;
225
+ onClick: PropType<(e: MouseEvent) => void>;
226
+ onFocus: {
227
+ type: PropType<(e: FocusEvent) => void>;
228
+ };
229
+ onBlur: {
230
+ type: PropType<(e: FocusEvent) => void>;
231
+ };
232
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
233
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
234
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
235
+ onMousedown: PropType<(e: MouseEvent) => void>;
236
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
237
+ open: {
238
+ type: BooleanConstructor;
239
+ default: any;
240
+ };
241
+ animation: StringConstructor;
242
+ direction: {
243
+ type: PropType<"rtl" | "ltr">;
244
+ };
245
+ disabled: {
246
+ type: BooleanConstructor;
247
+ default: any;
248
+ };
249
+ prefixCls: StringConstructor;
250
+ id: StringConstructor;
251
+ autofocus: BooleanConstructor;
252
+ getPopupContainer: {
253
+ type: PropType<RenderDOMFunc>;
254
+ };
255
+ virtual: {
256
+ type: BooleanConstructor;
257
+ default: any;
258
+ };
259
+ dropdownMatchSelectWidth: {
260
+ type: PropType<number | boolean>;
261
+ default: any;
262
+ };
263
+ options: PropType< DefaultOptionType[]>;
264
+ showAction: {
265
+ type: PropType<("click" | "focus")[]>;
266
+ };
267
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
268
+ loading: {
269
+ type: BooleanConstructor;
270
+ default: any;
271
+ };
272
+ placeholder: VueTypeValidableDef<any>;
273
+ clearIcon: VueTypeValidableDef<any>;
274
+ allowClear: {
275
+ type: BooleanConstructor;
276
+ default: any;
277
+ };
278
+ onSearch: PropType<(value: string) => void>;
279
+ fieldNames: PropType<FieldNames>;
280
+ dropdownStyle: {
281
+ type: PropType<CSSProperties>;
282
+ };
283
+ dropdownRender: {
284
+ type: PropType<DropdownRender>;
285
+ };
286
+ dropdownAlign: PropType<AlignType>;
287
+ showSearch: {
288
+ type: BooleanConstructor;
289
+ default: any;
290
+ };
291
+ searchValue: StringConstructor;
292
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
293
+ removeIcon: VueTypeValidableDef<any>;
294
+ maxTagCount: {
295
+ type: PropType<number | "responsive">;
296
+ };
297
+ maxTagTextLength: NumberConstructor;
298
+ maxTagPlaceholder: VueTypeValidableDef<any>;
299
+ tokenSeparators: {
300
+ type: PropType<string[]>;
301
+ };
302
+ tagRender: {
303
+ type: PropType<(props: CustomTagProps) => any>;
304
+ };
305
+ optionLabelRender: {
306
+ type: PropType<(option: Record<string, any>) => any>;
307
+ };
308
+ onClear: PropType<() => void>;
309
+ defaultOpen: {
310
+ type: BooleanConstructor;
311
+ default: any;
312
+ };
313
+ onDropdownVisibleChange: {
314
+ type: PropType<(open: boolean) => void>;
315
+ };
316
+ showArrow: {
317
+ type: BooleanConstructor;
318
+ default: any;
319
+ };
320
+ onPopupScroll: PropType<(e: UIEvent) => void>;
321
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
322
+ listItemHeight: NumberConstructor;
323
+ inputValue: StringConstructor;
324
+ autoClearSearchValue: {
325
+ type: BooleanConstructor;
326
+ default: any;
327
+ };
328
+ filterOption: {
329
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
330
+ default: any;
331
+ };
332
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
333
+ optionFilterProp: StringConstructor;
334
+ optionLabelProp: StringConstructor;
335
+ defaultActiveFirstOption: {
336
+ type: BooleanConstructor;
337
+ default: any;
338
+ };
339
+ labelInValue: {
340
+ type: BooleanConstructor;
341
+ default: any;
342
+ };
343
+ }>>, "mode" | "suffixIcon">>>> & {
344
+ onChange?: ((value: SelectValue) => any) | undefined;
345
+ }, {}, {}>;
346
+ export default _default;
347
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
348
+ type __VLS_TypePropsToOption<T> = {
349
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
350
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
351
+ } : {
352
+ type: PropType<T[K]>;
353
+ required: true;
354
+ };
355
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@aplus-frontend/antdv");require("../popover-select/index.vue.js");require("../../../config-provider/index.js");const m=require("../../../config-provider/hooks/use-global-config.js"),g=require("../popover-select/index.vue2.js"),v=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean}},emits:["change"],setup(u,{emit:i}){const p=m.useGlobalConfig("uiMode","aplus"),n=u,a=e.ref(),t=e.ref(!1),s=i,d=o=>{o&&(t.value=!1)};e.watch(()=>n.value,()=>{a.value=n.value},{immediate:!0});const l=o=>{a.value=o,s("change",o)};return(o,r)=>(e.openBlock(),e.createBlock(e.unref(h.Select),{value:a.value,style:e.normalizeStyle(o.$attrs.style),bordered:e.unref(p)==="admin",mode:"tags",showArrow:!0,open:t.value,onDropdownVisibleChange:r[0]||(r[0]=c=>t.value=c),onChange:l,maxTagCount:n.maxTagCount,placeholder:n.placeholder},{suffixIcon:e.withCtx(()=>[e.createVNode(g.default,{value:a.value,onSubmit:l,onOpenChange:d},null,8,["value"])]),_:1},8,["value","style","bordered","open","maxTagCount","placeholder"]))}});exports.default=v;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../../_virtual/_plugin-vue_export-helper.js"),n={},o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},l=e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M5.248374744964599,6C4.7452713449646,6,4.465567744964599,6.581959,4.7798537449645995,6.974817L7.5314787449646,10.414349999999999C7.7716787449646,10.714590000000001,8.2283287449646,10.714590000000001,8.4685187449646,10.414349999999999L11.2201487449646,6.974817C11.5344287449646,6.581959,11.254728744964599,6,10.751628744964599,6L5.248374744964599,6Z",fill:"currentcolor","fill-opacity":"1"})])],-1),r=[l];function c(s,u){return e.openBlock(),e.createElementBlock("svg",o,r)}const i=t.default(n,[["render",c]]);exports.default=i;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("vue"),e=require("../../../../_virtual/_plugin-vue_export-helper.js"),l={},t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},n=Q.createElementVNode("g",null,[Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,4.5L13,4.5Q13.0492,4.5,13.0975,4.509607Q13.1458,4.519215,13.1913,4.53806Q13.2368,4.556906,13.2778,4.584265Q13.3187,4.611625,13.3536,4.646447Q13.3884,4.681269,13.4157,4.722215Q13.4431,4.763161,13.4619,4.808658Q13.4808,4.854155,13.4904,4.9024549Q13.5,4.9507543,13.5,5Q13.5,5.0492457,13.4904,5.0975451Q13.4808,5.145845,13.4619,5.191342Q13.4431,5.236839,13.4157,5.277785Q13.3884,5.318731,13.3536,5.353553Q13.3187,5.388375,13.2778,5.415735Q13.2368,5.443094,13.1913,5.46194Q13.1458,5.480785,13.0975,5.490393Q13.0492,5.5,13,5.5L3,5.5Q2.9507543,5.5,2.9024549,5.490393Q2.854155,5.480785,2.808658,5.46194Q2.763161,5.443094,2.722215,5.415735Q2.681269,5.388375,2.646447,5.353553Q2.611625,5.318731,2.584265,5.277785Q2.556906,5.236839,2.5380599999999998,5.191342Q2.519215,5.145845,2.509607,5.0975451Q2.5,5.0492457,2.5,5Q2.5,4.9507543,2.509607,4.9024549Q2.519215,4.854155,2.5380599999999998,4.808658Q2.556906,4.763161,2.584265,4.722215Q2.611625,4.681269,2.646447,4.646447Q2.681269,4.611625,2.722215,4.584265Q2.763161,4.556906,2.808658,4.53806Q2.854155,4.519215,2.9024549,4.509607Q2.9507543,4.5,3,4.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,7.5L13,7.5Q13.0492,7.5,13.0975,7.509607Q13.1458,7.519215,13.1913,7.53806Q13.2368,7.556906,13.2778,7.584265Q13.3187,7.611625,13.3536,7.646447Q13.3884,7.681269,13.4157,7.722215Q13.4431,7.763161,13.4619,7.808658Q13.4808,7.854155,13.4904,7.9024549Q13.5,7.9507543,13.5,8Q13.5,8.0492457,13.4904,8.0975451Q13.4808,8.145845,13.4619,8.191342Q13.4431,8.236839,13.4157,8.277785Q13.3884,8.318731,13.3536,8.353553Q13.3187,8.388375,13.2778,8.415735Q13.2368,8.443094,13.1913,8.46194Q13.1458,8.480785000000001,13.0975,8.490393Q13.0492,8.5,13,8.5L3,8.5Q2.9507543,8.5,2.9024549,8.490393Q2.854155,8.480785000000001,2.808658,8.46194Q2.763161,8.443094,2.722215,8.415735Q2.681269,8.388375,2.646447,8.353553Q2.611625,8.318731,2.584265,8.277785Q2.556906,8.236839,2.5380599999999998,8.191342Q2.519215,8.145845,2.509607,8.0975451Q2.5,8.0492457,2.5,8Q2.5,7.9507543,2.509607,7.9024549Q2.519215,7.854155,2.5380599999999998,7.808658Q2.556906,7.763161,2.584265,7.722215Q2.611625,7.681269,2.646447,7.646447Q2.681269,7.611625,2.722215,7.584265Q2.763161,7.556906,2.808658,7.53806Q2.854155,7.519215,2.9024549,7.509607Q2.9507543,7.5,3,7.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,10.5L8,10.5Q8.04925,10.5,8.09755,10.509607Q8.14584,10.519214999999999,8.19134,10.53806Q8.23684,10.556906,8.27778,10.584265Q8.31873,10.611625,8.35355,10.646447Q8.38837,10.681269,8.41573,10.722215Q8.44309,10.763161,8.46194,10.808658Q8.48078,10.854155,8.49039,10.9024549Q8.5,10.9507543,8.5,11Q8.5,11.0492457,8.49039,11.0975451Q8.48078,11.145845,8.46194,11.191342Q8.44309,11.236839,8.41573,11.277785Q8.38837,11.318731,8.35355,11.353553Q8.31873,11.388375,8.27778,11.415735Q8.23684,11.443094,8.19134,11.46194Q8.14584,11.480785000000001,8.09755,11.490393Q8.04925,11.5,8,11.5L3,11.5Q2.9507543,11.5,2.9024549,11.490393Q2.854155,11.480785000000001,2.808658,11.46194Q2.763161,11.443094,2.722215,11.415735Q2.681269,11.388375,2.646447,11.353553Q2.611625,11.318731,2.584265,11.277785Q2.556906,11.236839,2.5380599999999998,11.191342Q2.519215,11.145845,2.509607,11.0975451Q2.5,11.0492457,2.5,11Q2.5,10.9507543,2.509607,10.9024549Q2.519215,10.854155,2.5380599999999998,10.808658Q2.556906,10.763161,2.584265,10.722215Q2.611625,10.681269,2.646447,10.646447Q2.681269,10.611625,2.722215,10.584265Q2.763161,10.556906,2.808658,10.53806Q2.854155,10.519214999999999,2.9024549,10.509607Q2.9507543,10.5,3,10.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})])],-1),o=[n];function i(c,d){return Q.openBlock(),Q.createElementBlock("svg",t,o)}const r=e.default(l,[["render",i]]);exports.default=r;