@fewangsit/wangsvue-fats 1.0.0-alpha.42 → 1.0.0-alpha.44
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/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
- package/components/index.d.ts +1 -0
- package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
- package/event-bus/index.d.ts +3 -0
- package/loading-page-BrQattYE.js +1 -0
- package/loading-page-CoC9UhfC.js +4 -0
- package/loading-page-DbLuqCHa.js +1 -0
- package/loading-page-f8D03l3G.js +4 -0
- package/loading-plane-CgfbWppy.js +1 -0
- package/loading-plane-CoXtqoc9.js +4 -0
- package/loading-table-Bdr9ZhtP.js +1 -0
- package/loading-table-ByUoWqUo.js +4 -0
- package/loading-table-BygEMzFM.js +4 -0
- package/loading-table-BzrSQlA0.js +1 -0
- package/loading-table-D9bw9OcI.js +4 -0
- package/loading-table-chOgXi94.js +1 -0
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Cgze_Rvp.js +1 -0
- package/{assets/lottiejs/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
- package/no-data-Dep79CBh.js +1 -0
- package/no-data-g0dJCy2p.js +4 -0
- package/no-data-y1X5WtcQ.js +1 -0
- package/package.json +3 -3
- package/stats.html +1 -1
- package/style.css +1 -1
- package/wangsvue-fats.js +51885 -346
- package/wangsvue-fats.system.js +312 -1
- package/assets/lottiejs/loading-page-B9ooQcfF.system.js +0 -1
- package/assets/lottiejs/loading-page-CQ0mKER2.es.js +0 -15
- package/assets/lottiejs/loading-table-B4T3FYiI.system.js +0 -1
- package/assets/lottiejs/loading-table-BnpbX8Ew.es.js +0 -15
- package/assets/lottiejs/no-data-CMWnya_k.system.js +0 -1
- package/components/animation/Animation-6756VN9N.system.js +0 -1
- package/components/animation/Animation-COWVilAA.es.js +0 -428
- package/components/approverinfo/ApproverInfo-BdqBpNjY.system.js +0 -1
- package/components/approverinfo/ApproverInfo-C3_ibV8c.es.js +0 -321
- package/components/assetinfo/AssetInfo-BBgKToRP.system.js +0 -1
- package/components/assetinfo/AssetInfo-CmwgOU74.es.js +0 -298
- package/components/backgroundimagecropper/BackgroundImageCropper-DFHtaSyE.system.js +0 -1
- package/components/backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js +0 -57
- package/components/badge/Badge-CndPv5v9.system.js +0 -1
- package/components/badge/Badge-DA-XiE1C.es.js +0 -115
- package/components/badgegroup/BadgeGroup-Bj0EjoML.es.js +0 -68
- package/components/badgegroup/BadgeGroup-Y-HhiHk8.system.js +0 -1
- package/components/basecalendar/BaseCalendar-47ahYXrt.es.js +0 -867
- package/components/basecalendar/BaseCalendar-Ce46jOkg.system.js +0 -1
- package/components/basetree/BaseTree-DDu1qI7t.system.js +0 -1
- package/components/basetree/BaseTree-DLSA5FMh.es.js +0 -167
- package/components/breadcrumb/Breadcrumb-B5bAijry.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-BWSmLPqn.es.js +0 -46
- package/components/button/Button-D-MSv_AS.es.js +0 -120
- package/components/button/Button-Okx1_kOu.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-B4RcdWmb.es.js +0 -185
- package/components/buttonbulkaction/ButtonBulkAction-DLmvicRL.system.js +0 -1
- package/components/buttoncopy/ButtonCopy-BZgQAFOM.es.js +0 -31
- package/components/buttoncopy/ButtonCopy-CKi1bBpz.system.js +0 -1
- package/components/buttondownload/ButtonDownload-Bw9T3mbW.es.js +0 -92
- package/components/buttondownload/ButtonDownload-CpA0ryUT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-BIE-jM2i.es.js +0 -28
- package/components/buttonfilter/ButtonFilter-C4WRvUrj.system.js +0 -1
- package/components/buttonradio/ButtonRadio-5VUY8o5h.es.js +0 -83
- package/components/buttonradio/ButtonRadio-B2wWrgB5.system.js +0 -1
- package/components/buttonscan/ButtonScan-BCScT2cx.es.js +0 -421
- package/components/buttonscan/ButtonScan-TbyhlW5M.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-Clbafqts.es.js +0 -70
- package/components/buttonsearch/ButtonSearch-e57pD5r3.system.js +0 -1
- package/components/buttonselecttree/ButtonSelectTree-B-_Iw5sB.es.js +0 -218
- package/components/buttonselecttree/ButtonSelectTree-Cbq1oeVK.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-Ar7Y8tVR.es.js +0 -101
- package/components/buttonselectuser/ButtonSelectUser-Cfe6m75Z.system.js +0 -1
- package/components/buttonsync/ButtonSync-Bc1GZXT6.es.js +0 -29
- package/components/buttonsync/ButtonSync-ClllEdAy.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-DIy3M8Pz.es.js +0 -11
- package/components/buttontoggle/ButtonToggle-VNp0lbcW.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-Ct8QwEey.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-h9uVv5A5.es.js +0 -21
- package/components/calendar/Calendar-7yBKZsvj.system.js +0 -1
- package/components/calendar/Calendar-Df6CnW-l.es.js +0 -112
- package/components/card/Card-BUKU2FcT.system.js +0 -1
- package/components/card/Card-CwnxKNdM.es.js +0 -47
- package/components/checkbox/Checkbox-CCtItmVW.system.js +0 -1
- package/components/checkbox/Checkbox-DdsR222S.es.js +0 -135
- package/components/codesnippet/CodeSnippet-Bpps-Iyc.es.js +0 -127
- package/components/codesnippet/CodeSnippet-DvTtZ28b.system.js +0 -2
- package/components/codesnippetadapter/CodeSnippetAdapter-BtSqWBl1.system.js +0 -1
- package/components/codesnippetadapter/CodeSnippetAdapter-jgXoPKzr.es.js +0 -26
- package/components/columnlist/ColumnList-Bh3LZlOa.system.js +0 -1
- package/components/columnlist/ColumnList-Bp7soiys.es.js +0 -204
- package/components/customcolumn/CustomColumn-CVhAbTGn.system.js +0 -1
- package/components/customcolumn/CustomColumn-Dblxjw_0.es.js +0 -138
- package/components/datatable/DataTable--mHUKNUr.system.js +0 -1
- package/components/datatable/DataTable-J1j-OKsW.es.js +0 -983
- package/components/dialog/Dialog-Dy93f91f.es.js +0 -121
- package/components/dialog/Dialog-WEl66uTI.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-BOFb7rJD.es.js +0 -139
- package/components/dialogconfirm/DialogConfirm-o7_v7F31.system.js +0 -1
- package/components/dialogform/DialogForm-C15nC1wH.es.js +0 -223
- package/components/dialogform/DialogForm-CdpY1_-F.system.js +0 -1
- package/components/dialogselecttree/DialogSelectTree-BA8xEqco.es.js +0 -268
- package/components/dialogselecttree/DialogSelectTree-DKxWI9Re.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-BZTSktHZ.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu5TDAPt.es.js +0 -186
- package/components/dialogselectuserfilter/DialogSelectUserFilter-DEl4zFaX.system.js +0 -1
- package/components/dialogselectuserfilter/DialogSelectUserFilter-Dz5OxAU-.es.js +0 -40
- package/components/dropdown/Dropdown-D4S52rW5.es.js +0 -252
- package/components/dropdown/Dropdown-DuvNYyq0.system.js +0 -1
- package/components/editor/Editor-DQ7Xdy30.es.js +0 -1036
- package/components/editor/Editor-IfYw2Tps.system.js +0 -1
- package/components/editorbutton/EditorButton-DDgS2vga.es.js +0 -28
- package/components/editorbutton/EditorButton-DmVrr4Bk.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-C6HJ2HnC.es.js +0 -34
- package/components/fieldwrapper/FieldWrapper-DFjw9hA8.system.js +0 -1
- package/components/fileupload/FileUpload-B6PAucnD.es.js +0 -175
- package/components/fileupload/FileUpload-iVAJXujV.system.js +0 -1
- package/components/filtercontainer/FilterContainer-CuMaq5Sv.es.js +0 -284
- package/components/filtercontainer/FilterContainer-DUeVLHgZ.system.js +0 -1
- package/components/form/Form-D-e0VI8V.system.js +0 -1
- package/components/form/Form-eSj-nb1y.es.js +0 -181
- package/components/hardwaresync/HardwareSync--HomfQuH.system.js +0 -1
- package/components/hardwaresync/HardwareSync-DUsVwHx1.es.js +0 -236
- package/components/icon/Icon-DUylRmY4.system.js +0 -1
- package/components/icon/Icon-mDqG7urn.es.js +0 -82
- package/components/image/Image-BZ31CL-y.es.js +0 -169
- package/components/image/Image-DX6uB7Ns.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-BLeJDvN3.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-DaW0ak9c.es.js +0 -501
- package/components/imageinputinfo/ImageInputInfo-C5F14hbF.system.js +0 -1
- package/components/imageinputinfo/ImageInputInfo-oTtVBxzO.es.js +0 -46
- package/components/inlinemessage/InlineMessage-19w6FOcP.system.js +0 -1
- package/components/inlinemessage/InlineMessage-CBZT3jWS.es.js +0 -94
- package/components/inputbadge/InputBadge-CsdT7M7-.es.js +0 -186
- package/components/inputbadge/InputBadge-dgANMV70.system.js +0 -1
- package/components/inputcurrency/InputCurrency-B96npK8W.es.js +0 -1208
- package/components/inputcurrency/InputCurrency-ChqGX5L8.system.js +0 -1
- package/components/inputemail/InputEmail-BMzumenA.es.js +0 -49
- package/components/inputemail/InputEmail-CYILS9bp.system.js +0 -1
- package/components/inputgroup/InputGroup-G9TEI4vX.system.js +0 -1
- package/components/inputgroup/InputGroup-eNDRlJ5R.es.js +0 -56
- package/components/inputnumber/InputNumber-Bzk_YzWM.es.js +0 -232
- package/components/inputnumber/InputNumber-CRyg8Xw_.system.js +0 -1
- package/components/inputpassword/InputPassword-BMHMWLgU.es.js +0 -121
- package/components/inputpassword/InputPassword-BjB6FsoL.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-CVM2oK5q.es.js +0 -591
- package/components/inputphonenumber/InputPhoneNumber-DIbd3upL.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-B1aAoKVj.es.js +0 -134
- package/components/inputrangenumber/InputRangeNumber-C28xgFBY.system.js +0 -1
- package/components/inputsearch/InputSearch--KHwTBTm.system.js +0 -1
- package/components/inputsearch/InputSearch-cPq3vqhy.es.js +0 -53
- package/components/inputtext/InputText-93zDNfC3.system.js +0 -1
- package/components/inputtext/InputText-_xEnXysf.es.js +0 -241
- package/components/inputurl/InputURL-aqx1PVKL.es.js +0 -61
- package/components/inputurl/InputURL-kWIiKGEG.system.js +0 -1
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
- package/components/litedropdown/LiteDropdown-3KsCx4wX.system.js +0 -1
- package/components/litedropdown/LiteDropdown-DcSzP11l.es.js +0 -102
- package/components/loading/Loading-D8M801C9.es.js +0 -24
- package/components/loading/Loading-Diwog8dc.system.js +0 -1
- package/components/mentionlist/MentionList--7AymnhE.es.js +0 -58
- package/components/mentionlist/MentionList-600dsWhX.system.js +0 -1
- package/components/mentionsection/MentionSection-C1gWOzH2.system.js +0 -3
- package/components/mentionsection/MentionSection-C_c4qbpq.es.js +0 -52
- package/components/menu/Menu-BmTMFwBD.es.js +0 -73
- package/components/menu/Menu-OR25pAK3.system.js +0 -1
- package/components/menuitem/MenuItem-LoZMc0T9.es.js +0 -65
- package/components/menuitem/MenuItem-imQ-hYTP.system.js +0 -1
- package/components/multirow/MultiRow-ClSMxrEx.es.js +0 -52
- package/components/multirow/MultiRow-DKu6uIsI.system.js +0 -1
- package/components/multiselect/MultiSelect-DGhS1EyX.es.js +0 -189
- package/components/multiselect/MultiSelect-DKFYq47E.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-C_WCcNPw.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-DXNek7Yb.es.js +0 -49
- package/components/tabmenu/TabMenu-CAQqu-ff.system.js +0 -1
- package/components/tabmenu/TabMenu-iMeZa8gy.es.js +0 -108
- package/components/tagtype/TagType-CX7BVRrE.es.js +0 -49
- package/components/tagtype/TagType-IMYg8AJf.system.js +0 -1
- package/components/textarea/Textarea-ClnQ2qmf.es.js +0 -108
- package/components/textarea/Textarea-DlkzVURV.system.js +0 -1
- package/components/timeline/Timeline-BMRdV_mH.es.js +0 -120
- package/components/timeline/Timeline-D7SYc3QX.system.js +0 -1
- package/components/timelinecontentbytype/TimelineContentByType-BmWsZID0.system.js +0 -1
- package/components/timelinecontentbytype/TimelineContentByType-ehFLzTA1.es.js +0 -111
- package/components/toast/Toast-DnALWJkx.es.js +0 -74
- package/components/toast/Toast-Pc_DOZ5-.system.js +0 -1
- package/components/toggleswitch/ToggleSwitch-WHdD3oYL.system.js +0 -1
- package/components/toggleswitch/ToggleSwitch-wRjnHRIw.es.js +0 -90
- package/components/transactionroles/TransactionRoles-B_67h5wb.es.js +0 -223
- package/components/transactionroles/TransactionRoles-DSXBVwPM.system.js +0 -1
- package/components/tree/Tree-BoVGYw5N.system.js +0 -1
- package/components/tree/Tree-DnaIZZ8S.es.js +0 -268
- package/components/treenode/TreeNode-D5aepDIU.system.js +0 -1
- package/components/treenode/TreeNode-KJOUvlTH.es.js +0 -499
- package/components/treesearchinput/TreeSearchInput-B1PmhE7k.es.js +0 -56
- package/components/treesearchinput/TreeSearchInput-C-hXPV61.system.js +0 -1
- package/components/username/UserName-CCyPAYG6.system.js +0 -1
- package/components/username/UserName-CWs83BX6.es.js +0 -130
- package/components/userwithicon/UserWithIcon-CFjQcbAS.system.js +0 -1
- package/components/userwithicon/UserWithIcon-Dn3aNKdq.es.js +0 -18
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
- package/vendor/@popperjs/core-BDAJHTVh.es.js +0 -905
- package/vendor/@popperjs/core-DpNOCyB0.system.js +0 -1
- package/vendor/@tiptap/core-BLz8iRA3.es.js +0 -2868
- package/vendor/@tiptap/core-bnIgGWIt.system.js +0 -80
- package/vendor/@tiptap/extension-bold-BnsTNqIJ.es.js +0 -71
- package/vendor/@tiptap/extension-bold-C_KVm_D0.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-D421L1EU.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-D9Vgq7yO.es.js +0 -128
- package/vendor/@tiptap/extension-bullet-list-GNj3sKw9.es.js +0 -53
- package/vendor/@tiptap/extension-bullet-list-kXXFF-_p.system.js +0 -1
- package/vendor/@tiptap/extension-code-CfQ7g1i2.es.js +0 -51
- package/vendor/@tiptap/extension-code-Q8P1EHjz.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-8rFSweor.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-CSQuJzDM.es.js +0 -99
- package/vendor/@tiptap/extension-heading-BE64-Rg_.system.js +0 -1
- package/vendor/@tiptap/extension-heading-ZTlCgdtc.es.js +0 -54
- package/vendor/@tiptap/extension-history-GLkLmX-Y.system.js +0 -1
- package/vendor/@tiptap/extension-history-eJIThEn-.es.js +0 -35
- package/vendor/@tiptap/extension-image-B8NPUVFM.es.js +0 -64
- package/vendor/@tiptap/extension-image-rKrdkZpJ.system.js +0 -1
- package/vendor/@tiptap/extension-italic-C_CyJubw.es.js +0 -70
- package/vendor/@tiptap/extension-italic-Dg0Nosoc.system.js +0 -1
- package/vendor/@tiptap/extension-link-Cd8bTMBz.system.js +0 -1
- package/vendor/@tiptap/extension-link-D4PFdLvA.es.js +0 -262
- package/vendor/@tiptap/extension-list-item-7pIJ7t09.es.js +0 -33
- package/vendor/@tiptap/extension-list-item-Mnhfw2gP.system.js +0 -1
- package/vendor/@tiptap/extension-mention-DVF3rX_z.system.js +0 -1
- package/vendor/@tiptap/extension-mention-Dkg-tbrz.es.js +0 -130
- package/vendor/@tiptap/extension-ordered-list-DLI4xDN8.es.js +0 -71
- package/vendor/@tiptap/extension-ordered-list-Hl0QU8Zt.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-BeLl2T-f.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-V0iTxU19.es.js +0 -52
- package/vendor/@tiptap/extension-underline-BdcAQ4JH.system.js +0 -1
- package/vendor/@tiptap/extension-underline-DsGbvz80.es.js +0 -40
- package/vendor/@tiptap/suggestion-BpZSO8Lm.system.js +0 -1
- package/vendor/@tiptap/suggestion-C4sBhJAD.es.js +0 -131
- package/vendor/@tiptap/vue-3-BH1pZykd.system.js +0 -1
- package/vendor/@tiptap/vue-3-DceiR7pK.es.js +0 -436
- package/vendor/highlight.js-BAruEf1H.system.js +0 -2
- package/vendor/highlight.js-DHowhWoU.es.js +0 -2493
- package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
- package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
- package/vendor/lodash-DbIT-6qv.es.js +0 -127
- package/vendor/lodash-DbvKLWSv.system.js +0 -1
- package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
- package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
- package/vendor/orderedmap-B3SOk52B.es.js +0 -103
- package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
- package/vendor/primevue-CadmDhWp.es.js +0 -13928
- package/vendor/primevue-u6FsQONA.system.js +0 -193
- package/vendor/prosemirror-commands-DLmzIpoS.es.js +0 -383
- package/vendor/prosemirror-commands-DgY3QRzI.system.js +0 -2
- package/vendor/prosemirror-history-BMpJFORS.es.js +0 -248
- package/vendor/prosemirror-history-BrK-FTBv.system.js +0 -1
- package/vendor/prosemirror-keymap-COb3Dq2o.system.js +0 -1
- package/vendor/prosemirror-keymap-DF8LLxca.es.js +0 -60
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
- package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
- package/vendor/prosemirror-schema-list-BPpAP8wR.system.js +0 -1
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
- package/vendor/prosemirror-state-CwkYUmNs.es.js +0 -820
- package/vendor/prosemirror-state-DzPLD-6l.system.js +0 -1
- package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
- package/vendor/prosemirror-transform-VaXuT0NM.system.js +0 -2
- package/vendor/prosemirror-view-JTdpiWMD.system.js +0 -5
- package/vendor/prosemirror-view-ta7l3rKk.es.js +0 -3742
- package/vendor/rope-sequence-4t46C6az.system.js +0 -1
- package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
- package/vendor/simplebar-core-71xT5g0m.system.js +0 -1
- package/vendor/simplebar-core-Db65-Ath.es.js +0 -333
- package/vendor/simplebar-vue-BFEeFUIv.system.js +0 -1
- package/vendor/simplebar-vue-DAxqu0eM.es.js +0 -176
- package/vendor/tippy.js-CuKTz0UR.system.js +0 -1
- package/vendor/tippy.js-DNnwm2RY.es.js +0 -721
- package/vendor/uuid-93tp0umt.es.js +0 -9
- package/vendor/uuid-Cymn6orr.system.js +0 -1
- package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
- package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
- package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
- package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
- /package/{assets/lottiejs/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
- /package/{assets/lottiejs/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
|
@@ -1,983 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ft, mergeModels as Sa, useModel as vt, computed as Q, inject as Aa, ref as W, shallowRef as R, onMounted as gt, onUnmounted as yt, watch as Ae, createElementBlock as c, openBlock as d, normalizeProps as ve, guardReactiveProps as ge, unref as r, createElementVNode as $, withDirectives as bt, createCommentVNode as h, createVNode as K, createBlock as _, mergeProps as p, withCtx as ye, Fragment as E, renderList as ne, createTextVNode as be, toDisplayString as M, withModifiers as S, normalizeClass as je, resolveDynamicComponent as ht, toHandlers as mt, vShow as wt, nextTick as Na } from "vue";
|
|
2
|
-
import { i as kt, O as Fa } from "../../vendor/primevue-CadmDhWp.es.js";
|
|
3
|
-
import { s as Ct } from "../../vendor/simplebar-vue-DAxqu0eM.es.js";
|
|
4
|
-
import { u as Rt, a as Dt, e as k } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
|
|
5
|
-
import { u as Tt, m as Kt, _ as Ne, s as he, g as N } from "../animation/Animation-COWVilAA.es.js";
|
|
6
|
-
import { f as xa } from "../approverinfo/ApproverInfo-C3_ibV8c.es.js";
|
|
7
|
-
import { e as Pt } from "../buttondownload/ButtonDownload-Bw9T3mbW.es.js";
|
|
8
|
-
import { _ as ze } from "../checkbox/Checkbox-DdsR222S.es.js";
|
|
9
|
-
import { _ as Qe } from "../button/Button-D-MSv_AS.es.js";
|
|
10
|
-
import { _ as _t } from "../customcolumn/CustomColumn-Dblxjw_0.es.js";
|
|
11
|
-
import { _ as Et } from "../dialogconfirm/DialogConfirm-BOFb7rJD.es.js";
|
|
12
|
-
import { _ as Y } from "../icon/Icon-mDqG7urn.es.js";
|
|
13
|
-
import { _ as St } from "../menu/Menu-BmTMFwBD.es.js";
|
|
14
|
-
import { _ as At } from "../toast/Toast-DnALWJkx.es.js";
|
|
15
|
-
import { _ as Nt } from "../toggleswitch/ToggleSwitch-wRjnHRIw.es.js";
|
|
16
|
-
import { _ as Ft } from "../multirow/MultiRow-ClSMxrEx.es.js";
|
|
17
|
-
import { c as xt } from "../../vendor/lodash-es-CJerBxJQ.es.js";
|
|
18
|
-
import { _ as Bt } from "../backgroundimagecropper/BackgroundImageCropper-HKzUEXq-.es.js";
|
|
19
|
-
function Ht(Z) {
|
|
20
|
-
let O = Z.target;
|
|
21
|
-
O.tagName === "UL" && (O = O.parentElement);
|
|
22
|
-
const { offsetHeight: t = 0 } = O, q = window.innerHeight * 90 / 100;
|
|
23
|
-
t >= q && (O.style.transform = "translateY(5vh)");
|
|
24
|
-
}
|
|
25
|
-
const $t = (Z, O) => Z.every((t) => O.includes(t)), Mt = ["id"], Ot = ["onClick"], Ut = { class: "flex" }, Lt = ["id"], It = { key: 0 }, Vt = ["colspan"], jt = ["id", "draggable", "onClick", "onDblclick", "onDragenter", "onDragstart"], zt = ["onClick"], Qt = ["colspan"], Wt = ["colspan"], qt = ["colspan"], Gt = ["colspan"], Jt = ["colspan"], Yt = ["contenteditable", "onBlur", "onKeypress"], Zt = { key: 1 }, Xt = { key: 2 }, el = ["colspan"], al = /* @__PURE__ */ ft({
|
|
26
|
-
__name: "DataTable",
|
|
27
|
-
props: /* @__PURE__ */ Sa({
|
|
28
|
-
treeTable: { type: Boolean },
|
|
29
|
-
childTableProps: {},
|
|
30
|
-
tableName: { default: "datatable" },
|
|
31
|
-
tableTitle: { default: void 0 },
|
|
32
|
-
columns: {},
|
|
33
|
-
useOption: { type: Boolean, default: !0 },
|
|
34
|
-
data: {},
|
|
35
|
-
dataKey: { default: "_id" },
|
|
36
|
-
disableKey: { default: "isDefault" },
|
|
37
|
-
includeCheckDisabledRows: { type: Boolean },
|
|
38
|
-
highlightKey: {},
|
|
39
|
-
disableAllRows: { type: Boolean },
|
|
40
|
-
search: {},
|
|
41
|
-
tag: {},
|
|
42
|
-
defaultQueryParams: {},
|
|
43
|
-
fetchFunction: {},
|
|
44
|
-
rows: {},
|
|
45
|
-
isSelectedAll: { type: Boolean },
|
|
46
|
-
filters: {},
|
|
47
|
-
lazy: { type: Boolean, default: !0 },
|
|
48
|
-
loading: { type: Boolean },
|
|
49
|
-
selectionType: { default: "checkbox" },
|
|
50
|
-
useSelection: { type: Boolean },
|
|
51
|
-
selectedData: {},
|
|
52
|
-
expandedRows: {},
|
|
53
|
-
usePaginator: { type: Boolean },
|
|
54
|
-
options: { default: () => [] },
|
|
55
|
-
singleSelect: { type: Boolean },
|
|
56
|
-
customColumn: { type: Boolean, default: !0 },
|
|
57
|
-
scrollHeight: {},
|
|
58
|
-
rowHeight: { default: "fixed" },
|
|
59
|
-
reorderable: { type: Boolean },
|
|
60
|
-
globalFilterFields: {},
|
|
61
|
-
totalDisabledRows: {},
|
|
62
|
-
excelToastErrorMessage: {},
|
|
63
|
-
emptyTableMessage: {},
|
|
64
|
-
singleSelection: {}
|
|
65
|
-
}, {
|
|
66
|
-
singleSelection: {},
|
|
67
|
-
singleSelectionModifiers: {}
|
|
68
|
-
}),
|
|
69
|
-
emits: /* @__PURE__ */ Sa(["toggleOption", "selectData", "rowSelect", "page", "sort", "update:selectedData", "update:singleSelection", "cellEdited", "input", "rowReorder"], ["update:singleSelection"]),
|
|
70
|
-
setup(Z, { emit: O }) {
|
|
71
|
-
const t = Z, q = O, We = vt(Z, "singleSelection"), { defaultProps: Ba, locale: Fe } = Tt("DataTable"), re = Q(() => Kt(t, Ba)), u = Aa("preset", {}).datatable, Ha = [10, 25, 50, 100], $a = Aa("useToastConfig"), qe = Rt($a), { setLoading: Ge } = Dt(), xe = `${window.location.pathname.replace("/", "").split("/").join("-")}-${t.tableName}`, y = W(t.data ?? []), me = R(t.data ?? []), U = W({}), L = W(t.columns), Ma = W(), Oa = W(), T = R([]), X = R(), Je = R(0), se = R(!1), we = R(!1), Ua = R(0), Ye = R(0), ke = R(0), Be = R(!1), Ce = R(), Re = W(), Ze = W(), I = W([]), He = R({}), ie = R(), F = R(), D = R(), De = R(1), ee = R(10), V = R(0), Te = W({}), Xe = Q(() => {
|
|
72
|
-
var e, a;
|
|
73
|
-
return (e = t.childTableProps) != null && e.columns ? (a = t.childTableProps) == null ? void 0 : a.columns.filter((n) => {
|
|
74
|
-
var s;
|
|
75
|
-
return !n.parentColumnsFields || ((s = n.parentColumnsFields) == null ? void 0 : s.some(
|
|
76
|
-
(v) => L.value.some((i) => i.field === v)
|
|
77
|
-
));
|
|
78
|
-
}) : L.value;
|
|
79
|
-
}), ea = Q(() => L.value.length + (t.selectionType === "checkbox" ? 1 : 0) + (t.useOption ? 1 : 0) + (t.reorderable ? 1 : 0) + (t.treeTable ? 1 : 0)), aa = Q(() => ({
|
|
80
|
-
...t.defaultQueryParams,
|
|
81
|
-
search: t.lazy ? ie.value : t.search,
|
|
82
|
-
page: t.usePaginator ? De.value : void 0,
|
|
83
|
-
limit: t.usePaginator ? ee.value : void 0,
|
|
84
|
-
sortOrder: D.value,
|
|
85
|
-
sortBy: F.value,
|
|
86
|
-
...t.lazy ? He.value : t.filters
|
|
87
|
-
// This will reset the previous filters.
|
|
88
|
-
})), ta = Q(() => {
|
|
89
|
-
var a;
|
|
90
|
-
const e = (a = y.value) == null ? void 0 : a.filter(
|
|
91
|
-
(n) => {
|
|
92
|
-
var s;
|
|
93
|
-
return ((s = n.children) == null ? void 0 : s.length) || n.hasChildren;
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
return (e == null ? void 0 : e.length) && e.every((n) => U.value[n[t.dataKey]] > 0);
|
|
97
|
-
}), la = Q(() => {
|
|
98
|
-
var i, g, f, m, w;
|
|
99
|
-
if (t.disableAllRows || !((i = te()) != null && i.length) || t.selectionType !== "checkbox" || ((g = de.value) == null ? void 0 : g.length) === y.value.length)
|
|
100
|
-
return !1;
|
|
101
|
-
const e = (f = T.value) == null ? void 0 : f.length, a = ((m = Ie(te())) == null ? void 0 : m.map((l) => l[t.dataKey])) ?? [], n = ((w = T.value) == null ? void 0 : w.map((l) => l[t.dataKey])) ?? [], s = n.length ? $t(a, n) : !1, v = e > 0 && e === (V.value ?? 0) - (de.value.length ?? 0);
|
|
102
|
-
return s || v;
|
|
103
|
-
}), de = Q(
|
|
104
|
-
() => ia(t.data ?? te() ?? [])
|
|
105
|
-
), $e = Q(
|
|
106
|
-
() => se.value || t.loading
|
|
107
|
-
), La = Q(
|
|
108
|
-
() => {
|
|
109
|
-
var e;
|
|
110
|
-
return !$e.value && !((e = y.value) != null && e.length);
|
|
111
|
-
}
|
|
112
|
-
), Me = (e) => Object.keys(U.value).includes(e), ae = (e) => de.value.includes(e), Oe = (e) => t.selectionType === "checkbox" ? !!T.value.find((a) => a[t.dataKey] === e) : Ia(e), Ia = (e) => {
|
|
113
|
-
var a;
|
|
114
|
-
return ((a = We.value) == null ? void 0 : a[t.dataKey]) === e;
|
|
115
|
-
}, te = (e) => (y.value ?? []).filter(
|
|
116
|
-
(a) => !a.childRowHeader && !a.childRow
|
|
117
|
-
), Ke = async (e, a, n) => {
|
|
118
|
-
var v, i;
|
|
119
|
-
if (Me(e[t.dataKey]) === n) return;
|
|
120
|
-
const s = n ?? !Me(e[t.dataKey]);
|
|
121
|
-
if (!we.value)
|
|
122
|
-
if (!s)
|
|
123
|
-
y.value.splice(
|
|
124
|
-
a + 1,
|
|
125
|
-
U.value[e[t.dataKey]]
|
|
126
|
-
), delete U.value[e[t.dataKey]];
|
|
127
|
-
else {
|
|
128
|
-
U.value[e[t.dataKey]] = 1;
|
|
129
|
-
let { children: g } = e;
|
|
130
|
-
if ((v = t.childTableProps) != null && v.fetchFunction && e.hasChildren)
|
|
131
|
-
try {
|
|
132
|
-
y.value.splice(a + 1, 0, {
|
|
133
|
-
childRow: !0,
|
|
134
|
-
loadingRow: !0
|
|
135
|
-
}), we.value = !0;
|
|
136
|
-
const f = await ((i = t.childTableProps) == null ? void 0 : i.fetchFunction(e));
|
|
137
|
-
g = f == null ? void 0 : f.data;
|
|
138
|
-
} catch (f) {
|
|
139
|
-
console.error("🚀 ~ toggleRowExpand ~ error:", f);
|
|
140
|
-
} finally {
|
|
141
|
-
y.value.splice(a + 1, 1), we.value = !1;
|
|
142
|
-
}
|
|
143
|
-
if (a >= 0 && (g != null && g.length)) {
|
|
144
|
-
const f = g.flatMap((m) => [
|
|
145
|
-
{
|
|
146
|
-
childRowHeader: !0,
|
|
147
|
-
header: m.groupHeader
|
|
148
|
-
},
|
|
149
|
-
...(m.groupItems ?? []).map((l) => ({ childRow: !0, ...l }))
|
|
150
|
-
]);
|
|
151
|
-
U.value[e[t.dataKey]] = f.length, y.value.splice(a + 1, 0, ...f);
|
|
152
|
-
} else
|
|
153
|
-
y.value.splice(a + 1, 0, {
|
|
154
|
-
childRow: !0,
|
|
155
|
-
noDataRow: !0
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}, Va = (e) => {
|
|
159
|
-
t.includeCheckDisabledRows ? T.value = e ? te() : te().filter((a) => ae(a[t.dataKey])) : T.value = e ? Ie(te()) : [];
|
|
160
|
-
}, ja = (e, a, n) => {
|
|
161
|
-
if (!a.childRow && !a.childRowHeader && !ae(a[t.dataKey]) && t.selectionType !== "none") {
|
|
162
|
-
const s = Oe(a[t.dataKey]);
|
|
163
|
-
q("rowSelect", { originalEvent: e, data: a, index: n }), t.selectionType === "checkbox" ? s ? T.value = T.value.filter(
|
|
164
|
-
(v) => v[t.dataKey] != a[t.dataKey]
|
|
165
|
-
) : T.value = [...T.value, a] : We.value = s ? void 0 : a;
|
|
166
|
-
}
|
|
167
|
-
}, za = async () => {
|
|
168
|
-
var a;
|
|
169
|
-
const e = !ta.value;
|
|
170
|
-
if (!we.value) {
|
|
171
|
-
let n = 0;
|
|
172
|
-
for (const s of y.value)
|
|
173
|
-
((a = s.children) != null && a.length || s.hasChildren) && await Ke(s, n, e), n++;
|
|
174
|
-
}
|
|
175
|
-
}, Qa = async (e, a) => {
|
|
176
|
-
const n = e.target, s = n.tagName.toLowerCase() === "button" ? n : n.parentElement;
|
|
177
|
-
q("toggleOption", a);
|
|
178
|
-
const v = {
|
|
179
|
-
...e,
|
|
180
|
-
currentTarget: e.currentTarget ?? e.target
|
|
181
|
-
};
|
|
182
|
-
Le(), await Na(() => {
|
|
183
|
-
var i;
|
|
184
|
-
s != null && s.classList.contains("option-button-active") ? Le() : ((i = Ze.value) == null || i.toggle(v), Le(), s == null || s.classList.add("option-button-active"));
|
|
185
|
-
});
|
|
186
|
-
}, oa = async (e, a, n) => {
|
|
187
|
-
var v, i, g, f;
|
|
188
|
-
if (!n.preset) return;
|
|
189
|
-
const s = () => he(
|
|
190
|
-
a,
|
|
191
|
-
n.field,
|
|
192
|
-
!N(a, n.field)
|
|
193
|
-
);
|
|
194
|
-
if (n.preset.type === "checkbox" ? (i = (v = n.preset).onCheck) == null || i.call(v, e, a, s) : n.preset.type === "toggle" && ((f = (g = n.preset).onToggle) == null || f.call(g, e, a, s)), "confirmDialogProps" in n.preset) {
|
|
195
|
-
const { showWhen: m } = Ve(
|
|
196
|
-
n.preset,
|
|
197
|
-
a[n.field],
|
|
198
|
-
a
|
|
199
|
-
) ?? {};
|
|
200
|
-
typeof m == "function" ? Te.value[a[t.dataKey] + n.field] = await m(
|
|
201
|
-
a,
|
|
202
|
-
e
|
|
203
|
-
) : Te.value[a[t.dataKey] + n.field] = !m || m === "active" && e || m === "inactive" && !e;
|
|
204
|
-
}
|
|
205
|
-
}, Ue = (e) => e.draggable !== !1 && !e.childRow && !e.childRowHeader && t.reorderable && !D.value, Wa = (e, a, n) => {
|
|
206
|
-
if (a.childRow || a.childRowHeader) return;
|
|
207
|
-
U.value = {};
|
|
208
|
-
const { dataTransfer: s } = e;
|
|
209
|
-
Ce.value = a, X.value = { item: a, fromIndex: n }, s && (s.dropEffect = "move", s.effectAllowed = "move", s.setData("id", a._id), s.setData("index", n.toString()));
|
|
210
|
-
}, qa = (e, a) => {
|
|
211
|
-
var n, s;
|
|
212
|
-
if (e.preventDefault(), Ue(a)) {
|
|
213
|
-
const v = e.target, i = v.tagName === "TR" ? v : v.closest("tr");
|
|
214
|
-
if (i == null || i.classList.add("bg-primary-50"), (n = i == null ? void 0 : i.nextElementSibling) == null || n.classList.remove("bg-primary-50"), (s = i == null ? void 0 : i.previousElementSibling) == null || s.classList.remove("bg-primary-50"), !i || !Ce.value) return;
|
|
215
|
-
const g = I.value.findIndex(
|
|
216
|
-
(m) => {
|
|
217
|
-
var w;
|
|
218
|
-
return m._id === ((w = Ce.value) == null ? void 0 : w._id);
|
|
219
|
-
}
|
|
220
|
-
), f = I.value.findIndex(
|
|
221
|
-
(m) => m._id === i.id
|
|
222
|
-
);
|
|
223
|
-
g !== -1 && f !== -1 && (X.value && (X.value.toIndex = f), [
|
|
224
|
-
I.value[g],
|
|
225
|
-
I.value[f]
|
|
226
|
-
] = [
|
|
227
|
-
I.value[f],
|
|
228
|
-
I.value[g]
|
|
229
|
-
], Ja());
|
|
230
|
-
}
|
|
231
|
-
}, Ga = () => {
|
|
232
|
-
X.value && q("rowReorder", X.value), Ce.value = void 0, Be.value = !1, X.value = void 0;
|
|
233
|
-
}, Ja = () => {
|
|
234
|
-
y.value = [...I.value];
|
|
235
|
-
}, Le = () => {
|
|
236
|
-
const e = document.querySelectorAll(".option-button-active");
|
|
237
|
-
e == null || e.forEach((a) => {
|
|
238
|
-
a.classList.remove("option-button-active");
|
|
239
|
-
});
|
|
240
|
-
}, Ya = () => {
|
|
241
|
-
F.value = void 0, D.value = void 0;
|
|
242
|
-
}, Za = () => {
|
|
243
|
-
De.value = 1, ke.value++;
|
|
244
|
-
}, Xa = () => {
|
|
245
|
-
ee.value = t.rows ?? 10, De.value = 1, ke.value++;
|
|
246
|
-
}, et = () => {
|
|
247
|
-
Xa(), Ya();
|
|
248
|
-
}, na = async () => {
|
|
249
|
-
Ye.value++, ke.value++, et(), t.lazy ? await ue() : at();
|
|
250
|
-
}, at = () => {
|
|
251
|
-
let e = [...me.value ?? []];
|
|
252
|
-
const a = He.value, n = Object.entries(a);
|
|
253
|
-
try {
|
|
254
|
-
e = n.length ? e.filter((s) => n.every(
|
|
255
|
-
([v, { value: i, matchMode: g }]) => {
|
|
256
|
-
const f = N(s, v);
|
|
257
|
-
switch (g) {
|
|
258
|
-
case "IN":
|
|
259
|
-
return Array.isArray(i) ? i.includes(f) : !1;
|
|
260
|
-
case "CONTAINS":
|
|
261
|
-
return f && i ? f.toString().toLowerCase().includes(i) : !1;
|
|
262
|
-
case "EQUALS":
|
|
263
|
-
return f ? f.toString() === i.toString() : !1;
|
|
264
|
-
case "BETWEEN":
|
|
265
|
-
return Array.isArray(i) && i.length === 2 ? !isNaN(f) && (i[0] == null || f >= i[0]) && (i[1] == null || f <= i[1]) : !1;
|
|
266
|
-
case "DATE_BETWEEN":
|
|
267
|
-
return Array.isArray(i) ? +new Date(f) >= i[0] && +new Date(f) <= i[1] : !1;
|
|
268
|
-
default:
|
|
269
|
-
return !1;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
)) : me.value;
|
|
273
|
-
} catch (s) {
|
|
274
|
-
console.error("🚀 ~ applyStaticFilter ~ error:", s);
|
|
275
|
-
}
|
|
276
|
-
tt(e);
|
|
277
|
-
}, tt = (e) => {
|
|
278
|
-
var a;
|
|
279
|
-
try {
|
|
280
|
-
y.value = (a = ie.value) != null && a.length ? e.filter((n) => {
|
|
281
|
-
const s = JSON.stringify(n);
|
|
282
|
-
return new RegExp(ie.value, "i").test(s) || ie.value.split(/\s+/).filter(Boolean).every((v) => new RegExp(v, "i").test(s));
|
|
283
|
-
}) : e;
|
|
284
|
-
} catch (n) {
|
|
285
|
-
console.error("🚀 ~ applyStaticSearch ~ error:", n);
|
|
286
|
-
}
|
|
287
|
-
}, lt = async (e) => {
|
|
288
|
-
ee.value = e.rows, De.value = e.page + 1, await ue(), Object.keys(U.value).forEach((a) => {
|
|
289
|
-
const n = y.value.findIndex(
|
|
290
|
-
(s) => s[t.dataKey] == a
|
|
291
|
-
);
|
|
292
|
-
n >= 0 && Ke(y.value[n], n, !0);
|
|
293
|
-
});
|
|
294
|
-
}, ot = (e, a) => {
|
|
295
|
-
e !== F.value && (D.value = void 0), F.value = e, D.value ? D.value == -1 ? (D.value = void 0, F.value = void 0) : D.value = -1 : D.value = 1, q("sort", {
|
|
296
|
-
sortOrder: D.value,
|
|
297
|
-
sortField: F.value,
|
|
298
|
-
originalEvent: a,
|
|
299
|
-
rows: ee.value
|
|
300
|
-
}), Za(), t.lazy && t.fetchFunction ? ue() : nt();
|
|
301
|
-
}, nt = () => {
|
|
302
|
-
const e = [...y.value ?? []], a = /* @__PURE__ */ new Map();
|
|
303
|
-
if (!D.value) {
|
|
304
|
-
y.value = me.value ?? [];
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
for (const s of e)
|
|
308
|
-
a.set(
|
|
309
|
-
s,
|
|
310
|
-
Fa.resolveFieldData(s, F.value)
|
|
311
|
-
);
|
|
312
|
-
const n = new Intl.Collator(void 0, { numeric: !0 }).compare;
|
|
313
|
-
e.sort((s, v) => {
|
|
314
|
-
const i = a.get(s), g = a.get(v);
|
|
315
|
-
return Fa.sort(i, g, D.value, n, -1);
|
|
316
|
-
}), y.value = e;
|
|
317
|
-
}, ue = async () => {
|
|
318
|
-
var e;
|
|
319
|
-
try {
|
|
320
|
-
se.value = !0;
|
|
321
|
-
const a = await ((e = t.fetchFunction) == null ? void 0 : e.call(t, aa.value)), { data: n = [], totalRecords: s = 0 } = (a == null ? void 0 : a.data) ?? {};
|
|
322
|
-
y.value = n, I.value = [...y.value], V.value = s;
|
|
323
|
-
} catch (a) {
|
|
324
|
-
console.error("🚀 ~ reFetch ~ error:", a);
|
|
325
|
-
} finally {
|
|
326
|
-
se.value = !1, U.value = {};
|
|
327
|
-
}
|
|
328
|
-
}, ra = async () => {
|
|
329
|
-
var n;
|
|
330
|
-
const e = xt(aa.value);
|
|
331
|
-
delete e.page, delete e.limit;
|
|
332
|
-
const a = await ((n = t.fetchFunction) == null ? void 0 : n.call(t, e));
|
|
333
|
-
if (a instanceof Error) throw a;
|
|
334
|
-
return (a == null ? void 0 : a.data) ?? { data: [], totalRecords: 0 };
|
|
335
|
-
}, rt = async (e) => {
|
|
336
|
-
if (t.tableName === e.tableName)
|
|
337
|
-
try {
|
|
338
|
-
se.value = !0;
|
|
339
|
-
const { data: a, totalRecords: n = 0 } = t.lazy ? await ra() : { totalRecords: (t.data ?? []).length, data: t.data }, s = ia(a);
|
|
340
|
-
T.value = t.includeCheckDisabledRows ? a ?? [] : Ie(a, s), V.value = n;
|
|
341
|
-
} finally {
|
|
342
|
-
se.value = !1;
|
|
343
|
-
}
|
|
344
|
-
}, ce = (e, a) => u == null ? void 0 : u.headercell({
|
|
345
|
-
props: t,
|
|
346
|
-
context: {
|
|
347
|
-
sortOrder: D.value,
|
|
348
|
-
customColumn: a,
|
|
349
|
-
sorted: F.value && F.value === (e == null ? void 0 : e.field),
|
|
350
|
-
sortable: e == null ? void 0 : e.sortable
|
|
351
|
-
}
|
|
352
|
-
}), sa = (e) => {
|
|
353
|
-
(!e.tableName || e.tableName === t.tableName) && Na(() => {
|
|
354
|
-
Ua.value++, ue();
|
|
355
|
-
});
|
|
356
|
-
}, Ie = (e, a) => (e ?? []).filter(
|
|
357
|
-
(n) => !(a ?? de.value).includes(n[t.dataKey])
|
|
358
|
-
), ia = (e = []) => t.disableAllRows ? e.map((a) => a[t.dataKey]) : e.filter((a) => a[t.disableKey]).map((a) => a[t.dataKey]), st = async ({
|
|
359
|
-
tableName: e,
|
|
360
|
-
multiTableNames: a,
|
|
361
|
-
fileName: n,
|
|
362
|
-
additionalTexts: s
|
|
363
|
-
}) => {
|
|
364
|
-
var m;
|
|
365
|
-
if (e !== t.tableName && !(a != null && a.includes(t.tableName)))
|
|
366
|
-
return;
|
|
367
|
-
const i = L.value.filter(
|
|
368
|
-
(w) => w.visible !== !1
|
|
369
|
-
).filter((w) => !w.excluded), g = i.map(
|
|
370
|
-
(w) => w.header ?? w.exportHeader ?? "-"
|
|
371
|
-
), f = () => n.trim().replace(/[^a-zA-Z0-9\s]/g, "-").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/-+$/, "");
|
|
372
|
-
try {
|
|
373
|
-
if (k.off("data-table:download", Pe), e === t.tableName) {
|
|
374
|
-
Ge(!0, Fe.downloadingMessage);
|
|
375
|
-
const { data: w } = t.fetchFunction ? await ra() : { data: t.data }, l = (w ?? []).map((b) => {
|
|
376
|
-
const A = {};
|
|
377
|
-
return i.forEach((B) => {
|
|
378
|
-
const { field: _e, exportField: Ee, dateFormatOptions: pe } = B, j = Ee ?? _e, le = N(b, j), H = le === void 0 || le === "" ? B.emptyText ?? "-" : le;
|
|
379
|
-
if (B.includeTruthyProperties) {
|
|
380
|
-
const z = H ?? {}, oe = Object.keys(z).map((G) => {
|
|
381
|
-
if (z[G]) return G;
|
|
382
|
-
}).filter(Boolean);
|
|
383
|
-
A[j] = oe.join(",");
|
|
384
|
-
} else if (Array.isArray(H)) {
|
|
385
|
-
let z = H;
|
|
386
|
-
B.arrayValueField && (z = H.map((oe) => {
|
|
387
|
-
var G;
|
|
388
|
-
return ((G = N(
|
|
389
|
-
oe,
|
|
390
|
-
B.arrayValueField
|
|
391
|
-
)) == null ? void 0 : G.toString()) || B.emptyText || "-";
|
|
392
|
-
})), A[j] = z.join(z.length > 1 ? "," : "");
|
|
393
|
-
} else pe ? A[j] = xa(
|
|
394
|
-
new Date(H),
|
|
395
|
-
pe
|
|
396
|
-
) : B.booleanValue ? A[j] = H ? Fe.trueText : Fe.falseText : A[j] = H;
|
|
397
|
-
}), A;
|
|
398
|
-
});
|
|
399
|
-
if (a != null && a.length) {
|
|
400
|
-
k.emit("button-download:multi-tables", {
|
|
401
|
-
table: {
|
|
402
|
-
headers: g,
|
|
403
|
-
data: l,
|
|
404
|
-
tableName: e,
|
|
405
|
-
tableTitle: t.tableTitle
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
await Pt({
|
|
411
|
-
tables: [
|
|
412
|
-
{ headers: g, data: l, tableName: e, tableTitle: t.tableTitle }
|
|
413
|
-
],
|
|
414
|
-
fileName: f(),
|
|
415
|
-
additionalTexts: s
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
} catch (w) {
|
|
419
|
-
console.error("🚀 ~ downloadExcel error:", w), qe.removeAllGroups(), qe.add({
|
|
420
|
-
message: ((m = re.value.excelToastErrorMessage) == null ? void 0 : m.replace("{fileName}", n)) ?? "Data gagal diunduh.",
|
|
421
|
-
error: w,
|
|
422
|
-
group: "download"
|
|
423
|
-
});
|
|
424
|
-
} finally {
|
|
425
|
-
Ge(!1), k.on("data-table:download", Pe);
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
gt(async () => {
|
|
429
|
-
var e;
|
|
430
|
-
t.fetchFunction && (await ue(), pt()), (e = t.selectedData) != null && e.length && (T.value = t.selectedData), it();
|
|
431
|
-
}), yt(() => {
|
|
432
|
-
dt();
|
|
433
|
-
}), Ae(
|
|
434
|
-
() => t.columns,
|
|
435
|
-
() => {
|
|
436
|
-
t.customColumn || (L.value = t.columns), Je.value++;
|
|
437
|
-
}
|
|
438
|
-
), Ae(
|
|
439
|
-
() => t.data,
|
|
440
|
-
(e) => {
|
|
441
|
-
y.value = e ?? [], me.value = e ?? [], k.emit("data-table:updated", { tableName: t.tableName, data: e }), V.value = e == null ? void 0 : e.length;
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
immediate: !0
|
|
445
|
-
}
|
|
446
|
-
), Ae(V, (e) => {
|
|
447
|
-
ct(e);
|
|
448
|
-
}), Ae(
|
|
449
|
-
T,
|
|
450
|
-
(e) => {
|
|
451
|
-
q("selectData", e), q("update:selectedData", e), k.emit("data-table:update-selected-data", {
|
|
452
|
-
tableName: t.tableName,
|
|
453
|
-
data: e
|
|
454
|
-
});
|
|
455
|
-
},
|
|
456
|
-
{ deep: !0 }
|
|
457
|
-
);
|
|
458
|
-
const it = () => {
|
|
459
|
-
k.on("data-table:apply-filter", da), k.on("search-table", ua), k.on("data-table:clear-selected-data", pa), k.on("data-table:select-all-record", ca), k.on("data-table:download", Pe), k.on("data-table:import-excel-to-json", fa);
|
|
460
|
-
}, dt = () => {
|
|
461
|
-
k.off("data-table:update", sa), k.off("data-table:apply-filter", da), k.off("search-table", ua), k.off("data-table:clear-selected-data", pa), k.off("data-table:select-all-record", ca), k.off("data-table:download", Pe), k.off("data-table:import-excel-to-json", fa);
|
|
462
|
-
}, da = (e) => {
|
|
463
|
-
e.tableName === t.tableName && (He.value = e.filter, na());
|
|
464
|
-
}, ua = (e) => {
|
|
465
|
-
e.tableName === t.tableName && (ie.value = e.search, na());
|
|
466
|
-
}, ca = (e) => {
|
|
467
|
-
e.tableName === t.tableName && rt(e);
|
|
468
|
-
}, pa = (e) => {
|
|
469
|
-
e.tableName === t.tableName && (T.value = []);
|
|
470
|
-
}, Pe = (e) => {
|
|
471
|
-
var a;
|
|
472
|
-
(e.tableName === t.tableName || (a = e.multiTableNames) != null && a.includes(t.tableName)) && st(e);
|
|
473
|
-
}, ut = (e) => {
|
|
474
|
-
e.code.includes("Digit") || e.code.includes("Numpad") || ["ArrowLeft", "ArrowRight", "Backspace", "Delete"].includes(e.code) || e.preventDefault();
|
|
475
|
-
}, ct = (e) => {
|
|
476
|
-
const a = t.includeCheckDisabledRows ? 0 : (de.value.length || t.totalDisabledRows) ?? 0, n = {
|
|
477
|
-
total: (e ?? V.value ?? 0) - a,
|
|
478
|
-
tableName: t.tableName
|
|
479
|
-
};
|
|
480
|
-
k.emit("data-table:update-total-record", n);
|
|
481
|
-
}, pt = () => {
|
|
482
|
-
k.on("data-table:update", sa);
|
|
483
|
-
}, fa = (e) => {
|
|
484
|
-
e.tableName === t.tableName && (y.value = e.data, I.value = [...y.value], V.value = e.data.length);
|
|
485
|
-
}, Ve = (e, a, n) => typeof (e == null ? void 0 : e.confirmDialogProps) == "function" ? e == null ? void 0 : e.confirmDialogProps(a, n) : e == null ? void 0 : e.confirmDialogProps;
|
|
486
|
-
return (e, a) => {
|
|
487
|
-
var n, s, v;
|
|
488
|
-
return d(), c("div", ve(ge((n = r(u)) == null ? void 0 : n.root)), [
|
|
489
|
-
$("div", ve(ge((s = r(u)) == null ? void 0 : s.tablewrapper)), [
|
|
490
|
-
K(r(Ct), p({ "auto-hide": !1 }, (v = r(u)) == null ? void 0 : v.scrollheightwrapper({ props: t }), { class: "custom-scrollbar" }), {
|
|
491
|
-
default: ye(() => {
|
|
492
|
-
var i, g, f, m, w;
|
|
493
|
-
return [
|
|
494
|
-
(d(), c("table", p({ id: r(xe) }, (i = r(u)) == null ? void 0 : i.table, {
|
|
495
|
-
key: Ye.value,
|
|
496
|
-
ref: Ma.value
|
|
497
|
-
}), [
|
|
498
|
-
$("thead", ve(ge(r(u).thead)), [
|
|
499
|
-
$("tr", ve(ge(r(u).headerrow)), [
|
|
500
|
-
e.reorderable && !D.value ? (d(), c("th", p({ key: 0 }, r(u).headercellreorderable, {
|
|
501
|
-
class: ce().class
|
|
502
|
-
}), null, 16)) : h("", !0),
|
|
503
|
-
e.selectionType === "checkbox" ? (d(), c("th", p({ key: 1 }, r(u).headercellcheckbox, {
|
|
504
|
-
class: ce().class
|
|
505
|
-
}), [
|
|
506
|
-
K(ze, p(
|
|
507
|
-
(g = r(u)) == null ? void 0 : g.headercheckbox({ context: { isSelectedAll: la.value } }),
|
|
508
|
-
{
|
|
509
|
-
"model-value": la.value,
|
|
510
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => Va(!!l)),
|
|
511
|
-
binary: ""
|
|
512
|
-
}
|
|
513
|
-
), null, 16, ["model-value"])
|
|
514
|
-
], 16)) : h("", !0),
|
|
515
|
-
e.treeTable ? (d(), c("th", p({ key: 2 }, r(u).headertoggler, {
|
|
516
|
-
class: ce().class
|
|
517
|
-
}), [
|
|
518
|
-
K(Qe, p(
|
|
519
|
-
{ onClick: za },
|
|
520
|
-
r(u).headertogglerbutton({ context: { isExpandedAll: ta.value } }),
|
|
521
|
-
{
|
|
522
|
-
icon: "arrow-down",
|
|
523
|
-
text: ""
|
|
524
|
-
}
|
|
525
|
-
), null, 16)
|
|
526
|
-
], 16)) : h("", !0),
|
|
527
|
-
(d(!0), c(E, null, ne(L.value, (l) => (d(), c("th", p({
|
|
528
|
-
key: l.field,
|
|
529
|
-
class: [l.headerClass, l.class],
|
|
530
|
-
ref_for: !0
|
|
531
|
-
}, ce(l), {
|
|
532
|
-
onClick: (b) => l.sortable ? ot(l.field, b) : null
|
|
533
|
-
}), [
|
|
534
|
-
$("span", p({ ref_for: !0 }, r(u).headercellcontent), [
|
|
535
|
-
$("span", Ut, [
|
|
536
|
-
be(M(l.header) + " ", 1),
|
|
537
|
-
l.info ? (d(), _(Y, {
|
|
538
|
-
key: 0,
|
|
539
|
-
info: l.info,
|
|
540
|
-
class: "w-[10px] h-[10px]",
|
|
541
|
-
icon: "info"
|
|
542
|
-
}, null, 8, ["info"])) : h("", !0)
|
|
543
|
-
]),
|
|
544
|
-
l.sortable ? (d(), _(Y, {
|
|
545
|
-
key: 0,
|
|
546
|
-
icon: !F.value || F.value != l.field ? "arrow-up-down" : D.value == 1 ? "sort-asc" : "sort-desc",
|
|
547
|
-
class: "text-base"
|
|
548
|
-
}, null, 8, ["icon"])) : h("", !0)
|
|
549
|
-
], 16)
|
|
550
|
-
], 16, Ot))), 128)),
|
|
551
|
-
t.customColumn || t.useOption ? (d(), c("th", p({ key: 3 }, ce(void 0, t.customColumn), {
|
|
552
|
-
id: `column-visibility-toggle-${r(xe)}`,
|
|
553
|
-
onClick: a[1] || (a[1] = //@ts-ignore
|
|
554
|
-
(...l) => {
|
|
555
|
-
var b, A;
|
|
556
|
-
return ((b = Re.value) == null ? void 0 : b.toggleMenu) && ((A = Re.value) == null ? void 0 : A.toggleMenu(...l));
|
|
557
|
-
})
|
|
558
|
-
}), [
|
|
559
|
-
t.customColumn ? (d(), _(Y, p({ key: 0 }, r(u).columnvisibilityicon, {
|
|
560
|
-
icon: "ellipsis-h",
|
|
561
|
-
"tooltip-pos": "left"
|
|
562
|
-
}), null, 16)) : h("", !0)
|
|
563
|
-
], 16, Lt)) : h("", !0)
|
|
564
|
-
], 16)
|
|
565
|
-
], 16),
|
|
566
|
-
$("tbody", ve(ge((f = r(u)) == null ? void 0 : f.tbody)), [
|
|
567
|
-
$e.value ? (d(), c("tr", It, [
|
|
568
|
-
$("td", p({ colspan: ea.value }, (m = r(u)) == null ? void 0 : m.bodycell), [
|
|
569
|
-
(d(!0), c(E, null, ne(r(u).invisiblelottiewrapper ? 2 : 1, (l) => (d(), c("div", p(
|
|
570
|
-
{
|
|
571
|
-
key: l,
|
|
572
|
-
ref_for: !0
|
|
573
|
-
},
|
|
574
|
-
l === 1 ? r(u).loadingtablewrapper : r(u).invisiblelottiewrapper
|
|
575
|
-
), [
|
|
576
|
-
K(Ne, p({
|
|
577
|
-
animation: "loading-table",
|
|
578
|
-
ref_for: !0
|
|
579
|
-
}, r(u).loadingtablelottie), null, 16)
|
|
580
|
-
], 16))), 128))
|
|
581
|
-
], 16, Vt)
|
|
582
|
-
])) : La.value ? (d(), c("tr", Xt, [
|
|
583
|
-
$("td", p({ colspan: ea.value }, (w = r(u)) == null ? void 0 : w.bodycell), [
|
|
584
|
-
(d(!0), c(E, null, ne(r(u).invisiblelottiewrapper ? 2 : 1, (l) => (d(), c("div", p(
|
|
585
|
-
{
|
|
586
|
-
key: l,
|
|
587
|
-
ref_for: !0
|
|
588
|
-
},
|
|
589
|
-
l === 1 ? r(u).nodatalottiewrapper : r(u).invisiblelottiewrapper
|
|
590
|
-
), [
|
|
591
|
-
K(Ne, p({
|
|
592
|
-
animation: "no-data",
|
|
593
|
-
ref_for: !0
|
|
594
|
-
}, r(u).nodatalottie), null, 16),
|
|
595
|
-
re.value.emptyTableMessage ? (d(), c("span", p({
|
|
596
|
-
key: 0,
|
|
597
|
-
ref_for: !0
|
|
598
|
-
}, r(u).nodatamessage), M(re.value.emptyTableMessage), 17)) : h("", !0)
|
|
599
|
-
], 16))), 128))
|
|
600
|
-
], 16, el)
|
|
601
|
-
])) : (d(!0), c(E, { key: 1 }, ne(y.value, (l, b) => {
|
|
602
|
-
var A, B, _e, Ee, pe, j, le, H, z, oe, G;
|
|
603
|
-
return d(), c("tr", p(
|
|
604
|
-
{
|
|
605
|
-
id: l._id,
|
|
606
|
-
key: `${b}-${l[e.dataKey]}`,
|
|
607
|
-
draggable: Ue(l),
|
|
608
|
-
ref_for: !0
|
|
609
|
-
},
|
|
610
|
-
(A = r(u)) == null ? void 0 : A.bodyrow({
|
|
611
|
-
context: {
|
|
612
|
-
highlighted: l[e.highlightKey ?? ""],
|
|
613
|
-
selected: Oe(l[e.dataKey]),
|
|
614
|
-
disabled: ae(l[e.dataKey]),
|
|
615
|
-
draggable: Ue(l),
|
|
616
|
-
dragging: Be.value
|
|
617
|
-
},
|
|
618
|
-
props: t
|
|
619
|
-
}),
|
|
620
|
-
{
|
|
621
|
-
onClick: (o) => ja(o, l, b),
|
|
622
|
-
onDblclick: (o) => {
|
|
623
|
-
var J;
|
|
624
|
-
return e.treeTable && ((J = l.children) != null && J.length || l.hasChildren) ? Ke(l, b) : null;
|
|
625
|
-
},
|
|
626
|
-
onDrag: a[11] || (a[11] = (o) => Be.value = !0),
|
|
627
|
-
onDragenter: S((o) => qa(o, l), ["prevent"]),
|
|
628
|
-
onDragleave: a[12] || (a[12] = S(() => {
|
|
629
|
-
}, ["prevent"])),
|
|
630
|
-
onDragover: a[13] || (a[13] = S(() => {
|
|
631
|
-
}, ["prevent"])),
|
|
632
|
-
onDragstart: (o) => Wa(o, l, b),
|
|
633
|
-
onDrop: Ga
|
|
634
|
-
}
|
|
635
|
-
), [
|
|
636
|
-
e.reorderable && !D.value ? (d(), c("td", p({
|
|
637
|
-
key: 0,
|
|
638
|
-
ref_for: !0
|
|
639
|
-
}, (B = r(u)) == null ? void 0 : B.bodycell), [
|
|
640
|
-
!l.childRow && !l.childRowHeader ? (d(), _(Y, {
|
|
641
|
-
key: 0,
|
|
642
|
-
class: "draggableicon",
|
|
643
|
-
icon: "dragable-menu"
|
|
644
|
-
})) : h("", !0)
|
|
645
|
-
], 16)) : h("", !0),
|
|
646
|
-
e.selectionType === "checkbox" ? (d(), c("td", p({
|
|
647
|
-
key: 1,
|
|
648
|
-
ref_for: !0
|
|
649
|
-
}, (_e = r(u)) == null ? void 0 : _e.bodycell, {
|
|
650
|
-
onClick: a[3] || (a[3] = S(() => {
|
|
651
|
-
}, ["stop"]))
|
|
652
|
-
}), [
|
|
653
|
-
!l.childRow && !l.childRowHeader ? (d(), _(ze, p({
|
|
654
|
-
key: 0,
|
|
655
|
-
ref_for: !0
|
|
656
|
-
}, (Ee = r(u)) == null ? void 0 : Ee.rowcheckbox, {
|
|
657
|
-
modelValue: T.value,
|
|
658
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) => T.value = o),
|
|
659
|
-
binary: !1,
|
|
660
|
-
disabled: ae(l[e.dataKey]),
|
|
661
|
-
value: l
|
|
662
|
-
}), null, 16, ["modelValue", "disabled", "value"])) : h("", !0)
|
|
663
|
-
], 16)) : h("", !0),
|
|
664
|
-
e.treeTable ? (d(), c("td", p({
|
|
665
|
-
key: 2,
|
|
666
|
-
ref_for: !0
|
|
667
|
-
}, (pe = r(u)) == null ? void 0 : pe.bodycell, {
|
|
668
|
-
onClick: (o) => {
|
|
669
|
-
(l.childRow || l.childRowHeader) && o.stopPropagation();
|
|
670
|
-
}
|
|
671
|
-
}), [
|
|
672
|
-
(j = l.children) != null && j.length || l.hasChildren ? (d(), _(Qe, p(
|
|
673
|
-
{
|
|
674
|
-
key: 0,
|
|
675
|
-
onClick: S((o) => Ke(l, b), ["stop"]),
|
|
676
|
-
ref_for: !0
|
|
677
|
-
},
|
|
678
|
-
r(u).rowtogglerbutton({
|
|
679
|
-
context: {
|
|
680
|
-
isRowExpanded: Me(l[e.dataKey])
|
|
681
|
-
}
|
|
682
|
-
}),
|
|
683
|
-
{
|
|
684
|
-
icon: "arrow-down",
|
|
685
|
-
text: ""
|
|
686
|
-
}
|
|
687
|
-
), null, 16, ["onClick"])) : h("", !0)
|
|
688
|
-
], 16, zt)) : h("", !0),
|
|
689
|
-
(() => {
|
|
690
|
-
var o;
|
|
691
|
-
return l.childRowHeader && ((o = t.childTableProps) == null ? void 0 : o.useColumnsHeader);
|
|
692
|
-
})() ? (d(!0), c(E, { key: 3 }, ne(Xe.value, (o) => {
|
|
693
|
-
var J, fe;
|
|
694
|
-
return d(), c("td", {
|
|
695
|
-
key: o.header,
|
|
696
|
-
class: je([(J = r(u)) == null ? void 0 : J.bodycell.class, "font-semibold text-xs"]),
|
|
697
|
-
colspan: o.colspan ?? ((fe = o.parentColumnsFields) == null ? void 0 : fe.length),
|
|
698
|
-
onClick: a[4] || (a[4] = S(() => {
|
|
699
|
-
}, ["stop"]))
|
|
700
|
-
}, M(o.header), 11, Qt);
|
|
701
|
-
}), 128)) : l.childRowHeader ? (d(), c("td", p({
|
|
702
|
-
key: 4,
|
|
703
|
-
ref_for: !0
|
|
704
|
-
}, r(u).childrowheader, {
|
|
705
|
-
class: (le = r(u)) == null ? void 0 : le.bodycell.class,
|
|
706
|
-
colspan: t.columns.length + 1,
|
|
707
|
-
onClick: a[5] || (a[5] = S(() => {
|
|
708
|
-
}, ["stop"]))
|
|
709
|
-
}), M(l.header), 17, Wt)) : l.loadingRow ? (d(), c("td", {
|
|
710
|
-
key: 5,
|
|
711
|
-
class: je((H = r(u)) == null ? void 0 : H.bodycell.class),
|
|
712
|
-
colspan: t.columns.length + 1,
|
|
713
|
-
onClick: a[6] || (a[6] = S(() => {
|
|
714
|
-
}, ["stop"]))
|
|
715
|
-
}, [
|
|
716
|
-
$("div", p({ ref_for: !0 }, r(u).loadingtablewrapper), [
|
|
717
|
-
K(Ne, p({
|
|
718
|
-
animation: "loading-table",
|
|
719
|
-
ref_for: !0
|
|
720
|
-
}, r(u).loadingtablelottie), null, 16)
|
|
721
|
-
], 16)
|
|
722
|
-
], 10, qt)) : l.noDataRow ? (d(), c("td", {
|
|
723
|
-
key: 6,
|
|
724
|
-
class: je((z = r(u)) == null ? void 0 : z.bodycell.class),
|
|
725
|
-
colspan: t.columns.length + 1,
|
|
726
|
-
onClick: a[7] || (a[7] = S(() => {
|
|
727
|
-
}, ["stop"]))
|
|
728
|
-
}, [
|
|
729
|
-
$("div", p({ ref_for: !0 }, r(u).nodatalottiewrapper), [
|
|
730
|
-
K(Ne, p({
|
|
731
|
-
animation: "no-data",
|
|
732
|
-
ref_for: !0
|
|
733
|
-
}, r(u).nodatalottie), null, 16),
|
|
734
|
-
re.value.emptyTableMessage ? (d(), c("span", p({
|
|
735
|
-
key: 0,
|
|
736
|
-
ref_for: !0
|
|
737
|
-
}, r(u).nodatamessage), M(re.value.emptyTableMessage), 17)) : h("", !0)
|
|
738
|
-
], 16)
|
|
739
|
-
], 10, Gt)) : (d(), c(E, { key: 7 }, [
|
|
740
|
-
(d(!0), c(E, null, ne(l.childRow ? Xe.value : L.value, (o) => {
|
|
741
|
-
var J, fe, va, ga, ya, ba, ha, ma, wa, ka, Ca, Ra, Da, Ta, Ka, Se, Pa, _a;
|
|
742
|
-
return d(), c("td", p({
|
|
743
|
-
key: o.field,
|
|
744
|
-
class: [
|
|
745
|
-
{
|
|
746
|
-
"!py-0": o.editable,
|
|
747
|
-
"!px-0": ((J = o.preset) == null ? void 0 : J.type) === "multirow"
|
|
748
|
-
},
|
|
749
|
-
typeof o.bodyClass == "function" ? o.bodyClass(l) : o.bodyClass,
|
|
750
|
-
o.class
|
|
751
|
-
],
|
|
752
|
-
colspan: o.colspan ?? ((fe = o.parentColumnsFields) == null ? void 0 : fe.length),
|
|
753
|
-
ref_for: !0
|
|
754
|
-
}, (va = r(u)) == null ? void 0 : va.bodycell), [
|
|
755
|
-
((ga = o.preset) == null ? void 0 : ga.type) === "toggle" || ((ya = o.preset) == null ? void 0 : ya.type) === "checkbox" ? (d(), c(E, { key: 0 }, [
|
|
756
|
-
((ba = o.preset) == null ? void 0 : ba.type) === "toggle" ? (d(), _(Nt, {
|
|
757
|
-
key: 0,
|
|
758
|
-
disabled: ae(l[e.dataKey]) || (typeof ((ha = o.preset) == null ? void 0 : ha.disabled) == "function" ? (ma = o.preset) == null ? void 0 : ma.disabled(l) : (wa = o.preset) == null ? void 0 : wa.disabled),
|
|
759
|
-
"input-id": l[e.dataKey],
|
|
760
|
-
"model-value": r(N)(l, o.field),
|
|
761
|
-
onClick: a[8] || (a[8] = S(() => {
|
|
762
|
-
}, ["stop"])),
|
|
763
|
-
"onUpdate:modelValue": (C) => {
|
|
764
|
-
r(he)(l, o.field, C), oa(C, l, o);
|
|
765
|
-
}
|
|
766
|
-
}, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : h("", !0),
|
|
767
|
-
((ka = o.preset) == null ? void 0 : ka.type) === "checkbox" ? (d(), _(ze, {
|
|
768
|
-
key: 1,
|
|
769
|
-
disabled: ae(l[e.dataKey]) || (typeof ((Ca = o.preset) == null ? void 0 : Ca.disabled) == "function" ? (Ra = o.preset) == null ? void 0 : Ra.disabled(l) : (Da = o.preset) == null ? void 0 : Da.disabled),
|
|
770
|
-
"input-id": l[e.dataKey],
|
|
771
|
-
"model-value": r(N)(l, o.field),
|
|
772
|
-
onClick: a[9] || (a[9] = S(() => {
|
|
773
|
-
}, ["stop"])),
|
|
774
|
-
"onUpdate:modelValue": (C) => {
|
|
775
|
-
r(he)(l, o.field, !!C), oa(!!C, l, o);
|
|
776
|
-
},
|
|
777
|
-
binary: ""
|
|
778
|
-
}, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : h("", !0),
|
|
779
|
-
(Ta = o.preset) != null && Ta.confirmDialogProps ? (d(), _(Et, p(
|
|
780
|
-
{
|
|
781
|
-
key: 2,
|
|
782
|
-
list: [l],
|
|
783
|
-
visible: !!Te.value[l[e.dataKey] + o.field],
|
|
784
|
-
onClose: () => {
|
|
785
|
-
var P, x, Ea;
|
|
786
|
-
const C = () => r(he)(
|
|
787
|
-
l,
|
|
788
|
-
o.field,
|
|
789
|
-
!r(N)(l, o.field)
|
|
790
|
-
);
|
|
791
|
-
((P = Ve(
|
|
792
|
-
o.preset,
|
|
793
|
-
l[o.field],
|
|
794
|
-
l
|
|
795
|
-
)) == null ? void 0 : P.actionable) == !1 && "onConfirm" in o.preset ? (Ea = (x = o.preset).onConfirm) == null || Ea.call(
|
|
796
|
-
x,
|
|
797
|
-
l[o.field],
|
|
798
|
-
l,
|
|
799
|
-
C
|
|
800
|
-
) : C();
|
|
801
|
-
},
|
|
802
|
-
onConfirm: (C) => {
|
|
803
|
-
var P, x;
|
|
804
|
-
return (x = (P = o.preset) == null ? void 0 : P.onConfirm) == null ? void 0 : x.call(
|
|
805
|
-
P,
|
|
806
|
-
l[o.field],
|
|
807
|
-
l,
|
|
808
|
-
() => r(he)(
|
|
809
|
-
l,
|
|
810
|
-
o.field,
|
|
811
|
-
!r(N)(l, o.field)
|
|
812
|
-
)
|
|
813
|
-
);
|
|
814
|
-
},
|
|
815
|
-
"onUpdate:visible": (C) => Te.value[l[e.dataKey] + o.field] = C,
|
|
816
|
-
actionable: "",
|
|
817
|
-
ref_for: !0
|
|
818
|
-
},
|
|
819
|
-
Ve(
|
|
820
|
-
o.preset,
|
|
821
|
-
l[o.field],
|
|
822
|
-
l
|
|
823
|
-
)
|
|
824
|
-
), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : h("", !0)
|
|
825
|
-
], 64)) : ((Ka = o.preset) == null ? void 0 : Ka.type) === "multirow" ? (d(), _(Ft, {
|
|
826
|
-
key: 1,
|
|
827
|
-
attributes: ((Pa = (Se = o.preset) == null ? void 0 : Se.fieldAttributes) == null ? void 0 : Pa.call(Se, l)) ?? []
|
|
828
|
-
}, null, 8, ["attributes"])) : o.editable ? (d(), c("span", p({
|
|
829
|
-
key: 2,
|
|
830
|
-
ref_for: !0
|
|
831
|
-
}, r(u).celleditableelement, {
|
|
832
|
-
contenteditable: o.editable,
|
|
833
|
-
onBlur: (C) => {
|
|
834
|
-
e.$emit("cellEdited", {
|
|
835
|
-
item: l,
|
|
836
|
-
field: o.field,
|
|
837
|
-
index: b,
|
|
838
|
-
value: C.target.innerText
|
|
839
|
-
});
|
|
840
|
-
},
|
|
841
|
-
onKeypress: (C) => {
|
|
842
|
-
o.numberInputOnly && ut(C);
|
|
843
|
-
}
|
|
844
|
-
}), M(r(N)(l, o.field) || "-"), 17, Yt)) : o.bodyComponent || o.bodyClass || o.bodyTemplate ? (d(), c(E, { key: 3 }, [
|
|
845
|
-
o.bodyComponent ? (d(), _(ht(o.bodyComponent(l, b).component), p({
|
|
846
|
-
key: 0,
|
|
847
|
-
modelValue: o.bodyComponent(l, b).model,
|
|
848
|
-
"onUpdate:modelValue": (C) => o.bodyComponent(l, b).model = C,
|
|
849
|
-
disabled: o.bodyComponent(l, b).disabled,
|
|
850
|
-
ref_for: !0
|
|
851
|
-
}, o.bodyComponent(l, b).props, mt(
|
|
852
|
-
o.bodyComponent(l, b).events ? o.bodyComponent(l, b).events : {}
|
|
853
|
-
), {
|
|
854
|
-
onChange: (C) => {
|
|
855
|
-
var P, x;
|
|
856
|
-
return (x = (P = o.bodyComponent(l, b)).onChange) == null ? void 0 : x.call(P, l);
|
|
857
|
-
},
|
|
858
|
-
onClick: a[10] || (a[10] = S(() => {
|
|
859
|
-
}, ["stop"])),
|
|
860
|
-
"onUpdate:modelValue": (C) => {
|
|
861
|
-
var P, x;
|
|
862
|
-
return (x = (P = o.bodyComponent(l, b)).onChange) == null ? void 0 : x.call(P, l);
|
|
863
|
-
}
|
|
864
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : (d(), c("span", Zt, [
|
|
865
|
-
o.bodyTemplate ? (d(), c(E, { key: 0 }, [
|
|
866
|
-
be(M(((_a = o.bodyTemplate) == null ? void 0 : _a.call(o, l, b)) || "-"), 1)
|
|
867
|
-
], 64)) : (d(), c(E, { key: 1 }, [
|
|
868
|
-
be(M(r(N)(l, o.field) || "-"), 1)
|
|
869
|
-
], 64))
|
|
870
|
-
]))
|
|
871
|
-
], 64)) : o.dateFormatOptions ? (d(), c(E, { key: 4 }, [
|
|
872
|
-
be(M(r(xa)(
|
|
873
|
-
new Date(
|
|
874
|
-
r(N)(l, o.field)
|
|
875
|
-
),
|
|
876
|
-
o.dateFormatOptions
|
|
877
|
-
)), 1)
|
|
878
|
-
], 64)) : (d(), c(E, { key: 5 }, [
|
|
879
|
-
be(M(r(N)(l, o.field) ?? "-"), 1)
|
|
880
|
-
], 64))
|
|
881
|
-
], 16, Jt);
|
|
882
|
-
}), 128)),
|
|
883
|
-
(() => {
|
|
884
|
-
var o;
|
|
885
|
-
return (e.useOption || Re.value) && !l.childRow || l.childRow && ((o = e.childTableProps) == null ? void 0 : o.useOption);
|
|
886
|
-
})() ? (d(), c("td", p(
|
|
887
|
-
{
|
|
888
|
-
key: 0,
|
|
889
|
-
ref_for: !0,
|
|
890
|
-
ref_key: "rowSingleActionCell",
|
|
891
|
-
ref: Oa
|
|
892
|
-
},
|
|
893
|
-
(oe = r(u)) == null ? void 0 : oe.rowsingleactioncell({
|
|
894
|
-
props: t,
|
|
895
|
-
context: {
|
|
896
|
-
selected: Oe(l[e.dataKey]),
|
|
897
|
-
highlighted: l[e.highlightKey ?? ""]
|
|
898
|
-
}
|
|
899
|
-
}),
|
|
900
|
-
{
|
|
901
|
-
class: r(u).bodycell.class
|
|
902
|
-
}
|
|
903
|
-
), [
|
|
904
|
-
e.useOption || (G = e.childTableProps) != null && G.useOption ? (d(), c("div", p({
|
|
905
|
-
key: 0,
|
|
906
|
-
ref_for: !0
|
|
907
|
-
}, r(u).singleactionwrapper), [
|
|
908
|
-
K(Qe, p({
|
|
909
|
-
id: "button-action-" + l[t.dataKey],
|
|
910
|
-
ref_for: !0
|
|
911
|
-
}, r(u).singleactionbutton({ props: t }), {
|
|
912
|
-
disabled: e.disableAllRows,
|
|
913
|
-
onClick: S((o) => Qa(o, l), ["stop"]),
|
|
914
|
-
icon: "ellipsis-h",
|
|
915
|
-
outlined: "",
|
|
916
|
-
size: "small",
|
|
917
|
-
"tooltip-pos": "left",
|
|
918
|
-
type: "button"
|
|
919
|
-
}), null, 16, ["id", "disabled", "onClick"])
|
|
920
|
-
], 16)) : h("", !0)
|
|
921
|
-
], 16)) : h("", !0)
|
|
922
|
-
], 64))
|
|
923
|
-
], 16, jt);
|
|
924
|
-
}), 128))
|
|
925
|
-
], 16)
|
|
926
|
-
], 16, Mt))
|
|
927
|
-
];
|
|
928
|
-
}),
|
|
929
|
-
_: 1
|
|
930
|
-
}, 16)
|
|
931
|
-
], 16),
|
|
932
|
-
e.usePaginator ? bt((d(), _(r(kt), p({
|
|
933
|
-
key: ke.value,
|
|
934
|
-
rows: ee.value,
|
|
935
|
-
"onUpdate:rows": a[14] || (a[14] = (i) => ee.value = i)
|
|
936
|
-
}, r(u).paginator({ context: { totalRecords: V.value } }), {
|
|
937
|
-
"rows-per-page-options": Ha,
|
|
938
|
-
"total-records": V.value,
|
|
939
|
-
onPage: lt
|
|
940
|
-
}), {
|
|
941
|
-
firstpagelinkicon: ye(() => [
|
|
942
|
-
K(Y, { icon: "round-keyboard-double-arrow-left" })
|
|
943
|
-
]),
|
|
944
|
-
lastpagelinkicon: ye(() => [
|
|
945
|
-
K(Y, { icon: "round-keyboard-double-arrow-right" })
|
|
946
|
-
]),
|
|
947
|
-
prevpagelinkicon: ye(() => [
|
|
948
|
-
K(Y, { icon: "round-keyboard-arrow-left" })
|
|
949
|
-
]),
|
|
950
|
-
nextpagelinkicon: ye(() => [
|
|
951
|
-
K(Y, { icon: "round-keyboard-arrow-right" })
|
|
952
|
-
]),
|
|
953
|
-
_: 1
|
|
954
|
-
}, 16, ["rows", "total-records"])), [
|
|
955
|
-
[wt, !$e.value]
|
|
956
|
-
]) : h("", !0),
|
|
957
|
-
K(St, {
|
|
958
|
-
id: "single-action-menu",
|
|
959
|
-
ref_key: "optionMenu",
|
|
960
|
-
ref: Ze,
|
|
961
|
-
model: e.options,
|
|
962
|
-
onFocus: r(Ht),
|
|
963
|
-
"append-to": "body",
|
|
964
|
-
"auto-z-index": "",
|
|
965
|
-
popup: ""
|
|
966
|
-
}, null, 8, ["model", "onFocus"]),
|
|
967
|
-
t.customColumn ? (d(), _(_t, {
|
|
968
|
-
key: Je.value,
|
|
969
|
-
ref_key: "customColumn",
|
|
970
|
-
ref: Re,
|
|
971
|
-
"visible-columns": L.value,
|
|
972
|
-
"onUpdate:visibleColumns": a[15] || (a[15] = (i) => L.value = i),
|
|
973
|
-
"default-columns": e.columns.filter((i) => i.visible !== !1),
|
|
974
|
-
"table-id": r(xe)
|
|
975
|
-
}, null, 8, ["visible-columns", "default-columns", "table-id"])) : h("", !0),
|
|
976
|
-
K(At, { group: "download" })
|
|
977
|
-
], 16);
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
}), wl = /* @__PURE__ */ Bt(al, [["__scopeId", "data-v-888a7a03"]]);
|
|
981
|
-
export {
|
|
982
|
-
wl as D
|
|
983
|
-
};
|