@fewangsit/wangsvue-fats 1.0.0-alpha.43 → 1.0.0-alpha.45
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/buttoncopy/ButtonCopy.vue.d.ts +4 -6
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
- package/components/index.d.ts +61 -162
- 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/lottie/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/utils/index.d.ts +1 -1
- package/wangsvue-fats.js +52090 -144
- package/wangsvue-fats.system.js +312 -1
- package/ButtonCopy-C6DSmsOR.es.js +0 -4
- package/ButtonCopy-CeBlNyVx.system.js +0 -1
- package/ButtonSync-BLyCwwnU.system.js +0 -1
- package/ButtonSync-DtUhn-Q-.es.js +0 -4
- package/ButtonToggle-B9Fa75pf.es.js +0 -4
- package/ButtonToggle-CSxzlLR2.system.js +0 -1
- package/ButtonViewLog-B1oa4oFN.es.js +0 -4
- package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
- package/Card-B19WgA6Y.es.js +0 -4
- package/Card-umUgd-nP.system.js +0 -1
- package/InputEmail-BZ5Y0wSk.system.js +0 -1
- package/InputEmail-DR_E1DsL.es.js +0 -4
- package/InputURL-DL6a94kM.system.js +0 -1
- package/InputURL-PVF5EUUY.es.js +0 -4
- package/Loading-Cq7rP88c.system.js +0 -1
- package/Loading-DUHTVct4.es.js +0 -4
- package/UserWithIcon-Ddn_GlNu.system.js +0 -1
- package/UserWithIcon-hWXf-A2U.es.js +0 -4
- package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
- package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
- package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
- package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
- package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
- package/async-components/index-C8nb7p3T.es.js +0 -70
- package/async-components/index-DvjqHrYE.system.js +0 -1
- package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
- package/components/animation/Animation-CJb4YIwm.system.js +0 -1
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
- package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
- package/components/badge/Badge-wSExdsOP.system.js +0 -1
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
- package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
- package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
- package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
- package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
- package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
- package/components/button/Button-CgkhMnxo.es.js +0 -124
- package/components/button/Button-D892iaxz.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
- package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
- package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
- package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
- package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
- package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
- package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
- package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
- package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
- package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
- package/components/card/Card-BccG14LV.es.js +0 -47
- package/components/card/Card-BjI-Xi0S.system.js +0 -1
- package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
- package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
- package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
- package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
- package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
- package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
- package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
- package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
- package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
- package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
- package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
- package/components/editor/Editor-RB5MqBs1.es.js +0 -887
- package/components/editor/Editor-upU4Z9FH.system.js +0 -1
- package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
- package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
- package/components/editor/MentionList-BjWKefLh.system.js +0 -1
- package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
- package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
- package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
- package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
- package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
- package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
- package/components/form/Form-By85t_oI.system.js +0 -1
- package/components/form/Form-DhWBpdkq.es.js +0 -181
- package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
- package/components/icon/Icon-C4kXVcEX.es.js +0 -82
- package/components/icon/Icon-D1a666FC.system.js +0 -1
- package/components/image/Image-Bf5EaBWP.es.js +0 -170
- package/components/image/Image-Cxi0E9gK.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
- package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
- package/components/index-BMti6lK3.es.js +0 -64
- package/components/index-DBzSxIov.system.js +0 -1
- package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
- package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
- package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
- package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
- package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
- package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
- package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
- package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
- package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
- package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
- package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
- package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
- package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
- package/components/inputurl/InputURL-D4QWV9G7.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-BbDUnfnd.es.js +0 -102
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
- package/components/loading/Loading-DIfTUHr7.es.js +0 -24
- package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
- package/components/menu/Menu-BtzGGhbp.es.js +0 -73
- package/components/menu/Menu-CPm5vua_.system.js +0 -1
- package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
- package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
- package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
- package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
- package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
- package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
- package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
- package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
- package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
- package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
- package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
- package/components/toast/Toast-C3D50rGo.system.js +0 -1
- package/components/toast/Toast-DRUJCz4I.es.js +0 -74
- package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
- package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
- package/components/tree/Tree-93NvdElH.es.js +0 -267
- package/components/tree/Tree-BTTVTAEH.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
- package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
- package/components/username/UserName-A1N6Q7bS.system.js +0 -1
- package/components/username/UserName-D5C0qdbu.es.js +0 -132
- package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
- package/config/config.esm-BZepf1kR.system.js +0 -1
- package/config/config.esm-Drl0fECZ.es.js +0 -212
- package/config/defaultProps-B3syHUKt.system.js +0 -1
- package/config/defaultProps-BC_lvAG9.es.js +0 -136
- package/config/locale-DK6d2rJ3.system.js +0 -1
- package/config/locale-pQnRpNZ6.es.js +0 -85
- package/event-bus/index-CykcrsqY.system.js +0 -1
- package/event-bus/index-PQwO5T6B.es.js +0 -6
- package/event-bus/mitt-BjeF6e5j.es.js +0 -53
- package/event-bus/mitt-X_X8W9w9.system.js +0 -1
- package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
- package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
- package/plugins/i18n-BVujDShu.system.js +0 -1
- package/plugins/i18n-CIoi8go0.es.js +0 -89
- package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
- package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
- package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
- package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
- package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
- package/utils/date.util-DbjB32co.es.js +0 -198
- package/utils/date.util-rX9kq_yC.system.js +0 -1
- package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
- package/utils/detectOverflow-CETbaen7.es.js +0 -88
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
- package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
- package/utils/object.util-6veM2gu5.es.js +0 -51
- package/utils/object.util-uApor4uP.system.js +0 -1
- package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
- package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
- package/utils/role.util-BdUNoOqf.es.js +0 -67
- package/utils/role.util-Co8OMWnc.system.js +0 -1
- package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
- package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
- package/utils/toast.util-C7p3h9XQ.es.js +0 -52
- package/utils/toast.util-DPtauJUV.system.js +0 -1
- package/utils/utils.esm-iwnsFuDg.system.js +0 -23
- package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
- package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
- package/utils/xlsx.util-LU1upHR3.es.js +0 -8
- package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
- package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
- package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
- package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
- package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
- package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
- package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
- package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
- package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
- package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
- package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
- package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
- package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
- package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
- package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
- package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
- package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
- package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
- package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
- package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
- package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
- package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
- package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
- package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
- package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
- package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
- package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
- package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
- package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
- package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
- package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
- package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
- package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
- package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
- package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
- package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
- package/vendor/lodash-B6nNLFd3.es.js +0 -127
- package/vendor/lodash-BuO1dYnQ.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-C5Z_k4WB.system.js +0 -171
- package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
- package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
- package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
- package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
- package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
- package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
- package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
- 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-BvrICwYb.es.js +0 -87
- package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
- package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
- package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
- package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
- package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
- package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
- package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
- package/vendor/rope-sequence-4t46C6az.system.js +0 -1
- package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
- package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
- package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
- package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
- package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
- package/vendor/tippy.js-6wuFov1j.system.js +0 -1
- package/vendor/tippy.js-i1ic-msv.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/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
- /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(i,l){"use strict";var n,s,r,a;return{setters:[e=>{n=e.M,s=e.a,r=e.b,a=e.m}],execute:function(){const e=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,u=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,o=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,c=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,d=i("I",n.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",a(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[r({find:e,type:this.type}),r({find:o,type:this.type})]},addPasteRules(){return[s({find:u,type:this.type}),s({find:c,type:this.type})]}}))}}});
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { M as b, a as C, m as v, e as T, f as w, h as E, j as H, k as B } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { r as y, t as O, f as M, a as U } from "../linkifyjs-BxsOjwQz.es.js";
|
|
3
|
-
import { P as m, a as A } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
4
|
-
function V(t) {
|
|
5
|
-
return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
|
|
6
|
-
}
|
|
7
|
-
function R(t) {
|
|
8
|
-
return new m({
|
|
9
|
-
key: new A("autolink"),
|
|
10
|
-
appendTransaction: (e, n, o) => {
|
|
11
|
-
const i = e.some((s) => s.docChanged) && !n.doc.eq(o.doc), l = e.some((s) => s.getMeta("preventAutolink"));
|
|
12
|
-
if (!i || l)
|
|
13
|
-
return;
|
|
14
|
-
const { tr: a } = o, f = T(n.doc, [...e]);
|
|
15
|
-
if (w(f).forEach(({ newRange: s }) => {
|
|
16
|
-
const d = E(o.doc, s, (k) => k.isTextblock);
|
|
17
|
-
let u, c;
|
|
18
|
-
if (d.length > 1 ? (u = d[0], c = o.doc.textBetween(u.pos, u.pos + u.node.nodeSize, void 0, " ")) : d.length && o.doc.textBetween(s.from, s.to, " ", " ").endsWith(" ") && (u = d[0], c = o.doc.textBetween(u.pos, s.to, void 0, " ")), u && c) {
|
|
19
|
-
const k = c.split(" ").filter((r) => r !== "");
|
|
20
|
-
if (k.length <= 0)
|
|
21
|
-
return !1;
|
|
22
|
-
const g = k[k.length - 1], P = u.pos + c.lastIndexOf(g);
|
|
23
|
-
if (!g)
|
|
24
|
-
return !1;
|
|
25
|
-
const L = O(g).map((r) => r.toObject(t.defaultProtocol));
|
|
26
|
-
if (!V(L))
|
|
27
|
-
return !1;
|
|
28
|
-
L.filter((r) => r.isLink).map((r) => ({
|
|
29
|
-
...r,
|
|
30
|
-
from: P + r.start + 1,
|
|
31
|
-
to: P + r.end + 1
|
|
32
|
-
})).filter((r) => o.schema.marks.code ? !o.doc.rangeHasMark(r.from, r.to, o.schema.marks.code) : !0).filter((r) => t.validate(r.value)).filter((r) => t.shouldAutoLink(r.value)).forEach((r) => {
|
|
33
|
-
H(r.from, r.to, o.doc).some((x) => x.mark.type === t.type) || a.addMark(r.from, r.to, t.type.create({
|
|
34
|
-
href: r.href
|
|
35
|
-
}));
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}), !!a.steps.length)
|
|
39
|
-
return a;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function W(t) {
|
|
44
|
-
return new m({
|
|
45
|
-
key: new A("handleClickLink"),
|
|
46
|
-
props: {
|
|
47
|
-
handleClick: (e, n, o) => {
|
|
48
|
-
var i, l;
|
|
49
|
-
if (o.button !== 0 || !e.editable)
|
|
50
|
-
return !1;
|
|
51
|
-
let a = o.target;
|
|
52
|
-
const f = [];
|
|
53
|
-
for (; a.nodeName !== "DIV"; )
|
|
54
|
-
f.push(a), a = a.parentNode;
|
|
55
|
-
if (!f.find((c) => c.nodeName === "A"))
|
|
56
|
-
return !1;
|
|
57
|
-
const h = B(e.state, t.type.name), s = o.target, d = (i = s == null ? void 0 : s.href) !== null && i !== void 0 ? i : h.href, u = (l = s == null ? void 0 : s.target) !== null && l !== void 0 ? l : h.target;
|
|
58
|
-
return s && d ? (window.open(d, u), !0) : !1;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function z(t) {
|
|
64
|
-
return new m({
|
|
65
|
-
key: new A("handlePasteLink"),
|
|
66
|
-
props: {
|
|
67
|
-
handlePaste: (e, n, o) => {
|
|
68
|
-
const { state: i } = e, { selection: l } = i, { empty: a } = l;
|
|
69
|
-
if (a)
|
|
70
|
-
return !1;
|
|
71
|
-
let f = "";
|
|
72
|
-
o.content.forEach((s) => {
|
|
73
|
-
f += s.textContent;
|
|
74
|
-
});
|
|
75
|
-
const h = M(f, { defaultProtocol: t.defaultProtocol }).find((s) => s.isLink && s.value === f);
|
|
76
|
-
return !f || !h ? !1 : t.editor.commands.setMark(t.type, {
|
|
77
|
-
href: h.href
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
const I = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
84
|
-
function p(t, e) {
|
|
85
|
-
const n = [
|
|
86
|
-
"http",
|
|
87
|
-
"https",
|
|
88
|
-
"ftp",
|
|
89
|
-
"ftps",
|
|
90
|
-
"mailto",
|
|
91
|
-
"tel",
|
|
92
|
-
"callto",
|
|
93
|
-
"sms",
|
|
94
|
-
"cid",
|
|
95
|
-
"xmpp"
|
|
96
|
-
];
|
|
97
|
-
return e && e.forEach((o) => {
|
|
98
|
-
const i = typeof o == "string" ? o : o.scheme;
|
|
99
|
-
i && n.push(i);
|
|
100
|
-
}), !t || t.replace(I, "").match(new RegExp(
|
|
101
|
-
// eslint-disable-next-line no-useless-escape
|
|
102
|
-
`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
103
|
-
"i"
|
|
104
|
-
));
|
|
105
|
-
}
|
|
106
|
-
const D = b.create({
|
|
107
|
-
name: "link",
|
|
108
|
-
priority: 1e3,
|
|
109
|
-
keepOnSplit: !1,
|
|
110
|
-
exitable: !0,
|
|
111
|
-
onCreate() {
|
|
112
|
-
this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((t) => {
|
|
113
|
-
if (typeof t == "string") {
|
|
114
|
-
y(t);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
y(t.scheme, t.optionalSlashes);
|
|
118
|
-
});
|
|
119
|
-
},
|
|
120
|
-
onDestroy() {
|
|
121
|
-
U();
|
|
122
|
-
},
|
|
123
|
-
inclusive() {
|
|
124
|
-
return this.options.autolink;
|
|
125
|
-
},
|
|
126
|
-
addOptions() {
|
|
127
|
-
return {
|
|
128
|
-
openOnClick: !0,
|
|
129
|
-
linkOnPaste: !0,
|
|
130
|
-
autolink: !0,
|
|
131
|
-
protocols: [],
|
|
132
|
-
defaultProtocol: "http",
|
|
133
|
-
HTMLAttributes: {
|
|
134
|
-
target: "_blank",
|
|
135
|
-
rel: "noopener noreferrer nofollow",
|
|
136
|
-
class: null
|
|
137
|
-
},
|
|
138
|
-
isAllowedUri: (t, e) => !!p(t, e.protocols),
|
|
139
|
-
validate: (t) => !!t,
|
|
140
|
-
shouldAutoLink: (t) => !!t
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
addAttributes() {
|
|
144
|
-
return {
|
|
145
|
-
href: {
|
|
146
|
-
default: null,
|
|
147
|
-
parseHTML(t) {
|
|
148
|
-
return t.getAttribute("href");
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
target: {
|
|
152
|
-
default: this.options.HTMLAttributes.target
|
|
153
|
-
},
|
|
154
|
-
rel: {
|
|
155
|
-
default: this.options.HTMLAttributes.rel
|
|
156
|
-
},
|
|
157
|
-
class: {
|
|
158
|
-
default: this.options.HTMLAttributes.class
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
|
-
parseHTML() {
|
|
163
|
-
return [
|
|
164
|
-
{
|
|
165
|
-
tag: "a[href]",
|
|
166
|
-
getAttrs: (t) => {
|
|
167
|
-
const e = t.getAttribute("href");
|
|
168
|
-
return !e || !this.options.isAllowedUri(e, {
|
|
169
|
-
defaultValidate: (n) => !!p(n, this.options.protocols),
|
|
170
|
-
protocols: this.options.protocols,
|
|
171
|
-
defaultProtocol: this.options.defaultProtocol
|
|
172
|
-
}) ? !1 : null;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
];
|
|
176
|
-
},
|
|
177
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
178
|
-
return this.options.isAllowedUri(t.href, {
|
|
179
|
-
defaultValidate: (e) => !!p(e, this.options.protocols),
|
|
180
|
-
protocols: this.options.protocols,
|
|
181
|
-
defaultProtocol: this.options.defaultProtocol
|
|
182
|
-
}) ? ["a", v(this.options.HTMLAttributes, t), 0] : [
|
|
183
|
-
"a",
|
|
184
|
-
v(this.options.HTMLAttributes, { ...t, href: "" }),
|
|
185
|
-
0
|
|
186
|
-
];
|
|
187
|
-
},
|
|
188
|
-
addCommands() {
|
|
189
|
-
return {
|
|
190
|
-
setLink: (t) => ({ chain: e }) => {
|
|
191
|
-
const { href: n } = t;
|
|
192
|
-
return this.options.isAllowedUri(n, {
|
|
193
|
-
defaultValidate: (o) => !!p(o, this.options.protocols),
|
|
194
|
-
protocols: this.options.protocols,
|
|
195
|
-
defaultProtocol: this.options.defaultProtocol
|
|
196
|
-
}) ? e().setMark(this.name, t).setMeta("preventAutolink", !0).run() : !1;
|
|
197
|
-
},
|
|
198
|
-
toggleLink: (t) => ({ chain: e }) => {
|
|
199
|
-
const { href: n } = t;
|
|
200
|
-
return this.options.isAllowedUri(n, {
|
|
201
|
-
defaultValidate: (o) => !!p(o, this.options.protocols),
|
|
202
|
-
protocols: this.options.protocols,
|
|
203
|
-
defaultProtocol: this.options.defaultProtocol
|
|
204
|
-
}) ? e().toggleMark(this.name, t, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
|
|
205
|
-
},
|
|
206
|
-
unsetLink: () => ({ chain: t }) => t().unsetMark(this.name, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run()
|
|
207
|
-
};
|
|
208
|
-
},
|
|
209
|
-
addPasteRules() {
|
|
210
|
-
return [
|
|
211
|
-
C({
|
|
212
|
-
find: (t) => {
|
|
213
|
-
const e = [];
|
|
214
|
-
if (t) {
|
|
215
|
-
const { protocols: n, defaultProtocol: o } = this.options, i = M(t).filter((l) => l.isLink && this.options.isAllowedUri(l.value, {
|
|
216
|
-
defaultValidate: (a) => !!p(a, n),
|
|
217
|
-
protocols: n,
|
|
218
|
-
defaultProtocol: o
|
|
219
|
-
}));
|
|
220
|
-
i.length && i.forEach((l) => e.push({
|
|
221
|
-
text: l.value,
|
|
222
|
-
data: {
|
|
223
|
-
href: l.href
|
|
224
|
-
},
|
|
225
|
-
index: l.start
|
|
226
|
-
}));
|
|
227
|
-
}
|
|
228
|
-
return e;
|
|
229
|
-
},
|
|
230
|
-
type: this.type,
|
|
231
|
-
getAttributes: (t) => {
|
|
232
|
-
var e;
|
|
233
|
-
return {
|
|
234
|
-
href: (e = t.data) === null || e === void 0 ? void 0 : e.href
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
})
|
|
238
|
-
];
|
|
239
|
-
},
|
|
240
|
-
addProseMirrorPlugins() {
|
|
241
|
-
const t = [], { protocols: e, defaultProtocol: n } = this.options;
|
|
242
|
-
return this.options.autolink && t.push(R({
|
|
243
|
-
type: this.type,
|
|
244
|
-
defaultProtocol: this.options.defaultProtocol,
|
|
245
|
-
validate: (o) => this.options.isAllowedUri(o, {
|
|
246
|
-
defaultValidate: (i) => !!p(i, e),
|
|
247
|
-
protocols: e,
|
|
248
|
-
defaultProtocol: n
|
|
249
|
-
}),
|
|
250
|
-
shouldAutoLink: this.options.shouldAutoLink
|
|
251
|
-
})), this.options.openOnClick === !0 && t.push(W({
|
|
252
|
-
type: this.type
|
|
253
|
-
})), this.options.linkOnPaste && t.push(z({
|
|
254
|
-
editor: this.editor,
|
|
255
|
-
defaultProtocol: this.options.defaultProtocol,
|
|
256
|
-
type: this.type
|
|
257
|
-
})), t;
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
export {
|
|
261
|
-
D as L
|
|
262
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../linkifyjs-CMLfIa6I.system.js","../prosemirror-state-COJ-aZZ4.system.js"],function(V,_){"use strict";var M,x,P,b,C,T,w,E,v,H,y,B,A,m;return{setters:[n=>{M=n.M,x=n.a,P=n.m,b=n.e,C=n.f,T=n.h,w=n.j,E=n.k},n=>{v=n.r,H=n.t,y=n.f,B=n.a},n=>{A=n.P,m=n.a}],execute:function(){function n(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function j(t){return new A({key:new m("autolink"),appendTransaction:(e,i,o)=>{const l=e.some(s=>s.docChanged)&&!i.doc.eq(o.doc),a=e.some(s=>s.getMeta("preventAutolink"));if(!l||a)return;const{tr:u}=o,d=b(i.doc,[...e]);if(C(d).forEach(({newRange:s})=>{const h=T(o.doc,s,g=>g.isTextblock);let f,p;if(h.length>1?(f=h[0],p=o.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):h.length&&o.doc.textBetween(s.from,s.to," "," ").endsWith(" ")&&(f=h[0],p=o.doc.textBetween(f.pos,s.to,void 0," ")),f&&p){const g=p.split(" ").filter(r=>r!=="");if(g.length<=0)return!1;const L=g[g.length-1],O=f.pos+p.lastIndexOf(L);if(!L)return!1;const U=H(L).map(r=>r.toObject(t.defaultProtocol));if(!n(U))return!1;U.filter(r=>r.isLink).map(r=>({...r,from:O+r.start+1,to:O+r.end+1})).filter(r=>o.schema.marks.code?!o.doc.rangeHasMark(r.from,r.to,o.schema.marks.code):!0).filter(r=>t.validate(r.value)).filter(r=>t.shouldAutoLink(r.value)).forEach(r=>{w(r.from,r.to,o.doc).some(z=>z.mark.type===t.type)||u.addMark(r.from,r.to,t.type.create({href:r.href}))})}}),!!u.steps.length)return u}})}function R(t){return new A({key:new m("handleClickLink"),props:{handleClick:(e,i,o)=>{var l,a;if(o.button!==0||!e.editable)return!1;let u=o.target;const d=[];for(;u.nodeName!=="DIV";)d.push(u),u=u.parentNode;if(!d.find(p=>p.nodeName==="A"))return!1;const k=E(e.state,t.type.name),s=o.target,h=(l=s==null?void 0:s.href)!==null&&l!==void 0?l:k.href,f=(a=s==null?void 0:s.target)!==null&&a!==void 0?a:k.target;return s&&h?(window.open(h,f),!0):!1}}})}function I(t){return new A({key:new m("handlePasteLink"),props:{handlePaste:(e,i,o)=>{const{state:l}=e,{selection:a}=l,{empty:u}=a;if(u)return!1;let d="";o.content.forEach(s=>{d+=s.textContent});const k=y(d,{defaultProtocol:t.defaultProtocol}).find(s=>s.isLink&&s.value===d);return!d||!k?!1:t.editor.commands.setMark(t.type,{href:k.href})}}})}const W=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function c(t,e){const i=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const l=typeof o=="string"?o:o.scheme;l&&i.push(l)}),!t||t.replace(W,"").match(new RegExp(`^(?:(?:${i.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const N=V("L",M.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){v(t);return}v(t.scheme,t.optionalSlashes)})},onDestroy(){B()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!c(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:i=>!!c(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!c(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",P(this.options.HTMLAttributes,t),0]:["a",P(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:i}=t;return this.options.isAllowedUri(i,{defaultValidate:o=>!!c(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:i}=t;return this.options.isAllowedUri(i,{defaultValidate:o=>!!c(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[x({find:t=>{const e=[];if(t){const{protocols:i,defaultProtocol:o}=this.options,l=y(t).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:u=>!!c(u,i),protocols:i,defaultProtocol:o}));l.length&&l.forEach(a=>e.push({text:a.value,data:{href:a.href},index:a.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:i}=this.options;return this.options.autolink&&t.push(j({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:l=>!!c(l,e),protocols:e,defaultProtocol:i}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(R({type:this.type})),this.options.linkOnPaste&&t.push(I({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(r,n){"use strict";var e,s;return{setters:[t=>{e=t.N,s=t.m}],execute:function(){const t=r("L",e.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:i}){return["li",s(this.options.HTMLAttributes,i),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}))}}});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { N as e, m as i } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const s = e.create({
|
|
3
|
-
name: "listItem",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {},
|
|
7
|
-
bulletListTypeName: "bulletList",
|
|
8
|
-
orderedListTypeName: "orderedList"
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
content: "paragraph block*",
|
|
12
|
-
defining: !0,
|
|
13
|
-
parseHTML() {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
tag: "li"
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
},
|
|
20
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
21
|
-
return ["li", i(this.options.HTMLAttributes, t), 0];
|
|
22
|
-
},
|
|
23
|
-
addKeyboardShortcuts() {
|
|
24
|
-
return {
|
|
25
|
-
Enter: () => this.editor.commands.splitListItem(this.name),
|
|
26
|
-
Tab: () => this.editor.commands.sinkListItem(this.name),
|
|
27
|
-
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
s as L
|
|
33
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { N as l, m as a } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { a as u } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
3
|
-
import { S as p } from "./suggestion-Dg-vhPtN.es.js";
|
|
4
|
-
const c = new u("mention"), g = l.create({
|
|
5
|
-
name: "mention",
|
|
6
|
-
priority: 101,
|
|
7
|
-
addOptions() {
|
|
8
|
-
return {
|
|
9
|
-
HTMLAttributes: {},
|
|
10
|
-
renderText({ options: e, node: t }) {
|
|
11
|
-
var n;
|
|
12
|
-
return `${e.suggestion.char}${(n = t.attrs.label) !== null && n !== void 0 ? n : t.attrs.id}`;
|
|
13
|
-
},
|
|
14
|
-
deleteTriggerWithBackspace: !1,
|
|
15
|
-
renderHTML({ options: e, node: t }) {
|
|
16
|
-
var n;
|
|
17
|
-
return [
|
|
18
|
-
"span",
|
|
19
|
-
a(this.HTMLAttributes, e.HTMLAttributes),
|
|
20
|
-
`${e.suggestion.char}${(n = t.attrs.label) !== null && n !== void 0 ? n : t.attrs.id}`
|
|
21
|
-
];
|
|
22
|
-
},
|
|
23
|
-
suggestion: {
|
|
24
|
-
char: "@",
|
|
25
|
-
pluginKey: c,
|
|
26
|
-
command: ({ editor: e, range: t, props: n }) => {
|
|
27
|
-
var r, i, s;
|
|
28
|
-
const o = e.view.state.selection.$to.nodeAfter;
|
|
29
|
-
((r = o == null ? void 0 : o.text) === null || r === void 0 ? void 0 : r.startsWith(" ")) && (t.to += 1), e.chain().focus().insertContentAt(t, [
|
|
30
|
-
{
|
|
31
|
-
type: this.name,
|
|
32
|
-
attrs: n
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "text",
|
|
36
|
-
text: " "
|
|
37
|
-
}
|
|
38
|
-
]).run(), (s = (i = e.view.dom.ownerDocument.defaultView) === null || i === void 0 ? void 0 : i.getSelection()) === null || s === void 0 || s.collapseToEnd();
|
|
39
|
-
},
|
|
40
|
-
allow: ({ state: e, range: t }) => {
|
|
41
|
-
const n = e.doc.resolve(t.from), r = e.schema.nodes[this.name];
|
|
42
|
-
return !!n.parent.type.contentMatch.matchType(r);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
group: "inline",
|
|
48
|
-
inline: !0,
|
|
49
|
-
selectable: !1,
|
|
50
|
-
atom: !0,
|
|
51
|
-
addAttributes() {
|
|
52
|
-
return {
|
|
53
|
-
id: {
|
|
54
|
-
default: null,
|
|
55
|
-
parseHTML: (e) => e.getAttribute("data-id"),
|
|
56
|
-
renderHTML: (e) => e.id ? {
|
|
57
|
-
"data-id": e.id
|
|
58
|
-
} : {}
|
|
59
|
-
},
|
|
60
|
-
label: {
|
|
61
|
-
default: null,
|
|
62
|
-
parseHTML: (e) => e.getAttribute("data-label"),
|
|
63
|
-
renderHTML: (e) => e.label ? {
|
|
64
|
-
"data-label": e.label
|
|
65
|
-
} : {}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
parseHTML() {
|
|
70
|
-
return [
|
|
71
|
-
{
|
|
72
|
-
tag: `span[data-type="${this.name}"]`
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
},
|
|
76
|
-
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
77
|
-
if (this.options.renderLabel !== void 0)
|
|
78
|
-
return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
|
|
79
|
-
"span",
|
|
80
|
-
a({ "data-type": this.name }, this.options.HTMLAttributes, t),
|
|
81
|
-
this.options.renderLabel({
|
|
82
|
-
options: this.options,
|
|
83
|
-
node: e
|
|
84
|
-
})
|
|
85
|
-
];
|
|
86
|
-
const n = { ...this.options };
|
|
87
|
-
n.HTMLAttributes = a({ "data-type": this.name }, this.options.HTMLAttributes, t);
|
|
88
|
-
const r = this.options.renderHTML({
|
|
89
|
-
options: n,
|
|
90
|
-
node: e
|
|
91
|
-
});
|
|
92
|
-
return typeof r == "string" ? [
|
|
93
|
-
"span",
|
|
94
|
-
a({ "data-type": this.name }, this.options.HTMLAttributes, t),
|
|
95
|
-
r
|
|
96
|
-
] : r;
|
|
97
|
-
},
|
|
98
|
-
renderText({ node: e }) {
|
|
99
|
-
return this.options.renderLabel !== void 0 ? (console.warn("renderLabel is deprecated use renderText and renderHTML instead"), this.options.renderLabel({
|
|
100
|
-
options: this.options,
|
|
101
|
-
node: e
|
|
102
|
-
})) : this.options.renderText({
|
|
103
|
-
options: this.options,
|
|
104
|
-
node: e
|
|
105
|
-
});
|
|
106
|
-
},
|
|
107
|
-
addKeyboardShortcuts() {
|
|
108
|
-
return {
|
|
109
|
-
Backspace: () => this.editor.commands.command(({ tr: e, state: t }) => {
|
|
110
|
-
let n = !1;
|
|
111
|
-
const { selection: r } = t, { empty: i, anchor: s } = r;
|
|
112
|
-
return i ? (t.doc.nodesBetween(s - 1, s, (o, d) => {
|
|
113
|
-
if (o.type.name === this.name)
|
|
114
|
-
return n = !0, e.insertText(this.options.deleteTriggerWithBackspace ? "" : this.options.suggestion.char || "", d, d + o.nodeSize), !1;
|
|
115
|
-
}), n) : !1;
|
|
116
|
-
})
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
addProseMirrorPlugins() {
|
|
120
|
-
return [
|
|
121
|
-
p({
|
|
122
|
-
editor: this.editor,
|
|
123
|
-
...this.options.suggestion
|
|
124
|
-
})
|
|
125
|
-
];
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
export {
|
|
129
|
-
g as M
|
|
130
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","./suggestion-B3Grok9m.system.js"],function(h,m){"use strict";var u,d,c,p;return{setters:[s=>{u=s.N,d=s.m},s=>{c=s.a},s=>{p=s.S}],execute:function(){const s=new c("mention"),g=h("M",u.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:e,node:t}){var n;return`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t}){var n;return["span",d(this.HTMLAttributes,e.HTMLAttributes),`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`]},suggestion:{char:"@",pluginKey:s,command:({editor:e,range:t,props:n})=>{var r,i,o;const a=e.view.state.selection.$to.nodeAfter;((r=a==null?void 0:a.text)===null||r===void 0?void 0:r.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(o=(i=e.view.dom.ownerDocument.defaultView)===null||i===void 0?void 0:i.getSelection())===null||o===void 0||o.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),r=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",d({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})];const n={...this.options};n.HTMLAttributes=d({"data-type":this.name},this.options.HTMLAttributes,t);const r=this.options.renderHTML({options:n,node:e});return typeof r=="string"?["span",d({"data-type":this.name},this.options.HTMLAttributes,t),r]:r},renderText({node:e}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:e})):this.options.renderText({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:o}=r;return i?(t.doc.nodesBetween(o-1,o,(a,l)=>{if(a.type.name===this.name)return n=!0,e.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",l,l+a.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[p({editor:this.editor,...this.options.suggestion})]}}))}}});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { N as n, w as r, m as i } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const p = "listItem", o = "textStyle", a = /^(\d+)\.\s$/, d = n.create({
|
|
3
|
-
name: "orderedList",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
itemTypeName: "listItem",
|
|
7
|
-
HTMLAttributes: {},
|
|
8
|
-
keepMarks: !1,
|
|
9
|
-
keepAttributes: !1
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
group: "block list",
|
|
13
|
-
content() {
|
|
14
|
-
return `${this.options.itemTypeName}+`;
|
|
15
|
-
},
|
|
16
|
-
addAttributes() {
|
|
17
|
-
return {
|
|
18
|
-
start: {
|
|
19
|
-
default: 1,
|
|
20
|
-
parseHTML: (t) => t.hasAttribute("start") ? parseInt(t.getAttribute("start") || "", 10) : 1
|
|
21
|
-
},
|
|
22
|
-
type: {
|
|
23
|
-
default: null,
|
|
24
|
-
parseHTML: (t) => t.getAttribute("type")
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
parseHTML() {
|
|
29
|
-
return [
|
|
30
|
-
{
|
|
31
|
-
tag: "ol"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
},
|
|
35
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
36
|
-
const { start: e, ...s } = t;
|
|
37
|
-
return e === 1 ? ["ol", i(this.options.HTMLAttributes, s), 0] : ["ol", i(this.options.HTMLAttributes, t), 0];
|
|
38
|
-
},
|
|
39
|
-
addCommands() {
|
|
40
|
-
return {
|
|
41
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(p, this.editor.getAttributes(o)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
addKeyboardShortcuts() {
|
|
45
|
-
return {
|
|
46
|
-
"Mod-Shift-7": () => this.editor.commands.toggleOrderedList()
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
addInputRules() {
|
|
50
|
-
let t = r({
|
|
51
|
-
find: a,
|
|
52
|
-
type: this.type,
|
|
53
|
-
getAttributes: (e) => ({ start: +e[1] }),
|
|
54
|
-
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1]
|
|
55
|
-
});
|
|
56
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t = r({
|
|
57
|
-
find: a,
|
|
58
|
-
type: this.type,
|
|
59
|
-
keepMarks: this.options.keepMarks,
|
|
60
|
-
keepAttributes: this.options.keepAttributes,
|
|
61
|
-
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(o) }),
|
|
62
|
-
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1],
|
|
63
|
-
editor: this.editor
|
|
64
|
-
})), [
|
|
65
|
-
t
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
d as O
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(p,d){"use strict";var n,i,o;return{setters:[r=>{n=r.N,i=r.w,o=r.m}],execute:function(){const r="listItem",a="textStyle",u=/^(\d+)\.\s$/,h=p("O",n.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...s}=t;return e===1?["ol",o(this.options.HTMLAttributes,s),0]:["ol",o(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(r,this.editor.getAttributes(a)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=i({find:u,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i({find:u,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(a)}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1],editor:this.editor})),[t]}}))}}});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { E as p, l as m } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { P as u, a as y } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
3
|
-
import { D as E, a as f } from "../prosemirror-view-C9ZQp8VZ.es.js";
|
|
4
|
-
const O = p.create({
|
|
5
|
-
name: "placeholder",
|
|
6
|
-
addOptions() {
|
|
7
|
-
return {
|
|
8
|
-
emptyEditorClass: "is-editor-empty",
|
|
9
|
-
emptyNodeClass: "is-empty",
|
|
10
|
-
placeholder: "Write something …",
|
|
11
|
-
showOnlyWhenEditable: !0,
|
|
12
|
-
showOnlyCurrent: !0,
|
|
13
|
-
includeChildren: !1
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
addProseMirrorPlugins() {
|
|
17
|
-
return [
|
|
18
|
-
new u({
|
|
19
|
-
key: new y("placeholder"),
|
|
20
|
-
props: {
|
|
21
|
-
decorations: ({ doc: o, selection: a }) => {
|
|
22
|
-
const l = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: s } = a, i = [];
|
|
23
|
-
if (!l)
|
|
24
|
-
return null;
|
|
25
|
-
const c = this.editor.isEmpty;
|
|
26
|
-
return o.descendants((t, e) => {
|
|
27
|
-
const n = s >= e && s <= e + t.nodeSize, d = !t.isLeaf && m(t);
|
|
28
|
-
if ((n || !this.options.showOnlyCurrent) && d) {
|
|
29
|
-
const r = [this.options.emptyNodeClass];
|
|
30
|
-
c && r.push(this.options.emptyEditorClass);
|
|
31
|
-
const h = E.node(e, e + t.nodeSize, {
|
|
32
|
-
class: r.join(" "),
|
|
33
|
-
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
34
|
-
editor: this.editor,
|
|
35
|
-
node: t,
|
|
36
|
-
pos: e,
|
|
37
|
-
hasAnchor: n
|
|
38
|
-
}) : this.options.placeholder
|
|
39
|
-
});
|
|
40
|
-
i.push(h);
|
|
41
|
-
}
|
|
42
|
-
return this.options.includeChildren;
|
|
43
|
-
}), f.create(o, i);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
O as P
|
|
52
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","../prosemirror-view-DOxSTbB-.system.js"],function(y,P){"use strict";var i,o,r,n,a,c;return{setters:[e=>{i=e.E,o=e.l},e=>{r=e.P,n=e.a},e=>{a=e.D,c=e.a}],execute:function(){const e=y("P",i.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new r({key:new n("placeholder"),props:{decorations:({doc:l,selection:m})=>{const E=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:h}=m,d=[];if(!E)return null;const f=this.editor.isEmpty;return l.descendants((t,s)=>{const p=h>=s&&h<=s+t.nodeSize,w=!t.isLeaf&&o(t);if((p||!this.options.showOnlyCurrent)&&w){const u=[this.options.emptyNodeClass];f&&u.push(this.options.emptyEditorClass);const C=a.node(s,s+t.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:t,pos:s,hasAnchor:p}):this.options.placeholder});d.push(C)}return this.options.includeChildren}),c.create(l,d)}}})]}}))}}});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { M as t, m as r } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const s = t.create({
|
|
3
|
-
name: "underline",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
tag: "u"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
style: "text-decoration",
|
|
16
|
-
consuming: !1,
|
|
17
|
-
getAttrs: (e) => e.includes("underline") ? {} : !1
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
},
|
|
21
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
22
|
-
return ["u", r(this.options.HTMLAttributes, e), 0];
|
|
23
|
-
},
|
|
24
|
-
addCommands() {
|
|
25
|
-
return {
|
|
26
|
-
setUnderline: () => ({ commands: e }) => e.setMark(this.name),
|
|
27
|
-
toggleUnderline: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
28
|
-
unsetUnderline: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
addKeyboardShortcuts() {
|
|
32
|
-
return {
|
|
33
|
-
"Mod-u": () => this.editor.commands.toggleUnderline(),
|
|
34
|
-
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
s as U
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(s,i){"use strict";var r,n;return{setters:[t=>{r=t.M,n=t.m}],execute:function(){const t=s("U",r.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",n(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["../prosemirror-state-COJ-aZZ4.system.js","../prosemirror-view-DOxSTbB-.system.js","./core-D4rHEGhs.system.js"],function(G,V){"use strict";var N,b,F,O,T;return{setters:[d=>{N=d.P,b=d.a},d=>{F=d.a,O=d.D},d=>{T=d.o}],execute:function(){G("S",J);function d(D){var s;const{char:_,allowSpaces:B,allowToIncludeChar:I,allowedPrefixes:v,startOfLine:C,$position:u}=D,E=B&&!I,g=T(_),M=new RegExp(`\\s${g}$`),p=C?"^":"",P=I?"":g,j=E?new RegExp(`${p}${g}.*?(?=\\s${P}|$)`,"gm"):new RegExp(`${p}(?:^)?${g}[^\\s${P}]*`,"gm"),r=((s=u.nodeBefore)===null||s===void 0?void 0:s.isText)&&u.nodeBefore.text;if(!r)return null;const e=u.pos-r.length,o=Array.from(r.matchAll(j)).pop();if(!o||o.input===void 0||o.index===void 0)return null;const n=o.input.slice(Math.max(0,o.index-1),o.index),i=new RegExp(`^[${v==null?void 0:v.join("")}\0]?$`).test(n);if(v!==null&&!i)return null;const a=e+o.index;let l=a+o[0].length;return E&&M.test(r.slice(l-1,l+1))&&(o[0]+=" ",l+=1),a<u.pos&&l>=u.pos?{range:{from:a,to:l},query:o[0].slice(_.length),text:o[0]}:null}const H=new b("suggestion");function J({pluginKey:D=H,editor:s,char:_="@",allowSpaces:B=!1,allowToIncludeChar:I=!1,allowedPrefixes:v=[" "],startOfLine:C=!1,decorationTag:u="span",decorationClass:E="suggestion",command:g=()=>null,items:M=()=>[],render:p=()=>({}),allow:P=()=>!0,findSuggestionMatch:j=d}){let r;const e=p==null?void 0:p(),o=new N({key:D,view(){return{update:async(n,i)=>{var a,l,f,m,x,S,y;const t=(a=this.key)===null||a===void 0?void 0:a.getState(i),c=(l=this.key)===null||l===void 0?void 0:l.getState(n.state),w=t.active&&c.active&&t.range.from!==c.range.from,U=!t.active&&c.active,L=t.active&&!c.active,k=!U&&!L&&t.query!==c.query,$=U||w&&k,R=k||w,A=L||w&&k;if(!$&&!R&&!A)return;const h=A&&!$?t:c,z=n.dom.querySelector(`[data-decoration-id="${h.decorationId}"]`);r={editor:s,range:h.range,query:h.query,text:h.text,items:[],command:q=>g({editor:s,range:h.range,props:q}),decorationNode:z,clientRect:z?()=>{var q;const{decorationId:Q}=(q=this.key)===null||q===void 0?void 0:q.getState(s.state),K=n.dom.querySelector(`[data-decoration-id="${Q}"]`);return(K==null?void 0:K.getBoundingClientRect())||null}:null},$&&((f=e==null?void 0:e.onBeforeStart)===null||f===void 0||f.call(e,r)),R&&((m=e==null?void 0:e.onBeforeUpdate)===null||m===void 0||m.call(e,r)),(R||$)&&(r.items=await M({editor:s,query:h.query})),A&&((x=e==null?void 0:e.onExit)===null||x===void 0||x.call(e,r)),R&&((S=e==null?void 0:e.onUpdate)===null||S===void 0||S.call(e,r)),$&&((y=e==null?void 0:e.onStart)===null||y===void 0||y.call(e,r))},destroy:()=>{var n;r&&((n=e==null?void 0:e.onExit)===null||n===void 0||n.call(e,r))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(n,i,a,l){const{isEditable:f}=s,{composing:m}=s.view,{selection:x}=n,{empty:S,from:y}=x,t={...i};if(t.composing=m,f&&(S||s.view.composing)){(y<i.range.from||y>i.range.to)&&!m&&!i.composing&&(t.active=!1);const c=j({char:_,allowSpaces:B,allowToIncludeChar:I,allowedPrefixes:v,startOfLine:C,$position:x.$from}),w=`id_${Math.floor(Math.random()*4294967295)}`;c&&P({editor:s,state:l,range:c.range,isActive:i.active})?(t.active=!0,t.decorationId=i.decorationId?i.decorationId:w,t.range=c.range,t.query=c.query,t.text=c.text):t.active=!1}else t.active=!1;return t.active||(t.decorationId=null,t.range={from:0,to:0},t.query=null,t.text=null),t}},props:{handleKeyDown(n,i){var a;const{active:l,range:f}=o.getState(n.state);return l&&((a=e==null?void 0:e.onKeyDown)===null||a===void 0?void 0:a.call(e,{view:n,event:i,range:f}))||!1},decorations(n){const{active:i,range:a,decorationId:l}=o.getState(n);return i?F.create(n.doc,[O.inline(a.from,a.to,{nodeName:u,class:E,"data-decoration-id":l})]):null}}});return o}}}});
|