@txgw/payout-components 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AMIS-D9TLFIT7.js → AMIS-BpATHKnv.js} +1 -1
- package/dist/Action-B0KUcn27.js +1 -0
- package/dist/{Action-D_mwIN-5.js → Action-CzJ_r33l.js} +1 -1
- package/dist/{Alert-UVAjNb7s.js → Alert-DwWdKr12.js} +1 -1
- package/dist/{AnchorNav-BjgLgX6m.js → AnchorNav-DRGjEF5J.js} +1 -1
- package/dist/{App-ncbuqXE2.js → App-DxKgyXV1.js} +1 -1
- package/dist/{Audio-B3lYr3U2.js → Audio-BoaWMJHA.js} +1 -1
- package/dist/{Avatar-XqOgD9ui.js → Avatar-B2lZKPPh.js} +1 -1
- package/dist/{BarCode-Cg3O5s_0.js → BarCode-BnchzdIg.js} +1 -1
- package/dist/{BarCode-B_ISp_TQ.js → BarCode-dEGhm4u6.js} +1 -1
- package/dist/{Breadcrumb-CTA88DWN.js → Breadcrumb-BHzIF2Vg.js} +1 -1
- package/dist/ButtonGroup-BMvNPoKc.js +1 -0
- package/dist/ButtonGroupSelect-BmQIuhWU.js +1 -0
- package/dist/{ButtonGroupSelect-C_qcxdHQ.js → ButtonGroupSelect-CfNu0OBj.js} +1 -1
- package/dist/{ButtonToolbar-CUNT7FK4.js → ButtonToolbar-CYZ0LWsz.js} +1 -1
- package/dist/{CRUD-DRudIc-q.js → CRUD-BDeg8xZI.js} +1 -1
- package/dist/{CRUD2-CYGF0EMp.js → CRUD2-DrE-2JU3.js} +1 -1
- package/dist/{Calendar-BW4diX9T.js → Calendar-DkEUJJQW.js} +1 -1
- package/dist/Card-BVUWwkgm.js +1 -0
- package/dist/{Card-C4m8b89W.js → Card-IZbcizfw.js} +1 -1
- package/dist/{Card2-BXG0mDni.js → Card2-Dyl0FIVL.js} +1 -1
- package/dist/{Cards-ak9W7Ggn.js → Cards-DlMpwNSr.js} +1 -1
- package/dist/{Carousel-CxCXr052.js → Carousel-CXMYZL8H.js} +1 -1
- package/dist/{ChainedSelect-BcWT4XqI.js → ChainedSelect-BQK0j-pA.js} +1 -1
- package/dist/{Chart-BxLGXl9u.js → Chart-uJ8v1OSG.js} +1 -1
- package/dist/{ChartRadios-DstdFZq_.js → ChartRadios-C9Ov2SCd.js} +1 -1
- package/dist/Checkbox-DAq7LXTe.js +1 -0
- package/dist/{Checkbox-C4MOpWIk.js → Checkbox-DbHhD7iK.js} +1 -1
- package/dist/{Checkboxes-DaAz8fEe.js → Checkboxes-wud_gmq3.js} +1 -1
- package/dist/{Code-C7wxKt-Z.js → Code-VjDT2QOS.js} +1 -1
- package/dist/Collapse-CRIu-D5O.js +1 -0
- package/dist/{Collapse-B7DWMzHM.js → Collapse-CknZKNKz.js} +1 -1
- package/dist/{CollapseGroup-C5HPq_8j.js → CollapseGroup-DkMS5MXZ.js} +1 -1
- package/dist/{Color-BpoN5ndM.js → Color-CZV84qNC.js} +1 -1
- package/dist/{ColorPicker-B-eyCI0N.js → ColorPicker-R5D1ZNwb.js} +1 -1
- package/dist/{ColumnToggler-BCOanQf7.js → ColumnToggler-BxHry8EL.js} +1 -1
- package/dist/{ColumnToggler-BNmJdTb9.js → ColumnToggler-D98cb4XS.js} +1 -1
- package/dist/{Combo-DVBtMl-s.js → Combo-BUD7tb8b.js} +1 -1
- package/dist/{ConditionBuilder-bQtsEBIu.js → ConditionBuilder-DFF8QBcW.js} +1 -1
- package/dist/{Container-BCEndXiL.js → Container-f-JHe2WE.js} +1 -1
- package/dist/{Control-DBSbZmLZ.js → Control-dOQnC26j.js} +1 -1
- package/dist/{Custom-CVj3O57n.js → Custom-CqKL8xv_.js} +1 -1
- package/dist/{Date-CuBE2XD8.js → Date-BcRD4sv_.js} +1 -1
- package/dist/{DateRange-Bd9o9Fl_.js → DateRange-BkGu5vJl.js} +1 -1
- package/dist/{Dialog-DzlFCRtq.js → Dialog-CQSNeqgY.js} +1 -1
- package/dist/{DiffEditor-Cccg35Ly.js → DiffEditor-DU9deT5c.js} +1 -1
- package/dist/{Divider-gy0IUviz.js → Divider-CYwXWwc5.js} +1 -1
- package/dist/{Drawer-C37JbURK.js → Drawer-DmUqxMKd.js} +1 -1
- package/dist/{DropDownButton-DO4hK0Kp.js → DropDownButton-C0e2mksC.js} +1 -1
- package/dist/{Each-BfbwJEMb.js → Each-Bnhdfx44.js} +1 -1
- package/dist/FieldSet-BRfWbiPG.js +1 -0
- package/dist/{FieldSet-D3WMli0B.js → FieldSet-f-m_bp4h.js} +1 -1
- package/dist/{Flex-CXooKsRI.js → Flex-C0c49ZMP.js} +1 -1
- package/dist/{Formula-KUisLb0j.js → Formula-C82aVdAD.js} +1 -1
- package/dist/{Grid2D-6cCqZG6j.js → Grid2D-BJPrAz8w.js} +1 -1
- package/dist/{GridNav-Bvueqq-Q.js → GridNav-DCCBgvz1.js} +1 -1
- package/dist/{Group-EswEogaf.js → Group-D_2Fn4zB.js} +1 -1
- package/dist/{HBox-DyS1JJHh.js → HBox-CG3Ad5us.js} +1 -1
- package/dist/HBox-CRrACS8I.js +1 -0
- package/dist/{Hidden-DwrGEKjM.js → Hidden-SaNCTMlZ.js} +1 -1
- package/dist/{IFrame-BT4_03AI.js → IFrame-2LIicqpq.js} +1 -1
- package/dist/{Icon-BNP1oNtQ.js → Icon-3_vNko-P.js} +1 -1
- package/dist/{IconPicker-CIL2Wob5.js → IconPicker-DAMClR_z.js} +1 -1
- package/dist/{IconSelect-D1CPpZAU.js → IconSelect-CHM0oHqd.js} +1 -1
- package/dist/{IconSelectStore-BM_zyU2d.js → IconSelectStore-MNwivoh-.js} +1 -1
- package/dist/Image-Br7JbiAF.js +1 -0
- package/dist/{Image--xtRdgd5.js → Image-hHgZkb5C.js} +1 -1
- package/dist/{Images-zPCUHCyK.js → Images-ZGJfaN-q.js} +1 -1
- package/dist/{InputArray-BnERrQT7.js → InputArray-D3y772RO.js} +1 -1
- package/dist/{InputCity-Bidd_z8i.js → InputCity-CF6mEwuH.js} +1 -1
- package/dist/{InputColor-D0Kf9p1Q.js → InputColor-CYmzXu5I.js} +1 -1
- package/dist/{InputDate-CzCxGUx_.js → InputDate-BldJd84x.js} +1 -1
- package/dist/{InputDateRange-Bp3owFpS.js → InputDateRange-KzSlI2fv.js} +1 -1
- package/dist/{InputExcel-DUdIptAN.js → InputExcel-CJZWvZFT.js} +1 -1
- package/dist/{InputFile-DquJWe_S.js → InputFile-C0FUNeFM.js} +1 -1
- package/dist/InputFile-DFjvYmV3.js +1 -0
- package/dist/{InputFormula-Cu3Oc5xq.js → InputFormula-BKxq41uR.js} +1 -1
- package/dist/{InputGroup-RqgoJFcl.js → InputGroup-wvaymJ-V.js} +1 -1
- package/dist/InputImage-CLuXGhoy.js +1 -0
- package/dist/{InputImage-CdVzSsuR.js → InputImage-DasZBpb-.js} +1 -1
- package/dist/{InputMonthRange-BTR1bISz.js → InputMonthRange-DVRnBZ4I.js} +1 -1
- package/dist/{InputNumber-C0rip8fu.js → InputNumber-BjzsM73z.js} +1 -1
- package/dist/{InputQuarterRange-D1X-Z2tN.js → InputQuarterRange-DQuiFCOb.js} +1 -1
- package/dist/{InputRange-Dq-ePI8S.js → InputRange-C97bKrW6.js} +1 -1
- package/dist/{InputRating-_KtpPZno.js → InputRating-CpFNTZKA.js} +1 -1
- package/dist/{InputRepeat-D3Drjx3I.js → InputRepeat-CN2KxX7g.js} +1 -1
- package/dist/InputRichText-BXjRSQFh.js +1 -0
- package/dist/{InputRichText-CyfWV74o.js → InputRichText-DdyJFH82.js} +1 -1
- package/dist/{InputSignature-CXV7thvH.js → InputSignature-CsxuK757.js} +1 -1
- package/dist/{InputSubForm-CQuaHTe3.js → InputSubForm-Ddweo6dR.js} +1 -1
- package/dist/{InputTable-CJ4Dl3xA.js → InputTable-Bt8U_tyA.js} +1 -1
- package/dist/{InputTag-BAjQnJh1.js → InputTag-kg2v747D.js} +1 -1
- package/dist/{InputText-Ci8XzpKK.js → InputText-bKR0VgA6.js} +1 -1
- package/dist/{InputTree-Coq2YfRD.js → InputTree-DbdS4b2m.js} +1 -1
- package/dist/{InputVerificationCode-CZbzrwa_.js → InputVerificationCode-DcFJRWeR.js} +1 -1
- package/dist/{InputYearRange-CbdR1nuY.js → InputYearRange-ChXlMgCi.js} +1 -1
- package/dist/{JSONSchema-Z9eJulgD.js → JSONSchema-C_VjFVVN.js} +1 -1
- package/dist/{JSONSchemaEditor-qtbO2bWX.js → JSONSchemaEditor-CEgywCvJ.js} +1 -1
- package/dist/{Json-I_TX2D01.js → Json-DqjhkjHF.js} +1 -1
- package/dist/{Link-DoCudSpW.js → Link-9hUnE5FW.js} +1 -1
- package/dist/{List-BItkFb-A.js → List-BBntusL0.js} +1 -1
- package/dist/List-C8nPjG1-.js +1 -0
- package/dist/{ListSelect-f6rDx6N2.js → ListSelect-lX84FGAP.js} +1 -1
- package/dist/{LocationPicker-CZd07tME.js → LocationPicker-DnA8QpYh.js} +1 -1
- package/dist/{Log--rbcIY4g.js → Log-CRxPlj86.js} +1 -1
- package/dist/{Mapping-rpBDdw-o.js → Mapping-X2IRbppi.js} +1 -1
- package/dist/{Markdown-M8qWm8IY.js → Markdown-ByuMaB2P.js} +1 -1
- package/dist/{MatrixCheckboxes-DCnC8NGQ.js → MatrixCheckboxes-BvBU1E-4.js} +1 -1
- package/dist/{MultilineText-CHrvTjY_.js → MultilineText-BmbIytvk.js} +1 -1
- package/dist/{Nav-CDJbX6q3.js → Nav-BxS7kBh9.js} +1 -1
- package/dist/{NestedSelect-Uxvg89Pe.js → NestedSelect-CbWnin5b.js} +1 -1
- package/dist/{Number-tVXWVP4G.js → Number-CGYpvopX.js} +1 -1
- package/dist/{OfficeViewer-Cz447nMa.js → OfficeViewer-DBFFaH5P.js} +1 -1
- package/dist/{Operation-JkWrokFn.js → Operation-j5yIUDkZ.js} +1 -1
- package/dist/{Page-C5qOXz9A.js → Page-CJ2gK3vA.js} +1 -1
- package/dist/{Pagination-DQoNu1Qo.js → Pagination-BDEmomCQ.js} +1 -1
- package/dist/{PaginationWrapper-07h0-dmz.js → PaginationWrapper-Bnsk8oIg.js} +1 -1
- package/dist/{Panel--P2Ov47t.js → Panel-DKpM1Qfc.js} +1 -1
- package/dist/{Password-CF1feQa2.js → Password-CzHAzi8M.js} +1 -1
- package/dist/{Picker-CKV0_5vN.js → Picker-D5WVPGTg.js} +1 -1
- package/dist/{Plain-CnRq3KDS.js → Plain-oyGNzh1N.js} +1 -1
- package/dist/{PopUp-xCiesfUA.js → PopUp-DaheG-Vv.js} +1 -1
- package/dist/{Portlet-Agkkko8B.js → Portlet-dA2P7U6i.js} +1 -1
- package/dist/{Progress-D-JOmIgT.js → Progress-D2LXKzUA.js} +1 -1
- package/dist/{Property-BoNnFGV9.js → Property-CekATdUy.js} +1 -1
- package/dist/{QRCode-BFfhBYxV.js → QRCode-DPoyEXK3.js} +1 -1
- package/dist/{Radio-BRNZ49gi.js → Radio-HhPQKIKk.js} +1 -1
- package/dist/{Radios-0CT3XjKZ.js → Radios-DVzovX2u.js} +1 -1
- package/dist/Remark-CHTOdmdn.js +1 -0
- package/dist/{Remark-XZDS4Z3Y.js → Remark-bXVj7ffU.js} +1 -1
- package/dist/{SearchBox-__1UKInO.js → SearchBox-Jlwq8w3o.js} +1 -1
- package/dist/{Select-D9nj7O4q.js → Select-DCB0i1Ga.js} +1 -1
- package/dist/{Service-fGzhGL0m.js → Service-Bmfl8VSD.js} +1 -1
- package/dist/{Shape-C9r17D5A.js → Shape-5ZBBe1x0.js} +1 -1
- package/dist/{Slider-BryEccA-.js → Slider-pb5I0Xb2.js} +1 -1
- package/dist/{SparkLine-CcOuk0we.js → SparkLine-C4x34-6K.js} +1 -1
- package/dist/{Spinner-qyJRJu1C.js → Spinner-SR1wYU_1.js} +1 -1
- package/dist/{StaticHoc-C0bGgnQS.js → StaticHoc-DVc-5HZA.js} +1 -1
- package/dist/{Status-BPtAA54m.js → Status-7D4DBjk6.js} +1 -1
- package/dist/{Steps-DsmYH15c.js → Steps-Dd_3MM0y.js} +1 -1
- package/dist/{Switch-CMkhfkPn.js → Switch-CZqzJH45.js} +1 -1
- package/dist/{SwitchContainer-BLxuSTyZ.js → SwitchContainer-L7IwrheV.js} +1 -1
- package/dist/Table-CYUuVDxA.js +1 -0
- package/dist/{Table-HvHD2tS0.js → Table-D-9NfAqg.js} +1 -1
- package/dist/{Table2-C4HNs_R1.js → Table2-CIZ93hrj.js} +1 -1
- package/dist/{TableView-zfvmfF6E.js → TableView-CigjcDJc.js} +1 -1
- package/dist/{Tabs-BeQyEedg.js → Tabs-Cljj-nTv.js} +1 -1
- package/dist/{TabsTransfer-BsYcLplM.js → TabsTransfer-BXwrW4NX.js} +1 -1
- package/dist/{TabsTransferPicker-SS6hg5Hc.js → TabsTransferPicker-DB005nER.js} +1 -1
- package/dist/{Tag-IL_v32Aa.js → Tag-CcfwT8FM.js} +1 -1
- package/dist/{Tasks-D6GQavXw.js → Tasks-DeVW2Tdg.js} +1 -1
- package/dist/{Textarea-Ck0rJ3Ff.js → Textarea-zsHcK0rZ.js} +1 -1
- package/dist/{Timeline-BT7aVGPP.js → Timeline-D_3FRzUa.js} +1 -1
- package/dist/{TooltipWrapper-Bx_3339q.js → TooltipWrapper-BElQhX67.js} +1 -1
- package/dist/{Tpl-BiWl-0O_.js → Tpl-OPfW08Kh.js} +1 -1
- package/dist/{Transfer-CldOhDuU.js → Transfer-Cx1Ijzfh.js} +1 -1
- package/dist/Transfer-DboPBh8V.js +1 -0
- package/dist/{TransferPicker-C2cth5_r.js → TransferPicker-xlJfwHxP.js} +1 -1
- package/dist/{TreeSelect-D9-PBXkV.js → TreeSelect-BTKg9Ldf.js} +1 -1
- package/dist/{UUID-R41mBvtB.js → UUID-BkwpeiT9.js} +1 -1
- package/dist/{UserSelect-Cq56ZLkZ.js → UserSelect-CsY5PQp9.js} +1 -1
- package/dist/{VBox-BEdXFwFf.js → VBox-Ca4DBR6-.js} +1 -1
- package/dist/{Video-BIQhs4lA.js → Video-CXzxq3vU.js} +1 -1
- package/dist/{WebComponent-Vzfd9UEy.js → WebComponent-DYxJeu6a.js} +1 -1
- package/dist/{Wizard-BwEpr22M.js → Wizard-fqzq2OCn.js} +1 -1
- package/dist/{Words-C7JrGNdU.js → Words-V70QrARW.js} +1 -1
- package/dist/{Wrapper-DIGr8a29.js → Wrapper-BtFbBBXy.js} +1 -1
- package/dist/{beneficiary-form-_xPce615.js → beneficiary-form-BmmdIRc0.js} +1 -1
- package/dist/{es-Cn6dJrVn.js → es-DY5--nMG.js} +1 -1
- package/dist/esm-BMvKJM5q.js +4 -0
- package/dist/{esm-vG8eylH_.js → esm-BbZME5Ac.js} +1 -1
- package/dist/index.d.ts +120 -0
- package/dist/index.js +1 -1
- package/dist/{objectSpread2-yExSo67O.js → objectSpread2-BCtAXXta.js} +1 -1
- package/dist/{omitBy-CFU0pICA.js → omitBy-NMzUUhXs.js} +1 -1
- package/dist/{xor-ziNg7OgH.js → xor-CSkTraTY.js} +1 -1
- package/package.json +7 -6
- package/dist/Action-B-ZQiXEF.js +0 -1
- package/dist/ButtonGroup-pVY35HQ1.js +0 -1
- package/dist/ButtonGroupSelect-Bt6Jwo5u.js +0 -1
- package/dist/Card-B_1cg_nQ.js +0 -1
- package/dist/Checkbox-nA8maqiS.js +0 -1
- package/dist/Collapse-BW-pXRle.js +0 -1
- package/dist/FieldSet-D8oj-Vb4.js +0 -1
- package/dist/HBox-DGIyZMV6.js +0 -1
- package/dist/Image-BAenzG4k.js +0 -1
- package/dist/InputFile-X4G2zOvt.js +0 -1
- package/dist/InputImage-Cv5FkWaC.js +0 -1
- package/dist/InputRichText-0TZzQzcy.js +0 -1
- package/dist/List-Ccx0hLxM.js +0 -1
- package/dist/Remark-BuTyhR9e.js +0 -1
- package/dist/Table-DsxWjUvF.js +0 -1
- package/dist/Transfer-BwyAe8c8.js +0 -1
- package/dist/esm-CofciBhy.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a,c as i,i as o,n,o as s,r as l,s as r,t as d,u as c}from"./tslib.es6-C2q27PUR.js";import{J as p,P as u,Qr as v,Tn as h,Z as m,ht as f,sn as y,vi as g,vn as C}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a,c as i,i as o,n,o as s,r as l,s as r,t as d,u as c}from"./tslib.es6-C2q27PUR.js";import{J as p,P as u,Qr as v,Tn as h,Z as m,ht as f,sn as y,vi as g,vn as C}from"./esm-BMvKJM5q.js";import{ft as b}from"./esm-BbZME5Ac.js";import{i as S}from"./PopUp-DaheG-Vv.js";import{t as N}from"./StaticHoc-DVc-5HZA.js";var k=/* @__PURE__ */e(t()),j=/* @__PURE__ */e(C()),A=/* @__PURE__ */e(h()),I=/* @__PURE__ */e(v()),x=function(e){function t(t){var a=e.call(this,t)||this;return a.state={stack:[]},a.handleChange=a.handleChange.bind(a),a.loadMore=a.loadMore.bind(a),a}return o(t,e),t.prototype.componentDidMount=function(){var e,t;this.props.formInited||!this.props.addHook?this.loadMore():null===(t=(e=this.props).addHook)||void 0===t||t.call(e,this.loadMore,"init")},t.prototype.componentDidUpdate=function(e){var t=this.props;e.options!==t.options?this.setState({stack:[]}):t.formInited&&t.value!==e.value&&this.loadMore()},t.prototype.doAction=function(e,t,a){var i,o,n=this.props,s=n.resetValue,l=n.onChange,r=n.formStore,d=n.store,c=n.name,p=null==e?void 0:e.actionType;if("clear"===p)l("");else if("reset"===p){var u=null!==(o=g(null!==(i=null==r?void 0:r.pristine)&&void 0!==i?i:null==d?void 0:d.pristine,c))&&void 0!==o?o:s;l(null!=u?u:"")}},t.prototype.array2value=function(e,t){void 0===t&&(t=!1);var a=this.props,i=a.delimiter,o=a.joinValues,n=a.extractValue,s=a.valueField;return t?o?e.join(i||","):e:o?e.join(i||","):n?e.map(function(e){return e[s||"value"]||e}):e},t.prototype.loadMore=function(){for(var e=this,t=this.props,i=t.value,o=t.delimiter,s=t.onChange,l=t.joinValues,r=t.extractValue,c=t.valueField,p=t.source,u=t.data,v=t.env,h=t.dispatchEvent,m=Array.isArray(i)?i.concat():i&&"string"==typeof i?i.split(o||","):[],g=0,C=this.state.stack.length;g<C&&m[g]&&this.state.stack[g].parentId==(l||r?m[g]:m[g][c||"value"]);)g++;if(m[g]&&v&&y(p,u)){var b=l||r?m[g]:m[g][c||"value"],S=this.state.stack.concat();S.splice(g,S.length-g),S.push({parentId:b,loading:!0,options:[]}),this.setState({stack:S},function(){v.fetcher(p,d(d({},u),{value:m,level:g+1,parentId:b,parent:m[g]})).then(function(t){return n(e,void 0,void 0,function(){var e,o,n,l,r,d,p,u;return a(this,function(a){switch(a.label){case 0:return e=this.state.stack.concat(),o=t.data?t.data[c||"value"]:void 0,n=(null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.options)||(null===(p=null==t?void 0:t.data)||void 0===p?void 0:p.items)||(null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.rows)||t.data||[],e.splice(g,e.length-g),void 0===o?[3,2]:(m.splice(g+1,i.length-g-1),m.push(o),l=this.array2value(m,!0),[4,h("change",f(this.props,{value:l}))]);case 1:if(null==(r=a.sent())?void 0:r.prevented)return[2];s(l),a.label=2;case 2:return e.push({options:n,parentId:b,loading:!1,visible:Array.isArray(n)&&!(0,I.default)(n)}),this.setState({stack:e},this.loadMore),[2]}})})}).catch(function(e){!(null==p?void 0:p.silent)&&v.notify("error",e.message)})})}},t.prototype.handleChange=function(e,t){return n(this,void 0,void 0,function(){var i,o,n,s,l,r,d,c,p,u,v;return a(this,function(a){switch(a.label){case 0:return i=this.props,o=i.value,n=i.delimiter,s=i.onChange,l=i.joinValues,i.extractValue,r=i.dispatchEvent,d=i.valueField,i.data,(c=Array.isArray(o)?o.concat():o&&"string"==typeof o?o.split(n||","):[]).splice(e,c.length-e),void 0!==(p=l?t[d||"value"]:t)&&c.push(p),u=this.array2value(c),[4,r("change",f(this.props,{value:u}))];case 1:return(null==(v=a.sent())?void 0:v.prevented)||s(u),[2]}})})},t.prototype.reload=function(e,t){var a=this.props.reloadOptions;a&&a(e,t)},t.prototype.renderStatic=function(e){void 0===e&&(e="-");var t=this.props,a=t.options,i=void 0===a?[]:a,o=t.labelField,n=t.valueField,s=t.classPrefix,l=t.classnames,d=t.className,p=t.value,u=t.delimiter,v=c([{options:i,visible:!0}],r(this.state.stack||[]),!1),h=Array.isArray(p)?p.concat():p&&"string"==typeof p?p.split(u||","):[];return(null==h?void 0:h.length)>0&&(e=h.map(function(e,t){var a,i=v[t]||{},s=i.options;return!1===i.visible?null:s&&s.length&&null!==(a=((0,A.default)(s,function(t){return e===t[n||"value"]})||{})[o||"label"])&&void 0!==a?a:e}).filter(function(e){return null!=e}).join(" > ")),k.createElement("div",{className:l("".concat(s,"SelectStaticControl"),d)},e)},t.prototype.render=function(){var e=this,t=this.props,a=t.options,o=t.classPrefix,n=t.className,s=t.style;t.inline;var l=t.loading,r=t.value,c=t.delimiter;t.joinValues,t.extractValue,t.multiple;var u=t.mobileUI,v=t.env,h=t.testIdBuilder,f=t.popoverClassName,y=t.placeholder,g=i(t,["options","classPrefix","className","style","inline","loading","value","delimiter","joinValues","extractValue","multiple","mobileUI","env","testIdBuilder","popoverClassName","placeholder"]),C=Array.isArray(r)?r.concat():r&&"string"==typeof r?r.split(c||","):[],N=this.props,A=N.themeCss,I=N.id,x=this.state.stack.find(function(e){return e.loading});return k.createElement("div",{className:(0,j.default)("".concat(o,"ChainedSelectControl"),n)},k.createElement(b,d({},g,{placeholder:y,mobileUI:u,popOverContainer:u?null==v?void 0:v.getModalContainer:g.popOverContainer||(null==v?void 0:v.getModalContainer),className:(0,j.default)(m(d(d({},this.props),{name:"chainedSelectControlClassName",id:I,themeCss:A}))),popoverClassName:(0,j.default)(f,m(d(d({},this.props),{name:"chainedSelectPopoverClassName",id:I,themeCss:A}))),controlStyle:s,classPrefix:o,key:"base",testIdBuilder:null==h?void 0:h.getChild("base"),options:Array.isArray(a)?a:[],value:C[0],onChange:this.handleChange.bind(this,0),loading:l,inline:!0})),this.state.stack.map(function(t,a){var i=t.options,n=t.loading;return!1===t.visible||n?null:k.createElement(b,d({},g,{mobileUI:u,popOverContainer:u?v.getModalContainer:g.popOverContainer||(null==v?void 0:v.getModalContainer),classPrefix:o,key:"x-".concat(a+1),testIdBuilder:null==h?void 0:h.getChild("x-".concat(a+1)),options:Array.isArray(i)?i:[],value:C[a+1],onChange:e.handleChange.bind(e,a+1),inline:!0,controlStyle:s,className:(0,j.default)(m(d(d({},e.props),{name:"chainedSelectControlClassName",id:I,themeCss:A}))),popoverClassName:(0,j.default)(f,m(d(d({},e.props),{name:"chainedSelectPopoverClassName",id:I,themeCss:A})))}))}),x&&k.createElement(S,{size:"sm",className:(0,j.default)("".concat(o,"ChainedSelectControl-spinner"))}),k.createElement(p,d({},this.props,{config:{themeCss:A,classNames:[{key:"chainedSelectControlClassName",weights:{focused:{suf:".is-opened:not(.is-mobile)"},disabled:{suf:".is-disabled"}}},{key:"chainedSelectPopoverClassName",weights:{default:{suf:" .".concat(o,"Select-option")},hover:{suf:" .".concat(o,"Select-option.is-highlight")},focused:{inner:".".concat(o,"Select-option.is-active")}}}],id:I},env:v})))},t.defaultProps={clearable:!1,searchable:!1,multiple:!0},l([N(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"render",null),t}(k.Component),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),l([u({type:"chained-select",sizeMutable:!1})],t)}(x);export{M as ChainedSelectControlRenderer,x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as __toESM}from"./rolldown-runtime-DcYi-9oA.js";import{t as require_react}from"./react-BW4ssgUo.js";import{a as __generator,d as __values,i as __extends,n as __awaiter,o as __metadata,r as __decorate,s as __read,t as __assign}from"./tslib.es6-C2q27PUR.js";import{Dn as dataMapping,E as buildStyle,Ii as resolveVariableAndFilter,J as CustomStyle,Kn as findObjectsWithKey,Nt as ServiceStore,Q as themedLazyComponent,Sr as loadScript,Vi as require_isString,Xr as filter,Xt as require_debounce,Yt as resizeSensor,Z as setThemeClassName,Zr as isPureVariable,an as isApiOutdated,dt as ScopedContext,fn as str2function,it as Renderer,kt as require_pick,oa as isAlive,oi as createObject,sn as isEffectiveApi,un as normalizeApiResponseData,vn as require_classnames}from"./esm-CofciBhy.js";var import_react=/* @__PURE__ */__toESM(require_react()),import_classnames=/* @__PURE__ */__toESM(require_classnames()),import_debounce=/* @__PURE__ */__toESM(require_debounce()),import_pick=/* @__PURE__ */__toESM(require_pick()),import_isString=/* @__PURE__ */__toESM(require_isString()),DEFAULT_EVENT_PARAMS=["componentType","seriesType","seriesIndex","seriesName","name","dataIndex","data","dataType","value","color"],EVAL_CACHE={};function recoverFunctionType(config){["interval","formatter","color","min","max","labelFormatter","valueFormatter","pageFormatter","optionToContent","contentToOption","animationDelay","animationDurationUpdate","animationDelayUpdate","animationDuration","position","sort","renderItem"].forEach(function(key){var e_1,_a,objects=findObjectsWithKey(config,key);try{for(var objects_1=__values(objects),objects_1_1=objects_1.next();!objects_1_1.done;objects_1_1=objects_1.next()){var object=objects_1_1.value,code=object[key];if("string"==typeof code&&code.trim().startsWith("function"))try{code in EVAL_CACHE||(EVAL_CACHE[code]=eval("("+code+")")),object[key]=EVAL_CACHE[code]}catch(e){console.warn(code,e)}}}catch(e_1_1){e_1={error:e_1_1}}finally{try{objects_1_1&&!objects_1_1.done&&(_a=objects_1.return)&&_a.call(objects_1)}finally{if(e_1)throw e_1.error}}})}var Chart=function(e){function t(t){var r=e.call(this,t)||this;return r.refFn=r.refFn.bind(r),r.reload=r.reload.bind(r),r.reloadEcharts=(0,import_debounce.default)(r.reloadEcharts.bind(r),300),r.handleClick=r.handleClick.bind(r),r.dispatchEvent=r.dispatchEvent.bind(r),r.loadChartMapData=r.loadChartMapData.bind(r),r.mounted=!0,t.config&&r.renderChart(t.config),r}return __extends(t,e),t.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var e,t,r,a,i,s,n;return __generator(this,function(o){switch(o.label){case 0:return e=this.props,t=e.api,r=e.data,a=e.initFetch,i=e.source,[4,(0,e.dispatchEvent)("init",r,this)];case 1:return(null==(s=o.sent())?void 0:s.prevented)||(i&&isPureVariable(i)?(n=resolveVariableAndFilter(i,r,"| raw"))&&this.renderChart(n):t&&!1!==a&&this.reload()),[2]}})})},t.prototype.componentDidUpdate=function(e){var t=this,r=this.props;if(isApiOutdated(e.api,r.api,e.data,r.data))this.reload();else if(r.source&&isPureVariable(r.source)){var a=e.source?resolveVariableAndFilter(e.source,e.data,"| raw"):null,i=resolveVariableAndFilter(r.source,r.data,"| raw");a!==i&&this.renderChart(i||{})}else if(r.config!==e.config)this.renderChart(r.config||{});else if(r.config&&r.trackExpression&&filter(r.trackExpression,r.data)!==filter(e.trackExpression,e.data))this.renderChart(r.config||{});else if(isApiOutdated(e.mapURL,r.mapURL,e.data,r.data)){var s=r.source,n=r.data,o=r.api,c=r.config;this.loadChartMapData(function(){if(s&&isPureVariable(s)){var e=resolveVariableAndFilter(s,n,"| raw");e&&t.renderChart(e)}else o?t.reload():c&&t.renderChart(c||{})})}},t.prototype.componentWillUnmount=function(){this.mounted=!1,this.reloadEcharts.cancel(),clearTimeout(this.timer)},t.prototype.loadChartMapData=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,a,i,s,n,o;return __generator(this,function(c){switch(c.label){case 0:return t=this.props,r=t.env,a=t.data,i=this.props,s=i.mapName,(n=i.mapURL)&&s&&window.echarts?(isPureVariable(s)&&(s=resolveVariableAndFilter(s,a)),[4,r.fetcher(n,a)]):[3,2];case 1:(o=c.sent()).ok||console.warn("fetch map geo error "+n),window.echarts.registerMap(s,o.data),c.label=2;case 2:return e&&e(),[2]}})})},t.prototype.handleClick=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,a,i,s;return __generator(this,function(n){switch(n.label){case 0:return t=this.props,r=t.onAction,a=t.clickAction,i=t.data,[4,(0,t.dispatchEvent)(e.event,createObject(i,__assign({},(0,import_pick.default)(e,DEFAULT_EVENT_PARAMS))))];case 1:return(null==(s=n.sent())?void 0:s.prevented)||a&&r&&r(null,a,createObject(i,e)),[2]}})})},t.prototype.dispatchEvent=function(e){var t=this.props,r=t.data;(0,t.dispatchEvent)(e.event||e.type,createObject(r,__assign({},(0,import_pick.default)(e,"legendselectchanged"===e.type?["name","selected"]:DEFAULT_EVENT_PARAMS))))},t.prototype.refFn=function(e){var t=this,r=this.props.chartRef,a=this.props,i=a.chartTheme,s=a.onChartWillMount,n=a.onChartUnMount,o=a.env,c=a.loadBaiduMap,l=(a.data,this.props),d=l.mapURL,h=l.mapName,p=this.props.onChartMount||this.onChartMount;e?Promise.all([Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),Promise.resolve({})]).then(function(a){var n=__read(a,2),l=n[0],u=n[1];return __awaiter(t,void 0,void 0,function(){var t,a=this;return __generator(this,function(n){switch(n.label){case 0:return window.echarts=l,window.ecStat=(null==u?void 0:u.default)||u,d&&h?[4,this.loadChartMapData()]:[3,2];case 1:n.sent(),n.label=2;case 2:return c?[4,loadScript("//api.map.baidu.com/api?v=3.0&ak=".concat(this.props.ak,"&callback={{callback}}"))]:[3,4];case 3:n.sent(),n.label=4;case 4:return t="default",i&&(l.registerTheme("custom",i),t="custom"),s?[4,s(l)]:[3,6];case 5:n.sent(),n.label=6;case 6:return u.transform&&(l.registerTransform(u.transform.regression),l.registerTransform(u.transform.histogram),l.registerTransform(u.transform.clustering)),o.loadChartExtends?[4,o.loadChartExtends()]:[3,8];case 7:n.sent(),n.label=8;case 8:return this.echarts=l.init(e,t),"string"==typeof p&&(p=str2function(p,"chart","echarts")),null==p||p(this.echarts,l),this.echarts.on("click",this.handleClick),this.echarts.on("mouseover",this.dispatchEvent),this.echarts.on("legendselectchanged",this.dispatchEvent),this.unSensor=resizeSensor(e,function(){var t,r=e.offsetWidth,i=e.offsetHeight;null===(t=a.echarts)||void 0===t||t.resize({width:r,height:i})}),r&&r(this.echarts),this.renderChart(),[2]}})})}):(r&&r(null),this.unSensor&&this.unSensor(),this.echarts&&(null==n||n(this.echarts,window.echarts),this.echarts.dispose(),delete this.echarts)),this.ref=e},t.prototype.doAction=function(e,t,r){var a,i;return void 0===r&&(r=!1),null===(i=null===(a=this.echarts)||void 0===a?void 0:a.dispatchAction)||void 0===i?void 0:i.call(a,__assign({type:e.actionType},t))},t.prototype.reload=function(e,t,r,a,i){var s,n,o,c,l,d;return __awaiter(this,void 0,void 0,function(){var e,r,a,h,p,u,m,_,f,v,g=this;return __generator(this,function(C){switch(C.label){case 0:if(e=this.props,r=e.api,a=e.env,h=e.store,p=e.translate,t)return[2,this.receive(t,void 0,i)];if(!a||!a.fetcher||!isEffectiveApi(r,h.data))return[2];clearTimeout(this.timer),this.reloadCancel&&(this.reloadCancel(),delete this.reloadCancel,null===(s=this.echarts)||void 0===s||s.hideLoading()),null===(n=this.echarts)||void 0===n||n.showLoading(),h.markFetching(!0),C.label=1;case 1:return C.trys.push([1,3,,4]),[4,a.fetcher(r,h.data,{cancelExecutor:function(e){return g.reloadCancel=e}})];case 2:return u=C.sent(),isAlive(h)&&h.markFetching(!1),u.ok?(delete this.reloadCancel,!(m=normalizeApiResponseData(u.data)).series&&this.props.config?(_=createObject(this.props.data,m),this.renderChart(this.props.config,_)):this.renderChart(u.data||{}),null===(l=this.echarts)||void 0===l||l.hideLoading(),(f=this.props.interval)&&(0,import_isString.default)(f)&&(f=Number.parseInt(f)),f&&this.mounted&&(this.timer=setTimeout(this.reload,Math.max(f,1e3))),[2,h.data]):(!(null==r?void 0:r.silent)&&a.notify("error",null!==(c=null===(o=null==r?void 0:r.messages)||void 0===o?void 0:o.failed)&&void 0!==c?c:u.msg||p("fetchFailed"),void 0!==u.msgTimeout?{closeButton:!0,timeout:u.msgTimeout}:void 0),[2]);case 3:return v=C.sent(),a.isCancel(v)?[2]:(isAlive(h)&&h.markFetching(!1),!(null==r?void 0:r.silent)&&a.notify("error",v),null===(d=this.echarts)||void 0===d||d.hideLoading(),[3,4]);case 4:return[2]}})})},t.prototype.receive=function(e,t,r){this.props.store.updateData(e,void 0,r),this.reload()},t.prototype.renderChart=function(e,t){var r,a;if(e&&(this.pending=e),t&&(this.pendingCtx=t),this.echarts){var i=this.props.store,s=this.props.onDataFilter,n=this.props.dataFilter;s||"string"!=typeof n||(s=new Function("config","echarts","data",n)),e=e||this.pending,t=t||this.pendingCtx||this.props.data,"string"==typeof e&&(e=new Function("return "+e)());try{s&&(e=s(e,window.echarts,t)||e)}catch(o){console.warn(o)}if(e)try{this.props.disableDataMapping||(e=dataMapping(e,t,function(e,t){return"function"==typeof t||"string"==typeof t&&t.startsWith("function")})),recoverFunctionType(e),isAlive(i)&&i.loading?null===(r=this.echarts)||void 0===r||r.showLoading():null===(a=this.echarts)||void 0===a||a.hideLoading(),this.reloadEcharts(e)}catch(o){console.warn(o)}}},t.prototype.reloadEcharts=function(e){var t,r=this;null===(t=this.echarts)||void 0===t||t.setOption(e,this.props.replaceChartOption),this.echarts.on("finished",function(){return __awaiter(r,void 0,void 0,function(){var e,t,r;return __generator(this,function(a){switch(a.label){case 0:return e=this.props,t=e.data,[4,(0,e.dispatchEvent)("finished",createObject(t,{},{echarts:{value:this.echarts,enumerable:!1,configurable:!0,writable:!0}}))];case 1:return null==(r=a.sent())||r.prevented,[2]}})})})},t.prototype.render=function(){var e=this,t=this.props,r=t.className,a=t.width,i=t.height,s=t.classPrefix,n=t.unMountOnHidden,o=t.data,c=t.id,l=t.wrapperCustomStyle,d=t.env,h=t.themeCss,p=(t.baseControlClassName,this.props.style||{});p.width=p.width||a||"100%",p.height=p.height||i||"300px";var u=buildStyle(p,o);return import_react.createElement("div",{className:(0,import_classnames.default)("".concat(s,"Chart"),r,setThemeClassName(__assign(__assign({},this.props),{name:"baseControlClassName",id:c,themeCss:h})),setThemeClassName(__assign(__assign({},this.props),{name:"wrapperCustomStyle",id:c,themeCss:l}))),style:u},import_react.createElement(themedLazyComponent,{unMountOnHidden:n,placeholder:"...",component:function(){return import_react.createElement("div",{className:"".concat(s,"Chart-content"),ref:e.refFn})}}),import_react.createElement(CustomStyle,__assign({},this.props,{config:{wrapperCustomStyle:l,id:c,themeCss:h,classNames:[{key:"baseControlClassName"}]},env:d})))},t.defaultProps={replaceChartOption:!1,unMountOnHidden:!1},t.propsList=[],t}(import_react.Component),ChartRenderer=function(e){function t(t,r){var a=e.call(this,t)||this;return r.registerComponent(a),a}return __extends(t,e),t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.context.unRegisterComponent(this)},t.prototype.setData=function(e,t){var r=this.props.store;r.updateData(e,void 0,t),this.renderChart(this.props.config,r.data)},t.prototype.getData=function(){return this.props.store.data},t.contextType=ScopedContext,__decorate([Renderer({type:"chart",storeType:ServiceStore.name}),__metadata("design:paramtypes",[Object,Object])],t)}(Chart);export{Chart,ChartRenderer};
|
|
1
|
+
import{o as __toESM}from"./rolldown-runtime-DcYi-9oA.js";import{t as require_react}from"./react-BW4ssgUo.js";import{a as __generator,d as __values,i as __extends,n as __awaiter,o as __metadata,r as __decorate,s as __read,t as __assign}from"./tslib.es6-C2q27PUR.js";import{Dn as dataMapping,E as buildStyle,Ii as resolveVariableAndFilter,J as CustomStyle,Kn as findObjectsWithKey,Nt as ServiceStore,Q as themedLazyComponent,Sr as loadScript,Vi as require_isString,Xr as filter,Xt as require_debounce,Yt as resizeSensor,Z as setThemeClassName,Zr as isPureVariable,an as isApiOutdated,dt as ScopedContext,fn as str2function,it as Renderer,kt as require_pick,oa as isAlive,oi as createObject,sn as isEffectiveApi,un as normalizeApiResponseData,vn as require_classnames}from"./esm-BMvKJM5q.js";var import_react=/* @__PURE__ */__toESM(require_react()),import_classnames=/* @__PURE__ */__toESM(require_classnames()),import_debounce=/* @__PURE__ */__toESM(require_debounce()),import_pick=/* @__PURE__ */__toESM(require_pick()),import_isString=/* @__PURE__ */__toESM(require_isString()),DEFAULT_EVENT_PARAMS=["componentType","seriesType","seriesIndex","seriesName","name","dataIndex","data","dataType","value","color"],EVAL_CACHE={};function recoverFunctionType(config){["interval","formatter","color","min","max","labelFormatter","valueFormatter","pageFormatter","optionToContent","contentToOption","animationDelay","animationDurationUpdate","animationDelayUpdate","animationDuration","position","sort","renderItem"].forEach(function(key){var e_1,_a,objects=findObjectsWithKey(config,key);try{for(var objects_1=__values(objects),objects_1_1=objects_1.next();!objects_1_1.done;objects_1_1=objects_1.next()){var object=objects_1_1.value,code=object[key];if("string"==typeof code&&code.trim().startsWith("function"))try{code in EVAL_CACHE||(EVAL_CACHE[code]=eval("("+code+")")),object[key]=EVAL_CACHE[code]}catch(e){console.warn(code,e)}}}catch(e_1_1){e_1={error:e_1_1}}finally{try{objects_1_1&&!objects_1_1.done&&(_a=objects_1.return)&&_a.call(objects_1)}finally{if(e_1)throw e_1.error}}})}var Chart=function(e){function t(t){var r=e.call(this,t)||this;return r.refFn=r.refFn.bind(r),r.reload=r.reload.bind(r),r.reloadEcharts=(0,import_debounce.default)(r.reloadEcharts.bind(r),300),r.handleClick=r.handleClick.bind(r),r.dispatchEvent=r.dispatchEvent.bind(r),r.loadChartMapData=r.loadChartMapData.bind(r),r.mounted=!0,t.config&&r.renderChart(t.config),r}return __extends(t,e),t.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var e,t,r,a,i,s,n;return __generator(this,function(o){switch(o.label){case 0:return e=this.props,t=e.api,r=e.data,a=e.initFetch,i=e.source,[4,(0,e.dispatchEvent)("init",r,this)];case 1:return(null==(s=o.sent())?void 0:s.prevented)||(i&&isPureVariable(i)?(n=resolveVariableAndFilter(i,r,"| raw"))&&this.renderChart(n):t&&!1!==a&&this.reload()),[2]}})})},t.prototype.componentDidUpdate=function(e){var t=this,r=this.props;if(isApiOutdated(e.api,r.api,e.data,r.data))this.reload();else if(r.source&&isPureVariable(r.source)){var a=e.source?resolveVariableAndFilter(e.source,e.data,"| raw"):null,i=resolveVariableAndFilter(r.source,r.data,"| raw");a!==i&&this.renderChart(i||{})}else if(r.config!==e.config)this.renderChart(r.config||{});else if(r.config&&r.trackExpression&&filter(r.trackExpression,r.data)!==filter(e.trackExpression,e.data))this.renderChart(r.config||{});else if(isApiOutdated(e.mapURL,r.mapURL,e.data,r.data)){var s=r.source,n=r.data,o=r.api,c=r.config;this.loadChartMapData(function(){if(s&&isPureVariable(s)){var e=resolveVariableAndFilter(s,n,"| raw");e&&t.renderChart(e)}else o?t.reload():c&&t.renderChart(c||{})})}},t.prototype.componentWillUnmount=function(){this.mounted=!1,this.reloadEcharts.cancel(),clearTimeout(this.timer)},t.prototype.loadChartMapData=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,a,i,s,n,o;return __generator(this,function(c){switch(c.label){case 0:return t=this.props,r=t.env,a=t.data,i=this.props,s=i.mapName,(n=i.mapURL)&&s&&window.echarts?(isPureVariable(s)&&(s=resolveVariableAndFilter(s,a)),[4,r.fetcher(n,a)]):[3,2];case 1:(o=c.sent()).ok||console.warn("fetch map geo error "+n),window.echarts.registerMap(s,o.data),c.label=2;case 2:return e&&e(),[2]}})})},t.prototype.handleClick=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,a,i,s;return __generator(this,function(n){switch(n.label){case 0:return t=this.props,r=t.onAction,a=t.clickAction,i=t.data,[4,(0,t.dispatchEvent)(e.event,createObject(i,__assign({},(0,import_pick.default)(e,DEFAULT_EVENT_PARAMS))))];case 1:return(null==(s=n.sent())?void 0:s.prevented)||a&&r&&r(null,a,createObject(i,e)),[2]}})})},t.prototype.dispatchEvent=function(e){var t=this.props,r=t.data;(0,t.dispatchEvent)(e.event||e.type,createObject(r,__assign({},(0,import_pick.default)(e,"legendselectchanged"===e.type?["name","selected"]:DEFAULT_EVENT_PARAMS))))},t.prototype.refFn=function(e){var t=this,r=this.props.chartRef,a=this.props,i=a.chartTheme,s=a.onChartWillMount,n=a.onChartUnMount,o=a.env,c=a.loadBaiduMap,l=(a.data,this.props),d=l.mapURL,h=l.mapName,p=this.props.onChartMount||this.onChartMount;e?Promise.all([Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),Promise.resolve({})]).then(function(a){var n=__read(a,2),l=n[0],u=n[1];return __awaiter(t,void 0,void 0,function(){var t,a=this;return __generator(this,function(n){switch(n.label){case 0:return window.echarts=l,window.ecStat=(null==u?void 0:u.default)||u,d&&h?[4,this.loadChartMapData()]:[3,2];case 1:n.sent(),n.label=2;case 2:return c?[4,loadScript("//api.map.baidu.com/api?v=3.0&ak=".concat(this.props.ak,"&callback={{callback}}"))]:[3,4];case 3:n.sent(),n.label=4;case 4:return t="default",i&&(l.registerTheme("custom",i),t="custom"),s?[4,s(l)]:[3,6];case 5:n.sent(),n.label=6;case 6:return u.transform&&(l.registerTransform(u.transform.regression),l.registerTransform(u.transform.histogram),l.registerTransform(u.transform.clustering)),o.loadChartExtends?[4,o.loadChartExtends()]:[3,8];case 7:n.sent(),n.label=8;case 8:return this.echarts=l.init(e,t),"string"==typeof p&&(p=str2function(p,"chart","echarts")),null==p||p(this.echarts,l),this.echarts.on("click",this.handleClick),this.echarts.on("mouseover",this.dispatchEvent),this.echarts.on("legendselectchanged",this.dispatchEvent),this.unSensor=resizeSensor(e,function(){var t,r=e.offsetWidth,i=e.offsetHeight;null===(t=a.echarts)||void 0===t||t.resize({width:r,height:i})}),r&&r(this.echarts),this.renderChart(),[2]}})})}):(r&&r(null),this.unSensor&&this.unSensor(),this.echarts&&(null==n||n(this.echarts,window.echarts),this.echarts.dispose(),delete this.echarts)),this.ref=e},t.prototype.doAction=function(e,t,r){var a,i;return void 0===r&&(r=!1),null===(i=null===(a=this.echarts)||void 0===a?void 0:a.dispatchAction)||void 0===i?void 0:i.call(a,__assign({type:e.actionType},t))},t.prototype.reload=function(e,t,r,a,i){var s,n,o,c,l,d;return __awaiter(this,void 0,void 0,function(){var e,r,a,h,p,u,m,_,f,v,g=this;return __generator(this,function(C){switch(C.label){case 0:if(e=this.props,r=e.api,a=e.env,h=e.store,p=e.translate,t)return[2,this.receive(t,void 0,i)];if(!a||!a.fetcher||!isEffectiveApi(r,h.data))return[2];clearTimeout(this.timer),this.reloadCancel&&(this.reloadCancel(),delete this.reloadCancel,null===(s=this.echarts)||void 0===s||s.hideLoading()),null===(n=this.echarts)||void 0===n||n.showLoading(),h.markFetching(!0),C.label=1;case 1:return C.trys.push([1,3,,4]),[4,a.fetcher(r,h.data,{cancelExecutor:function(e){return g.reloadCancel=e}})];case 2:return u=C.sent(),isAlive(h)&&h.markFetching(!1),u.ok?(delete this.reloadCancel,!(m=normalizeApiResponseData(u.data)).series&&this.props.config?(_=createObject(this.props.data,m),this.renderChart(this.props.config,_)):this.renderChart(u.data||{}),null===(l=this.echarts)||void 0===l||l.hideLoading(),(f=this.props.interval)&&(0,import_isString.default)(f)&&(f=Number.parseInt(f)),f&&this.mounted&&(this.timer=setTimeout(this.reload,Math.max(f,1e3))),[2,h.data]):(!(null==r?void 0:r.silent)&&a.notify("error",null!==(c=null===(o=null==r?void 0:r.messages)||void 0===o?void 0:o.failed)&&void 0!==c?c:u.msg||p("fetchFailed"),void 0!==u.msgTimeout?{closeButton:!0,timeout:u.msgTimeout}:void 0),[2]);case 3:return v=C.sent(),a.isCancel(v)?[2]:(isAlive(h)&&h.markFetching(!1),!(null==r?void 0:r.silent)&&a.notify("error",v),null===(d=this.echarts)||void 0===d||d.hideLoading(),[3,4]);case 4:return[2]}})})},t.prototype.receive=function(e,t,r){this.props.store.updateData(e,void 0,r),this.reload()},t.prototype.renderChart=function(e,t){var r,a;if(e&&(this.pending=e),t&&(this.pendingCtx=t),this.echarts){var i=this.props.store,s=this.props.onDataFilter,n=this.props.dataFilter;s||"string"!=typeof n||(s=new Function("config","echarts","data",n)),e=e||this.pending,t=t||this.pendingCtx||this.props.data,"string"==typeof e&&(e=new Function("return "+e)());try{s&&(e=s(e,window.echarts,t)||e)}catch(o){console.warn(o)}if(e)try{this.props.disableDataMapping||(e=dataMapping(e,t,function(e,t){return"function"==typeof t||"string"==typeof t&&t.startsWith("function")})),recoverFunctionType(e),isAlive(i)&&i.loading?null===(r=this.echarts)||void 0===r||r.showLoading():null===(a=this.echarts)||void 0===a||a.hideLoading(),this.reloadEcharts(e)}catch(o){console.warn(o)}}},t.prototype.reloadEcharts=function(e){var t,r=this;null===(t=this.echarts)||void 0===t||t.setOption(e,this.props.replaceChartOption),this.echarts.on("finished",function(){return __awaiter(r,void 0,void 0,function(){var e,t,r;return __generator(this,function(a){switch(a.label){case 0:return e=this.props,t=e.data,[4,(0,e.dispatchEvent)("finished",createObject(t,{},{echarts:{value:this.echarts,enumerable:!1,configurable:!0,writable:!0}}))];case 1:return null==(r=a.sent())||r.prevented,[2]}})})})},t.prototype.render=function(){var e=this,t=this.props,r=t.className,a=t.width,i=t.height,s=t.classPrefix,n=t.unMountOnHidden,o=t.data,c=t.id,l=t.wrapperCustomStyle,d=t.env,h=t.themeCss,p=(t.baseControlClassName,this.props.style||{});p.width=p.width||a||"100%",p.height=p.height||i||"300px";var u=buildStyle(p,o);return import_react.createElement("div",{className:(0,import_classnames.default)("".concat(s,"Chart"),r,setThemeClassName(__assign(__assign({},this.props),{name:"baseControlClassName",id:c,themeCss:h})),setThemeClassName(__assign(__assign({},this.props),{name:"wrapperCustomStyle",id:c,themeCss:l}))),style:u},import_react.createElement(themedLazyComponent,{unMountOnHidden:n,placeholder:"...",component:function(){return import_react.createElement("div",{className:"".concat(s,"Chart-content"),ref:e.refFn})}}),import_react.createElement(CustomStyle,__assign({},this.props,{config:{wrapperCustomStyle:l,id:c,themeCss:h,classNames:[{key:"baseControlClassName"}]},env:d})))},t.defaultProps={replaceChartOption:!1,unMountOnHidden:!1},t.propsList=[],t}(import_react.Component),ChartRenderer=function(e){function t(t,r){var a=e.call(this,t)||this;return r.registerComponent(a),a}return __extends(t,e),t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.context.unRegisterComponent(this)},t.prototype.setData=function(e,t){var r=this.props.store;r.updateData(e,void 0,t),this.renderChart(this.props.config,r.data)},t.prototype.getData=function(){return this.props.store.data},t.contextType=ScopedContext,__decorate([Renderer({type:"chart",storeType:ServiceStore.name}),__metadata("design:paramtypes",[Object,Object])],t)}(Chart);export{Chart,ChartRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as t}from"./rolldown-runtime-DcYi-9oA.js";import{t as e}from"./react-BW4ssgUo.js";import{i,o as n,r as o,t as s}from"./tslib.es6-C2q27PUR.js";import{Nn as r,P as p}from"./esm-
|
|
1
|
+
import{o as t}from"./rolldown-runtime-DcYi-9oA.js";import{t as e}from"./react-BW4ssgUo.js";import{i,o as n,r as o,t as s}from"./tslib.es6-C2q27PUR.js";import{Nn as r,P as p}from"./esm-BMvKJM5q.js";import{t as h}from"./StaticHoc-DVc-5HZA.js";var a=/* @__PURE__ */t(e()),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.highlightIndex=-1,e.prevIndex=-1,e}return i(e,t),e.prototype.chartRef=function(t){var e,i=this;this.chart=t,null===(e=this.chart)||void 0===e||e.on("click","series",function(t){i.props.onToggle(i.props.options[t.dataIndex])}),setTimeout(function(){return i.highlight()})},e.prototype.highlight=function(t){void 0===t&&(t=this.highlightIndex),this.props.static||(this.highlightIndex=t,this.chart&&this.prevIndex!==t&&(~this.prevIndex&&this.chart.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:this.prevIndex}),~t&&(this.chart.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:t}),this.props.showTooltipOnHighlight&&this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})),this.prevIndex=t))},e.prototype.componentDidMount=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},e.prototype.componentDidUpdate=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},e.prototype.renderStatic=function(t){void 0===t&&(t="-"),this.prevIndex=-1,this.highlightIndex=-1;var e=this.props,i=e.options,n=void 0===i?[]:i,o=e.selectedOptions,s=e.labelField,r=void 0===s?"label":s,p=e.valueField,h=void 0===p?"value":p,l=e.chartValueField;if(n.length&&o.length){var c=n.reduce(function(t,e){return t+e[l||h]},0);if(c>0){var d=(+o[0][l||h]/c*100).toFixed(2);t="".concat(o[0][r],":").concat(d,"%")}}return a.createElement(a.Fragment,null,t)},e.prototype.render=function(){var t=this.props,e=t.options,i=t.labelField,n=t.chartValueField,o=t.valueField;return(0,t.render)("chart",{type:"chart"},{config:s(s({legend:{top:10},tooltip:{formatter:function(t){return"".concat(t.name,":").concat(t.value[n||o||"value"],"(").concat(t.percent,"%)")}},series:[{type:"pie",top:30,bottom:0}]},this.props.config),{dataset:{dimensions:[i||"label",n||o||"value"],source:e}}),chartRef:this.chartRef})},o([r,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],e.prototype,"chartRef",null),o([h(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"render",null),e}(a.Component),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaultProps={multiple:!1},o([p({type:"chart-radios",sizeMutable:!1})],e)}(l);export{c as RadiosControlRenderer,l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as a,t as o}from"./Checkbox-DbHhD7iK.js";export{a as CheckboxControlRenderer,o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as n,i as a,n as o,o as s,r as i,t as c}from"./tslib.es6-C2q27PUR.js";import{F as l,J as r,Nn as d,Z as h,Zn as u,ht as p,vi as b,vn as k}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as n,i as a,n as o,o as s,r as i,t as c}from"./tslib.es6-C2q27PUR.js";import{F as l,J as r,Nn as d,Z as h,Zn as u,ht as p,vi as b,vn as k}from"./esm-BMvKJM5q.js";import{Nt as C,R as m}from"./esm-BbZME5Ac.js";import{t as f}from"./StaticHoc-DVc-5HZA.js";var v=/* @__PURE__ */e(t()),x=/* @__PURE__ */e(k()),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.doAction=function(e,t,n){var a,o,s=this.props,i=s.resetValue,c=s.onChange,l=s.formStore,r=s.store,d=s.name,h=null==e?void 0:e.actionType;if("clear"===h)c("");else if("reset"===h){var u=null!==(o=b(null!==(a=null==l?void 0:l.pristine)&&void 0!==a?a:null==r?void 0:r.pristine,d))&&void 0!==o?o:i;c(null!=u?u:"")}},t.prototype.dispatchChangeEvent=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,function(){var t,a,o,s;return n(this,function(n){switch(n.label){case 0:return t=this.props,a=t.dispatchEvent,o=t.onChange,[4,a("change",p(this.props,{value:e}))];case 1:return(null==(s=n.sent())?void 0:s.prevented)||o&&o(e),[2]}})})},t.prototype.renderStatic=function(){var e=this.props,t=e.value,n=e.trueValue,a=e.falseValue,o=e.option,s=e.render,i=e.partial,c=e.optionType,l=e.checked,r=e.labelClassName;return v.createElement(C,{inline:!0,value:t||"",trueValue:n,falseValue:a,disabled:!0,partial:i,optionType:c,checked:l,labelClassName:r},o?s("option",o):null)},t.prototype.render=function(){var e=this,t=this.props,n=t.className;t.style;var a=t.value,o=t.trueValue,s=t.falseValue,i=t.option;t.onChange;var l=t.disabled,d=t.render,p=t.partial,b=t.optionType,k=t.checked,m=t.labelClassName,f=t.testIdBuilder,y=t.classPrefix,N=t.id,g=t.env,V=t.themeCss,w=u(V,"checkbox");return v.createElement("div",{className:(0,x.default)("".concat(y,"CheckboxControl"),n,h(c(c({},this.props),{name:["checkboxControlClassName","checkboxControlCheckedClassName","checkboxClassName","checkboxCheckedClassName","checkboxInnerClassName","checkboxShowClassName"],id:N,themeCss:w})))},v.createElement(C,{inline:!0,value:a||"",trueValue:o,falseValue:s,disabled:l,onChange:function(t){return e.dispatchChangeEvent(t)},partial:p,optionType:b,checked:k,labelClassName:m,testIdBuilder:f,className:"first last"},i?d("option",i):null),v.createElement(r,c({},this.props,{config:{themeCss:w,classNames:[{key:"checkboxControlClassName",weights:{default:{inner:".".concat(y,"Checkbox:not(.checked):not(.disabled)")},hover:{suf:" .".concat(y,"Checkbox:not(.disabled):not(.checked)")},disabled:{inner:".".concat(y,"Checkbox.disabled:not(.checked)")}}},{key:"checkboxControlCheckedClassName",weights:{default:{inner:".".concat(y,"Checkbox.checked:not(.disabled)")},hover:{suf:" .".concat(y,"Checkbox.checked:not(.disabled)")},disabled:{inner:".".concat(y,"Checkbox.checked.disabled")}}},{key:"checkboxClassName",weights:{default:{inner:".".concat(y,"Checkbox:not(.checked):not(.disabled) > i")},hover:{suf:" .".concat(y,"Checkbox:not(.disabled):not(.checked)"),inner:"> i"},disabled:{inner:".".concat(y,"Checkbox.disabled:not(.checked) > i")}}},{key:"checkboxCheckedClassName",weights:{default:{inner:".".concat(y,"Checkbox:not(.disabled) > i")},hover:{suf:" .".concat(y,"Checkbox:not(.disabled)"),inner:"> i"},disabled:{inner:".".concat(y,"Checkbox.disabled > i")}}},{key:"checkboxInnerClassName",weights:{default:{inner:".".concat(y,"Checkbox:not(.disabled) > i .icon")},hover:{suf:" .".concat(y,"Checkbox:not(.disabled)"),inner:"> i .icon"},disabled:{inner:".".concat(y,"Checkbox.disabled > i .icon")}}},{key:"checkboxShowClassName",weights:{default:{inner:".".concat(y,"Checkbox > i")}}}],id:N},env:g})))},t.defaultProps={trueValue:!0,falseValue:!1},i([d,s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],t.prototype,"dispatchChangeEvent",null),i([f(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"render",null),t}(v.Component),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),i([m,l({type:"checkbox",sizeMutable:!1,thin:!0})],t)}(y);export{N as n,y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,t}from"./rolldown-runtime-DcYi-9oA.js";import{t as n}from"./react-BW4ssgUo.js";import{i as o,o as s,r as a,t as l}from"./tslib.es6-C2q27PUR.js";import{A as i,k as r}from"./function-C8ta9DKb.js";import{J as c,N as d,Nn as p,P as h,Xn as u,Xt as m,Z as b,Zn as f,lr as k,oi as C,vi as v}from"./esm-
|
|
1
|
+
import{o as e,t}from"./rolldown-runtime-DcYi-9oA.js";import{t as n}from"./react-BW4ssgUo.js";import{i as o,o as s,r as a,t as l}from"./tslib.es6-C2q27PUR.js";import{A as i,k as r}from"./function-C8ta9DKb.js";import{J as c,N as d,Nn as p,P as h,Xn as u,Xt as m,Z as b,Zn as f,lr as k,oi as C,vi as v}from"./esm-BMvKJM5q.js";import{Nt as g}from"./esm-BbZME5Ac.js";import{a as y,i as x,s as N}from"./PopUp-DaheG-Vv.js";import{t as E}from"./StaticHoc-DVc-5HZA.js";var R=/* @__PURE__ */t((e,t)=>{var n=Math.max,o=Math.min;t.exports=function(e,t,s){return e>=o(t,s)&&e<n(t,s)}}),S=/* @__PURE__ */t((e,t)=>{var n=R(),o=r(),s=i();t.exports=function(e,t,a){return t=o(t),void 0===a?(a=t,t=0):a=o(a),e=s(e),n(e,t,a)}}),T=/* @__PURE__ */e(n()),O=/* @__PURE__ */e(S()),j=/* @__PURE__ */e(m()),w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.checkboxRef=T.createRef(),t.childRefs=[],t}return o(t,e),t.prototype.doAction=function(e,t,n){var o,s,a=this.props,l=a.resetValue,i=a.onChange,r=a.formStore,c=a.store,d=a.name,p=null==e?void 0:e.actionType;if("clear"===p)i("");else if("reset"===p){var h=null!==(s=v(null!==(o=null==r?void 0:r.pristine)&&void 0!==o?o:null==c?void 0:c.pristine,d))&&void 0!==s?s:l;i(null!=h?h:"")}},t.prototype.reload=function(e,t){var n=this.props.reloadOptions;n&&n(e,t)},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.componentDidMount=function(){this.updateBorderStyle();var e=(0,j.default)(this.updateBorderStyle,100);this.checkboxRef.current&&(this.checkboxRefObserver=new ResizeObserver(e),this.checkboxRefObserver.observe(this.checkboxRef.current))},t.prototype.componentWillUnmount=function(){var e;null===(e=this.checkboxRefObserver)||void 0===e||e.disconnect()},t.prototype.updateBorderStyle=function(){if("button"===this.props.optionType&&this.childRefs.length){var e=this.childRefs.map(function(e){return null==e?void 0:e.ref}),t=e[0].labelRef.current.offsetTop,n=[],o=e.length;n[0]="first";for(var s=0,a=1;a<o;a++){var l=e[a].labelRef.current.offsetTop;n[a]="",l!==t&&(n[a]="first",n[a-1]+=" last",s=a,t=l)}n[o-1]+=" last",n.forEach(function(t,n){n>=s&&(t+=" last-line"),e[n].setClassName(t)})}},t.prototype.renderGroup=function(e,t){var n,o=this,s=this.props,a=s.classnames,l=s.labelField;if(!(null===(n=e.children)||void 0===n?void 0:n.length))return null;var i=e.children.map(function(e,t){return o.renderItem(e,t)}),r=this.columnsSplit(i);return T.createElement("div",{key:"group-"+t,className:a("CheckboxesControl-group",e.className)},T.createElement("label",{className:a("CheckboxesControl-groupLabel",e.labelClassName)},e[l||"label"]),r)},t.prototype.addChildRefs=function(e){e&&this.childRefs.push(e)},t.prototype.renderItem=function(e,t){var n,o=this;if(null===(n=e.children)||void 0===n?void 0:n.length)return this.renderGroup(e,t);var s=this.props,a=s.render,l=s.itemClassName,i=s.onToggle,r=s.selectedOptions,c=s.disabled,d=s.inline,p=s.labelClassName,h=s.labelField,u=s.removable,m=s.editable,b=s.translate,f=s.optionType,v=s.menuTpl,x=s.data,E=s.classnames,R=s.testIdBuilder,S=String(e[h||"label"]),O=e.labelClassName,j=null==R?void 0:R.getChild("item-"+S||t),w=c||e.disabled;return T.createElement(g,{className:l,key:t,onChange:function(){return i(e)},checked:!!~r.indexOf(e),disabled:w,inline:d,labelClassName:O||p,description:e.description,optionType:f,testIdBuilder:j,ref:this.addChildRefs},v?a("checkboxes/".concat(t),v,{data:C(x,e)}):S,e.disabledTip&&w?T.createElement(y,{placement:"right",tooltip:e.disabledTip,trigger:"hover"},T.createElement("a",{className:E("Select-option-disabledTip")},T.createElement(N,{className:"icon",icon:"question2"}))):null,u&&k(e,"removable")?T.createElement("a",{"data-tooltip":b("Select.clear"),"data-position":"left"},T.createElement(N,{icon:"minus",className:"icon",onClick:function(t){return o.handleDeleteClick(t,e)}})):null,m&&k(e,"editable")?T.createElement("a",{"data-tooltip":"编辑","data-position":"left"},T.createElement(N,{icon:"pencil",className:"icon",onClick:function(t){return o.handleEditClick(t,e)}})):null)},t.prototype.columnsSplit=function(e){var t=this.props,n=t.columnsCount,o=t.classnames,s=[],a=[];return e.forEach(function(e){e&&e.key&&String(e.key).startsWith("group")?(a.length&&(s.push(d(a,o,n)),a=[]),s.push(e)):a.push(e)}),a.length&&s.push(d(a,o,n)),s},t.prototype.render=function(){var e=this,t=this.props,n=t.className;t.style;var o=t.disabled,s=t.placeholder,a=t.options,i=t.inline;t.columnsCount;var r=t.selectedOptions;t.onToggle;var d=t.onToggleAll,p=t.checkAll,h=t.checkAllText,m=t.classnames,k=t.itemClassName,C=t.labelClassName,v=t.creatable,y=t.addApi,E=t.createBtnLabel,R=t.translate,S=t.optionType,j=t.loading,w=t.loadingConfig,A=t.themeCss,B=t.id,F=t.env,D=t.classPrefix,I=[];a&&a.length&&(I=a.map(function(t,n){return e.renderItem(t,n)})),p&&I.length&&"default"===S&&I.unshift(T.createElement(g,{key:"checkall",className:k,onChange:d,checked:!!r.length,partial:(0,O.default)(r.length,0,u(a).length),disabled:o,inline:i,labelClassName:C},null!=h?h:R("Checkboxes.selectAll"))),I=this.columnsSplit(I);var P=f(A,"checkboxes");return T.createElement("div",{className:m("CheckboxesControl",n,b(l(l({},this.props),{name:["checkboxesControlClassName","checkboxesControlCheckedClassName","checkboxesClassName","checkboxesCheckedClassName","checkboxesInnerClassName","checkboxesShowClassName"],id:B,themeCss:P}))),ref:this.checkboxRef},I&&I.length?I:j?null:T.createElement("span",{className:"Form-placeholder"},R(s)),j?T.createElement(x,{show:!0,icon:"reload",size:"sm",spinnerClassName:m("Checkboxes-spinner"),loadingConfig:w}):null,!v&&!y||o?null:T.createElement("a",{className:m("Checkboxes-addBtn"),onClick:this.handleAddClick},T.createElement(N,{icon:"plus",className:"icon"}),R(E)),T.createElement(c,l({},this.props,{config:{themeCss:P,classNames:[{key:"checkboxesControlClassName",weights:{default:{inner:".".concat(D,"Checkbox:not(.checked):not(.disabled)")},hover:{suf:" .".concat(D,"Checkbox:not(.disabled):not(.checked)")},disabled:{inner:".".concat(D,"Checkbox.disabled:not(.checked)")}}},{key:"checkboxesControlCheckedClassName",weights:{default:{inner:".".concat(D,"Checkbox.checked:not(.disabled)")},hover:{suf:" .".concat(D,"Checkbox.checked:not(.disabled)")},disabled:{inner:".".concat(D,"Checkbox.checked.disabled")}}},{key:"checkboxesClassName",weights:{default:{inner:".".concat(D,"Checkbox:not(.checked):not(.disabled) > i")},hover:{suf:" .".concat(D,"Checkbox:not(.disabled):not(.checked)"),inner:"> i"},disabled:{inner:".".concat(D,"Checkbox.disabled:not(.checked) > i")}}},{key:"checkboxesCheckedClassName",weights:{default:{inner:".".concat(D,"Checkbox:not(.disabled) > i")},hover:{suf:" .".concat(D,"Checkbox:not(.disabled)"),inner:"> i"},disabled:{inner:".".concat(D,"Checkbox.disabled > i")}}},{key:"checkboxesInnerClassName",weights:{default:{inner:".".concat(D,"Checkbox:not(.disabled) > i .icon")},hover:{suf:" .".concat(D,"Checkbox:not(.disabled)"),inner:"> i .icon"},disabled:{inner:".".concat(D,"Checkbox.disabled > i .icon")}}},{key:"checkboxesShowClassName",weights:{default:{inner:".".concat(D,"Checkbox > i")}}}],id:B},env:F})))},t.defaultProps={columnsCount:1,multiple:!0,placeholder:"placeholder.noOption",creatable:!1,inline:!0,createBtnLabel:"Select.createLabel",optionType:"default"},a([p,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"handleAddClick",null),a([p,s("design:type",Function),s("design:paramtypes",[Event,Object]),s("design:returntype",void 0)],t.prototype,"handleEditClick",null),a([p,s("design:type",Function),s("design:paramtypes",[Event,Object]),s("design:returntype",void 0)],t.prototype,"handleDeleteClick",null),a([p,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"updateBorderStyle",null),a([p,s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],t.prototype,"addChildRefs",null),a([E(),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"render",null),t}(T.Component),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),a([h({type:"checkboxes",sizeMutable:!1,thin:!0})],t)}(w);export{A as CheckboxesControlRenderer,w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as o,d as r,i as n,n as s,r as a}from"./tslib.es6-C2q27PUR.js";import{c as i}from"./function-C8ta9DKb.js";import{$n as u,Ii as l,Zr as c,it as h,jn as p}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as o,d as r,i as n,n as s,r as a}from"./tslib.es6-C2q27PUR.js";import{c as i}from"./function-C8ta9DKb.js";import{$n as u,Ii as l,Zr as c,it as h,jn as p}from"./esm-BMvKJM5q.js";var d=/* @__PURE__ */e(t()),m=/* @__PURE__ */e(i()),g=function(e){function t(t){var o=e.call(this,t)||this;return o.toDispose=[],o.codeRef=d.createRef(),o}return n(t,e),t.prototype.shouldComponentUpdate=function(e){return p(t.propsList,this.props,e)||this.resolveLanguage(this.props)!==this.resolveLanguage(e)||u(this.props)!==u(e)},t.prototype.componentDidMount=function(){var e=this;Promise.resolve({}).then(function(t){return e.handleMonaco(t)})},t.prototype.componentDidUpdate=function(e){var t,r;return s(this,void 0,void 0,function(){var e,n,s,a,i,l,c;return o(this,function(o){switch(o.label){case 0:return e=this.props,n=this.codeRef.current,(null===(t=null==this?void 0:this.monaco)||void 0===t?void 0:t.editor)&&n?(s=e.tabSize,a=null!==(r=u(this.props))&&void 0!==r?r:"",i=this.resolveLanguage(),l=this.registerAndGetTheme(),this.monaco.editor.setTheme(l),[4,this.monaco.editor.colorize(a,i,{tabSize:s})]):[3,2];case 1:c=o.sent(),n.innerHTML=c,o.label=2;case 2:return[2]}})})},t.prototype.handleMonaco=function(e){var t,r;return s(this,void 0,void 0,function(){var n,s,a,i,l,c;return o(this,function(o){switch(o.label){case 0:return e?(this.monaco=e,n=this.props.tabSize,s=null!==(t=u(this.props))&&void 0!==t?t:"",a=this.resolveLanguage(),(i=this.codeRef.current)&&(null===(r=this.monaco)||void 0===r?void 0:r.editor)?(l=this.registerAndGetTheme(),this.monaco.editor.setTheme(l),[4,this.monaco.editor.colorize(s,a,{tabSize:n})]):[3,2]):[2];case 1:c=o.sent(),i.innerHTML=c,o.label=2;case 2:return[2]}})})},t.prototype.resolveLanguage=function(e){var t=null!=e?e:this.props,o=t.customLang,r=t.data,n=t.language,s=void 0===n?"plaintext":n;return c(s)&&(s=l(s,r)),o&&o.name&&(s=o.name),s},t.prototype.registerAndGetTheme=function(){var e,t,o,n,s=this.monaco,a=this.props,i=a.theme,u=a.editorTheme;if(u=u||("dark"===i?"vs-dark":"vs"),!s)return u;if(this.customLang&&this.customLang.name&&Array.isArray(this.customLang.tokens)&&this.customLang.tokens.length){var l=this.customLang.name,c=(null===(o=this.customLang)||void 0===o?void 0:o.colors)&&(0,m.default)(null===(n=this.customLang)||void 0===n?void 0:n.colors)?this.customLang.colors:{};s.languages.register({id:l});var h=[],p=[];try{for(var d=r(this.customLang.tokens),g=d.next();!g.done;g=d.next()){var v=g.value,f=new RegExp(v.regex,v.regexFlags||void 0);h.push([f,v.name]),p.push({token:v.name,foreground:v.color,background:v.background,fontStyle:v.fontStyle})}}catch(L){e={error:L}}finally{try{g&&!g.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}return s.languages.setMonarchTokensProvider(l,{tokenizer:{root:h}}),s.editor.defineTheme(l,{base:"vs",inherit:!1,rules:p,colors:c}),l}return u},t.prototype.render=function(){var e=u(this.props),t=this.props,o=t.className,r=t.maxHeight,n=t.style,s=void 0===n?{}:n,a=t.classnames,i=t.editorTheme,l=t.customLang,c=t.wordWrap,h=t.wrapperComponent,p=this.resolveLanguage(),m="string"==typeof e&&e.split(/\r?\n/).length>1,g=h||(m?"pre":"code");return l&&(this.customLang=l),r&&(s.maxHeight=s.maxHeight||r,s.overflow="auto"),d.createElement(g,{ref:this.codeRef,className:a("Code",{"Code--dark":i&&["vs-dark","hc-black"].includes(i),"Code-pre-wrap":"pre"===g,"word-break":c},o),style:s,"data-lang":p},e)},t.propsList=["language","editorTheme","tabSize","wordWrap","customLang","style"],t.defaultProps={language:"plaintext",tabSize:4,wordWrap:!0},t}(d.Component),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),a([h({type:"code"})],t)}(g);export{v as CodeRenderer,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as a,t as s}from"./Collapse-CknZKNKz.js";export{a as CollapseRenderer,s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t as s}from"./react-BW4ssgUo.js";import{a,i as o,n as t,o as n,r as l,t as r}from"./tslib.es6-C2q27PUR.js";import{J as i,Nn as p,Z as d,dt as c,ht as m,it as h,vn as u}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t as s}from"./react-BW4ssgUo.js";import{a,i as o,n as t,o as n,r as l,t as r}from"./tslib.es6-C2q27PUR.js";import{J as i,Nn as p,Z as d,dt as c,ht as m,it as h,vn as u}from"./esm-BMvKJM5q.js";import{Mt as C}from"./esm-BbZME5Ac.js";import{s as y}from"./PopUp-DaheG-Vv.js";var f=/* @__PURE__ */e(s()),b=/* @__PURE__ */e(u()),v=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.basicCollapse=f.createRef(),s}return o(s,e),s.prototype.handleCollapseChange=function(e){return t(this,void 0,void 0,function(){var s,o,t,n,l,r;return a(this,function(a){switch(a.label){case 0:return s=this.props,o=s.dispatchEvent,t=s.onCollapse,n=m(this.props,{collapsed:e}),[4,o("change",n)];case 1:return l=a.sent(),[4,o(e?"collapse":"expand",n)];case 2:return r=a.sent(),(null==l?void 0:l.prevented)||(null==r?void 0:r.prevented)||null==t||t(e),[2]}})})},s.prototype.doAction=function(e,s,a,o){var t,n,l,r;if(!this.props.disabled&&!1!==this.props.collapsable&&["expand","collapse"].includes(e.actionType)){var i="collapse"===e.actionType,p=null===(l=null===(n=null===(t=this.basicCollapse)||void 0===t?void 0:t.current)||void 0===n?void 0:n.getWrappedInstance)||void 0===l?void 0:l.call(n);null===(r=null==p?void 0:p.changeCollapsedState)||void 0===r||r.call(p,i)}},s.prototype.render=function(){var e=this.props,s=e.id,a=e.classPrefix,o=e.classnames,t=e.size,n=e.wrapperComponent,l=e.headingComponent,p=e.className,c=e.style,m=e.headingClassName,h=e.children,u=e.titlePosition,v=e.headerPosition,g=e.title,N=e.collapseTitle,w=e.collapseHeader,x=e.header,j=e.body,E=e.bodyClassName,P=e.render,S=e.collapsable;e.translate;var O=e.mountOnEnter,U=e.unmountOnExit,I=e.showArrow,T=e.expandIcon,A=e.disabled,F=e.collapsed,k=e.propsUpdate,z=e.mobileUI,H=e.divideLine,L=e.enableFieldSetStyle,R=e.themeCss,W=e.wrapperCustomStyle,B=g||x||"";return f.createElement(f.Fragment,null,f.createElement(C,{id:s,ref:this.basicCollapse,classnames:o,classPrefix:a,mountOnEnter:O,unmountOnExit:U,size:t,wrapperComponent:n,headingComponent:l,className:(0,b.default)(p,d(r(r({},this.props),{name:"baseControlClassName",id:s,themeCss:R})),d(r(r({},this.props),{name:"wrapperCustomStyle",id:s,themeCss:W}))),style:c,headingClassName:(0,b.default)(m,d(r(r({},this.props),{name:"headerControlClassName",id:s,themeCss:R}))),bodyClassName:(0,b.default)(E,d(r(r({},this.props),{name:"bodyControlClassName",id:s,themeCss:R}))),headerPosition:u||v,collapsable:S,collapsed:F,showArrow:I,disabled:A,propsUpdate:k,expandIcon:T?"object"==typeof T.icon?f.createElement(y,{cx:o,icon:T.icon,className:o("Collapse-icon-tranform")}):P("arrow-icon",T||"",{className:o("Collapse-icon-tranform")}):null,collapseHeader:N||w?P("heading",N||w):null,header:B?P("heading",B):null,body:h?"function"==typeof h?h(this.props):h:j?P("body",j):null,mobileUI:z,onCollapse:this.handleCollapseChange,divideLine:H,enableFieldSetStyle:L}),f.createElement(i,r({},this.props,{config:{wrapperCustomStyle:W,id:s,themeCss:R,classNames:[{key:"baseControlClassName"},{key:"bodyControlClassName",weights:{default:{inner:".".concat(a,"Collapse-content")}}},{key:"headerControlClassName"}]},env:this.props.env})))},s.propsList=["collapsable","collapsed","collapseTitle","showArrow","headerPosition","bodyClassName","headingClassName","collapseHeader","size"],l([p,n("design:type",Function),n("design:paramtypes",[Boolean]),n("design:returntype",Promise)],s.prototype,"handleCollapseChange",null),s}(f.Component),g=function(e){function s(s,a){var o=e.call(this,s)||this;return a.registerComponent(o),o}return o(s,e),s.prototype.componentWillUnmount=function(){this.context.unRegisterComponent(this)},s.contextType=c,l([h({type:"collapse"}),n("design:paramtypes",[Object,Object])],s)}(v);export{g as n,v as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as s,i as a,n,o,r,t as l}from"./tslib.es6-C2q27PUR.js";import{Ii as i,J as p,Nn as c,Z as m,Zr as d,ht as u,it as h,vn as y}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t}from"./react-BW4ssgUo.js";import{a as s,i as a,n,o,r,t as l}from"./tslib.es6-C2q27PUR.js";import{Ii as i,J as p,Nn as c,Z as m,Zr as d,ht as u,it as h,vn as y}from"./esm-BMvKJM5q.js";import{jt as f}from"./esm-BbZME5Ac.js";var C=/* @__PURE__ */e(t()),v=/* @__PURE__ */e(y()),g=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.handleCollapseChange=function(e,t,a){return n(this,void 0,void 0,function(){var n;return s(this,function(s){switch(s.label){case 0:return[4,(0,this.props.dispatchEvent)("change",u(this.props,{activeKeys:e,collapseId:t,collapsed:a}))];case 1:return null==(n=s.sent())||n.prevented,[2]}})})},t.prototype.render=function(){var e=this.props,t=e.defaultActiveKey,s=e.accordion,a=e.expandIcon,n=e.expandIconPosition,o=e.body,r=e.className,c=e.style,u=e.render,h=e.mobileUI,y=e.data,g=e.id,b=e.themeCss,S=e.wrapperCustomStyle,I=e.env,j=this.props.enableFieldSetStyle;return d(j)&&(j=i(j,y,"| raw")),C.createElement(C.Fragment,null,C.createElement(f,{defaultActiveKey:t,accordion:s,expandIcon:a,expandIconPosition:n,className:(0,v.default)(r,m(l(l({},this.props),{name:"className",id:g,themeCss:b})),m(l(l({},this.props),{name:"wrapperCustomStyle",id:g,themeCss:S}))),style:c,mobileUI:h,onCollapseChange:this.handleCollapseChange},u("body",o||"",{enableFieldSetStyle:j})),C.createElement(p,l({},this.props,{config:{wrapperCustomStyle:S,id:g,themeCss:b,classNames:[{key:"className"}]},env:I})))},t.defaultProps={enableFieldSetStyle:!0},r([c,o("design:type",Function),o("design:paramtypes",[Array,Object,Boolean]),o("design:returntype",Promise)],t.prototype,"handleCollapseChange",null),t}(C.Component),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),r([h({type:"collapse-group"})],t)}(g);export{g as CollapseGroupRender,b as CollapseGroupRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t as r}from"./react-BW4ssgUo.js";import{i as o,r as t}from"./tslib.es6-C2q27PUR.js";import{$n as s,it as l}from"./esm-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-DcYi-9oA.js";import{t as r}from"./react-BW4ssgUo.js";import{i as o,r as t}from"./tslib.es6-C2q27PUR.js";import{$n as s,it as l}from"./esm-BMvKJM5q.js";var a=/* @__PURE__ */e(r()),n=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.prototype.render=function(){var e=this.props,r=e.className,o=e.style,t=e.classnames,l=e.defaultColor,n=e.showValue,i=s(this.props)||l;return a.createElement("div",{className:t("ColorField",r),style:o},a.createElement("i",{className:t("ColorField-previewIcon"),style:{backgroundColor:i}}),n&&i?a.createElement("span",{className:t("ColorField-value")},i):null)},r.defaultProps={className:"",defaultColor:"",showValue:!0},r}(a.Component),i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),t([l({type:"color"})],r)}(n);export{n as ColorField,i as ColorFieldRenderer};
|