@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 +0,0 @@
|
|
|
1
|
-
System.register([],function(u,g){"use strict";return{execute:function(){var a=200,p=u("R",function(){});p.prototype.append=function(t){return t.length?(t=p.from(t),!this.length&&t||t.length<a&&this.leafAppend(t)||this.length<a&&t.leafPrepend(this)||this.appendInner(t)):this},p.prototype.prepend=function(t){return t.length?p.from(t).append(this):this},p.prototype.appendInner=function(t){return new c(this,t)},p.prototype.slice=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.length),t>=r?p.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,r))},p.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},p.prototype.forEach=function(t,r,e){r===void 0&&(r=0),e===void 0&&(e=this.length),r<=e?this.forEachInner(t,r,e,0):this.forEachInvertedInner(t,r,e,0)},p.prototype.map=function(t,r,e){r===void 0&&(r=0),e===void 0&&(e=this.length);var n=[];return this.forEach(function(i,s){return n.push(t(i,s))},r,e),n},p.from=function(t){return t instanceof p?t:t&&t.length?new o(t):p.empty};var o=function(h){function t(e){h.call(this),this.values=e}h&&(t.__proto__=h),t.prototype=Object.create(h&&h.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new t(this.values.slice(n,i))},t.prototype.getInner=function(n){return this.values[n]},t.prototype.forEachInner=function(n,i,s,f){for(var l=i;l<s;l++)if(n(this.values[l],f+l)===!1)return!1},t.prototype.forEachInvertedInner=function(n,i,s,f){for(var l=i-1;l>=s;l--)if(n(this.values[l],f+l)===!1)return!1},t.prototype.leafAppend=function(n){if(this.length+n.length<=a)return new t(this.values.concat(n.flatten()))},t.prototype.leafPrepend=function(n){if(this.length+n.length<=a)return new t(n.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(p);p.empty=new o([]);var c=function(h){function t(r,e){h.call(this),this.left=r,this.right=e,this.length=r.length+e.length,this.depth=Math.max(r.depth,e.depth)+1}return h&&(t.__proto__=h),t.prototype=Object.create(h&&h.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,n,i,s){var f=this.left.length;if(n<f&&this.left.forEachInner(e,n,Math.min(i,f),s)===!1||i>f&&this.right.forEachInner(e,Math.max(n-f,0),Math.min(this.length,i)-f,s+f)===!1)return!1},t.prototype.forEachInvertedInner=function(e,n,i,s){var f=this.left.length;if(n>f&&this.right.forEachInvertedInner(e,n-f,Math.max(i,f)-f,s+f)===!1||i<f&&this.left.forEachInvertedInner(e,Math.min(n,f),i,s)===!1)return!1},t.prototype.sliceInner=function(e,n){if(e==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(e,n):e>=i?this.right.slice(e-i,n-i):this.left.slice(e,i).append(this.right.slice(0,n-i))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(p)}}});
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var l = 200, p = function() {
|
|
2
|
-
};
|
|
3
|
-
p.prototype.append = function(t) {
|
|
4
|
-
return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
|
|
5
|
-
};
|
|
6
|
-
p.prototype.prepend = function(t) {
|
|
7
|
-
return t.length ? p.from(t).append(this) : this;
|
|
8
|
-
};
|
|
9
|
-
p.prototype.appendInner = function(t) {
|
|
10
|
-
return new u(this, t);
|
|
11
|
-
};
|
|
12
|
-
p.prototype.slice = function(t, r) {
|
|
13
|
-
return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
|
|
14
|
-
};
|
|
15
|
-
p.prototype.get = function(t) {
|
|
16
|
-
if (!(t < 0 || t >= this.length))
|
|
17
|
-
return this.getInner(t);
|
|
18
|
-
};
|
|
19
|
-
p.prototype.forEach = function(t, r, e) {
|
|
20
|
-
r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
|
|
21
|
-
};
|
|
22
|
-
p.prototype.map = function(t, r, e) {
|
|
23
|
-
r === void 0 && (r = 0), e === void 0 && (e = this.length);
|
|
24
|
-
var n = [];
|
|
25
|
-
return this.forEach(function(i, s) {
|
|
26
|
-
return n.push(t(i, s));
|
|
27
|
-
}, r, e), n;
|
|
28
|
-
};
|
|
29
|
-
p.from = function(t) {
|
|
30
|
-
return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
|
|
31
|
-
};
|
|
32
|
-
var o = /* @__PURE__ */ function(h) {
|
|
33
|
-
function t(e) {
|
|
34
|
-
h.call(this), this.values = e;
|
|
35
|
-
}
|
|
36
|
-
h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
|
|
37
|
-
var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
|
|
38
|
-
return t.prototype.flatten = function() {
|
|
39
|
-
return this.values;
|
|
40
|
-
}, t.prototype.sliceInner = function(n, i) {
|
|
41
|
-
return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
|
|
42
|
-
}, t.prototype.getInner = function(n) {
|
|
43
|
-
return this.values[n];
|
|
44
|
-
}, t.prototype.forEachInner = function(n, i, s, f) {
|
|
45
|
-
for (var a = i; a < s; a++)
|
|
46
|
-
if (n(this.values[a], f + a) === !1)
|
|
47
|
-
return !1;
|
|
48
|
-
}, t.prototype.forEachInvertedInner = function(n, i, s, f) {
|
|
49
|
-
for (var a = i - 1; a >= s; a--)
|
|
50
|
-
if (n(this.values[a], f + a) === !1)
|
|
51
|
-
return !1;
|
|
52
|
-
}, t.prototype.leafAppend = function(n) {
|
|
53
|
-
if (this.length + n.length <= l)
|
|
54
|
-
return new t(this.values.concat(n.flatten()));
|
|
55
|
-
}, t.prototype.leafPrepend = function(n) {
|
|
56
|
-
if (this.length + n.length <= l)
|
|
57
|
-
return new t(n.flatten().concat(this.values));
|
|
58
|
-
}, r.length.get = function() {
|
|
59
|
-
return this.values.length;
|
|
60
|
-
}, r.depth.get = function() {
|
|
61
|
-
return 0;
|
|
62
|
-
}, Object.defineProperties(t.prototype, r), t;
|
|
63
|
-
}(p);
|
|
64
|
-
p.empty = new o([]);
|
|
65
|
-
var u = /* @__PURE__ */ function(h) {
|
|
66
|
-
function t(r, e) {
|
|
67
|
-
h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
|
|
68
|
-
}
|
|
69
|
-
return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
|
|
70
|
-
return this.left.flatten().concat(this.right.flatten());
|
|
71
|
-
}, t.prototype.getInner = function(e) {
|
|
72
|
-
return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
|
|
73
|
-
}, t.prototype.forEachInner = function(e, n, i, s) {
|
|
74
|
-
var f = this.left.length;
|
|
75
|
-
if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
|
|
76
|
-
return !1;
|
|
77
|
-
}, t.prototype.forEachInvertedInner = function(e, n, i, s) {
|
|
78
|
-
var f = this.left.length;
|
|
79
|
-
if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
|
|
80
|
-
return !1;
|
|
81
|
-
}, t.prototype.sliceInner = function(e, n) {
|
|
82
|
-
if (e == 0 && n == this.length)
|
|
83
|
-
return this;
|
|
84
|
-
var i = this.left.length;
|
|
85
|
-
return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
|
|
86
|
-
}, t.prototype.leafAppend = function(e) {
|
|
87
|
-
var n = this.right.leafAppend(e);
|
|
88
|
-
if (n)
|
|
89
|
-
return new t(this.left, n);
|
|
90
|
-
}, t.prototype.leafPrepend = function(e) {
|
|
91
|
-
var n = this.left.leafPrepend(e);
|
|
92
|
-
if (n)
|
|
93
|
-
return new t(n, this.right);
|
|
94
|
-
}, t.prototype.appendInner = function(e) {
|
|
95
|
-
return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
|
|
96
|
-
}, t;
|
|
97
|
-
}(p);
|
|
98
|
-
export {
|
|
99
|
-
p as R
|
|
100
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./lodash-DbvKLWSv.system.js"],function(P,j){"use strict";var N,W;return{setters:[v=>{N=v.t,W=v.d}],execute:function(){var v=function(){return v=Object.assign||function(t){for(var i,e=1,r=arguments.length;e<r;e++){i=arguments[e];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},v.apply(this,arguments)};function C(s){return!s||!s.ownerDocument||!s.ownerDocument.defaultView?window:s.ownerDocument.defaultView}function L(s){return!s||!s.ownerDocument?document:s.ownerDocument}var _=function(s){var t={},i=Array.prototype.reduce.call(s,function(e,r){var l=r.name.match(/data-simplebar-(.+)/);if(l){var o=l[1].replace(/\W+(.)/g,function(n,h){return h.toUpperCase()});switch(r.value){case"true":e[o]=!0;break;case"false":e[o]=!1;break;case void 0:e[o]=!0;break;default:e[o]=r.value}}return e},t);return i};function R(s,t){var i;s&&(i=s.classList).add.apply(i,t.split(" "))}function D(s,t){s&&t.split(" ").forEach(function(i){s.classList.remove(i)})}function T(s){return".".concat(s.split(" ").join("."))}var z=!!(typeof window<"u"&&window.document&&window.document.createElement),X=Object.freeze({__proto__:null,addClasses:R,canUseDOM:z,classNamesToQuery:T,getElementDocument:L,getElementWindow:C,getOptions:_,removeClasses:D}),y=null,V=null;z&&window.addEventListener("resize",function(){V!==window.devicePixelRatio&&(V=window.devicePixelRatio,y=null)});function H(){if(y===null){if(typeof document>"u")return y=0,y;var s=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),s.appendChild(t);var i=t.getBoundingClientRect().right;s.removeChild(t),y=i}return y}var p=C,M=L,Y=_,g=R,m=D,c=T,$=P("S",function(){function s(t,i){i===void 0&&(i={});var e=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=p(e.el);e.scrollXTicking||(r.requestAnimationFrame(e.scrollX),e.scrollXTicking=!0),e.scrollYTicking||(r.requestAnimationFrame(e.scrollY),e.scrollYTicking=!0),e.isScrolling||(e.isScrolling=!0,g(e.el,e.classNames.scrolling)),e.showScrollbar("x"),e.showScrollbar("y"),e.onStopScrolling()},this.scrollX=function(){e.axis.x.isOverflowing&&e.positionScrollbar("x"),e.scrollXTicking=!1},this.scrollY=function(){e.axis.y.isOverflowing&&e.positionScrollbar("y"),e.scrollYTicking=!1},this._onStopScrolling=function(){m(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(g(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){m(e.el,e.classNames.mouseEntered),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isMouseEntering=!1},this._onMouseMove=function(r){e.mouseX=r.clientX,e.mouseY=r.clientY,(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseMoveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseMoveForAxis("y")},this.onMouseLeave=function(){e.onMouseMove.cancel(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseLeaveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseLeaveForAxis("y"),e.mouseX=-1,e.mouseY=-1},this._onWindowResize=function(){e.scrollbarWidth=e.getScrollbarWidth(),e.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!e.axis.x.track.el||!e.axis.y.track.el||!e.axis.x.scrollbar.el||!e.axis.y.scrollbar.el)){var l,o;e.axis.x.track.rect=e.axis.x.track.el.getBoundingClientRect(),e.axis.y.track.rect=e.axis.y.track.el.getBoundingClientRect(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&(l=e.isWithinBounds(e.axis.x.track.rect)),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&(o=e.isWithinBounds(e.axis.y.track.rect)),(l||o)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(l&&(e.axis.x.scrollbar.rect=e.axis.x.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.x.scrollbar.rect)?e.onDragStart(r,"x"):e.onTrackClick(r,"x")),o&&(e.axis.y.scrollbar.rect=e.axis.y.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.y.scrollbar.rect)?e.onDragStart(r,"y"):e.onTrackClick(r,"y"))))}},this.drag=function(r){var l,o,n,h,a,d,u,b,f,w,x;if(!(!e.draggedAxis||!e.contentWrapperEl)){var E,S=e.axis[e.draggedAxis].track,O=(o=(l=S.rect)===null||l===void 0?void 0:l[e.axis[e.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,B=e.axis[e.draggedAxis].scrollbar,q=(h=(n=e.contentWrapperEl)===null||n===void 0?void 0:n[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,F=parseInt((d=(a=e.elStyles)===null||a===void 0?void 0:a[e.axis[e.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);r.preventDefault(),r.stopPropagation(),e.draggedAxis==="y"?E=r.pageY:E=r.pageX;var k=E-((b=(u=S.rect)===null||u===void 0?void 0:u[e.axis[e.draggedAxis].offsetAttr])!==null&&b!==void 0?b:0)-e.axis[e.draggedAxis].dragOffset;k=e.draggedAxis==="x"&&e.isRtl?((w=(f=S.rect)===null||f===void 0?void 0:f[e.axis[e.draggedAxis].sizeAttr])!==null&&w!==void 0?w:0)-B.size-k:k;var I=k/(O-B.size),A=I*(q-F);e.draggedAxis==="x"&&e.isRtl&&(A=!((x=s.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-A:A),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(r){e.isDragging=!1;var l=M(e.el),o=p(e.el);r.preventDefault(),r.stopPropagation(),m(e.el,e.classNames.dragging),e.onStopScrolling(),l.removeEventListener("mousemove",e.drag,!0),l.removeEventListener("mouseup",e.onEndDrag,!0),e.removePreventClickId=o.setTimeout(function(){l.removeEventListener("click",e.preventClick,!0),l.removeEventListener("dblclick",e.preventClick,!0),e.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=v(v({},s.defaultOptions),i),this.classNames=v(v({},s.defaultOptions.classNames),i.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=N(this._onMouseMove,64),this.onWindowResize=W(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=W(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=W(this._onMouseEntered,this.stopScrollDelay),this.init()}return s.getRtlHelpers=function(){if(s.rtlHelpers)return s.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var i=t.firstElementChild,e=i==null?void 0:i.firstElementChild;if(!e)return null;document.body.appendChild(i),i.scrollLeft=0;var r=s.getOffset(i),l=s.getOffset(e);i.scrollLeft=-999;var o=s.getOffset(e);return document.body.removeChild(i),s.rtlHelpers={isScrollOriginAtZero:r.left!==l.left,isScrollingToNegative:l.left!==o.left},s.rtlHelpers},s.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:H()}catch{return H()}},s.getOffset=function(t){var i=t.getBoundingClientRect(),e=M(t),r=p(t);return{top:i.top+(r.pageYOffset||e.documentElement.scrollTop),left:i.left+(r.pageXOffset||e.documentElement.scrollLeft)}},s.prototype.init=function(){z&&(this.initDOM(),this.rtlHelpers=s.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},s.prototype.initDOM=function(){var t,i;this.wrapperEl=this.el.querySelector(c(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(c(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(c(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(c(this.classNames.offset)),this.maskEl=this.el.querySelector(c(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,c(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(c(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(c(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(c(this.classNames.track)).concat(c(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(c(this.classNames.track)).concat(c(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(c(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((i=this.axis.y.track.el)===null||i===void 0?void 0:i.querySelector(c(this.classNames.scrollbar)))||null,this.options.autoHide||(g(this.axis.x.scrollbar.el,this.classNames.visible),g(this.axis.y.scrollbar.el,this.classNames.visible))},s.prototype.initListeners=function(){var t=this,i,e=p(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(i=this.contentWrapperEl)===null||i===void 0||i.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,l=e.ResizeObserver||ResizeObserver;this.resizeObserver=new l(function(){r&&e.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new e.MutationObserver(function(){e.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},s.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=p(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var i=this.contentEl.offsetWidth,e=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||i>0,l=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,n=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?"".concat(i||a,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i!==0&&a>i,this.axis.y.isOverflowing=h>d,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=n==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,b=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>l-b,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>d-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},s.prototype.getScrollbarSize=function(t){var i,e;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],l=(e=(i=this.axis[t].track.el)===null||i===void 0?void 0:i[this.axis[t].offsetSizeAttr])!==null&&e!==void 0?e:0,o=l/r,n;return n=Math.max(~~(o*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},s.prototype.positionScrollbar=function(t){var i,e,r;t===void 0&&(t="y");var l=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!l.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],n=((i=this.axis[t].track.el)===null||i===void 0?void 0:i[this.axis[t].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];a=t==="x"&&this.isRtl&&(!((e=s.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-a:a,t==="x"&&this.isRtl&&(a=!((r=s.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?a:-a);var d=a/(o-h),u=~~((n-l.size)*d);u=t==="x"&&this.isRtl?-u+(n-l.size):u,l.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},s.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var i=this.axis[t].track.el,e=this.axis[t].scrollbar.el;!i||!e||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(i.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(i.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?e.style.display="block":e.style.display="none")},s.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(g(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},s.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(m(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},s.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},s.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var i=this.axis[t];!i.track.el||!i.scrollbar.el||(i.track.rect=i.track.el.getBoundingClientRect(),i.scrollbar.rect=i.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(i.track.rect)?(this.showScrollbar(t),g(i.track.el,this.classNames.hover),this.isWithinBounds(i.scrollbar.rect)?g(i.scrollbar.el,this.classNames.hover):m(i.scrollbar.el,this.classNames.hover)):(m(i.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},s.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),m(this.axis[t].track.el,this.classNames.hover),m(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},s.prototype.onDragStart=function(t,i){var e;i===void 0&&(i="y"),this.isDragging=!0;var r=M(this.el),l=p(this.el),o=this.axis[i].scrollbar,n=i==="y"?t.pageY:t.pageX;this.axis[i].dragOffset=n-(((e=o.rect)===null||e===void 0?void 0:e[this.axis[i].offsetAttr])||0),this.draggedAxis=i,g(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(l.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},s.prototype.onTrackClick=function(t,i){var e=this,r,l,o,n;i===void 0&&(i="y");var h=this.axis[i];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var a=p(this.el);this.axis[i].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var d=this.axis[i].scrollbar,u=(l=(r=d.rect)===null||r===void 0?void 0:r[this.axis[i].offsetAttr])!==null&&l!==void 0?l:0,b=parseInt((n=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[i].sizeAttr])!==null&&n!==void 0?n:"0px",10),f=this.contentWrapperEl[this.axis[i].scrollOffsetAttr],w=i==="y"?this.mouseY-u:this.mouseX-u,x=w<0?-1:1,E=x===-1?f-b:f+b,S=40,O=function(){e.contentWrapperEl&&(x===-1?f>E&&(f-=S,e.contentWrapperEl[e.axis[i].scrollOffsetAttr]=f,a.requestAnimationFrame(O)):f<E&&(f+=S,e.contentWrapperEl[e.axis[i].scrollOffsetAttr]=f,a.requestAnimationFrame(O)))};O()}},s.prototype.getContentElement=function(){return this.contentEl},s.prototype.getScrollElement=function(){return this.contentWrapperEl},s.prototype.removeListeners=function(){var t=p(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},s.prototype.unMount=function(){this.removeListeners()},s.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},s.prototype.findChild=function(t,i){var e=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return e.call(r,i)})[0]},s.rtlHelpers=null,s.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},s.getOptions=Y,s.helpers=X,s}())}}});
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
import { t as Y, d as A } from "./lodash-DbIT-6qv.es.js";
|
|
2
|
-
var S = function() {
|
|
3
|
-
return S = Object.assign || function(t) {
|
|
4
|
-
for (var i, e = 1, r = arguments.length; e < r; e++) {
|
|
5
|
-
i = arguments[e];
|
|
6
|
-
for (var l in i) Object.prototype.hasOwnProperty.call(i, l) && (t[l] = i[l]);
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
}, S.apply(this, arguments);
|
|
10
|
-
};
|
|
11
|
-
function _(s) {
|
|
12
|
-
return !s || !s.ownerDocument || !s.ownerDocument.defaultView ? window : s.ownerDocument.defaultView;
|
|
13
|
-
}
|
|
14
|
-
function R(s) {
|
|
15
|
-
return !s || !s.ownerDocument ? document : s.ownerDocument;
|
|
16
|
-
}
|
|
17
|
-
var D = function(s) {
|
|
18
|
-
var t = {}, i = Array.prototype.reduce.call(s, function(e, r) {
|
|
19
|
-
var l = r.name.match(/data-simplebar-(.+)/);
|
|
20
|
-
if (l) {
|
|
21
|
-
var o = l[1].replace(/\W+(.)/g, function(n, c) {
|
|
22
|
-
return c.toUpperCase();
|
|
23
|
-
});
|
|
24
|
-
switch (r.value) {
|
|
25
|
-
case "true":
|
|
26
|
-
e[o] = !0;
|
|
27
|
-
break;
|
|
28
|
-
case "false":
|
|
29
|
-
e[o] = !1;
|
|
30
|
-
break;
|
|
31
|
-
case void 0:
|
|
32
|
-
e[o] = !0;
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
e[o] = r.value;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return e;
|
|
39
|
-
}, t);
|
|
40
|
-
return i;
|
|
41
|
-
};
|
|
42
|
-
function T(s, t) {
|
|
43
|
-
var i;
|
|
44
|
-
s && (i = s.classList).add.apply(i, t.split(" "));
|
|
45
|
-
}
|
|
46
|
-
function V(s, t) {
|
|
47
|
-
s && t.split(" ").forEach(function(i) {
|
|
48
|
-
s.classList.remove(i);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function H(s) {
|
|
52
|
-
return ".".concat(s.split(" ").join("."));
|
|
53
|
-
}
|
|
54
|
-
var M = !!(typeof window < "u" && window.document && window.document.createElement), q = /* @__PURE__ */ Object.freeze({
|
|
55
|
-
__proto__: null,
|
|
56
|
-
addClasses: T,
|
|
57
|
-
canUseDOM: M,
|
|
58
|
-
classNamesToQuery: H,
|
|
59
|
-
getElementDocument: R,
|
|
60
|
-
getElementWindow: _,
|
|
61
|
-
getOptions: D,
|
|
62
|
-
removeClasses: V
|
|
63
|
-
}), E = null, C = null;
|
|
64
|
-
M && window.addEventListener("resize", function() {
|
|
65
|
-
C !== window.devicePixelRatio && (C = window.devicePixelRatio, E = null);
|
|
66
|
-
});
|
|
67
|
-
function L() {
|
|
68
|
-
if (E === null) {
|
|
69
|
-
if (typeof document > "u")
|
|
70
|
-
return E = 0, E;
|
|
71
|
-
var s = document.body, t = document.createElement("div");
|
|
72
|
-
t.classList.add("simplebar-hide-scrollbar"), s.appendChild(t);
|
|
73
|
-
var i = t.getBoundingClientRect().right;
|
|
74
|
-
s.removeChild(t), E = i;
|
|
75
|
-
}
|
|
76
|
-
return E;
|
|
77
|
-
}
|
|
78
|
-
var p = _, z = R, F = D, g = T, m = V, u = H, j = (
|
|
79
|
-
/** @class */
|
|
80
|
-
function() {
|
|
81
|
-
function s(t, i) {
|
|
82
|
-
i === void 0 && (i = {});
|
|
83
|
-
var e = this;
|
|
84
|
-
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {
|
|
85
|
-
}, this.onWindowResize = function() {
|
|
86
|
-
}, this.onStopScrolling = function() {
|
|
87
|
-
}, this.onMouseEntered = function() {
|
|
88
|
-
}, this.onScroll = function() {
|
|
89
|
-
var r = p(e.el);
|
|
90
|
-
e.scrollXTicking || (r.requestAnimationFrame(e.scrollX), e.scrollXTicking = !0), e.scrollYTicking || (r.requestAnimationFrame(e.scrollY), e.scrollYTicking = !0), e.isScrolling || (e.isScrolling = !0, g(e.el, e.classNames.scrolling)), e.showScrollbar("x"), e.showScrollbar("y"), e.onStopScrolling();
|
|
91
|
-
}, this.scrollX = function() {
|
|
92
|
-
e.axis.x.isOverflowing && e.positionScrollbar("x"), e.scrollXTicking = !1;
|
|
93
|
-
}, this.scrollY = function() {
|
|
94
|
-
e.axis.y.isOverflowing && e.positionScrollbar("y"), e.scrollYTicking = !1;
|
|
95
|
-
}, this._onStopScrolling = function() {
|
|
96
|
-
m(e.el, e.classNames.scrolling), e.options.autoHide && (e.hideScrollbar("x"), e.hideScrollbar("y")), e.isScrolling = !1;
|
|
97
|
-
}, this.onMouseEnter = function() {
|
|
98
|
-
e.isMouseEntering || (g(e.el, e.classNames.mouseEntered), e.showScrollbar("x"), e.showScrollbar("y"), e.isMouseEntering = !0), e.onMouseEntered();
|
|
99
|
-
}, this._onMouseEntered = function() {
|
|
100
|
-
m(e.el, e.classNames.mouseEntered), e.options.autoHide && (e.hideScrollbar("x"), e.hideScrollbar("y")), e.isMouseEntering = !1;
|
|
101
|
-
}, this._onMouseMove = function(r) {
|
|
102
|
-
e.mouseX = r.clientX, e.mouseY = r.clientY, (e.axis.x.isOverflowing || e.axis.x.forceVisible) && e.onMouseMoveForAxis("x"), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && e.onMouseMoveForAxis("y");
|
|
103
|
-
}, this.onMouseLeave = function() {
|
|
104
|
-
e.onMouseMove.cancel(), (e.axis.x.isOverflowing || e.axis.x.forceVisible) && e.onMouseLeaveForAxis("x"), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && e.onMouseLeaveForAxis("y"), e.mouseX = -1, e.mouseY = -1;
|
|
105
|
-
}, this._onWindowResize = function() {
|
|
106
|
-
e.scrollbarWidth = e.getScrollbarWidth(), e.hideNativeScrollbar();
|
|
107
|
-
}, this.onPointerEvent = function(r) {
|
|
108
|
-
if (!(!e.axis.x.track.el || !e.axis.y.track.el || !e.axis.x.scrollbar.el || !e.axis.y.scrollbar.el)) {
|
|
109
|
-
var l, o;
|
|
110
|
-
e.axis.x.track.rect = e.axis.x.track.el.getBoundingClientRect(), e.axis.y.track.rect = e.axis.y.track.el.getBoundingClientRect(), (e.axis.x.isOverflowing || e.axis.x.forceVisible) && (l = e.isWithinBounds(e.axis.x.track.rect)), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && (o = e.isWithinBounds(e.axis.y.track.rect)), (l || o) && (r.stopPropagation(), r.type === "pointerdown" && r.pointerType !== "touch" && (l && (e.axis.x.scrollbar.rect = e.axis.x.scrollbar.el.getBoundingClientRect(), e.isWithinBounds(e.axis.x.scrollbar.rect) ? e.onDragStart(r, "x") : e.onTrackClick(r, "x")), o && (e.axis.y.scrollbar.rect = e.axis.y.scrollbar.el.getBoundingClientRect(), e.isWithinBounds(e.axis.y.scrollbar.rect) ? e.onDragStart(r, "y") : e.onTrackClick(r, "y"))));
|
|
111
|
-
}
|
|
112
|
-
}, this.drag = function(r) {
|
|
113
|
-
var l, o, n, c, a, d, h, v, f, w, b;
|
|
114
|
-
if (!(!e.draggedAxis || !e.contentWrapperEl)) {
|
|
115
|
-
var y, x = e.axis[e.draggedAxis].track, O = (o = (l = x.rect) === null || l === void 0 ? void 0 : l[e.axis[e.draggedAxis].sizeAttr]) !== null && o !== void 0 ? o : 0, N = e.axis[e.draggedAxis].scrollbar, B = (c = (n = e.contentWrapperEl) === null || n === void 0 ? void 0 : n[e.axis[e.draggedAxis].scrollSizeAttr]) !== null && c !== void 0 ? c : 0, P = parseInt((d = (a = e.elStyles) === null || a === void 0 ? void 0 : a[e.axis[e.draggedAxis].sizeAttr]) !== null && d !== void 0 ? d : "0px", 10);
|
|
116
|
-
r.preventDefault(), r.stopPropagation(), e.draggedAxis === "y" ? y = r.pageY : y = r.pageX;
|
|
117
|
-
var W = y - ((v = (h = x.rect) === null || h === void 0 ? void 0 : h[e.axis[e.draggedAxis].offsetAttr]) !== null && v !== void 0 ? v : 0) - e.axis[e.draggedAxis].dragOffset;
|
|
118
|
-
W = e.draggedAxis === "x" && e.isRtl ? ((w = (f = x.rect) === null || f === void 0 ? void 0 : f[e.axis[e.draggedAxis].sizeAttr]) !== null && w !== void 0 ? w : 0) - N.size - W : W;
|
|
119
|
-
var X = W / (O - N.size), k = X * (B - P);
|
|
120
|
-
e.draggedAxis === "x" && e.isRtl && (k = !((b = s.getRtlHelpers()) === null || b === void 0) && b.isScrollingToNegative ? -k : k), e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr] = k;
|
|
121
|
-
}
|
|
122
|
-
}, this.onEndDrag = function(r) {
|
|
123
|
-
e.isDragging = !1;
|
|
124
|
-
var l = z(e.el), o = p(e.el);
|
|
125
|
-
r.preventDefault(), r.stopPropagation(), m(e.el, e.classNames.dragging), e.onStopScrolling(), l.removeEventListener("mousemove", e.drag, !0), l.removeEventListener("mouseup", e.onEndDrag, !0), e.removePreventClickId = o.setTimeout(function() {
|
|
126
|
-
l.removeEventListener("click", e.preventClick, !0), l.removeEventListener("dblclick", e.preventClick, !0), e.removePreventClickId = null;
|
|
127
|
-
});
|
|
128
|
-
}, this.preventClick = function(r) {
|
|
129
|
-
r.preventDefault(), r.stopPropagation();
|
|
130
|
-
}, this.el = t, this.options = S(S({}, s.defaultOptions), i), this.classNames = S(S({}, s.defaultOptions.classNames), i.classNames), this.axis = {
|
|
131
|
-
x: {
|
|
132
|
-
scrollOffsetAttr: "scrollLeft",
|
|
133
|
-
sizeAttr: "width",
|
|
134
|
-
scrollSizeAttr: "scrollWidth",
|
|
135
|
-
offsetSizeAttr: "offsetWidth",
|
|
136
|
-
offsetAttr: "left",
|
|
137
|
-
overflowAttr: "overflowX",
|
|
138
|
-
dragOffset: 0,
|
|
139
|
-
isOverflowing: !0,
|
|
140
|
-
forceVisible: !1,
|
|
141
|
-
track: { size: null, el: null, rect: null, isVisible: !1 },
|
|
142
|
-
scrollbar: { size: null, el: null, rect: null, isVisible: !1 }
|
|
143
|
-
},
|
|
144
|
-
y: {
|
|
145
|
-
scrollOffsetAttr: "scrollTop",
|
|
146
|
-
sizeAttr: "height",
|
|
147
|
-
scrollSizeAttr: "scrollHeight",
|
|
148
|
-
offsetSizeAttr: "offsetHeight",
|
|
149
|
-
offsetAttr: "top",
|
|
150
|
-
overflowAttr: "overflowY",
|
|
151
|
-
dragOffset: 0,
|
|
152
|
-
isOverflowing: !0,
|
|
153
|
-
forceVisible: !1,
|
|
154
|
-
track: { size: null, el: null, rect: null, isVisible: !1 },
|
|
155
|
-
scrollbar: { size: null, el: null, rect: null, isVisible: !1 }
|
|
156
|
-
}
|
|
157
|
-
}, typeof this.el != "object" || !this.el.nodeName)
|
|
158
|
-
throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
|
|
159
|
-
this.onMouseMove = Y(this._onMouseMove, 64), this.onWindowResize = A(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = A(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = A(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
160
|
-
}
|
|
161
|
-
return s.getRtlHelpers = function() {
|
|
162
|
-
if (s.rtlHelpers)
|
|
163
|
-
return s.rtlHelpers;
|
|
164
|
-
var t = document.createElement("div");
|
|
165
|
-
t.innerHTML = '<div class="simplebar-dummy-scrollbar-size"><div></div></div>';
|
|
166
|
-
var i = t.firstElementChild, e = i == null ? void 0 : i.firstElementChild;
|
|
167
|
-
if (!e)
|
|
168
|
-
return null;
|
|
169
|
-
document.body.appendChild(i), i.scrollLeft = 0;
|
|
170
|
-
var r = s.getOffset(i), l = s.getOffset(e);
|
|
171
|
-
i.scrollLeft = -999;
|
|
172
|
-
var o = s.getOffset(e);
|
|
173
|
-
return document.body.removeChild(i), s.rtlHelpers = {
|
|
174
|
-
// determines if the scrolling is responding with negative values
|
|
175
|
-
isScrollOriginAtZero: r.left !== l.left,
|
|
176
|
-
// determines if the origin scrollbar position is inverted or not (positioned on left or right)
|
|
177
|
-
isScrollingToNegative: l.left !== o.left
|
|
178
|
-
}, s.rtlHelpers;
|
|
179
|
-
}, s.prototype.getScrollbarWidth = function() {
|
|
180
|
-
try {
|
|
181
|
-
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : L();
|
|
182
|
-
} catch {
|
|
183
|
-
return L();
|
|
184
|
-
}
|
|
185
|
-
}, s.getOffset = function(t) {
|
|
186
|
-
var i = t.getBoundingClientRect(), e = z(t), r = p(t);
|
|
187
|
-
return {
|
|
188
|
-
top: i.top + (r.pageYOffset || e.documentElement.scrollTop),
|
|
189
|
-
left: i.left + (r.pageXOffset || e.documentElement.scrollLeft)
|
|
190
|
-
};
|
|
191
|
-
}, s.prototype.init = function() {
|
|
192
|
-
M && (this.initDOM(), this.rtlHelpers = s.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
193
|
-
}, s.prototype.initDOM = function() {
|
|
194
|
-
var t, i;
|
|
195
|
-
this.wrapperEl = this.el.querySelector(u(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(u(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(u(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(u(this.classNames.offset)), this.maskEl = this.el.querySelector(u(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, u(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(u(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(u(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(u(this.classNames.track)).concat(u(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(u(this.classNames.track)).concat(u(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(u(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((i = this.axis.y.track.el) === null || i === void 0 ? void 0 : i.querySelector(u(this.classNames.scrollbar))) || null, this.options.autoHide || (g(this.axis.x.scrollbar.el, this.classNames.visible), g(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
196
|
-
}, s.prototype.initListeners = function() {
|
|
197
|
-
var t = this, i, e = p(this.el);
|
|
198
|
-
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (i = this.contentWrapperEl) === null || i === void 0 || i.addEventListener("scroll", this.onScroll), e.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
|
|
199
|
-
if (window.ResizeObserver) {
|
|
200
|
-
var r = !1, l = e.ResizeObserver || ResizeObserver;
|
|
201
|
-
this.resizeObserver = new l(function() {
|
|
202
|
-
r && e.requestAnimationFrame(function() {
|
|
203
|
-
t.recalculate();
|
|
204
|
-
});
|
|
205
|
-
}), this.resizeObserver.observe(this.el), this.resizeObserver.observe(this.contentEl), e.requestAnimationFrame(function() {
|
|
206
|
-
r = !0;
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
this.mutationObserver = new e.MutationObserver(function() {
|
|
210
|
-
e.requestAnimationFrame(function() {
|
|
211
|
-
t.recalculate();
|
|
212
|
-
});
|
|
213
|
-
}), this.mutationObserver.observe(this.contentEl, {
|
|
214
|
-
childList: !0,
|
|
215
|
-
subtree: !0,
|
|
216
|
-
characterData: !0
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}, s.prototype.recalculate = function() {
|
|
220
|
-
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
221
|
-
var t = p(this.el);
|
|
222
|
-
this.elStyles = t.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
223
|
-
var i = this.contentEl.offsetWidth, e = this.heightAutoObserverEl.offsetHeight <= 1, r = this.heightAutoObserverEl.offsetWidth <= 1 || i > 0, l = this.contentWrapperEl.offsetWidth, o = this.elStyles.overflowX, n = this.elStyles.overflowY;
|
|
224
|
-
this.contentEl.style.padding = "".concat(this.elStyles.paddingTop, " ").concat(this.elStyles.paddingRight, " ").concat(this.elStyles.paddingBottom, " ").concat(this.elStyles.paddingLeft), this.wrapperEl.style.margin = "-".concat(this.elStyles.paddingTop, " -").concat(this.elStyles.paddingRight, " -").concat(this.elStyles.paddingBottom, " -").concat(this.elStyles.paddingLeft);
|
|
225
|
-
var c = this.contentEl.scrollHeight, a = this.contentEl.scrollWidth;
|
|
226
|
-
this.contentWrapperEl.style.height = e ? "auto" : "100%", this.placeholderEl.style.width = r ? "".concat(i || a, "px") : "auto", this.placeholderEl.style.height = "".concat(c, "px");
|
|
227
|
-
var d = this.contentWrapperEl.offsetHeight;
|
|
228
|
-
this.axis.x.isOverflowing = i !== 0 && a > i, this.axis.y.isOverflowing = c > d, this.axis.x.isOverflowing = o === "hidden" ? !1 : this.axis.x.isOverflowing, this.axis.y.isOverflowing = n === "hidden" ? !1 : this.axis.y.isOverflowing, this.axis.x.forceVisible = this.options.forceVisible === "x" || this.options.forceVisible === !0, this.axis.y.forceVisible = this.options.forceVisible === "y" || this.options.forceVisible === !0, this.hideNativeScrollbar();
|
|
229
|
-
var h = this.axis.x.isOverflowing ? this.scrollbarWidth : 0, v = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
|
|
230
|
-
this.axis.x.isOverflowing = this.axis.x.isOverflowing && a > l - v, this.axis.y.isOverflowing = this.axis.y.isOverflowing && c > d - h, this.axis.x.scrollbar.size = this.getScrollbarSize("x"), this.axis.y.scrollbar.size = this.getScrollbarSize("y"), this.axis.x.scrollbar.el && (this.axis.x.scrollbar.el.style.width = "".concat(this.axis.x.scrollbar.size, "px")), this.axis.y.scrollbar.el && (this.axis.y.scrollbar.el.style.height = "".concat(this.axis.y.scrollbar.size, "px")), this.positionScrollbar("x"), this.positionScrollbar("y"), this.toggleTrackVisibility("x"), this.toggleTrackVisibility("y");
|
|
231
|
-
}
|
|
232
|
-
}, s.prototype.getScrollbarSize = function(t) {
|
|
233
|
-
var i, e;
|
|
234
|
-
if (t === void 0 && (t = "y"), !this.axis[t].isOverflowing || !this.contentEl)
|
|
235
|
-
return 0;
|
|
236
|
-
var r = this.contentEl[this.axis[t].scrollSizeAttr], l = (e = (i = this.axis[t].track.el) === null || i === void 0 ? void 0 : i[this.axis[t].offsetSizeAttr]) !== null && e !== void 0 ? e : 0, o = l / r, n;
|
|
237
|
-
return n = Math.max(~~(o * l), this.options.scrollbarMinSize), this.options.scrollbarMaxSize && (n = Math.min(n, this.options.scrollbarMaxSize)), n;
|
|
238
|
-
}, s.prototype.positionScrollbar = function(t) {
|
|
239
|
-
var i, e, r;
|
|
240
|
-
t === void 0 && (t = "y");
|
|
241
|
-
var l = this.axis[t].scrollbar;
|
|
242
|
-
if (!(!this.axis[t].isOverflowing || !this.contentWrapperEl || !l.el || !this.elStyles)) {
|
|
243
|
-
var o = this.contentWrapperEl[this.axis[t].scrollSizeAttr], n = ((i = this.axis[t].track.el) === null || i === void 0 ? void 0 : i[this.axis[t].offsetSizeAttr]) || 0, c = parseInt(this.elStyles[this.axis[t].sizeAttr], 10), a = this.contentWrapperEl[this.axis[t].scrollOffsetAttr];
|
|
244
|
-
a = t === "x" && this.isRtl && (!((e = s.getRtlHelpers()) === null || e === void 0) && e.isScrollOriginAtZero) ? -a : a, t === "x" && this.isRtl && (a = !((r = s.getRtlHelpers()) === null || r === void 0) && r.isScrollingToNegative ? a : -a);
|
|
245
|
-
var d = a / (o - c), h = ~~((n - l.size) * d);
|
|
246
|
-
h = t === "x" && this.isRtl ? -h + (n - l.size) : h, l.el.style.transform = t === "x" ? "translate3d(".concat(h, "px, 0, 0)") : "translate3d(0, ".concat(h, "px, 0)");
|
|
247
|
-
}
|
|
248
|
-
}, s.prototype.toggleTrackVisibility = function(t) {
|
|
249
|
-
t === void 0 && (t = "y");
|
|
250
|
-
var i = this.axis[t].track.el, e = this.axis[t].scrollbar.el;
|
|
251
|
-
!i || !e || !this.contentWrapperEl || (this.axis[t].isOverflowing || this.axis[t].forceVisible ? (i.style.visibility = "visible", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "scroll", this.el.classList.add("".concat(this.classNames.scrollable, "-").concat(t))) : (i.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "hidden", this.el.classList.remove("".concat(this.classNames.scrollable, "-").concat(t))), this.axis[t].isOverflowing ? e.style.display = "block" : e.style.display = "none");
|
|
252
|
-
}, s.prototype.showScrollbar = function(t) {
|
|
253
|
-
t === void 0 && (t = "y"), this.axis[t].isOverflowing && !this.axis[t].scrollbar.isVisible && (g(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !0);
|
|
254
|
-
}, s.prototype.hideScrollbar = function(t) {
|
|
255
|
-
t === void 0 && (t = "y"), !this.isDragging && this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (m(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !1);
|
|
256
|
-
}, s.prototype.hideNativeScrollbar = function() {
|
|
257
|
-
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px");
|
|
258
|
-
}, s.prototype.onMouseMoveForAxis = function(t) {
|
|
259
|
-
t === void 0 && (t = "y");
|
|
260
|
-
var i = this.axis[t];
|
|
261
|
-
!i.track.el || !i.scrollbar.el || (i.track.rect = i.track.el.getBoundingClientRect(), i.scrollbar.rect = i.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(i.track.rect) ? (this.showScrollbar(t), g(i.track.el, this.classNames.hover), this.isWithinBounds(i.scrollbar.rect) ? g(i.scrollbar.el, this.classNames.hover) : m(i.scrollbar.el, this.classNames.hover)) : (m(i.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t)));
|
|
262
|
-
}, s.prototype.onMouseLeaveForAxis = function(t) {
|
|
263
|
-
t === void 0 && (t = "y"), m(this.axis[t].track.el, this.classNames.hover), m(this.axis[t].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t);
|
|
264
|
-
}, s.prototype.onDragStart = function(t, i) {
|
|
265
|
-
var e;
|
|
266
|
-
i === void 0 && (i = "y"), this.isDragging = !0;
|
|
267
|
-
var r = z(this.el), l = p(this.el), o = this.axis[i].scrollbar, n = i === "y" ? t.pageY : t.pageX;
|
|
268
|
-
this.axis[i].dragOffset = n - (((e = o.rect) === null || e === void 0 ? void 0 : e[this.axis[i].offsetAttr]) || 0), this.draggedAxis = i, g(this.el, this.classNames.dragging), r.addEventListener("mousemove", this.drag, !0), r.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (r.addEventListener("click", this.preventClick, !0), r.addEventListener("dblclick", this.preventClick, !0)) : (l.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
269
|
-
}, s.prototype.onTrackClick = function(t, i) {
|
|
270
|
-
var e = this, r, l, o, n;
|
|
271
|
-
i === void 0 && (i = "y");
|
|
272
|
-
var c = this.axis[i];
|
|
273
|
-
if (!(!this.options.clickOnTrack || !c.scrollbar.el || !this.contentWrapperEl)) {
|
|
274
|
-
t.preventDefault();
|
|
275
|
-
var a = p(this.el);
|
|
276
|
-
this.axis[i].scrollbar.rect = c.scrollbar.el.getBoundingClientRect();
|
|
277
|
-
var d = this.axis[i].scrollbar, h = (l = (r = d.rect) === null || r === void 0 ? void 0 : r[this.axis[i].offsetAttr]) !== null && l !== void 0 ? l : 0, v = parseInt((n = (o = this.elStyles) === null || o === void 0 ? void 0 : o[this.axis[i].sizeAttr]) !== null && n !== void 0 ? n : "0px", 10), f = this.contentWrapperEl[this.axis[i].scrollOffsetAttr], w = i === "y" ? this.mouseY - h : this.mouseX - h, b = w < 0 ? -1 : 1, y = b === -1 ? f - v : f + v, x = 40, O = function() {
|
|
278
|
-
e.contentWrapperEl && (b === -1 ? f > y && (f -= x, e.contentWrapperEl[e.axis[i].scrollOffsetAttr] = f, a.requestAnimationFrame(O)) : f < y && (f += x, e.contentWrapperEl[e.axis[i].scrollOffsetAttr] = f, a.requestAnimationFrame(O)));
|
|
279
|
-
};
|
|
280
|
-
O();
|
|
281
|
-
}
|
|
282
|
-
}, s.prototype.getContentElement = function() {
|
|
283
|
-
return this.contentEl;
|
|
284
|
-
}, s.prototype.getScrollElement = function() {
|
|
285
|
-
return this.contentWrapperEl;
|
|
286
|
-
}, s.prototype.removeListeners = function() {
|
|
287
|
-
var t = p(this.el);
|
|
288
|
-
this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), t.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
|
|
289
|
-
}, s.prototype.unMount = function() {
|
|
290
|
-
this.removeListeners();
|
|
291
|
-
}, s.prototype.isWithinBounds = function(t) {
|
|
292
|
-
return this.mouseX >= t.left && this.mouseX <= t.left + t.width && this.mouseY >= t.top && this.mouseY <= t.top + t.height;
|
|
293
|
-
}, s.prototype.findChild = function(t, i) {
|
|
294
|
-
var e = t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector;
|
|
295
|
-
return Array.prototype.filter.call(t.children, function(r) {
|
|
296
|
-
return e.call(r, i);
|
|
297
|
-
})[0];
|
|
298
|
-
}, s.rtlHelpers = null, s.defaultOptions = {
|
|
299
|
-
forceVisible: !1,
|
|
300
|
-
clickOnTrack: !0,
|
|
301
|
-
scrollbarMinSize: 25,
|
|
302
|
-
scrollbarMaxSize: 0,
|
|
303
|
-
ariaLabel: "scrollable content",
|
|
304
|
-
tabIndex: 0,
|
|
305
|
-
classNames: {
|
|
306
|
-
contentEl: "simplebar-content",
|
|
307
|
-
contentWrapper: "simplebar-content-wrapper",
|
|
308
|
-
offset: "simplebar-offset",
|
|
309
|
-
mask: "simplebar-mask",
|
|
310
|
-
wrapper: "simplebar-wrapper",
|
|
311
|
-
placeholder: "simplebar-placeholder",
|
|
312
|
-
scrollbar: "simplebar-scrollbar",
|
|
313
|
-
track: "simplebar-track",
|
|
314
|
-
heightAutoObserverWrapperEl: "simplebar-height-auto-observer-wrapper",
|
|
315
|
-
heightAutoObserverEl: "simplebar-height-auto-observer",
|
|
316
|
-
visible: "simplebar-visible",
|
|
317
|
-
horizontal: "simplebar-horizontal",
|
|
318
|
-
vertical: "simplebar-vertical",
|
|
319
|
-
hover: "simplebar-hover",
|
|
320
|
-
dragging: "simplebar-dragging",
|
|
321
|
-
scrolling: "simplebar-scrolling",
|
|
322
|
-
scrollable: "simplebar-scrollable",
|
|
323
|
-
mouseEntered: "simplebar-mouse-entered"
|
|
324
|
-
},
|
|
325
|
-
scrollableNode: null,
|
|
326
|
-
contentNode: null,
|
|
327
|
-
autoHide: !0
|
|
328
|
-
}, s.getOptions = F, s.helpers = q, s;
|
|
329
|
-
}()
|
|
330
|
-
);
|
|
331
|
-
export {
|
|
332
|
-
j as S
|
|
333
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","./simplebar-core-71xT5g0m.system.js"],function(f,h){"use strict";var u,d,i;return{setters:[a=>{u=a.defineComponent,d=a.h},a=>{i=a.S}],execute:function(){var a=function(){return a=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(r[l]=t[l])}return r},a.apply(this,arguments)},m={beforeUnmount:"beforeUnmount"},c;function p(e){var r,t=e.h,n=e.emit,o=e.slots,l=e.props,v=function(b){return n("scroll",b)},s=a(a({},i.defaultOptions.classNames),l.classNames);return t("div",a({ref:"element"},{"data-simplebar":"init"}),[t("div",{class:s.wrapper},[t("div",{class:s.heightAutoObserverWrapperEl},[t("div",{class:s.heightAutoObserverEl})]),t("div",{class:s.mask},[t("div",{class:s.offset},[t("div",a(a({},{onScroll:v,class:s.contentWrapper,tabIndex:l.tabIndex||i.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||i.defaultOptions.ariaLabel}),{ref:"scrollElement"}),[t("div",{class:s.contentEl,ref:"contentElement"},(r=o.default)===null||r===void 0?void 0:r.call(o))])])]),t("div",{class:s.placeholder})]),t("div",{class:"".concat(s.track," simplebar-horizontal")},[t("div",{class:s.scrollbar})]),t("div",{class:"".concat(s.track," simplebar-vertical")},[t("div",{class:s.scrollbar})])])}var g=f("s",u((c={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(e){return typeof e=="boolean"||e==="x"||e==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(e){return e==="ltr"||e==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var e=i.getOptions(this.$refs.element.attributes),r=0,t=Object.entries(this.$props);r<t.length;r++){var n=t[r],o=n[0],l=n[1];l!=null&&typeof l!="function"&&(e[o]=l)}this.SimpleBar=new i(this.$refs.element,e),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},c[m.beforeUnmount]=function(){var e;(e=this.SimpleBar)===null||e===void 0||e.unMount(),this.SimpleBar=void 0},c.methods={recalculate:function(){var e;(e=this.SimpleBar)===null||e===void 0||e.recalculate()}},c.render=function(e){var r=this;return p({h:typeof e=="function"?e:d,emit:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.$emit.apply(r,t)},slots:this.$slots,props:this.$props})},c)))}}});
|