@txgw/payout-components 0.5.1 → 0.6.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-DYmozKR5.js → AMIS--SZXSfKF.js} +6 -6
- package/dist/Action-D7O1nxY2.js +10 -0
- package/dist/{Action-CrKAZ8_I.js → Action-DpRShNiD.js} +21 -22
- package/dist/{Alert-DIMRz4Xr.js → Alert-sakO0sgo.js} +8 -10
- package/dist/{AnchorNav-BjZybEa5.js → AnchorNav-1OrNpCPU.js} +8 -10
- package/dist/App-mzRv6t1L.js +213 -0
- package/dist/{Audio-64UEsVR8.js → Audio-CmGRzA8C.js} +8 -10
- package/dist/{Avatar-CMUEC-R_.js → Avatar-C0g_Dcsr.js} +8 -10
- package/dist/{BarCode-DDTkorxt.js → BarCode-Bgr2-a69.js} +7 -7
- package/dist/{BarCode-DZj114yI.js → BarCode-f_fuunrs.js} +10 -10
- package/dist/{Breadcrumb-C5BIJjFC.js → Breadcrumb-3pb8787J.js} +8 -10
- package/dist/{ButtonGroup-BD8wGNkT.js → ButtonGroup-DBJgP_U6.js} +7 -7
- package/dist/{ButtonGroupSelect--dvESkJr.js → ButtonGroupSelect-BV8FHgm0.js} +9 -9
- package/dist/ButtonGroupSelect-Cl2irnYh.js +8 -0
- package/dist/{ButtonToolbar-DBJYr86R.js → ButtonToolbar-DMCBgh9w.js} +6 -6
- package/dist/{CRUD-DnHN8hUl.js → CRUD-DFP1DIcc.js} +44 -46
- package/dist/{CRUD2-DJBxUdjC.js → CRUD2-BGpsdJ3D.js} +21 -23
- package/dist/{Calendar-BE8QpoBz.js → Calendar-D_aFq70_.js} +9 -11
- package/dist/Card-C54K-VRd.js +14 -0
- package/dist/{Card-BIdx3eT8.js → Card-FmRg7dLO.js} +26 -26
- package/dist/{Card2-CcYYTp9c.js → Card2-Blr9gGoC.js} +8 -10
- package/dist/Cards-B7J3bYtx.js +485 -0
- package/dist/{Carousel-C5Qh-L5m.js → Carousel-Ba4JeK7n.js} +9 -11
- package/dist/{ChainedSelect-C6oYYrXI.js → ChainedSelect-CUU7qCFQ.js} +15 -17
- package/dist/{Chart-CxgX3Zwh.js → Chart-BmOD9NEG.js} +11 -11
- package/dist/{ChartRadios-DFgNc1q5.js → ChartRadios-Bm7pnICh.js} +7 -7
- package/dist/{Checkbox-CEcjhkM5.js → Checkbox-CcjG9Mv4.js} +5 -5
- package/dist/Checkbox-yvPZaH8N.js +10 -0
- package/dist/{Checkboxes-Co6s9klK.js → Checkboxes-Babxqar9.js} +13 -15
- package/dist/{Code-bzbcTvwL.js → Code-B7FhTic-.js} +10 -10
- package/dist/{Collapse-DYIoL02s.js → Collapse-BYdoEOZ2.js} +5 -5
- package/dist/Collapse-C9riUcKK.js +9 -0
- package/dist/{CollapseGroup-DxTpRyPO.js → CollapseGroup-B7DmpWY1.js} +8 -10
- package/dist/{Color-JOeUCTZN.js → Color-BM1Qa0C1.js} +6 -6
- package/dist/{ColorPicker-Dhvc2Zvv.js → ColorPicker-BXmi_OWm.js} +31 -539
- package/dist/{ColumnToggler-BmtD25vt.js → ColumnToggler-3QYyVjVf.js} +5 -5
- package/dist/ColumnToggler-D0NlxwMq.js +10 -0
- package/dist/{ColumnToggler-hLSeuf3L.js → ColumnToggler-DLFwzPef.js} +11 -12
- package/dist/{Combo-DHa4_Ez5.js → Combo-BsouWVHB.js} +37 -38
- package/dist/Combo-Cabifvbg.js +9 -0
- package/dist/{ConditionBuilder-B8igXo3q.js → ConditionBuilder-BacjsaTh.js} +8 -10
- package/dist/{Container-BIM9VYRe.js → Container-C5-66abH.js} +10 -12
- package/dist/{Control-DI_Tmnet.js → Control-krTArjIv.js} +6 -6
- package/dist/{Custom-CO5YTRFS.js → Custom-DawY4LgO.js} +6 -6
- package/dist/{Date-DAwlVzAq.js → Date-C9Kib09x.js} +8 -8
- package/dist/{DateRange-mOlWFnFT.js → DateRange-D2lKQT_J.js} +6 -6
- package/dist/Dialog-oNlQLXnk.js +508 -0
- package/dist/{DiffEditor-pcA725mp.js → DiffEditor-DY8XdtJS.js} +8 -10
- package/dist/{Divider-DWbV1pI1.js → Divider-BgpLhaqf.js} +6 -6
- package/dist/{Drawer-CJFyGwsm.js → Drawer-DslUxLot.js} +24 -26
- package/dist/{DropDownButton-DRqPRcTW.js → DropDownButton-BIuAagmC.js} +9 -11
- package/dist/{Each-C3Tpw3Ve.js → Each-CA8gaJkL.js} +6 -6
- package/dist/{FieldSet-BzJYnPVa.js → FieldSet-Cg1pE5gA.js} +4 -4
- package/dist/FieldSet-DVAa2H_Q.js +10 -0
- package/dist/{Flex-CwCnWtrH.js → Flex-Baz4bI9u.js} +6 -6
- package/dist/{Formula-DcI7sxGj.js → Formula-ABhgdx_Q.js} +6 -6
- package/dist/{Grid2D-D4V7Fwjq.js → Grid2D-DmdOVnhu.js} +8 -8
- package/dist/{GridNav-Dqmqc-dm.js → GridNav-lHAunT1M.js} +8 -10
- package/dist/{Group-DKpJF5bu.js → Group-7sGnjMli.js} +13 -13
- package/dist/HBox-DxchKWfv.js +7 -0
- package/dist/{HBox-BuU3dkir.js → HBox-s88aG83B.js} +4 -4
- package/dist/{Hidden-BAgQmpqx.js → Hidden-BrTWoL8d.js} +6 -6
- package/dist/{IFrame-Ck9HTyav.js → IFrame-DaZ1v2-9.js} +6 -6
- package/dist/{Icon-rz0Bkx0F.js → Icon-DNbdrsn8.js} +8 -10
- package/dist/{IconPicker-BlkS8BeK.js → IconPicker-DqNlu5Zd.js} +13 -15
- package/dist/{IconSelect-MQnqOKQL.js → IconSelect-CvBITEcy.js} +9 -11
- package/dist/{IconSelectStore-Ci4tfvJ1.js → IconSelectStore-CTqJPujB.js} +2 -2
- package/dist/{Image-FXxfPznI.js → Image-BBs8tnny.js} +11 -11
- package/dist/Image-DM9_Ii2b.js +9 -0
- package/dist/{Images-BgfGn12T.js → Images-cRmH380W.js} +9 -11
- package/dist/{InputArray-BI-sv9QR.js → InputArray-Dov-RBrP.js} +9 -11
- package/dist/{InputCity-B3NEPNBx.js → InputCity-owVpsIaD.js} +10 -12
- package/dist/{InputColor-CA8K3TKY.js → InputColor-DhVJhPp6.js} +8 -8
- package/dist/{InputDate-vJf1Yk1s.js → InputDate-DLOwHbwT.js} +9 -11
- package/dist/InputDate-DWaIvnAp.js +292 -0
- package/dist/InputDateRange-CnGNwIFe.js +10 -0
- package/dist/InputDateRange-Diqw3JLp.js +170 -0
- package/dist/InputExcel-BjWNYvnN.js +427 -0
- package/dist/{InputFile-COvM7Wga.js → InputFile-89BOwWJE.js} +31 -32
- package/dist/InputFile-DOym0HDc.js +10 -0
- package/dist/{InputFormula-DsH3AThJ.js → InputFormula-CV5j31Ow.js} +8 -10
- package/dist/{InputGroup-BjEkiPyF.js → InputGroup-C7O2ba0g.js} +6 -6
- package/dist/InputImage-BF7DAF8L.js +12 -0
- package/dist/{InputImage-CPzFzQcO.js → InputImage-DcsVQf7c.js} +16 -17
- package/dist/{InputMonthRange-f3qefwAi.js → InputMonthRange-BjD3hmwp.js} +10 -12
- package/dist/InputNumber-DKMOkba-.js +255 -0
- package/dist/{InputQuarterRange-BC25o84O.js → InputQuarterRange-DZKnkZ_s.js} +10 -12
- package/dist/{InputRange-DHuCYVxQ.js → InputRange-DiHKf3tP.js} +9 -11
- package/dist/{InputRating--OAvaGSl.js → InputRating-Bc8Od5b8.js} +9 -11
- package/dist/{InputRepeat-dbvG5ZwB.js → InputRepeat-BhF5KVB2.js} +8 -10
- package/dist/InputRichText-BBBdDFA2.js +7 -0
- package/dist/InputRichText-CieHn0fO.js +198 -0
- package/dist/{InputSignature-DM5lWnPx.js → InputSignature-CbfGjJlU.js} +8 -10
- package/dist/InputSubForm-BkM_3Rjg.js +236 -0
- package/dist/InputTable-CgOqC6Pc.js +900 -0
- package/dist/InputTag-35kCFM5X.js +464 -0
- package/dist/{InputText-DO10CW5J.js → InputText-BbEjGBtv.js} +59 -61
- package/dist/{InputTree-DnrDKOY9.js → InputTree-DchkyMbL.js} +42 -44
- package/dist/{InputVerificationCode-DZ_BHZPw.js → InputVerificationCode-kMxc8wW7.js} +8 -10
- package/dist/{InputYearRange-C1ldjdky.js → InputYearRange-WJKJeloR.js} +10 -12
- package/dist/{JSONSchema-DX_gEe5t.js → JSONSchema-Bs0EWcHb.js} +8 -10
- package/dist/{JSONSchemaEditor-aK-wLWlG.js → JSONSchemaEditor-BoAK9FOL.js} +8 -10
- package/dist/{Json-xLDTUaQP.js → Json-DFjy1HRw.js} +7 -7
- package/dist/Link-nYGLB6gy.js +57 -0
- package/dist/List-D3183f4Z.js +14 -0
- package/dist/{List-C52us0L0.js → List-W3IAZR_6.js} +20 -21
- package/dist/{ListSelect-B0ezEi4t.js → ListSelect-DWGbHVxd.js} +7 -7
- package/dist/{LocationPicker-BU3kayIO.js → LocationPicker-2G9yOxtm.js} +9 -11
- package/dist/{Log-CvRuXXPl.js → Log-D6VU702y.js} +11 -13
- package/dist/{Mapping-C0OE7PN8.js → Mapping-BATMD_xR.js} +12 -14
- package/dist/{Markdown-CCgCVphJ.js → Markdown-Baxbu8lV.js} +7 -7
- package/dist/{Markdown-B41x1dGI.js → Markdown-Cg-xahnQ.js} +2 -2
- package/dist/{MatrixCheckboxes-CGb7cpOw.js → MatrixCheckboxes-B9hmFakW.js} +12 -14
- package/dist/{MultilineText-CbWQB2Mm.js → MultilineText-0fMQhUCY.js} +8 -10
- package/dist/{Nav-DnW7dyl7.js → Nav-DHIehZOG.js} +35 -37
- package/dist/NestedSelect-tQztH4PI.js +517 -0
- package/dist/{Number-DWOTvv_N.js → Number-Cndoqeyx.js} +6 -6
- package/dist/{OfficeViewer-DlaVnLRX.js → OfficeViewer-BVD_e5eZ.js} +10 -12
- package/dist/{Operation-HTaf9by0.js → Operation-DIv6n9dT.js} +6 -6
- package/dist/{Page-Ck4L083j.js → Page-WoZtIIfk.js} +8 -10
- package/dist/{Pagination-5skyV8v4.js → Pagination-DHvYHd_3.js} +8 -10
- package/dist/{PaginationWrapper-DUifuI0M.js → PaginationWrapper-CtIJOXdw.js} +6 -6
- package/dist/{Panel-CkF8zAfa.js → Panel-Dt4KQrKa.js} +10 -12
- package/dist/{Password-rGKppSSA.js → Password-Wjfq7MSA.js} +8 -10
- package/dist/{Picker-BoqYYuQm.js → Picker-Cu52ukRg.js} +13 -15
- package/dist/{Plain-KahIJ6Qs.js → Plain-DIlG753a.js} +6 -6
- package/dist/{Spinner-CRN0l4lj.js → PopUp-Bgkvnd4X.js} +356 -44
- package/dist/{Portlet-CCvrg-JU.js → Portlet-3Nh2cWeq.js} +8 -10
- package/dist/{Progress-DEE8tZr-.js → Progress-Dh2FTsky.js} +8 -10
- package/dist/{Property-BHuVx9fL.js → Property-DRSklFlT.js} +6 -6
- package/dist/{QRCode-BJZwks8d.js → QRCode-BeUD-g8-.js} +10 -10
- package/dist/{Radio-Bvc-g9uo.js → Radio-DrJJfNFI.js} +9 -11
- package/dist/{Radios-2RgMkgPj.js → Radios-CL3mreXa.js} +31 -33
- package/dist/{Remark-DChbOlsj.js → Remark-Cmo-r6dp.js} +4 -5
- package/dist/Remark-DuAbEmCW.js +9 -0
- package/dist/{RichText-3py6VQgq.js → RichText-jkERm8rC.js} +3 -3
- package/dist/{SearchBox-Drspz4iQ.js → SearchBox-CTxSMcV2.js} +8 -10
- package/dist/{Select-Bg2XxDT_.js → Select-D3LTuHwe.js} +20 -22
- package/dist/Service-CN2v_Z9z.js +347 -0
- package/dist/{Shape-DxG0hVBx.js → Shape-Bi93tLCN.js} +8 -10
- package/dist/{Slider-Cy4wn29l.js → Slider-C0jqeBGt.js} +8 -10
- package/dist/{SparkLine-Pcnei0Jw.js → SparkLine-Ce6-mdqG.js} +8 -10
- package/dist/{Spinner-CTFIQQQv.js → Spinner-DZDEct1A.js} +8 -10
- package/dist/{StaticHoc-CTeUdZbZ.js → StaticHoc-BAdofX5w.js} +3 -3
- package/dist/Status-CDC2e2_o.js +93 -0
- package/dist/{Steps-Bqb5nshI.js → Steps-CGyTaaVI.js} +15 -17
- package/dist/{Switch-DN4iFYMH.js → Switch-QA0l7uEg.js} +9 -11
- package/dist/{SwitchContainer-DwZJ3rhC.js → SwitchContainer-zXvaPFlG.js} +6 -6
- package/dist/Table-B8tWpiPU.js +13 -0
- package/dist/{Table-gKX4LlXQ.js → Table-DzGbNFxu.js} +473 -474
- package/dist/Table2-CQZ3und9.js +1198 -0
- package/dist/{TableView-CqhOQ7qk.js → TableView-nlFBhvL1.js} +10 -10
- package/dist/{Tabs-BTNCr5wy.js → Tabs-XleB-2Mc.js} +41 -43
- package/dist/{TabsTransfer-BPcwo36i.js → TabsTransfer-CLLGXAkP.js} +24 -24
- package/dist/TabsTransfer-Cs_Rg0TU.js +11 -0
- package/dist/{TabsTransferPicker-BlE7X7rB.js → TabsTransferPicker-VA3Vlla-.js} +11 -13
- package/dist/{Tag-OOjypUV7.js → Tag-tr5RKBfl.js} +8 -10
- package/dist/{Tasks-CLoxpMeE.js → Tasks-C2-ayUd-.js} +17 -19
- package/dist/{Textarea-C5PsoOKh.js → Textarea-_KbIxQet.js} +9 -11
- package/dist/{Timeline-BQAHqrIa.js → Timeline-CctoJRQo.js} +8 -10
- package/dist/{TooltipWrapper-B30c6hNc.js → TooltipWrapper-BGNr8U2K.js} +8 -10
- package/dist/Tpl-C28lpITc.js +152 -0
- package/dist/Transfer-Hjc9zR8W.js +288 -0
- package/dist/Transfer-tYS9Rx8U.js +10 -0
- package/dist/{TransferPicker-DOssiBAl.js → TransferPicker-C7Wzyuct.js} +10 -12
- package/dist/{TreeSelect-wdKIhyKE.js → TreeSelect-DAlWCEqs.js} +21 -23
- package/dist/{UUID-DJ0W_r-8.js → UUID-B5UZnlxW.js} +6 -6
- package/dist/{UserSelect-BYkaqR0a.js → UserSelect-DqZZQB83.js} +20 -22
- package/dist/{VBox-BYiwi1ye.js → VBox-C1OZZT8-.js} +6 -6
- package/dist/{Video-pN3F0ocv.js → Video-C1FRwLLL.js} +136 -136
- package/dist/{WebComponent-D0O5jqWA.js → WebComponent-g8Zc9zXp.js} +6 -6
- package/dist/{Wizard-CmcYyHLa.js → Wizard-DkqCsGz-.js} +34 -36
- package/dist/{Words-JeAsdpai.js → Words-DUuKqyIf.js} +16 -18
- package/dist/{Wrapper-CgWIiCWM.js → Wrapper-DmZ78GYG.js} +6 -6
- package/dist/_getTag-CWmGzIun.js +509 -0
- package/dist/beneficiary-form-DCl2L16P.js +3773 -0
- package/dist/{client-EDjTjI3l.js → client-BEyTOBXT.js} +3 -3
- package/dist/crypto-js-DUFYRUag.js +3694 -0
- package/dist/{doc-CN4Z162V.js → doc-B-Im0Knb.js} +2 -2
- package/dist/{es-DFAidFNE.js → es-CsUppg1O.js} +3 -3
- package/dist/{esm-DAm67vL9.js → esm-Cj_BRpNI.js} +1246 -1190
- package/dist/{esm-D2d3zkde.js → esm-DEyK_c3W.js} +45 -35
- package/dist/{esm-D-dN_mFw.js → esm-SCCPj-cs.js} +3 -3
- package/dist/{function-Dbcnxw2H.js → function-CNJMA2ft.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -5
- package/dist/{isEqual-B1XgbWvm.js → isEqual-E2NjjS0_.js} +1 -1
- package/dist/{main-C92ocdJZ.js → main-Bf7MY24z.js} +2 -2
- package/dist/{mi18n-react.esm-DCefZ2Je.js → mi18n-react.esm-y-nzmW0A.js} +11 -3
- package/dist/{objectSpread2-CZI1MJk5.js → objectSpread2-smpSKONV.js} +2 -2
- package/dist/{omitBy-D95vUHNo.js → omitBy-CD5n2TA7.js} +3 -3
- package/dist/{papaparse.min-iA-vZzWO.js → papaparse.min-3xa9r8Qi.js} +1 -1
- package/dist/{react-D5VzucMe.js → react-RxxVsDMo.js} +1 -1
- package/dist/{react-cropper.es-BEX_PPM3.js → react-cropper.es-anJ2KE7h.js} +2 -2
- package/dist/{react-dom-BvyPBEWo.js → react-dom-D1mxcNoQ.js} +2 -2
- package/dist/react-g40aymqL.js +2 -0
- package/dist/xor-D-ggRBpm.js +20 -0
- package/package.json +15 -9
- package/dist/Action-CGqYi5GI.js +0 -12
- package/dist/App-B_Qb4ON4.js +0 -215
- package/dist/ButtonGroupSelect-CyZ_oUgl.js +0 -8
- package/dist/Card-y7WTSiZT.js +0 -16
- package/dist/Cards-Cq19cLq7.js +0 -487
- package/dist/Checkbox-D_prim2j.js +0 -12
- package/dist/CityDB-De7mzIWs.js +0 -3912
- package/dist/Collapse-CTuwHukl.js +0 -11
- package/dist/ColumnToggler-BOR-pCWp.js +0 -12
- package/dist/Combo-bPsBaKFK.js +0 -11
- package/dist/Dialog-BqS1G95L.js +0 -510
- package/dist/FieldSet-CVl7faI_.js +0 -12
- package/dist/HBox-DPttqQQZ.js +0 -7
- package/dist/Image-Bbfopooh.js +0 -11
- package/dist/Input-Bw7o6qMW.js +0 -52
- package/dist/InputDate-CY1_wYJU.js +0 -292
- package/dist/InputDateRange-ChTc0ax7.js +0 -12
- package/dist/InputDateRange-vNzkJ9Bd.js +0 -170
- package/dist/InputExcel-BYS8s8bp.js +0 -429
- package/dist/InputFile-BNQawQCZ.js +0 -12
- package/dist/InputImage-L9dQZ_7U.js +0 -14
- package/dist/InputNumber-ak-fc7y6.js +0 -257
- package/dist/InputRichText--4UGSYD1.js +0 -7
- package/dist/InputRichText-CFgwBE6E.js +0 -198
- package/dist/InputSubForm-DB004bDU.js +0 -238
- package/dist/InputTable-CkOgcH_R.js +0 -902
- package/dist/InputTag-CEN7_ErR.js +0 -466
- package/dist/Link-BUeGLktP.js +0 -59
- package/dist/List-l1ChaZK3.js +0 -16
- package/dist/NestedSelect-C-ekOlXv.js +0 -519
- package/dist/PdfViewer-BSKAHB-3.js +0 -12607
- package/dist/PdfViewer-D1e7l2HR.js +0 -175
- package/dist/PopUp-DiY3mHrF.js +0 -320
- package/dist/Remark-CU0rcNxv.js +0 -11
- package/dist/Service-WQBdLikc.js +0 -349
- package/dist/Status-CJe6XiVa.js +0 -95
- package/dist/Table-J5gl0p_m.js +0 -15
- package/dist/Table2-rQAEt-bu.js +0 -1200
- package/dist/TabsTransfer-BuEFk_uB.js +0 -13
- package/dist/Tinymce-CCtc_DGA.js +0 -63587
- package/dist/Tpl-BlWBhm_E.js +0 -154
- package/dist/Transfer-CKZg_yIM.js +0 -12
- package/dist/Transfer-CQHiisRw.js +0 -288
- package/dist/__vite-browser-external-gYOOXead.js +0 -5
- package/dist/abap-xAiJEr4f.js +0 -122
- package/dist/apex-DJkoKGwc.js +0 -170
- package/dist/azcli-lWmls20n.js +0 -53
- package/dist/bat-CfafEetg.js +0 -123
- package/dist/beneficiary-form-CwXw0_MQ.js +0 -2472
- package/dist/bicep-CSdK8osm.js +0 -221
- package/dist/bmap-DvtUW1DR.js +0 -163
- package/dist/cameligo-Bcx424cK.js +0 -189
- package/dist/clojure-CWQ3Tj4v.js +0 -146
- package/dist/codemirror-C4Zp7Ue8.js +0 -2
- package/dist/codemirror-CxDPKn9U.js +0 -5607
- package/dist/coffee-CwnrBDTl.js +0 -260
- package/dist/cpp-oSPG4NdP.js +0 -240
- package/dist/csharp-DLFXXb18.js +0 -260
- package/dist/csp-CVgQNTrT.js +0 -46
- package/dist/css-CIueyDK8.js +0 -284
- package/dist/cssMode-DsEar9Kr.js +0 -1388
- package/dist/dart-BUebbDjP.js +0 -236
- package/dist/dataTool-DrTAyVzx.js +0 -127
- package/dist/dockerfile-9po6dG-o.js +0 -191
- package/dist/echarts-BoOHozGo.js +0 -40645
- package/dist/echarts-UHRUTyW5.js +0 -2
- package/dist/echarts-stat-BpjkXSGP.js +0 -758
- package/dist/echarts-wordcloud-C4S7V63B.js +0 -41196
- package/dist/ecl-DN-08G6d.js +0 -226
- package/dist/editor.api-BLSqJfJw.js +0 -52799
- package/dist/editor.main-DxqD8h8J.js +0 -25006
- package/dist/elixir-Bg2tHOWB.js +0 -502
- package/dist/exceljs.min-rySyuern.js +0 -32053
- package/dist/flow9-BYOsrvw_.js +0 -176
- package/dist/fsharp-D9Jk9PLu.js +0 -147
- package/dist/go-bcCDHZbH.js +0 -165
- package/dist/graphql-KgUEKXmD.js +0 -174
- package/dist/handlebars-CxooQyUE.js +0 -411
- package/dist/hcl-D9qQyD3U.js +0 -219
- package/dist/hls-B3JojJIY.js +0 -11744
- package/dist/html-C8paOF_z.js +0 -324
- package/dist/htmlMode-DUY0WpaQ.js +0 -1315
- package/dist/htmlmixed-Bk3OXLUW.js +0 -752
- package/dist/ini-CbegPV4_.js +0 -94
- package/dist/java-CoYjXiV5.js +0 -173
- package/dist/javascript-B-nZu65x.js +0 -3
- package/dist/javascript-B5RUfpLH.js +0 -644
- package/dist/javascript-BvdTpH9T.js +0 -20
- package/dist/jsonMode-DqxQUT_D.js +0 -1732
- package/dist/jsx-runtime-dJt9Bcyk.js +0 -483
- package/dist/julia-BCeYG-2j.js +0 -414
- package/dist/kotlin-49dZ3L-s.js +0 -183
- package/dist/less-C9clSwPO.js +0 -242
- package/dist/lexon-Cl4wfGr8.js +0 -185
- package/dist/liquid-Cu4-0cTf.js +0 -198
- package/dist/lua-C3V1qqFY.js +0 -200
- package/dist/m3-CmTTf5vS.js +0 -193
- package/dist/markdown-CgpWVpim.js +0 -262
- package/dist/mips-B5PNcZQI.js +0 -128
- package/dist/monaco-editor-core-C-xWGlqO.js +0 -0
- package/dist/monaco-editor-core-CDGnFY-Z.js +0 -0
- package/dist/monaco-editor-core-CxtO33k4.js +0 -0
- package/dist/monaco-editor-core-D4M9OCQX.js +0 -0
- package/dist/monaco.contribution-CQAFVKc1.js +0 -143
- package/dist/mpegts-BTeZzpxt.js +0 -8265
- package/dist/msdax-r2XlPRD-.js +0 -156
- package/dist/multiplex-5e-K7CV8.js +0 -87
- package/dist/mysql-Dq2p_lON.js +0 -167
- package/dist/objective-c-CBsiYM21.js +0 -144
- package/dist/pascal-BItY5zcG.js +0 -176
- package/dist/pascaligo-BEd5W0lq.js +0 -201
- package/dist/perl-YEWwrGNS.js +0 -316
- package/dist/pgsql-STYROg6U.js +0 -158
- package/dist/php-BhjDhZhE.js +0 -471
- package/dist/pla-69YGUApl.js +0 -146
- package/dist/placeholder-TI6RfD7a.js +0 -51
- package/dist/postiats-BwnxJQ65.js +0 -504
- package/dist/powerquery-CJ5OzCtN.js +0 -190
- package/dist/powershell-5oAvsJme.js +0 -211
- package/dist/protobuf-BKmjRS2y.js +0 -655
- package/dist/pug-D47YI87f.js +0 -300
- package/dist/python-Ca_2hKUM.js +0 -193
- package/dist/qsharp-DOrqwgbJ.js +0 -126
- package/dist/r-Ck56_YSX.js +0 -189
- package/dist/razor-Dpnk-Jgk.js +0 -518
- package/dist/react-DkmrFaDK.js +0 -2
- package/dist/redis-B2RGbwSs.js +0 -123
- package/dist/redshift-BxXDe8JW.js +0 -158
- package/dist/restructuredtext-CQU17qB7.js +0 -287
- package/dist/ruby-6YAz4YLB.js +0 -527
- package/dist/rust-BPKfJCj4.js +0 -178
- package/dist/sb-Bko9Tf62.js +0 -143
- package/dist/scala-DbuznnfG.js +0 -551
- package/dist/scheme-DjjlYaIt.js +0 -170
- package/dist/scss-ftgS-EWv.js +0 -417
- package/dist/shell-BraQVhHz.js +0 -220
- package/dist/simple-BDjQu7h8.js +0 -159
- package/dist/solidity-BRiKyGMN.js +0 -147
- package/dist/sophia-C3j8BaDt.js +0 -147
- package/dist/sparql-BO51o50V.js +0 -124
- package/dist/sql-DjZmxCBT.js +0 -171
- package/dist/st-Diw_p9zN.js +0 -476
- package/dist/swift-BYb-V2At.js +0 -227
- package/dist/systemverilog-FC2a4obu.js +0 -298
- package/dist/tcl-BJ4C0lWN.js +0 -223
- package/dist/tsMode-DHU6w7dB.js +0 -988
- package/dist/twig-Cxoc9569.js +0 -388
- package/dist/typescript-BriYStQk.js +0 -4
- package/dist/typescript-DqVrT-wu.js +0 -255
- package/dist/vb-6JrnSfMV.js +0 -260
- package/dist/xlsx-CN8xddf7.js +0 -19361
- package/dist/xml-B6T0C-Yp.js +0 -129
- package/dist/xor-BVWGTNW4.js +0 -20
- package/dist/yaml-4nmc7DZo.js +0 -216
- /package/dist/{IconPickerIcons-DWxjoU6-.js → IconPickerIcons-dHFcDHrv.js} +0 -0
- /package/dist/{chunk-BztcrWZM.js → rolldown-runtime-DwW8Tac2.js} +0 -0
|
@@ -0,0 +1,508 @@
|
|
|
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, c as __rest, 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 "./isEqual-E2NjjS0_.js";
|
|
6
|
+
import { J as CustomStyle, Nn as autobind, Xr as filter, Z as setThemeClassName, cr as guid, dt as ScopedContext, ft as filterTarget, it as Renderer, oi as createObject, ra as isAlive, sa as reaction, wt as ModalStore, xr as isVisible, yr as isObjectShallowModified } from "./esm-DEyK_c3W.js";
|
|
7
|
+
import { t as require_react_dom } from "./react-dom-D1mxcNoQ.js";
|
|
8
|
+
import { Bt as FinalModal } from "./esm-Cj_BRpNI.js";
|
|
9
|
+
import { i as Spinner$1, s as Icon } from "./PopUp-Bgkvnd4X.js";
|
|
10
|
+
var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom = require_react_dom(), Dialog = function(e) {
|
|
11
|
+
__extends(i, e);
|
|
12
|
+
function i(i) {
|
|
13
|
+
var a = e.call(this, i) || this;
|
|
14
|
+
a.isDead = !1, a.$$id = guid(), i.store.setEntered(!!i.show), a.handleSelfClose = a.handleSelfClose.bind(a), a.handleSelfScreen = a.handleSelfScreen.bind(a), a.handleAction = a.handleAction.bind(a), a.handleActionSensor = a.handleActionSensor.bind(a), a.handleDialogConfirm = a.handleDialogConfirm.bind(a), a.handleDialogClose = a.handleDialogClose.bind(a), a.handleDrawerConfirm = a.handleDrawerConfirm.bind(a), a.handleDrawerClose = a.handleDrawerClose.bind(a), a.handleEntered = a.handleEntered.bind(a), a.handleExited = a.handleExited.bind(a), a.handleFormInit = a.handleFormInit.bind(a), a.handleFormSaved = a.handleFormSaved.bind(a), a.handleFormChange = a.handleFormChange.bind(a), a.handleChildFinished = a.handleChildFinished.bind(a);
|
|
15
|
+
var o = i.store;
|
|
16
|
+
return a.reaction = reaction(function() {
|
|
17
|
+
return `${o.loading}${o.error}`;
|
|
18
|
+
}, function() {
|
|
19
|
+
return a.forceUpdate();
|
|
20
|
+
}), a;
|
|
21
|
+
}
|
|
22
|
+
return i.prototype.componentWillUnmount = function() {
|
|
23
|
+
this.reaction && this.reaction(), this.isDead = !0;
|
|
24
|
+
}, i.prototype.buildActions = function() {
|
|
25
|
+
var e = this.props, i = e.actions, a = e.confirm, o = e.translate, s = e.testIdBuilder;
|
|
26
|
+
if (i !== void 0) return i;
|
|
27
|
+
var c = [];
|
|
28
|
+
return c.push({
|
|
29
|
+
type: "button",
|
|
30
|
+
testIdBuilder: s?.getChild("cancel"),
|
|
31
|
+
actionType: "cancel",
|
|
32
|
+
label: o("cancel")
|
|
33
|
+
}), a && c.push({
|
|
34
|
+
type: "button",
|
|
35
|
+
testIdBuilder: s?.getChild("confirm"),
|
|
36
|
+
actionType: "confirm",
|
|
37
|
+
label: o("confirm"),
|
|
38
|
+
primary: !0
|
|
39
|
+
}), c;
|
|
40
|
+
}, i.prototype.handleSelfScreen = function(e) {
|
|
41
|
+
e.preventDefault(), e.stopPropagation();
|
|
42
|
+
var i = this.props.store;
|
|
43
|
+
i.setFullScreen(!i.isFullscreen);
|
|
44
|
+
}, i.prototype.handleSelfClose = function(e, i) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
46
|
+
var e, o, s, c, l;
|
|
47
|
+
return __generator(this, function(a) {
|
|
48
|
+
switch (a.label) {
|
|
49
|
+
case 0: return e = this.props, o = e.onClose, s = e.store, c = e.dispatchEvent, [4, c("cancel", this.props.data)];
|
|
50
|
+
case 1: return l = a.sent(), l?.prevented ? [2] : l?.pendingPromise.length ? [4, l.allDone()] : [3, 3];
|
|
51
|
+
case 2: a.sent(), a.label = 3;
|
|
52
|
+
case 3: return s.updateMessage(), s.setFullScreen(!1), o(i), [2];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}, i.prototype.handleActionSensor = function(e) {
|
|
57
|
+
var i = this, a = this.props.store, o = a.busying;
|
|
58
|
+
a.markBusying(!0), a.updateMessage(), e.then(function() {
|
|
59
|
+
a.markBusying(o);
|
|
60
|
+
}).catch(function(e) {
|
|
61
|
+
i.isDead || (a.updateMessage(e.message, !0), a.markBusying(o));
|
|
62
|
+
});
|
|
63
|
+
}, i.prototype.handleAction = function(e, i, a) {
|
|
64
|
+
var o = this.props, s = o.store, c = o.onAction;
|
|
65
|
+
i.type === "reset" ? s.reset() : i.actionType === "cancel" ? this.handleSelfClose() : c && c(e, i, a);
|
|
66
|
+
}, i.prototype.handleDialogConfirm = function(e, i) {
|
|
67
|
+
var a = [...arguments].slice(2), o = this.props.store;
|
|
68
|
+
i.mergeData && e.length === 1 && e[0] && o.updateData(e[0]);
|
|
69
|
+
var s = o.action.dialog;
|
|
70
|
+
s && s.onConfirm && s.onConfirm.apply(s, __spreadArray([e, i], __read(a), !1)) === !1 || o.closeDialog(!0, e);
|
|
71
|
+
}, i.prototype.handleDialogClose = function() {
|
|
72
|
+
var e = [...arguments], i = this.props.store, a = i.action.dialog;
|
|
73
|
+
a.onClose && a.onClose.apply(a, __spreadArray([], __read(e), !1)) === !1 || i.closeDialog(e[1]);
|
|
74
|
+
}, i.prototype.handleDrawerConfirm = function(e, i) {
|
|
75
|
+
var a = [...arguments].slice(2), o = this.props.store;
|
|
76
|
+
i.mergeData && e.length === 1 && e[0] && o.updateData(e[0]);
|
|
77
|
+
var s = o.action.drawer;
|
|
78
|
+
s && s.onConfirm && s.onConfirm.apply(s, __spreadArray([e, i], __read(a), !1)) === !1 || o.closeDrawer(!0, e);
|
|
79
|
+
}, i.prototype.handleDrawerClose = function() {
|
|
80
|
+
var e = [...arguments], i = this.props.store, a = i.action.drawer;
|
|
81
|
+
a.onClose && a.onClose.apply(a, __spreadArray([], __read(e), !1)) === !1 || i.closeDrawer.apply(i, __spreadArray([], __read(e), !1));
|
|
82
|
+
}, i.prototype.handleEntered = function() {
|
|
83
|
+
var e = this.props, i = e.lazySchema, a = e.store;
|
|
84
|
+
a.setEntered(!0), a.markBusying(!1), typeof i == "function" && a.setSchema(i(this.props));
|
|
85
|
+
var o = document.activeElement;
|
|
86
|
+
if (o) {
|
|
87
|
+
var s = (0, import_react_dom.findDOMNode)(this);
|
|
88
|
+
s && !s.contains(o) && o.blur();
|
|
89
|
+
}
|
|
90
|
+
}, i.prototype.handleExited = function() {
|
|
91
|
+
var e = this.props, i = e.lazySchema, a = e.store, o = e.statusStore;
|
|
92
|
+
o && isAlive(o) && o.resetAll(), isAlive(a) && (a.reset(), a.clearMessage(), a.markBusying(!1), a.setEntered(!1), typeof i == "function" && a.setSchema(""));
|
|
93
|
+
}, i.prototype.handleFormInit = function(e) {
|
|
94
|
+
this.props.store.setFormData(e);
|
|
95
|
+
}, i.prototype.handleFormChange = function(e, i) {
|
|
96
|
+
var a = this.props.store;
|
|
97
|
+
if (typeof i == "string") {
|
|
98
|
+
a.changeValue(i, e);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
a.setFormData(e);
|
|
102
|
+
}, i.prototype.handleFormSaved = function(e, i) {
|
|
103
|
+
this.props.store.setFormData(__assign(__assign({}, e), i));
|
|
104
|
+
}, i.prototype.handleChildFinished = function(e, i) {}, i.prototype.openFeedback = function(e, i) {
|
|
105
|
+
var a = this;
|
|
106
|
+
return new Promise(function(o) {
|
|
107
|
+
var s = a.props.store;
|
|
108
|
+
s.setCurrentAction({
|
|
109
|
+
type: "button",
|
|
110
|
+
actionType: "dialog",
|
|
111
|
+
dialog: e
|
|
112
|
+
}, a.props.resolveDefinitions), s.openDialog(i, void 0, function(e) {
|
|
113
|
+
o(e);
|
|
114
|
+
}, a.context);
|
|
115
|
+
});
|
|
116
|
+
}, i.prototype.getPopOverContainer = function() {
|
|
117
|
+
return (0, import_react_dom.findDOMNode)(this).querySelector(`.${this.props.classPrefix}Modal-content`);
|
|
118
|
+
}, i.prototype.renderBody = function(e, i) {
|
|
119
|
+
var a = this, o = this.props, s = o.render, c = o.store;
|
|
120
|
+
if (Array.isArray(e)) return e.map(function(e, i) {
|
|
121
|
+
return a.renderBody(e, i);
|
|
122
|
+
});
|
|
123
|
+
var l = {
|
|
124
|
+
key: i,
|
|
125
|
+
disabled: e && e.disabled || c.loading,
|
|
126
|
+
onAction: this.handleAction,
|
|
127
|
+
onFinished: this.handleChildFinished,
|
|
128
|
+
popOverContainer: this.getPopOverContainer,
|
|
129
|
+
onChange: this.handleFormChange,
|
|
130
|
+
onInit: this.handleFormInit,
|
|
131
|
+
onSaved: this.handleFormSaved,
|
|
132
|
+
onActionSensor: this.handleActionSensor,
|
|
133
|
+
btnDisabled: c.loading,
|
|
134
|
+
syncLocation: !1
|
|
135
|
+
};
|
|
136
|
+
if (!e.type) return s(`body${i ? `/${i}` : ""}`, e, l);
|
|
137
|
+
var u = e;
|
|
138
|
+
return u.type === "form" && (u = __assign({
|
|
139
|
+
mode: "horizontal",
|
|
140
|
+
wrapWithPanel: !1,
|
|
141
|
+
submitText: null
|
|
142
|
+
}, u)), s(`body${i ? `/${i}` : ""}`, u, l);
|
|
143
|
+
}, i.prototype.renderFooter = function() {
|
|
144
|
+
var e = this, i = this.buildActions(), a = this.props.hideActions;
|
|
145
|
+
if (!i || !i.length || a) return null;
|
|
146
|
+
var o = this.props, s = o.store, c = o.render, l = o.env, u = o.classnames, d = o.showErrorMsg, f = o.showLoading, p = o.show, m = o.dialogFooterClassName;
|
|
147
|
+
return import_react.createElement("div", { className: u("Modal-footer", m) }, f !== !1 && s.loading || d !== !1 && s.error ? import_react.createElement("div", {
|
|
148
|
+
className: u("Dialog-info"),
|
|
149
|
+
key: "info"
|
|
150
|
+
}, f === !1 ? null : import_react.createElement(Spinner$1, {
|
|
151
|
+
size: "sm",
|
|
152
|
+
key: "info",
|
|
153
|
+
show: s.loading
|
|
154
|
+
}), !l.forceSilenceInsideError && s.error && d !== !1 ? import_react.createElement("span", { className: u("Dialog-error") }, s.msg) : null) : null, i.map(function(i, a) {
|
|
155
|
+
return c(`action/${a}`, i, {
|
|
156
|
+
data: s.formData,
|
|
157
|
+
onAction: e.handleAction,
|
|
158
|
+
onActionSensor: void 0,
|
|
159
|
+
btnDisabled: s.loading,
|
|
160
|
+
key: a,
|
|
161
|
+
disabled: i.disabled || s.loading || !p
|
|
162
|
+
});
|
|
163
|
+
}));
|
|
164
|
+
}, i.prototype.render = function() {
|
|
165
|
+
var e = this.props.store, i = __assign(__assign({}, this.props), e.schema), a = i.className, s = i.style, c = i.size, l = i.height, u = i.width, d = i.closeOnEsc, p = i.closeOnOutside, h = i.title, v = i.render, y = i.header, b = i.body, x = i.bodyClassName, S = i.headerClassName, C = i.show, w = i.lazyRender, T = i.lazySchema, E = i.wrapperComponent, D = i.showCloseButton, O = i.env, A = i.classnames, j = i.classPrefix, M = i.translate, N = i.loadingConfig, P = i.overlay, F = i.dialogType, I = i.cancelText, L = i.confirmText, R = i.confirmBtnLevel, z = i.cancelBtnLevel;
|
|
166
|
+
i.popOverContainer, i.inDesign;
|
|
167
|
+
var B = i.themeCss, V = i.allowFullscreen, H = i.draggable, U = i.id, W = __rest(i, /* @__PURE__ */ "className.style.size.height.width.closeOnEsc.closeOnOutside.title.render.header.body.bodyClassName.headerClassName.show.lazyRender.lazySchema.wrapperComponent.showCloseButton.env.classnames.classPrefix.translate.loadingConfig.overlay.dialogType.cancelText.confirmText.confirmBtnLevel.cancelBtnLevel.popOverContainer.inDesign.themeCss.allowFullscreen.draggable.id".split(".")), G = E || FinalModal;
|
|
168
|
+
return import_react.createElement(G, __assign({}, W, {
|
|
169
|
+
classPrefix: j,
|
|
170
|
+
className: A(a),
|
|
171
|
+
style: s,
|
|
172
|
+
draggable: e.isFullscreen ? !1 : H,
|
|
173
|
+
size: c,
|
|
174
|
+
height: l,
|
|
175
|
+
width: u,
|
|
176
|
+
isFullscreen: e.isFullscreen,
|
|
177
|
+
modalClassName: A(setThemeClassName(__assign(__assign({}, this.props), {
|
|
178
|
+
name: "dialogClassName",
|
|
179
|
+
id: U,
|
|
180
|
+
themeCss: B
|
|
181
|
+
})), e.isFullscreen ? "Modal-fullScreen" : ""),
|
|
182
|
+
modalMaskClassName: setThemeClassName(__assign(__assign({}, this.props), {
|
|
183
|
+
name: "dialogMaskClassName",
|
|
184
|
+
id: U,
|
|
185
|
+
themeCss: B
|
|
186
|
+
})),
|
|
187
|
+
backdrop: "static",
|
|
188
|
+
onHide: this.handleSelfClose,
|
|
189
|
+
keyboard: d && !e.loading,
|
|
190
|
+
closeOnEsc: d,
|
|
191
|
+
closeOnOutside: !e.dialogOpen && p,
|
|
192
|
+
show: C,
|
|
193
|
+
onEntered: this.handleEntered,
|
|
194
|
+
onExited: this.handleExited,
|
|
195
|
+
container: O?.getModalContainer,
|
|
196
|
+
enforceFocus: !1,
|
|
197
|
+
disabled: e.loading,
|
|
198
|
+
overlay: P,
|
|
199
|
+
dialogType: F,
|
|
200
|
+
cancelText: I,
|
|
201
|
+
confirmText: L,
|
|
202
|
+
confirmBtnLevel: R,
|
|
203
|
+
cancelBtnLevel: z
|
|
204
|
+
}), h && typeof h == "string" ? import_react.createElement("div", { className: A("Modal-header", S, setThemeClassName(__assign(__assign({}, this.props), {
|
|
205
|
+
name: "dialogHeaderClassName",
|
|
206
|
+
id: U,
|
|
207
|
+
themeCss: B
|
|
208
|
+
}))) }, D !== !1 && !e.loading ? import_react.createElement("a", {
|
|
209
|
+
"data-tooltip": M("Dialog.close"),
|
|
210
|
+
"data-position": "left",
|
|
211
|
+
onClick: this.handleSelfClose,
|
|
212
|
+
className: A("Modal-close")
|
|
213
|
+
}, import_react.createElement(Icon, {
|
|
214
|
+
icon: "close",
|
|
215
|
+
className: "icon",
|
|
216
|
+
iconContent: "Dialog-close"
|
|
217
|
+
})) : null, V ? import_react.createElement("a", {
|
|
218
|
+
"data-tooltip": e.isFullscreen ? M("Dialog.reset") : M("Dialog.screen"),
|
|
219
|
+
"data-position": "left",
|
|
220
|
+
onClick: this.handleSelfScreen,
|
|
221
|
+
className: A("Modal-close Modal-screen")
|
|
222
|
+
}, import_react.createElement(Icon, {
|
|
223
|
+
icon: e.isFullscreen ? "un-fullscreen" : "full-screen",
|
|
224
|
+
className: "icon"
|
|
225
|
+
})) : null, import_react.createElement("div", { className: A("Modal-title", setThemeClassName(__assign(__assign({}, this.props), {
|
|
226
|
+
name: "dialogTitleClassName",
|
|
227
|
+
id: U,
|
|
228
|
+
themeCss: B
|
|
229
|
+
}))) }, filter(M(h), e.formData))) : h ? import_react.createElement("div", { className: A("Modal-header", S, setThemeClassName(__assign(__assign({}, this.props), {
|
|
230
|
+
name: "dialogHeaderClassName",
|
|
231
|
+
id: U,
|
|
232
|
+
themeCss: B
|
|
233
|
+
}))) }, D !== !1 && !e.loading ? import_react.createElement("a", {
|
|
234
|
+
"data-tooltip": M("Dialog.close"),
|
|
235
|
+
onClick: this.handleSelfClose,
|
|
236
|
+
className: A("Modal-close")
|
|
237
|
+
}, import_react.createElement(Icon, {
|
|
238
|
+
icon: "close",
|
|
239
|
+
className: "icon",
|
|
240
|
+
iconContent: "Dialog-close"
|
|
241
|
+
})) : null, V ? import_react.createElement("a", {
|
|
242
|
+
"data-tooltip": e.isFullscreen ? M("Dialog.reset") : M("Dialog.screen"),
|
|
243
|
+
"data-position": "left",
|
|
244
|
+
onClick: this.handleSelfScreen,
|
|
245
|
+
className: A("Modal-close Modal-screen")
|
|
246
|
+
}, import_react.createElement(Icon, {
|
|
247
|
+
icon: e.isFullscreen ? "un-fullscreen" : "full-screen",
|
|
248
|
+
className: "icon"
|
|
249
|
+
})) : null, v("title", h, {
|
|
250
|
+
data: e.formData,
|
|
251
|
+
onAction: this.handleAction,
|
|
252
|
+
onActionSensor: void 0,
|
|
253
|
+
btnDisabled: e.loading
|
|
254
|
+
})) : D !== !1 && !e.loading ? import_react.createElement("a", {
|
|
255
|
+
"data-tooltip": M("Dialog.close"),
|
|
256
|
+
onClick: this.handleSelfClose,
|
|
257
|
+
className: A("Modal-close")
|
|
258
|
+
}, import_react.createElement(Icon, {
|
|
259
|
+
icon: "close",
|
|
260
|
+
className: "icon",
|
|
261
|
+
iconContent: "Dialog-close"
|
|
262
|
+
})) : null, y ? v("header", y, {
|
|
263
|
+
data: e.formData,
|
|
264
|
+
onAction: this.handleAction,
|
|
265
|
+
onActionSensor: void 0,
|
|
266
|
+
btnDisabled: e.loading
|
|
267
|
+
}) : null, !e.entered && w || T && !b ? import_react.createElement("div", {
|
|
268
|
+
className: A("Modal-body", x, setThemeClassName(__assign(__assign({}, this.props), {
|
|
269
|
+
name: "dialogBodyClassName",
|
|
270
|
+
id: U,
|
|
271
|
+
themeCss: B
|
|
272
|
+
}))),
|
|
273
|
+
role: "dialog-body"
|
|
274
|
+
}, import_react.createElement(Spinner$1, {
|
|
275
|
+
overlay: !0,
|
|
276
|
+
show: !0,
|
|
277
|
+
size: "lg",
|
|
278
|
+
loadingConfig: N
|
|
279
|
+
})) : b ? import_react.createElement("div", {
|
|
280
|
+
className: A("Modal-body", x, setThemeClassName(__assign(__assign({}, this.props), {
|
|
281
|
+
name: "dialogBodyClassName",
|
|
282
|
+
id: U,
|
|
283
|
+
themeCss: B
|
|
284
|
+
}))),
|
|
285
|
+
role: "dialog-body"
|
|
286
|
+
}, this.renderBody(b, "body"), import_react.createElement(CustomStyle, __assign({}, this.props, {
|
|
287
|
+
config: {
|
|
288
|
+
themeCss: B,
|
|
289
|
+
classNames: [
|
|
290
|
+
{ key: "dialogClassName" },
|
|
291
|
+
{ key: "dialogMaskClassName" },
|
|
292
|
+
{ key: "dialogHeaderClassName" },
|
|
293
|
+
{ key: "dialogTitleClassName" },
|
|
294
|
+
{ key: "dialogBodyClassName" },
|
|
295
|
+
{ key: "dialogFooterClassName" }
|
|
296
|
+
],
|
|
297
|
+
id: U
|
|
298
|
+
},
|
|
299
|
+
env: O
|
|
300
|
+
}))) : null, b ? this.renderFooter() : null, b ? v("drawer", __assign(__assign({}, e.drawerSchema), { type: "drawer" }), {
|
|
301
|
+
key: "drawer",
|
|
302
|
+
data: e.drawerData,
|
|
303
|
+
onConfirm: this.handleDrawerConfirm,
|
|
304
|
+
onClose: this.handleDrawerClose,
|
|
305
|
+
show: e.drawerOpen,
|
|
306
|
+
onAction: this.handleAction
|
|
307
|
+
}) : null, b ? v("dialog", __assign(__assign({}, e.dialogSchema), { type: "dialog" }), {
|
|
308
|
+
key: "dialog",
|
|
309
|
+
data: e.dialogData,
|
|
310
|
+
onConfirm: this.handleDialogConfirm,
|
|
311
|
+
onClose: this.handleDialogClose,
|
|
312
|
+
show: e.dialogOpen,
|
|
313
|
+
onAction: this.handleAction
|
|
314
|
+
}) : null);
|
|
315
|
+
}, i.propsList = [
|
|
316
|
+
"title",
|
|
317
|
+
"size",
|
|
318
|
+
"closeOnEsc",
|
|
319
|
+
"closeOnOutside",
|
|
320
|
+
"children",
|
|
321
|
+
"bodyClassName",
|
|
322
|
+
"headerClassName",
|
|
323
|
+
"confirm",
|
|
324
|
+
"onClose",
|
|
325
|
+
"onConfirm",
|
|
326
|
+
"show",
|
|
327
|
+
"body",
|
|
328
|
+
"showCloseButton",
|
|
329
|
+
"showErrorMsg",
|
|
330
|
+
"actions",
|
|
331
|
+
"popOverContainer",
|
|
332
|
+
"overlay",
|
|
333
|
+
"draggable",
|
|
334
|
+
"allowFullscreen"
|
|
335
|
+
], i.defaultProps = {
|
|
336
|
+
title: "Dialog.title",
|
|
337
|
+
bodyClassName: "",
|
|
338
|
+
confirm: !0,
|
|
339
|
+
show: !1,
|
|
340
|
+
lazyRender: !1,
|
|
341
|
+
showCloseButton: !0,
|
|
342
|
+
wrapperComponent: FinalModal,
|
|
343
|
+
closeOnEsc: !1,
|
|
344
|
+
closeOnOutside: !1,
|
|
345
|
+
showErrorMsg: !0
|
|
346
|
+
}, __decorate([
|
|
347
|
+
autobind,
|
|
348
|
+
__metadata("design:type", Function),
|
|
349
|
+
__metadata("design:paramtypes", []),
|
|
350
|
+
__metadata("design:returntype", void 0)
|
|
351
|
+
], i.prototype, "getPopOverContainer", null), i;
|
|
352
|
+
}(import_react.Component), DialogRenderer = function(e) {
|
|
353
|
+
__extends(i, e);
|
|
354
|
+
function i(i, a) {
|
|
355
|
+
var o = e.call(this, i) || this;
|
|
356
|
+
return a.registerComponent(o), o;
|
|
357
|
+
}
|
|
358
|
+
return i.prototype.componentWillUnmount = function() {
|
|
359
|
+
this.context.unRegisterComponent(this), e.prototype.componentWillUnmount.call(this), clearTimeout(this.clearErrorTimer);
|
|
360
|
+
}, i.prototype.tryChildrenToHandle = function(e, i, a) {
|
|
361
|
+
var o = this, s = this.context, c = [], l = this.props, u = l.onConfirm, m = l.store;
|
|
362
|
+
if (e.target && c.push.apply(c, __spreadArray([], __read(e.target.split(",").map(function(e) {
|
|
363
|
+
return s.getComponentByName(e);
|
|
364
|
+
}).filter(function(e) {
|
|
365
|
+
return e && e.doAction;
|
|
366
|
+
})), !1)), e?.isolateScope !== !0 && !c.length) for (var h = s.getComponents().filter(function(e) {
|
|
367
|
+
return !~["drawer", "dialog"].indexOf(e.props.type);
|
|
368
|
+
}).concat(); h.length;) {
|
|
369
|
+
var g = h.pop();
|
|
370
|
+
if (~[
|
|
371
|
+
"crud",
|
|
372
|
+
"form",
|
|
373
|
+
"wizard"
|
|
374
|
+
].indexOf(g.props.type)) {
|
|
375
|
+
c.push(g);
|
|
376
|
+
break;
|
|
377
|
+
} else if (~["drawer", "dialog"].indexOf(g.props.type)) continue;
|
|
378
|
+
else ~["page", "service"].indexOf(g.props.type) && h.unshift.apply(h, g.context.getComponents());
|
|
379
|
+
}
|
|
380
|
+
return c.length ? (m.markBusying(!0), m.updateMessage(), Promise.all(c.map(function(a) {
|
|
381
|
+
return a.doAction(__assign(__assign({}, e), { from: o.$$id }), i, !0);
|
|
382
|
+
})).then(function(s) {
|
|
383
|
+
(e.type === "submit" || e.actionType === "submit" || e.actionType === "confirm") && e.close !== !1 && !c.some(function(e) {
|
|
384
|
+
return e.props.closeDialogOnSubmit === !1;
|
|
385
|
+
}) ? u && u(s, a || e, i, c) : e.close && (e.close === !0 ? o.handleSelfClose() : o.closeTarget(e.close)), m.markBusying(!1);
|
|
386
|
+
}).catch(function(e) {
|
|
387
|
+
o.isDead || (m.updateMessage(e.message, !0), m.markBusying(!1), clearTimeout(o.clearErrorTimer), o.clearErrorTimer = setTimeout(function() {
|
|
388
|
+
o.isDead || m.updateMessage("");
|
|
389
|
+
}, 3e3));
|
|
390
|
+
}), !0) : !1;
|
|
391
|
+
}, i.prototype.doAction = function(e, i, a) {
|
|
392
|
+
this.handleAction(void 0, e, i);
|
|
393
|
+
}, i.prototype.handleAction = function(e, i, o, s, l, u) {
|
|
394
|
+
return s === void 0 && (s = !1), __awaiter(this, void 0, void 0, function() {
|
|
395
|
+
var d, p, m, h, _, v, y, x, C, w, T, D, O = this;
|
|
396
|
+
return __generator(this, function(k) {
|
|
397
|
+
switch (k.label) {
|
|
398
|
+
case 0: return d = this.props, p = d.onAction, m = d.store, h = d.onConfirm, _ = d.env, v = d.dispatchEvent, y = d.onClose, x = d.show, i.from === this.$$id || !x ? [2, p ? p(e, i, o, s, l || this.context) : !1] : u?.pendingPromise.length ? [4, u.allDone()] : [3, 2];
|
|
399
|
+
case 1: k.sent(), k.label = 2;
|
|
400
|
+
case 2: return C = this.context, i.type === "reset" ? (m.setCurrentAction(i, this.props.resolveDefinitions), m.reset(), [3, 19]) : [3, 3];
|
|
401
|
+
case 3: return i.actionType === "close" || i.actionType === "cancel" ? [4, v("cancel", createObject(this.props.data, o))] : [3, 7];
|
|
402
|
+
case 4: return w = k.sent(), w?.prevented ? [2] : w?.pendingPromise.length ? [4, w.allDone()] : [3, 6];
|
|
403
|
+
case 5: k.sent(), k.label = 6;
|
|
404
|
+
case 6: return m.setCurrentAction(i, this.props.resolveDefinitions), m.updateMessage(), y(), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), [3, 19];
|
|
405
|
+
case 7: return i.actionType === "confirm" ? [4, v("confirm", createObject(this.props.data, o))] : [3, 11];
|
|
406
|
+
case 8: return T = k.sent(), T?.prevented ? [2] : T?.pendingPromise.length ? [4, T.allDone()] : [3, 10];
|
|
407
|
+
case 9: k.sent(), k.label = 10;
|
|
408
|
+
case 10: return m.setCurrentAction(i, this.props.resolveDefinitions), D = this.tryChildrenToHandle(__assign(__assign({}, i), { actionType: "submit" }), o, i), D || (m.updateMessage(), i.close !== !1 && y(!0)), [3, 19];
|
|
409
|
+
case 11: return i.actionType === "next" || i.actionType === "prev" ? (m.setCurrentAction(i, this.props.resolveDefinitions), i.type === "submit" ? this.tryChildrenToHandle(__assign(__assign({}, i), {
|
|
410
|
+
actionType: "submit",
|
|
411
|
+
close: !0
|
|
412
|
+
}), o, i) || this.handleSelfClose(void 0, !0) : h([o], i, o, []), [3, 19]) : [3, 12];
|
|
413
|
+
case 12: return i.actionType === "dialog" ? (m.setCurrentAction(i, this.props.resolveDefinitions), [2, new Promise(function(e) {
|
|
414
|
+
m.openDialog(o, void 0, function(a, o) {
|
|
415
|
+
var s;
|
|
416
|
+
(s = i.callback) == null || s.call(i, a, o), e({
|
|
417
|
+
confirmed: a,
|
|
418
|
+
value: o
|
|
419
|
+
});
|
|
420
|
+
}, l || O.context);
|
|
421
|
+
})]) : [3, 13];
|
|
422
|
+
case 13: return i.actionType === "drawer" ? (m.setCurrentAction(i, this.props.resolveDefinitions), [2, new Promise(function(e) {
|
|
423
|
+
m.openDrawer(o, void 0, function(a, o) {
|
|
424
|
+
var s;
|
|
425
|
+
(s = i.callback) == null || s.call(i, a, o), e({
|
|
426
|
+
confirmed: a,
|
|
427
|
+
value: o
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
})]) : [3, 14];
|
|
431
|
+
case 14: return i.actionType === "reload" ? (m.setCurrentAction(i, this.props.resolveDefinitions), i.target && C.reload(i.target, o), (i.close || i.type === "submit") && (this.handleSelfClose(void 0, i.type === "submit"), i.close && typeof i.close == "string" && this.closeTarget(i.close)), [3, 19]) : [3, 15];
|
|
432
|
+
case 15: return !i.from && this.tryChildrenToHandle(i, o) ? [3, 19] : [3, 16];
|
|
433
|
+
case 16: return i.actionType === "ajax" ? (m.setCurrentAction(i, this.props.resolveDefinitions), [2, m.saveRemote(i.api, o, {
|
|
434
|
+
successMessage: i.messages && i.messages.success,
|
|
435
|
+
errorMessage: i.messages && i.messages.failed
|
|
436
|
+
}).then(function() {
|
|
437
|
+
return __awaiter(O, void 0, void 0, function() {
|
|
438
|
+
var e;
|
|
439
|
+
return __generator(this, function(a) {
|
|
440
|
+
switch (a.label) {
|
|
441
|
+
case 0: return i.feedback && isVisible(i.feedback, m.data) ? [4, this.openFeedback(i.feedback, m.data)] : [3, 2];
|
|
442
|
+
case 1: a.sent(), a.label = 2;
|
|
443
|
+
case 2: return e = i.redirect && filter(i.redirect, m.data), e && _.jumpTo(e, i, m.data), i.reload && this.reloadTarget(filterTarget(i.reload, m.data), m.data), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), [2];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
}).catch(function(e) {
|
|
448
|
+
if (s || i.countDown) throw e;
|
|
449
|
+
})]) : [3, 17];
|
|
450
|
+
case 17: return p ? [4, p(e, __assign(__assign({}, i), { close: !1 }), o, s, l || this.context)] : [3, 19];
|
|
451
|
+
case 18: k.sent(), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), k.label = 19;
|
|
452
|
+
case 19: return [2];
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}, i.prototype.handleChildFinished = function(e, i) {
|
|
457
|
+
if (!(i && i.from === this.$$id || i.close === !1)) {
|
|
458
|
+
var a = this.context.getComponents().filter(function(e) {
|
|
459
|
+
return !~[
|
|
460
|
+
"drawer",
|
|
461
|
+
"dialog",
|
|
462
|
+
"action",
|
|
463
|
+
"button",
|
|
464
|
+
"submit",
|
|
465
|
+
"reset"
|
|
466
|
+
].indexOf(e.props.type);
|
|
467
|
+
}), o = this.props.onConfirm, s = this.props.onClose;
|
|
468
|
+
a.length === 1 && (a[0].props.type === "form" || a[0].props.type === "wizard") && (i.close === !0 || a[0].props.closeDialogOnSubmit !== !1) ? o && o([e], i, {}, a) : i.close === !0 && s();
|
|
469
|
+
}
|
|
470
|
+
}, i.prototype.handleDialogConfirm = function(i, a) {
|
|
471
|
+
var o = [...arguments].slice(2);
|
|
472
|
+
e.prototype.handleDialogConfirm.apply(this, __spreadArray([i, a], __read(o), !1));
|
|
473
|
+
var s = this.props.store, c = s.getDialogScoped() || this.context, l = s.action, u = a.reload ?? l.reload;
|
|
474
|
+
u ? c.reload(u, s.data) : c.component !== this && c.component?.reload ? c.component.reload() : this.context.getComponents().filter(function(e) {
|
|
475
|
+
return e.props.type === "crud";
|
|
476
|
+
}).forEach(function(e) {
|
|
477
|
+
return e.reload && e.reload();
|
|
478
|
+
});
|
|
479
|
+
}, i.prototype.handleDrawerConfirm = function(i, a) {
|
|
480
|
+
for (var o = this, s = [], c = 2; c < arguments.length; c++) s[c - 2] = arguments[c];
|
|
481
|
+
e.prototype.handleDrawerConfirm.call(this, i, a);
|
|
482
|
+
var l = this.props.store, u = l.getDialogScoped() || this.context, d = l.action, f = a.reload ?? d.reload;
|
|
483
|
+
setTimeout(function() {
|
|
484
|
+
f ? u.reload(f, l.data) : u.component !== o && u.component?.reload ? u.component.reload() : o.context.getComponents().filter(function(e) {
|
|
485
|
+
return e.props.type === "crud";
|
|
486
|
+
}).forEach(function(e) {
|
|
487
|
+
return e.reload && e.reload();
|
|
488
|
+
});
|
|
489
|
+
}, 300);
|
|
490
|
+
}, i.prototype.reloadTarget = function(e, i) {
|
|
491
|
+
this.context.reload(e, i);
|
|
492
|
+
}, i.prototype.closeTarget = function(e) {
|
|
493
|
+
this.context.close(e);
|
|
494
|
+
}, i.prototype.setData = function(e, i) {
|
|
495
|
+
return this.props.store.updateData(e, void 0, i);
|
|
496
|
+
}, i.prototype.getData = function() {
|
|
497
|
+
return this.props.store.data;
|
|
498
|
+
}, i.contextType = ScopedContext, i = __decorate([Renderer({
|
|
499
|
+
type: "dialog",
|
|
500
|
+
storeType: ModalStore.name,
|
|
501
|
+
storeExtendsData: !1,
|
|
502
|
+
isolateScope: !0,
|
|
503
|
+
shouldSyncSuperStore: function(e, i, a) {
|
|
504
|
+
return !!((e.dialogOpen || i.show) && (i.show !== a.show || isObjectShallowModified(a.data, i.data)));
|
|
505
|
+
}
|
|
506
|
+
}), __metadata("design:paramtypes", [Object, Object])], i), i;
|
|
507
|
+
}(Dialog);
|
|
508
|
+
export { DialogRenderer, Dialog as default };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { s as __toESM } from "./
|
|
2
|
-
import { t as require_react } from "./react-
|
|
1
|
+
import { s as __toESM } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
+
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
3
|
import { a as __generator, i as __extends, n as __awaiter, r as __decorate, t as __assign } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import "./function-
|
|
5
|
-
import "./isEqual-
|
|
6
|
-
import { F as FormItem,
|
|
7
|
-
import "./react-dom-
|
|
8
|
-
import { yt as DiffEditor } from "./esm-
|
|
9
|
-
import "./PopUp-
|
|
10
|
-
import "./Spinner-CRN0l4lj.js";
|
|
11
|
-
import "./Input-Bw7o6qMW.js";
|
|
4
|
+
import "./function-CNJMA2ft.js";
|
|
5
|
+
import "./isEqual-E2NjjS0_.js";
|
|
6
|
+
import { F as FormItem, Ni as resolveVariableAndFilter, Zr as isPureVariable, ht as resolveEventData, vi as getVariable } from "./esm-DEyK_c3W.js";
|
|
7
|
+
import "./react-dom-D1mxcNoQ.js";
|
|
8
|
+
import { yt as DiffEditor } from "./esm-Cj_BRpNI.js";
|
|
9
|
+
import "./PopUp-Bgkvnd4X.js";
|
|
12
10
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
13
11
|
function normalizeValue(e, i) {
|
|
14
12
|
if (e && typeof e != "string" && (e = JSON.stringify(e, null, 2)), i && i === "json") try {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as __toESM } from "./
|
|
2
|
-
import { t as require_react } from "./react-
|
|
1
|
+
import { s as __toESM } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
+
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
3
|
import { i as __extends, r as __decorate, t as __assign } from "./tslib.es6-DJiA3ePV.js";
|
|
4
|
-
import "./function-
|
|
5
|
-
import "./isEqual-
|
|
6
|
-
import { J as CustomStyle,
|
|
7
|
-
import "./react-dom-
|
|
4
|
+
import "./function-CNJMA2ft.js";
|
|
5
|
+
import "./isEqual-E2NjjS0_.js";
|
|
6
|
+
import { J as CustomStyle, Ni as resolveVariableAndFilter, Z as setThemeClassName, Zr as isPureVariable, it as Renderer } from "./esm-DEyK_c3W.js";
|
|
7
|
+
import "./react-dom-D1mxcNoQ.js";
|
|
8
8
|
var import_react = /* @__PURE__ */ __toESM(require_react()), Divider = function(e) {
|
|
9
9
|
__extends(s, e);
|
|
10
10
|
function s() {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { s as __toESM } from "./
|
|
2
|
-
import { t as require_react } from "./react-
|
|
1
|
+
import { s as __toESM } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
+
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
3
|
import { a as __generator, c as __rest, 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-
|
|
5
|
-
import "./isEqual-
|
|
6
|
-
import { J as CustomStyle,
|
|
7
|
-
import { t as require_react_dom } from "./react-dom-
|
|
8
|
-
import { wt as Drawer$1 } from "./esm-
|
|
9
|
-
import "./PopUp-
|
|
10
|
-
import { n as Spinner$1 } from "./Spinner-CRN0l4lj.js";
|
|
11
|
-
import "./Input-Bw7o6qMW.js";
|
|
4
|
+
import "./function-CNJMA2ft.js";
|
|
5
|
+
import "./isEqual-E2NjjS0_.js";
|
|
6
|
+
import { J as CustomStyle, Nn as autobind, Xr as filter, Z as setThemeClassName, cr as guid, dt as ScopedContext, ft as filterTarget, it as Renderer, oi as createObject, ra as isAlive, sa as reaction, wt as ModalStore, xr as isVisible, yr as isObjectShallowModified } from "./esm-DEyK_c3W.js";
|
|
7
|
+
import { t as require_react_dom } from "./react-dom-D1mxcNoQ.js";
|
|
8
|
+
import { wt as Drawer$1 } from "./esm-Cj_BRpNI.js";
|
|
9
|
+
import { i as Spinner$1 } from "./PopUp-Bgkvnd4X.js";
|
|
12
10
|
var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom = require_react_dom(), Drawer = function(e) {
|
|
13
11
|
__extends(i, e);
|
|
14
12
|
function i(i) {
|
|
@@ -155,7 +153,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
155
153
|
}, a.context);
|
|
156
154
|
});
|
|
157
155
|
}, i.prototype.render = function() {
|
|
158
|
-
var e = this.props.store, i = __assign(__assign({}, this.props), e.schema), a = i.className, s = i.style, c = i.size, l = i.closeOnEsc, u = i.position, d = i.title, p = i.render, h = i.header, g = i.body,
|
|
156
|
+
var e = this.props.store, i = __assign(__assign({}, this.props), e.schema), a = i.className, s = i.style, c = i.size, l = i.closeOnEsc, u = i.position, d = i.title, p = i.render, h = i.header, g = i.body, v = i.bodyClassName, y = i.headerClassName, b = i.show, x = i.showCloseButton, S = i.width, C = i.height, w = i.wrapperComponent, T = i.env, E = i.resizable, D = i.overlay, O = i.closeOnOutside, k = i.classPrefix, A = i.classnames, j = i.drawerContainer, M = i.loadingConfig;
|
|
159
157
|
i.popOverContainer;
|
|
160
158
|
var N = i.themeCss, P = i.id, F = __rest(i, /* @__PURE__ */ "className.style.size.closeOnEsc.position.title.render.header.body.bodyClassName.headerClassName.show.showCloseButton.width.height.wrapperComponent.env.resizable.overlay.closeOnOutside.classPrefix.classnames.drawerContainer.loadingConfig.popOverContainer.themeCss.id".split(".")), I = w || Drawer$1;
|
|
161
159
|
return import_react.createElement(I, __assign({}, F, {
|
|
@@ -211,7 +209,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
211
209
|
onActionSensor: void 0,
|
|
212
210
|
btnDisabled: e.loading
|
|
213
211
|
}) : null) : null, e.entered ? g ? import_react.createElement("div", {
|
|
214
|
-
className: A("Drawer-body",
|
|
212
|
+
className: A("Drawer-body", v, setThemeClassName(__assign(__assign({}, this.props), {
|
|
215
213
|
name: "drawerBodyClassName",
|
|
216
214
|
id: P,
|
|
217
215
|
themeCss: N
|
|
@@ -231,7 +229,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
231
229
|
id: P
|
|
232
230
|
},
|
|
233
231
|
env: T
|
|
234
|
-
}))) : null : import_react.createElement("div", { className: A("Drawer-body",
|
|
232
|
+
}))) : null : import_react.createElement("div", { className: A("Drawer-body", v, setThemeClassName(__assign(__assign({}, this.props), {
|
|
235
233
|
name: "drawerBodyClassName",
|
|
236
234
|
id: P,
|
|
237
235
|
themeCss: N
|
|
@@ -339,18 +337,18 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
339
337
|
this.handleAction(void 0, e, i);
|
|
340
338
|
}, i.prototype.handleAction = function(e, i, o, s, l, u) {
|
|
341
339
|
return s === void 0 && (s = !1), __awaiter(this, void 0, void 0, function() {
|
|
342
|
-
var d, f, p, m, h, _, v,
|
|
343
|
-
return __generator(this, function(
|
|
344
|
-
switch (
|
|
340
|
+
var d, f, p, m, h, _, v, y, x, C, w = this;
|
|
341
|
+
return __generator(this, function(T) {
|
|
342
|
+
switch (T.label) {
|
|
345
343
|
case 0: return d = this.props, f = d.onClose, p = d.onAction, m = d.store, h = d.env, _ = d.dispatchEvent, v = d.show, i.from === this.$$id || !v ? [2, p ? p(e, i, o, s, l || this.context) : !1] : u?.pendingPromise.length ? [4, u.allDone()] : [3, 2];
|
|
346
|
-
case 1:
|
|
347
|
-
case 2: return
|
|
348
|
-
case 3: return x =
|
|
349
|
-
case 4:
|
|
344
|
+
case 1: T.sent(), T.label = 2;
|
|
345
|
+
case 2: return y = this.context, i.actionType === "close" || i.actionType === "cancel" ? [4, _("cancel", createObject(this.props.data, o))] : [3, 6];
|
|
346
|
+
case 3: return x = T.sent(), x?.prevented ? [2] : x?.pendingPromise.length ? [4, x.allDone()] : [3, 5];
|
|
347
|
+
case 4: T.sent(), T.label = 5;
|
|
350
348
|
case 5: return m.setCurrentAction(i, this.props.resolveDefinitions), f(), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), [3, 17];
|
|
351
349
|
case 6: return i.actionType === "confirm" ? [4, _("confirm", createObject(this.props.data, o))] : [3, 10];
|
|
352
|
-
case 7: return
|
|
353
|
-
case 8:
|
|
350
|
+
case 7: return C = T.sent(), C?.prevented ? [2] : C?.pendingPromise.length ? [4, C.allDone()] : [3, 9];
|
|
351
|
+
case 8: T.sent(), T.label = 9;
|
|
354
352
|
case 9: return m.setCurrentAction(i, this.props.resolveDefinitions), this.tryChildrenToHandle(i, o) || f(), [3, 17];
|
|
355
353
|
case 10: return i.actionType === "drawer" ? (m.setCurrentAction(i, this.props.resolveDefinitions), [2, new Promise(function(e) {
|
|
356
354
|
m.openDrawer(o, void 0, function(a, o) {
|
|
@@ -368,15 +366,15 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
368
366
|
confirmed: a,
|
|
369
367
|
value: o
|
|
370
368
|
});
|
|
371
|
-
}, l ||
|
|
369
|
+
}, l || w.context);
|
|
372
370
|
})]) : [3, 12];
|
|
373
|
-
case 12: return i.actionType === "reload" ? (m.setCurrentAction(i, this.props.resolveDefinitions), i.target &&
|
|
371
|
+
case 12: return i.actionType === "reload" ? (m.setCurrentAction(i, this.props.resolveDefinitions), i.target && y.reload(i.target, o), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), [3, 17]) : [3, 13];
|
|
374
372
|
case 13: return !i.from && this.tryChildrenToHandle(i, o) ? [3, 17] : [3, 14];
|
|
375
373
|
case 14: return i.actionType === "ajax" ? (m.setCurrentAction(i, this.props.resolveDefinitions), m.saveRemote(i.api, o, {
|
|
376
374
|
successMessage: i.messages && i.messages.success,
|
|
377
375
|
errorMessage: i.messages && i.messages.failed
|
|
378
376
|
}).then(function() {
|
|
379
|
-
return __awaiter(
|
|
377
|
+
return __awaiter(w, void 0, void 0, function() {
|
|
380
378
|
var e;
|
|
381
379
|
return __generator(this, function(a) {
|
|
382
380
|
switch (a.label) {
|
|
@@ -390,7 +388,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react()), import_react_dom =
|
|
|
390
388
|
if (s || i.countDown) throw e;
|
|
391
389
|
}), [3, 17]) : [3, 15];
|
|
392
390
|
case 15: return p ? [4, p(e, i, o, s, l || this.context)] : [3, 17];
|
|
393
|
-
case 16:
|
|
391
|
+
case 16: T.sent(), i.close && (i.close === !0 ? this.handleSelfClose() : this.closeTarget(i.close)), T.label = 17;
|
|
394
392
|
case 17: return [2];
|
|
395
393
|
}
|
|
396
394
|
});
|