@fewangsit/wangsvue-fats 1.0.1-alpha.8 → 1.0.1-rc.0
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/animation/Animation.es.js +390 -0
- package/{components/animation/Animation.vue.d.ts → animation/index.d.ts} +1 -1
- package/approverinfo/index.es.js +127 -0
- package/approverinfo/package.json +4 -0
- package/assetinfo/AssetInfo.es.js +179 -0
- package/{components/assetinfo/AssetInfo.vue.d.ts → assetinfo/index.d.ts} +2 -5
- package/assetinfo/index.es.js +4 -0
- package/assetinfo/package.json +4 -0
- package/assets/lottiejs/loading-page.es.js +15 -0
- package/assets/lottiejs/loading-table.es.js +15 -0
- package/{no-data-DLHO1L_u.js → assets/lottiejs/no-data.es.js} +13 -2
- package/backgroundimagecropper/BackgroundImageCropper.es.js +57 -0
- package/badge/index.es.js +99 -0
- package/badge/package.json +4 -0
- package/{components/badgegroup/BadgeGroup.vue.d.ts → badgegroup/index.d.ts} +1 -1
- package/badgegroup/index.es.js +68 -0
- package/badgegroup/package.json +4 -0
- package/basecalendar/BaseCalendar.es.js +876 -0
- package/basetree/index.es.js +169 -0
- package/basetree/package.json +4 -0
- package/breadcrumb/index.es.js +46 -0
- package/breadcrumb/package.json +4 -0
- package/button/Button.es.js +120 -0
- package/{components/button/Button.vue.d.ts → button/index.d.ts} +3 -2
- package/button/index.es.js +4 -0
- package/button/package.json +4 -0
- package/{components/buttonImportExcel/ButtonImportExcel.vue.d.ts → buttonImportExcel/index.d.ts} +2 -2
- package/{components/buttonaddbyscan/ButtonAddByScan.vue.d.ts → buttonaddbyscan/index.d.ts} +2 -2
- package/buttonaddbyscan/index.es.js +148 -0
- package/buttonaddbyscan/package.json +4 -0
- package/buttonbulkaction/ButtonBulkAction.es.js +238 -0
- package/buttonbulkaction/index.es.js +4 -0
- package/buttonbulkaction/package.json +4 -0
- package/buttoncopy/index.es.js +31 -0
- package/buttoncopy/package.json +4 -0
- package/{components/buttondownload/ButtonDownload.vue.d.ts → buttondownload/index.d.ts} +1 -1
- package/buttondownload/index.es.js +113 -0
- package/buttondownload/package.json +4 -0
- package/buttonfilter/index.es.js +31 -0
- package/buttonfilter/package.json +4 -0
- package/buttonradio/index.es.js +93 -0
- package/buttonradio/package.json +4 -0
- package/buttonscan/ButtonScan.es.js +416 -0
- package/{components/buttonscan/ButtonScan.vue.d.ts → buttonscan/index.d.ts} +3 -3
- package/buttonscan/index.es.js +4 -0
- package/buttonscan/package.json +4 -0
- package/buttonsearch/index.es.js +70 -0
- package/buttonsearch/package.json +4 -0
- package/{components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts → buttonsearchbyscan/index.d.ts} +2 -2
- package/buttonsearchbyscan/index.es.js +90 -0
- package/buttonsearchbyscan/package.json +4 -0
- package/{components/buttonselecttree/ButtonSelectTree.vue.d.ts → buttonselecttree/index.d.ts} +2 -2
- package/buttonselecttree/index.es.js +220 -0
- package/buttonselecttree/package.json +4 -0
- package/buttonselectuser/index.d.ts +7 -0
- package/buttonselectuser/index.es.js +101 -0
- package/buttonselectuser/package.json +4 -0
- package/{components/buttonsplit/ButtonSplit.vue.d.ts → buttonsplit/index.d.ts} +1 -1
- package/buttonsync/index.es.js +29 -0
- package/buttonsync/package.json +4 -0
- package/{components/buttontoggle/ButtonToggle.vue.d.ts → buttontoggle/index.d.ts} +1 -4
- package/buttontoggle/index.es.js +11 -0
- package/buttontoggle/package.json +4 -0
- package/{components/buttonviewlog/ButtonViewLog.vue.d.ts → buttonviewlog/index.d.ts} +1 -1
- package/buttonviewlog/index.es.js +21 -0
- package/buttonviewlog/package.json +4 -0
- package/{components/calendar/Calendar.vue.d.ts → calendar/index.d.ts} +1 -1
- package/calendar/index.es.js +117 -0
- package/calendar/package.json +4 -0
- package/card/index.es.js +47 -0
- package/card/package.json +4 -0
- package/{components/carousel/Carousel.vue.d.ts → carousel/index.d.ts} +1 -1
- package/carousel/index.es.js +65 -0
- package/carousel/package.json +4 -0
- package/checkbox/index.es.js +135 -0
- package/checkbox/package.json +4 -0
- package/codesnippet/CodeSnippet.es.js +118 -0
- package/codesnippetadapter/CodeSnippetAdapter.es.js +26 -0
- package/columnlist/ColumnList.es.js +204 -0
- package/components.d.ts +83 -0
- package/config/index.es.js +220 -0
- package/config/package.json +4 -0
- package/{components/customcolumn/CustomColumn.vue.d.ts → customcolumn/index.d.ts} +1 -1
- package/customcolumn/index.es.js +138 -0
- package/customcolumn/package.json +4 -0
- package/{components/datatable/DataTable.vue.d.ts → datatable/index.d.ts} +4 -4
- package/datatable/index.es.js +979 -0
- package/datatable/package.json +4 -0
- package/datepicker/DatePicker.es.js +224 -0
- package/datepicker/index.es.js +4 -0
- package/datepicker/package.json +4 -0
- package/daypicker/index.es.js +134 -0
- package/daypicker/package.json +4 -0
- package/dialog/index.es.js +121 -0
- package/dialog/package.json +4 -0
- package/dialogassetnamedetail/index.es.js +246 -0
- package/dialogassetnamedetail/options/columns.d.ts +2 -0
- package/dialogassetnamedetail/options/filter.d.ts +2 -0
- package/dialogassetnamedetail/package.json +4 -0
- package/dialogbasictransferlog/DialogBasicTransferLog.es.js +225 -0
- package/{components/dialogconfirm/DialogConfirm.vue.d.ts → dialogconfirm/index.d.ts} +1 -1
- package/dialogconfirm/index.es.js +140 -0
- package/dialogconfirm/package.json +4 -0
- package/dialogdamagelog/index.d.ts +7 -0
- package/dialogdamagelog/index.es.js +245 -0
- package/dialogdamagelog/package.json +4 -0
- package/{components/dialogform/DialogForm.vue.d.ts → dialogform/index.d.ts} +2 -2
- package/dialogform/index.es.js +223 -0
- package/dialogform/package.json +4 -0
- package/dialogfulltransferlog/DialogFullTransferLog.es.js +237 -0
- package/{components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts → dialoglinkedasset/index.d.ts} +0 -3
- package/dialoglinkedasset/index.es.js +158 -0
- package/dialoglinkedasset/package.json +4 -0
- package/dialogprintqr/DialogPrintQR.es.js +334 -0
- package/{components/dialogprintqr/DialogPrintQR.vue.d.ts → dialogprintqr/index.d.ts} +1 -1
- package/dialogprintqr/index.es.js +4 -0
- package/dialogprintqr/package.json +4 -0
- package/{components/dialogreportdamage/DialogReportDamage.vue.d.ts → dialogreportdamage/index.d.ts} +1 -1
- package/dialogreportdamage/index.es.js +240 -0
- package/dialogreportdamage/package.json +4 -0
- package/{components/dialogreportmissing/DialogReportMissing.vue.d.ts → dialogreportmissing/index.d.ts} +1 -1
- package/dialogreportmissing/index.es.js +116 -0
- package/dialogreportmissing/package.json +4 -0
- package/{components/dialogreporttag/DialogReportTag.vue.d.ts → dialogreporttag/index.d.ts} +1 -1
- package/dialogreporttag/index.es.js +130 -0
- package/dialogreporttag/package.json +4 -0
- package/{components/dialogselecttree/DialogSelectTree.vue.d.ts → dialogselecttree/index.d.ts} +3 -3
- package/dialogselecttree/index.es.js +269 -0
- package/dialogselecttree/package.json +4 -0
- package/{components/dialogselectuser/DialogSelectUser.vue.d.ts → dialogselectuser/index.d.ts} +4 -6
- package/dialogselectuser/index.es.js +186 -0
- package/{components/dialogselectuser → dialogselectuser}/options/columns.d.ts +1 -1
- package/dialogselectuser/package.json +4 -0
- package/dialogselectuserfilter/DialogSelectUserFilter.es.js +40 -0
- package/{components/dialogtransferlog/DialogTransferLog.vue.d.ts → dialogtransferlog/index.d.ts} +1 -1
- package/dialogtransferlog/index.es.js +32 -0
- package/dialogtransferlog/package.json +4 -0
- package/directives/focus/index.es.js +13 -0
- package/directives/focus/package.json +4 -0
- package/directives/index.d.ts +1 -0
- package/directives/tooltip/index.es.js +4 -0
- package/directives/tooltip/package.json +4 -0
- package/directives/tooltip.d.ts +1 -0
- package/disposalreport/index.d.ts +15 -0
- package/disposalreport/index.es.js +32 -0
- package/disposalreport/package.json +4 -0
- package/disposalreportbulkaction/DisposalReportBulkAction.es.js +79 -0
- package/disposalreporttable/DisposalReportTable.es.js +311 -0
- package/disposalreporttablefilter/DisposalReportTableFilter.es.js +74 -0
- package/{components/dropdown/Dropdown.vue.d.ts → dropdown/index.d.ts} +3 -3
- package/dropdown/index.es.js +243 -0
- package/dropdown/package.json +4 -0
- package/editor/Editor.es.js +964 -0
- package/editorbutton/EditorButton.es.js +28 -0
- package/event-bus/index.d.ts +2 -2
- package/event-bus/index.es.js +5 -0
- package/event-bus/package.json +4 -0
- package/fieldwrapper/FieldWrapper.es.js +40 -0
- package/{components/fileupload/FileUpload.vue.d.ts → fileupload/index.d.ts} +3 -3
- package/fileupload/index.es.js +176 -0
- package/fileupload/package.json +4 -0
- package/{components/filtercontainer/FilterContainer.vue.d.ts → filtercontainer/index.d.ts} +7 -10
- package/filtercontainer/index.es.js +290 -0
- package/filtercontainer/package.json +4 -0
- package/form/index.es.js +188 -0
- package/form/package.json +4 -0
- package/hardwaresync/HardwareSync.es.js +236 -0
- package/icon/index.es.js +82 -0
- package/icon/package.json +4 -0
- package/image/index.es.js +171 -0
- package/image/package.json +4 -0
- package/{components/imagecompressor/ImageCompressor.vue.d.ts → imagecompressor/index.d.ts} +1 -1
- package/imagecompressor/index.es.js +529 -0
- package/imagecompressor/package.json +4 -0
- package/imageinputinfo/ImageInputInfo.es.js +46 -0
- package/index.d.ts +2 -0
- package/inlinemessage/index.es.js +94 -0
- package/inlinemessage/package.json +4 -0
- package/{components/inputbadge/InputBadge.vue.d.ts → inputbadge/index.d.ts} +1 -1
- package/inputbadge/index.es.js +187 -0
- package/inputbadge/package.json +4 -0
- package/inputcurrency/InputCurrency.es.js +150 -0
- package/{components/inputcurrency/helpers/currency.helper.d.ts → inputcurrency/helpers/index.d.ts} +1 -1
- package/inputcurrency/helpers/index.es.js +5 -0
- package/inputcurrency/helpers/package.json +4 -0
- package/{components/inputcurrency/InputCurrency.vue.d.ts → inputcurrency/index.d.ts} +1 -1
- package/inputcurrency/index.es.js +4 -0
- package/inputcurrency/package.json +4 -0
- package/{components/inputemail/InputEmail.vue.d.ts → inputemail/index.d.ts} +1 -1
- package/inputemail/index.es.js +49 -0
- package/inputemail/package.json +4 -0
- package/inputgroup/InputGroup.es.js +31 -0
- package/{components/inputnumber/InputNumber.vue.d.ts → inputnumber/index.d.ts} +1 -1
- package/inputnumber/index.es.js +240 -0
- package/inputnumber/package.json +4 -0
- package/inputotp/index.es.js +30 -0
- package/inputotp/package.json +4 -0
- package/{components/inputpassword/InputPassword.vue.d.ts → inputpassword/index.d.ts} +1 -1
- package/inputpassword/index.es.js +121 -0
- package/inputpassword/package.json +4 -0
- package/inputphonenumber/index.es.js +593 -0
- package/inputphonenumber/package.json +4 -0
- package/{components/inputrangenumber/InputRangeNumber.vue.d.ts → inputrangenumber/index.d.ts} +1 -1
- package/inputrangenumber/index.es.js +134 -0
- package/inputrangenumber/package.json +4 -0
- package/{components/inputsearch/InputSearch.vue.d.ts → inputsearch/index.d.ts} +1 -4
- package/inputsearch/index.es.js +53 -0
- package/inputsearch/package.json +4 -0
- package/{components/inputtext/InputText.vue.d.ts → inputtext/index.d.ts} +1 -1
- package/inputtext/index.es.js +242 -0
- package/inputtext/package.json +4 -0
- package/{components/inputurl/InputURL.vue.d.ts → inputurl/index.d.ts} +1 -4
- package/inputurl/index.es.js +61 -0
- package/inputurl/package.json +4 -0
- package/invisiblefield/index.es.js +27 -0
- package/invisiblefield/package.json +4 -0
- package/{components/languagedropdown/LanguageDropdown.vue.d.ts → languagedropdown/index.d.ts} +1 -4
- package/languagedropdownoption/LanguageDropdownOption.es.js +51 -0
- package/languageswitcher/index.es.js +88 -0
- package/languageswitcher/package.json +4 -0
- package/{components/litedropdown/LiteDropdown.vue.d.ts → litedropdown/index.d.ts} +1 -1
- package/litedropdown/index.es.js +102 -0
- package/litedropdown/package.json +4 -0
- package/loading/index.es.js +24 -0
- package/loading/package.json +4 -0
- package/loading/store/index.es.js +5 -0
- package/loading/store/package.json +4 -0
- package/mentionlist/MentionList.es.js +58 -0
- package/mentionsection/MentionSection.es.js +52 -0
- package/menu/index.es.js +72 -0
- package/menu/package.json +4 -0
- package/menuitem/MenuItem.es.js +65 -0
- package/{components/menuitem → menuitem}/index.d.ts +1 -1
- package/multirow/MultiRow.es.js +52 -0
- package/{components/multiselect/MultiSelect.vue.d.ts → multiselect/index.d.ts} +2 -6
- package/multiselect/index.es.js +189 -0
- package/multiselect/package.json +4 -0
- package/overlaypanel/index.es.js +49 -0
- package/overlaypanel/package.json +4 -0
- package/package.json +10 -11
- package/paginator/index.es.js +50 -0
- package/paginator/package.json +4 -0
- package/plugins/WangsVue.d.ts +31 -46
- package/plugins/formValidation/index.es.js +15 -0
- package/plugins/formValidation/package.json +4 -0
- package/plugins/i18n/index.es.js +8 -0
- package/plugins/i18n/package.json +4 -0
- package/stats.html +1 -1
- package/{components/steps/Steps.vue.d.ts → steps/index.d.ts} +1 -1
- package/steps/index.es.js +41 -0
- package/steps/package.json +4 -0
- package/style.css +2 -2
- package/tabmenu/index.es.js +29 -0
- package/tabmenu/package.json +4 -0
- package/tagtype/index.es.js +53 -0
- package/tagtype/package.json +4 -0
- package/{components/textarea/Textarea.vue.d.ts → textarea/index.d.ts} +1 -1
- package/textarea/index.es.js +108 -0
- package/textarea/package.json +4 -0
- package/{components/timeline/Timeline.vue.d.ts → timeline/index.d.ts} +2 -2
- package/timeline/index.es.js +127 -0
- package/timeline/package.json +4 -0
- package/timelinecontentbytype/TimelineContentByType.es.js +111 -0
- package/{components/toast/Toast.vue.d.ts → toast/index.d.ts} +1 -1
- package/toast/index.es.js +74 -0
- package/toast/package.json +4 -0
- package/toast/service/index.d.ts +1 -0
- package/toast/service/index.es.js +5 -0
- package/toast/service/package.json +4 -0
- package/toggleswitch/index.es.js +90 -0
- package/toggleswitch/package.json +4 -0
- package/transactionroles/index.es.js +223 -0
- package/transactionroles/package.json +4 -0
- package/{components/tree → tree}/helpers/flattenTreeNodeChildren.helper.d.ts +1 -1
- package/{components/tree/Tree.vue.d.ts → tree/index.d.ts} +4 -3
- package/tree/index.es.js +261 -0
- package/tree/package.json +4 -0
- package/treenode/TreeNode.es.js +506 -0
- package/{components/basetree/TreeNode.vue.d.ts → treenode/index.d.ts} +1 -1
- package/treesearchinput/TreeSearchInput.es.js +56 -0
- package/username/index.es.js +146 -0
- package/username/package.json +4 -0
- package/{components/userwithicon/UserWithIcon.vue.d.ts → userwithicon/index.d.ts} +1 -1
- package/userwithicon/index.es.js +18 -0
- package/userwithicon/package.json +4 -0
- package/utils/addAttachment.util.es.js +10 -0
- package/utils/baseToast.util.d.ts +120 -0
- package/utils/baseToast.util.es.js +44 -0
- package/utils/date.util.es.js +219 -0
- package/utils/exportToExcel.util.d.ts +2 -6
- package/utils/exportToExcel.util.es.js +55 -0
- package/utils/filterOptions.util.es.js +4 -0
- package/utils/formatTagCode.util.es.js +18 -0
- package/utils/genPlaceholder.util.es.js +37 -0
- package/utils/getStatusSeverity.util.d.ts +1 -1
- package/utils/getStatusSeverity.util.es.js +37 -0
- package/utils/index.d.ts +2 -2
- package/utils/index.es.js +36 -0
- package/utils/isBasic.util.es.js +4 -0
- package/utils/listenSidebarChanges.util.d.ts +1 -1
- package/utils/listenSidebarChanges.util.es.js +15 -0
- package/utils/mergePropsWithDefaults.util.es.js +9 -0
- package/utils/object.util.es.js +61 -0
- package/utils/package.json +4 -0
- package/utils/role.util.es.js +71 -0
- package/utils/textFormatter.util.es.js +21 -0
- package/utils/toast.util.d.ts +3 -119
- package/utils/toast.util.es.js +15 -0
- package/utils/xlsx.util.es.js +6 -0
- package/validatormessage/index.es.js +19 -0
- package/validatormessage/package.json +4 -0
- package/vendor/@popperjs/core/lib/createPopper.es.js +122 -0
- package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +18 -0
- package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +23 -0
- package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +37 -0
- package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +32 -0
- package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +17 -0
- package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +9 -0
- package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +13 -0
- package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +6 -0
- package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +35 -0
- package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +18 -0
- package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +10 -0
- package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +21 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +12 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +11 -0
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +9 -0
- package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +20 -0
- package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +8 -0
- package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +7 -0
- package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +16 -0
- package/vendor/@popperjs/core/lib/enums.es.js +22 -0
- package/vendor/@popperjs/core/lib/index.es.js +1 -0
- package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +47 -0
- package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +37 -0
- package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +98 -0
- package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +26 -0
- package/vendor/@popperjs/core/lib/modifiers/flip.es.js +74 -0
- package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -0
- package/vendor/@popperjs/core/lib/modifiers/index.es.js +1 -0
- package/vendor/@popperjs/core/lib/modifiers/offset.es.js +30 -0
- package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +19 -0
- package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +54 -0
- package/vendor/@popperjs/core/lib/popper-lite.es.js +1 -0
- package/vendor/@popperjs/core/lib/popper.es.js +16 -0
- package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +27 -0
- package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +54 -0
- package/vendor/@popperjs/core/lib/utils/debounce.es.js +13 -0
- package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +33 -0
- package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +8 -0
- package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +11 -0
- package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +14 -0
- package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +12 -0
- package/vendor/@popperjs/core/lib/utils/getVariation.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/math.es.js +6 -0
- package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +15 -0
- package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +7 -0
- package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +31 -0
- package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +11 -0
- package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -0
- package/vendor/@popperjs/core/lib/utils/within.es.js +12 -0
- package/vendor/@tiptap/core/dist/index.es.js +2868 -0
- package/vendor/@tiptap/extension-bold/dist/index.es.js +71 -0
- package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +128 -0
- package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +53 -0
- package/vendor/@tiptap/extension-code/dist/index.es.js +51 -0
- package/vendor/@tiptap/extension-document/dist/index.es.js +9 -0
- package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +99 -0
- package/vendor/@tiptap/extension-heading/dist/index.es.js +54 -0
- package/vendor/@tiptap/extension-history/dist/index.es.js +35 -0
- package/vendor/@tiptap/extension-image/dist/index.es.js +64 -0
- package/vendor/@tiptap/extension-italic/dist/index.es.js +70 -0
- package/vendor/@tiptap/extension-link/dist/index.es.js +262 -0
- package/vendor/@tiptap/extension-list-item/dist/index.es.js +33 -0
- package/vendor/@tiptap/extension-mention/dist/index.es.js +130 -0
- package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +71 -0
- package/vendor/@tiptap/extension-paragraph/dist/index.es.js +33 -0
- package/vendor/@tiptap/extension-placeholder/dist/index.es.js +52 -0
- package/vendor/@tiptap/extension-text/dist/index.es.js +8 -0
- package/vendor/@tiptap/extension-underline/dist/index.es.js +40 -0
- package/vendor/@tiptap/pm/commands/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/history/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/keymap/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/model/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/schema-list/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/state/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/transform/dist/index.es.js +1 -0
- package/vendor/@tiptap/pm/view/dist/index.es.js +1 -0
- package/vendor/@tiptap/suggestion/dist/index.es.js +131 -0
- package/vendor/@tiptap/vue-3/dist/index.es.js +436 -0
- package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +19 -0
- package/vendor/@wangs-ui/core/components/p-BaJo52da.es.js +135 -0
- package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +149 -0
- package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +57 -0
- package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +158 -0
- package/vendor/@wangs-ui/core/components/p-DBIHoawY.es.js +171 -0
- package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +700 -0
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +34 -0
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +5 -0
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +5 -0
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +5 -0
- package/vendor/@wangs-ui/core/dist/esm/index-BRm3UDZx.es.js +324 -0
- package/vendor/@wangs-ui/core/dist/esm/index.es.js +1 -0
- package/vendor/@wangs-ui/core/dist/index.es.js +1 -0
- package/vendor/@wangs-ui/vue/dist/index.es.js +98 -0
- package/vendor/base64toblob/base64toblob.es.js +21 -0
- package/vendor/dijkstrajs/dijkstra.es.js +71 -0
- package/vendor/highlight.js/es/core.es.js +7 -0
- package/vendor/highlight.js/es/languages/javascript.es.js +656 -0
- package/vendor/highlight.js/es/languages/json.es.js +38 -0
- package/vendor/highlight.js/es/languages/typescript.es.js +743 -0
- package/vendor/highlight.js/es/languages/vbscript-html.es.js +16 -0
- package/vendor/highlight.js/lib/core.es.js +1063 -0
- package/vendor/linkifyjs/dist/linkify.es.es.js +705 -0
- package/vendor/lodash/_Symbol.es.js +11 -0
- package/vendor/lodash/_baseGetTag.es.js +16 -0
- package/vendor/lodash/_baseTrim.es.js +14 -0
- package/vendor/lodash/_freeGlobal.es.js +11 -0
- package/vendor/lodash/_getRawTag.es.js +21 -0
- package/vendor/lodash/_objectToString.es.js +13 -0
- package/vendor/lodash/_root.es.js +11 -0
- package/vendor/lodash/_trimmedEndIndex.es.js +15 -0
- package/vendor/lodash/debounce.es.js +60 -0
- package/vendor/lodash/isObject.es.js +13 -0
- package/vendor/lodash/isObjectLike.es.js +12 -0
- package/vendor/lodash/isSymbol.es.js +15 -0
- package/vendor/lodash/now.es.js +13 -0
- package/vendor/lodash/throttle.es.js +22 -0
- package/vendor/lodash/toNumber.es.js +28 -0
- package/vendor/lodash-es/_DataView.es.js +6 -0
- package/vendor/lodash-es/_Hash.es.js +20 -0
- package/vendor/lodash-es/_LazyWrapper.es.js +1 -0
- package/vendor/lodash-es/_ListCache.es.js +20 -0
- package/vendor/lodash-es/_LodashWrapper.es.js +1 -0
- package/vendor/lodash-es/_Map.es.js +6 -0
- package/vendor/lodash-es/_MapCache.es.js +20 -0
- package/vendor/lodash-es/_Promise.es.js +6 -0
- package/vendor/lodash-es/_Set.es.js +6 -0
- package/vendor/lodash-es/_SetCache.es.js +13 -0
- package/vendor/lodash-es/_Stack.es.js +18 -0
- package/vendor/lodash-es/_Symbol.es.js +5 -0
- package/vendor/lodash-es/_Uint8Array.es.js +5 -0
- package/vendor/lodash-es/_WeakMap.es.js +6 -0
- package/vendor/lodash-es/_apply.es.js +1 -0
- package/vendor/lodash-es/_arrayAggregator.es.js +1 -0
- package/vendor/lodash-es/_arrayEach.es.js +8 -0
- package/vendor/lodash-es/_arrayEachRight.es.js +1 -0
- package/vendor/lodash-es/_arrayEvery.es.js +1 -0
- package/vendor/lodash-es/_arrayFilter.es.js +10 -0
- package/vendor/lodash-es/_arrayIncludes.es.js +1 -0
- package/vendor/lodash-es/_arrayIncludesWith.es.js +1 -0
- package/vendor/lodash-es/_arrayLikeKeys.es.js +20 -0
- package/vendor/lodash-es/_arrayMap.es.js +1 -0
- package/vendor/lodash-es/_arrayPush.es.js +8 -0
- package/vendor/lodash-es/_arrayReduce.es.js +1 -0
- package/vendor/lodash-es/_arrayReduceRight.es.js +1 -0
- package/vendor/lodash-es/_arraySample.es.js +1 -0
- package/vendor/lodash-es/_arraySampleSize.es.js +1 -0
- package/vendor/lodash-es/_arrayShuffle.es.js +1 -0
- package/vendor/lodash-es/_arraySome.es.js +9 -0
- package/vendor/lodash-es/_asciiSize.es.js +1 -0
- package/vendor/lodash-es/_asciiToArray.es.js +1 -0
- package/vendor/lodash-es/_asciiWords.es.js +1 -0
- package/vendor/lodash-es/_assignMergeValue.es.js +1 -0
- package/vendor/lodash-es/_assignValue.es.js +10 -0
- package/vendor/lodash-es/_assocIndexOf.es.js +10 -0
- package/vendor/lodash-es/_baseAggregator.es.js +1 -0
- package/vendor/lodash-es/_baseAssign.es.js +1 -0
- package/vendor/lodash-es/_baseAssignIn.es.js +1 -0
- package/vendor/lodash-es/_baseAssignValue.es.js +12 -0
- package/vendor/lodash-es/_baseAt.es.js +1 -0
- package/vendor/lodash-es/_baseClamp.es.js +1 -0
- package/vendor/lodash-es/_baseClone.es.js +55 -0
- package/vendor/lodash-es/_baseConforms.es.js +1 -0
- package/vendor/lodash-es/_baseConformsTo.es.js +1 -0
- package/vendor/lodash-es/_baseCreate.es.js +17 -0
- package/vendor/lodash-es/_baseDelay.es.js +1 -0
- package/vendor/lodash-es/_baseDifference.es.js +1 -0
- package/vendor/lodash-es/_baseEach.es.js +1 -0
- package/vendor/lodash-es/_baseEachRight.es.js +1 -0
- package/vendor/lodash-es/_baseEvery.es.js +1 -0
- package/vendor/lodash-es/_baseExtremum.es.js +1 -0
- package/vendor/lodash-es/_baseFill.es.js +1 -0
- package/vendor/lodash-es/_baseFilter.es.js +1 -0
- package/vendor/lodash-es/_baseFindIndex.es.js +1 -0
- package/vendor/lodash-es/_baseFindKey.es.js +1 -0
- package/vendor/lodash-es/_baseFlatten.es.js +1 -0
- package/vendor/lodash-es/_baseFor.es.js +1 -0
- package/vendor/lodash-es/_baseForOwn.es.js +1 -0
- package/vendor/lodash-es/_baseForOwnRight.es.js +1 -0
- package/vendor/lodash-es/_baseForRight.es.js +1 -0
- package/vendor/lodash-es/_baseFunctions.es.js +1 -0
- package/vendor/lodash-es/_baseGet.es.js +1 -0
- package/vendor/lodash-es/_baseGetAllKeys.es.js +9 -0
- package/vendor/lodash-es/_baseGetTag.es.js +10 -0
- package/vendor/lodash-es/_baseGt.es.js +1 -0
- package/vendor/lodash-es/_baseHas.es.js +1 -0
- package/vendor/lodash-es/_baseHasIn.es.js +1 -0
- package/vendor/lodash-es/_baseInRange.es.js +1 -0
- package/vendor/lodash-es/_baseIndexOf.es.js +1 -0
- package/vendor/lodash-es/_baseIndexOfWith.es.js +1 -0
- package/vendor/lodash-es/_baseIntersection.es.js +1 -0
- package/vendor/lodash-es/_baseInverter.es.js +1 -0
- package/vendor/lodash-es/_baseInvoke.es.js +1 -0
- package/vendor/lodash-es/_baseIsArguments.es.js +9 -0
- package/vendor/lodash-es/_baseIsArrayBuffer.es.js +1 -0
- package/vendor/lodash-es/_baseIsDate.es.js +1 -0
- package/vendor/lodash-es/_baseIsEqual.es.js +8 -0
- package/vendor/lodash-es/_baseIsEqualDeep.es.js +32 -0
- package/vendor/lodash-es/_baseIsMap.es.js +9 -0
- package/vendor/lodash-es/_baseIsMatch.es.js +1 -0
- package/vendor/lodash-es/_baseIsNaN.es.js +1 -0
- package/vendor/lodash-es/_baseIsNative.es.js +16 -0
- package/vendor/lodash-es/_baseIsRegExp.es.js +1 -0
- package/vendor/lodash-es/_baseIsSet.es.js +9 -0
- package/vendor/lodash-es/_baseIsTypedArray.es.js +12 -0
- package/vendor/lodash-es/_baseIteratee.es.js +1 -0
- package/vendor/lodash-es/_baseKeys.es.js +14 -0
- package/vendor/lodash-es/_baseKeysIn.es.js +1 -0
- package/vendor/lodash-es/_baseLodash.es.js +1 -0
- package/vendor/lodash-es/_baseLt.es.js +1 -0
- package/vendor/lodash-es/_baseMap.es.js +1 -0
- package/vendor/lodash-es/_baseMatches.es.js +1 -0
- package/vendor/lodash-es/_baseMatchesProperty.es.js +1 -0
- package/vendor/lodash-es/_baseMean.es.js +1 -0
- package/vendor/lodash-es/_baseMerge.es.js +1 -0
- package/vendor/lodash-es/_baseMergeDeep.es.js +1 -0
- package/vendor/lodash-es/_baseNth.es.js +1 -0
- package/vendor/lodash-es/_baseOrderBy.es.js +1 -0
- package/vendor/lodash-es/_basePick.es.js +1 -0
- package/vendor/lodash-es/_basePickBy.es.js +1 -0
- package/vendor/lodash-es/_baseProperty.es.js +1 -0
- package/vendor/lodash-es/_basePropertyDeep.es.js +1 -0
- package/vendor/lodash-es/_basePropertyOf.es.js +1 -0
- package/vendor/lodash-es/_basePullAll.es.js +1 -0
- package/vendor/lodash-es/_basePullAt.es.js +1 -0
- package/vendor/lodash-es/_baseRandom.es.js +1 -0
- package/vendor/lodash-es/_baseRange.es.js +1 -0
- package/vendor/lodash-es/_baseReduce.es.js +1 -0
- package/vendor/lodash-es/_baseRepeat.es.js +1 -0
- package/vendor/lodash-es/_baseRest.es.js +1 -0
- package/vendor/lodash-es/_baseSample.es.js +1 -0
- package/vendor/lodash-es/_baseSampleSize.es.js +1 -0
- package/vendor/lodash-es/_baseSet.es.js +1 -0
- package/vendor/lodash-es/_baseSetData.es.js +1 -0
- package/vendor/lodash-es/_baseSetToString.es.js +1 -0
- package/vendor/lodash-es/_baseShuffle.es.js +1 -0
- package/vendor/lodash-es/_baseSlice.es.js +1 -0
- package/vendor/lodash-es/_baseSome.es.js +1 -0
- package/vendor/lodash-es/_baseSortBy.es.js +1 -0
- package/vendor/lodash-es/_baseSortedIndex.es.js +1 -0
- package/vendor/lodash-es/_baseSortedIndexBy.es.js +1 -0
- package/vendor/lodash-es/_baseSortedUniq.es.js +1 -0
- package/vendor/lodash-es/_baseSum.es.js +1 -0
- package/vendor/lodash-es/_baseTimes.es.js +8 -0
- package/vendor/lodash-es/_baseToNumber.es.js +1 -0
- package/vendor/lodash-es/_baseToPairs.es.js +1 -0
- package/vendor/lodash-es/_baseToString.es.js +1 -0
- package/vendor/lodash-es/_baseTrim.es.js +8 -0
- package/vendor/lodash-es/_baseUnary.es.js +8 -0
- package/vendor/lodash-es/_baseUniq.es.js +1 -0
- package/vendor/lodash-es/_baseUnset.es.js +1 -0
- package/vendor/lodash-es/_baseUpdate.es.js +1 -0
- package/vendor/lodash-es/_baseValues.es.js +1 -0
- package/vendor/lodash-es/_baseWhile.es.js +1 -0
- package/vendor/lodash-es/_baseWrapperValue.es.js +1 -0
- package/vendor/lodash-es/_baseXor.es.js +1 -0
- package/vendor/lodash-es/_baseZipObject.es.js +1 -0
- package/vendor/lodash-es/_cacheHas.es.js +6 -0
- package/vendor/lodash-es/_castArrayLikeObject.es.js +1 -0
- package/vendor/lodash-es/_castFunction.es.js +1 -0
- package/vendor/lodash-es/_castPath.es.js +1 -0
- package/vendor/lodash-es/_castRest.es.js +1 -0
- package/vendor/lodash-es/_castSlice.es.js +1 -0
- package/vendor/lodash-es/_charsEndIndex.es.js +1 -0
- package/vendor/lodash-es/_charsStartIndex.es.js +1 -0
- package/vendor/lodash-es/_cloneArrayBuffer.es.js +8 -0
- package/vendor/lodash-es/_cloneBuffer.es.js +9 -0
- package/vendor/lodash-es/_cloneDataView.es.js +8 -0
- package/vendor/lodash-es/_cloneRegExp.es.js +8 -0
- package/vendor/lodash-es/_cloneSymbol.es.js +8 -0
- package/vendor/lodash-es/_cloneTypedArray.es.js +8 -0
- package/vendor/lodash-es/_compareAscending.es.js +1 -0
- package/vendor/lodash-es/_compareMultiple.es.js +1 -0
- package/vendor/lodash-es/_composeArgs.es.js +1 -0
- package/vendor/lodash-es/_composeArgsRight.es.js +1 -0
- package/vendor/lodash-es/_copyArray.es.js +1 -0
- package/vendor/lodash-es/_copyObject.es.js +1 -0
- package/vendor/lodash-es/_copySymbols.es.js +1 -0
- package/vendor/lodash-es/_copySymbolsIn.es.js +1 -0
- package/vendor/lodash-es/_coreJsData.es.js +5 -0
- package/vendor/lodash-es/_countHolders.es.js +1 -0
- package/vendor/lodash-es/_createAggregator.es.js +1 -0
- package/vendor/lodash-es/_createAssigner.es.js +1 -0
- package/vendor/lodash-es/_createBaseEach.es.js +1 -0
- package/vendor/lodash-es/_createBaseFor.es.js +1 -0
- package/vendor/lodash-es/_createBind.es.js +1 -0
- package/vendor/lodash-es/_createCaseFirst.es.js +1 -0
- package/vendor/lodash-es/_createCompounder.es.js +1 -0
- package/vendor/lodash-es/_createCtor.es.js +1 -0
- package/vendor/lodash-es/_createCurry.es.js +1 -0
- package/vendor/lodash-es/_createFind.es.js +1 -0
- package/vendor/lodash-es/_createFlow.es.js +1 -0
- package/vendor/lodash-es/_createHybrid.es.js +1 -0
- package/vendor/lodash-es/_createInverter.es.js +1 -0
- package/vendor/lodash-es/_createMathOperation.es.js +1 -0
- package/vendor/lodash-es/_createOver.es.js +1 -0
- package/vendor/lodash-es/_createPadding.es.js +1 -0
- package/vendor/lodash-es/_createPartial.es.js +1 -0
- package/vendor/lodash-es/_createRange.es.js +1 -0
- package/vendor/lodash-es/_createRecurry.es.js +1 -0
- package/vendor/lodash-es/_createRelationalOperation.es.js +1 -0
- package/vendor/lodash-es/_createRound.es.js +1 -0
- package/vendor/lodash-es/_createSet.es.js +1 -0
- package/vendor/lodash-es/_createToPairs.es.js +1 -0
- package/vendor/lodash-es/_createWrap.es.js +1 -0
- package/vendor/lodash-es/_customDefaultsAssignIn.es.js +1 -0
- package/vendor/lodash-es/_customDefaultsMerge.es.js +1 -0
- package/vendor/lodash-es/_customOmitClone.es.js +1 -0
- package/vendor/lodash-es/_deburrLetter.es.js +1 -0
- package/vendor/lodash-es/_defineProperty.es.js +11 -0
- package/vendor/lodash-es/_equalArrays.es.js +40 -0
- package/vendor/lodash-es/_equalByTag.es.js +45 -0
- package/vendor/lodash-es/_equalObjects.es.js +36 -0
- package/vendor/lodash-es/_escapeHtmlChar.es.js +1 -0
- package/vendor/lodash-es/_escapeStringChar.es.js +1 -0
- package/vendor/lodash-es/_flatRest.es.js +1 -0
- package/vendor/lodash-es/_freeGlobal.es.js +4 -0
- package/vendor/lodash-es/_getAllKeys.es.js +9 -0
- package/vendor/lodash-es/_getAllKeysIn.es.js +1 -0
- package/vendor/lodash-es/_getData.es.js +1 -0
- package/vendor/lodash-es/_getFuncName.es.js +1 -0
- package/vendor/lodash-es/_getHolder.es.js +1 -0
- package/vendor/lodash-es/_getMapData.es.js +8 -0
- package/vendor/lodash-es/_getMatchData.es.js +1 -0
- package/vendor/lodash-es/_getNative.es.js +9 -0
- package/vendor/lodash-es/_getPrototype.es.js +5 -0
- package/vendor/lodash-es/_getRawTag.es.js +15 -0
- package/vendor/lodash-es/_getSymbols.es.js +10 -0
- package/vendor/lodash-es/_getSymbolsIn.es.js +1 -0
- package/vendor/lodash-es/_getTag.es.js +28 -0
- package/vendor/lodash-es/_getValue.es.js +6 -0
- package/vendor/lodash-es/_getView.es.js +1 -0
- package/vendor/lodash-es/_getWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_hasPath.es.js +1 -0
- package/vendor/lodash-es/_hasUnicode.es.js +1 -0
- package/vendor/lodash-es/_hasUnicodeWord.es.js +1 -0
- package/vendor/lodash-es/_hashClear.es.js +7 -0
- package/vendor/lodash-es/_hashDelete.es.js +7 -0
- package/vendor/lodash-es/_hashGet.es.js +13 -0
- package/vendor/lodash-es/_hashHas.es.js +9 -0
- package/vendor/lodash-es/_hashSet.es.js +9 -0
- package/vendor/lodash-es/_initCloneArray.es.js +8 -0
- package/vendor/lodash-es/_initCloneByTag.es.js +42 -0
- package/vendor/lodash-es/_initCloneObject.es.js +9 -0
- package/vendor/lodash-es/_insertWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_isFlattenable.es.js +1 -0
- package/vendor/lodash-es/_isIndex.es.js +8 -0
- package/vendor/lodash-es/_isIterateeCall.es.js +1 -0
- package/vendor/lodash-es/_isKey.es.js +1 -0
- package/vendor/lodash-es/_isKeyable.es.js +7 -0
- package/vendor/lodash-es/_isLaziable.es.js +1 -0
- package/vendor/lodash-es/_isMaskable.es.js +1 -0
- package/vendor/lodash-es/_isMasked.es.js +11 -0
- package/vendor/lodash-es/_isPrototype.es.js +8 -0
- package/vendor/lodash-es/_isStrictComparable.es.js +1 -0
- package/vendor/lodash-es/_iteratorToArray.es.js +1 -0
- package/vendor/lodash-es/_lazyClone.es.js +1 -0
- package/vendor/lodash-es/_lazyReverse.es.js +1 -0
- package/vendor/lodash-es/_lazyValue.es.js +1 -0
- package/vendor/lodash-es/_listCacheClear.es.js +6 -0
- package/vendor/lodash-es/_listCacheDelete.es.js +12 -0
- package/vendor/lodash-es/_listCacheGet.es.js +8 -0
- package/vendor/lodash-es/_listCacheHas.es.js +7 -0
- package/vendor/lodash-es/_listCacheSet.es.js +8 -0
- package/vendor/lodash-es/_mapCacheClear.es.js +13 -0
- package/vendor/lodash-es/_mapCacheDelete.es.js +8 -0
- package/vendor/lodash-es/_mapCacheGet.es.js +7 -0
- package/vendor/lodash-es/_mapCacheHas.es.js +7 -0
- package/vendor/lodash-es/_mapCacheSet.es.js +8 -0
- package/vendor/lodash-es/_mapToArray.es.js +9 -0
- package/vendor/lodash-es/_matchesStrictComparable.es.js +1 -0
- package/vendor/lodash-es/_memoizeCapped.es.js +1 -0
- package/vendor/lodash-es/_mergeData.es.js +1 -0
- package/vendor/lodash-es/_metaMap.es.js +1 -0
- package/vendor/lodash-es/_nativeCreate.es.js +5 -0
- package/vendor/lodash-es/_nativeKeys.es.js +5 -0
- package/vendor/lodash-es/_nativeKeysIn.es.js +1 -0
- package/vendor/lodash-es/_nodeUtil.es.js +11 -0
- package/vendor/lodash-es/_objectToString.es.js +7 -0
- package/vendor/lodash-es/_overArg.es.js +8 -0
- package/vendor/lodash-es/_overRest.es.js +1 -0
- package/vendor/lodash-es/_parent.es.js +1 -0
- package/vendor/lodash-es/_reEscape.es.js +1 -0
- package/vendor/lodash-es/_reEvaluate.es.js +1 -0
- package/vendor/lodash-es/_reInterpolate.es.js +1 -0
- package/vendor/lodash-es/_realNames.es.js +1 -0
- package/vendor/lodash-es/_reorder.es.js +1 -0
- package/vendor/lodash-es/_replaceHolders.es.js +1 -0
- package/vendor/lodash-es/_root.es.js +5 -0
- package/vendor/lodash-es/_safeGet.es.js +1 -0
- package/vendor/lodash-es/_setCacheAdd.es.js +7 -0
- package/vendor/lodash-es/_setCacheHas.es.js +6 -0
- package/vendor/lodash-es/_setData.es.js +1 -0
- package/vendor/lodash-es/_setToArray.es.js +9 -0
- package/vendor/lodash-es/_setToPairs.es.js +1 -0
- package/vendor/lodash-es/_setToString.es.js +1 -0
- package/vendor/lodash-es/_setWrapToString.es.js +1 -0
- package/vendor/lodash-es/_shortOut.es.js +1 -0
- package/vendor/lodash-es/_shuffleSelf.es.js +1 -0
- package/vendor/lodash-es/_stackClear.es.js +7 -0
- package/vendor/lodash-es/_stackDelete.es.js +7 -0
- package/vendor/lodash-es/_stackGet.es.js +6 -0
- package/vendor/lodash-es/_stackHas.es.js +6 -0
- package/vendor/lodash-es/_stackSet.es.js +17 -0
- package/vendor/lodash-es/_strictIndexOf.es.js +1 -0
- package/vendor/lodash-es/_strictLastIndexOf.es.js +1 -0
- package/vendor/lodash-es/_stringSize.es.js +1 -0
- package/vendor/lodash-es/_stringToArray.es.js +1 -0
- package/vendor/lodash-es/_stringToPath.es.js +1 -0
- package/vendor/lodash-es/_toKey.es.js +1 -0
- package/vendor/lodash-es/_toSource.es.js +17 -0
- package/vendor/lodash-es/_trimmedEndIndex.es.js +9 -0
- package/vendor/lodash-es/_unescapeHtmlChar.es.js +1 -0
- package/vendor/lodash-es/_unicodeSize.es.js +1 -0
- package/vendor/lodash-es/_unicodeToArray.es.js +1 -0
- package/vendor/lodash-es/_unicodeWords.es.js +1 -0
- package/vendor/lodash-es/_updateWrapDetails.es.js +1 -0
- package/vendor/lodash-es/_wrapperClone.es.js +1 -0
- package/vendor/lodash-es/add.es.js +1 -0
- package/vendor/lodash-es/after.es.js +1 -0
- package/vendor/lodash-es/array.default.es.js +1 -0
- package/vendor/lodash-es/array.es.js +1 -0
- package/vendor/lodash-es/ary.es.js +1 -0
- package/vendor/lodash-es/assign.es.js +1 -0
- package/vendor/lodash-es/assignIn.es.js +1 -0
- package/vendor/lodash-es/assignInWith.es.js +1 -0
- package/vendor/lodash-es/assignWith.es.js +1 -0
- package/vendor/lodash-es/at.es.js +1 -0
- package/vendor/lodash-es/attempt.es.js +1 -0
- package/vendor/lodash-es/before.es.js +1 -0
- package/vendor/lodash-es/bind.es.js +1 -0
- package/vendor/lodash-es/bindAll.es.js +1 -0
- package/vendor/lodash-es/bindKey.es.js +1 -0
- package/vendor/lodash-es/camelCase.es.js +1 -0
- package/vendor/lodash-es/capitalize.es.js +1 -0
- package/vendor/lodash-es/castArray.es.js +1 -0
- package/vendor/lodash-es/ceil.es.js +1 -0
- package/vendor/lodash-es/chain.es.js +1 -0
- package/vendor/lodash-es/chunk.es.js +1 -0
- package/vendor/lodash-es/clamp.es.js +1 -0
- package/vendor/lodash-es/clone.es.js +1 -0
- package/vendor/lodash-es/cloneDeep.es.js +8 -0
- package/vendor/lodash-es/cloneDeepWith.es.js +1 -0
- package/vendor/lodash-es/cloneWith.es.js +1 -0
- package/vendor/lodash-es/collection.default.es.js +1 -0
- package/vendor/lodash-es/collection.es.js +1 -0
- package/vendor/lodash-es/commit.es.js +1 -0
- package/vendor/lodash-es/compact.es.js +1 -0
- package/vendor/lodash-es/concat.es.js +1 -0
- package/vendor/lodash-es/cond.es.js +1 -0
- package/vendor/lodash-es/conforms.es.js +1 -0
- package/vendor/lodash-es/conformsTo.es.js +1 -0
- package/vendor/lodash-es/constant.es.js +1 -0
- package/vendor/lodash-es/countBy.es.js +1 -0
- package/vendor/lodash-es/create.es.js +1 -0
- package/vendor/lodash-es/curry.es.js +1 -0
- package/vendor/lodash-es/curryRight.es.js +1 -0
- package/vendor/lodash-es/date.default.es.js +1 -0
- package/vendor/lodash-es/date.es.js +1 -0
- package/vendor/lodash-es/debounce.es.js +54 -0
- package/vendor/lodash-es/deburr.es.js +1 -0
- package/vendor/lodash-es/defaultTo.es.js +1 -0
- package/vendor/lodash-es/defaults.es.js +1 -0
- package/vendor/lodash-es/defaultsDeep.es.js +1 -0
- package/vendor/lodash-es/defer.es.js +1 -0
- package/vendor/lodash-es/delay.es.js +1 -0
- package/vendor/lodash-es/difference.es.js +1 -0
- package/vendor/lodash-es/differenceBy.es.js +1 -0
- package/vendor/lodash-es/differenceWith.es.js +1 -0
- package/vendor/lodash-es/divide.es.js +1 -0
- package/vendor/lodash-es/drop.es.js +1 -0
- package/vendor/lodash-es/dropRight.es.js +1 -0
- package/vendor/lodash-es/dropRightWhile.es.js +1 -0
- package/vendor/lodash-es/dropWhile.es.js +1 -0
- package/vendor/lodash-es/each.es.js +1 -0
- package/vendor/lodash-es/eachRight.es.js +1 -0
- package/vendor/lodash-es/endsWith.es.js +1 -0
- package/vendor/lodash-es/entries.es.js +1 -0
- package/vendor/lodash-es/entriesIn.es.js +1 -0
- package/vendor/lodash-es/eq.es.js +6 -0
- package/vendor/lodash-es/escape.es.js +1 -0
- package/vendor/lodash-es/escapeRegExp.es.js +1 -0
- package/vendor/lodash-es/every.es.js +1 -0
- package/vendor/lodash-es/extend.es.js +1 -0
- package/vendor/lodash-es/extendWith.es.js +1 -0
- package/vendor/lodash-es/fill.es.js +1 -0
- package/vendor/lodash-es/filter.es.js +1 -0
- package/vendor/lodash-es/find.es.js +1 -0
- package/vendor/lodash-es/findIndex.es.js +1 -0
- package/vendor/lodash-es/findKey.es.js +1 -0
- package/vendor/lodash-es/findLast.es.js +1 -0
- package/vendor/lodash-es/findLastIndex.es.js +1 -0
- package/vendor/lodash-es/findLastKey.es.js +1 -0
- package/vendor/lodash-es/first.es.js +1 -0
- package/vendor/lodash-es/flatMap.es.js +1 -0
- package/vendor/lodash-es/flatMapDeep.es.js +1 -0
- package/vendor/lodash-es/flatMapDepth.es.js +1 -0
- package/vendor/lodash-es/flatten.es.js +1 -0
- package/vendor/lodash-es/flattenDeep.es.js +1 -0
- package/vendor/lodash-es/flattenDepth.es.js +1 -0
- package/vendor/lodash-es/flip.es.js +1 -0
- package/vendor/lodash-es/floor.es.js +1 -0
- package/vendor/lodash-es/flow.es.js +1 -0
- package/vendor/lodash-es/flowRight.es.js +1 -0
- package/vendor/lodash-es/forEach.es.js +1 -0
- package/vendor/lodash-es/forEachRight.es.js +1 -0
- package/vendor/lodash-es/forIn.es.js +1 -0
- package/vendor/lodash-es/forInRight.es.js +1 -0
- package/vendor/lodash-es/forOwn.es.js +1 -0
- package/vendor/lodash-es/forOwnRight.es.js +1 -0
- package/vendor/lodash-es/fromPairs.es.js +1 -0
- package/vendor/lodash-es/function.default.es.js +1 -0
- package/vendor/lodash-es/function.es.js +1 -0
- package/vendor/lodash-es/functions.es.js +1 -0
- package/vendor/lodash-es/functionsIn.es.js +1 -0
- package/vendor/lodash-es/get.es.js +1 -0
- package/vendor/lodash-es/groupBy.es.js +1 -0
- package/vendor/lodash-es/gt.es.js +1 -0
- package/vendor/lodash-es/gte.es.js +1 -0
- package/vendor/lodash-es/has.es.js +1 -0
- package/vendor/lodash-es/hasIn.es.js +1 -0
- package/vendor/lodash-es/head.es.js +1 -0
- package/vendor/lodash-es/identity.es.js +1 -0
- package/vendor/lodash-es/inRange.es.js +1 -0
- package/vendor/lodash-es/includes.es.js +1 -0
- package/vendor/lodash-es/indexOf.es.js +1 -0
- package/vendor/lodash-es/initial.es.js +1 -0
- package/vendor/lodash-es/intersection.es.js +1 -0
- package/vendor/lodash-es/intersectionBy.es.js +1 -0
- package/vendor/lodash-es/intersectionWith.es.js +1 -0
- package/vendor/lodash-es/invert.es.js +1 -0
- package/vendor/lodash-es/invertBy.es.js +1 -0
- package/vendor/lodash-es/invoke.es.js +1 -0
- package/vendor/lodash-es/invokeMap.es.js +1 -0
- package/vendor/lodash-es/isArguments.es.js +10 -0
- package/vendor/lodash-es/isArray.es.js +4 -0
- package/vendor/lodash-es/isArrayBuffer.es.js +1 -0
- package/vendor/lodash-es/isArrayLike.es.js +8 -0
- package/vendor/lodash-es/isArrayLikeObject.es.js +1 -0
- package/vendor/lodash-es/isBoolean.es.js +1 -0
- package/vendor/lodash-es/isBuffer.es.js +6 -0
- package/vendor/lodash-es/isDate.es.js +1 -0
- package/vendor/lodash-es/isElement.es.js +1 -0
- package/vendor/lodash-es/isEmpty.es.js +1 -0
- package/vendor/lodash-es/isEqual.es.js +7 -0
- package/vendor/lodash-es/isEqualWith.es.js +1 -0
- package/vendor/lodash-es/isError.es.js +1 -0
- package/vendor/lodash-es/isFinite.es.js +1 -0
- package/vendor/lodash-es/isFunction.es.js +12 -0
- package/vendor/lodash-es/isInteger.es.js +1 -0
- package/vendor/lodash-es/isLength.es.js +7 -0
- package/vendor/lodash-es/isMap.es.js +7 -0
- package/vendor/lodash-es/isMatch.es.js +1 -0
- package/vendor/lodash-es/isMatchWith.es.js +1 -0
- package/vendor/lodash-es/isNaN.es.js +1 -0
- package/vendor/lodash-es/isNative.es.js +1 -0
- package/vendor/lodash-es/isNil.es.js +1 -0
- package/vendor/lodash-es/isNull.es.js +1 -0
- package/vendor/lodash-es/isNumber.es.js +1 -0
- package/vendor/lodash-es/isObject.es.js +7 -0
- package/vendor/lodash-es/isObjectLike.es.js +6 -0
- package/vendor/lodash-es/isPlainObject.es.js +1 -0
- package/vendor/lodash-es/isRegExp.es.js +1 -0
- package/vendor/lodash-es/isSafeInteger.es.js +1 -0
- package/vendor/lodash-es/isSet.es.js +7 -0
- package/vendor/lodash-es/isString.es.js +1 -0
- package/vendor/lodash-es/isSymbol.es.js +9 -0
- package/vendor/lodash-es/isTypedArray.es.js +7 -0
- package/vendor/lodash-es/isUndefined.es.js +1 -0
- package/vendor/lodash-es/isWeakMap.es.js +1 -0
- package/vendor/lodash-es/isWeakSet.es.js +1 -0
- package/vendor/lodash-es/iteratee.es.js +1 -0
- package/vendor/lodash-es/join.es.js +1 -0
- package/vendor/lodash-es/kebabCase.es.js +1 -0
- package/vendor/lodash-es/keyBy.es.js +1 -0
- package/vendor/lodash-es/keys.es.js +9 -0
- package/vendor/lodash-es/keysIn.es.js +1 -0
- package/vendor/lodash-es/lang.default.es.js +1 -0
- package/vendor/lodash-es/lang.es.js +1 -0
- package/vendor/lodash-es/last.es.js +1 -0
- package/vendor/lodash-es/lastIndexOf.es.js +1 -0
- package/vendor/lodash-es/lodash.default.es.js +1 -0
- package/vendor/lodash-es/lodash.es.js +1 -0
- package/vendor/lodash-es/lowerCase.es.js +1 -0
- package/vendor/lodash-es/lowerFirst.es.js +1 -0
- package/vendor/lodash-es/lt.es.js +1 -0
- package/vendor/lodash-es/lte.es.js +1 -0
- package/vendor/lodash-es/map.es.js +1 -0
- package/vendor/lodash-es/mapKeys.es.js +1 -0
- package/vendor/lodash-es/mapValues.es.js +1 -0
- package/vendor/lodash-es/matches.es.js +1 -0
- package/vendor/lodash-es/matchesProperty.es.js +1 -0
- package/vendor/lodash-es/math.default.es.js +1 -0
- package/vendor/lodash-es/math.es.js +1 -0
- package/vendor/lodash-es/max.es.js +1 -0
- package/vendor/lodash-es/maxBy.es.js +1 -0
- package/vendor/lodash-es/mean.es.js +1 -0
- package/vendor/lodash-es/meanBy.es.js +1 -0
- package/vendor/lodash-es/memoize.es.js +1 -0
- package/vendor/lodash-es/merge.es.js +1 -0
- package/vendor/lodash-es/mergeWith.es.js +1 -0
- package/vendor/lodash-es/method.es.js +1 -0
- package/vendor/lodash-es/methodOf.es.js +1 -0
- package/vendor/lodash-es/min.es.js +1 -0
- package/vendor/lodash-es/minBy.es.js +1 -0
- package/vendor/lodash-es/mixin.es.js +1 -0
- package/vendor/lodash-es/multiply.es.js +1 -0
- package/vendor/lodash-es/negate.es.js +1 -0
- package/vendor/lodash-es/next.es.js +1 -0
- package/vendor/lodash-es/noop.es.js +1 -0
- package/vendor/lodash-es/now.es.js +7 -0
- package/vendor/lodash-es/nth.es.js +1 -0
- package/vendor/lodash-es/nthArg.es.js +1 -0
- package/vendor/lodash-es/number.default.es.js +1 -0
- package/vendor/lodash-es/number.es.js +1 -0
- package/vendor/lodash-es/object.default.es.js +1 -0
- package/vendor/lodash-es/object.es.js +1 -0
- package/vendor/lodash-es/omit.es.js +1 -0
- package/vendor/lodash-es/omitBy.es.js +1 -0
- package/vendor/lodash-es/once.es.js +1 -0
- package/vendor/lodash-es/orderBy.es.js +1 -0
- package/vendor/lodash-es/over.es.js +1 -0
- package/vendor/lodash-es/overArgs.es.js +1 -0
- package/vendor/lodash-es/overEvery.es.js +1 -0
- package/vendor/lodash-es/overSome.es.js +1 -0
- package/vendor/lodash-es/pad.es.js +1 -0
- package/vendor/lodash-es/padEnd.es.js +1 -0
- package/vendor/lodash-es/padStart.es.js +1 -0
- package/vendor/lodash-es/parseInt.es.js +1 -0
- package/vendor/lodash-es/partial.es.js +1 -0
- package/vendor/lodash-es/partialRight.es.js +1 -0
- package/vendor/lodash-es/partition.es.js +1 -0
- package/vendor/lodash-es/pick.es.js +1 -0
- package/vendor/lodash-es/pickBy.es.js +1 -0
- package/vendor/lodash-es/plant.es.js +1 -0
- package/vendor/lodash-es/property.es.js +1 -0
- package/vendor/lodash-es/propertyOf.es.js +1 -0
- package/vendor/lodash-es/pull.es.js +1 -0
- package/vendor/lodash-es/pullAll.es.js +1 -0
- package/vendor/lodash-es/pullAllBy.es.js +1 -0
- package/vendor/lodash-es/pullAllWith.es.js +1 -0
- package/vendor/lodash-es/pullAt.es.js +1 -0
- package/vendor/lodash-es/random.es.js +1 -0
- package/vendor/lodash-es/range.es.js +1 -0
- package/vendor/lodash-es/rangeRight.es.js +1 -0
- package/vendor/lodash-es/rearg.es.js +1 -0
- package/vendor/lodash-es/reduce.es.js +1 -0
- package/vendor/lodash-es/reduceRight.es.js +1 -0
- package/vendor/lodash-es/reject.es.js +1 -0
- package/vendor/lodash-es/remove.es.js +1 -0
- package/vendor/lodash-es/repeat.es.js +1 -0
- package/vendor/lodash-es/replace.es.js +1 -0
- package/vendor/lodash-es/rest.es.js +1 -0
- package/vendor/lodash-es/result.es.js +1 -0
- package/vendor/lodash-es/reverse.es.js +1 -0
- package/vendor/lodash-es/round.es.js +1 -0
- package/vendor/lodash-es/sample.es.js +1 -0
- package/vendor/lodash-es/sampleSize.es.js +1 -0
- package/vendor/lodash-es/seq.default.es.js +1 -0
- package/vendor/lodash-es/seq.es.js +1 -0
- package/vendor/lodash-es/set.es.js +1 -0
- package/vendor/lodash-es/setWith.es.js +1 -0
- package/vendor/lodash-es/shuffle.es.js +1 -0
- package/vendor/lodash-es/size.es.js +1 -0
- package/vendor/lodash-es/slice.es.js +1 -0
- package/vendor/lodash-es/snakeCase.es.js +1 -0
- package/vendor/lodash-es/some.es.js +1 -0
- package/vendor/lodash-es/sortBy.es.js +1 -0
- package/vendor/lodash-es/sortedIndex.es.js +1 -0
- package/vendor/lodash-es/sortedIndexBy.es.js +1 -0
- package/vendor/lodash-es/sortedIndexOf.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndex.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndexBy.es.js +1 -0
- package/vendor/lodash-es/sortedLastIndexOf.es.js +1 -0
- package/vendor/lodash-es/sortedUniq.es.js +1 -0
- package/vendor/lodash-es/sortedUniqBy.es.js +1 -0
- package/vendor/lodash-es/split.es.js +1 -0
- package/vendor/lodash-es/spread.es.js +1 -0
- package/vendor/lodash-es/startCase.es.js +1 -0
- package/vendor/lodash-es/startsWith.es.js +1 -0
- package/vendor/lodash-es/string.default.es.js +1 -0
- package/vendor/lodash-es/string.es.js +1 -0
- package/vendor/lodash-es/stubArray.es.js +6 -0
- package/vendor/lodash-es/stubFalse.es.js +6 -0
- package/vendor/lodash-es/stubObject.es.js +1 -0
- package/vendor/lodash-es/stubString.es.js +1 -0
- package/vendor/lodash-es/stubTrue.es.js +1 -0
- package/vendor/lodash-es/subtract.es.js +1 -0
- package/vendor/lodash-es/sum.es.js +1 -0
- package/vendor/lodash-es/sumBy.es.js +1 -0
- package/vendor/lodash-es/tail.es.js +1 -0
- package/vendor/lodash-es/take.es.js +1 -0
- package/vendor/lodash-es/takeRight.es.js +1 -0
- package/vendor/lodash-es/takeRightWhile.es.js +1 -0
- package/vendor/lodash-es/takeWhile.es.js +1 -0
- package/vendor/lodash-es/tap.es.js +1 -0
- package/vendor/lodash-es/template.es.js +1 -0
- package/vendor/lodash-es/templateSettings.es.js +1 -0
- package/vendor/lodash-es/throttle.es.js +1 -0
- package/vendor/lodash-es/thru.es.js +1 -0
- package/vendor/lodash-es/times.es.js +1 -0
- package/vendor/lodash-es/toArray.es.js +1 -0
- package/vendor/lodash-es/toFinite.es.js +1 -0
- package/vendor/lodash-es/toInteger.es.js +1 -0
- package/vendor/lodash-es/toIterator.es.js +1 -0
- package/vendor/lodash-es/toJSON.es.js +1 -0
- package/vendor/lodash-es/toLength.es.js +1 -0
- package/vendor/lodash-es/toLower.es.js +1 -0
- package/vendor/lodash-es/toNumber.es.js +22 -0
- package/vendor/lodash-es/toPairs.es.js +1 -0
- package/vendor/lodash-es/toPairsIn.es.js +1 -0
- package/vendor/lodash-es/toPath.es.js +1 -0
- package/vendor/lodash-es/toPlainObject.es.js +1 -0
- package/vendor/lodash-es/toSafeInteger.es.js +1 -0
- package/vendor/lodash-es/toString.es.js +6 -0
- package/vendor/lodash-es/toUpper.es.js +1 -0
- package/vendor/lodash-es/transform.es.js +1 -0
- package/vendor/lodash-es/trim.es.js +1 -0
- package/vendor/lodash-es/trimEnd.es.js +1 -0
- package/vendor/lodash-es/trimStart.es.js +1 -0
- package/vendor/lodash-es/truncate.es.js +1 -0
- package/vendor/lodash-es/unary.es.js +1 -0
- package/vendor/lodash-es/unescape.es.js +1 -0
- package/vendor/lodash-es/union.es.js +1 -0
- package/vendor/lodash-es/unionBy.es.js +1 -0
- package/vendor/lodash-es/unionWith.es.js +1 -0
- package/vendor/lodash-es/uniq.es.js +1 -0
- package/vendor/lodash-es/uniqBy.es.js +1 -0
- package/vendor/lodash-es/uniqWith.es.js +1 -0
- package/vendor/lodash-es/uniqueId.es.js +9 -0
- package/vendor/lodash-es/unset.es.js +1 -0
- package/vendor/lodash-es/unzip.es.js +1 -0
- package/vendor/lodash-es/unzipWith.es.js +1 -0
- package/vendor/lodash-es/update.es.js +1 -0
- package/vendor/lodash-es/updateWith.es.js +1 -0
- package/vendor/lodash-es/upperCase.es.js +1 -0
- package/vendor/lodash-es/upperFirst.es.js +1 -0
- package/vendor/lodash-es/util.default.es.js +1 -0
- package/vendor/lodash-es/util.es.js +1 -0
- package/vendor/lodash-es/value.es.js +1 -0
- package/vendor/lodash-es/valueOf.es.js +1 -0
- package/vendor/lodash-es/values.es.js +1 -0
- package/vendor/lodash-es/valuesIn.es.js +1 -0
- package/vendor/lodash-es/without.es.js +1 -0
- package/vendor/lodash-es/words.es.js +1 -0
- package/vendor/lodash-es/wrap.es.js +1 -0
- package/vendor/lodash-es/wrapperAt.es.js +1 -0
- package/vendor/lodash-es/wrapperChain.es.js +1 -0
- package/vendor/lodash-es/wrapperLodash.es.js +1 -0
- package/vendor/lodash-es/wrapperReverse.es.js +1 -0
- package/vendor/lodash-es/wrapperValue.es.js +1 -0
- package/vendor/lodash-es/xor.es.js +1 -0
- package/vendor/lodash-es/xorBy.es.js +1 -0
- package/vendor/lodash-es/xorWith.es.js +1 -0
- package/vendor/lodash-es/zip.es.js +1 -0
- package/vendor/lodash-es/zipObject.es.js +1 -0
- package/vendor/lodash-es/zipObjectDeep.es.js +1 -0
- package/vendor/lodash-es/zipWith.es.js +1 -0
- package/vendor/orderedmap/dist/index.es.js +103 -0
- package/vendor/primevue/api/api.esm.es.js +183 -0
- package/vendor/primevue/badge/badge.esm.es.js +42 -0
- package/vendor/primevue/badge/style/badgestyle.esm.es.js +25 -0
- package/vendor/primevue/base/style/basestyle.esm.es.js +140 -0
- package/vendor/primevue/basecomponent/basecomponent.esm.es.js +409 -0
- package/vendor/primevue/basedirective/basedirective.esm.es.js +255 -0
- package/vendor/primevue/baseicon/baseicon.esm.es.js +81 -0
- package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +39 -0
- package/vendor/primevue/button/button.esm.es.js +163 -0
- package/vendor/primevue/button/style/buttonstyle.esm.es.js +56 -0
- package/vendor/primevue/card/card.esm.es.js +40 -0
- package/vendor/primevue/card/style/cardstyle.esm.es.js +17 -0
- package/vendor/primevue/checkbox/checkbox.esm.es.js +189 -0
- package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +21 -0
- package/vendor/primevue/config/config.esm.es.js +212 -0
- package/vendor/primevue/dialog/dialog.esm.es.js +501 -0
- package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +55 -0
- package/vendor/primevue/dropdown/dropdown.esm.es.js +1229 -0
- package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +65 -0
- package/vendor/primevue/fileupload/fileupload.esm.es.js +761 -0
- package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +36 -0
- package/vendor/primevue/focustrap/focustrap.esm.es.js +129 -0
- package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +4 -0
- package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +24 -0
- package/vendor/primevue/icons/angledoubleright/index.esm.es.js +24 -0
- package/vendor/primevue/icons/angledown/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleleft/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleright/index.esm.es.js +22 -0
- package/vendor/primevue/icons/angleup/index.esm.es.js +22 -0
- package/vendor/primevue/icons/blank/index.esm.es.js +24 -0
- package/vendor/primevue/icons/check/index.esm.es.js +22 -0
- package/vendor/primevue/icons/chevrondown/index.esm.es.js +22 -0
- package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +28 -0
- package/vendor/primevue/icons/eye/index.esm.es.js +24 -0
- package/vendor/primevue/icons/eyeslash/index.esm.es.js +24 -0
- package/vendor/primevue/icons/infocircle/index.esm.es.js +24 -0
- package/vendor/primevue/icons/plus/index.esm.es.js +22 -0
- package/vendor/primevue/icons/refresh/index.esm.es.js +24 -0
- package/vendor/primevue/icons/search/index.esm.es.js +24 -0
- package/vendor/primevue/icons/searchminus/index.esm.es.js +24 -0
- package/vendor/primevue/icons/searchplus/index.esm.es.js +24 -0
- package/vendor/primevue/icons/spinner/index.esm.es.js +22 -0
- package/vendor/primevue/icons/times/index.esm.es.js +22 -0
- package/vendor/primevue/icons/timescircle/index.esm.es.js +24 -0
- package/vendor/primevue/icons/undo/index.esm.es.js +24 -0
- package/vendor/primevue/icons/upload/index.esm.es.js +24 -0
- package/vendor/primevue/icons/windowmaximize/index.esm.es.js +24 -0
- package/vendor/primevue/icons/windowminimize/index.esm.es.js +24 -0
- package/vendor/primevue/image/image.esm.es.js +381 -0
- package/vendor/primevue/image/style/imagestyle.esm.es.js +39 -0
- package/vendor/primevue/inputgroup/inputgroup.esm.es.js +26 -0
- package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +10 -0
- package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +26 -0
- package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +10 -0
- package/vendor/primevue/inputnumber/inputnumber.esm.es.js +937 -0
- package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +39 -0
- package/vendor/primevue/inputtext/inputtext.esm.es.js +66 -0
- package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +19 -0
- package/vendor/primevue/menu/menu.esm.es.js +508 -0
- package/vendor/primevue/menu/style/menustyle.esm.es.js +32 -0
- package/vendor/primevue/message/message.esm.es.js +201 -0
- package/vendor/primevue/message/style/messagestyle.esm.es.js +18 -0
- package/vendor/primevue/multiselect/multiselect.esm.es.js +1383 -0
- package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +74 -0
- package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +5 -0
- package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +294 -0
- package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +18 -0
- package/vendor/primevue/paginator/paginator.esm.es.js +838 -0
- package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +81 -0
- package/vendor/primevue/password/password.esm.es.js +443 -0
- package/vendor/primevue/password/style/passwordstyle.esm.es.js +45 -0
- package/vendor/primevue/portal/portal.esm.es.js +40 -0
- package/vendor/primevue/progressbar/progressbar.esm.es.js +72 -0
- package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +19 -0
- package/vendor/primevue/ripple/ripple.esm.es.js +90 -0
- package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +10 -0
- package/vendor/primevue/selectbutton/selectbutton.esm.es.js +278 -0
- package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +24 -0
- package/vendor/primevue/skeleton/skeleton.esm.es.js +67 -0
- package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +21 -0
- package/vendor/primevue/textarea/style/textareastyle.esm.es.js +18 -0
- package/vendor/primevue/textarea/textarea.esm.es.js +70 -0
- package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +19 -0
- package/vendor/primevue/timeline/timeline.esm.es.js +86 -0
- package/vendor/primevue/toast/style/toaststyle.esm.es.js +73 -0
- package/vendor/primevue/toast/toast.esm.es.js +451 -0
- package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +5 -0
- package/vendor/primevue/toastservice/toastservice.esm.es.js +24 -0
- package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +12 -0
- package/vendor/primevue/tooltip/tooltip.esm.es.js +256 -0
- package/vendor/primevue/usestyle/usestyle.esm.es.js +85 -0
- package/vendor/primevue/usetoast/usetoast.esm.es.js +12 -0
- package/vendor/primevue/utils/utils.esm.es.js +1080 -0
- package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +71 -0
- package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +704 -0
- package/vendor/prosemirror-commands/dist/index.es.js +383 -0
- package/vendor/prosemirror-history/dist/index.es.js +248 -0
- package/vendor/prosemirror-keymap/dist/index.es.js +60 -0
- package/vendor/prosemirror-model/dist/index.es.js +2736 -0
- package/vendor/prosemirror-schema-list/dist/index.es.js +87 -0
- package/vendor/prosemirror-state/dist/index.es.js +820 -0
- package/vendor/prosemirror-transform/dist/index.es.js +1507 -0
- package/vendor/prosemirror-view/dist/index.es.js +3742 -0
- package/vendor/qrcode/lib/browser.es.js +43 -0
- package/vendor/qrcode/lib/can-promise.es.js +9 -0
- package/vendor/qrcode/lib/core/alignment-pattern.es.js +25 -0
- package/vendor/qrcode/lib/core/alphanumeric-data.es.js +73 -0
- package/vendor/qrcode/lib/core/bit-buffer.es.js +28 -0
- package/vendor/qrcode/lib/core/bit-matrix.es.js +23 -0
- package/vendor/qrcode/lib/core/byte-data.es.js +23 -0
- package/vendor/qrcode/lib/core/error-correction-code.es.js +361 -0
- package/vendor/qrcode/lib/core/error-correction-level.es.js +40 -0
- package/vendor/qrcode/lib/core/finder-pattern.es.js +21 -0
- package/vendor/qrcode/lib/core/format-info.es.js +17 -0
- package/vendor/qrcode/lib/core/galois-field.es.js +23 -0
- package/vendor/qrcode/lib/core/kanji-data.es.js +36 -0
- package/vendor/qrcode/lib/core/mask-pattern.es.js +101 -0
- package/vendor/qrcode/lib/core/mode.es.js +67 -0
- package/vendor/qrcode/lib/core/numeric-data.es.js +26 -0
- package/vendor/qrcode/lib/core/polynomial.es.js +33 -0
- package/vendor/qrcode/lib/core/qrcode.es.js +153 -0
- package/vendor/qrcode/lib/core/reed-solomon-encoder.es.js +27 -0
- package/vendor/qrcode/lib/core/regex.es.js +22 -0
- package/vendor/qrcode/lib/core/segments.es.js +145 -0
- package/vendor/qrcode/lib/core/utils.es.js +73 -0
- package/vendor/qrcode/lib/core/version-check.es.js +9 -0
- package/vendor/qrcode/lib/core/version.es.js +74 -0
- package/vendor/qrcode/lib/renderer/canvas.es.js +31 -0
- package/vendor/qrcode/lib/renderer/svg-tag.es.js +31 -0
- package/vendor/qrcode/lib/renderer/utils.es.js +57 -0
- package/vendor/rope-sequence/dist/index.es.js +100 -0
- package/vendor/simplebar-core/dist/index.es.js +339 -0
- package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +176 -0
- package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +668 -0
- package/vendor/tippy.js/dist/tippy.esm.es.js +722 -0
- package/vendor/uuid/dist/esm-browser/index.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/md5.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/native.es.js +6 -0
- package/vendor/uuid/dist/esm-browser/nil.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/parse.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/regex.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/rng.es.js +10 -0
- package/vendor/uuid/dist/esm-browser/sha1.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/stringify.es.js +9 -0
- package/vendor/uuid/dist/esm-browser/v1.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v3.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v35.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/v4.es.js +13 -0
- package/vendor/uuid/dist/esm-browser/v5.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/validate.es.js +1 -0
- package/vendor/uuid/dist/esm-browser/version.es.js +1 -0
- package/vendor/vee-validate/dist/vee-validate.esm.es.js +1309 -0
- package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +1380 -0
- package/vendor/vue-demi/lib/index.es.js +1 -0
- package/vendor/w3c-keyname/index.es.js +92 -0
- package/{main.d.ts → wangsvue-fats.d.ts} +4 -5
- package/wangsvue-fats.es.js +258 -0
- package/wangsvue-fats.system.js +66 -66
- package/components/dialogassetnamedetail/options/columns.d.ts +0 -2
- package/components/dialogassetnamedetail/options/filter.d.ts +0 -2
- package/components/index.d.ts +0 -83
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-D9bw9OcI.js +0 -4
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-g0dJCy2p.js +0 -4
- package/wangsvue-fats.js +0 -57927
- /package/{components/approverinfo/ApproverInfo.vue.d.ts → approverinfo/index.d.ts} +0 -0
- /package/{loading-page-CoXtqoc9.js → assets/lottiejs/loading-plane.es.js} +0 -0
- /package/{components/badge/Badge.vue.d.ts → badge/index.d.ts} +0 -0
- /package/{components/basecomponent → basecomponent}/index.d.ts +0 -0
- /package/{components/basetree/BaseTree.vue.d.ts → basetree/index.d.ts} +0 -0
- /package/{components/breadcrumb/Breadcrumb.vue.d.ts → breadcrumb/index.d.ts} +0 -0
- /package/{components/buttonbulkaction/ButtonBulkAction.vue.d.ts → buttonbulkaction/index.d.ts} +0 -0
- /package/{components/buttoncopy/ButtonCopy.vue.d.ts → buttoncopy/index.d.ts} +0 -0
- /package/{components/buttonfilter/ButtonFilter.vue.d.ts → buttonfilter/index.d.ts} +0 -0
- /package/{components/buttonradio/ButtonRadio.vue.d.ts → buttonradio/index.d.ts} +0 -0
- /package/{components/buttonsearch/ButtonSearch.vue.d.ts → buttonsearch/index.d.ts} +0 -0
- /package/{components/buttonsync/ButtonSync.vue.d.ts → buttonsync/index.d.ts} +0 -0
- /package/{components/card/Card.vue.d.ts → card/index.d.ts} +0 -0
- /package/{components/checkbox/Checkbox.vue.d.ts → checkbox/index.d.ts} +0 -0
- /package/{components/datepicker/DatePicker.vue.d.ts → datepicker/index.d.ts} +0 -0
- /package/{components/daypicker/DayPicker.vue.d.ts → daypicker/index.d.ts} +0 -0
- /package/{components/dialog/Dialog.vue.d.ts → dialog/index.d.ts} +0 -0
- /package/{components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts → dialogassetnamedetail/index.d.ts} +0 -0
- /package/{components/editor/Editor.vue.d.ts → editor/index.d.ts} +0 -0
- /package/{components/fieldwrapper/FieldWrapper.vue.d.ts → fieldwrapper/index.d.ts} +0 -0
- /package/{components/form/Form.vue.d.ts → form/index.d.ts} +0 -0
- /package/{components/icon/Icon.vue.d.ts → icon/index.d.ts} +0 -0
- /package/{components/image/Image.vue.d.ts → image/index.d.ts} +0 -0
- /package/{components/inlinemessage/InlineMessage.vue.d.ts → inlinemessage/index.d.ts} +0 -0
- /package/{components/inputotp/InputOtp.vue.d.ts → inputotp/index.d.ts} +0 -0
- /package/{components/inputphonenumber/InputPhoneNumber.vue.d.ts → inputphonenumber/index.d.ts} +0 -0
- /package/{components/invisiblefield/InvisibleField.vue.d.ts → invisiblefield/index.d.ts} +0 -0
- /package/{components/languageswitcher/LanguageSwitcher.vue.d.ts → languageswitcher/index.d.ts} +0 -0
- /package/{components/loading/Loading.vue.d.ts → loading/index.d.ts} +0 -0
- /package/{components/loading/store/loading.store.d.ts → loading/store/index.d.ts} +0 -0
- /package/{components/menu/Menu.vue.d.ts → menu/index.d.ts} +0 -0
- /package/{components/overlaypanel/OverlayPanel.vue.d.ts → overlaypanel/index.d.ts} +0 -0
- /package/{components/paginator/Paginator.vue.d.ts → paginator/index.d.ts} +0 -0
- /package/{components/passthrough → passthrough}/index.d.ts +0 -0
- /package/{components/tabmenu/TabMenu.vue.d.ts → tabmenu/index.d.ts} +0 -0
- /package/{components/tagtype/TagType.vue.d.ts → tagtype/index.d.ts} +0 -0
- /package/{components/toggleswitch/ToggleSwitch.vue.d.ts → toggleswitch/index.d.ts} +0 -0
- /package/{components/transactionroles/TransactionRoles.vue.d.ts → transactionroles/index.d.ts} +0 -0
- /package/{components/tree → tree}/helpers/filterNodeKeys.helper.d.ts +0 -0
- /package/{components/treesearchinput/TreeSearchInput.vue.d.ts → treesearchinput/index.d.ts} +0 -0
- /package/{components/ts-helpers.d.ts → ts-helpers.d.ts} +0 -0
- /package/{components/username/UserName.vue.d.ts → username/index.d.ts} +0 -0
- /package/{components/validatormessage/ValidatorMessage.vue.d.ts → validatormessage/index.d.ts} +0 -0
|
@@ -0,0 +1,1507 @@
|
|
|
1
|
+
import { b as w, F as g, M as se, d as oe, R as le } from "../../prosemirror-model/dist/index.es.js";
|
|
2
|
+
const Q = 65535, U = Math.pow(2, 16);
|
|
3
|
+
function ae(s, e) {
|
|
4
|
+
return s + e * U;
|
|
5
|
+
}
|
|
6
|
+
function H(s) {
|
|
7
|
+
return s & Q;
|
|
8
|
+
}
|
|
9
|
+
function he(s) {
|
|
10
|
+
return (s - (s & Q)) / U;
|
|
11
|
+
}
|
|
12
|
+
const V = 1, X = 2, J = 4, Y = 8;
|
|
13
|
+
class L {
|
|
14
|
+
/**
|
|
15
|
+
@internal
|
|
16
|
+
*/
|
|
17
|
+
constructor(e, t, r) {
|
|
18
|
+
this.pos = e, this.delInfo = t, this.recover = r;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
Tells you whether the position was deleted, that is, whether the
|
|
22
|
+
step removed the token on the side queried (via the `assoc`)
|
|
23
|
+
argument from the document.
|
|
24
|
+
*/
|
|
25
|
+
get deleted() {
|
|
26
|
+
return (this.delInfo & Y) > 0;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
Tells you whether the token before the mapped position was deleted.
|
|
30
|
+
*/
|
|
31
|
+
get deletedBefore() {
|
|
32
|
+
return (this.delInfo & (V | J)) > 0;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
True when the token after the mapped position was deleted.
|
|
36
|
+
*/
|
|
37
|
+
get deletedAfter() {
|
|
38
|
+
return (this.delInfo & (X | J)) > 0;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
Tells whether any of the steps mapped through deletes across the
|
|
42
|
+
position (including both the token before and after the
|
|
43
|
+
position).
|
|
44
|
+
*/
|
|
45
|
+
get deletedAcross() {
|
|
46
|
+
return (this.delInfo & J) > 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
class S {
|
|
50
|
+
/**
|
|
51
|
+
Create a position map. The modifications to the document are
|
|
52
|
+
represented as an array of numbers, in which each group of three
|
|
53
|
+
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
54
|
+
*/
|
|
55
|
+
constructor(e, t = !1) {
|
|
56
|
+
if (this.ranges = e, this.inverted = t, !e.length && S.empty)
|
|
57
|
+
return S.empty;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
@internal
|
|
61
|
+
*/
|
|
62
|
+
recover(e) {
|
|
63
|
+
let t = 0, r = H(e);
|
|
64
|
+
if (!this.inverted)
|
|
65
|
+
for (let n = 0; n < r; n++)
|
|
66
|
+
t += this.ranges[n * 3 + 2] - this.ranges[n * 3 + 1];
|
|
67
|
+
return this.ranges[r * 3] + t + he(e);
|
|
68
|
+
}
|
|
69
|
+
mapResult(e, t = 1) {
|
|
70
|
+
return this._map(e, t, !1);
|
|
71
|
+
}
|
|
72
|
+
map(e, t = 1) {
|
|
73
|
+
return this._map(e, t, !0);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
@internal
|
|
77
|
+
*/
|
|
78
|
+
_map(e, t, r) {
|
|
79
|
+
let n = 0, i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
|
|
80
|
+
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
81
|
+
let a = this.ranges[l] - (this.inverted ? n : 0);
|
|
82
|
+
if (a > e)
|
|
83
|
+
break;
|
|
84
|
+
let h = this.ranges[l + i], p = this.ranges[l + o], c = a + h;
|
|
85
|
+
if (e <= c) {
|
|
86
|
+
let f = h ? e == a ? -1 : e == c ? 1 : t : t, d = a + n + (f < 0 ? 0 : p);
|
|
87
|
+
if (r)
|
|
88
|
+
return d;
|
|
89
|
+
let u = e == (t < 0 ? a : c) ? null : ae(l / 3, e - a), m = e == a ? X : e == c ? V : J;
|
|
90
|
+
return (t < 0 ? e != a : e != c) && (m |= Y), new L(d, m, u);
|
|
91
|
+
}
|
|
92
|
+
n += p - h;
|
|
93
|
+
}
|
|
94
|
+
return r ? e + n : new L(e + n, 0, null);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
@internal
|
|
98
|
+
*/
|
|
99
|
+
touches(e, t) {
|
|
100
|
+
let r = 0, n = H(t), i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
|
|
101
|
+
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
102
|
+
let a = this.ranges[l] - (this.inverted ? r : 0);
|
|
103
|
+
if (a > e)
|
|
104
|
+
break;
|
|
105
|
+
let h = this.ranges[l + i], p = a + h;
|
|
106
|
+
if (e <= p && l == n * 3)
|
|
107
|
+
return !0;
|
|
108
|
+
r += this.ranges[l + o] - h;
|
|
109
|
+
}
|
|
110
|
+
return !1;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
Calls the given function on each of the changed ranges included in
|
|
114
|
+
this map.
|
|
115
|
+
*/
|
|
116
|
+
forEach(e) {
|
|
117
|
+
let t = this.inverted ? 2 : 1, r = this.inverted ? 1 : 2;
|
|
118
|
+
for (let n = 0, i = 0; n < this.ranges.length; n += 3) {
|
|
119
|
+
let o = this.ranges[n], l = o - (this.inverted ? i : 0), a = o + (this.inverted ? 0 : i), h = this.ranges[n + t], p = this.ranges[n + r];
|
|
120
|
+
e(l, l + h, a, a + p), i += p - h;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
Create an inverted version of this map. The result can be used to
|
|
125
|
+
map positions in the post-step document to the pre-step document.
|
|
126
|
+
*/
|
|
127
|
+
invert() {
|
|
128
|
+
return new S(this.ranges, !this.inverted);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
@internal
|
|
132
|
+
*/
|
|
133
|
+
toString() {
|
|
134
|
+
return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
Create a map that moves all positions by offset `n` (which may be
|
|
138
|
+
negative). This can be useful when applying steps meant for a
|
|
139
|
+
sub-document to a larger document, or vice-versa.
|
|
140
|
+
*/
|
|
141
|
+
static offset(e) {
|
|
142
|
+
return e == 0 ? S.empty : new S(e < 0 ? [0, -e, 0] : [0, 0, e]);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
S.empty = new S([]);
|
|
146
|
+
class A {
|
|
147
|
+
/**
|
|
148
|
+
Create a new mapping with the given position maps.
|
|
149
|
+
*/
|
|
150
|
+
constructor(e, t, r = 0, n = e ? e.length : 0) {
|
|
151
|
+
this.mirror = t, this.from = r, this.to = n, this._maps = e || [], this.ownData = !(e || t);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
The step maps in this mapping.
|
|
155
|
+
*/
|
|
156
|
+
get maps() {
|
|
157
|
+
return this._maps;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
Create a mapping that maps only through a part of this one.
|
|
161
|
+
*/
|
|
162
|
+
slice(e = 0, t = this.maps.length) {
|
|
163
|
+
return new A(this._maps, this.mirror, e, t);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
Add a step map to the end of this mapping. If `mirrors` is
|
|
167
|
+
given, it should be the index of the step map that is the mirror
|
|
168
|
+
image of this one.
|
|
169
|
+
*/
|
|
170
|
+
appendMap(e, t) {
|
|
171
|
+
this.ownData || (this._maps = this._maps.slice(), this.mirror = this.mirror && this.mirror.slice(), this.ownData = !0), this.to = this._maps.push(e), t != null && this.setMirror(this._maps.length - 1, t);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
Add all the step maps in a given mapping to this one (preserving
|
|
175
|
+
mirroring information).
|
|
176
|
+
*/
|
|
177
|
+
appendMapping(e) {
|
|
178
|
+
for (let t = 0, r = this._maps.length; t < e._maps.length; t++) {
|
|
179
|
+
let n = e.getMirror(t);
|
|
180
|
+
this.appendMap(e._maps[t], n != null && n < t ? r + n : void 0);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
Finds the offset of the step map that mirrors the map at the
|
|
185
|
+
given offset, in this mapping (as per the second argument to
|
|
186
|
+
`appendMap`).
|
|
187
|
+
*/
|
|
188
|
+
getMirror(e) {
|
|
189
|
+
if (this.mirror) {
|
|
190
|
+
for (let t = 0; t < this.mirror.length; t++)
|
|
191
|
+
if (this.mirror[t] == e)
|
|
192
|
+
return this.mirror[t + (t % 2 ? -1 : 1)];
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
@internal
|
|
197
|
+
*/
|
|
198
|
+
setMirror(e, t) {
|
|
199
|
+
this.mirror || (this.mirror = []), this.mirror.push(e, t);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
Append the inverse of the given mapping to this one.
|
|
203
|
+
*/
|
|
204
|
+
appendMappingInverted(e) {
|
|
205
|
+
for (let t = e.maps.length - 1, r = this._maps.length + e._maps.length; t >= 0; t--) {
|
|
206
|
+
let n = e.getMirror(t);
|
|
207
|
+
this.appendMap(e._maps[t].invert(), n != null && n > t ? r - n - 1 : void 0);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
Create an inverted version of this mapping.
|
|
212
|
+
*/
|
|
213
|
+
invert() {
|
|
214
|
+
let e = new A();
|
|
215
|
+
return e.appendMappingInverted(this), e;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
Map a position through this mapping.
|
|
219
|
+
*/
|
|
220
|
+
map(e, t = 1) {
|
|
221
|
+
if (this.mirror)
|
|
222
|
+
return this._map(e, t, !0);
|
|
223
|
+
for (let r = this.from; r < this.to; r++)
|
|
224
|
+
e = this._maps[r].map(e, t);
|
|
225
|
+
return e;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
Map a position through this mapping, returning a mapping
|
|
229
|
+
result.
|
|
230
|
+
*/
|
|
231
|
+
mapResult(e, t = 1) {
|
|
232
|
+
return this._map(e, t, !1);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
@internal
|
|
236
|
+
*/
|
|
237
|
+
_map(e, t, r) {
|
|
238
|
+
let n = 0;
|
|
239
|
+
for (let i = this.from; i < this.to; i++) {
|
|
240
|
+
let o = this._maps[i], l = o.mapResult(e, t);
|
|
241
|
+
if (l.recover != null) {
|
|
242
|
+
let a = this.getMirror(i);
|
|
243
|
+
if (a != null && a > i && a < this.to) {
|
|
244
|
+
i = a, e = this._maps[a].recover(l.recover);
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
n |= l.delInfo, e = l.pos;
|
|
249
|
+
}
|
|
250
|
+
return r ? e : new L(e, n, null);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
const B = /* @__PURE__ */ Object.create(null);
|
|
254
|
+
class k {
|
|
255
|
+
/**
|
|
256
|
+
Get the step map that represents the changes made by this step,
|
|
257
|
+
and which can be used to transform between positions in the old
|
|
258
|
+
and the new document.
|
|
259
|
+
*/
|
|
260
|
+
getMap() {
|
|
261
|
+
return S.empty;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
Try to merge this step with another one, to be applied directly
|
|
265
|
+
after it. Returns the merged step when possible, null if the
|
|
266
|
+
steps can't be merged.
|
|
267
|
+
*/
|
|
268
|
+
merge(e) {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
Deserialize a step from its JSON representation. Will call
|
|
273
|
+
through to the step class' own implementation of this method.
|
|
274
|
+
*/
|
|
275
|
+
static fromJSON(e, t) {
|
|
276
|
+
if (!t || !t.stepType)
|
|
277
|
+
throw new RangeError("Invalid input for Step.fromJSON");
|
|
278
|
+
let r = B[t.stepType];
|
|
279
|
+
if (!r)
|
|
280
|
+
throw new RangeError(`No step type ${t.stepType} defined`);
|
|
281
|
+
return r.fromJSON(e, t);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
To be able to serialize steps to JSON, each step needs a string
|
|
285
|
+
ID to attach to its JSON representation. Use this method to
|
|
286
|
+
register an ID for your step classes. Try to pick something
|
|
287
|
+
that's unlikely to clash with steps from other modules.
|
|
288
|
+
*/
|
|
289
|
+
static jsonID(e, t) {
|
|
290
|
+
if (e in B)
|
|
291
|
+
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
292
|
+
return B[e] = t, t.prototype.jsonID = e, t;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
class y {
|
|
296
|
+
/**
|
|
297
|
+
@internal
|
|
298
|
+
*/
|
|
299
|
+
constructor(e, t) {
|
|
300
|
+
this.doc = e, this.failed = t;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
Create a successful step result.
|
|
304
|
+
*/
|
|
305
|
+
static ok(e) {
|
|
306
|
+
return new y(e, null);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
Create a failed step result.
|
|
310
|
+
*/
|
|
311
|
+
static fail(e) {
|
|
312
|
+
return new y(null, e);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
316
|
+
arguments. Create a successful result if it succeeds, and a
|
|
317
|
+
failed one if it throws a `ReplaceError`.
|
|
318
|
+
*/
|
|
319
|
+
static fromReplace(e, t, r, n) {
|
|
320
|
+
try {
|
|
321
|
+
return y.ok(e.replace(t, r, n));
|
|
322
|
+
} catch (i) {
|
|
323
|
+
if (i instanceof le)
|
|
324
|
+
return y.fail(i.message);
|
|
325
|
+
throw i;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function P(s, e, t) {
|
|
330
|
+
let r = [];
|
|
331
|
+
for (let n = 0; n < s.childCount; n++) {
|
|
332
|
+
let i = s.child(n);
|
|
333
|
+
i.content.size && (i = i.copy(P(i.content, e, i))), i.isInline && (i = e(i, t, n)), r.push(i);
|
|
334
|
+
}
|
|
335
|
+
return g.fromArray(r);
|
|
336
|
+
}
|
|
337
|
+
class C extends k {
|
|
338
|
+
/**
|
|
339
|
+
Create a mark step.
|
|
340
|
+
*/
|
|
341
|
+
constructor(e, t, r) {
|
|
342
|
+
super(), this.from = e, this.to = t, this.mark = r;
|
|
343
|
+
}
|
|
344
|
+
apply(e) {
|
|
345
|
+
let t = e.slice(this.from, this.to), r = e.resolve(this.from), n = r.node(r.sharedDepth(this.to)), i = new w(P(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), n), t.openStart, t.openEnd);
|
|
346
|
+
return y.fromReplace(e, this.from, this.to, i);
|
|
347
|
+
}
|
|
348
|
+
invert() {
|
|
349
|
+
return new b(this.from, this.to, this.mark);
|
|
350
|
+
}
|
|
351
|
+
map(e) {
|
|
352
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
353
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new C(t.pos, r.pos, this.mark);
|
|
354
|
+
}
|
|
355
|
+
merge(e) {
|
|
356
|
+
return e instanceof C && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new C(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
357
|
+
}
|
|
358
|
+
toJSON() {
|
|
359
|
+
return {
|
|
360
|
+
stepType: "addMark",
|
|
361
|
+
mark: this.mark.toJSON(),
|
|
362
|
+
from: this.from,
|
|
363
|
+
to: this.to
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
@internal
|
|
368
|
+
*/
|
|
369
|
+
static fromJSON(e, t) {
|
|
370
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
371
|
+
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
372
|
+
return new C(t.from, t.to, e.markFromJSON(t.mark));
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
k.jsonID("addMark", C);
|
|
376
|
+
class b extends k {
|
|
377
|
+
/**
|
|
378
|
+
Create a mark-removing step.
|
|
379
|
+
*/
|
|
380
|
+
constructor(e, t, r) {
|
|
381
|
+
super(), this.from = e, this.to = t, this.mark = r;
|
|
382
|
+
}
|
|
383
|
+
apply(e) {
|
|
384
|
+
let t = e.slice(this.from, this.to), r = new w(P(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
|
|
385
|
+
return y.fromReplace(e, this.from, this.to, r);
|
|
386
|
+
}
|
|
387
|
+
invert() {
|
|
388
|
+
return new C(this.from, this.to, this.mark);
|
|
389
|
+
}
|
|
390
|
+
map(e) {
|
|
391
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
392
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new b(t.pos, r.pos, this.mark);
|
|
393
|
+
}
|
|
394
|
+
merge(e) {
|
|
395
|
+
return e instanceof b && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new b(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
396
|
+
}
|
|
397
|
+
toJSON() {
|
|
398
|
+
return {
|
|
399
|
+
stepType: "removeMark",
|
|
400
|
+
mark: this.mark.toJSON(),
|
|
401
|
+
from: this.from,
|
|
402
|
+
to: this.to
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
@internal
|
|
407
|
+
*/
|
|
408
|
+
static fromJSON(e, t) {
|
|
409
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
410
|
+
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
411
|
+
return new b(t.from, t.to, e.markFromJSON(t.mark));
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
k.jsonID("removeMark", b);
|
|
415
|
+
class N extends k {
|
|
416
|
+
/**
|
|
417
|
+
Create a node mark step.
|
|
418
|
+
*/
|
|
419
|
+
constructor(e, t) {
|
|
420
|
+
super(), this.pos = e, this.mark = t;
|
|
421
|
+
}
|
|
422
|
+
apply(e) {
|
|
423
|
+
let t = e.nodeAt(this.pos);
|
|
424
|
+
if (!t)
|
|
425
|
+
return y.fail("No node at mark step's position");
|
|
426
|
+
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
427
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new w(g.from(r), 0, t.isLeaf ? 0 : 1));
|
|
428
|
+
}
|
|
429
|
+
invert(e) {
|
|
430
|
+
let t = e.nodeAt(this.pos);
|
|
431
|
+
if (t) {
|
|
432
|
+
let r = this.mark.addToSet(t.marks);
|
|
433
|
+
if (r.length == t.marks.length) {
|
|
434
|
+
for (let n = 0; n < t.marks.length; n++)
|
|
435
|
+
if (!t.marks[n].isInSet(r))
|
|
436
|
+
return new N(this.pos, t.marks[n]);
|
|
437
|
+
return new N(this.pos, this.mark);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return new R(this.pos, this.mark);
|
|
441
|
+
}
|
|
442
|
+
map(e) {
|
|
443
|
+
let t = e.mapResult(this.pos, 1);
|
|
444
|
+
return t.deletedAfter ? null : new N(t.pos, this.mark);
|
|
445
|
+
}
|
|
446
|
+
toJSON() {
|
|
447
|
+
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
@internal
|
|
451
|
+
*/
|
|
452
|
+
static fromJSON(e, t) {
|
|
453
|
+
if (typeof t.pos != "number")
|
|
454
|
+
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
455
|
+
return new N(t.pos, e.markFromJSON(t.mark));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
k.jsonID("addNodeMark", N);
|
|
459
|
+
class R extends k {
|
|
460
|
+
/**
|
|
461
|
+
Create a mark-removing step.
|
|
462
|
+
*/
|
|
463
|
+
constructor(e, t) {
|
|
464
|
+
super(), this.pos = e, this.mark = t;
|
|
465
|
+
}
|
|
466
|
+
apply(e) {
|
|
467
|
+
let t = e.nodeAt(this.pos);
|
|
468
|
+
if (!t)
|
|
469
|
+
return y.fail("No node at mark step's position");
|
|
470
|
+
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
471
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new w(g.from(r), 0, t.isLeaf ? 0 : 1));
|
|
472
|
+
}
|
|
473
|
+
invert(e) {
|
|
474
|
+
let t = e.nodeAt(this.pos);
|
|
475
|
+
return !t || !this.mark.isInSet(t.marks) ? this : new N(this.pos, this.mark);
|
|
476
|
+
}
|
|
477
|
+
map(e) {
|
|
478
|
+
let t = e.mapResult(this.pos, 1);
|
|
479
|
+
return t.deletedAfter ? null : new R(t.pos, this.mark);
|
|
480
|
+
}
|
|
481
|
+
toJSON() {
|
|
482
|
+
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
@internal
|
|
486
|
+
*/
|
|
487
|
+
static fromJSON(e, t) {
|
|
488
|
+
if (typeof t.pos != "number")
|
|
489
|
+
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
490
|
+
return new R(t.pos, e.markFromJSON(t.mark));
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
k.jsonID("removeNodeMark", R);
|
|
494
|
+
class v extends k {
|
|
495
|
+
/**
|
|
496
|
+
The given `slice` should fit the 'gap' between `from` and
|
|
497
|
+
`to`—the depths must line up, and the surrounding nodes must be
|
|
498
|
+
able to be joined with the open sides of the slice. When
|
|
499
|
+
`structure` is true, the step will fail if the content between
|
|
500
|
+
from and to is not just a sequence of closing and then opening
|
|
501
|
+
tokens (this is to guard against rebased replace steps
|
|
502
|
+
overwriting something they weren't supposed to).
|
|
503
|
+
*/
|
|
504
|
+
constructor(e, t, r, n = !1) {
|
|
505
|
+
super(), this.from = e, this.to = t, this.slice = r, this.structure = n;
|
|
506
|
+
}
|
|
507
|
+
apply(e) {
|
|
508
|
+
return this.structure && q(e, this.from, this.to) ? y.fail("Structure replace would overwrite content") : y.fromReplace(e, this.from, this.to, this.slice);
|
|
509
|
+
}
|
|
510
|
+
getMap() {
|
|
511
|
+
return new S([this.from, this.to - this.from, this.slice.size]);
|
|
512
|
+
}
|
|
513
|
+
invert(e) {
|
|
514
|
+
return new v(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
515
|
+
}
|
|
516
|
+
map(e) {
|
|
517
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
518
|
+
return t.deletedAcross && r.deletedAcross ? null : new v(t.pos, Math.max(t.pos, r.pos), this.slice, this.structure);
|
|
519
|
+
}
|
|
520
|
+
merge(e) {
|
|
521
|
+
if (!(e instanceof v) || e.structure || this.structure)
|
|
522
|
+
return null;
|
|
523
|
+
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
524
|
+
let t = this.slice.size + e.slice.size == 0 ? w.empty : new w(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
525
|
+
return new v(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
526
|
+
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
527
|
+
let t = this.slice.size + e.slice.size == 0 ? w.empty : new w(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
528
|
+
return new v(e.from, this.to, t, this.structure);
|
|
529
|
+
} else
|
|
530
|
+
return null;
|
|
531
|
+
}
|
|
532
|
+
toJSON() {
|
|
533
|
+
let e = { stepType: "replace", from: this.from, to: this.to };
|
|
534
|
+
return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
@internal
|
|
538
|
+
*/
|
|
539
|
+
static fromJSON(e, t) {
|
|
540
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
541
|
+
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
542
|
+
return new v(t.from, t.to, w.fromJSON(e, t.slice), !!t.structure);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
k.jsonID("replace", v);
|
|
546
|
+
class M extends k {
|
|
547
|
+
/**
|
|
548
|
+
Create a replace-around step with the given range and gap.
|
|
549
|
+
`insert` should be the point in the slice into which the content
|
|
550
|
+
of the gap should be moved. `structure` has the same meaning as
|
|
551
|
+
it has in the [`ReplaceStep`](https://prosemirror.net/docs/ref/#transform.ReplaceStep) class.
|
|
552
|
+
*/
|
|
553
|
+
constructor(e, t, r, n, i, o, l = !1) {
|
|
554
|
+
super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = n, this.slice = i, this.insert = o, this.structure = l;
|
|
555
|
+
}
|
|
556
|
+
apply(e) {
|
|
557
|
+
if (this.structure && (q(e, this.from, this.gapFrom) || q(e, this.gapTo, this.to)))
|
|
558
|
+
return y.fail("Structure gap-replace would overwrite content");
|
|
559
|
+
let t = e.slice(this.gapFrom, this.gapTo);
|
|
560
|
+
if (t.openStart || t.openEnd)
|
|
561
|
+
return y.fail("Gap is not a flat range");
|
|
562
|
+
let r = this.slice.insertAt(this.insert, t.content);
|
|
563
|
+
return r ? y.fromReplace(e, this.from, this.to, r) : y.fail("Content does not fit in gap");
|
|
564
|
+
}
|
|
565
|
+
getMap() {
|
|
566
|
+
return new S([
|
|
567
|
+
this.from,
|
|
568
|
+
this.gapFrom - this.from,
|
|
569
|
+
this.insert,
|
|
570
|
+
this.gapTo,
|
|
571
|
+
this.to - this.gapTo,
|
|
572
|
+
this.slice.size - this.insert
|
|
573
|
+
]);
|
|
574
|
+
}
|
|
575
|
+
invert(e) {
|
|
576
|
+
let t = this.gapTo - this.gapFrom;
|
|
577
|
+
return new M(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
578
|
+
}
|
|
579
|
+
map(e) {
|
|
580
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
|
|
581
|
+
return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new M(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
|
|
582
|
+
}
|
|
583
|
+
toJSON() {
|
|
584
|
+
let e = {
|
|
585
|
+
stepType: "replaceAround",
|
|
586
|
+
from: this.from,
|
|
587
|
+
to: this.to,
|
|
588
|
+
gapFrom: this.gapFrom,
|
|
589
|
+
gapTo: this.gapTo,
|
|
590
|
+
insert: this.insert
|
|
591
|
+
};
|
|
592
|
+
return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
@internal
|
|
596
|
+
*/
|
|
597
|
+
static fromJSON(e, t) {
|
|
598
|
+
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
599
|
+
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
600
|
+
return new M(t.from, t.to, t.gapFrom, t.gapTo, w.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
k.jsonID("replaceAround", M);
|
|
604
|
+
function q(s, e, t) {
|
|
605
|
+
let r = s.resolve(e), n = t - e, i = r.depth;
|
|
606
|
+
for (; n > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
|
|
607
|
+
i--, n--;
|
|
608
|
+
if (n > 0) {
|
|
609
|
+
let o = r.node(i).maybeChild(r.indexAfter(i));
|
|
610
|
+
for (; n > 0; ) {
|
|
611
|
+
if (!o || o.isLeaf)
|
|
612
|
+
return !0;
|
|
613
|
+
o = o.firstChild, n--;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return !1;
|
|
617
|
+
}
|
|
618
|
+
function pe(s, e, t, r) {
|
|
619
|
+
let n = [], i = [], o, l;
|
|
620
|
+
s.doc.nodesBetween(e, t, (a, h, p) => {
|
|
621
|
+
if (!a.isInline)
|
|
622
|
+
return;
|
|
623
|
+
let c = a.marks;
|
|
624
|
+
if (!r.isInSet(c) && p.type.allowsMarkType(r.type)) {
|
|
625
|
+
let f = Math.max(h, e), d = Math.min(h + a.nodeSize, t), u = r.addToSet(c);
|
|
626
|
+
for (let m = 0; m < c.length; m++)
|
|
627
|
+
c[m].isInSet(u) || (o && o.to == f && o.mark.eq(c[m]) ? o.to = d : n.push(o = new b(f, d, c[m])));
|
|
628
|
+
l && l.to == f ? l.to = d : i.push(l = new C(f, d, r));
|
|
629
|
+
}
|
|
630
|
+
}), n.forEach((a) => s.step(a)), i.forEach((a) => s.step(a));
|
|
631
|
+
}
|
|
632
|
+
function fe(s, e, t, r) {
|
|
633
|
+
let n = [], i = 0;
|
|
634
|
+
s.doc.nodesBetween(e, t, (o, l) => {
|
|
635
|
+
if (!o.isInline)
|
|
636
|
+
return;
|
|
637
|
+
i++;
|
|
638
|
+
let a = null;
|
|
639
|
+
if (r instanceof oe) {
|
|
640
|
+
let h = o.marks, p;
|
|
641
|
+
for (; p = r.isInSet(h); )
|
|
642
|
+
(a || (a = [])).push(p), h = p.removeFromSet(h);
|
|
643
|
+
} else r ? r.isInSet(o.marks) && (a = [r]) : a = o.marks;
|
|
644
|
+
if (a && a.length) {
|
|
645
|
+
let h = Math.min(l + o.nodeSize, t);
|
|
646
|
+
for (let p = 0; p < a.length; p++) {
|
|
647
|
+
let c = a[p], f;
|
|
648
|
+
for (let d = 0; d < n.length; d++) {
|
|
649
|
+
let u = n[d];
|
|
650
|
+
u.step == i - 1 && c.eq(n[d].style) && (f = u);
|
|
651
|
+
}
|
|
652
|
+
f ? (f.to = h, f.step = i) : n.push({ style: c, from: Math.max(l, e), to: h, step: i });
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}), n.forEach((o) => s.step(new b(o.from, o.to, o.style)));
|
|
656
|
+
}
|
|
657
|
+
function $(s, e, t, r = t.contentMatch, n = !0) {
|
|
658
|
+
let i = s.doc.nodeAt(e), o = [], l = e + 1;
|
|
659
|
+
for (let a = 0; a < i.childCount; a++) {
|
|
660
|
+
let h = i.child(a), p = l + h.nodeSize, c = r.matchType(h.type);
|
|
661
|
+
if (!c)
|
|
662
|
+
o.push(new v(l, p, w.empty));
|
|
663
|
+
else {
|
|
664
|
+
r = c;
|
|
665
|
+
for (let f = 0; f < h.marks.length; f++)
|
|
666
|
+
t.allowsMarkType(h.marks[f].type) || s.step(new b(l, p, h.marks[f]));
|
|
667
|
+
if (n && h.isText && t.whitespace != "pre") {
|
|
668
|
+
let f, d = /\r?\n|\r/g, u;
|
|
669
|
+
for (; f = d.exec(h.text); )
|
|
670
|
+
u || (u = new w(g.from(t.schema.text(" ", t.allowedMarks(h.marks))), 0, 0)), o.push(new v(l + f.index, l + f.index + f[0].length, u));
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
l = p;
|
|
674
|
+
}
|
|
675
|
+
if (!r.validEnd) {
|
|
676
|
+
let a = r.fillBefore(g.empty, !0);
|
|
677
|
+
s.replace(l, l, new w(a, 0, 0));
|
|
678
|
+
}
|
|
679
|
+
for (let a = o.length - 1; a >= 0; a--)
|
|
680
|
+
s.step(o[a]);
|
|
681
|
+
}
|
|
682
|
+
function ce(s, e, t) {
|
|
683
|
+
return (e == 0 || s.canReplace(e, s.childCount)) && (t == s.childCount || s.canReplace(0, t));
|
|
684
|
+
}
|
|
685
|
+
function Fe(s) {
|
|
686
|
+
let t = s.parent.content.cutByIndex(s.startIndex, s.endIndex);
|
|
687
|
+
for (let r = s.depth; ; --r) {
|
|
688
|
+
let n = s.$from.node(r), i = s.$from.index(r), o = s.$to.indexAfter(r);
|
|
689
|
+
if (r < s.depth && n.canReplace(i, o, t))
|
|
690
|
+
return r;
|
|
691
|
+
if (r == 0 || n.type.spec.isolating || !ce(n, i, o))
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
return null;
|
|
695
|
+
}
|
|
696
|
+
function de(s, e, t) {
|
|
697
|
+
let { $from: r, $to: n, depth: i } = e, o = r.before(i + 1), l = n.after(i + 1), a = o, h = l, p = g.empty, c = 0;
|
|
698
|
+
for (let u = i, m = !1; u > t; u--)
|
|
699
|
+
m || r.index(u) > 0 ? (m = !0, p = g.from(r.node(u).copy(p)), c++) : a--;
|
|
700
|
+
let f = g.empty, d = 0;
|
|
701
|
+
for (let u = i, m = !1; u > t; u--)
|
|
702
|
+
m || n.after(u + 1) < n.end(u) ? (m = !0, f = g.from(n.node(u).copy(f)), d++) : h++;
|
|
703
|
+
s.step(new M(a, h, o, l, new w(p.append(f), c, d), p.size - c, !0));
|
|
704
|
+
}
|
|
705
|
+
function ze(s, e, t = null, r = s) {
|
|
706
|
+
let n = ue(s, e), i = n && me(r, e);
|
|
707
|
+
return i ? n.map(K).concat({ type: e, attrs: t }).concat(i.map(K)) : null;
|
|
708
|
+
}
|
|
709
|
+
function K(s) {
|
|
710
|
+
return { type: s, attrs: null };
|
|
711
|
+
}
|
|
712
|
+
function ue(s, e) {
|
|
713
|
+
let { parent: t, startIndex: r, endIndex: n } = s, i = t.contentMatchAt(r).findWrapping(e);
|
|
714
|
+
if (!i)
|
|
715
|
+
return null;
|
|
716
|
+
let o = i.length ? i[0] : e;
|
|
717
|
+
return t.canReplaceWith(r, n, o) ? i : null;
|
|
718
|
+
}
|
|
719
|
+
function me(s, e) {
|
|
720
|
+
let { parent: t, startIndex: r, endIndex: n } = s, i = t.child(r), o = e.contentMatch.findWrapping(i.type);
|
|
721
|
+
if (!o)
|
|
722
|
+
return null;
|
|
723
|
+
let a = (o.length ? o[o.length - 1] : e).contentMatch;
|
|
724
|
+
for (let h = r; a && h < n; h++)
|
|
725
|
+
a = a.matchType(t.child(h).type);
|
|
726
|
+
return !a || !a.validEnd ? null : o;
|
|
727
|
+
}
|
|
728
|
+
function we(s, e, t) {
|
|
729
|
+
let r = g.empty;
|
|
730
|
+
for (let o = t.length - 1; o >= 0; o--) {
|
|
731
|
+
if (r.size) {
|
|
732
|
+
let l = t[o].type.contentMatch.matchFragment(r);
|
|
733
|
+
if (!l || !l.validEnd)
|
|
734
|
+
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
735
|
+
}
|
|
736
|
+
r = g.from(t[o].type.create(t[o].attrs, r));
|
|
737
|
+
}
|
|
738
|
+
let n = e.start, i = e.end;
|
|
739
|
+
s.step(new M(n, i, n, i, new w(r, 0, 0), t.length, !0));
|
|
740
|
+
}
|
|
741
|
+
function ge(s, e, t, r, n) {
|
|
742
|
+
if (!r.isTextblock)
|
|
743
|
+
throw new RangeError("Type given to setBlockType should be a textblock");
|
|
744
|
+
let i = s.steps.length;
|
|
745
|
+
s.doc.nodesBetween(e, t, (o, l) => {
|
|
746
|
+
let a = typeof n == "function" ? n(o) : n;
|
|
747
|
+
if (o.isTextblock && !o.hasMarkup(r, a) && ye(s.doc, s.mapping.slice(i).map(l), r)) {
|
|
748
|
+
let h = null;
|
|
749
|
+
if (r.schema.linebreakReplacement) {
|
|
750
|
+
let d = r.whitespace == "pre", u = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
751
|
+
d && !u ? h = !1 : !d && u && (h = !0);
|
|
752
|
+
}
|
|
753
|
+
h === !1 && _(s, o, l, i), $(s, s.mapping.slice(i).map(l, 1), r, void 0, h === null);
|
|
754
|
+
let p = s.mapping.slice(i), c = p.map(l, 1), f = p.map(l + o.nodeSize, 1);
|
|
755
|
+
return s.step(new M(c, f, c + 1, f - 1, new w(g.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), h === !0 && Z(s, o, l, i), !1;
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
function Z(s, e, t, r) {
|
|
760
|
+
e.forEach((n, i) => {
|
|
761
|
+
if (n.isText) {
|
|
762
|
+
let o, l = /\r?\n|\r/g;
|
|
763
|
+
for (; o = l.exec(n.text); ) {
|
|
764
|
+
let a = s.mapping.slice(r).map(t + 1 + i + o.index);
|
|
765
|
+
s.replaceWith(a, a + 1, e.type.schema.linebreakReplacement.create());
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
function _(s, e, t, r) {
|
|
771
|
+
e.forEach((n, i) => {
|
|
772
|
+
if (n.type == n.type.schema.linebreakReplacement) {
|
|
773
|
+
let o = s.mapping.slice(r).map(t + 1 + i);
|
|
774
|
+
s.replaceWith(o, o + 1, e.type.schema.text(`
|
|
775
|
+
`));
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
function ye(s, e, t) {
|
|
780
|
+
let r = s.resolve(e), n = r.index();
|
|
781
|
+
return r.parent.canReplaceWith(n, n + 1, t);
|
|
782
|
+
}
|
|
783
|
+
function ke(s, e, t, r, n) {
|
|
784
|
+
let i = s.doc.nodeAt(e);
|
|
785
|
+
if (!i)
|
|
786
|
+
throw new RangeError("No node at given position");
|
|
787
|
+
t || (t = i.type);
|
|
788
|
+
let o = t.create(r, null, n || i.marks);
|
|
789
|
+
if (i.isLeaf)
|
|
790
|
+
return s.replaceWith(e, e + i.nodeSize, o);
|
|
791
|
+
if (!t.validContent(i.content))
|
|
792
|
+
throw new RangeError("Invalid content for node type " + t.name);
|
|
793
|
+
s.step(new M(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new w(g.from(o), 0, 0), 1, !0));
|
|
794
|
+
}
|
|
795
|
+
function Je(s, e, t = 1, r) {
|
|
796
|
+
let n = s.resolve(e), i = n.depth - t, o = r && r[r.length - 1] || n.parent;
|
|
797
|
+
if (i < 0 || n.parent.type.spec.isolating || !n.parent.canReplace(n.index(), n.parent.childCount) || !o.type.validContent(n.parent.content.cutByIndex(n.index(), n.parent.childCount)))
|
|
798
|
+
return !1;
|
|
799
|
+
for (let h = n.depth - 1, p = t - 2; h > i; h--, p--) {
|
|
800
|
+
let c = n.node(h), f = n.index(h);
|
|
801
|
+
if (c.type.spec.isolating)
|
|
802
|
+
return !1;
|
|
803
|
+
let d = c.content.cutByIndex(f, c.childCount), u = r && r[p + 1];
|
|
804
|
+
u && (d = d.replaceChild(0, u.type.create(u.attrs)));
|
|
805
|
+
let m = r && r[p] || c;
|
|
806
|
+
if (!c.canReplace(f + 1, c.childCount) || !m.type.validContent(d))
|
|
807
|
+
return !1;
|
|
808
|
+
}
|
|
809
|
+
let l = n.indexAfter(i), a = r && r[0];
|
|
810
|
+
return n.node(i).canReplaceWith(l, l, a ? a.type : n.node(i + 1).type);
|
|
811
|
+
}
|
|
812
|
+
function ve(s, e, t = 1, r) {
|
|
813
|
+
let n = s.doc.resolve(e), i = g.empty, o = g.empty;
|
|
814
|
+
for (let l = n.depth, a = n.depth - t, h = t - 1; l > a; l--, h--) {
|
|
815
|
+
i = g.from(n.node(l).copy(i));
|
|
816
|
+
let p = r && r[h];
|
|
817
|
+
o = g.from(p ? p.type.create(p.attrs, o) : n.node(l).copy(o));
|
|
818
|
+
}
|
|
819
|
+
s.step(new v(e, e, new w(i.append(o), t, t), !0));
|
|
820
|
+
}
|
|
821
|
+
function Ae(s, e) {
|
|
822
|
+
let t = s.resolve(e), r = t.index();
|
|
823
|
+
return j(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
|
|
824
|
+
}
|
|
825
|
+
function xe(s, e) {
|
|
826
|
+
e.content.size || s.type.compatibleContent(e.type);
|
|
827
|
+
let t = s.contentMatchAt(s.childCount), { linebreakReplacement: r } = s.type.schema;
|
|
828
|
+
for (let n = 0; n < e.childCount; n++) {
|
|
829
|
+
let i = e.child(n), o = i.type == r ? s.type.schema.nodes.text : i.type;
|
|
830
|
+
if (t = t.matchType(o), !t || !s.type.allowsMarks(i.marks))
|
|
831
|
+
return !1;
|
|
832
|
+
}
|
|
833
|
+
return t.validEnd;
|
|
834
|
+
}
|
|
835
|
+
function j(s, e) {
|
|
836
|
+
return !!(s && e && !s.isLeaf && xe(s, e));
|
|
837
|
+
}
|
|
838
|
+
function Be(s, e, t = -1) {
|
|
839
|
+
let r = s.resolve(e);
|
|
840
|
+
for (let n = r.depth; ; n--) {
|
|
841
|
+
let i, o, l = r.index(n);
|
|
842
|
+
if (n == r.depth ? (i = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (i = r.node(n + 1), l++, o = r.node(n).maybeChild(l)) : (i = r.node(n).maybeChild(l - 1), o = r.node(n + 1)), i && !i.isTextblock && j(i, o) && r.node(n).canReplace(l, l + 1))
|
|
843
|
+
return e;
|
|
844
|
+
if (n == 0)
|
|
845
|
+
break;
|
|
846
|
+
e = t < 0 ? r.before(n) : r.after(n);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
function Se(s, e, t) {
|
|
850
|
+
let r = null, { linebreakReplacement: n } = s.doc.type.schema, i = s.doc.resolve(e - t), o = i.node().type;
|
|
851
|
+
if (n && o.inlineContent) {
|
|
852
|
+
let p = o.whitespace == "pre", c = !!o.contentMatch.matchType(n);
|
|
853
|
+
p && !c ? r = !1 : !p && c && (r = !0);
|
|
854
|
+
}
|
|
855
|
+
let l = s.steps.length;
|
|
856
|
+
if (r === !1) {
|
|
857
|
+
let p = s.doc.resolve(e + t);
|
|
858
|
+
_(s, p.node(), p.before(), l);
|
|
859
|
+
}
|
|
860
|
+
o.inlineContent && $(s, e + t - 1, o, i.node().contentMatchAt(i.index()), r == null);
|
|
861
|
+
let a = s.mapping.slice(l), h = a.map(e - t);
|
|
862
|
+
if (s.step(new v(h, a.map(e + t, -1), w.empty, !0)), r === !0) {
|
|
863
|
+
let p = s.doc.resolve(h);
|
|
864
|
+
Z(s, p.node(), p.before(), s.steps.length);
|
|
865
|
+
}
|
|
866
|
+
return s;
|
|
867
|
+
}
|
|
868
|
+
function be(s, e, t) {
|
|
869
|
+
let r = s.resolve(e);
|
|
870
|
+
if (r.parent.canReplaceWith(r.index(), r.index(), t))
|
|
871
|
+
return e;
|
|
872
|
+
if (r.parentOffset == 0)
|
|
873
|
+
for (let n = r.depth - 1; n >= 0; n--) {
|
|
874
|
+
let i = r.index(n);
|
|
875
|
+
if (r.node(n).canReplaceWith(i, i, t))
|
|
876
|
+
return r.before(n + 1);
|
|
877
|
+
if (i > 0)
|
|
878
|
+
return null;
|
|
879
|
+
}
|
|
880
|
+
if (r.parentOffset == r.parent.content.size)
|
|
881
|
+
for (let n = r.depth - 1; n >= 0; n--) {
|
|
882
|
+
let i = r.indexAfter(n);
|
|
883
|
+
if (r.node(n).canReplaceWith(i, i, t))
|
|
884
|
+
return r.after(n + 1);
|
|
885
|
+
if (i < r.node(n).childCount)
|
|
886
|
+
return null;
|
|
887
|
+
}
|
|
888
|
+
return null;
|
|
889
|
+
}
|
|
890
|
+
function We(s, e, t) {
|
|
891
|
+
let r = s.resolve(e);
|
|
892
|
+
if (!t.content.size)
|
|
893
|
+
return e;
|
|
894
|
+
let n = t.content;
|
|
895
|
+
for (let i = 0; i < t.openStart; i++)
|
|
896
|
+
n = n.firstChild.content;
|
|
897
|
+
for (let i = 1; i <= (t.openStart == 0 && t.size ? 2 : 1); i++)
|
|
898
|
+
for (let o = r.depth; o >= 0; o--) {
|
|
899
|
+
let l = o == r.depth ? 0 : r.pos <= (r.start(o + 1) + r.end(o + 1)) / 2 ? -1 : 1, a = r.index(o) + (l > 0 ? 1 : 0), h = r.node(o), p = !1;
|
|
900
|
+
if (i == 1)
|
|
901
|
+
p = h.canReplace(a, a, n);
|
|
902
|
+
else {
|
|
903
|
+
let c = h.contentMatchAt(a).findWrapping(n.firstChild.type);
|
|
904
|
+
p = c && h.canReplaceWith(a, a, c[0]);
|
|
905
|
+
}
|
|
906
|
+
if (p)
|
|
907
|
+
return l == 0 ? r.pos : l < 0 ? r.before(o + 1) : r.after(o + 1);
|
|
908
|
+
}
|
|
909
|
+
return null;
|
|
910
|
+
}
|
|
911
|
+
function Me(s, e, t = e, r = w.empty) {
|
|
912
|
+
if (e == t && !r.size)
|
|
913
|
+
return null;
|
|
914
|
+
let n = s.resolve(e), i = s.resolve(t);
|
|
915
|
+
return ee(n, i, r) ? new v(e, t, r) : new Ce(n, i, r).fit();
|
|
916
|
+
}
|
|
917
|
+
function ee(s, e, t) {
|
|
918
|
+
return !t.openStart && !t.openEnd && s.start() == e.start() && s.parent.canReplace(s.index(), e.index(), t.content);
|
|
919
|
+
}
|
|
920
|
+
class Ce {
|
|
921
|
+
constructor(e, t, r) {
|
|
922
|
+
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = g.empty;
|
|
923
|
+
for (let n = 0; n <= e.depth; n++) {
|
|
924
|
+
let i = e.node(n);
|
|
925
|
+
this.frontier.push({
|
|
926
|
+
type: i.type,
|
|
927
|
+
match: i.contentMatchAt(e.indexAfter(n))
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
for (let n = e.depth; n > 0; n--)
|
|
931
|
+
this.placed = g.from(e.node(n).copy(this.placed));
|
|
932
|
+
}
|
|
933
|
+
get depth() {
|
|
934
|
+
return this.frontier.length - 1;
|
|
935
|
+
}
|
|
936
|
+
fit() {
|
|
937
|
+
for (; this.unplaced.size; ) {
|
|
938
|
+
let h = this.findFittable();
|
|
939
|
+
h ? this.placeNodes(h) : this.openMore() || this.dropNode();
|
|
940
|
+
}
|
|
941
|
+
let e = this.mustMoveInline(), t = this.placed.size - this.depth - this.$from.depth, r = this.$from, n = this.close(e < 0 ? this.$to : r.doc.resolve(e));
|
|
942
|
+
if (!n)
|
|
943
|
+
return null;
|
|
944
|
+
let i = this.placed, o = r.depth, l = n.depth;
|
|
945
|
+
for (; o && l && i.childCount == 1; )
|
|
946
|
+
i = i.firstChild.content, o--, l--;
|
|
947
|
+
let a = new w(i, o, l);
|
|
948
|
+
return e > -1 ? new M(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new v(r.pos, n.pos, a) : null;
|
|
949
|
+
}
|
|
950
|
+
// Find a position on the start spine of `this.unplaced` that has
|
|
951
|
+
// content that can be moved somewhere on the frontier. Returns two
|
|
952
|
+
// depths, one for the slice and one for the frontier.
|
|
953
|
+
findFittable() {
|
|
954
|
+
let e = this.unplaced.openStart;
|
|
955
|
+
for (let t = this.unplaced.content, r = 0, n = this.unplaced.openEnd; r < e; r++) {
|
|
956
|
+
let i = t.firstChild;
|
|
957
|
+
if (t.childCount > 1 && (n = 0), i.type.spec.isolating && n <= r) {
|
|
958
|
+
e = r;
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
t = i.content;
|
|
962
|
+
}
|
|
963
|
+
for (let t = 1; t <= 2; t++)
|
|
964
|
+
for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
965
|
+
let n, i = null;
|
|
966
|
+
r ? (i = W(this.unplaced.content, r - 1).firstChild, n = i.content) : n = this.unplaced.content;
|
|
967
|
+
let o = n.firstChild;
|
|
968
|
+
for (let l = this.depth; l >= 0; l--) {
|
|
969
|
+
let { type: a, match: h } = this.frontier[l], p, c = null;
|
|
970
|
+
if (t == 1 && (o ? h.matchType(o.type) || (c = h.fillBefore(g.from(o), !1)) : i && a.compatibleContent(i.type)))
|
|
971
|
+
return { sliceDepth: r, frontierDepth: l, parent: i, inject: c };
|
|
972
|
+
if (t == 2 && o && (p = h.findWrapping(o.type)))
|
|
973
|
+
return { sliceDepth: r, frontierDepth: l, parent: i, wrap: p };
|
|
974
|
+
if (i && h.matchType(i.type))
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
openMore() {
|
|
980
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
|
|
981
|
+
return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new w(e, t + 1, Math.max(r, n.size + t >= e.size - r ? t + 1 : 0)), !0);
|
|
982
|
+
}
|
|
983
|
+
dropNode() {
|
|
984
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
|
|
985
|
+
if (n.childCount <= 1 && t > 0) {
|
|
986
|
+
let i = e.size - t <= t + n.size;
|
|
987
|
+
this.unplaced = new w(O(e, t - 1, 1), t - 1, i ? t - 1 : r);
|
|
988
|
+
} else
|
|
989
|
+
this.unplaced = new w(O(e, t, 1), t, r);
|
|
990
|
+
}
|
|
991
|
+
// Move content from the unplaced slice at `sliceDepth` to the
|
|
992
|
+
// frontier node at `frontierDepth`. Close that frontier node when
|
|
993
|
+
// applicable.
|
|
994
|
+
placeNodes({ sliceDepth: e, frontierDepth: t, parent: r, inject: n, wrap: i }) {
|
|
995
|
+
for (; this.depth > t; )
|
|
996
|
+
this.closeFrontierNode();
|
|
997
|
+
if (i)
|
|
998
|
+
for (let m = 0; m < i.length; m++)
|
|
999
|
+
this.openFrontierNode(i[m]);
|
|
1000
|
+
let o = this.unplaced, l = r ? r.content : o.content, a = o.openStart - e, h = 0, p = [], { match: c, type: f } = this.frontier[t];
|
|
1001
|
+
if (n) {
|
|
1002
|
+
for (let m = 0; m < n.childCount; m++)
|
|
1003
|
+
p.push(n.child(m));
|
|
1004
|
+
c = c.matchFragment(n);
|
|
1005
|
+
}
|
|
1006
|
+
let d = l.size + e - (o.content.size - o.openEnd);
|
|
1007
|
+
for (; h < l.childCount; ) {
|
|
1008
|
+
let m = l.child(h), x = c.matchType(m.type);
|
|
1009
|
+
if (!x)
|
|
1010
|
+
break;
|
|
1011
|
+
h++, (h > 1 || a == 0 || m.content.size) && (c = x, p.push(te(m.mark(f.allowedMarks(m.marks)), h == 1 ? a : 0, h == l.childCount ? d : -1)));
|
|
1012
|
+
}
|
|
1013
|
+
let u = h == l.childCount;
|
|
1014
|
+
u || (d = -1), this.placed = F(this.placed, t, g.from(p)), this.frontier[t].match = c, u && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
1015
|
+
for (let m = 0, x = l; m < d; m++) {
|
|
1016
|
+
let I = x.lastChild;
|
|
1017
|
+
this.frontier.push({ type: I.type, match: I.contentMatchAt(I.childCount) }), x = I.content;
|
|
1018
|
+
}
|
|
1019
|
+
this.unplaced = u ? e == 0 ? w.empty : new w(O(o.content, e - 1, 1), e - 1, d < 0 ? o.openEnd : e - 1) : new w(O(o.content, e, h), o.openStart, o.openEnd);
|
|
1020
|
+
}
|
|
1021
|
+
mustMoveInline() {
|
|
1022
|
+
if (!this.$to.parent.isTextblock)
|
|
1023
|
+
return -1;
|
|
1024
|
+
let e = this.frontier[this.depth], t;
|
|
1025
|
+
if (!e.type.isTextblock || !D(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
|
|
1026
|
+
return -1;
|
|
1027
|
+
let { depth: r } = this.$to, n = this.$to.after(r);
|
|
1028
|
+
for (; r > 1 && n == this.$to.end(--r); )
|
|
1029
|
+
++n;
|
|
1030
|
+
return n;
|
|
1031
|
+
}
|
|
1032
|
+
findCloseLevel(e) {
|
|
1033
|
+
e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
1034
|
+
let { match: r, type: n } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), o = D(e, t, n, r, i);
|
|
1035
|
+
if (o) {
|
|
1036
|
+
for (let l = t - 1; l >= 0; l--) {
|
|
1037
|
+
let { match: a, type: h } = this.frontier[l], p = D(e, l, h, a, !0);
|
|
1038
|
+
if (!p || p.childCount)
|
|
1039
|
+
continue e;
|
|
1040
|
+
}
|
|
1041
|
+
return { depth: t, fit: o, move: i ? e.doc.resolve(e.after(t + 1)) : e };
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
close(e) {
|
|
1046
|
+
let t = this.findCloseLevel(e);
|
|
1047
|
+
if (!t)
|
|
1048
|
+
return null;
|
|
1049
|
+
for (; this.depth > t.depth; )
|
|
1050
|
+
this.closeFrontierNode();
|
|
1051
|
+
t.fit.childCount && (this.placed = F(this.placed, t.depth, t.fit)), e = t.move;
|
|
1052
|
+
for (let r = t.depth + 1; r <= e.depth; r++) {
|
|
1053
|
+
let n = e.node(r), i = n.type.contentMatch.fillBefore(n.content, !0, e.index(r));
|
|
1054
|
+
this.openFrontierNode(n.type, n.attrs, i);
|
|
1055
|
+
}
|
|
1056
|
+
return e;
|
|
1057
|
+
}
|
|
1058
|
+
openFrontierNode(e, t = null, r) {
|
|
1059
|
+
let n = this.frontier[this.depth];
|
|
1060
|
+
n.match = n.match.matchType(e), this.placed = F(this.placed, this.depth, g.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
1061
|
+
}
|
|
1062
|
+
closeFrontierNode() {
|
|
1063
|
+
let t = this.frontier.pop().match.fillBefore(g.empty, !0);
|
|
1064
|
+
t.childCount && (this.placed = F(this.placed, this.frontier.length, t));
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function O(s, e, t) {
|
|
1068
|
+
return e == 0 ? s.cutByIndex(t, s.childCount) : s.replaceChild(0, s.firstChild.copy(O(s.firstChild.content, e - 1, t)));
|
|
1069
|
+
}
|
|
1070
|
+
function F(s, e, t) {
|
|
1071
|
+
return e == 0 ? s.append(t) : s.replaceChild(s.childCount - 1, s.lastChild.copy(F(s.lastChild.content, e - 1, t)));
|
|
1072
|
+
}
|
|
1073
|
+
function W(s, e) {
|
|
1074
|
+
for (let t = 0; t < e; t++)
|
|
1075
|
+
s = s.firstChild.content;
|
|
1076
|
+
return s;
|
|
1077
|
+
}
|
|
1078
|
+
function te(s, e, t) {
|
|
1079
|
+
if (e <= 0)
|
|
1080
|
+
return s;
|
|
1081
|
+
let r = s.content;
|
|
1082
|
+
return e > 1 && (r = r.replaceChild(0, te(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = s.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(s.type.contentMatch.matchFragment(r).fillBefore(g.empty, !0)))), s.copy(r);
|
|
1083
|
+
}
|
|
1084
|
+
function D(s, e, t, r, n) {
|
|
1085
|
+
let i = s.node(e), o = n ? s.indexAfter(e) : s.index(e);
|
|
1086
|
+
if (o == i.childCount && !t.compatibleContent(i.type))
|
|
1087
|
+
return null;
|
|
1088
|
+
let l = r.fillBefore(i.content, !0, o);
|
|
1089
|
+
return l && !Ne(t, i.content, o) ? l : null;
|
|
1090
|
+
}
|
|
1091
|
+
function Ne(s, e, t) {
|
|
1092
|
+
for (let r = t; r < e.childCount; r++)
|
|
1093
|
+
if (!s.allowsMarks(e.child(r).marks))
|
|
1094
|
+
return !0;
|
|
1095
|
+
return !1;
|
|
1096
|
+
}
|
|
1097
|
+
function Ie(s) {
|
|
1098
|
+
return s.spec.defining || s.spec.definingForContent;
|
|
1099
|
+
}
|
|
1100
|
+
function Re(s, e, t, r) {
|
|
1101
|
+
if (!r.size)
|
|
1102
|
+
return s.deleteRange(e, t);
|
|
1103
|
+
let n = s.doc.resolve(e), i = s.doc.resolve(t);
|
|
1104
|
+
if (ee(n, i, r))
|
|
1105
|
+
return s.step(new v(e, t, r));
|
|
1106
|
+
let o = ne(n, s.doc.resolve(t));
|
|
1107
|
+
o[o.length - 1] == 0 && o.pop();
|
|
1108
|
+
let l = -(n.depth + 1);
|
|
1109
|
+
o.unshift(l);
|
|
1110
|
+
for (let f = n.depth, d = n.pos - 1; f > 0; f--, d--) {
|
|
1111
|
+
let u = n.node(f).type.spec;
|
|
1112
|
+
if (u.defining || u.definingAsContext || u.isolating)
|
|
1113
|
+
break;
|
|
1114
|
+
o.indexOf(f) > -1 ? l = f : n.before(f) == d && o.splice(1, 0, -f);
|
|
1115
|
+
}
|
|
1116
|
+
let a = o.indexOf(l), h = [], p = r.openStart;
|
|
1117
|
+
for (let f = r.content, d = 0; ; d++) {
|
|
1118
|
+
let u = f.firstChild;
|
|
1119
|
+
if (h.push(u), d == r.openStart)
|
|
1120
|
+
break;
|
|
1121
|
+
f = u.content;
|
|
1122
|
+
}
|
|
1123
|
+
for (let f = p - 1; f >= 0; f--) {
|
|
1124
|
+
let d = h[f], u = Ie(d.type);
|
|
1125
|
+
if (u && !d.sameMarkup(n.node(Math.abs(l) - 1)))
|
|
1126
|
+
p = f;
|
|
1127
|
+
else if (u || !d.type.isTextblock)
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
for (let f = r.openStart; f >= 0; f--) {
|
|
1131
|
+
let d = (f + p + 1) % (r.openStart + 1), u = h[d];
|
|
1132
|
+
if (u)
|
|
1133
|
+
for (let m = 0; m < o.length; m++) {
|
|
1134
|
+
let x = o[(m + a) % o.length], I = !0;
|
|
1135
|
+
x < 0 && (I = !1, x = -x);
|
|
1136
|
+
let ie = n.node(x - 1), G = n.index(x - 1);
|
|
1137
|
+
if (ie.canReplaceWith(G, G, u.type, u.marks))
|
|
1138
|
+
return s.replace(n.before(x), I ? i.after(x) : t, new w(re(r.content, 0, r.openStart, d), d, r.openEnd));
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
let c = s.steps.length;
|
|
1142
|
+
for (let f = o.length - 1; f >= 0 && (s.replace(e, t, r), !(s.steps.length > c)); f--) {
|
|
1143
|
+
let d = o[f];
|
|
1144
|
+
d < 0 || (e = n.before(d), t = i.after(d));
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
function re(s, e, t, r, n) {
|
|
1148
|
+
if (e < t) {
|
|
1149
|
+
let i = s.firstChild;
|
|
1150
|
+
s = s.replaceChild(0, i.copy(re(i.content, e + 1, t, r, i)));
|
|
1151
|
+
}
|
|
1152
|
+
if (e > r) {
|
|
1153
|
+
let i = n.contentMatchAt(0), o = i.fillBefore(s).append(s);
|
|
1154
|
+
s = o.append(i.matchFragment(o).fillBefore(g.empty, !0));
|
|
1155
|
+
}
|
|
1156
|
+
return s;
|
|
1157
|
+
}
|
|
1158
|
+
function Te(s, e, t, r) {
|
|
1159
|
+
if (!r.isInline && e == t && s.doc.resolve(e).parent.content.size) {
|
|
1160
|
+
let n = be(s.doc, e, r.type);
|
|
1161
|
+
n != null && (e = t = n);
|
|
1162
|
+
}
|
|
1163
|
+
s.replaceRange(e, t, new w(g.from(r), 0, 0));
|
|
1164
|
+
}
|
|
1165
|
+
function Ee(s, e, t) {
|
|
1166
|
+
let r = s.doc.resolve(e), n = s.doc.resolve(t), i = ne(r, n);
|
|
1167
|
+
for (let o = 0; o < i.length; o++) {
|
|
1168
|
+
let l = i[o], a = o == i.length - 1;
|
|
1169
|
+
if (a && l == 0 || r.node(l).type.contentMatch.validEnd)
|
|
1170
|
+
return s.delete(r.start(l), n.end(l));
|
|
1171
|
+
if (l > 0 && (a || r.node(l - 1).canReplace(r.index(l - 1), n.indexAfter(l - 1))))
|
|
1172
|
+
return s.delete(r.before(l), n.after(l));
|
|
1173
|
+
}
|
|
1174
|
+
for (let o = 1; o <= r.depth && o <= n.depth; o++)
|
|
1175
|
+
if (e - r.start(o) == r.depth - o && t > r.end(o) && n.end(o) - t != n.depth - o && r.start(o - 1) == n.start(o - 1) && r.node(o - 1).canReplace(r.index(o - 1), n.index(o - 1)))
|
|
1176
|
+
return s.delete(r.before(o), t);
|
|
1177
|
+
s.delete(e, t);
|
|
1178
|
+
}
|
|
1179
|
+
function ne(s, e) {
|
|
1180
|
+
let t = [], r = Math.min(s.depth, e.depth);
|
|
1181
|
+
for (let n = r; n >= 0; n--) {
|
|
1182
|
+
let i = s.start(n);
|
|
1183
|
+
if (i < s.pos - (s.depth - n) || e.end(n) > e.pos + (e.depth - n) || s.node(n).type.spec.isolating || e.node(n).type.spec.isolating)
|
|
1184
|
+
break;
|
|
1185
|
+
(i == e.start(n) || n == s.depth && n == e.depth && s.parent.inlineContent && e.parent.inlineContent && n && e.start(n - 1) == i - 1) && t.push(n);
|
|
1186
|
+
}
|
|
1187
|
+
return t;
|
|
1188
|
+
}
|
|
1189
|
+
class T extends k {
|
|
1190
|
+
/**
|
|
1191
|
+
Construct an attribute step.
|
|
1192
|
+
*/
|
|
1193
|
+
constructor(e, t, r) {
|
|
1194
|
+
super(), this.pos = e, this.attr = t, this.value = r;
|
|
1195
|
+
}
|
|
1196
|
+
apply(e) {
|
|
1197
|
+
let t = e.nodeAt(this.pos);
|
|
1198
|
+
if (!t)
|
|
1199
|
+
return y.fail("No node at attribute step's position");
|
|
1200
|
+
let r = /* @__PURE__ */ Object.create(null);
|
|
1201
|
+
for (let i in t.attrs)
|
|
1202
|
+
r[i] = t.attrs[i];
|
|
1203
|
+
r[this.attr] = this.value;
|
|
1204
|
+
let n = t.type.create(r, null, t.marks);
|
|
1205
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new w(g.from(n), 0, t.isLeaf ? 0 : 1));
|
|
1206
|
+
}
|
|
1207
|
+
getMap() {
|
|
1208
|
+
return S.empty;
|
|
1209
|
+
}
|
|
1210
|
+
invert(e) {
|
|
1211
|
+
return new T(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
1212
|
+
}
|
|
1213
|
+
map(e) {
|
|
1214
|
+
let t = e.mapResult(this.pos, 1);
|
|
1215
|
+
return t.deletedAfter ? null : new T(t.pos, this.attr, this.value);
|
|
1216
|
+
}
|
|
1217
|
+
toJSON() {
|
|
1218
|
+
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
1219
|
+
}
|
|
1220
|
+
static fromJSON(e, t) {
|
|
1221
|
+
if (typeof t.pos != "number" || typeof t.attr != "string")
|
|
1222
|
+
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
1223
|
+
return new T(t.pos, t.attr, t.value);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
k.jsonID("attr", T);
|
|
1227
|
+
class z extends k {
|
|
1228
|
+
/**
|
|
1229
|
+
Construct an attribute step.
|
|
1230
|
+
*/
|
|
1231
|
+
constructor(e, t) {
|
|
1232
|
+
super(), this.attr = e, this.value = t;
|
|
1233
|
+
}
|
|
1234
|
+
apply(e) {
|
|
1235
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
1236
|
+
for (let n in e.attrs)
|
|
1237
|
+
t[n] = e.attrs[n];
|
|
1238
|
+
t[this.attr] = this.value;
|
|
1239
|
+
let r = e.type.create(t, e.content, e.marks);
|
|
1240
|
+
return y.ok(r);
|
|
1241
|
+
}
|
|
1242
|
+
getMap() {
|
|
1243
|
+
return S.empty;
|
|
1244
|
+
}
|
|
1245
|
+
invert(e) {
|
|
1246
|
+
return new z(this.attr, e.attrs[this.attr]);
|
|
1247
|
+
}
|
|
1248
|
+
map(e) {
|
|
1249
|
+
return this;
|
|
1250
|
+
}
|
|
1251
|
+
toJSON() {
|
|
1252
|
+
return { stepType: "docAttr", attr: this.attr, value: this.value };
|
|
1253
|
+
}
|
|
1254
|
+
static fromJSON(e, t) {
|
|
1255
|
+
if (typeof t.attr != "string")
|
|
1256
|
+
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
1257
|
+
return new z(t.attr, t.value);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
k.jsonID("docAttr", z);
|
|
1261
|
+
let E = class extends Error {
|
|
1262
|
+
};
|
|
1263
|
+
E = function s(e) {
|
|
1264
|
+
let t = Error.call(this, e);
|
|
1265
|
+
return t.__proto__ = s.prototype, t;
|
|
1266
|
+
};
|
|
1267
|
+
E.prototype = Object.create(Error.prototype);
|
|
1268
|
+
E.prototype.constructor = E;
|
|
1269
|
+
E.prototype.name = "TransformError";
|
|
1270
|
+
class De {
|
|
1271
|
+
/**
|
|
1272
|
+
Create a transform that starts with the given document.
|
|
1273
|
+
*/
|
|
1274
|
+
constructor(e) {
|
|
1275
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new A();
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
The starting document.
|
|
1279
|
+
*/
|
|
1280
|
+
get before() {
|
|
1281
|
+
return this.docs.length ? this.docs[0] : this.doc;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
Apply a new step in this transform, saving the result. Throws an
|
|
1285
|
+
error when the step fails.
|
|
1286
|
+
*/
|
|
1287
|
+
step(e) {
|
|
1288
|
+
let t = this.maybeStep(e);
|
|
1289
|
+
if (t.failed)
|
|
1290
|
+
throw new E(t.failed);
|
|
1291
|
+
return this;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
Try to apply a step in this transformation, ignoring it if it
|
|
1295
|
+
fails. Returns the step result.
|
|
1296
|
+
*/
|
|
1297
|
+
maybeStep(e) {
|
|
1298
|
+
let t = e.apply(this.doc);
|
|
1299
|
+
return t.failed || this.addStep(e, t.doc), t;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
True when the document has been changed (when there are any
|
|
1303
|
+
steps).
|
|
1304
|
+
*/
|
|
1305
|
+
get docChanged() {
|
|
1306
|
+
return this.steps.length > 0;
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
@internal
|
|
1310
|
+
*/
|
|
1311
|
+
addStep(e, t) {
|
|
1312
|
+
this.docs.push(this.doc), this.steps.push(e), this.mapping.appendMap(e.getMap()), this.doc = t;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
Replace the part of the document between `from` and `to` with the
|
|
1316
|
+
given `slice`.
|
|
1317
|
+
*/
|
|
1318
|
+
replace(e, t = e, r = w.empty) {
|
|
1319
|
+
let n = Me(this.doc, e, t, r);
|
|
1320
|
+
return n && this.step(n), this;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
Replace the given range with the given content, which may be a
|
|
1324
|
+
fragment, node, or array of nodes.
|
|
1325
|
+
*/
|
|
1326
|
+
replaceWith(e, t, r) {
|
|
1327
|
+
return this.replace(e, t, new w(g.from(r), 0, 0));
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
Delete the content between the given positions.
|
|
1331
|
+
*/
|
|
1332
|
+
delete(e, t) {
|
|
1333
|
+
return this.replace(e, t, w.empty);
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
Insert the given content at the given position.
|
|
1337
|
+
*/
|
|
1338
|
+
insert(e, t) {
|
|
1339
|
+
return this.replaceWith(e, e, t);
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
Replace a range of the document with a given slice, using
|
|
1343
|
+
`from`, `to`, and the slice's
|
|
1344
|
+
[`openStart`](https://prosemirror.net/docs/ref/#model.Slice.openStart) property as hints, rather
|
|
1345
|
+
than fixed start and end points. This method may grow the
|
|
1346
|
+
replaced area or close open nodes in the slice in order to get a
|
|
1347
|
+
fit that is more in line with WYSIWYG expectations, by dropping
|
|
1348
|
+
fully covered parent nodes of the replaced region when they are
|
|
1349
|
+
marked [non-defining as
|
|
1350
|
+
context](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext), or including an
|
|
1351
|
+
open parent node from the slice that _is_ marked as [defining
|
|
1352
|
+
its content](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
|
|
1353
|
+
|
|
1354
|
+
This is the method, for example, to handle paste. The similar
|
|
1355
|
+
[`replace`](https://prosemirror.net/docs/ref/#transform.Transform.replace) method is a more
|
|
1356
|
+
primitive tool which will _not_ move the start and end of its given
|
|
1357
|
+
range, and is useful in situations where you need more precise
|
|
1358
|
+
control over what happens.
|
|
1359
|
+
*/
|
|
1360
|
+
replaceRange(e, t, r) {
|
|
1361
|
+
return Re(this, e, t, r), this;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
Replace the given range with a node, but use `from` and `to` as
|
|
1365
|
+
hints, rather than precise positions. When from and to are the same
|
|
1366
|
+
and are at the start or end of a parent node in which the given
|
|
1367
|
+
node doesn't fit, this method may _move_ them out towards a parent
|
|
1368
|
+
that does allow the given node to be placed. When the given range
|
|
1369
|
+
completely covers a parent node, this method may completely replace
|
|
1370
|
+
that parent node.
|
|
1371
|
+
*/
|
|
1372
|
+
replaceRangeWith(e, t, r) {
|
|
1373
|
+
return Te(this, e, t, r), this;
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
Delete the given range, expanding it to cover fully covered
|
|
1377
|
+
parent nodes until a valid replace is found.
|
|
1378
|
+
*/
|
|
1379
|
+
deleteRange(e, t) {
|
|
1380
|
+
return Ee(this, e, t), this;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
Split the content in the given range off from its parent, if there
|
|
1384
|
+
is sibling content before or after it, and move it up the tree to
|
|
1385
|
+
the depth specified by `target`. You'll probably want to use
|
|
1386
|
+
[`liftTarget`](https://prosemirror.net/docs/ref/#transform.liftTarget) to compute `target`, to make
|
|
1387
|
+
sure the lift is valid.
|
|
1388
|
+
*/
|
|
1389
|
+
lift(e, t) {
|
|
1390
|
+
return de(this, e, t), this;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
Join the blocks around the given position. If depth is 2, their
|
|
1394
|
+
last and first siblings are also joined, and so on.
|
|
1395
|
+
*/
|
|
1396
|
+
join(e, t = 1) {
|
|
1397
|
+
return Se(this, e, t), this;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
|
|
1401
|
+
The wrappers are assumed to be valid in this position, and should
|
|
1402
|
+
probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
|
|
1403
|
+
*/
|
|
1404
|
+
wrap(e, t) {
|
|
1405
|
+
return we(this, e, t), this;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
Set the type of all textblocks (partly) between `from` and `to` to
|
|
1409
|
+
the given node type with the given attributes.
|
|
1410
|
+
*/
|
|
1411
|
+
setBlockType(e, t = e, r, n = null) {
|
|
1412
|
+
return ge(this, e, t, r, n), this;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
Change the type, attributes, and/or marks of the node at `pos`.
|
|
1416
|
+
When `type` isn't given, the existing node type is preserved,
|
|
1417
|
+
*/
|
|
1418
|
+
setNodeMarkup(e, t, r = null, n) {
|
|
1419
|
+
return ke(this, e, t, r, n), this;
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
Set a single attribute on a given node to a new value.
|
|
1423
|
+
The `pos` addresses the document content. Use `setDocAttribute`
|
|
1424
|
+
to set attributes on the document itself.
|
|
1425
|
+
*/
|
|
1426
|
+
setNodeAttribute(e, t, r) {
|
|
1427
|
+
return this.step(new T(e, t, r)), this;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
Set a single attribute on the document to a new value.
|
|
1431
|
+
*/
|
|
1432
|
+
setDocAttribute(e, t) {
|
|
1433
|
+
return this.step(new z(e, t)), this;
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
Add a mark to the node at position `pos`.
|
|
1437
|
+
*/
|
|
1438
|
+
addNodeMark(e, t) {
|
|
1439
|
+
return this.step(new N(e, t)), this;
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
Remove a mark (or all marks of the given type) from the node at
|
|
1443
|
+
position `pos`.
|
|
1444
|
+
*/
|
|
1445
|
+
removeNodeMark(e, t) {
|
|
1446
|
+
let r = this.doc.nodeAt(e);
|
|
1447
|
+
if (!r)
|
|
1448
|
+
throw new RangeError("No node at position " + e);
|
|
1449
|
+
if (t instanceof se)
|
|
1450
|
+
t.isInSet(r.marks) && this.step(new R(e, t));
|
|
1451
|
+
else {
|
|
1452
|
+
let n = r.marks, i, o = [];
|
|
1453
|
+
for (; i = t.isInSet(n); )
|
|
1454
|
+
o.push(new R(e, i)), n = i.removeFromSet(n);
|
|
1455
|
+
for (let l = o.length - 1; l >= 0; l--)
|
|
1456
|
+
this.step(o[l]);
|
|
1457
|
+
}
|
|
1458
|
+
return this;
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
Split the node at the given position, and optionally, if `depth` is
|
|
1462
|
+
greater than one, any number of nodes above that. By default, the
|
|
1463
|
+
parts split off will inherit the node type of the original node.
|
|
1464
|
+
This can be changed by passing an array of types and attributes to
|
|
1465
|
+
use after the split (with the outermost nodes coming first).
|
|
1466
|
+
*/
|
|
1467
|
+
split(e, t = 1, r) {
|
|
1468
|
+
return ve(this, e, t, r), this;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
Add the given mark to the inline content between `from` and `to`.
|
|
1472
|
+
*/
|
|
1473
|
+
addMark(e, t, r) {
|
|
1474
|
+
return pe(this, e, t, r), this;
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
Remove marks from inline nodes between `from` and `to`. When
|
|
1478
|
+
`mark` is a single mark, remove precisely that mark. When it is
|
|
1479
|
+
a mark type, remove all marks of that type. When it is null,
|
|
1480
|
+
remove all marks of any type.
|
|
1481
|
+
*/
|
|
1482
|
+
removeMark(e, t, r) {
|
|
1483
|
+
return fe(this, e, t, r), this;
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
Removes all marks and nodes from the content of the node at
|
|
1487
|
+
`pos` that don't match the given new parent node type. Accepts
|
|
1488
|
+
an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
|
|
1489
|
+
third argument.
|
|
1490
|
+
*/
|
|
1491
|
+
clearIncompatible(e, t, r) {
|
|
1492
|
+
return $(this, e, t, r), this;
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
export {
|
|
1496
|
+
A as M,
|
|
1497
|
+
v as R,
|
|
1498
|
+
De as T,
|
|
1499
|
+
Je as a,
|
|
1500
|
+
M as b,
|
|
1501
|
+
Ae as c,
|
|
1502
|
+
We as d,
|
|
1503
|
+
ze as f,
|
|
1504
|
+
Be as j,
|
|
1505
|
+
Fe as l,
|
|
1506
|
+
Me as r
|
|
1507
|
+
};
|