@txgw/payout-components 0.6.0 → 1.0.0
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 +1 -0
- package/dist/Action-B-ZQiXEF.js +1 -0
- package/dist/Action-D_mwIN-5.js +1 -0
- package/dist/Alert-UVAjNb7s.js +1 -0
- package/dist/AnchorNav-BjgLgX6m.js +1 -0
- package/dist/App-ncbuqXE2.js +1 -0
- package/dist/Audio-B3lYr3U2.js +1 -0
- package/dist/Avatar-XqOgD9ui.js +1 -0
- package/dist/BarCode-B_ISp_TQ.js +1 -0
- package/dist/BarCode-Cg3O5s_0.js +1 -0
- package/dist/Breadcrumb-CTA88DWN.js +1 -0
- package/dist/ButtonGroup-pVY35HQ1.js +1 -0
- package/dist/ButtonGroupSelect-Bt6Jwo5u.js +1 -0
- package/dist/ButtonGroupSelect-C_qcxdHQ.js +1 -0
- package/dist/ButtonToolbar-CUNT7FK4.js +1 -0
- package/dist/CRUD-DRudIc-q.js +1 -0
- package/dist/CRUD2-CYGF0EMp.js +1 -0
- package/dist/Calendar-BW4diX9T.js +1 -0
- package/dist/Card-B_1cg_nQ.js +1 -0
- package/dist/Card-C4m8b89W.js +1 -0
- package/dist/Card2-BXG0mDni.js +1 -0
- package/dist/Cards-ak9W7Ggn.js +1 -0
- package/dist/Carousel-CxCXr052.js +1 -0
- package/dist/ChainedSelect-BcWT4XqI.js +1 -0
- package/dist/Chart-BxLGXl9u.js +1 -0
- package/dist/ChartRadios-DstdFZq_.js +1 -0
- package/dist/Checkbox-C4MOpWIk.js +1 -0
- package/dist/Checkbox-nA8maqiS.js +1 -0
- package/dist/Checkboxes-DaAz8fEe.js +1 -0
- package/dist/Code-C7wxKt-Z.js +1 -0
- package/dist/Collapse-B7DWMzHM.js +1 -0
- package/dist/Collapse-BW-pXRle.js +1 -0
- package/dist/CollapseGroup-C5HPq_8j.js +1 -0
- package/dist/Color-BpoN5ndM.js +1 -0
- package/dist/ColorPicker-B-eyCI0N.js +1 -0
- package/dist/ColumnToggler-BCOanQf7.js +1 -0
- package/dist/ColumnToggler-BNmJdTb9.js +1 -0
- package/dist/Combo-DVBtMl-s.js +1 -0
- package/dist/ConditionBuilder-bQtsEBIu.js +1 -0
- package/dist/Container-BCEndXiL.js +1 -0
- package/dist/Control-DBSbZmLZ.js +1 -0
- package/dist/Custom-CVj3O57n.js +1 -0
- package/dist/{Date-C9Kib09x.js → Date-CuBE2XD8.js} +1 -333
- package/dist/DateRange-Bd9o9Fl_.js +1 -0
- package/dist/Dialog-DzlFCRtq.js +1 -0
- package/dist/DiffEditor-Cccg35Ly.js +1 -0
- package/dist/Divider-gy0IUviz.js +1 -0
- package/dist/Drawer-C37JbURK.js +1 -0
- package/dist/DropDownButton-DO4hK0Kp.js +1 -0
- package/dist/Each-BfbwJEMb.js +1 -0
- package/dist/FieldSet-D3WMli0B.js +1 -0
- package/dist/FieldSet-D8oj-Vb4.js +1 -0
- package/dist/Flex-CXooKsRI.js +1 -0
- package/dist/Formula-KUisLb0j.js +1 -0
- package/dist/Grid2D-6cCqZG6j.js +1 -0
- package/dist/GridNav-Bvueqq-Q.js +1 -0
- package/dist/Group-EswEogaf.js +1 -0
- package/dist/HBox-DGIyZMV6.js +1 -0
- package/dist/HBox-DyS1JJHh.js +1 -0
- package/dist/Hidden-DwrGEKjM.js +1 -0
- package/dist/IFrame-BT4_03AI.js +1 -0
- package/dist/Icon-BNP1oNtQ.js +1 -0
- package/dist/IconPicker-CIL2Wob5.js +1 -0
- package/dist/IconPickerIcons-DN0pqJHt.js +1 -0
- package/dist/IconSelect-D1CPpZAU.js +1 -0
- package/dist/IconSelectStore-BM_zyU2d.js +1 -0
- package/dist/Image--xtRdgd5.js +1 -0
- package/dist/Image-BAenzG4k.js +1 -0
- package/dist/Images-zPCUHCyK.js +1 -0
- package/dist/InputArray-BnERrQT7.js +1 -0
- package/dist/InputCity-Bidd_z8i.js +1 -0
- package/dist/InputColor-D0Kf9p1Q.js +1 -0
- package/dist/InputDate-CzCxGUx_.js +1 -0
- package/dist/InputDateRange-Bp3owFpS.js +1 -0
- package/dist/InputExcel-DUdIptAN.js +1 -0
- package/dist/InputFile-DquJWe_S.js +1 -0
- package/dist/InputFile-X4G2zOvt.js +1 -0
- package/dist/InputFormula-Cu3Oc5xq.js +1 -0
- package/dist/InputGroup-RqgoJFcl.js +1 -0
- package/dist/InputImage-CdVzSsuR.js +1 -0
- package/dist/InputImage-Cv5FkWaC.js +1 -0
- package/dist/InputMonthRange-BTR1bISz.js +1 -0
- package/dist/InputNumber-C0rip8fu.js +1 -0
- package/dist/InputQuarterRange-D1X-Z2tN.js +1 -0
- package/dist/InputRange-Dq-ePI8S.js +1 -0
- package/dist/InputRating-_KtpPZno.js +1 -0
- package/dist/InputRepeat-D3Drjx3I.js +1 -0
- package/dist/InputRichText-0TZzQzcy.js +1 -0
- package/dist/InputRichText-CyfWV74o.js +1 -0
- package/dist/InputSignature-CXV7thvH.js +1 -0
- package/dist/InputSubForm-CQuaHTe3.js +1 -0
- package/dist/InputTable-CJ4Dl3xA.js +1 -0
- package/dist/InputTag-BAjQnJh1.js +1 -0
- package/dist/InputText-Ci8XzpKK.js +1 -0
- package/dist/InputTree-Coq2YfRD.js +1 -0
- package/dist/InputVerificationCode-CZbzrwa_.js +1 -0
- package/dist/InputYearRange-CbdR1nuY.js +1 -0
- package/dist/JSONSchema-Z9eJulgD.js +1 -0
- package/dist/JSONSchemaEditor-qtbO2bWX.js +1 -0
- package/dist/Json-I_TX2D01.js +1 -0
- package/dist/Link-DoCudSpW.js +1 -0
- package/dist/List-BItkFb-A.js +1 -0
- package/dist/List-Ccx0hLxM.js +1 -0
- package/dist/ListSelect-f6rDx6N2.js +1 -0
- package/dist/LocationPicker-CZd07tME.js +1 -0
- package/dist/Log--rbcIY4g.js +1 -0
- package/dist/Mapping-rpBDdw-o.js +1 -0
- package/dist/Markdown-BlxcmdTl.js +1 -0
- package/dist/Markdown-M8qWm8IY.js +1 -0
- package/dist/MatrixCheckboxes-DCnC8NGQ.js +1 -0
- package/dist/MultilineText-CHrvTjY_.js +1 -0
- package/dist/Nav-CDJbX6q3.js +1 -0
- package/dist/NestedSelect-Uxvg89Pe.js +1 -0
- package/dist/Number-tVXWVP4G.js +1 -0
- package/dist/OfficeViewer-Cz447nMa.js +1 -0
- package/dist/Operation-JkWrokFn.js +1 -0
- package/dist/Page-C5qOXz9A.js +1 -0
- package/dist/Pagination-DQoNu1Qo.js +1 -0
- package/dist/PaginationWrapper-07h0-dmz.js +1 -0
- package/dist/Panel--P2Ov47t.js +1 -0
- package/dist/Password-CF1feQa2.js +1 -0
- package/dist/Picker-CKV0_5vN.js +1 -0
- package/dist/Plain-CnRq3KDS.js +1 -0
- package/dist/PopUp-xCiesfUA.js +104 -0
- package/dist/Portlet-Agkkko8B.js +1 -0
- package/dist/Progress-D-JOmIgT.js +1 -0
- package/dist/Property-BoNnFGV9.js +1 -0
- package/dist/QRCode-BFfhBYxV.js +2 -0
- package/dist/Radio-BRNZ49gi.js +1 -0
- package/dist/Radios-0CT3XjKZ.js +1 -0
- package/dist/Remark-BuTyhR9e.js +1 -0
- package/dist/Remark-XZDS4Z3Y.js +1 -0
- package/dist/RichText-wfPXQmb8.js +1 -0
- package/dist/SearchBox-__1UKInO.js +1 -0
- package/dist/Select-D9nj7O4q.js +1 -0
- package/dist/Service-fGzhGL0m.js +1 -0
- package/dist/Shape-C9r17D5A.js +1 -0
- package/dist/Slider-BryEccA-.js +1 -0
- package/dist/SparkLine-CcOuk0we.js +1 -0
- package/dist/Spinner-qyJRJu1C.js +1 -0
- package/dist/StaticHoc-C0bGgnQS.js +1 -0
- package/dist/Status-BPtAA54m.js +1 -0
- package/dist/Steps-DsmYH15c.js +1 -0
- package/dist/Switch-CMkhfkPn.js +1 -0
- package/dist/SwitchContainer-BLxuSTyZ.js +1 -0
- package/dist/Table-DsxWjUvF.js +1 -0
- package/dist/Table-HvHD2tS0.js +1 -0
- package/dist/Table2-C4HNs_R1.js +1 -0
- package/dist/TableView-zfvmfF6E.js +1 -0
- package/dist/Tabs-BeQyEedg.js +1 -0
- package/dist/TabsTransfer-BsYcLplM.js +1 -0
- package/dist/TabsTransferPicker-SS6hg5Hc.js +1 -0
- package/dist/Tag-IL_v32Aa.js +1 -0
- package/dist/Tasks-D6GQavXw.js +1 -0
- package/dist/Textarea-Ck0rJ3Ff.js +1 -0
- package/dist/Timeline-BT7aVGPP.js +1 -0
- package/dist/TooltipWrapper-Bx_3339q.js +1 -0
- package/dist/Tpl-BiWl-0O_.js +1 -0
- package/dist/Transfer-BwyAe8c8.js +1 -0
- package/dist/Transfer-CldOhDuU.js +1 -0
- package/dist/TransferPicker-C2cth5_r.js +1 -0
- package/dist/TreeSelect-D9-PBXkV.js +1 -0
- package/dist/UUID-R41mBvtB.js +1 -0
- package/dist/UserSelect-Cq56ZLkZ.js +1 -0
- package/dist/VBox-BEdXFwFf.js +1 -0
- package/dist/Video-BIQhs4lA.js +1 -0
- package/dist/WebComponent-Vzfd9UEy.js +1 -0
- package/dist/Wizard-BwEpr22M.js +1 -0
- package/dist/Words-C7JrGNdU.js +1 -0
- package/dist/Wrapper-DIGr8a29.js +1 -0
- package/dist/_getTag-x788Ng9o.js +1 -0
- package/dist/beneficiary-form-_xPce615.js +10 -0
- package/dist/client-BoE-UyzU.js +1 -0
- package/dist/crypto-js-Cv2Y8hvs.js +1 -0
- package/dist/doc-CmSOujco.js +1 -0
- package/dist/es-Cn6dJrVn.js +1 -0
- package/dist/esm-CofciBhy.js +4 -0
- package/dist/esm-DyRrwLZv.js +1 -0
- package/dist/esm-vG8eylH_.js +28 -0
- package/dist/function-C8ta9DKb.js +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -120
- package/dist/index.js +1 -96
- package/dist/isEqual-BxlJ5vH7.js +1 -0
- package/dist/main-CLaM-mkN.js +1 -0
- package/dist/mi18n-react.esm-BFa-Q7wX.js +1 -0
- package/dist/objectSpread2-yExSo67O.js +1 -0
- package/dist/omitBy-CFU0pICA.js +1 -0
- package/dist/papaparse.min-CU0u_rom.js +1 -0
- package/dist/react-BW4ssgUo.js +1 -0
- package/dist/react-cropper.es-zEJdZmmN.js +1 -0
- package/dist/react-dom-DmgFzc6z.js +1 -0
- package/dist/rolldown-runtime-DcYi-9oA.js +1 -0
- package/dist/tslib.es6-C2q27PUR.js +1 -0
- package/dist/xor-ziNg7OgH.js +1 -0
- package/package.json +20 -15
- package/dist/AMIS--SZXSfKF.js +0 -23
- package/dist/Action-D7O1nxY2.js +0 -10
- package/dist/Action-DpRShNiD.js +0 -646
- package/dist/Alert-sakO0sgo.js +0 -34
- package/dist/AnchorNav-1OrNpCPU.js +0 -88
- package/dist/App-mzRv6t1L.js +0 -213
- package/dist/Audio-CmGRzA8C.js +0 -324
- package/dist/Avatar-C0g_Dcsr.js +0 -75
- package/dist/BarCode-Bgr2-a69.js +0 -35
- package/dist/BarCode-f_fuunrs.js +0 -2708
- package/dist/Breadcrumb-3pb8787J.js +0 -38
- package/dist/ButtonGroup-DBJgP_U6.js +0 -16
- package/dist/ButtonGroupSelect-BV8FHgm0.js +0 -93
- package/dist/ButtonGroupSelect-Cl2irnYh.js +0 -8
- package/dist/ButtonToolbar-DMCBgh9w.js +0 -36
- package/dist/CRUD-DFP1DIcc.js +0 -1048
- package/dist/CRUD2-BGpsdJ3D.js +0 -660
- package/dist/Calendar-D_aFq70_.js +0 -18
- package/dist/Card-C54K-VRd.js +0 -14
- package/dist/Card-FmRg7dLO.js +0 -346
- package/dist/Card2-Blr9gGoC.js +0 -68
- package/dist/Cards-B7J3bYtx.js +0 -485
- package/dist/Carousel-Ba4JeK7n.js +0 -414
- package/dist/ChainedSelect-CUU7qCFQ.js +0 -212
- package/dist/Chart-BmOD9NEG.js +0 -276
- package/dist/ChartRadios-Bm7pnICh.js +0 -93
- package/dist/Checkbox-CcjG9Mv4.js +0 -157
- package/dist/Checkbox-yvPZaH8N.js +0 -10
- package/dist/Checkboxes-Babxqar9.js +0 -285
- package/dist/Code-B7FhTic-.js +0 -111
- package/dist/Collapse-BYdoEOZ2.js +0 -124
- package/dist/Collapse-C9riUcKK.js +0 -9
- package/dist/CollapseGroup-B7DmpWY1.js +0 -74
- package/dist/Color-BM1Qa0C1.js +0 -34
- package/dist/ColorPicker-BXmi_OWm.js +0 -5258
- package/dist/ColumnToggler-3QYyVjVf.js +0 -81
- package/dist/ColumnToggler-D0NlxwMq.js +0 -10
- package/dist/ColumnToggler-DLFwzPef.js +0 -228
- package/dist/Combo-BsouWVHB.js +0 -748
- package/dist/Combo-Cabifvbg.js +0 -9
- package/dist/ConditionBuilder-BacjsaTh.js +0 -113
- package/dist/Container-C5-66abH.js +0 -86
- package/dist/Control-krTArjIv.js +0 -38
- package/dist/Custom-DawY4LgO.js +0 -73
- package/dist/DateRange-D2lKQT_J.js +0 -34
- package/dist/Dialog-oNlQLXnk.js +0 -508
- package/dist/DiffEditor-DY8XdtJS.js +0 -104
- package/dist/Divider-BgpLhaqf.js +0 -70
- package/dist/Drawer-DslUxLot.js +0 -448
- package/dist/DropDownButton-BIuAagmC.js +0 -193
- package/dist/Each-CA8gaJkL.js +0 -79
- package/dist/FieldSet-Cg1pE5gA.js +0 -64
- package/dist/FieldSet-DVAa2H_Q.js +0 -10
- package/dist/Flex-Baz4bI9u.js +0 -99
- package/dist/Formula-ABhgdx_Q.js +0 -72
- package/dist/Grid2D-DmdOVnhu.js +0 -84
- package/dist/GridNav-lHAunT1M.js +0 -56
- package/dist/Group-7sGnjMli.js +0 -85
- package/dist/HBox-DxchKWfv.js +0 -7
- package/dist/HBox-s88aG83B.js +0 -48
- package/dist/Hidden-BrTWoL8d.js +0 -27
- package/dist/IFrame-DaZ1v2-9.js +0 -141
- package/dist/Icon-DNbdrsn8.js +0 -74
- package/dist/IconPicker-DqNlu5Zd.js +0 -230
- package/dist/IconPickerIcons-dHFcDHrv.js +0 -15
- package/dist/IconSelect-CvBITEcy.js +0 -254
- package/dist/IconSelectStore-CTqJPujB.js +0 -45
- package/dist/Image-BBs8tnny.js +0 -258
- package/dist/Image-DM9_Ii2b.js +0 -9
- package/dist/Images-cRmH380W.js +0 -377
- package/dist/InputArray-Dov-RBrP.js +0 -42
- package/dist/InputCity-owVpsIaD.js +0 -351
- package/dist/InputColor-DhVJhPp6.js +0 -53
- package/dist/InputDate-DLOwHbwT.js +0 -10
- package/dist/InputDate-DWaIvnAp.js +0 -292
- package/dist/InputDateRange-CnGNwIFe.js +0 -10
- package/dist/InputDateRange-Diqw3JLp.js +0 -170
- package/dist/InputExcel-BjWNYvnN.js +0 -427
- package/dist/InputFile-89BOwWJE.js +0 -601
- package/dist/InputFile-DOym0HDc.js +0 -10
- package/dist/InputFormula-CV5j31Ow.js +0 -75
- package/dist/InputGroup-C7O2ba0g.js +0 -112
- package/dist/InputImage-BF7DAF8L.js +0 -12
- package/dist/InputImage-DcsVQf7c.js +0 -834
- package/dist/InputMonthRange-BjD3hmwp.js +0 -76
- package/dist/InputNumber-DKMOkba-.js +0 -255
- package/dist/InputQuarterRange-DZKnkZ_s.js +0 -76
- package/dist/InputRange-DiHKf3tP.js +0 -266
- package/dist/InputRating-Bc8Od5b8.js +0 -115
- package/dist/InputRepeat-BhF5KVB2.js +0 -179
- package/dist/InputRichText-BBBdDFA2.js +0 -7
- package/dist/InputRichText-CieHn0fO.js +0 -198
- package/dist/InputSignature-CbfGjJlU.js +0 -495
- package/dist/InputSubForm-BkM_3Rjg.js +0 -236
- package/dist/InputTable-CgOqC6Pc.js +0 -900
- package/dist/InputTag-35kCFM5X.js +0 -464
- package/dist/InputText-BbEjGBtv.js +0 -541
- package/dist/InputTree-DchkyMbL.js +0 -311
- package/dist/InputVerificationCode-kMxc8wW7.js +0 -62
- package/dist/InputYearRange-WJKJeloR.js +0 -76
- package/dist/JSONSchema-Bs0EWcHb.js +0 -47
- package/dist/JSONSchemaEditor-BoAK9FOL.js +0 -66
- package/dist/Json-DFjy1HRw.js +0 -80
- package/dist/Link-nYGLB6gy.js +0 -57
- package/dist/List-D3183f4Z.js +0 -14
- package/dist/List-W3IAZR_6.js +0 -671
- package/dist/ListSelect-DWGbHVxd.js +0 -104
- package/dist/LocationPicker-2G9yOxtm.js +0 -121
- package/dist/Log-D6VU702y.js +0 -207
- package/dist/Mapping-BATMD_xR.js +0 -118
- package/dist/Markdown-Baxbu8lV.js +0 -53
- package/dist/Markdown-Cg-xahnQ.js +0 -6205
- package/dist/MatrixCheckboxes-B9hmFakW.js +0 -262
- package/dist/MultilineText-0fMQhUCY.js +0 -28
- package/dist/Nav-DHIehZOG.js +0 -639
- package/dist/NestedSelect-tQztH4PI.js +0 -517
- package/dist/Number-Cndoqeyx.js +0 -40
- package/dist/OfficeViewer-BVD_e5eZ.js +0 -169
- package/dist/Operation-DIv6n9dT.js +0 -36
- package/dist/Page-WoZtIIfk.js +0 -459
- package/dist/Pagination-DHvYHd_3.js +0 -61
- package/dist/PaginationWrapper-CtIJOXdw.js +0 -58
- package/dist/Panel-Dt4KQrKa.js +0 -156
- package/dist/Password-Wjfq7MSA.js +0 -45
- package/dist/Picker-Cu52ukRg.js +0 -488
- package/dist/Plain-DIlG753a.js +0 -62
- package/dist/PopUp-Bgkvnd4X.js +0 -2761
- package/dist/Portlet-3Nh2cWeq.js +0 -107
- package/dist/Progress-Dh2FTsky.js +0 -89
- package/dist/Property-DRSklFlT.js +0 -72
- package/dist/QRCode-BeUD-g8-.js +0 -1139
- package/dist/Radio-DrJJfNFI.js +0 -89
- package/dist/Radios-CL3mreXa.js +0 -176
- package/dist/Remark-Cmo-r6dp.js +0 -81
- package/dist/Remark-DuAbEmCW.js +0 -9
- package/dist/RichText-jkERm8rC.js +0 -13807
- package/dist/SearchBox-CTxSMcV2.js +0 -112
- package/dist/Select-D3LTuHwe.js +0 -362
- package/dist/Service-CN2v_Z9z.js +0 -347
- package/dist/Shape-Bi93tLCN.js +0 -37
- package/dist/Slider-C0jqeBGt.js +0 -78
- package/dist/SparkLine-Ce6-mdqG.js +0 -38
- package/dist/Spinner-DZDEct1A.js +0 -27
- package/dist/StaticHoc-BAdofX5w.js +0 -80
- package/dist/Status-CDC2e2_o.js +0 -93
- package/dist/Steps-CGyTaaVI.js +0 -271
- package/dist/Switch-QA0l7uEg.js +0 -100
- package/dist/SwitchContainer-zXvaPFlG.js +0 -93
- package/dist/Table-B8tWpiPU.js +0 -13
- package/dist/Table-DzGbNFxu.js +0 -3190
- package/dist/Table2-CQZ3und9.js +0 -1198
- package/dist/TableView-nlFBhvL1.js +0 -115
- package/dist/Tabs-XleB-2Mc.js +0 -487
- package/dist/TabsTransfer-CLLGXAkP.js +0 -188
- package/dist/TabsTransfer-Cs_Rg0TU.js +0 -11
- package/dist/TabsTransferPicker-VA3Vlla-.js +0 -99
- package/dist/Tag-tr5RKBfl.js +0 -75
- package/dist/Tasks-C2-ayUd-.js +0 -305
- package/dist/Textarea-_KbIxQet.js +0 -132
- package/dist/Timeline-CctoJRQo.js +0 -87
- package/dist/TooltipWrapper-BGNr8U2K.js +0 -83
- package/dist/Tpl-C28lpITc.js +0 -152
- package/dist/Transfer-Hjc9zR8W.js +0 -288
- package/dist/Transfer-tYS9Rx8U.js +0 -10
- package/dist/TransferPicker-C7Wzyuct.js +0 -123
- package/dist/TreeSelect-DAlWCEqs.js +0 -456
- package/dist/UUID-B5UZnlxW.js +0 -33
- package/dist/UserSelect-DqZZQB83.js +0 -170
- package/dist/VBox-C1OZZT8-.js +0 -38
- package/dist/Video-C1FRwLLL.js +0 -4068
- package/dist/WebComponent-g8Zc9zXp.js +0 -29
- package/dist/Wizard-DkqCsGz-.js +0 -585
- package/dist/Words-DUuKqyIf.js +0 -113
- package/dist/Wrapper-DmZ78GYG.js +0 -39
- package/dist/_getTag-CWmGzIun.js +0 -509
- package/dist/beneficiary-form-DCl2L16P.js +0 -3773
- package/dist/client-BEyTOBXT.js +0 -26
- package/dist/crypto-js-DUFYRUag.js +0 -3694
- package/dist/doc-B-Im0Knb.js +0 -1731
- package/dist/es-CsUppg1O.js +0 -837
- package/dist/esm-Cj_BRpNI.js +0 -35832
- package/dist/esm-DEyK_c3W.js +0 -25349
- package/dist/esm-SCCPj-cs.js +0 -93004
- package/dist/function-CNJMA2ft.js +0 -3151
- package/dist/isEqual-E2NjjS0_.js +0 -641
- package/dist/main-Bf7MY24z.js +0 -4475
- package/dist/mi18n-react.esm-y-nzmW0A.js +0 -1138
- package/dist/objectSpread2-smpSKONV.js +0 -27
- package/dist/omitBy-CD5n2TA7.js +0 -39
- package/dist/papaparse.min-3xa9r8Qi.js +0 -496
- package/dist/react-RxxVsDMo.js +0 -1205
- package/dist/react-cropper.es-anJ2KE7h.js +0 -1260
- package/dist/react-dom-D1mxcNoQ.js +0 -16864
- package/dist/react-g40aymqL.js +0 -2
- package/dist/rolldown-runtime-DwW8Tac2.js +0 -21
- package/dist/tslib.es6-DJiA3ePV.js +0 -170
- package/dist/xor-D-ggRBpm.js +0 -20
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { s as __toESM } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
-
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
|
-
import { i as __extends, r as __decorate, t as __assign } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import "./function-CNJMA2ft.js";
|
|
5
|
-
import "./isEqual-E2NjjS0_.js";
|
|
6
|
-
import { Ni as resolveVariableAndFilter, it as Renderer, qt as require_mapValues } from "./esm-DEyK_c3W.js";
|
|
7
|
-
import "./react-dom-D1mxcNoQ.js";
|
|
8
|
-
var import_react = /* @__PURE__ */ __toESM(require_react()), import_mapValues = /* @__PURE__ */ __toESM(require_mapValues()), WebComponent = function(e) {
|
|
9
|
-
__extends(o, e);
|
|
10
|
-
function o() {
|
|
11
|
-
return e !== null && e.apply(this, arguments) || this;
|
|
12
|
-
}
|
|
13
|
-
return o.prototype.renderBody = function() {
|
|
14
|
-
var e = this.props, o = e.body, s = e.render;
|
|
15
|
-
return o ? s("body", o) : null;
|
|
16
|
-
}, o.prototype.render = function() {
|
|
17
|
-
var e = this.props, o = e.tag, s = e.props, c = e.data, l = e.style, u = (0, import_mapValues.default)(s, function(e) {
|
|
18
|
-
return typeof e == "string" && resolveVariableAndFilter(e, c, "| raw") || e;
|
|
19
|
-
}), d = o || "div";
|
|
20
|
-
return import_react.createElement(d, __assign({}, u, { style: l }), this.renderBody());
|
|
21
|
-
}, o;
|
|
22
|
-
}(import_react.Component), WebComponentRenderer = function(e) {
|
|
23
|
-
__extends(o, e);
|
|
24
|
-
function o() {
|
|
25
|
-
return e !== null && e.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
return o = __decorate([Renderer({ type: "web-component" })], o), o;
|
|
28
|
-
}(WebComponent);
|
|
29
|
-
export { WebComponentRenderer, WebComponent as default };
|
package/dist/Wizard-DkqCsGz-.js
DELETED
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
import { s as __toESM } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
-
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
|
-
import { a as __generator, i as __extends, n as __awaiter, o as __metadata, r as __decorate, s as __read, t as __assign, u as __spreadArray } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import "./function-CNJMA2ft.js";
|
|
5
|
-
import { t as require_isEqual } from "./isEqual-E2NjjS0_.js";
|
|
6
|
-
import { An as SkipOperation, Br as until, Jr as evalExpressionWithConditionBuilderAsync, Nn as autobind, Nt as ServiceStore, Pi as tokenize, Xr as filter, an as isApiOutdated, dt as ScopedContext, ft as filterTarget, it as Renderer, oi as createObject, qr as evalExpression, sn as isEffectiveApi, w as toNumber, xr as isVisible } from "./esm-DEyK_c3W.js";
|
|
7
|
-
import "./react-dom-D1mxcNoQ.js";
|
|
8
|
-
import { m as Steps$1 } from "./esm-Cj_BRpNI.js";
|
|
9
|
-
import { i as Spinner$1 } from "./PopUp-Bgkvnd4X.js";
|
|
10
|
-
var import_react = /* @__PURE__ */ __toESM(require_react()), import_isEqual = /* @__PURE__ */ __toESM(require_isEqual()), Wizard = function(e) {
|
|
11
|
-
__extends(s, e);
|
|
12
|
-
function s() {
|
|
13
|
-
var s = e !== null && e.apply(this, arguments) || this;
|
|
14
|
-
return s.initalValues = {}, s.state = {
|
|
15
|
-
currentStep: -1,
|
|
16
|
-
completeStep: -1,
|
|
17
|
-
rawSteps: []
|
|
18
|
-
}, s;
|
|
19
|
-
}
|
|
20
|
-
return s.prototype.componentDidMount = function() {
|
|
21
|
-
var e = this, s = this.props, c = s.initApi, l = s.initFetch, u = s.initAsyncApi, d = s.initFinishedField, f = s.store, p = s.messages, m = p.fetchSuccess, h = p.fetchFailed;
|
|
22
|
-
s.onInit, isEffectiveApi(c, f.data, l) ? f.fetchInitData(c, f.data, {
|
|
23
|
-
successMessage: m,
|
|
24
|
-
errorMessage: h,
|
|
25
|
-
onSuccess: function() {
|
|
26
|
-
if (!(!isEffectiveApi(u, f.data) || f.data[d || "finished"])) return until(function() {
|
|
27
|
-
return f.checkRemote(u, f.data);
|
|
28
|
-
}, function(e) {
|
|
29
|
-
return e && e[d || "finished"];
|
|
30
|
-
}, function(s) {
|
|
31
|
-
return e.asyncCancel = s;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}).then(function(s) {
|
|
35
|
-
e.handleFetchInitEvent(s);
|
|
36
|
-
var c = { currentStep: typeof e.props.startStep == "string" ? toNumber(tokenize(e.props.startStep, createObject(e.props.data, s?.data || {})), 1) : 1 };
|
|
37
|
-
return s && s.data && (typeof s.data.step == "number" || typeof s.data.step == "string" && /^\d+$/.test(s.data.step)) && (c.currentStep = toNumber(s.data.step, 1)), e.setState(c, function() {
|
|
38
|
-
s && s.data && (s.data.submiting || s.data.submited) && e.checkSubmit();
|
|
39
|
-
}), s;
|
|
40
|
-
}) : this.setState({ currentStep: typeof this.props.startStep == "string" ? toNumber(tokenize(this.props.startStep, this.props.data), 1) : 1 }), this.normalizeSteps(f.data);
|
|
41
|
-
}, s.prototype.componentDidUpdate = function(e) {
|
|
42
|
-
var s = this.props, c = s.store, l = s.fetchSuccess, u = s.fetchFailed;
|
|
43
|
-
(!(0, import_isEqual.default)(e.steps, s.steps) || !(0, import_isEqual.default)(e.data, s.data)) && this.normalizeSteps(s.data), isApiOutdated(e.initApi, s.initApi, e.data, s.data) && c.fetchData(s.initApi, c.data, {
|
|
44
|
-
successMessage: l,
|
|
45
|
-
errorMessage: u
|
|
46
|
-
});
|
|
47
|
-
}, s.prototype.componentWillUnmount = function() {
|
|
48
|
-
this.asyncCancel && this.asyncCancel();
|
|
49
|
-
}, s.prototype.dispatchEvent = function(e, s) {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
51
|
-
var l, u, d, f;
|
|
52
|
-
return __generator(this, function(c) {
|
|
53
|
-
switch (c.label) {
|
|
54
|
-
case 0: return l = this.props, u = l.dispatchEvent, d = l.data, [4, u(e, s ? createObject(d, s) : d)];
|
|
55
|
-
case 1: return f = c.sent(), [2, f?.prevented ?? !1];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}, s.prototype.handleFetchInitEvent = function(e) {
|
|
60
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
61
|
-
var s, l, u;
|
|
62
|
-
return __generator(this, function(c) {
|
|
63
|
-
switch (c.label) {
|
|
64
|
-
case 0: return s = this.props, l = s.onInit, u = s.store, [4, this.dispatchEvent("inited", __assign(__assign({}, u.data), {
|
|
65
|
-
responseData: e.ok ? u.data ?? {} : e,
|
|
66
|
-
responseStatus: e?.status === void 0 ? u.error ? 1 : 0 : e?.status,
|
|
67
|
-
responseMsg: u.msg
|
|
68
|
-
}))];
|
|
69
|
-
case 1: return c.sent() && l && l(u.data), [2];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}, s.prototype.normalizeSteps = function(e) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
75
|
-
var s, l, u, d, f, p, h;
|
|
76
|
-
return __generator(this, function(c) {
|
|
77
|
-
switch (c.label) {
|
|
78
|
-
case 0: s = this.props, l = s.steps, u = s.translate, d = [], f = l.length, p = 0, c.label = 1;
|
|
79
|
-
case 1: return p < f ? [4, evalExpressionWithConditionBuilderAsync(l[p].hiddenOn, e)] : [3, 4];
|
|
80
|
-
case 2: h = c.sent(), !h && d.push(l[p]), c.label = 3;
|
|
81
|
-
case 3: return p++, [3, 1];
|
|
82
|
-
case 4: return this.setState({ rawSteps: d.map(function(e, s) {
|
|
83
|
-
return __assign(__assign({}, e), {
|
|
84
|
-
hiddenOn: "",
|
|
85
|
-
title: e.title || e.label || u("Steps.step", { index: s + 1 })
|
|
86
|
-
});
|
|
87
|
-
}) }), [2];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
}, s.prototype.gotoStep = function(e) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
93
|
-
var s;
|
|
94
|
-
return __generator(this, function(c) {
|
|
95
|
-
switch (c.label) {
|
|
96
|
-
case 0: return s = this.state.rawSteps, e = Math.max(Math.min(s.length, e), 1), e == this.state.currentStep ? [3, 2] : [4, this.dispatchEvent("stepChange", { step: e })];
|
|
97
|
-
case 1:
|
|
98
|
-
if (c.sent()) return [2];
|
|
99
|
-
this.setState({
|
|
100
|
-
currentStep: e,
|
|
101
|
-
completeStep: Math.max(this.state.completeStep, e - 1)
|
|
102
|
-
}), c.label = 2;
|
|
103
|
-
case 2: return [2];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}, s.prototype.formRef = function(e) {
|
|
108
|
-
if (e) {
|
|
109
|
-
for (; e && e.getWrappedInstance;) e = e.getWrappedInstance();
|
|
110
|
-
this.form = e;
|
|
111
|
-
} else this.form = void 0;
|
|
112
|
-
}, s.prototype.submitToTarget = function(e, s) {
|
|
113
|
-
throw Error("Please implements this!");
|
|
114
|
-
}, s.prototype.reloadTarget = function(e, s) {
|
|
115
|
-
throw Error("Please implements this!");
|
|
116
|
-
}, s.prototype.reload = function(e, s, l, d, f) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
118
|
-
var e, l, u, d, p, m, h, g, _, y, b = this;
|
|
119
|
-
return __generator(this, function(c) {
|
|
120
|
-
switch (c.label) {
|
|
121
|
-
case 0: return s ? [2, this.receive(s, void 0, f)] : (e = this.props, l = e.initApi, u = e.initAsyncApi, d = e.initFinishedField, p = e.store, m = e.messages, h = m.fetchSuccess, g = m.fetchFailed, isEffectiveApi(l, p.data) && this.state.currentStep === 1 ? [4, p.fetchInitData(l, p.data, {
|
|
122
|
-
successMessage: h,
|
|
123
|
-
errorMessage: g,
|
|
124
|
-
onSuccess: function() {
|
|
125
|
-
if (!(!isEffectiveApi(u, p.data) || p.data[d || "finished"])) return until(function() {
|
|
126
|
-
return p.checkRemote(u, p.data);
|
|
127
|
-
}, function(e) {
|
|
128
|
-
return e && e[d || "finished"];
|
|
129
|
-
}, function(e) {
|
|
130
|
-
return b.asyncCancel = e;
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
})] : [3, 2]);
|
|
134
|
-
case 1: _ = c.sent(), y = { currentStep: 1 }, _ && _.data && (typeof _.data.step == "number" || typeof _.data.step == "string" && /^\d+$/.test(_.data.step)) && (y.currentStep = toNumber(_.data.step, 1)), this.setState(y, function() {
|
|
135
|
-
_ && _.data && (_.data.submiting || _.data.submited) && b.checkSubmit();
|
|
136
|
-
}), c.label = 2;
|
|
137
|
-
case 2: return [2, p.data];
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
}, s.prototype.receive = function(e, s, c) {
|
|
142
|
-
return this.props.store.updateData(e, void 0, c), this.reload();
|
|
143
|
-
}, s.prototype.domRef = function(e) {
|
|
144
|
-
this.dom = e;
|
|
145
|
-
}, s.prototype.getPopOverContainer = function() {
|
|
146
|
-
return this.dom;
|
|
147
|
-
}, s.prototype.checkSubmit = function() {
|
|
148
|
-
var e, s = this, c = this.props, l = c.store, u = c.asyncApi, d = c.finishedField, f = c.env, p = this.state.rawSteps, m = p[this.state.currentStep - 1], h = m && m.asyncApi || this.state.currentStep === p.length && u;
|
|
149
|
-
!m || !isEffectiveApi(h, l.data) || (l.markSaving(!0), l.updateData((e = {}, e[d || "finished"] = !1, e)), until(function() {
|
|
150
|
-
return l.checkRemote(h, l.data);
|
|
151
|
-
}, function(e) {
|
|
152
|
-
return e && e[d || "finished"];
|
|
153
|
-
}, function(e) {
|
|
154
|
-
return s.asyncCancel = e;
|
|
155
|
-
}).then(function() {
|
|
156
|
-
l.markSaving(!1), s.gotoStep(s.state.currentStep + 1);
|
|
157
|
-
}).catch(function(e) {
|
|
158
|
-
!h.silent && f.notify("error", e.message), l.markSaving(!1);
|
|
159
|
-
}));
|
|
160
|
-
}, s.prototype.handleAction = function(e, s, l, d, f) {
|
|
161
|
-
var p = this;
|
|
162
|
-
d === void 0 && (d = !1);
|
|
163
|
-
var h = this.props, g = h.onAction, v = h.store, y = h.env, b = this.state.rawSteps;
|
|
164
|
-
if (s.actionType === "next" || s.type === "submit" || s.actionType === "step-submit") this.form.doAction(__assign(__assign({}, s), { actionType: "submit" }), l);
|
|
165
|
-
else if (s.actionType === "prev") this.gotoStep(this.state.currentStep - 1);
|
|
166
|
-
else if (s.type === "reset") this.form.reset();
|
|
167
|
-
else if (s.actionType === "dialog") return v.setCurrentAction(s, this.props.resolveDefinitions), new Promise(function(e) {
|
|
168
|
-
v.openDialog(l, void 0, function(c, l) {
|
|
169
|
-
var u;
|
|
170
|
-
(u = s.callback) == null || u.call(s, c, l), e({
|
|
171
|
-
confirmed: c,
|
|
172
|
-
value: l
|
|
173
|
-
});
|
|
174
|
-
}, f || p.context);
|
|
175
|
-
});
|
|
176
|
-
else if (s.actionType === "ajax") return s.api ? v.saveRemote(s.api, l, {
|
|
177
|
-
successMessage: s.messages && s.messages.success,
|
|
178
|
-
errorMessage: s.messages && s.messages.failed
|
|
179
|
-
}).then(function() {
|
|
180
|
-
return __awaiter(p, void 0, void 0, function() {
|
|
181
|
-
var e, l, u;
|
|
182
|
-
return __generator(this, function(c) {
|
|
183
|
-
switch (c.label) {
|
|
184
|
-
case 0: return this.form && this.form.isValidated() && this.form.validate(!0), e = s.feedback, e && isVisible(e, v.data) ? [4, this.openFeedback(e, v.data)] : [3, 2];
|
|
185
|
-
case 1:
|
|
186
|
-
if (l = c.sent(), e.skipRestOnCancel && !l || e.skipRestOnConfirm && l) throw new SkipOperation();
|
|
187
|
-
c.label = 2;
|
|
188
|
-
case 2: return u = s.redirect && filter(s.redirect, v.data), u && y.jumpTo(u, s, v.data), s.reload && this.reloadTarget(filterTarget(s.reload, v.data), v.data), [2];
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
}).catch(function(e) {}) : y.alert("当 actionType 为 ajax 时,请设置 api 属性");
|
|
193
|
-
else if (s.actionType === "reload") s.target && this.reloadTarget(filterTarget(s.target, l), l);
|
|
194
|
-
else if (s.actionType === "goto-step") {
|
|
195
|
-
var x = l.step;
|
|
196
|
-
if (x !== void 0 && x <= b.length && x >= 0) return this.gotoStep(l.step);
|
|
197
|
-
} else if (s.actionType === "submit") return this.finalSubmit();
|
|
198
|
-
else if (g) return g(e, s, l, d, f || this.context);
|
|
199
|
-
}, s.prototype.handleQuery = function(e) {
|
|
200
|
-
if (this.props.initApi) {
|
|
201
|
-
if (e?.hasOwnProperty("orderBy") && !isApiOutdated(this.props.initApi, this.props.initApi, this.props.store.data, createObject(this.props.store.data, e))) return !1;
|
|
202
|
-
this.receive(e);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
return this.props.onQuery ? this.props.onQuery(e) : !1;
|
|
206
|
-
}, s.prototype.openFeedback = function(e, s) {
|
|
207
|
-
var c = this;
|
|
208
|
-
return new Promise(function(l) {
|
|
209
|
-
var u = c.props.store;
|
|
210
|
-
u.setCurrentAction({
|
|
211
|
-
type: "button",
|
|
212
|
-
actionType: "dialog",
|
|
213
|
-
dialog: e
|
|
214
|
-
}, c.props.resolveDefinitions), u.openDialog(s, void 0, function(e) {
|
|
215
|
-
l(e);
|
|
216
|
-
}, c.context);
|
|
217
|
-
});
|
|
218
|
-
}, s.prototype.handleChange = function(e) {
|
|
219
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
220
|
-
var s, l, u;
|
|
221
|
-
return __generator(this, function(c) {
|
|
222
|
-
switch (c.label) {
|
|
223
|
-
case 0: return s = this.props.store, l = s.data, u = __assign(__assign({}, l), e), [4, this.dispatchEvent("change", u)];
|
|
224
|
-
case 1: return c.sent() || s.updateData(e), [2];
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
}, s.prototype.handleInit = function(e) {
|
|
229
|
-
var s = this.state.currentStep;
|
|
230
|
-
this.initalValues[s] = this.initalValues[s] || e, this.props.store.updateData(e);
|
|
231
|
-
}, s.prototype.handleReset = function(e) {
|
|
232
|
-
var s = this.props.store, c = this.initalValues[this.state.currentStep], l = {};
|
|
233
|
-
Object.keys(e).forEach(function(e) {
|
|
234
|
-
l[e] = c.hasOwnProperty(e) ? c[e] : void 0;
|
|
235
|
-
}), s.updateData(l);
|
|
236
|
-
}, s.prototype.finalSubmit = function(e, s) {
|
|
237
|
-
return e === void 0 && (e = {}), s === void 0 && (s = { type: "submit" }), __awaiter(this, void 0, void 0, function() {
|
|
238
|
-
var l, d, f, p, h, g, y, b, x, S, w, T, D, k, A, j, M = this;
|
|
239
|
-
return __generator(this, function(N) {
|
|
240
|
-
switch (N.label) {
|
|
241
|
-
case 0: return l = this.props, d = l.store, f = l.api, p = l.asyncApi, h = l.finishedField, g = l.target, y = l.redirect, b = l.reload, x = l.env, S = l.onFinished, w = this.state.rawSteps, [4, this.dispatchEvent("finished", d.data)];
|
|
242
|
-
case 1:
|
|
243
|
-
if (N.sent()) return [2];
|
|
244
|
-
if (T = w[this.state.currentStep - 1], d.updateData(e), g) this.submitToTarget(filterTarget(g, d.data), d.data), this.setState({ completeStep: w.length });
|
|
245
|
-
else if (s.api || T.api || f) D = s.asyncApi || T.asyncApi || p, isEffectiveApi(D, d.data) && d.updateData((j = {}, j[h || "finished"] = !1, j)), k = this.form ? this.form.props.store : d, d.markSaving(!0), k.saveRemote(s.api || T.api || f, d.data, {
|
|
246
|
-
onSuccess: function(e) {
|
|
247
|
-
return __awaiter(M, void 0, void 0, function() {
|
|
248
|
-
var s, l, u = this;
|
|
249
|
-
return __generator(this, function(c) {
|
|
250
|
-
switch (c.label) {
|
|
251
|
-
case 0: return [4, this.dispatchEvent("submitSucc", createObject(this.props.data, { result: e }))];
|
|
252
|
-
case 1: return s = c.sent(), !isEffectiveApi(D, d.data) || d.data[h || "finished"] ? [2, {
|
|
253
|
-
cbResult: null,
|
|
254
|
-
dispatcher: s
|
|
255
|
-
}] : (l = until(function() {
|
|
256
|
-
return d.checkRemote(D, d.data);
|
|
257
|
-
}, function(e) {
|
|
258
|
-
return e && e[h || "finished"];
|
|
259
|
-
}, function(e) {
|
|
260
|
-
return u.asyncCancel = e;
|
|
261
|
-
}), [2, {
|
|
262
|
-
cbResult: l,
|
|
263
|
-
dispatcher: s
|
|
264
|
-
}]);
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
},
|
|
269
|
-
onFailed: function(e) {
|
|
270
|
-
return __awaiter(M, void 0, void 0, function() {
|
|
271
|
-
var s;
|
|
272
|
-
return __generator(this, function(c) {
|
|
273
|
-
switch (c.label) {
|
|
274
|
-
case 0: return d.markSaving(!1), [4, this.dispatchEvent("submitFail", createObject(this.props.data, { error: e }))];
|
|
275
|
-
case 1: return s = c.sent(), [2, { dispatcher: s }];
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
}).then(function(e) {
|
|
281
|
-
return __awaiter(M, void 0, void 0, function() {
|
|
282
|
-
var l, u, f;
|
|
283
|
-
return __generator(this, function(c) {
|
|
284
|
-
switch (c.label) {
|
|
285
|
-
case 0: return l = s.feedback, l && isVisible(l, e) ? [4, this.openFeedback(l, e)] : [3, 2];
|
|
286
|
-
case 1:
|
|
287
|
-
if (u = c.sent(), l.skipRestOnCancel && !u || l.skipRestOnConfirm && u) throw new SkipOperation();
|
|
288
|
-
c.label = 2;
|
|
289
|
-
case 2:
|
|
290
|
-
if (this.setState({ completeStep: w.length }), d.updateData(__assign(__assign({}, d.data), e)), d.markSaving(!1), e && typeof e.step == "number") this.gotoStep(e.step);
|
|
291
|
-
else if (S && S(e, s) === !1) return [2, e];
|
|
292
|
-
return f = (s.redirect || T.redirect || y) && filter(s.redirect || T.redirect || y, d.data), f ? x.jumpTo(f, s, d.data) : (s.reload || T.reload || b) && this.reloadTarget(filterTarget(s.reload || T.reload || b, d.data), d.data), [2, e];
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
}).catch(function(e) {});
|
|
297
|
-
else {
|
|
298
|
-
if (this.setState({ completeStep: w.length }), S && S(d.data, s) === !1) return [2];
|
|
299
|
-
A = (s.redirect || T.redirect || y) && filter(s.redirect || T.redirect || y, d.data), A ? x.jumpTo(A, s, d.data) : (s.reload || T.reload || b) && this.reloadTarget(filterTarget(s.reload || T.reload || b, d.data), d.data);
|
|
300
|
-
}
|
|
301
|
-
return [2];
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
});
|
|
305
|
-
}, s.prototype.handleSubmit = function(e, s) {
|
|
306
|
-
var l, d = this, f = this.props, p = f.store, m = f.finishedField, h = this.state.rawSteps;
|
|
307
|
-
if (this.state.currentStep < h.length) {
|
|
308
|
-
var g = h[this.state.currentStep - 1];
|
|
309
|
-
p.updateData(e);
|
|
310
|
-
var y = s.asyncApi || g.asyncApi;
|
|
311
|
-
isEffectiveApi(y, p.data) && p.updateData((l = {}, l[m || "finished"] = !1, l)), isEffectiveApi(s.api || g.api, p.data) ? p.saveRemote(s.api || g.api, p.data, {
|
|
312
|
-
onSuccess: function() {
|
|
313
|
-
if (d.dispatchEvent("stepSubmitSucc"), !(!isEffectiveApi(y, p.data) || p.data[m || "finished"])) return until(function() {
|
|
314
|
-
return p.checkRemote(y, p.data);
|
|
315
|
-
}, function(e) {
|
|
316
|
-
return e && e[m || "finished"];
|
|
317
|
-
}, function(e) {
|
|
318
|
-
return d.asyncCancel = e;
|
|
319
|
-
});
|
|
320
|
-
},
|
|
321
|
-
onFailed: function(e) {
|
|
322
|
-
d.dispatchEvent("stepSubmitFail", { error: e }), e.status === 422 && e.errors && d.form && d.form.props.store.setFormItemErrors(e.errors);
|
|
323
|
-
}
|
|
324
|
-
}).then(function(e) {
|
|
325
|
-
return __awaiter(d, void 0, void 0, function() {
|
|
326
|
-
var l, u;
|
|
327
|
-
return __generator(this, function(c) {
|
|
328
|
-
switch (c.label) {
|
|
329
|
-
case 0: return l = s.feedback, l && isVisible(l, e) ? [4, this.openFeedback(l, e)] : [3, 2];
|
|
330
|
-
case 1:
|
|
331
|
-
if (u = c.sent(), l.skipRestOnCancel && !u || l.skipRestOnConfirm && u) throw new SkipOperation();
|
|
332
|
-
c.label = 2;
|
|
333
|
-
case 2: return this.gotoStep(e && typeof e.step == "number" ? e.step : this.state.currentStep + 1), [2];
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
}).catch(function(e) {
|
|
338
|
-
d.dispatchEvent("stepSubmitFail", { error: e });
|
|
339
|
-
}) : this.gotoStep(this.state.currentStep + 1);
|
|
340
|
-
} else this.finalSubmit(e, s);
|
|
341
|
-
return !1;
|
|
342
|
-
}, s.prototype.handleDialogConfirm = function(e, s, c) {
|
|
343
|
-
var l = this.props.store;
|
|
344
|
-
s.mergeData && e.length === 1 && e[0] && c[0].props.type === "form" && l.updateData(e[0]), l.closeDialog(!0, e);
|
|
345
|
-
}, s.prototype.handleDialogClose = function(e) {
|
|
346
|
-
e === void 0 && (e = !1), this.props.store.closeDialog(e);
|
|
347
|
-
}, s.prototype.handleJumpStep = function(e, s) {
|
|
348
|
-
var c = this.props.store, l = this.state.currentStep;
|
|
349
|
-
isJumpable(s, e, l, c.data) && this.gotoStep(e + 1);
|
|
350
|
-
}, s.prototype.renderSteps = function() {
|
|
351
|
-
var e = this.props, s = e.mode, c = e.classPrefix, l = e.classnames, u = e.stepsClassName, d = this.state, f = d.currentStep, p = d.rawSteps;
|
|
352
|
-
return import_react.createElement("div", {
|
|
353
|
-
className: l(`${c}-Wizard-steps`, u),
|
|
354
|
-
id: "form-wizard"
|
|
355
|
-
}, Array.isArray(p) && p.length ? import_react.createElement(Steps$1, {
|
|
356
|
-
steps: p,
|
|
357
|
-
mode: s,
|
|
358
|
-
current: f - 1,
|
|
359
|
-
onClickStep: this.handleJumpStep
|
|
360
|
-
}) : null);
|
|
361
|
-
}, s.prototype.renderActions = function() {
|
|
362
|
-
var e = this, s = this.props, c = s.store, l = s.readOnly, u = s.disabled, d = s.actionClassName, f = s.actionPrevLabel, p = s.actionNextLabel, m = s.actionNextSaveLabel, h = s.actionFinishLabel, g = s.render, _ = s.translate;
|
|
363
|
-
s.classnames;
|
|
364
|
-
var v = s.testIdBuilder, y = this.state.rawSteps;
|
|
365
|
-
if (!Array.isArray(y)) return null;
|
|
366
|
-
var b = this.state.currentStep, x = y[b], S = y[b - 2], C = c.loading, w = y[b - 1];
|
|
367
|
-
if (!w) return null;
|
|
368
|
-
var T = S ? isJumpable(S, b - 2, b, c.data) : !1;
|
|
369
|
-
return w.actions && Array.isArray(w.actions) ? w.actions.length ? import_react.createElement(import_react.Fragment, null, w.actions.map(function(s, c) {
|
|
370
|
-
return g(`action/${c}`, s, {
|
|
371
|
-
key: `${b}-${c}`,
|
|
372
|
-
data: createObject(e.props.data, { currentStep: b }),
|
|
373
|
-
onAction: e.handleAction,
|
|
374
|
-
disabled: s.disabled || C || u || s.actionType === "prev" && !T || s.actionType === "next" && l && (!!w.api || !x)
|
|
375
|
-
});
|
|
376
|
-
})) : null : import_react.createElement(import_react.Fragment, null, g("prev-btn", {
|
|
377
|
-
type: "button",
|
|
378
|
-
label: _(f),
|
|
379
|
-
actionType: "prev",
|
|
380
|
-
className: d,
|
|
381
|
-
hiddenOn: "${currentStep === 1}",
|
|
382
|
-
id: v?.getChild("button-prev").getTestIdValue()
|
|
383
|
-
}, {
|
|
384
|
-
disabled: C || !T || u,
|
|
385
|
-
onAction: this.handleAction,
|
|
386
|
-
data: createObject(this.props.data, { currentStep: b })
|
|
387
|
-
}), g("next-btn", {
|
|
388
|
-
type: "button",
|
|
389
|
-
label: x ? w.api ? _(m) : _(p) : _(h),
|
|
390
|
-
actionType: "next",
|
|
391
|
-
primary: !x || !!w.api,
|
|
392
|
-
className: d,
|
|
393
|
-
level: "primary",
|
|
394
|
-
id: v?.getChild("button-next").getTestIdValue()
|
|
395
|
-
}, {
|
|
396
|
-
disabled: C || u || l && (!!w.api || !x),
|
|
397
|
-
onAction: this.handleAction
|
|
398
|
-
}));
|
|
399
|
-
}, s.prototype.renderFooter = function() {
|
|
400
|
-
var e = this.renderActions();
|
|
401
|
-
if (!e) return e;
|
|
402
|
-
var s = this.props, c = s.classnames, l = s.affixFooter, u = s.footerClassName, d = s.wrapWithPanel;
|
|
403
|
-
return import_react.createElement("div", {
|
|
404
|
-
role: "wizard-footer",
|
|
405
|
-
className: c("Wizard-footer", d ? "Panel-footer" : "", l && d ? "Panel-fixedBottom" : "", u)
|
|
406
|
-
}, e);
|
|
407
|
-
}, s.prototype.renderWizard = function() {
|
|
408
|
-
var e = this.props, s = e.className, c = e.steps, l = e.style, u = e.render, d = e.store, f = e.classPrefix, g = e.classnames, _ = e.popOverContainer, v = e.mode, y = e.translate, b = e.loadingConfig, x = e.stepClassName, S = e.bodyClassName, C = e.wrapWithPanel, w = this.state, T = w.rawSteps, E = w.currentStep, D = Array.isArray(T) && T.length > 0 ? T : Array.isArray(c) ? __spreadArray([], __read(c), !1).map(function(e) {
|
|
409
|
-
return delete e.hiddenOn, e;
|
|
410
|
-
}) : null, O = Array.isArray(D) ? D[E - 1] : null;
|
|
411
|
-
return import_react.createElement("div", {
|
|
412
|
-
ref: this.domRef,
|
|
413
|
-
className: g(C ? `${f}Panel ${f}Panel--default` : "", `${f}Wizard ${f}Wizard--${v}`, s),
|
|
414
|
-
style: l
|
|
415
|
-
}, import_react.createElement("div", { className: g(`${f}Wizard-step`, x) }, this.renderSteps(), import_react.createElement("div", {
|
|
416
|
-
role: "wizard-body",
|
|
417
|
-
className: g(`${f}Wizard-stepContent clearfix`, S)
|
|
418
|
-
}, O ? u("body", __assign(__assign({}, O), {
|
|
419
|
-
type: "form",
|
|
420
|
-
wrapWithPanel: !1,
|
|
421
|
-
api: null
|
|
422
|
-
}), {
|
|
423
|
-
key: this.state.currentStep,
|
|
424
|
-
ref: this.formRef,
|
|
425
|
-
onInit: this.handleInit,
|
|
426
|
-
onReset: this.handleReset,
|
|
427
|
-
onSubmit: this.handleSubmit,
|
|
428
|
-
onAction: this.handleAction,
|
|
429
|
-
onQuery: this.handleQuery,
|
|
430
|
-
disabled: d.loading,
|
|
431
|
-
popOverContainer: _ || this.getPopOverContainer,
|
|
432
|
-
onChange: this.handleChange,
|
|
433
|
-
formStore: void 0
|
|
434
|
-
}) : E === -1 ? y("loading") : import_react.createElement("p", { className: "text-danger" }, y("Wizard.configError"))), this.renderFooter()), u("dialog", __assign(__assign({}, d.dialogSchema), { type: "dialog" }), {
|
|
435
|
-
key: "dialog",
|
|
436
|
-
data: d.dialogData,
|
|
437
|
-
onConfirm: this.handleDialogConfirm,
|
|
438
|
-
onClose: this.handleDialogClose,
|
|
439
|
-
show: d.dialogOpen
|
|
440
|
-
}), import_react.createElement(Spinner$1, {
|
|
441
|
-
loadingConfig: b,
|
|
442
|
-
size: "lg",
|
|
443
|
-
overlay: !0,
|
|
444
|
-
key: "info",
|
|
445
|
-
show: d.loading
|
|
446
|
-
}));
|
|
447
|
-
}, s.prototype.render = function() {
|
|
448
|
-
return this.renderWizard();
|
|
449
|
-
}, s.defaultProps = {
|
|
450
|
-
mode: "horizontal",
|
|
451
|
-
readOnly: !1,
|
|
452
|
-
messages: {},
|
|
453
|
-
actionClassName: "",
|
|
454
|
-
actionPrevLabel: "Wizard.prev",
|
|
455
|
-
actionNextLabel: "Wizard.next",
|
|
456
|
-
actionNextSaveLabel: "Wizard.saveAndNext",
|
|
457
|
-
actionFinishLabel: "Wizard.finish",
|
|
458
|
-
startStep: "1",
|
|
459
|
-
wrapWithPanel: !0
|
|
460
|
-
}, s.propsList = [
|
|
461
|
-
"steps",
|
|
462
|
-
"mode",
|
|
463
|
-
"messages",
|
|
464
|
-
"actionClassName",
|
|
465
|
-
"actionPrevLabel",
|
|
466
|
-
"actionNextLabel",
|
|
467
|
-
"actionNextSaveLabel",
|
|
468
|
-
"actionFinishLabel",
|
|
469
|
-
"onFinished",
|
|
470
|
-
"affixFooter",
|
|
471
|
-
"startStep"
|
|
472
|
-
], __decorate([
|
|
473
|
-
autobind,
|
|
474
|
-
__metadata("design:type", Function),
|
|
475
|
-
__metadata("design:paramtypes", [Object]),
|
|
476
|
-
__metadata("design:returntype", void 0)
|
|
477
|
-
], s.prototype, "formRef", null), __decorate([
|
|
478
|
-
autobind,
|
|
479
|
-
__metadata("design:type", Function),
|
|
480
|
-
__metadata("design:paramtypes", [Object]),
|
|
481
|
-
__metadata("design:returntype", void 0)
|
|
482
|
-
], s.prototype, "domRef", null), __decorate([
|
|
483
|
-
autobind,
|
|
484
|
-
__metadata("design:type", Function),
|
|
485
|
-
__metadata("design:paramtypes", []),
|
|
486
|
-
__metadata("design:returntype", void 0)
|
|
487
|
-
], s.prototype, "getPopOverContainer", null), __decorate([
|
|
488
|
-
autobind,
|
|
489
|
-
__metadata("design:type", Function),
|
|
490
|
-
__metadata("design:paramtypes", [
|
|
491
|
-
Object,
|
|
492
|
-
Object,
|
|
493
|
-
Object,
|
|
494
|
-
Boolean,
|
|
495
|
-
Object
|
|
496
|
-
]),
|
|
497
|
-
__metadata("design:returntype", void 0)
|
|
498
|
-
], s.prototype, "handleAction", null), __decorate([
|
|
499
|
-
autobind,
|
|
500
|
-
__metadata("design:type", Function),
|
|
501
|
-
__metadata("design:paramtypes", [Object]),
|
|
502
|
-
__metadata("design:returntype", void 0)
|
|
503
|
-
], s.prototype, "handleQuery", null), __decorate([
|
|
504
|
-
autobind,
|
|
505
|
-
__metadata("design:type", Function),
|
|
506
|
-
__metadata("design:paramtypes", [Object]),
|
|
507
|
-
__metadata("design:returntype", Promise)
|
|
508
|
-
], s.prototype, "handleChange", null), __decorate([
|
|
509
|
-
autobind,
|
|
510
|
-
__metadata("design:type", Function),
|
|
511
|
-
__metadata("design:paramtypes", [Object]),
|
|
512
|
-
__metadata("design:returntype", void 0)
|
|
513
|
-
], s.prototype, "handleInit", null), __decorate([
|
|
514
|
-
autobind,
|
|
515
|
-
__metadata("design:type", Function),
|
|
516
|
-
__metadata("design:paramtypes", [Object]),
|
|
517
|
-
__metadata("design:returntype", void 0)
|
|
518
|
-
], s.prototype, "handleReset", null), __decorate([
|
|
519
|
-
autobind,
|
|
520
|
-
__metadata("design:type", Function),
|
|
521
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
522
|
-
__metadata("design:returntype", void 0)
|
|
523
|
-
], s.prototype, "handleSubmit", null), __decorate([
|
|
524
|
-
autobind,
|
|
525
|
-
__metadata("design:type", Function),
|
|
526
|
-
__metadata("design:paramtypes", [
|
|
527
|
-
Array,
|
|
528
|
-
Object,
|
|
529
|
-
Array
|
|
530
|
-
]),
|
|
531
|
-
__metadata("design:returntype", void 0)
|
|
532
|
-
], s.prototype, "handleDialogConfirm", null), __decorate([
|
|
533
|
-
autobind,
|
|
534
|
-
__metadata("design:type", Function),
|
|
535
|
-
__metadata("design:paramtypes", [Object]),
|
|
536
|
-
__metadata("design:returntype", void 0)
|
|
537
|
-
], s.prototype, "handleDialogClose", null), __decorate([
|
|
538
|
-
autobind,
|
|
539
|
-
__metadata("design:type", Function),
|
|
540
|
-
__metadata("design:paramtypes", [Number, Object]),
|
|
541
|
-
__metadata("design:returntype", void 0)
|
|
542
|
-
], s.prototype, "handleJumpStep", null), s;
|
|
543
|
-
}(import_react.Component);
|
|
544
|
-
function isJumpable(e, s, c, l) {
|
|
545
|
-
var u = !1;
|
|
546
|
-
return u = e && e.hasOwnProperty("jumpable") ? e.jumpable : e && e.jumpableOn ? evalExpression(e.jumpableOn, createObject(l, { currentStep: c })) : s + 1 < c, u;
|
|
547
|
-
}
|
|
548
|
-
var WizardRenderer = function(e) {
|
|
549
|
-
__extends(s, e);
|
|
550
|
-
function s(s, c) {
|
|
551
|
-
var l = e.call(this, s) || this;
|
|
552
|
-
return c.registerComponent(l), l;
|
|
553
|
-
}
|
|
554
|
-
return s.prototype.componentWillUnmount = function() {
|
|
555
|
-
this.context.unRegisterComponent(this), e.prototype.componentWillUnmount.call(this);
|
|
556
|
-
}, s.prototype.doAction = function(e, s, c) {
|
|
557
|
-
return c === void 0 && (c = !1), this.handleAction(void 0, e, s);
|
|
558
|
-
}, s.prototype.submitToTarget = function(e, s) {
|
|
559
|
-
this.context.send(e, s);
|
|
560
|
-
}, s.prototype.reloadTarget = function(e, s) {
|
|
561
|
-
this.context.reload(e, s);
|
|
562
|
-
}, s.prototype.handleDialogConfirm = function(s, c, l) {
|
|
563
|
-
e.prototype.handleDialogConfirm.call(this, s, c, l);
|
|
564
|
-
var u = this.props.store, d = this.context;
|
|
565
|
-
c.reload ? d.reload(c.reload, u.data) : u.action && u.action.reload && d.reload(u.action.reload, u.data);
|
|
566
|
-
}, s.prototype.setData = function(e, s) {
|
|
567
|
-
return this.props.store.updateData(e, void 0, s);
|
|
568
|
-
}, s.prototype.getData = function() {
|
|
569
|
-
return this.props.store.data;
|
|
570
|
-
}, s.contextType = ScopedContext, __decorate([
|
|
571
|
-
autobind,
|
|
572
|
-
__metadata("design:type", Function),
|
|
573
|
-
__metadata("design:paramtypes", [
|
|
574
|
-
Array,
|
|
575
|
-
Object,
|
|
576
|
-
Array
|
|
577
|
-
]),
|
|
578
|
-
__metadata("design:returntype", void 0)
|
|
579
|
-
], s.prototype, "handleDialogConfirm", null), s = __decorate([Renderer({
|
|
580
|
-
type: "wizard",
|
|
581
|
-
storeType: ServiceStore.name,
|
|
582
|
-
isolateScope: !0
|
|
583
|
-
}), __metadata("design:paramtypes", [Object, Object])], s), s;
|
|
584
|
-
}(Wizard);
|
|
585
|
-
export { WizardRenderer, Wizard as default };
|