@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,268 +0,0 @@
|
|
|
1
|
-
import { defineComponent as te, useSlots as se, computed as W, onMounted as le, onBeforeUnmount as oe, ref as i, shallowRef as ne, nextTick as $, watch as D, createBlock as ae, openBlock as de, mergeProps as ie, createSlots as re, withCtx as ce, renderSlot as ue } from "vue";
|
|
2
|
-
import { e as S } from "../assetinfo/AssetInfo-CmwgOU74.es.js";
|
|
3
|
-
import { u as fe, m as pe } from "../animation/Animation-COWVilAA.es.js";
|
|
4
|
-
import { _ as ye } from "../basetree/BaseTree-DLSA5FMh.es.js";
|
|
5
|
-
const ve = (r, c = !1) => Object.keys(U(r, c)).map(Number), U = (r, c = !1) => Object.fromEntries(
|
|
6
|
-
Object.entries(r).filter(([K, s]) => {
|
|
7
|
-
const C = s.checked && !s.partialChecked, O = c || K != "-1";
|
|
8
|
-
return C && O;
|
|
9
|
-
})
|
|
10
|
-
), P = (r) => r ? r.flatMap((c) => [
|
|
11
|
-
{ ...c },
|
|
12
|
-
...P(c.children)
|
|
13
|
-
]) : [], be = /* @__PURE__ */ te({
|
|
14
|
-
__name: "Tree",
|
|
15
|
-
props: {
|
|
16
|
-
filter: {},
|
|
17
|
-
type: {},
|
|
18
|
-
fetchTree: {},
|
|
19
|
-
params: {},
|
|
20
|
-
selectedKeys: { default: void 0 },
|
|
21
|
-
selectedTreeNodes: {},
|
|
22
|
-
selectionMode: { default: "checkbox" },
|
|
23
|
-
useOption: { type: Boolean, default: !1 },
|
|
24
|
-
listLabelsNoOption: {},
|
|
25
|
-
treeNodeMenus: {},
|
|
26
|
-
autoSelectAll: { type: Boolean, default: !1 },
|
|
27
|
-
selectLastNode: { type: Boolean, default: !1 },
|
|
28
|
-
disableNodeAll: { type: Boolean, default: !1 },
|
|
29
|
-
includeNodeAllKey: { type: Boolean, default: !1 },
|
|
30
|
-
disableKeys: {},
|
|
31
|
-
exactDisableKeys: {},
|
|
32
|
-
readonly: { type: Boolean },
|
|
33
|
-
selectDisposableOnly: { type: Boolean },
|
|
34
|
-
flattenDisposableNode: { type: Boolean },
|
|
35
|
-
excludedKeys: {},
|
|
36
|
-
shouldEmitEventOnChange: { type: Boolean, default: !1 },
|
|
37
|
-
level: {},
|
|
38
|
-
value: {},
|
|
39
|
-
propagateSelection: { type: Boolean, default: !0 },
|
|
40
|
-
expandedKeys: {},
|
|
41
|
-
selectionKeys: {},
|
|
42
|
-
metaKeySelection: { type: Boolean },
|
|
43
|
-
loading: { type: Boolean },
|
|
44
|
-
loadingIcon: {},
|
|
45
|
-
loadingMode: {},
|
|
46
|
-
filterText: {},
|
|
47
|
-
filterBy: {},
|
|
48
|
-
filterMode: {},
|
|
49
|
-
filterPlaceholder: {},
|
|
50
|
-
filterLocale: {},
|
|
51
|
-
highlightOnSelect: { type: Boolean },
|
|
52
|
-
scrollHeight: {},
|
|
53
|
-
ariaLabel: {},
|
|
54
|
-
ariaLabelledby: {},
|
|
55
|
-
pt: {},
|
|
56
|
-
ptOptions: {},
|
|
57
|
-
unstyled: { type: Boolean },
|
|
58
|
-
disableNodeWhen: {},
|
|
59
|
-
exactDisableNodeWhen: {},
|
|
60
|
-
nodeSelectedWhen: {}
|
|
61
|
-
},
|
|
62
|
-
emits: ["update:selectedKeys", "update:selectedTreeNodes", "nodeSelect", "nodeUnselect", "toggleMenu"],
|
|
63
|
-
setup(r, { expose: c, emit: K }) {
|
|
64
|
-
const s = r, C = se(), { defaultProps: O } = fe("Tree"), j = W(() => pe(s, O)), f = K;
|
|
65
|
-
le(() => {
|
|
66
|
-
S.on("tree:update-tree-nodes", w), M(s.filter), k();
|
|
67
|
-
}), oe(() => {
|
|
68
|
-
S.off("tree:update-tree-nodes", w);
|
|
69
|
-
});
|
|
70
|
-
const g = i(!0), F = i((/* @__PURE__ */ new Date()).getTime().toString()), G = i(), y = i([]), h = i([]), v = i({}), b = i(!1), d = i({ "-1": !0 }), H = i(!1), N = W({
|
|
71
|
-
get: () => s.selectedKeys ?? {},
|
|
72
|
-
set: (e) => {
|
|
73
|
-
f("update:selectedKeys", e);
|
|
74
|
-
}
|
|
75
|
-
}), u = ne({}), R = (e) => {
|
|
76
|
-
if (s.selectionMode === "checkbox") {
|
|
77
|
-
const t = (l, o) => {
|
|
78
|
-
l.forEach((n) => {
|
|
79
|
-
var m;
|
|
80
|
-
const p = JSON.stringify(n.key), a = !!(e != null && e.includes(Number(n.key)));
|
|
81
|
-
u.value[p] = { checked: a }, (m = n.children) != null && m.length && t(n.children, p), o && z(o);
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
t(y.value);
|
|
85
|
-
} else {
|
|
86
|
-
const t = e == null ? void 0 : e[0];
|
|
87
|
-
t && (u.value = { [t]: !0 });
|
|
88
|
-
}
|
|
89
|
-
}, V = (e) => Array.isArray(e) && e.every((t) => typeof t == "number"), z = (e) => {
|
|
90
|
-
const t = Q(e), l = u.value[e].checked || t, o = !t && X(e);
|
|
91
|
-
u.value[e] = {
|
|
92
|
-
// It should be checked when not partial checked, when it partially checked, the checked value should be false
|
|
93
|
-
checked: !o && l,
|
|
94
|
-
partialChecked: o
|
|
95
|
-
};
|
|
96
|
-
}, Q = (e) => {
|
|
97
|
-
var t;
|
|
98
|
-
return (t = v.value[e]) == null ? void 0 : t.every((l) => {
|
|
99
|
-
var n;
|
|
100
|
-
const o = JSON.stringify(l);
|
|
101
|
-
return (n = u.value[o]) == null ? void 0 : n.checked;
|
|
102
|
-
});
|
|
103
|
-
}, X = (e) => {
|
|
104
|
-
var t;
|
|
105
|
-
return (t = v.value[e]) == null ? void 0 : t.some((l) => {
|
|
106
|
-
var n, p;
|
|
107
|
-
const o = JSON.stringify(l);
|
|
108
|
-
return ((n = u.value[o]) == null ? void 0 : n.checked) || ((p = u.value[o]) == null ? void 0 : p.partialChecked);
|
|
109
|
-
});
|
|
110
|
-
}, A = (e) => e.map((t) => {
|
|
111
|
-
var l;
|
|
112
|
-
return (l = t.children) != null && l.length && (v.value = {
|
|
113
|
-
...v.value,
|
|
114
|
-
[t.key.toString()]: t.children.map((o) => Number(o.key))
|
|
115
|
-
}, t.children = A(t.children)), s.disableNodeWhen && (t.selectable = !s.disableNodeWhen(t)), t;
|
|
116
|
-
}), w = () => {
|
|
117
|
-
(async () => (f("update:selectedKeys", {}), await k(!1), L()))();
|
|
118
|
-
}, k = async (e = !0) => {
|
|
119
|
-
try {
|
|
120
|
-
g.value = !0;
|
|
121
|
-
const { data: t } = await j.value.fetchTree(s.type, s.params);
|
|
122
|
-
if (t) {
|
|
123
|
-
const l = A(t);
|
|
124
|
-
h.value = P(t), y.value = l, sessionStorage.setItem(`${s.type}Tree`, JSON.stringify(l)), sessionStorage.setItem(
|
|
125
|
-
`flatten${s.type}nodes`,
|
|
126
|
-
JSON.stringify(h.value)
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
s.selectLastNode && s.selectionMode === "single" && await $(Y), s.autoSelectAll && s.selectionMode === "checkbox" && await $(q);
|
|
130
|
-
} finally {
|
|
131
|
-
V(s.selectedKeys) && (R(s.selectedKeys), N.value = u.value), e || S.emit("tree:tree-updated"), g.value = !1;
|
|
132
|
-
}
|
|
133
|
-
}, Y = async () => {
|
|
134
|
-
var m, I;
|
|
135
|
-
const e = sessionStorage.getItem(
|
|
136
|
-
`${s.type.toLowerCase()}Node`
|
|
137
|
-
), t = (m = y.value) == null ? void 0 : m[0], l = (I = t == null ? void 0 : t.children) == null ? void 0 : I[0], o = e ? JSON.parse(e) : null, n = (o == null ? void 0 : o.key) == -1, p = s.disableNodeAll ? l : t, a = n && s.disableNodeAll ? (
|
|
138
|
-
// When last node is All, and disableNodeExist, it should select the firstChild of all
|
|
139
|
-
l
|
|
140
|
-
) : o ?? p;
|
|
141
|
-
if ((a == null ? void 0 : a.key) != null && Z(a == null ? void 0 : a.key)) {
|
|
142
|
-
N.value = { [a == null ? void 0 : a.key]: !0 };
|
|
143
|
-
const J = sessionStorage.getItem(
|
|
144
|
-
`${s.type.toLowerCase()}NodeExpandedKeys`
|
|
145
|
-
);
|
|
146
|
-
J && (d.value = JSON.parse(J)), x(a);
|
|
147
|
-
}
|
|
148
|
-
}, Z = (e) => h.value.some((t) => t.key === e), x = (e) => {
|
|
149
|
-
f("nodeSelect", e), s.shouldEmitEventOnChange && (sessionStorage.setItem(
|
|
150
|
-
`${s.type.toLowerCase()}Node`,
|
|
151
|
-
JSON.stringify(e)
|
|
152
|
-
), sessionStorage.setItem(
|
|
153
|
-
`${s.type.toLowerCase()}NodeExpandedKeys`,
|
|
154
|
-
JSON.stringify(d.value)
|
|
155
|
-
));
|
|
156
|
-
}, q = () => {
|
|
157
|
-
const e = {};
|
|
158
|
-
h.value.forEach((t) => {
|
|
159
|
-
e[t.key] = {
|
|
160
|
-
checked: !0,
|
|
161
|
-
partialChecked: !1
|
|
162
|
-
};
|
|
163
|
-
}), N.value = e;
|
|
164
|
-
}, B = () => {
|
|
165
|
-
b.value = !0;
|
|
166
|
-
for (const e of y.value)
|
|
167
|
-
T(e);
|
|
168
|
-
d.value = { ...d.value };
|
|
169
|
-
}, T = (e) => {
|
|
170
|
-
var t;
|
|
171
|
-
if ((t = e.children) != null && t.length) {
|
|
172
|
-
d.value[e.key ?? ""] = !0;
|
|
173
|
-
for (const l of e.children)
|
|
174
|
-
T(l);
|
|
175
|
-
}
|
|
176
|
-
}, _ = () => {
|
|
177
|
-
d.value = { "-1": !0 }, b.value = !1;
|
|
178
|
-
}, L = () => {
|
|
179
|
-
if (s.selectedKeys) {
|
|
180
|
-
const e = Array.isArray(s.selectedKeys) ? s.selectedKeys : Object.keys(
|
|
181
|
-
U(s.selectedKeys, s.includeNodeAllKey)
|
|
182
|
-
).map(Number), t = h.value.filter(
|
|
183
|
-
(l) => e.includes(l.key)
|
|
184
|
-
);
|
|
185
|
-
s.shouldEmitEventOnChange && (sessionStorage.setItem(
|
|
186
|
-
`${s.type.toLowerCase()}Keys`,
|
|
187
|
-
JSON.stringify(e)
|
|
188
|
-
), S.emit("tree:selection-changed", {
|
|
189
|
-
keys: JSON.stringify(e)
|
|
190
|
-
})), f("update:selectedTreeNodes", t);
|
|
191
|
-
}
|
|
192
|
-
}, M = (e) => {
|
|
193
|
-
e != null && e.length ? B() : E();
|
|
194
|
-
}, ee = (e) => {
|
|
195
|
-
s.readonly || x(e);
|
|
196
|
-
}, E = () => {
|
|
197
|
-
d.value = { "-1": !0 };
|
|
198
|
-
};
|
|
199
|
-
return D(
|
|
200
|
-
() => s.filter,
|
|
201
|
-
(e) => {
|
|
202
|
-
M(e);
|
|
203
|
-
}
|
|
204
|
-
), D(
|
|
205
|
-
() => [s.selectedKeys, s.type],
|
|
206
|
-
async (e, t) => {
|
|
207
|
-
e[1] !== t[1] && (f("update:selectedKeys", {}), await k()), L();
|
|
208
|
-
}
|
|
209
|
-
), c({
|
|
210
|
-
treeNodes: y,
|
|
211
|
-
flatNodes: h,
|
|
212
|
-
isLoading: g,
|
|
213
|
-
showDisposableGroups: H,
|
|
214
|
-
isExpandedAll: b,
|
|
215
|
-
collapseAll: _,
|
|
216
|
-
expandAll: B,
|
|
217
|
-
expandNodeAll: E,
|
|
218
|
-
fetchTreeList: k
|
|
219
|
-
}), (e, t) => (de(), ae(ye, ie({
|
|
220
|
-
id: F.value,
|
|
221
|
-
ref_key: "tree",
|
|
222
|
-
ref: G
|
|
223
|
-
}, e.$attrs, {
|
|
224
|
-
"expanded-keys": d.value,
|
|
225
|
-
"onUpdate:expandedKeys": t[0] || (t[0] = (l) => d.value = l),
|
|
226
|
-
"selection-keys": N.value,
|
|
227
|
-
"onUpdate:selectionKeys": t[1] || (t[1] = (l) => N.value = l),
|
|
228
|
-
class: { readonly: s.readonly },
|
|
229
|
-
"disable-keys": e.disableKeys,
|
|
230
|
-
"disable-node-all": s.disableNodeAll,
|
|
231
|
-
"disable-node-when": e.disableNodeWhen,
|
|
232
|
-
"exact-disable-keys": e.exactDisableKeys,
|
|
233
|
-
"exact-disable-node-when": e.exactDisableNodeWhen,
|
|
234
|
-
"filter-text": e.filter,
|
|
235
|
-
"list-labels-no-option": e.listLabelsNoOption,
|
|
236
|
-
loading: g.value,
|
|
237
|
-
"node-selected-when": e.nodeSelectedWhen,
|
|
238
|
-
"propagate-selection": e.propagateSelection,
|
|
239
|
-
"selection-mode": s.selectionMode,
|
|
240
|
-
"tree-node-menus": e.treeNodeMenus,
|
|
241
|
-
"use-option": e.useOption,
|
|
242
|
-
value: y.value,
|
|
243
|
-
onNodeCollapse: t[2] || (t[2] = (l) => b.value = !1),
|
|
244
|
-
onNodeSelect: ee,
|
|
245
|
-
onNodeUnselect: t[3] || (t[3] = (l) => f("nodeUnselect", l)),
|
|
246
|
-
onToggleMenu: t[4] || (t[4] = (l) => f("toggleMenu", l)),
|
|
247
|
-
"filter-by": "name"
|
|
248
|
-
}), re({ _: 2 }, [
|
|
249
|
-
C.default ? {
|
|
250
|
-
name: "default",
|
|
251
|
-
fn: ce(({ node: l, checked: o, disabled: n }) => [
|
|
252
|
-
ue(e.$slots, "default", {
|
|
253
|
-
checked: o,
|
|
254
|
-
disabled: n,
|
|
255
|
-
node: l
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
key: "0"
|
|
259
|
-
} : void 0
|
|
260
|
-
]), 1040, ["id", "expanded-keys", "selection-keys", "class", "disable-keys", "disable-node-all", "disable-node-when", "exact-disable-keys", "exact-disable-node-when", "filter-text", "list-labels-no-option", "loading", "node-selected-when", "propagate-selection", "selection-mode", "tree-node-menus", "use-option", "value"]));
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
export {
|
|
264
|
-
be as _,
|
|
265
|
-
U as a,
|
|
266
|
-
P as f,
|
|
267
|
-
ve as p
|
|
268
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/primevue-u6FsQONA.system.js","../button/Button-Okx1_kOu.system.js","../checkbox/Checkbox-CCtItmVW.system.js","../icon/Icon-DUylRmY4.system.js","../menu/Menu-OR25pAK3.system.js"],function(ye,Re){"use strict";var H,q,O,i,R,G,m,s,x,v,c,S,h,r,A,C,M,j,J,Q,X,V,y,Y,Z,D,_;return{setters:[l=>{H=l.defineComponent,q=l.inject,O=l.ref,i=l.computed,R=l.onMounted,G=l.resolveComponent,m=l.createElementBlock,s=l.openBlock,x=l.Fragment,v=l.createElementVNode,c=l.createBlock,S=l.createCommentVNode,h=l.mergeProps,r=l.unref,A=l.resolveDynamicComponent,C=l.normalizeClass,M=l.withModifiers,j=l.toDisplayString,J=l.renderList,Q=l.withCtx,X=l.createVNode,V=l.nextTick},l=>{y=l.D},l=>{Y=l._},l=>{Z=l._},l=>{D=l._},l=>{_=l._}],execute:function(){const l=["aria-checked","aria-expanded","aria-label","aria-level","aria-posinset","aria-selected","aria-setsize","tabindex"],ke=["data-p-highlight","data-p-selectable"],me=["data-node-has-children","data-node-key","data-node-selected"],ve={"aria-hidden":"true",class:"flex items-center justify-start gap-2 px-4 py-1.5 hover:bg-surface-50 text-xs no-underline overflow-hidden cursor-pointer select-none","data-pc-section":"action",tabindex:"-1"},Ge=ye("_",H({__name:"TreeNode",props:{node:{},index:{},disabled:{type:Boolean},listLabelsNoOption:{},pt:{},templates:{},disableKeys:{},disableNodeAll:{type:Boolean},exactDisableKeys:{},level:{},value:{},propagateSelection:{type:Boolean},expandedKeys:{},selectionKeys:{},treeNodeMenus:{},selectionMode:{},metaKeySelection:{type:Boolean},loading:{type:Boolean},loadingIcon:{},loadingMode:{},filterText:{},filterBy:{},filterMode:{},filterPlaceholder:{},filterLocale:{},highlightOnSelect:{type:Boolean},scrollHeight:{},ariaLabel:{},ariaLabelledby:{},ptOptions:{},unstyled:{type:Boolean},useOption:{type:Boolean},disableNodeWhen:{type:Function},exactDisableNodeWhen:{type:Function},nodeSelectedWhen:{type:Function}},emits:["nodeToggle","nodeClick","checkboxChange","toggleMenu"],setup(Ce,{emit:Ne}){const p=Ne,t=Ce,d=q("preset",{}).tree,W=O(),B=O(null);let L=!1,P=!1;const Ee=i(()=>{var e;return((e=t.node)==null?void 0:e.children)&&t.node.children.length>0}),ee=i(()=>{var e;return+t.node.key!=-1&&t.useOption&&!((e=t.listLabelsNoOption)!=null&&e.includes(t.node.name))}),N=i(()=>t.expandedKeys&&t.expandedKeys[t.node.key]===!0),F=i(()=>t.node.leaf===!1?!1:!(t.node.children&&t.node.children.length)),te=i(()=>w(t.node)||K(t.node)||t.node.selectable===!1?!1:t.selectionMode!=null),I=i(()=>{var e;return((e=t.nodeSelectedWhen)==null?void 0:e.call(t,t.node))||(t.selectionMode&&t.selectionKeys?t.selectionKeys[t.node.key]===!0:!1)}),z=i(()=>t.selectionMode==="checkbox"&&t.node.selectable!==!1),b=i(()=>{var e,n;return((e=t.nodeSelectedWhen)==null?void 0:e.call(t,t.node))||(t.selectionKeys?(n=t.selectionKeys[t.node.key])==null?void 0:n.checked:!1)}),we=i(()=>{var e;return t.selectionKeys?(e=t.selectionKeys[t.node.key])==null?void 0:e.partialChecked:!1}),Se=i(()=>t.selectionMode==="single"||t.selectionMode==="multiple"?I.value:void 0),Me=i(()=>z.value?b.value:void 0),Ke=()=>{p("nodeToggle",t.node),P=!0},Te=e=>e.label,xe=e=>{p("nodeToggle",e)},U=e=>{if(P||y.getAttribute(e.target,'[data-pc-section="toggler"]')||y.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')){P=!1;return}Oe()?Le(e.type==="dblclick"||t.node.key===-1):p("nodeClick",{originalEvent:e,nodeTouched:L,node:{...t.node,selectable:te.value}}),L=!1},Ae=e=>{p("nodeClick",e)},De=()=>{L=!0},Be=(e,n)=>{if(t.selectionMode!==null){const o=[...y.find(B.value.parentElement,'[role="treeitem"]')];e.currentTarget.tabIndex=n===!1?-1:0,o.every(a=>a.tabIndex===-1)&&(o[0].tabIndex=0)}},E=(e,n,o)=>{e.tabIndex=-1,n.tabIndex=0,He(o||n)},ne=e=>{const n=e.closest("ul").closest("li");if(n){const o=y.findSingle(n,"button");return o&&o.style.visibility!=="hidden"?n:ne(e.previousElementSibling)}return null},oe=()=>{if(!B.value)return;const e=y.find(B.value.closest('[data-pc-section="container"]'),'[role="treeitem"]'),n=[...e].some(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");if([...e].forEach(o=>{o.tabIndex=-1}),n){const o=[...e].filter(a=>a.getAttribute("aria-selected")==="true"||a.getAttribute("aria-checked")==="true");o[0].tabIndex=0;return}[...e][0].tabIndex=0},Le=(e=!1)=>{const n=t.selectionKeys?{...t.selectionKeys}:{},o=!b.value;le(t.node,o,n,e),p("checkboxChange",{node:t.node,check:o,selectionKeys:n})},le=(e,n,o,a=!1)=>{if(n?o[e.key]={checked:!0,partialChecked:!1}:delete o[e.key],(a||t.propagateSelection)&&e.children&&e.children.length)for(const u of e.children)le(u,n,o,a)},Ie=e=>{var k,f;const{check:n}=e,o={...e.selectionKeys};let a=0,u=!1;if(t.node.children){if(t.propagateSelection){for(const T of t.node.children)(k=o[T.key])!=null&&k.checked?a++:(f=o[T.key])!=null&&f.partialChecked&&(u=!0);n&&a===t.node.children.length?o[t.node.key]={checked:!0,partialChecked:!1}:(n||delete o[t.node.key],u||a>0&&a!==t.node.children.length?o[t.node.key]={checked:!1,partialChecked:!0}:delete o[t.node.key])}p("checkboxChange",{node:e.node,check:e.check,selectionKeys:o})}},Oe=()=>t.selectionMode==="checkbox",je=e=>{if(Ue(e))switch(e.code){case"Tab":ze();break;case"ArrowDown":ae(e);break;case"ArrowUp":Ve(e);break;case"ArrowRight":We(e);break;case"ArrowLeft":Pe(e);break;case"Enter":case"NumpadEnter":case"Space":Fe(e);break}},ae=e=>{const n=e.target.getAttribute("data-wv-section")==="tree-node-toggler"?e.target.closest('[role="treeitem"]'):e.target,o=n.children[1];if(o)E(n,o.children[0]);else if(n.nextElementSibling)E(n,n.nextElementSibling);else{const a=se(n);a&&E(n,a)}e.preventDefault()},Ve=e=>{const n=e.target;if(n.previousElementSibling)E(n,n.previousElementSibling,ie(n.previousElementSibling));else{const o=re(n);o&&E(n,o)}e.preventDefault()},We=e=>{F.value||N.value||(e.currentTarget.tabIndex=-1,p("nodeToggle",t.node),V(()=>{ae(e)}))},Pe=e=>{const n=y.findSingle(e.currentTarget,'[data-wv-section="tree-node-toggler"]');if(t.level===0&&!N.value)return!1;if(N.value&&!F.value)return n.click(),!1;const o=ne(e.currentTarget);o&&E(e.currentTarget,o)},Fe=e=>{Be(e,L),U(e),e.preventDefault()},ze=()=>{oe()},Ue=e=>e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]'))),$e=async(e,n)=>{var u,k;const o=e.target,a=o.tagName.toLowerCase()==="button"?o:o.parentElement;if(a!=null&&a.classList.contains("tree-menu-button-active")){$();const f={...e,currentTarget:e.target};(u=W.value)==null||u.toggle(f)}else{await V(),$(),a==null||a.classList.add("tree-menu-button-active","!bg-surface-300/20");const f={...e,currentTarget:e.target};(k=W.value)==null||k.toggle(f),p("toggleMenu",n)}},$=()=>{const e=document.querySelectorAll(".tree-menu-button-active");e==null||e.forEach(n=>{n.classList.remove("tree-menu-button-active","!bg-surface-300/20")})},se=e=>{const n=re(e);return n?n.nextElementSibling?n.nextElementSibling:se(n):null},ie=e=>{const n=e.children[1];if(n){const o=n.children[n.children.length-1];return ie(o)}return e},re=e=>{const n=e.parentElement.parentElement;return y.getAttribute(n,"role")==="treeitem"?n:null},He=e=>{e.focus()},w=e=>{var n,o;return((n=t.disableKeys)==null?void 0:n.includes(+e.key))||t.disabled||e.selectable==!1||e.disabled==!0||((o=t.disableNodeWhen)==null?void 0:o.call(t,e))},K=e=>{var n,o;return e.selectable==!1||((n=t.exactDisableKeys)==null?void 0:n.includes(+e.key))||t.disableNodeAll&&+e.key==-1||((o=t.exactDisableNodeWhen)==null?void 0:o.call(t,e))};return R(()=>{oe()}),(e,n)=>{var a,u,k,f,T,de,ce,ue,ge,pe,be;const o=G("TreeNode",!0);return s(),m(x,null,[v("li",h({ref_key:"currentNode",ref:B,"aria-checked":Se.value,"aria-expanded":N.value,"aria-label":Te(e.node),"aria-level":e.level,"aria-posinset":e.index+1,"aria-selected":Me.value,"aria-setsize":e.node.children?e.node.children.length:0,tabindex:e.index===0?0:-1,onKeydown:je},(a=t.pt??r(d))==null?void 0:a.node,{"data-wv-name":"treenode",role:"treeitem"}),[v("div",h((u=t.pt??r(d))==null?void 0:u.content({props:t,context:{selected:b.value||I.value,disabled:w(e.node),exactDisabled:K(e.node)}}),{"data-p-highlight":z.value?b.value:I.value,"data-p-selectable":te.value,style:e.node.style,onClick:U,onTouchend:De}),[v("button",h({onClick:Ke,"aria-hidden":"true",tabindex:"-1",type:"button"},(k=t.pt??r(d))==null?void 0:k.toggler({context:{leaf:F.value}})),[e.node.loading&&e.loadingMode==="icon"?(s(),c(D,{key:0,class:"animate-spin",icon:"spinner"})):(s(),m(x,{key:1},[e.templates.togglericon?(s(),c(A(e.templates.togglericon),{key:0,class:C([...(f=t.pt??r(d))==null?void 0:f.togglericon.class]),expanded:N.value,node:e.node},null,8,["class","expanded","node"])):(s(),c(D,{key:1,class:C([...(T=t.pt??r(d))==null?void 0:T.togglericon.class,{"rotate-90":N.value}]),"data-wv-section":"togglericon",icon:"arrow-right"},null,8,["class"]))],64))],16),z.value?(s(),c(Z,h({key:0,binary:!1},(de=t.pt??r(d))==null?void 0:de.nodeCheckbox.root,{disabled:w(e.node)||K(e.node),"model-value":b.value?b.value:we.value?!1:null,onClick:n[0]||(n[0]=M(()=>{},["prevent"])),onKeydown:n[1]||(n[1]=M(()=>{},["prevent","stop"])),"onUpdate:modelValue":U,"data-wv-section":"nodecheckbox","tri-state":""}),null,16,["disabled","model-value"])):S("",!0),e.templates.nodeicon?(s(),c(A(e.templates.nodeicon),{key:1,class:C([...(ce=t.pt??r(d))==null?void 0:ce.nodeicon().class]),node:e.node},null,8,["class","node"])):(s(),m("span",{key:2,class:C([...(ue=t.pt??r(d))==null?void 0:ue.nodeicon().class,e.node.icon])},null,2)),v("span",h((ge=t.pt??r(d))==null?void 0:ge.label({props:t,context:{selected:b.value||I.value,disabled:w(e.node),exactDisabled:K(e.node)}}),{onKeydown:n[3]||(n[3]=M(()=>{},["stop"]))}),[e.templates[e.node.type]||e.templates.default?(s(),c(A(e.templates[e.node.type]||e.templates.default),{key:0,checked:b.value,disabled:K(e.node)||w(e.node),node:e.node},null,8,["checked","disabled","node"])):(s(),m("span",{key:1,"data-node-has-children":!!((pe=e.node.children)!=null&&pe.length),"data-node-key":e.node.key,"data-node-selected":b.value,class:"grow"},j(e.node.name),9,me)),ee.value?(s(),c(Y,{key:2,class:C(["!w-4 !h-4 !min-w-4 p-0.5","!text-general-200","rounded-full"]),onClick:n[2]||(n[2]=M(g=>$e(g,e.node),["stop"])),"data-wv-section":"nodemenubutton",icon:"more",severity:"secondary",text:"",tooltip:"Action","tooltip-pos":"left"})):S("",!0)],16)],16,ke),Ee.value&&N.value?(s(),m("ul",h({key:0,role:"group"},(be=t.pt??r(d))==null?void 0:be.subgroup),[(s(!0),m(x,null,J(e.node.children,g=>{var fe,he;return s(),c(o,h({key:g.key,ref_for:!0},t,{class:[...(he=(fe=t.pt??r(d))==null?void 0:fe.node)==null?void 0:he.class],"disable-keys":e.disableKeys,disabled:w(g),"exact-disable-keys":e.exactDisableKeys,"expanded-keys":e.expandedKeys,level:e.level+1,"list-labels-no-option":e.listLabelsNoOption,"loading-mode":e.loadingMode,node:g,"propagate-selection":t.propagateSelection,pt:e.pt,"selection-keys":e.selectionKeys,"selection-mode":e.selectionMode,templates:e.templates,"tree-node-menus":e.treeNodeMenus,unstyled:e.unstyled,"use-option":e.useOption,onCheckboxChange:Ie,onNodeClick:Ae,onNodeToggle:xe,onToggleMenu:n[4]||(n[4]=qe=>p("toggleMenu",qe))}),null,16,["class","disable-keys","disabled","exact-disable-keys","expanded-keys","level","list-labels-no-option","loading-mode","node","propagate-selection","pt","selection-keys","selection-mode","templates","tree-node-menus","unstyled","use-option"])}),128))],16)):S("",!0)],16,l),ee.value?(s(),c(_,{key:0,ref_key:"treeNodeMenu",ref:W,model:e.treeNodeMenus,popup:!0,onHide:$,"data-wv-section":"tree-node-menus"},{item:Q(({item:g})=>[v("a",ve,[X(D,{icon:g.icon,severity:g.danger?"danger":void 0},null,8,["icon","severity"]),v("span",{class:C(["text-inherit",{"!text-danger-500":g.danger}]),"data-pc-section":"label"},j(g.label),3)])]),_:1},8,["model"])):S("",!0)],64)}}}))}}});
|