@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,71 +0,0 @@
|
|
|
1
|
-
import { M as r, a as e, b as s, m as n } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const a = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, o = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, d = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, l = r.create({
|
|
3
|
-
name: "bold",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
tag: "strong"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
tag: "b",
|
|
16
|
-
getAttrs: (t) => t.style.fontWeight !== "normal" && null
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
style: "font-weight=400",
|
|
20
|
-
clearMark: (t) => t.type.name === this.name
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
style: "font-weight",
|
|
24
|
-
getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
},
|
|
28
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
29
|
-
return ["strong", n(this.options.HTMLAttributes, t), 0];
|
|
30
|
-
},
|
|
31
|
-
addCommands() {
|
|
32
|
-
return {
|
|
33
|
-
setBold: () => ({ commands: t }) => t.setMark(this.name),
|
|
34
|
-
toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
35
|
-
unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
addKeyboardShortcuts() {
|
|
39
|
-
return {
|
|
40
|
-
"Mod-b": () => this.editor.commands.toggleBold(),
|
|
41
|
-
"Mod-B": () => this.editor.commands.toggleBold()
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
addInputRules() {
|
|
45
|
-
return [
|
|
46
|
-
s({
|
|
47
|
-
find: a,
|
|
48
|
-
type: this.type
|
|
49
|
-
}),
|
|
50
|
-
s({
|
|
51
|
-
find: d,
|
|
52
|
-
type: this.type
|
|
53
|
-
})
|
|
54
|
-
];
|
|
55
|
-
},
|
|
56
|
-
addPasteRules() {
|
|
57
|
-
return [
|
|
58
|
-
e({
|
|
59
|
-
find: o,
|
|
60
|
-
type: this.type
|
|
61
|
-
}),
|
|
62
|
-
e({
|
|
63
|
-
find: u,
|
|
64
|
-
type: this.type
|
|
65
|
-
})
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
l as B
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(a,g){"use strict";var n,s,r,o;return{setters:[e=>{n=e.M,s=e.a,r=e.b,o=e.m}],execute:function(){const e=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,d=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,i=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,l=a("B",n.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",o(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[r({find:e,type:this.type}),r({find:u,type:this.type})]},addPasteRules(){return[s({find:d,type:this.type}),s({find:i,type:this.type})]}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","../tippy.js-6wuFov1j.system.js"],function(R,P){"use strict";var b,w,H,C,E,T,D;return{setters:[n=>{b=n.i,w=n.c,H=n.p,C=n.E},n=>{E=n.P,T=n.a},n=>{D=n.t}],execute:function(){class n{constructor({editor:e,element:i,view:c,tippyOptions:y={},updateDelay:f=250,shouldShow:m}){this.preventHide=!1,this.shouldShow=({view:t,state:s,from:r,to:d})=>{const{doc:h,selection:u}=s,{empty:a}=u,p=!h.textBetween(r,d).length&&b(s.selection),v=this.element.contains(document.activeElement);return!(!(t.hasFocus()||v)||a||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:t})=>{var s;if(this.preventHide){this.preventHide=!1;return}t!=null&&t.relatedTarget&&(!((s=this.element.parentNode)===null||s===void 0)&&s.contains(t.relatedTarget))||(t==null?void 0:t.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=t=>{this.blurHandler({event:t})},this.handleDebouncedUpdate=(t,s)=>{const r=!(s!=null&&s.selection.eq(t.state.selection)),d=!(s!=null&&s.doc.eq(t.state.doc));!r&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(t,r,d,s)},this.updateDelay))},this.updateHandler=(t,s,r,d)=>{var h,u,a;const{state:p,composing:v}=t,{selection:O}=p;if(v||!s&&!r)return;this.createTooltip();const{ranges:M}=O,g=Math.min(...M.map(o=>o.$from.pos)),B=Math.max(...M.map(o=>o.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,element:this.element,view:t,state:p,oldState:d,from:g,to:B}))){this.hide();return}(u=this.tippy)===null||u===void 0||u.setProps({getReferenceClientRect:((a=this.tippyOptions)===null||a===void 0?void 0:a.getReferenceClientRect)||(()=>{if(w(p.selection)){let o=t.nodeDOM(g);if(o){const _=o.dataset.nodeViewWrapper?o:o.querySelector("[data-node-view-wrapper]");if(_&&(o=_.firstChild),o)return o.getBoundingClientRect()}}return H(t,g,B)})}),this.show()},this.editor=e,this.element=i,this.view=c,this.updateDelay=f,m&&(this.shouldShow=m),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=y,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,i=!!e.parentElement;this.tippy||!i||(this.tippy=D(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,i){const{state:c}=e,y=c.selection.from!==c.selection.to;if(this.updateDelay>0&&y){this.handleDebouncedUpdate(e,i);return}const f=!(i!=null&&i.selection.eq(e.state.selection)),m=!(i!=null&&i.doc.eq(e.state.doc));this.updateHandler(e,f,m,i)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,i;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(i=this.tippy)===null||i===void 0||i.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const K=R("B",l=>new E({key:typeof l.pluginKey=="string"?new T(l.pluginKey):l.pluginKey,view:e=>new n({view:e,...l})}));C.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[K({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}})}}});
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { i as C, c as E, p as T, E as D } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { P as O, a as M } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
3
|
-
import { t as B } from "../tippy.js-i1ic-msv.es.js";
|
|
4
|
-
class R {
|
|
5
|
-
constructor({ editor: e, element: i, view: p, tippyOptions: m = {}, updateDelay: f = 250, shouldShow: c }) {
|
|
6
|
-
this.preventHide = !1, this.shouldShow = ({ view: t, state: s, from: o, to: r }) => {
|
|
7
|
-
const { doc: l, selection: h } = s, { empty: a } = h, u = !l.textBetween(o, r).length && C(s.selection), v = this.element.contains(document.activeElement);
|
|
8
|
-
return !(!(t.hasFocus() || v) || a || u || !this.editor.isEditable);
|
|
9
|
-
}, this.mousedownHandler = () => {
|
|
10
|
-
this.preventHide = !0;
|
|
11
|
-
}, this.dragstartHandler = () => {
|
|
12
|
-
this.hide();
|
|
13
|
-
}, this.focusHandler = () => {
|
|
14
|
-
setTimeout(() => this.update(this.editor.view));
|
|
15
|
-
}, this.blurHandler = ({ event: t }) => {
|
|
16
|
-
var s;
|
|
17
|
-
if (this.preventHide) {
|
|
18
|
-
this.preventHide = !1;
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
t != null && t.relatedTarget && (!((s = this.element.parentNode) === null || s === void 0) && s.contains(t.relatedTarget)) || (t == null ? void 0 : t.relatedTarget) !== this.editor.view.dom && this.hide();
|
|
22
|
-
}, this.tippyBlurHandler = (t) => {
|
|
23
|
-
this.blurHandler({ event: t });
|
|
24
|
-
}, this.handleDebouncedUpdate = (t, s) => {
|
|
25
|
-
const o = !(s != null && s.selection.eq(t.state.selection)), r = !(s != null && s.doc.eq(t.state.doc));
|
|
26
|
-
!o && !r || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
|
|
27
|
-
this.updateHandler(t, o, r, s);
|
|
28
|
-
}, this.updateDelay));
|
|
29
|
-
}, this.updateHandler = (t, s, o, r) => {
|
|
30
|
-
var l, h, a;
|
|
31
|
-
const { state: u, composing: v } = t, { selection: g } = u;
|
|
32
|
-
if (v || !s && !o)
|
|
33
|
-
return;
|
|
34
|
-
this.createTooltip();
|
|
35
|
-
const { ranges: b } = g, y = Math.min(...b.map((n) => n.$from.pos)), w = Math.max(...b.map((n) => n.$to.pos));
|
|
36
|
-
if (!((l = this.shouldShow) === null || l === void 0 ? void 0 : l.call(this, {
|
|
37
|
-
editor: this.editor,
|
|
38
|
-
element: this.element,
|
|
39
|
-
view: t,
|
|
40
|
-
state: u,
|
|
41
|
-
oldState: r,
|
|
42
|
-
from: y,
|
|
43
|
-
to: w
|
|
44
|
-
}))) {
|
|
45
|
-
this.hide();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
(h = this.tippy) === null || h === void 0 || h.setProps({
|
|
49
|
-
getReferenceClientRect: ((a = this.tippyOptions) === null || a === void 0 ? void 0 : a.getReferenceClientRect) || (() => {
|
|
50
|
-
if (E(u.selection)) {
|
|
51
|
-
let n = t.nodeDOM(y);
|
|
52
|
-
if (n) {
|
|
53
|
-
const H = n.dataset.nodeViewWrapper ? n : n.querySelector("[data-node-view-wrapper]");
|
|
54
|
-
if (H && (n = H.firstChild), n)
|
|
55
|
-
return n.getBoundingClientRect();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return T(t, y, w);
|
|
59
|
-
})
|
|
60
|
-
}), this.show();
|
|
61
|
-
}, this.editor = e, this.element = i, this.view = p, this.updateDelay = f, c && (this.shouldShow = c), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = m, this.element.remove(), this.element.style.visibility = "visible";
|
|
62
|
-
}
|
|
63
|
-
createTooltip() {
|
|
64
|
-
const { element: e } = this.editor.options, i = !!e.parentElement;
|
|
65
|
-
this.tippy || !i || (this.tippy = B(e, {
|
|
66
|
-
duration: 0,
|
|
67
|
-
getReferenceClientRect: null,
|
|
68
|
-
content: this.element,
|
|
69
|
-
interactive: !0,
|
|
70
|
-
trigger: "manual",
|
|
71
|
-
placement: "top",
|
|
72
|
-
hideOnClick: "toggle",
|
|
73
|
-
...this.tippyOptions
|
|
74
|
-
}), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
|
|
75
|
-
}
|
|
76
|
-
update(e, i) {
|
|
77
|
-
const { state: p } = e, m = p.selection.from !== p.selection.to;
|
|
78
|
-
if (this.updateDelay > 0 && m) {
|
|
79
|
-
this.handleDebouncedUpdate(e, i);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const f = !(i != null && i.selection.eq(e.state.selection)), c = !(i != null && i.doc.eq(e.state.doc));
|
|
83
|
-
this.updateHandler(e, f, c, i);
|
|
84
|
-
}
|
|
85
|
-
show() {
|
|
86
|
-
var e;
|
|
87
|
-
(e = this.tippy) === null || e === void 0 || e.show();
|
|
88
|
-
}
|
|
89
|
-
hide() {
|
|
90
|
-
var e;
|
|
91
|
-
(e = this.tippy) === null || e === void 0 || e.hide();
|
|
92
|
-
}
|
|
93
|
-
destroy() {
|
|
94
|
-
var e, i;
|
|
95
|
-
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (i = this.tippy) === null || i === void 0 || i.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const _ = (d) => new O({
|
|
99
|
-
key: typeof d.pluginKey == "string" ? new M(d.pluginKey) : d.pluginKey,
|
|
100
|
-
view: (e) => new R({ view: e, ...d })
|
|
101
|
-
});
|
|
102
|
-
D.create({
|
|
103
|
-
name: "bubbleMenu",
|
|
104
|
-
addOptions() {
|
|
105
|
-
return {
|
|
106
|
-
element: null,
|
|
107
|
-
tippyOptions: {},
|
|
108
|
-
pluginKey: "bubbleMenu",
|
|
109
|
-
updateDelay: void 0,
|
|
110
|
-
shouldShow: null
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
addProseMirrorPlugins() {
|
|
114
|
-
return this.options.element ? [
|
|
115
|
-
_({
|
|
116
|
-
pluginKey: this.options.pluginKey,
|
|
117
|
-
editor: this.editor,
|
|
118
|
-
element: this.options.element,
|
|
119
|
-
tippyOptions: this.options.tippyOptions,
|
|
120
|
-
updateDelay: this.options.updateDelay,
|
|
121
|
-
shouldShow: this.options.shouldShow
|
|
122
|
-
})
|
|
123
|
-
] : [];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
export {
|
|
127
|
-
_ as B
|
|
128
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { N as o, w as e, m as n } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const p = "listItem", s = "textStyle", i = /^\s*([-+*])\s$/, a = o.create({
|
|
3
|
-
name: "bulletList",
|
|
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
|
-
parseHTML() {
|
|
17
|
-
return [
|
|
18
|
-
{ tag: "ul" }
|
|
19
|
-
];
|
|
20
|
-
},
|
|
21
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
22
|
-
return ["ul", n(this.options.HTMLAttributes, t), 0];
|
|
23
|
-
},
|
|
24
|
-
addCommands() {
|
|
25
|
-
return {
|
|
26
|
-
toggleBulletList: () => ({ commands: t, chain: r }) => this.options.keepAttributes ? r().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(p, this.editor.getAttributes(s)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
addKeyboardShortcuts() {
|
|
30
|
-
return {
|
|
31
|
-
"Mod-Shift-8": () => this.editor.commands.toggleBulletList()
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
addInputRules() {
|
|
35
|
-
let t = e({
|
|
36
|
-
find: i,
|
|
37
|
-
type: this.type
|
|
38
|
-
});
|
|
39
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t = e({
|
|
40
|
-
find: i,
|
|
41
|
-
type: this.type,
|
|
42
|
-
keepMarks: this.options.keepMarks,
|
|
43
|
-
keepAttributes: this.options.keepAttributes,
|
|
44
|
-
getAttributes: () => this.editor.getAttributes(s),
|
|
45
|
-
editor: this.editor
|
|
46
|
-
})), [
|
|
47
|
-
t
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
a as B
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(u,a){"use strict";var i,s,r;return{setters:[e=>{i=e.N,s=e.w,r=e.m}],execute:function(){const e="listItem",n="textStyle",o=/^\s*([-+*])\s$/,l=u("B",i.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",r(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:p})=>this.options.keepAttributes?p().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(e,this.editor.getAttributes(n)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=s({find:o,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=s({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(n),editor:this.editor})),[t]}}))}}});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { M as t, a as r, b as s, m as a } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const n = /(^|[^`])`([^`]+)`(?!`)/, d = /(^|[^`])`([^`]+)`(?!`)/g, u = t.create({
|
|
3
|
-
name: "code",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
excludes: "_",
|
|
10
|
-
code: !0,
|
|
11
|
-
exitable: !0,
|
|
12
|
-
parseHTML() {
|
|
13
|
-
return [
|
|
14
|
-
{ tag: "code" }
|
|
15
|
-
];
|
|
16
|
-
},
|
|
17
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
18
|
-
return ["code", a(this.options.HTMLAttributes, e), 0];
|
|
19
|
-
},
|
|
20
|
-
addCommands() {
|
|
21
|
-
return {
|
|
22
|
-
setCode: () => ({ commands: e }) => e.setMark(this.name),
|
|
23
|
-
toggleCode: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
24
|
-
unsetCode: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
addKeyboardShortcuts() {
|
|
28
|
-
return {
|
|
29
|
-
"Mod-e": () => this.editor.commands.toggleCode()
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
addInputRules() {
|
|
33
|
-
return [
|
|
34
|
-
s({
|
|
35
|
-
find: n,
|
|
36
|
-
type: this.type
|
|
37
|
-
})
|
|
38
|
-
];
|
|
39
|
-
},
|
|
40
|
-
addPasteRules() {
|
|
41
|
-
return [
|
|
42
|
-
r({
|
|
43
|
-
find: d,
|
|
44
|
-
type: this.type
|
|
45
|
-
})
|
|
46
|
-
];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
u as C
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(a,o){"use strict";var r,s,n,u;return{setters:[t=>{r=t.M,s=t.a,n=t.b,u=t.m}],execute:function(){const t=/(^|[^`])`([^`]+)`(?!`)/,d=/(^|[^`])`([^`]+)`(?!`)/g,i=a("C",r.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",u(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[n({find:t,type:this.type})]},addPasteRules(){return[s({find:d,type:this.type})]}}))}}});
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { E as c, g as m, d as f, p as y } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { P as v, a as g } from "../prosemirror-state-BW6XGB3U.es.js";
|
|
3
|
-
import { t as w } from "../tippy.js-i1ic-msv.es.js";
|
|
4
|
-
class H {
|
|
5
|
-
getTextContent(t) {
|
|
6
|
-
return m(t, { textSerializers: f(this.editor.schema) });
|
|
7
|
-
}
|
|
8
|
-
constructor({ editor: t, element: i, view: l, tippyOptions: h = {}, shouldShow: n }) {
|
|
9
|
-
this.preventHide = !1, this.shouldShow = ({ view: e, state: o }) => {
|
|
10
|
-
const { selection: p } = o, { $anchor: s, empty: d } = p, u = s.depth === 1, a = s.parent.isTextblock && !s.parent.type.spec.code && !s.parent.textContent && s.parent.childCount === 0 && !this.getTextContent(s.parent);
|
|
11
|
-
return !(!e.hasFocus() || !d || !u || !a || !this.editor.isEditable);
|
|
12
|
-
}, this.mousedownHandler = () => {
|
|
13
|
-
this.preventHide = !0;
|
|
14
|
-
}, this.focusHandler = () => {
|
|
15
|
-
setTimeout(() => this.update(this.editor.view));
|
|
16
|
-
}, this.blurHandler = ({ event: e }) => {
|
|
17
|
-
var o;
|
|
18
|
-
if (this.preventHide) {
|
|
19
|
-
this.preventHide = !1;
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
e != null && e.relatedTarget && (!((o = this.element.parentNode) === null || o === void 0) && o.contains(e.relatedTarget)) || (e == null ? void 0 : e.relatedTarget) !== this.editor.view.dom && this.hide();
|
|
23
|
-
}, this.tippyBlurHandler = (e) => {
|
|
24
|
-
this.blurHandler({ event: e });
|
|
25
|
-
}, this.editor = t, this.element = i, this.view = l, n && (this.shouldShow = n), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = h, this.element.remove(), this.element.style.visibility = "visible";
|
|
26
|
-
}
|
|
27
|
-
createTooltip() {
|
|
28
|
-
const { element: t } = this.editor.options, i = !!t.parentElement;
|
|
29
|
-
this.tippy || !i || (this.tippy = w(t, {
|
|
30
|
-
duration: 0,
|
|
31
|
-
getReferenceClientRect: null,
|
|
32
|
-
content: this.element,
|
|
33
|
-
interactive: !0,
|
|
34
|
-
trigger: "manual",
|
|
35
|
-
placement: "right",
|
|
36
|
-
hideOnClick: "toggle",
|
|
37
|
-
...this.tippyOptions
|
|
38
|
-
}), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
|
|
39
|
-
}
|
|
40
|
-
update(t, i) {
|
|
41
|
-
var l, h, n;
|
|
42
|
-
const { state: e } = t, { doc: o, selection: p } = e, { from: s, to: d } = p;
|
|
43
|
-
if (i && i.doc.eq(o) && i.selection.eq(p))
|
|
44
|
-
return;
|
|
45
|
-
if (this.createTooltip(), !((l = this.shouldShow) === null || l === void 0 ? void 0 : l.call(this, {
|
|
46
|
-
editor: this.editor,
|
|
47
|
-
view: t,
|
|
48
|
-
state: e,
|
|
49
|
-
oldState: i
|
|
50
|
-
}))) {
|
|
51
|
-
this.hide();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
(h = this.tippy) === null || h === void 0 || h.setProps({
|
|
55
|
-
getReferenceClientRect: ((n = this.tippyOptions) === null || n === void 0 ? void 0 : n.getReferenceClientRect) || (() => y(t, s, d))
|
|
56
|
-
}), this.show();
|
|
57
|
-
}
|
|
58
|
-
show() {
|
|
59
|
-
var t;
|
|
60
|
-
(t = this.tippy) === null || t === void 0 || t.show();
|
|
61
|
-
}
|
|
62
|
-
hide() {
|
|
63
|
-
var t;
|
|
64
|
-
(t = this.tippy) === null || t === void 0 || t.hide();
|
|
65
|
-
}
|
|
66
|
-
destroy() {
|
|
67
|
-
var t, i;
|
|
68
|
-
!((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (i = this.tippy) === null || i === void 0 || i.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const b = (r) => new v({
|
|
72
|
-
key: typeof r.pluginKey == "string" ? new g(r.pluginKey) : r.pluginKey,
|
|
73
|
-
view: (t) => new H({ view: t, ...r })
|
|
74
|
-
}), E = c.create({
|
|
75
|
-
name: "floatingMenu",
|
|
76
|
-
addOptions() {
|
|
77
|
-
return {
|
|
78
|
-
element: null,
|
|
79
|
-
tippyOptions: {},
|
|
80
|
-
pluginKey: "floatingMenu",
|
|
81
|
-
shouldShow: null
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
addProseMirrorPlugins() {
|
|
85
|
-
return this.options.element ? [
|
|
86
|
-
b({
|
|
87
|
-
pluginKey: this.options.pluginKey,
|
|
88
|
-
editor: this.editor,
|
|
89
|
-
element: this.options.element,
|
|
90
|
-
tippyOptions: this.options.tippyOptions,
|
|
91
|
-
shouldShow: this.options.shouldShow
|
|
92
|
-
})
|
|
93
|
-
] : [];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
E as F,
|
|
98
|
-
b as a
|
|
99
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../prosemirror-state-COJ-aZZ4.system.js","../tippy.js-6wuFov1j.system.js"],function(a,C){"use strict";var c,y,m,v,f,g,w;return{setters:[s=>{c=s.E,y=s.g,m=s.d,v=s.p},s=>{f=s.P,g=s.a},s=>{w=s.t}],execute:function(){class s{getTextContent(t){return y(t,{textSerializers:m(this.editor.schema)})}constructor({editor:t,element:i,view:h,tippyOptions:p={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:e,state:o})=>{const{selection:d}=o,{$anchor:n,empty:u}=d,H=n.depth===1,b=n.parent.isTextblock&&!n.parent.type.spec.code&&!n.parent.textContent&&n.parent.childCount===0&&!this.getTextContent(n.parent);return!(!e.hasFocus()||!u||!H||!b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var o;if(this.preventHide){this.preventHide=!1;return}e!=null&&e.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(e.relatedTarget))||(e==null?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=t,this.element=i,this.view=h,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=p,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,i=!!t.parentElement;this.tippy||!i||(this.tippy=w(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,i){var h,p,r;const{state:e}=t,{doc:o,selection:d}=e,{from:n,to:u}=d;if(i&&i.doc.eq(o)&&i.selection.eq(d))return;if(this.createTooltip(),!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:t,state:e,oldState:i}))){this.hide();return}(p=this.tippy)===null||p===void 0||p.setProps({getReferenceClientRect:((r=this.tippyOptions)===null||r===void 0?void 0:r.getReferenceClientRect)||(()=>v(t,n,u))}),this.show()}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,i;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(i=this.tippy)===null||i===void 0||i.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const T=a("a",l=>new f({key:typeof l.pluginKey=="string"?new g(l.pluginKey):l.pluginKey,view:t=>new s({view:t,...l})})),E=a("F",c.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[T({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}))}}});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { N as s, t as n, m as r } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const a = s.create({
|
|
3
|
-
name: "heading",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
levels: [1, 2, 3, 4, 5, 6],
|
|
7
|
-
HTMLAttributes: {}
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
content: "inline*",
|
|
11
|
-
group: "block",
|
|
12
|
-
defining: !0,
|
|
13
|
-
addAttributes() {
|
|
14
|
-
return {
|
|
15
|
-
level: {
|
|
16
|
-
default: 1,
|
|
17
|
-
rendered: !1
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
parseHTML() {
|
|
22
|
-
return this.options.levels.map((e) => ({
|
|
23
|
-
tag: `h${e}`,
|
|
24
|
-
attrs: { level: e }
|
|
25
|
-
}));
|
|
26
|
-
},
|
|
27
|
-
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
28
|
-
return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, r(this.options.HTMLAttributes, t), 0];
|
|
29
|
-
},
|
|
30
|
-
addCommands() {
|
|
31
|
-
return {
|
|
32
|
-
setHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.setNode(this.name, e) : !1,
|
|
33
|
-
toggleHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.toggleNode(this.name, "paragraph", e) : !1
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
addKeyboardShortcuts() {
|
|
37
|
-
return this.options.levels.reduce((e, t) => ({
|
|
38
|
-
...e,
|
|
39
|
-
[`Mod-Alt-${t}`]: () => this.editor.commands.toggleHeading({ level: t })
|
|
40
|
-
}), {});
|
|
41
|
-
},
|
|
42
|
-
addInputRules() {
|
|
43
|
-
return this.options.levels.map((e) => n({
|
|
44
|
-
find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
|
|
45
|
-
type: this.type,
|
|
46
|
-
getAttributes: {
|
|
47
|
-
level: e
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
a as H
|
|
54
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(l,o){"use strict";var n,r,i;return{setters:[s=>{n=s.N,r=s.t,i=s.m}],execute:function(){const s=l("H",n.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,i(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>r({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js","../prosemirror-history-BTrzvpc-.system.js"],function(i,u){"use strict";var e,s,d,n;return{setters:[r=>{e=r.E},r=>{s=r.h,d=r.r,n=r.u}],execute:function(){const r=i("H",e.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:o,dispatch:t})=>n(o,t),redo:()=>({state:o,dispatch:t})=>d(o,t)}},addProseMirrorPlugins(){return[s(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}))}}});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { E as d } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
import { h as t, r as s, u as e } from "../prosemirror-history-BPOe4I2H.es.js";
|
|
3
|
-
const a = d.create({
|
|
4
|
-
name: "history",
|
|
5
|
-
addOptions() {
|
|
6
|
-
return {
|
|
7
|
-
depth: 100,
|
|
8
|
-
newGroupDelay: 500
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
addCommands() {
|
|
12
|
-
return {
|
|
13
|
-
undo: () => ({ state: o, dispatch: r }) => e(o, r),
|
|
14
|
-
redo: () => ({ state: o, dispatch: r }) => s(o, r)
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
addProseMirrorPlugins() {
|
|
18
|
-
return [
|
|
19
|
-
t(this.options)
|
|
20
|
-
];
|
|
21
|
-
},
|
|
22
|
-
addKeyboardShortcuts() {
|
|
23
|
-
return {
|
|
24
|
-
"Mod-z": () => this.editor.commands.undo(),
|
|
25
|
-
"Shift-Mod-z": () => this.editor.commands.redo(),
|
|
26
|
-
"Mod-y": () => this.editor.commands.redo(),
|
|
27
|
-
// Russian keyboard layouts
|
|
28
|
-
"Mod-я": () => this.editor.commands.undo(),
|
|
29
|
-
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
a as H
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./core-D4rHEGhs.system.js"],function(u,o){"use strict";var r,s,i;return{setters:[t=>{r=t.N,s=t.n,i=t.m}],execute:function(){const t=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,d=u("I",r.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",i(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:n})=>n.insertContent({type:this.name,attrs:e})}},addInputRules(){return[s({find:t,type:this.type,getAttributes:e=>{const[,,n,a,l]=e;return{src:a,alt:n,title:l}}})]}}))}}});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { N as s, n as i, m as a } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const l = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = s.create({
|
|
3
|
-
name: "image",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
inline: !1,
|
|
7
|
-
allowBase64: !1,
|
|
8
|
-
HTMLAttributes: {}
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
inline() {
|
|
12
|
-
return this.options.inline;
|
|
13
|
-
},
|
|
14
|
-
group() {
|
|
15
|
-
return this.options.inline ? "inline" : "block";
|
|
16
|
-
},
|
|
17
|
-
draggable: !0,
|
|
18
|
-
addAttributes() {
|
|
19
|
-
return {
|
|
20
|
-
src: {
|
|
21
|
-
default: null
|
|
22
|
-
},
|
|
23
|
-
alt: {
|
|
24
|
-
default: null
|
|
25
|
-
},
|
|
26
|
-
title: {
|
|
27
|
-
default: null
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
parseHTML() {
|
|
32
|
-
return [
|
|
33
|
-
{
|
|
34
|
-
tag: this.options.allowBase64 ? "img[src]" : 'img[src]:not([src^="data:"])'
|
|
35
|
-
}
|
|
36
|
-
];
|
|
37
|
-
},
|
|
38
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
39
|
-
return ["img", a(this.options.HTMLAttributes, t)];
|
|
40
|
-
},
|
|
41
|
-
addCommands() {
|
|
42
|
-
return {
|
|
43
|
-
setImage: (t) => ({ commands: e }) => e.insertContent({
|
|
44
|
-
type: this.name,
|
|
45
|
-
attrs: t
|
|
46
|
-
})
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
addInputRules() {
|
|
50
|
-
return [
|
|
51
|
-
i({
|
|
52
|
-
find: l,
|
|
53
|
-
type: this.type,
|
|
54
|
-
getAttributes: (t) => {
|
|
55
|
-
const [, , e, n, r] = t;
|
|
56
|
-
return { src: n, alt: e, title: r };
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
o as I
|
|
64
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { M as r, a as e, b as s, m as a } from "./core-DSbPv8xh.es.js";
|
|
2
|
-
const n = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, d = r.create({
|
|
3
|
-
name: "italic",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
tag: "em"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
tag: "i",
|
|
16
|
-
getAttrs: (t) => t.style.fontStyle !== "normal" && null
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
style: "font-style=normal",
|
|
20
|
-
clearMark: (t) => t.type.name === this.name
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
style: "font-style=italic"
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
},
|
|
27
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
28
|
-
return ["em", a(this.options.HTMLAttributes, t), 0];
|
|
29
|
-
},
|
|
30
|
-
addCommands() {
|
|
31
|
-
return {
|
|
32
|
-
setItalic: () => ({ commands: t }) => t.setMark(this.name),
|
|
33
|
-
toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
34
|
-
unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
addKeyboardShortcuts() {
|
|
38
|
-
return {
|
|
39
|
-
"Mod-i": () => this.editor.commands.toggleItalic(),
|
|
40
|
-
"Mod-I": () => this.editor.commands.toggleItalic()
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
addInputRules() {
|
|
44
|
-
return [
|
|
45
|
-
s({
|
|
46
|
-
find: n,
|
|
47
|
-
type: this.type
|
|
48
|
-
}),
|
|
49
|
-
s({
|
|
50
|
-
find: o,
|
|
51
|
-
type: this.type
|
|
52
|
-
})
|
|
53
|
-
];
|
|
54
|
-
},
|
|
55
|
-
addPasteRules() {
|
|
56
|
-
return [
|
|
57
|
-
e({
|
|
58
|
-
find: i,
|
|
59
|
-
type: this.type
|
|
60
|
-
}),
|
|
61
|
-
e({
|
|
62
|
-
find: l,
|
|
63
|
-
type: this.type
|
|
64
|
-
})
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
d as I
|
|
70
|
-
};
|