@gsc-basic/shared-service 1.0.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/LICENSE +6 -0
- package/README.md +7 -0
- package/dist/es/_virtual/_commonjsHelpers.js +19 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +22 -0
- package/dist/es/_virtual/en-US.js +20 -0
- package/dist/es/_virtual/en-US2.js +17 -0
- package/dist/es/_virtual/index.js +15 -0
- package/dist/es/_virtual/index2.js +17 -0
- package/dist/es/_virtual/index3.js +20 -0
- package/dist/es/_virtual/ja-JP.js +20 -0
- package/dist/es/_virtual/ja-JP2.js +17 -0
- package/dist/es/_virtual/zh-CN.js +20 -0
- package/dist/es/_virtual/zh-CN2.js +17 -0
- package/dist/es/configs/auth-config/dist/index.js +91 -0
- package/dist/es/email-center/AccountConf/index.js +19 -0
- package/dist/es/email-center/AccountConf/src/config/columns.js +82 -0
- package/dist/es/email-center/AccountConf/src/config/filters.js +61 -0
- package/dist/es/email-center/AccountConf/src/config/schema.js +139 -0
- package/dist/es/email-center/AccountConf/src/constant/index.js +72 -0
- package/dist/es/email-center/AccountConf/src/index.css +14 -0
- package/dist/es/email-center/AccountConf/src/index.vue.js +92 -0
- package/dist/es/email-center/CmGroup/index.js +19 -0
- package/dist/es/email-center/CmGroup/src/config/columns.js +77 -0
- package/dist/es/email-center/CmGroup/src/config/filters.js +64 -0
- package/dist/es/email-center/CmGroup/src/config/schema.js +77 -0
- package/dist/es/email-center/CmGroup/src/constant/index.js +26 -0
- package/dist/es/email-center/CmGroup/src/index.css +14 -0
- package/dist/es/email-center/CmGroup/src/index.vue.js +91 -0
- package/dist/es/email-center/CmGroup/src/index2.css +14 -0
- package/dist/es/email-center/InboxNotifyConf/index.js +19 -0
- package/dist/es/email-center/InboxNotifyConf/src/config/columns.js +124 -0
- package/dist/es/email-center/InboxNotifyConf/src/config/filters.js +61 -0
- package/dist/es/email-center/InboxNotifyConf/src/config/schema.js +149 -0
- package/dist/es/email-center/InboxNotifyConf/src/constant/index.js +104 -0
- package/dist/es/email-center/InboxNotifyConf/src/index.css +14 -0
- package/dist/es/email-center/InboxNotifyConf/src/index.vue.js +104 -0
- package/dist/es/email-center/Log/index.js +19 -0
- package/dist/es/email-center/Log/src/config/columns.js +115 -0
- package/dist/es/email-center/Log/src/config/filters.js +81 -0
- package/dist/es/email-center/Log/src/index.css +14 -0
- package/dist/es/email-center/Log/src/index.vue.js +171 -0
- package/dist/es/email-center/Log/src/index2.css +14 -0
- package/dist/es/email-center/Template/index.js +19 -0
- package/dist/es/email-center/Template/src/components/MailTemplateSend.css +14 -0
- package/dist/es/email-center/Template/src/components/MailTemplateSend.vue.js +262 -0
- package/dist/es/email-center/Template/src/components/MailTemplateSend2.css +14 -0
- package/dist/es/email-center/Template/src/config/columns.js +107 -0
- package/dist/es/email-center/Template/src/config/filters.js +82 -0
- package/dist/es/email-center/Template/src/config/schema.js +179 -0
- package/dist/es/email-center/Template/src/constant/index.js +274 -0
- package/dist/es/email-center/Template/src/index.css +14 -0
- package/dist/es/email-center/Template/src/index.vue.js +240 -0
- package/dist/es/email-center/Template/src/index2.css +14 -0
- package/dist/es/email-center/api/accountConf.js +21 -0
- package/dist/es/email-center/api/cmGroup.js +21 -0
- package/dist/es/email-center/api/common.js +44 -0
- package/dist/es/email-center/api/inboxNotifyConf.js +21 -0
- package/dist/es/email-center/api/log.js +23 -0
- package/dist/es/email-center/api/template.js +27 -0
- package/dist/es/email-center/components/form.css +14 -0
- package/dist/es/email-center/components/form.vue.js +117 -0
- package/dist/es/email-center/components/form2.css +14 -0
- package/dist/es/email-center/components/grid.css +14 -0
- package/dist/es/email-center/components/grid.vue.js +330 -0
- package/dist/es/email-center/components/grid2.css +14 -0
- package/dist/es/email-center/components/popConfirm.css +14 -0
- package/dist/es/email-center/components/popConfirm.vue.js +89 -0
- package/dist/es/file-flow/DownloadCenter/index.js +19 -0
- package/dist/es/file-flow/DownloadCenter/src/components/progress.css +14 -0
- package/dist/es/file-flow/DownloadCenter/src/components/progress.vue.js +135 -0
- package/dist/es/file-flow/DownloadCenter/src/components/progress2.css +14 -0
- package/dist/es/file-flow/DownloadCenter/src/config/columns.js +80 -0
- package/dist/es/file-flow/DownloadCenter/src/config/filters.js +79 -0
- package/dist/es/file-flow/DownloadCenter/src/config/logColumns.js +48 -0
- package/dist/es/file-flow/DownloadCenter/src/config/schema.js +50 -0
- package/dist/es/file-flow/DownloadCenter/src/index.css +14 -0
- package/dist/es/file-flow/DownloadCenter/src/index.vue.js +231 -0
- package/dist/es/file-flow/DownloadCenter/src/index2.css +14 -0
- package/dist/es/file-flow/UploadButton/index.js +19 -0
- package/dist/es/file-flow/UploadButton/src/component/upload.css +14 -0
- package/dist/es/file-flow/UploadButton/src/component/upload.vue.js +146 -0
- package/dist/es/file-flow/UploadButton/src/composables/useUploadFile.js +59 -0
- package/dist/es/file-flow/UploadButton/src/index.css +14 -0
- package/dist/es/file-flow/UploadButton/src/index.vue.js +64 -0
- package/dist/es/file-flow/UploadCenter/index.js +19 -0
- package/dist/es/file-flow/UploadCenter/src/config/columns.js +75 -0
- package/dist/es/file-flow/UploadCenter/src/config/filters.js +103 -0
- package/dist/es/file-flow/UploadCenter/src/config/logColumns.js +47 -0
- package/dist/es/file-flow/UploadCenter/src/config/schema.js +50 -0
- package/dist/es/file-flow/UploadCenter/src/config/statusColumns.js +44 -0
- package/dist/es/file-flow/UploadCenter/src/index.css +14 -0
- package/dist/es/file-flow/UploadCenter/src/index.vue.js +251 -0
- package/dist/es/file-flow/UploadCenter/src/index2.css +14 -0
- package/dist/es/file-flow/api/downloadCenter.js +66 -0
- package/dist/es/file-flow/api/uploadButton.js +24 -0
- package/dist/es/file-flow/api/uploadCenter.js +64 -0
- package/dist/es/file-flow/components/InterruptModal.css +14 -0
- package/dist/es/file-flow/components/InterruptModal.vue.js +87 -0
- package/dist/es/hooks/useLocale.js +36 -0
- package/dist/es/index.js +43 -0
- package/dist/es/locale/lang/en-US.js +204 -0
- package/dist/es/locale/lang/ja-JP.js +200 -0
- package/dist/es/locale/lang/zh-CN.js +203 -0
- package/dist/es/node_modules/@vueuse/core/dist/index.js +230 -0
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +165 -0
- package/dist/es/node_modules/@vxe-ui/core/es/index.esm.js +153 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/clipboard.js +56 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/commands.js +58 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/config.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/configStore.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/core.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/dataStore.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/event.js +114 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/formats.js +58 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/hooks.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/i18n.js +50 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/i18nStore.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/icon.js +40 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/iconStore.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/interceptor.js +50 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/log.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/menus.js +58 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/permission.js +52 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/renderer.js +42 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/resize.js +68 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/store.js +53 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/theme.js +30 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/themeStore.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/useFns.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/validators.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/es/src/vm.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/add.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/after.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayEach.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayIndexOf.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayLastIndexOf.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/assign.js +41 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/before.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/bind.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/browse.js +66 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/camelCase.js +34 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/ceil.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/chunk.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/clear.js +43 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/clone.js +63 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/commafy.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/cookie.js +99 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/copyWithin.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/countBy.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/ctor.js +46 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/debounce.js +40 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/delay.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/destructuring.js +30 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/divide.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/each.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/eachTree.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/endsWith.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/entries.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/eqNull.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/escape.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/every.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/filter.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/filterTree.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/find.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findIndexOf.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findKey.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findLast.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findLastIndexOf.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findTree.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/first.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/flatten.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/floor.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/forOf.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/get.js +44 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getBaseURL.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDateDiff.js +36 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDayOfMonth.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDayOfYear.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getMonthWeek.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getSize.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getType.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatDay.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatHours.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatMinutes.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatMonth.js +40 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatQuarter.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatSeconds.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatWeek.js +37 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatYear.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getYearDay.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getYearWeek.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/groupBy.js +32 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/has.js +30 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/hasOwnProp.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCheckCopyKey.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateGetDateWeek.js +59 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateGetObjects.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateInInObjectString.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateInTypeof.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateIndexOf.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateIterateHandle.js +35 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateMathNumber.js +36 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateMinMax.js +31 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreatePickOmit.js +35 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateToNumber.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateTreeFunc.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateiterateIndexOf.js +32 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperDefaultCompare.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperDeleteProperty.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperEqualCompare.js +41 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperFormatEscaper.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateFullYear.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateMonth.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateTime.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetHGSKeys.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetLocatOrigin.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetUTCDateTime.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetYMD.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetYMDTime.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperLog.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperMultiply.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNewDate.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberAdd.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberDecimal.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberDivide.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberOffsetPoint.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringLowerCase.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringRepeat.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringSubstring.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringUpperCase.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/includeArrays.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/includes.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/index.esm.js +552 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/indexOf.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/invoke.js +36 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isArguments.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isArray.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isBoolean.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDate.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDateSame.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDocument.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isElement.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEmpty.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEqual.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEqualWith.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isError.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFinite.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFloat.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFormData.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFunction.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isInteger.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isLeapYear.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isMap.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isMatch.js +34 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNaN.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNull.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNumber.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isObject.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isPlainObject.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isRegExp.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isSet.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isString.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isSymbol.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isTypeError.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isUndefined.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isValidDate.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWeakMap.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWeakSet.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWindow.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/kebabCase.js +39 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/keys.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/last.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastArrayEach.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastEach.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastForOf.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastIndexOf.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastObjectEach.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/locat.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/map.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/mapTree.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/max.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/mean.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/merge.js +33 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/min.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/multiply.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/noop.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/now.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/objectEach.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/objectMap.js +30 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/omit.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/once.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/orderBy.js +65 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/padEnd.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/padStart.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/parseUrl.js +40 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/pick.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/pluck.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/property.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/random.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/range.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/reduce.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/remove.js +45 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/repeat.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/round.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sample.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/searchTree.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/serialize.js +34 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/set.js +52 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/setupDefaults.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/shuffle.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/slice.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/some.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sortBy.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/startsWith.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDayTime.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDecodeURIComponent.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDocument.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticEncodeURIComponent.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticEscapeMap.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticHGKeyRE.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticLocation.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticObjectToString.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticParseInt.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrFirst.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrLast.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrUndefined.js +17 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticWeekTime.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticWindow.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/subtract.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sum.js +31 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/template.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/throttle.js +44 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/timestamp.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toArray.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toArrayTree.js +37 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toDateString.js +106 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toFixed.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toFormatString.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toInteger.js +19 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toJSONString.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toNumber.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toNumberString.js +26 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toStringDate.js +105 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toStringJSON.js +28 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toTreeArray.js +29 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toValueString.js +22 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trim.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trimLeft.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trimRight.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unescape.js +24 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/union.js +23 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/uniq.js +34 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/uniqueId.js +21 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unserialize.js +25 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unzip.js +27 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/values.js +18 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/zip.js +20 -0
- package/dist/es/node_modules/@vxe-ui/core/node_modules/xe-utils/es/zipObject.js +24 -0
- package/dist/es/node_modules/dom-zindex/es/index.esm.js +113 -0
- package/dist/es/node_modules/lodash-es/_Hash.js +33 -0
- package/dist/es/node_modules/lodash-es/_ListCache.js +33 -0
- package/dist/es/node_modules/lodash-es/_Map.js +19 -0
- package/dist/es/node_modules/lodash-es/_MapCache.js +33 -0
- package/dist/es/node_modules/lodash-es/_Symbol.js +18 -0
- package/dist/es/node_modules/lodash-es/_arrayMap.js +21 -0
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +23 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +24 -0
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +23 -0
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +29 -0
- package/dist/es/node_modules/lodash-es/_baseToString.js +31 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +23 -0
- package/dist/es/node_modules/lodash-es/_coreJsData.js +18 -0
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +17 -0
- package/dist/es/node_modules/lodash-es/_getMapData.js +21 -0
- package/dist/es/node_modules/lodash-es/_getNative.js +22 -0
- package/dist/es/node_modules/lodash-es/_getRawTag.js +28 -0
- package/dist/es/node_modules/lodash-es/_getValue.js +19 -0
- package/dist/es/node_modules/lodash-es/_hashClear.js +20 -0
- package/dist/es/node_modules/lodash-es/_hashDelete.js +20 -0
- package/dist/es/node_modules/lodash-es/_hashGet.js +26 -0
- package/dist/es/node_modules/lodash-es/_hashHas.js +22 -0
- package/dist/es/node_modules/lodash-es/_hashSet.js +22 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +25 -0
- package/dist/es/node_modules/lodash-es/_isKeyable.js +20 -0
- package/dist/es/node_modules/lodash-es/_isMasked.js +24 -0
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +19 -0
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +25 -0
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +21 -0
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +20 -0
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +21 -0
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +26 -0
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +21 -0
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +20 -0
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +20 -0
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +21 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +24 -0
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +18 -0
- package/dist/es/node_modules/lodash-es/_objectToString.js +20 -0
- package/dist/es/node_modules/lodash-es/_root.js +18 -0
- package/dist/es/node_modules/lodash-es/_stringToPath.js +23 -0
- package/dist/es/node_modules/lodash-es/_toKey.js +23 -0
- package/dist/es/node_modules/lodash-es/_toSource.js +30 -0
- package/dist/es/node_modules/lodash-es/eq.js +19 -0
- package/dist/es/node_modules/lodash-es/get.js +21 -0
- package/dist/es/node_modules/lodash-es/isArray.js +17 -0
- package/dist/es/node_modules/lodash-es/isFunction.js +25 -0
- package/dist/es/node_modules/lodash-es/isObject.js +20 -0
- package/dist/es/node_modules/lodash-es/isObjectLike.js +19 -0
- package/dist/es/node_modules/lodash-es/isSymbol.js +22 -0
- package/dist/es/node_modules/lodash-es/memoize.js +31 -0
- package/dist/es/node_modules/lodash-es/toString.js +20 -0
- package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
- package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
- package/dist/es/node_modules/title-case/dist/index.js +20 -0
- package/dist/es/node_modules/vxe-pc-ui/es/button/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/button/src/button.js +503 -0
- package/dist/es/node_modules/vxe-pc-ui/es/dynamics/index.js +67 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/render/index.js +344 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/form-config-item.js +58 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/form-item.js +146 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/form.js +533 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/itemInfo.js +79 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/render.js +239 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form/src/util.js +73 -0
- package/dist/es/node_modules/vxe-pc-ui/es/form-item/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/icon/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/icon/src/icon.js +68 -0
- package/dist/es/node_modules/vxe-pc-ui/es/loading/index.js +41 -0
- package/dist/es/node_modules/vxe-pc-ui/es/loading/src/loading.js +114 -0
- package/dist/es/node_modules/vxe-pc-ui/es/modal/index.js +111 -0
- package/dist/es/node_modules/vxe-pc-ui/es/modal/src/modal.js +799 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tag/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tag/src/tag.js +141 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tip/index.js +26 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tip/src/tip.js +99 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tooltip/index.js +27 -0
- package/dist/es/node_modules/vxe-pc-ui/es/tooltip/src/tooltip.js +304 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/index.js +678 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/src/comp.js +18 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/src/dom.js +84 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/src/log.js +20 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/src/utils.js +54 -0
- package/dist/es/node_modules/vxe-pc-ui/es/ui/src/vn.js +49 -0
- package/dist/es/node_modules/vxe-pc-ui/es/upload/index.js +29 -0
- package/dist/es/node_modules/vxe-pc-ui/es/upload/src/upload.js +1070 -0
- package/dist/es/node_modules/vxe-pc-ui/es/upload/src/util.js +69 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-button/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-form/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-icon/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-modal/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-tag/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-tip/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-tooltip/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-ui/style.css +13 -0
- package/dist/es/node_modules/vxe-pc-ui/es/vxe-upload/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/lib/language/en-US.js +854 -0
- package/dist/es/node_modules/vxe-pc-ui/lib/language/ja-JP.js +854 -0
- package/dist/es/node_modules/vxe-pc-ui/lib/language/zh-CN.js +854 -0
- package/dist/es/node_modules/vxe-pc-ui/lib/style.css +14 -0
- package/dist/es/node_modules/vxe-pc-ui/styles/cssvar.css +14 -0
- package/dist/es/node_modules/vxe-table/es/grid/index.js +26 -0
- package/dist/es/node_modules/vxe-table/es/grid/src/emits.js +32 -0
- package/dist/es/node_modules/vxe-table/es/grid/src/grid.js +846 -0
- package/dist/es/node_modules/vxe-table/es/grid/src/props.js +23 -0
- package/dist/es/node_modules/vxe-table/es/table/module/custom/hook.js +142 -0
- package/dist/es/node_modules/vxe-table/es/table/module/custom/panel.js +762 -0
- package/dist/es/node_modules/vxe-table/es/table/module/edit/hook.js +511 -0
- package/dist/es/node_modules/vxe-table/es/table/module/export/export-panel.js +399 -0
- package/dist/es/node_modules/vxe-table/es/table/module/export/hook.js +862 -0
- package/dist/es/node_modules/vxe-table/es/table/module/export/import-panel.js +204 -0
- package/dist/es/node_modules/vxe-table/es/table/module/export/util.js +36 -0
- package/dist/es/node_modules/vxe-table/es/table/module/filter/hook.js +283 -0
- package/dist/es/node_modules/vxe-table/es/table/module/filter/panel.js +201 -0
- package/dist/es/node_modules/vxe-table/es/table/module/keyboard/hook.js +185 -0
- package/dist/es/node_modules/vxe-table/es/table/module/menu/hook.js +185 -0
- package/dist/es/node_modules/vxe-table/es/table/module/menu/panel.js +158 -0
- package/dist/es/node_modules/vxe-table/es/table/module/validator/hook.js +343 -0
- package/dist/es/node_modules/vxe-table/es/table/render/index.js +907 -0
- package/dist/es/node_modules/vxe-table/es/table/src/body.js +492 -0
- package/dist/es/node_modules/vxe-table/es/table/src/cell.js +714 -0
- package/dist/es/node_modules/vxe-table/es/table/src/columnInfo.js +158 -0
- package/dist/es/node_modules/vxe-table/es/table/src/emits.js +125 -0
- package/dist/es/node_modules/vxe-table/es/table/src/footer.js +214 -0
- package/dist/es/node_modules/vxe-table/es/table/src/header.js +306 -0
- package/dist/es/node_modules/vxe-table/es/table/src/props.js +334 -0
- package/dist/es/node_modules/vxe-table/es/table/src/store.js +24 -0
- package/dist/es/node_modules/vxe-table/es/table/src/table.js +6137 -0
- package/dist/es/node_modules/vxe-table/es/table/src/util.js +740 -0
- package/dist/es/node_modules/vxe-table/es/toolbar/src/toolbar.js +389 -0
- package/dist/es/node_modules/vxe-table/es/ui/index.js +422 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/anime.js +50 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/comp.js +18 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/dom.js +153 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/log.js +19 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/utils.js +59 -0
- package/dist/es/node_modules/vxe-table/es/ui/src/vn.js +61 -0
- package/dist/es/node_modules/vxe-table/es/vxe-grid/style.css +14 -0
- package/dist/es/node_modules/vxe-table/lib/style.css +14 -0
- package/dist/es/node_modules/vxe-table/styles/cssvar.css +14 -0
- package/dist/es/node_modules/xe-utils/add.js +28 -0
- package/dist/es/node_modules/xe-utils/after.js +31 -0
- package/dist/es/node_modules/xe-utils/arrayEach.js +30 -0
- package/dist/es/node_modules/xe-utils/arrayIndexOf.js +29 -0
- package/dist/es/node_modules/xe-utils/arrayLastIndexOf.js +30 -0
- package/dist/es/node_modules/xe-utils/assign.js +47 -0
- package/dist/es/node_modules/xe-utils/before.js +31 -0
- package/dist/es/node_modules/xe-utils/bind.js +30 -0
- package/dist/es/node_modules/xe-utils/browse.js +73 -0
- package/dist/es/node_modules/xe-utils/camelCase.js +40 -0
- package/dist/es/node_modules/xe-utils/ceil.js +24 -0
- package/dist/es/node_modules/xe-utils/chunk.js +34 -0
- package/dist/es/node_modules/xe-utils/clear.js +50 -0
- package/dist/es/node_modules/xe-utils/clone.js +70 -0
- package/dist/es/node_modules/xe-utils/commafy.js +36 -0
- package/dist/es/node_modules/xe-utils/cookie.js +105 -0
- package/dist/es/node_modules/xe-utils/copyWithin.js +33 -0
- package/dist/es/node_modules/xe-utils/countBy.js +31 -0
- package/dist/es/node_modules/xe-utils/ctor.js +46 -0
- package/dist/es/node_modules/xe-utils/debounce.js +47 -0
- package/dist/es/node_modules/xe-utils/delay.js +30 -0
- package/dist/es/node_modules/xe-utils/destructuring.js +37 -0
- package/dist/es/node_modules/xe-utils/divide.js +28 -0
- package/dist/es/node_modules/xe-utils/each.js +29 -0
- package/dist/es/node_modules/xe-utils/eachTree.js +32 -0
- package/dist/es/node_modules/xe-utils/endsWith.js +28 -0
- package/dist/es/node_modules/xe-utils/entries.js +24 -0
- package/dist/es/node_modules/xe-utils/eqNull.js +28 -0
- package/dist/es/node_modules/xe-utils/escape.js +25 -0
- package/dist/es/node_modules/xe-utils/every.js +24 -0
- package/dist/es/node_modules/xe-utils/filter.js +35 -0
- package/dist/es/node_modules/xe-utils/filterTree.js +30 -0
- package/dist/es/node_modules/xe-utils/find.js +24 -0
- package/dist/es/node_modules/xe-utils/findIndexOf.js +29 -0
- package/dist/es/node_modules/xe-utils/findKey.js +24 -0
- package/dist/es/node_modules/xe-utils/findLast.js +33 -0
- package/dist/es/node_modules/xe-utils/findLastIndexOf.js +29 -0
- package/dist/es/node_modules/xe-utils/findTree.js +36 -0
- package/dist/es/node_modules/xe-utils/first.js +27 -0
- package/dist/es/node_modules/xe-utils/flatten.js +34 -0
- package/dist/es/node_modules/xe-utils/floor.js +24 -0
- package/dist/es/node_modules/xe-utils/forOf.js +36 -0
- package/dist/es/node_modules/xe-utils/get.js +51 -0
- package/dist/es/node_modules/xe-utils/getBaseURL.js +33 -0
- package/dist/es/node_modules/xe-utils/getDateDiff.js +42 -0
- package/dist/es/node_modules/xe-utils/getDayOfMonth.js +33 -0
- package/dist/es/node_modules/xe-utils/getDayOfYear.js +30 -0
- package/dist/es/node_modules/xe-utils/getMonthWeek.js +28 -0
- package/dist/es/node_modules/xe-utils/getSize.js +32 -0
- package/dist/es/node_modules/xe-utils/getType.js +32 -0
- package/dist/es/node_modules/xe-utils/getWhatDay.js +40 -0
- package/dist/es/node_modules/xe-utils/getWhatHours.js +40 -0
- package/dist/es/node_modules/xe-utils/getWhatMinutes.js +40 -0
- package/dist/es/node_modules/xe-utils/getWhatMonth.js +47 -0
- package/dist/es/node_modules/xe-utils/getWhatQuarter.js +34 -0
- package/dist/es/node_modules/xe-utils/getWhatSeconds.js +40 -0
- package/dist/es/node_modules/xe-utils/getWhatWeek.js +44 -0
- package/dist/es/node_modules/xe-utils/getWhatYear.js +40 -0
- package/dist/es/node_modules/xe-utils/getYearDay.js +32 -0
- package/dist/es/node_modules/xe-utils/getYearWeek.js +28 -0
- package/dist/es/node_modules/xe-utils/groupBy.js +39 -0
- package/dist/es/node_modules/xe-utils/has.js +37 -0
- package/dist/es/node_modules/xe-utils/hasOwnProp.js +25 -0
- package/dist/es/node_modules/xe-utils/helperCheckCopyKey.js +25 -0
- package/dist/es/node_modules/xe-utils/helperCreateGetDateWeek.js +65 -0
- package/dist/es/node_modules/xe-utils/helperCreateGetObjects.js +40 -0
- package/dist/es/node_modules/xe-utils/helperCreateInInObjectString.js +29 -0
- package/dist/es/node_modules/xe-utils/helperCreateInTypeof.js +27 -0
- package/dist/es/node_modules/xe-utils/helperCreateIndexOf.js +40 -0
- package/dist/es/node_modules/xe-utils/helperCreateIterateHandle.js +42 -0
- package/dist/es/node_modules/xe-utils/helperCreateMathNumber.js +43 -0
- package/dist/es/node_modules/xe-utils/helperCreateMinMax.js +38 -0
- package/dist/es/node_modules/xe-utils/helperCreatePickOmit.js +42 -0
- package/dist/es/node_modules/xe-utils/helperCreateToNumber.js +32 -0
- package/dist/es/node_modules/xe-utils/helperCreateTreeFunc.js +28 -0
- package/dist/es/node_modules/xe-utils/helperCreateiterateIndexOf.js +39 -0
- package/dist/es/node_modules/xe-utils/helperDefaultCompare.js +25 -0
- package/dist/es/node_modules/xe-utils/helperDeleteProperty.js +29 -0
- package/dist/es/node_modules/xe-utils/helperEqualCompare.js +48 -0
- package/dist/es/node_modules/xe-utils/helperFormatEscaper.js +33 -0
- package/dist/es/node_modules/xe-utils/helperGetDateFullYear.js +25 -0
- package/dist/es/node_modules/xe-utils/helperGetDateMonth.js +25 -0
- package/dist/es/node_modules/xe-utils/helperGetDateTime.js +25 -0
- package/dist/es/node_modules/xe-utils/helperGetHGSKeys.js +25 -0
- package/dist/es/node_modules/xe-utils/helperGetLocatOrigin.js +27 -0
- package/dist/es/node_modules/xe-utils/helperGetUTCDateTime.js +25 -0
- package/dist/es/node_modules/xe-utils/helperGetYMD.js +28 -0
- package/dist/es/node_modules/xe-utils/helperGetYMDTime.js +28 -0
- package/dist/es/node_modules/xe-utils/helperLog.js +25 -0
- package/dist/es/node_modules/xe-utils/helperMultiply.js +29 -0
- package/dist/es/node_modules/xe-utils/helperNewDate.js +25 -0
- package/dist/es/node_modules/xe-utils/helperNumberAdd.js +30 -0
- package/dist/es/node_modules/xe-utils/helperNumberDecimal.js +25 -0
- package/dist/es/node_modules/xe-utils/helperNumberDivide.js +30 -0
- package/dist/es/node_modules/xe-utils/helperNumberOffsetPoint.js +25 -0
- package/dist/es/node_modules/xe-utils/helperStringLowerCase.js +25 -0
- package/dist/es/node_modules/xe-utils/helperStringRepeat.js +30 -0
- package/dist/es/node_modules/xe-utils/helperStringSubstring.js +25 -0
- package/dist/es/node_modules/xe-utils/helperStringUpperCase.js +25 -0
- package/dist/es/node_modules/xe-utils/includeArrays.js +35 -0
- package/dist/es/node_modules/xe-utils/includes.js +34 -0
- package/dist/es/node_modules/xe-utils/index.js +383 -0
- package/dist/es/node_modules/xe-utils/indexOf.js +25 -0
- package/dist/es/node_modules/xe-utils/invoke.js +43 -0
- package/dist/es/node_modules/xe-utils/isArguments.js +24 -0
- package/dist/es/node_modules/xe-utils/isArray.js +24 -0
- package/dist/es/node_modules/xe-utils/isBoolean.js +24 -0
- package/dist/es/node_modules/xe-utils/isDate.js +24 -0
- package/dist/es/node_modules/xe-utils/isDateSame.js +27 -0
- package/dist/es/node_modules/xe-utils/isDocument.js +27 -0
- package/dist/es/node_modules/xe-utils/isElement.js +28 -0
- package/dist/es/node_modules/xe-utils/isEmpty.js +27 -0
- package/dist/es/node_modules/xe-utils/isEqual.js +28 -0
- package/dist/es/node_modules/xe-utils/isEqualWith.js +33 -0
- package/dist/es/node_modules/xe-utils/isError.js +24 -0
- package/dist/es/node_modules/xe-utils/isFinite.js +27 -0
- package/dist/es/node_modules/xe-utils/isFloat.js +29 -0
- package/dist/es/node_modules/xe-utils/isFormData.js +27 -0
- package/dist/es/node_modules/xe-utils/isFunction.js +24 -0
- package/dist/es/node_modules/xe-utils/isInteger.js +27 -0
- package/dist/es/node_modules/xe-utils/isLeapYear.js +30 -0
- package/dist/es/node_modules/xe-utils/isMap.js +27 -0
- package/dist/es/node_modules/xe-utils/isMatch.js +41 -0
- package/dist/es/node_modules/xe-utils/isNaN.js +27 -0
- package/dist/es/node_modules/xe-utils/isNull.js +25 -0
- package/dist/es/node_modules/xe-utils/isNumber.js +24 -0
- package/dist/es/node_modules/xe-utils/isObject.js +24 -0
- package/dist/es/node_modules/xe-utils/isPlainObject.js +25 -0
- package/dist/es/node_modules/xe-utils/isRegExp.js +24 -0
- package/dist/es/node_modules/xe-utils/isSet.js +27 -0
- package/dist/es/node_modules/xe-utils/isString.js +24 -0
- package/dist/es/node_modules/xe-utils/isSymbol.js +27 -0
- package/dist/es/node_modules/xe-utils/isTypeError.js +25 -0
- package/dist/es/node_modules/xe-utils/isUndefined.js +25 -0
- package/dist/es/node_modules/xe-utils/isValidDate.js +28 -0
- package/dist/es/node_modules/xe-utils/isWeakMap.js +27 -0
- package/dist/es/node_modules/xe-utils/isWeakSet.js +27 -0
- package/dist/es/node_modules/xe-utils/isWindow.js +27 -0
- package/dist/es/node_modules/xe-utils/kebabCase.js +45 -0
- package/dist/es/node_modules/xe-utils/keys.js +24 -0
- package/dist/es/node_modules/xe-utils/last.js +28 -0
- package/dist/es/node_modules/xe-utils/lastArrayEach.js +26 -0
- package/dist/es/node_modules/xe-utils/lastEach.js +29 -0
- package/dist/es/node_modules/xe-utils/lastForOf.js +36 -0
- package/dist/es/node_modules/xe-utils/lastIndexOf.js +25 -0
- package/dist/es/node_modules/xe-utils/lastObjectEach.js +30 -0
- package/dist/es/node_modules/xe-utils/locat.js +28 -0
- package/dist/es/node_modules/xe-utils/map.js +35 -0
- package/dist/es/node_modules/xe-utils/mapTree.js +32 -0
- package/dist/es/node_modules/xe-utils/max.js +26 -0
- package/dist/es/node_modules/xe-utils/mean.js +29 -0
- package/dist/es/node_modules/xe-utils/merge.js +39 -0
- package/dist/es/node_modules/xe-utils/min.js +26 -0
- package/dist/es/node_modules/xe-utils/multiply.js +29 -0
- package/dist/es/node_modules/xe-utils/noop.js +24 -0
- package/dist/es/node_modules/xe-utils/now.js +27 -0
- package/dist/es/node_modules/xe-utils/objectEach.js +29 -0
- package/dist/es/node_modules/xe-utils/objectMap.js +37 -0
- package/dist/es/node_modules/xe-utils/omit.js +24 -0
- package/dist/es/node_modules/xe-utils/once.js +30 -0
- package/dist/es/node_modules/xe-utils/orderBy.js +71 -0
- package/dist/es/node_modules/xe-utils/padEnd.js +30 -0
- package/dist/es/node_modules/xe-utils/padStart.js +30 -0
- package/dist/es/node_modules/xe-utils/parseUrl.js +47 -0
- package/dist/es/node_modules/xe-utils/pick.js +24 -0
- package/dist/es/node_modules/xe-utils/pluck.js +28 -0
- package/dist/es/node_modules/xe-utils/property.js +29 -0
- package/dist/es/node_modules/xe-utils/random.js +25 -0
- package/dist/es/node_modules/xe-utils/range.js +29 -0
- package/dist/es/node_modules/xe-utils/reduce.js +36 -0
- package/dist/es/node_modules/xe-utils/remove.js +52 -0
- package/dist/es/node_modules/xe-utils/repeat.js +28 -0
- package/dist/es/node_modules/xe-utils/round.js +24 -0
- package/dist/es/node_modules/xe-utils/sample.js +28 -0
- package/dist/es/node_modules/xe-utils/searchTree.js +35 -0
- package/dist/es/node_modules/xe-utils/serialize.js +41 -0
- package/dist/es/node_modules/xe-utils/set.js +58 -0
- package/dist/es/node_modules/xe-utils/setupDefaults.js +35 -0
- package/dist/es/node_modules/xe-utils/shuffle.js +30 -0
- package/dist/es/node_modules/xe-utils/slice.js +34 -0
- package/dist/es/node_modules/xe-utils/some.js +24 -0
- package/dist/es/node_modules/xe-utils/sortBy.js +24 -0
- package/dist/es/node_modules/xe-utils/startsWith.js +28 -0
- package/dist/es/node_modules/xe-utils/staticDayTime.js +23 -0
- package/dist/es/node_modules/xe-utils/staticDecodeURIComponent.js +23 -0
- package/dist/es/node_modules/xe-utils/staticDocument.js +24 -0
- package/dist/es/node_modules/xe-utils/staticEncodeURIComponent.js +23 -0
- package/dist/es/node_modules/xe-utils/staticEscapeMap.js +30 -0
- package/dist/es/node_modules/xe-utils/staticHGKeyRE.js +23 -0
- package/dist/es/node_modules/xe-utils/staticLocation.js +24 -0
- package/dist/es/node_modules/xe-utils/staticObjectToString.js +23 -0
- package/dist/es/node_modules/xe-utils/staticParseInt.js +23 -0
- package/dist/es/node_modules/xe-utils/staticStrFirst.js +23 -0
- package/dist/es/node_modules/xe-utils/staticStrLast.js +23 -0
- package/dist/es/node_modules/xe-utils/staticStrUndefined.js +23 -0
- package/dist/es/node_modules/xe-utils/staticWeekTime.js +24 -0
- package/dist/es/node_modules/xe-utils/staticWindow.js +24 -0
- package/dist/es/node_modules/xe-utils/subtract.js +31 -0
- package/dist/es/node_modules/xe-utils/sum.js +38 -0
- package/dist/es/node_modules/xe-utils/template.js +32 -0
- package/dist/es/node_modules/xe-utils/throttle.js +51 -0
- package/dist/es/node_modules/xe-utils/timestamp.js +33 -0
- package/dist/es/node_modules/xe-utils/toArray.js +29 -0
- package/dist/es/node_modules/xe-utils/toArrayTree.js +44 -0
- package/dist/es/node_modules/xe-utils/toDateString.js +113 -0
- package/dist/es/node_modules/xe-utils/toFixed.js +32 -0
- package/dist/es/node_modules/xe-utils/toFormatString.js +27 -0
- package/dist/es/node_modules/xe-utils/toInteger.js +25 -0
- package/dist/es/node_modules/xe-utils/toJSONString.js +27 -0
- package/dist/es/node_modules/xe-utils/toNumber.js +24 -0
- package/dist/es/node_modules/xe-utils/toNumberString.js +33 -0
- package/dist/es/node_modules/xe-utils/toStringDate.js +110 -0
- package/dist/es/node_modules/xe-utils/toStringJSON.js +35 -0
- package/dist/es/node_modules/xe-utils/toTreeArray.js +36 -0
- package/dist/es/node_modules/xe-utils/toValueString.js +29 -0
- package/dist/es/node_modules/xe-utils/trim.js +28 -0
- package/dist/es/node_modules/xe-utils/trimLeft.js +27 -0
- package/dist/es/node_modules/xe-utils/trimRight.js +27 -0
- package/dist/es/node_modules/xe-utils/unescape.js +30 -0
- package/dist/es/node_modules/xe-utils/union.js +30 -0
- package/dist/es/node_modules/xe-utils/uniq.js +41 -0
- package/dist/es/node_modules/xe-utils/uniqueId.js +28 -0
- package/dist/es/node_modules/xe-utils/unserialize.js +32 -0
- package/dist/es/node_modules/xe-utils/unzip.js +34 -0
- package/dist/es/node_modules/xe-utils/values.js +24 -0
- package/dist/es/node_modules/xe-utils/zip.js +27 -0
- package/dist/es/node_modules/xe-utils/zipObject.js +31 -0
- package/dist/es/packages/components/dist/es/Button/index.js +19 -0
- package/dist/es/packages/components/dist/es/Button/src/Button.css +14 -0
- package/dist/es/packages/components/dist/es/Button/src/Button.vue.js +54 -0
- package/dist/es/packages/components/dist/es/Button/src/Button2.css +14 -0
- package/dist/es/packages/components/dist/es/ConfigProvider/src/constants.js +18 -0
- package/dist/es/packages/components/dist/es/Form/index.js +19 -0
- package/dist/es/packages/components/dist/es/Form/src/Form.css +14 -0
- package/dist/es/packages/components/dist/es/Form/src/Form.vue.js +387 -0
- package/dist/es/packages/components/dist/es/Form/src/Form2.css +14 -0
- package/dist/es/packages/components/dist/es/Form/src/styles/form.css +14 -0
- package/dist/es/packages/components/dist/es/Overlay/src/Modal.css +14 -0
- package/dist/es/packages/components/dist/es/Overlay/src/Modal.vue.js +80 -0
- package/dist/es/packages/components/dist/es/Overlay/src/Modal2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/index.js +19 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +172 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +50 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +50 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +50 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +68 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +79 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +84 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +102 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +86 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +99 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +175 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +95 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +50 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +29 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +27 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +64 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +84 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +111 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +374 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +147 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/constant/index.js +63 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/extensions/video.js +78 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/index.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/index.vue.js +168 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/index2.css +14 -0
- package/dist/es/packages/components/dist/es/RichTextEditor/src/props.js +34 -0
- package/dist/es/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +22 -0
- package/dist/es/packages/components/dist/es/hooks/useLocale.js +38 -0
- package/dist/es/packages/components/dist/es/hooks/useNamespace.js +21 -0
- package/dist/es/packages/components/dist/es/locale/lang/en-US.js +177 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +191 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +26 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +419 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +799 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +68 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +122 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +58 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +226 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +42 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +57 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +51 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +46 -0
- package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +61 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +3991 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +30 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +70 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +92 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +67 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +227 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +25 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +72 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +76 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +98 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +69 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +143 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +90 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +326 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +741 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +57 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +79 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +54 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +54 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +392 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +26 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +60 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +253 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +78 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +309 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +42 -0
- package/dist/es/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +270 -0
- package/dist/es/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +720 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Hash.js +33 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +33 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Map.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +33 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +18 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +23 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +24 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +23 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +29 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +31 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_castPath.js +23 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +18 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +17 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getNative.js +22 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +28 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getValue.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +26 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +22 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +22 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKey.js +25 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +24 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +25 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +26 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +24 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +18 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_root.js +18 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +23 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toKey.js +23 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toSource.js +30 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/eq.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/get.js +21 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArray.js +17 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/isFunction.js +25 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObject.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +19 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +22 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/memoize.js +31 -0
- package/dist/es/packages/components/dist/es/node_modules/lodash-es/toString.js +20 -0
- package/dist/es/packages/components/dist/es/node_modules/orderedmap/dist/index.js +116 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +401 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +99 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +217 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +261 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +75 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +2746 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +101 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +835 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +1459 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +1549 -0
- package/dist/es/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +3805 -0
- package/dist/es/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +113 -0
- package/dist/es/packages/components/dist/es/node_modules/w3c-keyname/index.js +106 -0
- package/dist/es/packages/components/dist/es/packages/utils/dist/index.js +524 -0
- package/dist/es/packages/components/dist/es/styles/tokens.css +14 -0
- package/dist/es/packages/hooks/dist/index.js +114 -0
- package/dist/es/packages/shared-service/index.js +53 -0
- package/dist/es/packages/utils/dist/index.js +532 -0
- package/dist/es/utils/request.js +100 -0
- package/dist/es/utils/util.js +53 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +14 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +14 -0
- package/dist/lib/_virtual/en-US.js +14 -0
- package/dist/lib/_virtual/en-US2.js +14 -0
- package/dist/lib/_virtual/index.js +14 -0
- package/dist/lib/_virtual/index2.js +14 -0
- package/dist/lib/_virtual/index3.js +14 -0
- package/dist/lib/_virtual/ja-JP.js +14 -0
- package/dist/lib/_virtual/ja-JP2.js +14 -0
- package/dist/lib/_virtual/zh-CN.js +14 -0
- package/dist/lib/_virtual/zh-CN2.js +14 -0
- package/dist/lib/configs/auth-config/dist/index.js +14 -0
- package/dist/lib/email-center/AccountConf/index.js +14 -0
- package/dist/lib/email-center/AccountConf/src/config/columns.js +14 -0
- package/dist/lib/email-center/AccountConf/src/config/filters.js +14 -0
- package/dist/lib/email-center/AccountConf/src/config/schema.js +14 -0
- package/dist/lib/email-center/AccountConf/src/constant/index.js +14 -0
- package/dist/lib/email-center/AccountConf/src/index.css +14 -0
- package/dist/lib/email-center/AccountConf/src/index.vue.js +14 -0
- package/dist/lib/email-center/CmGroup/index.js +14 -0
- package/dist/lib/email-center/CmGroup/src/config/columns.js +14 -0
- package/dist/lib/email-center/CmGroup/src/config/filters.js +14 -0
- package/dist/lib/email-center/CmGroup/src/config/schema.js +14 -0
- package/dist/lib/email-center/CmGroup/src/constant/index.js +14 -0
- package/dist/lib/email-center/CmGroup/src/index.css +14 -0
- package/dist/lib/email-center/CmGroup/src/index.vue.js +14 -0
- package/dist/lib/email-center/CmGroup/src/index2.css +14 -0
- package/dist/lib/email-center/InboxNotifyConf/index.js +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/config/columns.js +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/config/filters.js +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/config/schema.js +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/constant/index.js +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/index.css +14 -0
- package/dist/lib/email-center/InboxNotifyConf/src/index.vue.js +14 -0
- package/dist/lib/email-center/Log/index.js +14 -0
- package/dist/lib/email-center/Log/src/config/columns.js +14 -0
- package/dist/lib/email-center/Log/src/config/filters.js +14 -0
- package/dist/lib/email-center/Log/src/index.css +14 -0
- package/dist/lib/email-center/Log/src/index.vue.js +14 -0
- package/dist/lib/email-center/Log/src/index2.css +14 -0
- package/dist/lib/email-center/Template/index.js +14 -0
- package/dist/lib/email-center/Template/src/components/MailTemplateSend.css +14 -0
- package/dist/lib/email-center/Template/src/components/MailTemplateSend.vue.js +14 -0
- package/dist/lib/email-center/Template/src/components/MailTemplateSend2.css +14 -0
- package/dist/lib/email-center/Template/src/config/columns.js +14 -0
- package/dist/lib/email-center/Template/src/config/filters.js +14 -0
- package/dist/lib/email-center/Template/src/config/schema.js +14 -0
- package/dist/lib/email-center/Template/src/constant/index.js +14 -0
- package/dist/lib/email-center/Template/src/index.css +14 -0
- package/dist/lib/email-center/Template/src/index.vue.js +14 -0
- package/dist/lib/email-center/Template/src/index2.css +14 -0
- package/dist/lib/email-center/api/accountConf.js +14 -0
- package/dist/lib/email-center/api/cmGroup.js +14 -0
- package/dist/lib/email-center/api/common.js +14 -0
- package/dist/lib/email-center/api/inboxNotifyConf.js +14 -0
- package/dist/lib/email-center/api/log.js +14 -0
- package/dist/lib/email-center/api/template.js +14 -0
- package/dist/lib/email-center/components/form.css +14 -0
- package/dist/lib/email-center/components/form.vue.js +14 -0
- package/dist/lib/email-center/components/form2.css +14 -0
- package/dist/lib/email-center/components/grid.css +14 -0
- package/dist/lib/email-center/components/grid.vue.js +14 -0
- package/dist/lib/email-center/components/grid2.css +14 -0
- package/dist/lib/email-center/components/popConfirm.css +14 -0
- package/dist/lib/email-center/components/popConfirm.vue.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/index.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/components/progress.css +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/components/progress.vue.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/components/progress2.css +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/config/columns.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/config/filters.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/config/logColumns.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/config/schema.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/index.css +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/index.vue.js +14 -0
- package/dist/lib/file-flow/DownloadCenter/src/index2.css +14 -0
- package/dist/lib/file-flow/UploadButton/index.js +14 -0
- package/dist/lib/file-flow/UploadButton/src/component/upload.css +14 -0
- package/dist/lib/file-flow/UploadButton/src/component/upload.vue.js +14 -0
- package/dist/lib/file-flow/UploadButton/src/composables/useUploadFile.js +14 -0
- package/dist/lib/file-flow/UploadButton/src/index.css +14 -0
- package/dist/lib/file-flow/UploadButton/src/index.vue.js +14 -0
- package/dist/lib/file-flow/UploadCenter/index.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/config/columns.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/config/filters.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/config/logColumns.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/config/schema.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/config/statusColumns.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/index.css +14 -0
- package/dist/lib/file-flow/UploadCenter/src/index.vue.js +14 -0
- package/dist/lib/file-flow/UploadCenter/src/index2.css +14 -0
- package/dist/lib/file-flow/api/downloadCenter.js +14 -0
- package/dist/lib/file-flow/api/uploadButton.js +14 -0
- package/dist/lib/file-flow/api/uploadCenter.js +14 -0
- package/dist/lib/file-flow/components/InterruptModal.css +14 -0
- package/dist/lib/file-flow/components/InterruptModal.vue.js +14 -0
- package/dist/lib/hooks/useLocale.js +14 -0
- package/dist/lib/index.js +14 -0
- package/dist/lib/locale/lang/en-US.js +14 -0
- package/dist/lib/locale/lang/ja-JP.js +14 -0
- package/dist/lib/locale/lang/zh-CN.js +14 -0
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +14 -0
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/index.esm.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/clipboard.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/commands.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/config.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/configStore.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/core.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/dataStore.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/event.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/formats.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/hooks.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/i18n.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/i18nStore.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/icon.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/iconStore.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/interceptor.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/log.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/menus.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/permission.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/renderer.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/resize.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/store.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/theme.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/themeStore.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/useFns.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/validators.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/es/src/vm.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/add.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/after.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayEach.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/arrayLastIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/assign.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/before.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/bind.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/browse.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/camelCase.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/ceil.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/chunk.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/clear.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/clone.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/commafy.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/cookie.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/copyWithin.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/countBy.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/ctor.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/debounce.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/delay.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/destructuring.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/divide.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/each.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/eachTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/endsWith.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/entries.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/eqNull.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/escape.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/every.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/filter.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/filterTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/find.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findKey.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findLast.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findLastIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/findTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/first.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/flatten.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/floor.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/forOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/get.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getBaseURL.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDateDiff.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDayOfMonth.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getDayOfYear.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getMonthWeek.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getSize.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getType.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatDay.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatHours.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatMinutes.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatMonth.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatQuarter.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatSeconds.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatWeek.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getWhatYear.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getYearDay.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/getYearWeek.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/groupBy.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/has.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/hasOwnProp.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCheckCopyKey.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateGetDateWeek.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateGetObjects.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateInInObjectString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateInTypeof.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateIterateHandle.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateMathNumber.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateMinMax.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreatePickOmit.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateToNumber.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateTreeFunc.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperCreateiterateIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperDefaultCompare.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperDeleteProperty.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperEqualCompare.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperFormatEscaper.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateFullYear.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateMonth.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetDateTime.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetHGSKeys.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetLocatOrigin.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetUTCDateTime.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetYMD.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperGetYMDTime.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperLog.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperMultiply.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNewDate.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberAdd.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberDecimal.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberDivide.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperNumberOffsetPoint.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringLowerCase.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringRepeat.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringSubstring.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/helperStringUpperCase.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/includeArrays.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/includes.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/index.esm.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/indexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/invoke.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isArguments.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isArray.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isBoolean.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDate.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDateSame.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isDocument.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isElement.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEmpty.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEqual.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isEqualWith.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isError.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFinite.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFloat.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFormData.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isFunction.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isInteger.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isLeapYear.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isMap.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isMatch.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNaN.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNull.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isNumber.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isObject.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isPlainObject.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isRegExp.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isSet.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isSymbol.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isTypeError.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isUndefined.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isValidDate.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWeakMap.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWeakSet.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/isWindow.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/kebabCase.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/keys.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/last.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastArrayEach.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastEach.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastForOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastIndexOf.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/lastObjectEach.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/locat.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/map.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/mapTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/max.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/mean.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/merge.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/min.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/multiply.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/noop.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/now.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/objectEach.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/objectMap.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/omit.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/once.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/orderBy.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/padEnd.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/padStart.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/parseUrl.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/pick.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/pluck.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/property.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/random.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/range.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/reduce.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/remove.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/repeat.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/round.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sample.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/searchTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/serialize.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/set.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/setupDefaults.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/shuffle.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/slice.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/some.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sortBy.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/startsWith.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDayTime.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDecodeURIComponent.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticDocument.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticEncodeURIComponent.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticEscapeMap.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticHGKeyRE.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticLocation.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticObjectToString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticParseInt.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrFirst.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrLast.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticStrUndefined.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticWeekTime.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/staticWindow.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/subtract.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/sum.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/template.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/throttle.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/timestamp.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toArray.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toArrayTree.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toDateString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toFixed.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toFormatString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toInteger.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toJSONString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toNumber.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toNumberString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toStringDate.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toStringJSON.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toTreeArray.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/toValueString.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trim.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trimLeft.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/trimRight.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unescape.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/union.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/uniq.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/uniqueId.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unserialize.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/unzip.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/values.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/zip.js +14 -0
- package/dist/lib/node_modules/@vxe-ui/core/node_modules/xe-utils/es/zipObject.js +14 -0
- package/dist/lib/node_modules/dom-zindex/es/index.esm.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Hash.js +14 -0
- package/dist/lib/node_modules/lodash-es/_ListCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Map.js +14 -0
- package/dist/lib/node_modules/lodash-es/_MapCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Symbol.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseToString.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +14 -0
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +14 -0
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getMapData.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getNative.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_hashClear.js +14 -0
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +14 -0
- package/dist/lib/node_modules/lodash-es/_hashGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_hashHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_hashSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isMasked.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +14 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +14 -0
- package/dist/lib/node_modules/lodash-es/_objectToString.js +14 -0
- package/dist/lib/node_modules/lodash-es/_root.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +14 -0
- package/dist/lib/node_modules/lodash-es/_toKey.js +14 -0
- package/dist/lib/node_modules/lodash-es/_toSource.js +14 -0
- package/dist/lib/node_modules/lodash-es/eq.js +14 -0
- package/dist/lib/node_modules/lodash-es/get.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFunction.js +14 -0
- package/dist/lib/node_modules/lodash-es/isObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +14 -0
- package/dist/lib/node_modules/lodash-es/isSymbol.js +14 -0
- package/dist/lib/node_modules/lodash-es/memoize.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +14 -0
- package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
- package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
- package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
- package/dist/lib/node_modules/title-case/dist/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/button/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/button/src/button.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/dynamics/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/render/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/form-config-item.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/form-item.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/form.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/itemInfo.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/render.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form/src/util.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/form-item/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/icon/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/icon/src/icon.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/loading/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/loading/src/loading.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/modal/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/modal/src/modal.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tag/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tag/src/tag.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tip/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tip/src/tip.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tooltip/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/tooltip/src/tooltip.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/src/comp.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/src/dom.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/src/log.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/src/utils.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/ui/src/vn.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/upload/index.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/upload/src/upload.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/upload/src/util.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-button/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-form/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-icon/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-modal/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-tag/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-tip/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-tooltip/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-ui/style.css +13 -0
- package/dist/lib/node_modules/vxe-pc-ui/es/vxe-upload/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/lib/language/en-US.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/lib/language/ja-JP.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/lib/language/zh-CN.js +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/lib/style.css +14 -0
- package/dist/lib/node_modules/vxe-pc-ui/styles/cssvar.css +14 -0
- package/dist/lib/node_modules/vxe-table/es/grid/index.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/grid/src/emits.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/grid/src/grid.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/grid/src/props.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/custom/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/custom/panel.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/edit/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/export/export-panel.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/export/hook.js +16 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/export/import-panel.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/export/util.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/filter/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/filter/panel.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/keyboard/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/menu/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/menu/panel.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/module/validator/hook.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/render/index.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/body.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/cell.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/columnInfo.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/emits.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/footer.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/header.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/props.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/store.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/table.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/table/src/util.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/toolbar/src/toolbar.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/index.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/anime.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/comp.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/dom.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/log.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/utils.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/ui/src/vn.js +14 -0
- package/dist/lib/node_modules/vxe-table/es/vxe-grid/style.css +14 -0
- package/dist/lib/node_modules/vxe-table/lib/style.css +14 -0
- package/dist/lib/node_modules/vxe-table/styles/cssvar.css +14 -0
- package/dist/lib/node_modules/xe-utils/add.js +14 -0
- package/dist/lib/node_modules/xe-utils/after.js +14 -0
- package/dist/lib/node_modules/xe-utils/arrayEach.js +14 -0
- package/dist/lib/node_modules/xe-utils/arrayIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/arrayLastIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/assign.js +14 -0
- package/dist/lib/node_modules/xe-utils/before.js +14 -0
- package/dist/lib/node_modules/xe-utils/bind.js +14 -0
- package/dist/lib/node_modules/xe-utils/browse.js +14 -0
- package/dist/lib/node_modules/xe-utils/camelCase.js +14 -0
- package/dist/lib/node_modules/xe-utils/ceil.js +14 -0
- package/dist/lib/node_modules/xe-utils/chunk.js +14 -0
- package/dist/lib/node_modules/xe-utils/clear.js +14 -0
- package/dist/lib/node_modules/xe-utils/clone.js +14 -0
- package/dist/lib/node_modules/xe-utils/commafy.js +14 -0
- package/dist/lib/node_modules/xe-utils/cookie.js +14 -0
- package/dist/lib/node_modules/xe-utils/copyWithin.js +14 -0
- package/dist/lib/node_modules/xe-utils/countBy.js +14 -0
- package/dist/lib/node_modules/xe-utils/ctor.js +14 -0
- package/dist/lib/node_modules/xe-utils/debounce.js +14 -0
- package/dist/lib/node_modules/xe-utils/delay.js +14 -0
- package/dist/lib/node_modules/xe-utils/destructuring.js +14 -0
- package/dist/lib/node_modules/xe-utils/divide.js +14 -0
- package/dist/lib/node_modules/xe-utils/each.js +14 -0
- package/dist/lib/node_modules/xe-utils/eachTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/endsWith.js +14 -0
- package/dist/lib/node_modules/xe-utils/entries.js +14 -0
- package/dist/lib/node_modules/xe-utils/eqNull.js +14 -0
- package/dist/lib/node_modules/xe-utils/escape.js +14 -0
- package/dist/lib/node_modules/xe-utils/every.js +14 -0
- package/dist/lib/node_modules/xe-utils/filter.js +14 -0
- package/dist/lib/node_modules/xe-utils/filterTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/find.js +14 -0
- package/dist/lib/node_modules/xe-utils/findIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/findKey.js +14 -0
- package/dist/lib/node_modules/xe-utils/findLast.js +14 -0
- package/dist/lib/node_modules/xe-utils/findLastIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/findTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/first.js +14 -0
- package/dist/lib/node_modules/xe-utils/flatten.js +14 -0
- package/dist/lib/node_modules/xe-utils/floor.js +14 -0
- package/dist/lib/node_modules/xe-utils/forOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/get.js +14 -0
- package/dist/lib/node_modules/xe-utils/getBaseURL.js +14 -0
- package/dist/lib/node_modules/xe-utils/getDateDiff.js +14 -0
- package/dist/lib/node_modules/xe-utils/getDayOfMonth.js +14 -0
- package/dist/lib/node_modules/xe-utils/getDayOfYear.js +14 -0
- package/dist/lib/node_modules/xe-utils/getMonthWeek.js +14 -0
- package/dist/lib/node_modules/xe-utils/getSize.js +14 -0
- package/dist/lib/node_modules/xe-utils/getType.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatDay.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatHours.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatMinutes.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatMonth.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatQuarter.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatSeconds.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatWeek.js +14 -0
- package/dist/lib/node_modules/xe-utils/getWhatYear.js +14 -0
- package/dist/lib/node_modules/xe-utils/getYearDay.js +14 -0
- package/dist/lib/node_modules/xe-utils/getYearWeek.js +14 -0
- package/dist/lib/node_modules/xe-utils/groupBy.js +14 -0
- package/dist/lib/node_modules/xe-utils/has.js +14 -0
- package/dist/lib/node_modules/xe-utils/hasOwnProp.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCheckCopyKey.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateGetDateWeek.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateGetObjects.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateInInObjectString.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateInTypeof.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateIterateHandle.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateMathNumber.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateMinMax.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreatePickOmit.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateToNumber.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateTreeFunc.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperCreateiterateIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperDefaultCompare.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperDeleteProperty.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperEqualCompare.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperFormatEscaper.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetDateFullYear.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetDateMonth.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetDateTime.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetHGSKeys.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetLocatOrigin.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetUTCDateTime.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetYMD.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperGetYMDTime.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperLog.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperMultiply.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperNewDate.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperNumberAdd.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperNumberDecimal.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperNumberDivide.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperNumberOffsetPoint.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperStringLowerCase.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperStringRepeat.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperStringSubstring.js +14 -0
- package/dist/lib/node_modules/xe-utils/helperStringUpperCase.js +14 -0
- package/dist/lib/node_modules/xe-utils/includeArrays.js +14 -0
- package/dist/lib/node_modules/xe-utils/includes.js +14 -0
- package/dist/lib/node_modules/xe-utils/index.js +14 -0
- package/dist/lib/node_modules/xe-utils/indexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/invoke.js +14 -0
- package/dist/lib/node_modules/xe-utils/isArguments.js +14 -0
- package/dist/lib/node_modules/xe-utils/isArray.js +14 -0
- package/dist/lib/node_modules/xe-utils/isBoolean.js +14 -0
- package/dist/lib/node_modules/xe-utils/isDate.js +14 -0
- package/dist/lib/node_modules/xe-utils/isDateSame.js +14 -0
- package/dist/lib/node_modules/xe-utils/isDocument.js +14 -0
- package/dist/lib/node_modules/xe-utils/isElement.js +14 -0
- package/dist/lib/node_modules/xe-utils/isEmpty.js +14 -0
- package/dist/lib/node_modules/xe-utils/isEqual.js +14 -0
- package/dist/lib/node_modules/xe-utils/isEqualWith.js +14 -0
- package/dist/lib/node_modules/xe-utils/isError.js +14 -0
- package/dist/lib/node_modules/xe-utils/isFinite.js +14 -0
- package/dist/lib/node_modules/xe-utils/isFloat.js +14 -0
- package/dist/lib/node_modules/xe-utils/isFormData.js +14 -0
- package/dist/lib/node_modules/xe-utils/isFunction.js +14 -0
- package/dist/lib/node_modules/xe-utils/isInteger.js +14 -0
- package/dist/lib/node_modules/xe-utils/isLeapYear.js +14 -0
- package/dist/lib/node_modules/xe-utils/isMap.js +14 -0
- package/dist/lib/node_modules/xe-utils/isMatch.js +14 -0
- package/dist/lib/node_modules/xe-utils/isNaN.js +14 -0
- package/dist/lib/node_modules/xe-utils/isNull.js +14 -0
- package/dist/lib/node_modules/xe-utils/isNumber.js +14 -0
- package/dist/lib/node_modules/xe-utils/isObject.js +14 -0
- package/dist/lib/node_modules/xe-utils/isPlainObject.js +14 -0
- package/dist/lib/node_modules/xe-utils/isRegExp.js +14 -0
- package/dist/lib/node_modules/xe-utils/isSet.js +14 -0
- package/dist/lib/node_modules/xe-utils/isString.js +14 -0
- package/dist/lib/node_modules/xe-utils/isSymbol.js +14 -0
- package/dist/lib/node_modules/xe-utils/isTypeError.js +14 -0
- package/dist/lib/node_modules/xe-utils/isUndefined.js +14 -0
- package/dist/lib/node_modules/xe-utils/isValidDate.js +14 -0
- package/dist/lib/node_modules/xe-utils/isWeakMap.js +14 -0
- package/dist/lib/node_modules/xe-utils/isWeakSet.js +14 -0
- package/dist/lib/node_modules/xe-utils/isWindow.js +14 -0
- package/dist/lib/node_modules/xe-utils/kebabCase.js +14 -0
- package/dist/lib/node_modules/xe-utils/keys.js +14 -0
- package/dist/lib/node_modules/xe-utils/last.js +14 -0
- package/dist/lib/node_modules/xe-utils/lastArrayEach.js +14 -0
- package/dist/lib/node_modules/xe-utils/lastEach.js +14 -0
- package/dist/lib/node_modules/xe-utils/lastForOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/lastIndexOf.js +14 -0
- package/dist/lib/node_modules/xe-utils/lastObjectEach.js +14 -0
- package/dist/lib/node_modules/xe-utils/locat.js +14 -0
- package/dist/lib/node_modules/xe-utils/map.js +14 -0
- package/dist/lib/node_modules/xe-utils/mapTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/max.js +14 -0
- package/dist/lib/node_modules/xe-utils/mean.js +14 -0
- package/dist/lib/node_modules/xe-utils/merge.js +14 -0
- package/dist/lib/node_modules/xe-utils/min.js +14 -0
- package/dist/lib/node_modules/xe-utils/multiply.js +14 -0
- package/dist/lib/node_modules/xe-utils/noop.js +14 -0
- package/dist/lib/node_modules/xe-utils/now.js +14 -0
- package/dist/lib/node_modules/xe-utils/objectEach.js +14 -0
- package/dist/lib/node_modules/xe-utils/objectMap.js +14 -0
- package/dist/lib/node_modules/xe-utils/omit.js +14 -0
- package/dist/lib/node_modules/xe-utils/once.js +14 -0
- package/dist/lib/node_modules/xe-utils/orderBy.js +14 -0
- package/dist/lib/node_modules/xe-utils/padEnd.js +14 -0
- package/dist/lib/node_modules/xe-utils/padStart.js +14 -0
- package/dist/lib/node_modules/xe-utils/parseUrl.js +14 -0
- package/dist/lib/node_modules/xe-utils/pick.js +14 -0
- package/dist/lib/node_modules/xe-utils/pluck.js +14 -0
- package/dist/lib/node_modules/xe-utils/property.js +14 -0
- package/dist/lib/node_modules/xe-utils/random.js +14 -0
- package/dist/lib/node_modules/xe-utils/range.js +14 -0
- package/dist/lib/node_modules/xe-utils/reduce.js +14 -0
- package/dist/lib/node_modules/xe-utils/remove.js +14 -0
- package/dist/lib/node_modules/xe-utils/repeat.js +14 -0
- package/dist/lib/node_modules/xe-utils/round.js +14 -0
- package/dist/lib/node_modules/xe-utils/sample.js +14 -0
- package/dist/lib/node_modules/xe-utils/searchTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/serialize.js +14 -0
- package/dist/lib/node_modules/xe-utils/set.js +14 -0
- package/dist/lib/node_modules/xe-utils/setupDefaults.js +14 -0
- package/dist/lib/node_modules/xe-utils/shuffle.js +14 -0
- package/dist/lib/node_modules/xe-utils/slice.js +14 -0
- package/dist/lib/node_modules/xe-utils/some.js +14 -0
- package/dist/lib/node_modules/xe-utils/sortBy.js +14 -0
- package/dist/lib/node_modules/xe-utils/startsWith.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticDayTime.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticDecodeURIComponent.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticDocument.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticEncodeURIComponent.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticEscapeMap.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticHGKeyRE.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticLocation.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticObjectToString.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticParseInt.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticStrFirst.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticStrLast.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticStrUndefined.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticWeekTime.js +14 -0
- package/dist/lib/node_modules/xe-utils/staticWindow.js +14 -0
- package/dist/lib/node_modules/xe-utils/subtract.js +14 -0
- package/dist/lib/node_modules/xe-utils/sum.js +14 -0
- package/dist/lib/node_modules/xe-utils/template.js +14 -0
- package/dist/lib/node_modules/xe-utils/throttle.js +14 -0
- package/dist/lib/node_modules/xe-utils/timestamp.js +14 -0
- package/dist/lib/node_modules/xe-utils/toArray.js +14 -0
- package/dist/lib/node_modules/xe-utils/toArrayTree.js +14 -0
- package/dist/lib/node_modules/xe-utils/toDateString.js +14 -0
- package/dist/lib/node_modules/xe-utils/toFixed.js +14 -0
- package/dist/lib/node_modules/xe-utils/toFormatString.js +14 -0
- package/dist/lib/node_modules/xe-utils/toInteger.js +14 -0
- package/dist/lib/node_modules/xe-utils/toJSONString.js +14 -0
- package/dist/lib/node_modules/xe-utils/toNumber.js +14 -0
- package/dist/lib/node_modules/xe-utils/toNumberString.js +14 -0
- package/dist/lib/node_modules/xe-utils/toStringDate.js +14 -0
- package/dist/lib/node_modules/xe-utils/toStringJSON.js +14 -0
- package/dist/lib/node_modules/xe-utils/toTreeArray.js +14 -0
- package/dist/lib/node_modules/xe-utils/toValueString.js +14 -0
- package/dist/lib/node_modules/xe-utils/trim.js +14 -0
- package/dist/lib/node_modules/xe-utils/trimLeft.js +14 -0
- package/dist/lib/node_modules/xe-utils/trimRight.js +14 -0
- package/dist/lib/node_modules/xe-utils/unescape.js +14 -0
- package/dist/lib/node_modules/xe-utils/union.js +14 -0
- package/dist/lib/node_modules/xe-utils/uniq.js +14 -0
- package/dist/lib/node_modules/xe-utils/uniqueId.js +14 -0
- package/dist/lib/node_modules/xe-utils/unserialize.js +14 -0
- package/dist/lib/node_modules/xe-utils/unzip.js +14 -0
- package/dist/lib/node_modules/xe-utils/values.js +14 -0
- package/dist/lib/node_modules/xe-utils/zip.js +14 -0
- package/dist/lib/node_modules/xe-utils/zipObject.js +14 -0
- package/dist/lib/packages/components/dist/es/Button/index.js +14 -0
- package/dist/lib/packages/components/dist/es/Button/src/Button.css +14 -0
- package/dist/lib/packages/components/dist/es/Button/src/Button.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/Button/src/Button2.css +14 -0
- package/dist/lib/packages/components/dist/es/ConfigProvider/src/constants.js +14 -0
- package/dist/lib/packages/components/dist/es/Form/index.js +14 -0
- package/dist/lib/packages/components/dist/es/Form/src/Form.css +14 -0
- package/dist/lib/packages/components/dist/es/Form/src/Form.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/Form/src/Form2.css +14 -0
- package/dist/lib/packages/components/dist/es/Form/src/styles/form.css +14 -0
- package/dist/lib/packages/components/dist/es/Overlay/src/Modal.css +14 -0
- package/dist/lib/packages/components/dist/es/Overlay/src/Modal.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/Overlay/src/Modal2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/index.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/constant/index.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/extensions/video.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.vue.js +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/index2.css +14 -0
- package/dist/lib/packages/components/dist/es/RichTextEditor/src/props.js +14 -0
- package/dist/lib/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +14 -0
- package/dist/lib/packages/components/dist/es/hooks/useLocale.js +14 -0
- package/dist/lib/packages/components/dist/es/hooks/useNamespace.js +14 -0
- package/dist/lib/packages/components/dist/es/locale/lang/en-US.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +104 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +18 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +31 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +16 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +16 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +25 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +18 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +18 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Hash.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Map.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_castPath.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getNative.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getValue.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKey.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_root.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toKey.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toSource.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/eq.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/get.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArray.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isFunction.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObject.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/memoize.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/lodash-es/toString.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/orderedmap/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +15 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +17 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +15 -0
- package/dist/lib/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +18 -0
- package/dist/lib/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/node_modules/w3c-keyname/index.js +14 -0
- package/dist/lib/packages/components/dist/es/packages/utils/dist/index.js +14 -0
- package/dist/lib/packages/components/dist/es/styles/tokens.css +14 -0
- package/dist/lib/packages/hooks/dist/index.js +14 -0
- package/dist/lib/packages/shared-service/index.js +14 -0
- package/dist/lib/packages/utils/dist/index.js +14 -0
- package/dist/lib/utils/request.js +14 -0
- package/dist/lib/utils/util.js +14 -0
- package/index.d.ts +44 -0
- package/package.json +70 -0
|
@@ -0,0 +1,2746 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
|
|
3
|
+
@license Proprietary
|
|
4
|
+
|
|
5
|
+
This software is the confidential and proprietary property of Lenovo SSG BASD.
|
|
6
|
+
You shall not disclose such Confidential Information and shall use it only in
|
|
7
|
+
accordance with the terms of the license agreement.
|
|
8
|
+
|
|
9
|
+
--- Build Info ---
|
|
10
|
+
Version: 0.0.0
|
|
11
|
+
Build Time: 2026/3/13 18:25:24
|
|
12
|
+
Build Commit: 0b162dea954baa715e67b70f80401a571205058a
|
|
13
|
+
*/
|
|
14
|
+
import q from "../../orderedmap/dist/index.js";
|
|
15
|
+
function Y(o, t, e) {
|
|
16
|
+
for (let n = 0; ; n++) {
|
|
17
|
+
if (n == o.childCount || n == t.childCount)
|
|
18
|
+
return o.childCount == t.childCount ? null : e;
|
|
19
|
+
let r = o.child(n), i = t.child(n);
|
|
20
|
+
if (r == i) {
|
|
21
|
+
e += r.nodeSize;
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
if (!r.sameMarkup(i))
|
|
25
|
+
return e;
|
|
26
|
+
if (r.isText && r.text != i.text) {
|
|
27
|
+
for (let s = 0; r.text[s] == i.text[s]; s++)
|
|
28
|
+
e++;
|
|
29
|
+
return e;
|
|
30
|
+
}
|
|
31
|
+
if (r.content.size || i.content.size) {
|
|
32
|
+
let s = Y(r.content, i.content, e + 1);
|
|
33
|
+
if (s != null)
|
|
34
|
+
return s;
|
|
35
|
+
}
|
|
36
|
+
e += r.nodeSize;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function Z(o, t, e, n) {
|
|
40
|
+
for (let r = o.childCount, i = t.childCount; ; ) {
|
|
41
|
+
if (r == 0 || i == 0)
|
|
42
|
+
return r == i ? null : { a: e, b: n };
|
|
43
|
+
let s = o.child(--r), h = t.child(--i), l = s.nodeSize;
|
|
44
|
+
if (s == h) {
|
|
45
|
+
e -= l, n -= l;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (!s.sameMarkup(h))
|
|
49
|
+
return { a: e, b: n };
|
|
50
|
+
if (s.isText && s.text != h.text) {
|
|
51
|
+
let a = 0, c = Math.min(s.text.length, h.text.length);
|
|
52
|
+
for (; a < c && s.text[s.text.length - a - 1] == h.text[h.text.length - a - 1]; )
|
|
53
|
+
a++, e--, n--;
|
|
54
|
+
return { a: e, b: n };
|
|
55
|
+
}
|
|
56
|
+
if (s.content.size || h.content.size) {
|
|
57
|
+
let a = Z(s.content, h.content, e - 1, n - 1);
|
|
58
|
+
if (a)
|
|
59
|
+
return a;
|
|
60
|
+
}
|
|
61
|
+
e -= l, n -= l;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
class u {
|
|
65
|
+
/**
|
|
66
|
+
@internal
|
|
67
|
+
*/
|
|
68
|
+
constructor(t, e) {
|
|
69
|
+
if (this.content = t, this.size = e || 0, e == null)
|
|
70
|
+
for (let n = 0; n < t.length; n++)
|
|
71
|
+
this.size += t[n].nodeSize;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
Invoke a callback for all descendant nodes between the given two
|
|
75
|
+
positions (relative to start of this fragment). Doesn't descend
|
|
76
|
+
into a node when the callback returns `false`.
|
|
77
|
+
*/
|
|
78
|
+
nodesBetween(t, e, n, r = 0, i) {
|
|
79
|
+
for (let s = 0, h = 0; h < e; s++) {
|
|
80
|
+
let l = this.content[s], a = h + l.nodeSize;
|
|
81
|
+
if (a > t && n(l, r + h, i || null, s) !== !1 && l.content.size) {
|
|
82
|
+
let c = h + 1;
|
|
83
|
+
l.nodesBetween(Math.max(0, t - c), Math.min(l.content.size, e - c), n, r + c);
|
|
84
|
+
}
|
|
85
|
+
h = a;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
Call the given callback for every descendant node. `pos` will be
|
|
90
|
+
relative to the start of the fragment. The callback may return
|
|
91
|
+
`false` to prevent traversal of a given node's children.
|
|
92
|
+
*/
|
|
93
|
+
descendants(t) {
|
|
94
|
+
this.nodesBetween(0, this.size, t);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
Extract the text between `from` and `to`. See the same method on
|
|
98
|
+
[`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
|
|
99
|
+
*/
|
|
100
|
+
textBetween(t, e, n, r) {
|
|
101
|
+
let i = "", s = !0;
|
|
102
|
+
return this.nodesBetween(t, e, (h, l) => {
|
|
103
|
+
let a = h.isText ? h.text.slice(Math.max(t, l) - l, e - l) : h.isLeaf ? r ? typeof r == "function" ? r(h) : r : h.type.spec.leafText ? h.type.spec.leafText(h) : "" : "";
|
|
104
|
+
h.isBlock && (h.isLeaf && a || h.isTextblock) && n && (s ? s = !1 : i += n), i += a;
|
|
105
|
+
}, 0), i;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
Create a new fragment containing the combined content of this
|
|
109
|
+
fragment and the other.
|
|
110
|
+
*/
|
|
111
|
+
append(t) {
|
|
112
|
+
if (!t.size)
|
|
113
|
+
return this;
|
|
114
|
+
if (!this.size)
|
|
115
|
+
return t;
|
|
116
|
+
let e = this.lastChild, n = t.firstChild, r = this.content.slice(), i = 0;
|
|
117
|
+
for (e.isText && e.sameMarkup(n) && (r[r.length - 1] = e.withText(e.text + n.text), i = 1); i < t.content.length; i++)
|
|
118
|
+
r.push(t.content[i]);
|
|
119
|
+
return new u(r, this.size + t.size);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
Cut out the sub-fragment between the two given positions.
|
|
123
|
+
*/
|
|
124
|
+
cut(t, e = this.size) {
|
|
125
|
+
if (t == 0 && e == this.size)
|
|
126
|
+
return this;
|
|
127
|
+
let n = [], r = 0;
|
|
128
|
+
if (e > t)
|
|
129
|
+
for (let i = 0, s = 0; s < e; i++) {
|
|
130
|
+
let h = this.content[i], l = s + h.nodeSize;
|
|
131
|
+
l > t && ((s < t || l > e) && (h.isText ? h = h.cut(Math.max(0, t - s), Math.min(h.text.length, e - s)) : h = h.cut(Math.max(0, t - s - 1), Math.min(h.content.size, e - s - 1))), n.push(h), r += h.nodeSize), s = l;
|
|
132
|
+
}
|
|
133
|
+
return new u(n, r);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
@internal
|
|
137
|
+
*/
|
|
138
|
+
cutByIndex(t, e) {
|
|
139
|
+
return t == e ? u.empty : t == 0 && e == this.content.length ? this : new u(this.content.slice(t, e));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
Create a new fragment in which the node at the given index is
|
|
143
|
+
replaced by the given node.
|
|
144
|
+
*/
|
|
145
|
+
replaceChild(t, e) {
|
|
146
|
+
let n = this.content[t];
|
|
147
|
+
if (n == e)
|
|
148
|
+
return this;
|
|
149
|
+
let r = this.content.slice(), i = this.size + e.nodeSize - n.nodeSize;
|
|
150
|
+
return r[t] = e, new u(r, i);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
Create a new fragment by prepending the given node to this
|
|
154
|
+
fragment.
|
|
155
|
+
*/
|
|
156
|
+
addToStart(t) {
|
|
157
|
+
return new u([t].concat(this.content), this.size + t.nodeSize);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
Create a new fragment by appending the given node to this
|
|
161
|
+
fragment.
|
|
162
|
+
*/
|
|
163
|
+
addToEnd(t) {
|
|
164
|
+
return new u(this.content.concat(t), this.size + t.nodeSize);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
Compare this fragment to another one.
|
|
168
|
+
*/
|
|
169
|
+
eq(t) {
|
|
170
|
+
if (this.content.length != t.content.length)
|
|
171
|
+
return !1;
|
|
172
|
+
for (let e = 0; e < this.content.length; e++)
|
|
173
|
+
if (!this.content[e].eq(t.content[e]))
|
|
174
|
+
return !1;
|
|
175
|
+
return !0;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
The first child of the fragment, or `null` if it is empty.
|
|
179
|
+
*/
|
|
180
|
+
get firstChild() {
|
|
181
|
+
return this.content.length ? this.content[0] : null;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
The last child of the fragment, or `null` if it is empty.
|
|
185
|
+
*/
|
|
186
|
+
get lastChild() {
|
|
187
|
+
return this.content.length ? this.content[this.content.length - 1] : null;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
The number of child nodes in this fragment.
|
|
191
|
+
*/
|
|
192
|
+
get childCount() {
|
|
193
|
+
return this.content.length;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
Get the child node at the given index. Raise an error when the
|
|
197
|
+
index is out of range.
|
|
198
|
+
*/
|
|
199
|
+
child(t) {
|
|
200
|
+
let e = this.content[t];
|
|
201
|
+
if (!e)
|
|
202
|
+
throw new RangeError("Index " + t + " out of range for " + this);
|
|
203
|
+
return e;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
Get the child node at the given index, if it exists.
|
|
207
|
+
*/
|
|
208
|
+
maybeChild(t) {
|
|
209
|
+
return this.content[t] || null;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
Call `f` for every child node, passing the node, its offset
|
|
213
|
+
into this parent node, and its index.
|
|
214
|
+
*/
|
|
215
|
+
forEach(t) {
|
|
216
|
+
for (let e = 0, n = 0; e < this.content.length; e++) {
|
|
217
|
+
let r = this.content[e];
|
|
218
|
+
t(r, n, e), n += r.nodeSize;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
Find the first position at which this fragment and another
|
|
223
|
+
fragment differ, or `null` if they are the same.
|
|
224
|
+
*/
|
|
225
|
+
findDiffStart(t, e = 0) {
|
|
226
|
+
return Y(this, t, e);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
Find the first position, searching from the end, at which this
|
|
230
|
+
fragment and the given fragment differ, or `null` if they are
|
|
231
|
+
the same. Since this position will not be the same in both
|
|
232
|
+
nodes, an object with two separate positions is returned.
|
|
233
|
+
*/
|
|
234
|
+
findDiffEnd(t, e = this.size, n = t.size) {
|
|
235
|
+
return Z(this, t, e, n);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
Find the index and inner offset corresponding to a given relative
|
|
239
|
+
position in this fragment. The result object will be reused
|
|
240
|
+
(overwritten) the next time the function is called. @internal
|
|
241
|
+
*/
|
|
242
|
+
findIndex(t) {
|
|
243
|
+
if (t == 0)
|
|
244
|
+
return O(0, t);
|
|
245
|
+
if (t == this.size)
|
|
246
|
+
return O(this.content.length, t);
|
|
247
|
+
if (t > this.size || t < 0)
|
|
248
|
+
throw new RangeError(`Position ${t} outside of fragment (${this})`);
|
|
249
|
+
for (let e = 0, n = 0; ; e++) {
|
|
250
|
+
let r = this.child(e), i = n + r.nodeSize;
|
|
251
|
+
if (i >= t)
|
|
252
|
+
return i == t ? O(e + 1, i) : O(e, n);
|
|
253
|
+
n = i;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
Return a debugging string that describes this fragment.
|
|
258
|
+
*/
|
|
259
|
+
toString() {
|
|
260
|
+
return "<" + this.toStringInner() + ">";
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
@internal
|
|
264
|
+
*/
|
|
265
|
+
toStringInner() {
|
|
266
|
+
return this.content.join(", ");
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
Create a JSON-serializeable representation of this fragment.
|
|
270
|
+
*/
|
|
271
|
+
toJSON() {
|
|
272
|
+
return this.content.length ? this.content.map((t) => t.toJSON()) : null;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
Deserialize a fragment from its JSON representation.
|
|
276
|
+
*/
|
|
277
|
+
static fromJSON(t, e) {
|
|
278
|
+
if (!e)
|
|
279
|
+
return u.empty;
|
|
280
|
+
if (!Array.isArray(e))
|
|
281
|
+
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
282
|
+
return new u(e.map(t.nodeFromJSON));
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
Build a fragment from an array of nodes. Ensures that adjacent
|
|
286
|
+
text nodes with the same marks are joined together.
|
|
287
|
+
*/
|
|
288
|
+
static fromArray(t) {
|
|
289
|
+
if (!t.length)
|
|
290
|
+
return u.empty;
|
|
291
|
+
let e, n = 0;
|
|
292
|
+
for (let r = 0; r < t.length; r++) {
|
|
293
|
+
let i = t[r];
|
|
294
|
+
n += i.nodeSize, r && i.isText && t[r - 1].sameMarkup(i) ? (e || (e = t.slice(0, r)), e[e.length - 1] = i.withText(e[e.length - 1].text + i.text)) : e && e.push(i);
|
|
295
|
+
}
|
|
296
|
+
return new u(e || t, n);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
Create a fragment from something that can be interpreted as a
|
|
300
|
+
set of nodes. For `null`, it returns the empty fragment. For a
|
|
301
|
+
fragment, the fragment itself. For a node or array of nodes, a
|
|
302
|
+
fragment containing those nodes.
|
|
303
|
+
*/
|
|
304
|
+
static from(t) {
|
|
305
|
+
if (!t)
|
|
306
|
+
return u.empty;
|
|
307
|
+
if (t instanceof u)
|
|
308
|
+
return t;
|
|
309
|
+
if (Array.isArray(t))
|
|
310
|
+
return this.fromArray(t);
|
|
311
|
+
if (t.attrs)
|
|
312
|
+
return new u([t], t.nodeSize);
|
|
313
|
+
throw new RangeError("Can not convert " + t + " to a Fragment" + (t.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
u.empty = new u([], 0);
|
|
317
|
+
const R = { index: 0, offset: 0 };
|
|
318
|
+
function O(o, t) {
|
|
319
|
+
return R.index = o, R.offset = t, R;
|
|
320
|
+
}
|
|
321
|
+
function M(o, t) {
|
|
322
|
+
if (o === t)
|
|
323
|
+
return !0;
|
|
324
|
+
if (!(o && typeof o == "object") || !(t && typeof t == "object"))
|
|
325
|
+
return !1;
|
|
326
|
+
let e = Array.isArray(o);
|
|
327
|
+
if (Array.isArray(t) != e)
|
|
328
|
+
return !1;
|
|
329
|
+
if (e) {
|
|
330
|
+
if (o.length != t.length)
|
|
331
|
+
return !1;
|
|
332
|
+
for (let n = 0; n < o.length; n++)
|
|
333
|
+
if (!M(o[n], t[n]))
|
|
334
|
+
return !1;
|
|
335
|
+
} else {
|
|
336
|
+
for (let n in o)
|
|
337
|
+
if (!(n in t) || !M(o[n], t[n]))
|
|
338
|
+
return !1;
|
|
339
|
+
for (let n in t)
|
|
340
|
+
if (!(n in o))
|
|
341
|
+
return !1;
|
|
342
|
+
}
|
|
343
|
+
return !0;
|
|
344
|
+
}
|
|
345
|
+
class f {
|
|
346
|
+
/**
|
|
347
|
+
@internal
|
|
348
|
+
*/
|
|
349
|
+
constructor(t, e) {
|
|
350
|
+
this.type = t, this.attrs = e;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
Given a set of marks, create a new set which contains this one as
|
|
354
|
+
well, in the right position. If this mark is already in the set,
|
|
355
|
+
the set itself is returned. If any marks that are set to be
|
|
356
|
+
[exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,
|
|
357
|
+
those are replaced by this one.
|
|
358
|
+
*/
|
|
359
|
+
addToSet(t) {
|
|
360
|
+
let e, n = !1;
|
|
361
|
+
for (let r = 0; r < t.length; r++) {
|
|
362
|
+
let i = t[r];
|
|
363
|
+
if (this.eq(i))
|
|
364
|
+
return t;
|
|
365
|
+
if (this.type.excludes(i.type))
|
|
366
|
+
e || (e = t.slice(0, r));
|
|
367
|
+
else {
|
|
368
|
+
if (i.type.excludes(this.type))
|
|
369
|
+
return t;
|
|
370
|
+
!n && i.type.rank > this.type.rank && (e || (e = t.slice(0, r)), e.push(this), n = !0), e && e.push(i);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return e || (e = t.slice()), n || e.push(this), e;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
Remove this mark from the given set, returning a new set. If this
|
|
377
|
+
mark is not in the set, the set itself is returned.
|
|
378
|
+
*/
|
|
379
|
+
removeFromSet(t) {
|
|
380
|
+
for (let e = 0; e < t.length; e++)
|
|
381
|
+
if (this.eq(t[e]))
|
|
382
|
+
return t.slice(0, e).concat(t.slice(e + 1));
|
|
383
|
+
return t;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
Test whether this mark is in the given set of marks.
|
|
387
|
+
*/
|
|
388
|
+
isInSet(t) {
|
|
389
|
+
for (let e = 0; e < t.length; e++)
|
|
390
|
+
if (this.eq(t[e]))
|
|
391
|
+
return !0;
|
|
392
|
+
return !1;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
Test whether this mark has the same type and attributes as
|
|
396
|
+
another mark.
|
|
397
|
+
*/
|
|
398
|
+
eq(t) {
|
|
399
|
+
return this == t || this.type == t.type && M(this.attrs, t.attrs);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
Convert this mark to a JSON-serializeable representation.
|
|
403
|
+
*/
|
|
404
|
+
toJSON() {
|
|
405
|
+
let t = { type: this.type.name };
|
|
406
|
+
for (let e in this.attrs) {
|
|
407
|
+
t.attrs = this.attrs;
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
return t;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
Deserialize a mark from JSON.
|
|
414
|
+
*/
|
|
415
|
+
static fromJSON(t, e) {
|
|
416
|
+
if (!e)
|
|
417
|
+
throw new RangeError("Invalid input for Mark.fromJSON");
|
|
418
|
+
let n = t.marks[e.type];
|
|
419
|
+
if (!n)
|
|
420
|
+
throw new RangeError(`There is no mark type ${e.type} in this schema`);
|
|
421
|
+
let r = n.create(e.attrs);
|
|
422
|
+
return n.checkAttrs(r.attrs), r;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
Test whether two sets of marks are identical.
|
|
426
|
+
*/
|
|
427
|
+
static sameSet(t, e) {
|
|
428
|
+
if (t == e)
|
|
429
|
+
return !0;
|
|
430
|
+
if (t.length != e.length)
|
|
431
|
+
return !1;
|
|
432
|
+
for (let n = 0; n < t.length; n++)
|
|
433
|
+
if (!t[n].eq(e[n]))
|
|
434
|
+
return !1;
|
|
435
|
+
return !0;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
Create a properly sorted mark set from null, a single mark, or an
|
|
439
|
+
unsorted array of marks.
|
|
440
|
+
*/
|
|
441
|
+
static setFrom(t) {
|
|
442
|
+
if (!t || Array.isArray(t) && t.length == 0)
|
|
443
|
+
return f.none;
|
|
444
|
+
if (t instanceof f)
|
|
445
|
+
return [t];
|
|
446
|
+
let e = t.slice();
|
|
447
|
+
return e.sort((n, r) => n.type.rank - r.type.rank), e;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
f.none = [];
|
|
451
|
+
class F extends Error {
|
|
452
|
+
}
|
|
453
|
+
let C = class k {
|
|
454
|
+
/**
|
|
455
|
+
Create a slice. When specifying a non-zero open depth, you must
|
|
456
|
+
make sure that there are nodes of at least that depth at the
|
|
457
|
+
appropriate side of the fragment—i.e. if the fragment is an
|
|
458
|
+
empty paragraph node, `openStart` and `openEnd` can't be greater
|
|
459
|
+
than 1.
|
|
460
|
+
|
|
461
|
+
It is not necessary for the content of open nodes to conform to
|
|
462
|
+
the schema's content constraints, though it should be a valid
|
|
463
|
+
start/end/middle for such a node, depending on which sides are
|
|
464
|
+
open.
|
|
465
|
+
*/
|
|
466
|
+
constructor(t, e, n) {
|
|
467
|
+
this.content = t, this.openStart = e, this.openEnd = n;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
The size this slice would add when inserted into a document.
|
|
471
|
+
*/
|
|
472
|
+
get size() {
|
|
473
|
+
return this.content.size - this.openStart - this.openEnd;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
@internal
|
|
477
|
+
*/
|
|
478
|
+
insertAt(t, e) {
|
|
479
|
+
let n = tt(this.content, t + this.openStart, e);
|
|
480
|
+
return n && new k(n, this.openStart, this.openEnd);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
@internal
|
|
484
|
+
*/
|
|
485
|
+
removeBetween(t, e) {
|
|
486
|
+
return new k(_(this.content, t + this.openStart, e + this.openStart), this.openStart, this.openEnd);
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
Tests whether this slice is equal to another slice.
|
|
490
|
+
*/
|
|
491
|
+
eq(t) {
|
|
492
|
+
return this.content.eq(t.content) && this.openStart == t.openStart && this.openEnd == t.openEnd;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
@internal
|
|
496
|
+
*/
|
|
497
|
+
toString() {
|
|
498
|
+
return this.content + "(" + this.openStart + "," + this.openEnd + ")";
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
Convert a slice to a JSON-serializable representation.
|
|
502
|
+
*/
|
|
503
|
+
toJSON() {
|
|
504
|
+
if (!this.content.size)
|
|
505
|
+
return null;
|
|
506
|
+
let t = { content: this.content.toJSON() };
|
|
507
|
+
return this.openStart > 0 && (t.openStart = this.openStart), this.openEnd > 0 && (t.openEnd = this.openEnd), t;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
Deserialize a slice from its JSON representation.
|
|
511
|
+
*/
|
|
512
|
+
static fromJSON(t, e) {
|
|
513
|
+
if (!e)
|
|
514
|
+
return k.empty;
|
|
515
|
+
let n = e.openStart || 0, r = e.openEnd || 0;
|
|
516
|
+
if (typeof n != "number" || typeof r != "number")
|
|
517
|
+
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
518
|
+
return new k(u.fromJSON(t, e.content), n, r);
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
Create a slice from a fragment by taking the maximum possible
|
|
522
|
+
open value on both side of the fragment.
|
|
523
|
+
*/
|
|
524
|
+
static maxOpen(t, e = !0) {
|
|
525
|
+
let n = 0, r = 0;
|
|
526
|
+
for (let i = t.firstChild; i && !i.isLeaf && (e || !i.type.spec.isolating); i = i.firstChild)
|
|
527
|
+
n++;
|
|
528
|
+
for (let i = t.lastChild; i && !i.isLeaf && (e || !i.type.spec.isolating); i = i.lastChild)
|
|
529
|
+
r++;
|
|
530
|
+
return new k(t, n, r);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
C.empty = new C(u.empty, 0, 0);
|
|
534
|
+
function _(o, t, e) {
|
|
535
|
+
let { index: n, offset: r } = o.findIndex(t), i = o.maybeChild(n), { index: s, offset: h } = o.findIndex(e);
|
|
536
|
+
if (r == t || i.isText) {
|
|
537
|
+
if (h != e && !o.child(s).isText)
|
|
538
|
+
throw new RangeError("Removing non-flat range");
|
|
539
|
+
return o.cut(0, t).append(o.cut(e));
|
|
540
|
+
}
|
|
541
|
+
if (n != s)
|
|
542
|
+
throw new RangeError("Removing non-flat range");
|
|
543
|
+
return o.replaceChild(n, i.copy(_(i.content, t - r - 1, e - r - 1)));
|
|
544
|
+
}
|
|
545
|
+
function tt(o, t, e, n) {
|
|
546
|
+
let { index: r, offset: i } = o.findIndex(t), s = o.maybeChild(r);
|
|
547
|
+
if (i == t || s.isText)
|
|
548
|
+
return n && !n.canReplace(r, r, e) ? null : o.cut(0, t).append(e).append(o.cut(t));
|
|
549
|
+
let h = tt(s.content, t - i - 1, e, s);
|
|
550
|
+
return h && o.replaceChild(r, s.copy(h));
|
|
551
|
+
}
|
|
552
|
+
function mt(o, t, e) {
|
|
553
|
+
if (e.openStart > o.depth)
|
|
554
|
+
throw new F("Inserted content deeper than insertion position");
|
|
555
|
+
if (o.depth - e.openStart != t.depth - e.openEnd)
|
|
556
|
+
throw new F("Inconsistent open depths");
|
|
557
|
+
return et(o, t, e, 0);
|
|
558
|
+
}
|
|
559
|
+
function et(o, t, e, n) {
|
|
560
|
+
let r = o.index(n), i = o.node(n);
|
|
561
|
+
if (r == t.index(n) && n < o.depth - e.openStart) {
|
|
562
|
+
let s = et(o, t, e, n + 1);
|
|
563
|
+
return i.copy(i.content.replaceChild(r, s));
|
|
564
|
+
} else if (e.content.size)
|
|
565
|
+
if (!e.openStart && !e.openEnd && o.depth == n && t.depth == n) {
|
|
566
|
+
let s = o.parent, h = s.content;
|
|
567
|
+
return y(s, h.cut(0, o.parentOffset).append(e.content).append(h.cut(t.parentOffset)));
|
|
568
|
+
} else {
|
|
569
|
+
let { start: s, end: h } = gt(e, o);
|
|
570
|
+
return y(i, rt(o, s, h, t, n));
|
|
571
|
+
}
|
|
572
|
+
else return y(i, A(o, t, n));
|
|
573
|
+
}
|
|
574
|
+
function nt(o, t) {
|
|
575
|
+
if (!t.type.compatibleContent(o.type))
|
|
576
|
+
throw new F("Cannot join " + t.type.name + " onto " + o.type.name);
|
|
577
|
+
}
|
|
578
|
+
function B(o, t, e) {
|
|
579
|
+
let n = o.node(e);
|
|
580
|
+
return nt(n, t.node(e)), n;
|
|
581
|
+
}
|
|
582
|
+
function g(o, t) {
|
|
583
|
+
let e = t.length - 1;
|
|
584
|
+
e >= 0 && o.isText && o.sameMarkup(t[e]) ? t[e] = o.withText(t[e].text + o.text) : t.push(o);
|
|
585
|
+
}
|
|
586
|
+
function w(o, t, e, n) {
|
|
587
|
+
let r = (t || o).node(e), i = 0, s = t ? t.index(e) : r.childCount;
|
|
588
|
+
o && (i = o.index(e), o.depth > e ? i++ : o.textOffset && (g(o.nodeAfter, n), i++));
|
|
589
|
+
for (let h = i; h < s; h++)
|
|
590
|
+
g(r.child(h), n);
|
|
591
|
+
t && t.depth == e && t.textOffset && g(t.nodeBefore, n);
|
|
592
|
+
}
|
|
593
|
+
function y(o, t) {
|
|
594
|
+
return o.type.checkContent(t), o.copy(t);
|
|
595
|
+
}
|
|
596
|
+
function rt(o, t, e, n, r) {
|
|
597
|
+
let i = o.depth > r && B(o, t, r + 1), s = n.depth > r && B(e, n, r + 1), h = [];
|
|
598
|
+
return w(null, o, r, h), i && s && t.index(r) == e.index(r) ? (nt(i, s), g(y(i, rt(o, t, e, n, r + 1)), h)) : (i && g(y(i, A(o, t, r + 1)), h), w(t, e, r, h), s && g(y(s, A(e, n, r + 1)), h)), w(n, null, r, h), new u(h);
|
|
599
|
+
}
|
|
600
|
+
function A(o, t, e) {
|
|
601
|
+
let n = [];
|
|
602
|
+
if (w(null, o, e, n), o.depth > e) {
|
|
603
|
+
let r = B(o, t, e + 1);
|
|
604
|
+
g(y(r, A(o, t, e + 1)), n);
|
|
605
|
+
}
|
|
606
|
+
return w(t, null, e, n), new u(n);
|
|
607
|
+
}
|
|
608
|
+
function gt(o, t) {
|
|
609
|
+
let e = t.depth - o.openStart, n = t.node(e).copy(o.content);
|
|
610
|
+
for (let r = e - 1; r >= 0; r--)
|
|
611
|
+
n = t.node(r).copy(u.from(n));
|
|
612
|
+
return {
|
|
613
|
+
start: n.resolveNoCache(o.openStart + e),
|
|
614
|
+
end: n.resolveNoCache(n.content.size - o.openEnd - e)
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
class b {
|
|
618
|
+
/**
|
|
619
|
+
@internal
|
|
620
|
+
*/
|
|
621
|
+
constructor(t, e, n) {
|
|
622
|
+
this.pos = t, this.path = e, this.parentOffset = n, this.depth = e.length / 3 - 1;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
@internal
|
|
626
|
+
*/
|
|
627
|
+
resolveDepth(t) {
|
|
628
|
+
return t == null ? this.depth : t < 0 ? this.depth + t : t;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
The parent node that the position points into. Note that even if
|
|
632
|
+
a position points into a text node, that node is not considered
|
|
633
|
+
the parent—text nodes are ‘flat’ in this model, and have no content.
|
|
634
|
+
*/
|
|
635
|
+
get parent() {
|
|
636
|
+
return this.node(this.depth);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
The root node in which the position was resolved.
|
|
640
|
+
*/
|
|
641
|
+
get doc() {
|
|
642
|
+
return this.node(0);
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
The ancestor node at the given level. `p.node(p.depth)` is the
|
|
646
|
+
same as `p.parent`.
|
|
647
|
+
*/
|
|
648
|
+
node(t) {
|
|
649
|
+
return this.path[this.resolveDepth(t) * 3];
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
The index into the ancestor at the given level. If this points
|
|
653
|
+
at the 3rd node in the 2nd paragraph on the top level, for
|
|
654
|
+
example, `p.index(0)` is 1 and `p.index(1)` is 2.
|
|
655
|
+
*/
|
|
656
|
+
index(t) {
|
|
657
|
+
return this.path[this.resolveDepth(t) * 3 + 1];
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
The index pointing after this position into the ancestor at the
|
|
661
|
+
given level.
|
|
662
|
+
*/
|
|
663
|
+
indexAfter(t) {
|
|
664
|
+
return t = this.resolveDepth(t), this.index(t) + (t == this.depth && !this.textOffset ? 0 : 1);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
The (absolute) position at the start of the node at the given
|
|
668
|
+
level.
|
|
669
|
+
*/
|
|
670
|
+
start(t) {
|
|
671
|
+
return t = this.resolveDepth(t), t == 0 ? 0 : this.path[t * 3 - 1] + 1;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
The (absolute) position at the end of the node at the given
|
|
675
|
+
level.
|
|
676
|
+
*/
|
|
677
|
+
end(t) {
|
|
678
|
+
return t = this.resolveDepth(t), this.start(t) + this.node(t).content.size;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
The (absolute) position directly before the wrapping node at the
|
|
682
|
+
given level, or, when `depth` is `this.depth + 1`, the original
|
|
683
|
+
position.
|
|
684
|
+
*/
|
|
685
|
+
before(t) {
|
|
686
|
+
if (t = this.resolveDepth(t), !t)
|
|
687
|
+
throw new RangeError("There is no position before the top-level node");
|
|
688
|
+
return t == this.depth + 1 ? this.pos : this.path[t * 3 - 1];
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
The (absolute) position directly after the wrapping node at the
|
|
692
|
+
given level, or the original position when `depth` is `this.depth + 1`.
|
|
693
|
+
*/
|
|
694
|
+
after(t) {
|
|
695
|
+
if (t = this.resolveDepth(t), !t)
|
|
696
|
+
throw new RangeError("There is no position after the top-level node");
|
|
697
|
+
return t == this.depth + 1 ? this.pos : this.path[t * 3 - 1] + this.path[t * 3].nodeSize;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
When this position points into a text node, this returns the
|
|
701
|
+
distance between the position and the start of the text node.
|
|
702
|
+
Will be zero for positions that point between nodes.
|
|
703
|
+
*/
|
|
704
|
+
get textOffset() {
|
|
705
|
+
return this.pos - this.path[this.path.length - 1];
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
Get the node directly after the position, if any. If the position
|
|
709
|
+
points into a text node, only the part of that node after the
|
|
710
|
+
position is returned.
|
|
711
|
+
*/
|
|
712
|
+
get nodeAfter() {
|
|
713
|
+
let t = this.parent, e = this.index(this.depth);
|
|
714
|
+
if (e == t.childCount)
|
|
715
|
+
return null;
|
|
716
|
+
let n = this.pos - this.path[this.path.length - 1], r = t.child(e);
|
|
717
|
+
return n ? t.child(e).cut(n) : r;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
Get the node directly before the position, if any. If the
|
|
721
|
+
position points into a text node, only the part of that node
|
|
722
|
+
before the position is returned.
|
|
723
|
+
*/
|
|
724
|
+
get nodeBefore() {
|
|
725
|
+
let t = this.index(this.depth), e = this.pos - this.path[this.path.length - 1];
|
|
726
|
+
return e ? this.parent.child(t).cut(0, e) : t == 0 ? null : this.parent.child(t - 1);
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
Get the position at the given index in the parent node at the
|
|
730
|
+
given depth (which defaults to `this.depth`).
|
|
731
|
+
*/
|
|
732
|
+
posAtIndex(t, e) {
|
|
733
|
+
e = this.resolveDepth(e);
|
|
734
|
+
let n = this.path[e * 3], r = e == 0 ? 0 : this.path[e * 3 - 1] + 1;
|
|
735
|
+
for (let i = 0; i < t; i++)
|
|
736
|
+
r += n.child(i).nodeSize;
|
|
737
|
+
return r;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
Get the marks at this position, factoring in the surrounding
|
|
741
|
+
marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the
|
|
742
|
+
position is at the start of a non-empty node, the marks of the
|
|
743
|
+
node after it (if any) are returned.
|
|
744
|
+
*/
|
|
745
|
+
marks() {
|
|
746
|
+
let t = this.parent, e = this.index();
|
|
747
|
+
if (t.content.size == 0)
|
|
748
|
+
return f.none;
|
|
749
|
+
if (this.textOffset)
|
|
750
|
+
return t.child(e).marks;
|
|
751
|
+
let n = t.maybeChild(e - 1), r = t.maybeChild(e);
|
|
752
|
+
if (!n) {
|
|
753
|
+
let h = n;
|
|
754
|
+
n = r, r = h;
|
|
755
|
+
}
|
|
756
|
+
let i = n.marks;
|
|
757
|
+
for (var s = 0; s < i.length; s++)
|
|
758
|
+
i[s].type.spec.inclusive === !1 && (!r || !i[s].isInSet(r.marks)) && (i = i[s--].removeFromSet(i));
|
|
759
|
+
return i;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
Get the marks after the current position, if any, except those
|
|
763
|
+
that are non-inclusive and not present at position `$end`. This
|
|
764
|
+
is mostly useful for getting the set of marks to preserve after a
|
|
765
|
+
deletion. Will return `null` if this position is at the end of
|
|
766
|
+
its parent node or its parent node isn't a textblock (in which
|
|
767
|
+
case no marks should be preserved).
|
|
768
|
+
*/
|
|
769
|
+
marksAcross(t) {
|
|
770
|
+
let e = this.parent.maybeChild(this.index());
|
|
771
|
+
if (!e || !e.isInline)
|
|
772
|
+
return null;
|
|
773
|
+
let n = e.marks, r = t.parent.maybeChild(t.index());
|
|
774
|
+
for (var i = 0; i < n.length; i++)
|
|
775
|
+
n[i].type.spec.inclusive === !1 && (!r || !n[i].isInSet(r.marks)) && (n = n[i--].removeFromSet(n));
|
|
776
|
+
return n;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
The depth up to which this position and the given (non-resolved)
|
|
780
|
+
position share the same parent nodes.
|
|
781
|
+
*/
|
|
782
|
+
sharedDepth(t) {
|
|
783
|
+
for (let e = this.depth; e > 0; e--)
|
|
784
|
+
if (this.start(e) <= t && this.end(e) >= t)
|
|
785
|
+
return e;
|
|
786
|
+
return 0;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
Returns a range based on the place where this position and the
|
|
790
|
+
given position diverge around block content. If both point into
|
|
791
|
+
the same textblock, for example, a range around that textblock
|
|
792
|
+
will be returned. If they point into different blocks, the range
|
|
793
|
+
around those blocks in their shared ancestor is returned. You can
|
|
794
|
+
pass in an optional predicate that will be called with a parent
|
|
795
|
+
node to see if a range into that parent is acceptable.
|
|
796
|
+
*/
|
|
797
|
+
blockRange(t = this, e) {
|
|
798
|
+
if (t.pos < this.pos)
|
|
799
|
+
return t.blockRange(this);
|
|
800
|
+
for (let n = this.depth - (this.parent.inlineContent || this.pos == t.pos ? 1 : 0); n >= 0; n--)
|
|
801
|
+
if (t.pos <= this.end(n) && (!e || e(this.node(n))))
|
|
802
|
+
return new kt(this, t, n);
|
|
803
|
+
return null;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
Query whether the given position shares the same parent node.
|
|
807
|
+
*/
|
|
808
|
+
sameParent(t) {
|
|
809
|
+
return this.pos - this.parentOffset == t.pos - t.parentOffset;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
Return the greater of this and the given position.
|
|
813
|
+
*/
|
|
814
|
+
max(t) {
|
|
815
|
+
return t.pos > this.pos ? t : this;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
Return the smaller of this and the given position.
|
|
819
|
+
*/
|
|
820
|
+
min(t) {
|
|
821
|
+
return t.pos < this.pos ? t : this;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
@internal
|
|
825
|
+
*/
|
|
826
|
+
toString() {
|
|
827
|
+
let t = "";
|
|
828
|
+
for (let e = 1; e <= this.depth; e++)
|
|
829
|
+
t += (t ? "/" : "") + this.node(e).type.name + "_" + this.index(e - 1);
|
|
830
|
+
return t + ":" + this.parentOffset;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
@internal
|
|
834
|
+
*/
|
|
835
|
+
static resolve(t, e) {
|
|
836
|
+
if (!(e >= 0 && e <= t.content.size))
|
|
837
|
+
throw new RangeError("Position " + e + " out of range");
|
|
838
|
+
let n = [], r = 0, i = e;
|
|
839
|
+
for (let s = t; ; ) {
|
|
840
|
+
let { index: h, offset: l } = s.content.findIndex(i), a = i - l;
|
|
841
|
+
if (n.push(s, h, r + l), !a || (s = s.child(h), s.isText))
|
|
842
|
+
break;
|
|
843
|
+
i = a - 1, r += l + 1;
|
|
844
|
+
}
|
|
845
|
+
return new b(e, n, i);
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
@internal
|
|
849
|
+
*/
|
|
850
|
+
static resolveCached(t, e) {
|
|
851
|
+
let n = j.get(t);
|
|
852
|
+
if (n)
|
|
853
|
+
for (let i = 0; i < n.elts.length; i++) {
|
|
854
|
+
let s = n.elts[i];
|
|
855
|
+
if (s.pos == e)
|
|
856
|
+
return s;
|
|
857
|
+
}
|
|
858
|
+
else
|
|
859
|
+
j.set(t, n = new yt());
|
|
860
|
+
let r = n.elts[n.i] = b.resolve(t, e);
|
|
861
|
+
return n.i = (n.i + 1) % xt, r;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
class yt {
|
|
865
|
+
constructor() {
|
|
866
|
+
this.elts = [], this.i = 0;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
const xt = 12, j = /* @__PURE__ */ new WeakMap();
|
|
870
|
+
class kt {
|
|
871
|
+
/**
|
|
872
|
+
Construct a node range. `$from` and `$to` should point into the
|
|
873
|
+
same node until at least the given `depth`, since a node range
|
|
874
|
+
denotes an adjacent set of nodes in a single parent node.
|
|
875
|
+
*/
|
|
876
|
+
constructor(t, e, n) {
|
|
877
|
+
this.$from = t, this.$to = e, this.depth = n;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
The position at the start of the range.
|
|
881
|
+
*/
|
|
882
|
+
get start() {
|
|
883
|
+
return this.$from.before(this.depth + 1);
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
The position at the end of the range.
|
|
887
|
+
*/
|
|
888
|
+
get end() {
|
|
889
|
+
return this.$to.after(this.depth + 1);
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
The parent node that the range points into.
|
|
893
|
+
*/
|
|
894
|
+
get parent() {
|
|
895
|
+
return this.$from.node(this.depth);
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
The start index of the range in the parent node.
|
|
899
|
+
*/
|
|
900
|
+
get startIndex() {
|
|
901
|
+
return this.$from.index(this.depth);
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
The end index of the range in the parent node.
|
|
905
|
+
*/
|
|
906
|
+
get endIndex() {
|
|
907
|
+
return this.$to.indexAfter(this.depth);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
const wt = /* @__PURE__ */ Object.create(null);
|
|
911
|
+
class m {
|
|
912
|
+
/**
|
|
913
|
+
@internal
|
|
914
|
+
*/
|
|
915
|
+
constructor(t, e, n, r = f.none) {
|
|
916
|
+
this.type = t, this.attrs = e, this.marks = r, this.content = n || u.empty;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
The array of this node's child nodes.
|
|
920
|
+
*/
|
|
921
|
+
get children() {
|
|
922
|
+
return this.content.content;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
The size of this node, as defined by the integer-based [indexing
|
|
926
|
+
scheme](https://prosemirror.net/docs/guide/#doc.indexing). For text nodes, this is the
|
|
927
|
+
amount of characters. For other leaf nodes, it is one. For
|
|
928
|
+
non-leaf nodes, it is the size of the content plus two (the
|
|
929
|
+
start and end token).
|
|
930
|
+
*/
|
|
931
|
+
get nodeSize() {
|
|
932
|
+
return this.isLeaf ? 1 : 2 + this.content.size;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
The number of children that the node has.
|
|
936
|
+
*/
|
|
937
|
+
get childCount() {
|
|
938
|
+
return this.content.childCount;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
Get the child node at the given index. Raises an error when the
|
|
942
|
+
index is out of range.
|
|
943
|
+
*/
|
|
944
|
+
child(t) {
|
|
945
|
+
return this.content.child(t);
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
Get the child node at the given index, if it exists.
|
|
949
|
+
*/
|
|
950
|
+
maybeChild(t) {
|
|
951
|
+
return this.content.maybeChild(t);
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
Call `f` for every child node, passing the node, its offset
|
|
955
|
+
into this parent node, and its index.
|
|
956
|
+
*/
|
|
957
|
+
forEach(t) {
|
|
958
|
+
this.content.forEach(t);
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
Invoke a callback for all descendant nodes recursively between
|
|
962
|
+
the given two positions that are relative to start of this
|
|
963
|
+
node's content. The callback is invoked with the node, its
|
|
964
|
+
position relative to the original node (method receiver),
|
|
965
|
+
its parent node, and its child index. When the callback returns
|
|
966
|
+
false for a given node, that node's children will not be
|
|
967
|
+
recursed over. The last parameter can be used to specify a
|
|
968
|
+
starting position to count from.
|
|
969
|
+
*/
|
|
970
|
+
nodesBetween(t, e, n, r = 0) {
|
|
971
|
+
this.content.nodesBetween(t, e, n, r, this);
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
Call the given callback for every descendant node. Doesn't
|
|
975
|
+
descend into a node when the callback returns `false`.
|
|
976
|
+
*/
|
|
977
|
+
descendants(t) {
|
|
978
|
+
this.nodesBetween(0, this.content.size, t);
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
Concatenates all the text nodes found in this fragment and its
|
|
982
|
+
children.
|
|
983
|
+
*/
|
|
984
|
+
get textContent() {
|
|
985
|
+
return this.isLeaf && this.type.spec.leafText ? this.type.spec.leafText(this) : this.textBetween(0, this.content.size, "");
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
Get all text between positions `from` and `to`. When
|
|
989
|
+
`blockSeparator` is given, it will be inserted to separate text
|
|
990
|
+
from different block nodes. If `leafText` is given, it'll be
|
|
991
|
+
inserted for every non-text leaf node encountered, otherwise
|
|
992
|
+
[`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
|
|
993
|
+
*/
|
|
994
|
+
textBetween(t, e, n, r) {
|
|
995
|
+
return this.content.textBetween(t, e, n, r);
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
Returns this node's first child, or `null` if there are no
|
|
999
|
+
children.
|
|
1000
|
+
*/
|
|
1001
|
+
get firstChild() {
|
|
1002
|
+
return this.content.firstChild;
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
Returns this node's last child, or `null` if there are no
|
|
1006
|
+
children.
|
|
1007
|
+
*/
|
|
1008
|
+
get lastChild() {
|
|
1009
|
+
return this.content.lastChild;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
Test whether two nodes represent the same piece of document.
|
|
1013
|
+
*/
|
|
1014
|
+
eq(t) {
|
|
1015
|
+
return this == t || this.sameMarkup(t) && this.content.eq(t.content);
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
Compare the markup (type, attributes, and marks) of this node to
|
|
1019
|
+
those of another. Returns `true` if both have the same markup.
|
|
1020
|
+
*/
|
|
1021
|
+
sameMarkup(t) {
|
|
1022
|
+
return this.hasMarkup(t.type, t.attrs, t.marks);
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
Check whether this node's markup correspond to the given type,
|
|
1026
|
+
attributes, and marks.
|
|
1027
|
+
*/
|
|
1028
|
+
hasMarkup(t, e, n) {
|
|
1029
|
+
return this.type == t && M(this.attrs, e || t.defaultAttrs || wt) && f.sameSet(this.marks, n || f.none);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
Create a new node with the same markup as this node, containing
|
|
1033
|
+
the given content (or empty, if no content is given).
|
|
1034
|
+
*/
|
|
1035
|
+
copy(t = null) {
|
|
1036
|
+
return t == this.content ? this : new m(this.type, this.attrs, t, this.marks);
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
Create a copy of this node, with the given set of marks instead
|
|
1040
|
+
of the node's own marks.
|
|
1041
|
+
*/
|
|
1042
|
+
mark(t) {
|
|
1043
|
+
return t == this.marks ? this : new m(this.type, this.attrs, this.content, t);
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
Create a copy of this node with only the content between the
|
|
1047
|
+
given positions. If `to` is not given, it defaults to the end of
|
|
1048
|
+
the node.
|
|
1049
|
+
*/
|
|
1050
|
+
cut(t, e = this.content.size) {
|
|
1051
|
+
return t == 0 && e == this.content.size ? this : this.copy(this.content.cut(t, e));
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
Cut out the part of the document between the given positions, and
|
|
1055
|
+
return it as a `Slice` object.
|
|
1056
|
+
*/
|
|
1057
|
+
slice(t, e = this.content.size, n = !1) {
|
|
1058
|
+
if (t == e)
|
|
1059
|
+
return C.empty;
|
|
1060
|
+
let r = this.resolve(t), i = this.resolve(e), s = n ? 0 : r.sharedDepth(e), h = r.start(s), l = r.node(s).content.cut(r.pos - h, i.pos - h);
|
|
1061
|
+
return new C(l, r.depth - s, i.depth - s);
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
Replace the part of the document between the given positions with
|
|
1065
|
+
the given slice. The slice must 'fit', meaning its open sides
|
|
1066
|
+
must be able to connect to the surrounding content, and its
|
|
1067
|
+
content nodes must be valid children for the node they are placed
|
|
1068
|
+
into. If any of this is violated, an error of type
|
|
1069
|
+
[`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
|
|
1070
|
+
*/
|
|
1071
|
+
replace(t, e, n) {
|
|
1072
|
+
return mt(this.resolve(t), this.resolve(e), n);
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
Find the node directly after the given position.
|
|
1076
|
+
*/
|
|
1077
|
+
nodeAt(t) {
|
|
1078
|
+
for (let e = this; ; ) {
|
|
1079
|
+
let { index: n, offset: r } = e.content.findIndex(t);
|
|
1080
|
+
if (e = e.maybeChild(n), !e)
|
|
1081
|
+
return null;
|
|
1082
|
+
if (r == t || e.isText)
|
|
1083
|
+
return e;
|
|
1084
|
+
t -= r + 1;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
Find the (direct) child node after the given offset, if any,
|
|
1089
|
+
and return it along with its index and offset relative to this
|
|
1090
|
+
node.
|
|
1091
|
+
*/
|
|
1092
|
+
childAfter(t) {
|
|
1093
|
+
let { index: e, offset: n } = this.content.findIndex(t);
|
|
1094
|
+
return { node: this.content.maybeChild(e), index: e, offset: n };
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
Find the (direct) child node before the given offset, if any,
|
|
1098
|
+
and return it along with its index and offset relative to this
|
|
1099
|
+
node.
|
|
1100
|
+
*/
|
|
1101
|
+
childBefore(t) {
|
|
1102
|
+
if (t == 0)
|
|
1103
|
+
return { node: null, index: 0, offset: 0 };
|
|
1104
|
+
let { index: e, offset: n } = this.content.findIndex(t);
|
|
1105
|
+
if (n < t)
|
|
1106
|
+
return { node: this.content.child(e), index: e, offset: n };
|
|
1107
|
+
let r = this.content.child(e - 1);
|
|
1108
|
+
return { node: r, index: e - 1, offset: n - r.nodeSize };
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
Resolve the given position in the document, returning an
|
|
1112
|
+
[object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
|
|
1113
|
+
*/
|
|
1114
|
+
resolve(t) {
|
|
1115
|
+
return b.resolveCached(this, t);
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
@internal
|
|
1119
|
+
*/
|
|
1120
|
+
resolveNoCache(t) {
|
|
1121
|
+
return b.resolve(this, t);
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
Test whether a given mark or mark type occurs in this document
|
|
1125
|
+
between the two given positions.
|
|
1126
|
+
*/
|
|
1127
|
+
rangeHasMark(t, e, n) {
|
|
1128
|
+
let r = !1;
|
|
1129
|
+
return e > t && this.nodesBetween(t, e, (i) => (n.isInSet(i.marks) && (r = !0), !r)), r;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
True when this is a block (non-inline node)
|
|
1133
|
+
*/
|
|
1134
|
+
get isBlock() {
|
|
1135
|
+
return this.type.isBlock;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
True when this is a textblock node, a block node with inline
|
|
1139
|
+
content.
|
|
1140
|
+
*/
|
|
1141
|
+
get isTextblock() {
|
|
1142
|
+
return this.type.isTextblock;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
True when this node allows inline content.
|
|
1146
|
+
*/
|
|
1147
|
+
get inlineContent() {
|
|
1148
|
+
return this.type.inlineContent;
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
True when this is an inline node (a text node or a node that can
|
|
1152
|
+
appear among text).
|
|
1153
|
+
*/
|
|
1154
|
+
get isInline() {
|
|
1155
|
+
return this.type.isInline;
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
True when this is a text node.
|
|
1159
|
+
*/
|
|
1160
|
+
get isText() {
|
|
1161
|
+
return this.type.isText;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
True when this is a leaf node.
|
|
1165
|
+
*/
|
|
1166
|
+
get isLeaf() {
|
|
1167
|
+
return this.type.isLeaf;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
True when this is an atom, i.e. when it does not have directly
|
|
1171
|
+
editable content. This is usually the same as `isLeaf`, but can
|
|
1172
|
+
be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)
|
|
1173
|
+
on a node's spec (typically used when the node is displayed as
|
|
1174
|
+
an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).
|
|
1175
|
+
*/
|
|
1176
|
+
get isAtom() {
|
|
1177
|
+
return this.type.isAtom;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
Return a string representation of this node for debugging
|
|
1181
|
+
purposes.
|
|
1182
|
+
*/
|
|
1183
|
+
toString() {
|
|
1184
|
+
if (this.type.spec.toDebugString)
|
|
1185
|
+
return this.type.spec.toDebugString(this);
|
|
1186
|
+
let t = this.type.name;
|
|
1187
|
+
return this.content.size && (t += "(" + this.content.toStringInner() + ")"), it(this.marks, t);
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
Get the content match in this node at the given index.
|
|
1191
|
+
*/
|
|
1192
|
+
contentMatchAt(t) {
|
|
1193
|
+
let e = this.type.contentMatch.matchFragment(this.content, 0, t);
|
|
1194
|
+
if (!e)
|
|
1195
|
+
throw new Error("Called contentMatchAt on a node with invalid content");
|
|
1196
|
+
return e;
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
Test whether replacing the range between `from` and `to` (by
|
|
1200
|
+
child index) with the given replacement fragment (which defaults
|
|
1201
|
+
to the empty fragment) would leave the node's content valid. You
|
|
1202
|
+
can optionally pass `start` and `end` indices into the
|
|
1203
|
+
replacement fragment.
|
|
1204
|
+
*/
|
|
1205
|
+
canReplace(t, e, n = u.empty, r = 0, i = n.childCount) {
|
|
1206
|
+
let s = this.contentMatchAt(t).matchFragment(n, r, i), h = s && s.matchFragment(this.content, e);
|
|
1207
|
+
if (!h || !h.validEnd)
|
|
1208
|
+
return !1;
|
|
1209
|
+
for (let l = r; l < i; l++)
|
|
1210
|
+
if (!this.type.allowsMarks(n.child(l).marks))
|
|
1211
|
+
return !1;
|
|
1212
|
+
return !0;
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
Test whether replacing the range `from` to `to` (by index) with
|
|
1216
|
+
a node of the given type would leave the node's content valid.
|
|
1217
|
+
*/
|
|
1218
|
+
canReplaceWith(t, e, n, r) {
|
|
1219
|
+
if (r && !this.type.allowsMarks(r))
|
|
1220
|
+
return !1;
|
|
1221
|
+
let i = this.contentMatchAt(t).matchType(n), s = i && i.matchFragment(this.content, e);
|
|
1222
|
+
return s ? s.validEnd : !1;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
Test whether the given node's content could be appended to this
|
|
1226
|
+
node. If that node is empty, this will only return true if there
|
|
1227
|
+
is at least one node type that can appear in both nodes (to avoid
|
|
1228
|
+
merging completely incompatible nodes).
|
|
1229
|
+
*/
|
|
1230
|
+
canAppend(t) {
|
|
1231
|
+
return t.content.size ? this.canReplace(this.childCount, this.childCount, t.content) : this.type.compatibleContent(t.type);
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
Check whether this node and its descendants conform to the
|
|
1235
|
+
schema, and raise an exception when they do not.
|
|
1236
|
+
*/
|
|
1237
|
+
check() {
|
|
1238
|
+
this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
|
|
1239
|
+
let t = f.none;
|
|
1240
|
+
for (let e = 0; e < this.marks.length; e++) {
|
|
1241
|
+
let n = this.marks[e];
|
|
1242
|
+
n.type.checkAttrs(n.attrs), t = n.addToSet(t);
|
|
1243
|
+
}
|
|
1244
|
+
if (!f.sameSet(t, this.marks))
|
|
1245
|
+
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e) => e.type.name)}`);
|
|
1246
|
+
this.content.forEach((e) => e.check());
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
Return a JSON-serializeable representation of this node.
|
|
1250
|
+
*/
|
|
1251
|
+
toJSON() {
|
|
1252
|
+
let t = { type: this.type.name };
|
|
1253
|
+
for (let e in this.attrs) {
|
|
1254
|
+
t.attrs = this.attrs;
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
return this.content.size && (t.content = this.content.toJSON()), this.marks.length && (t.marks = this.marks.map((e) => e.toJSON())), t;
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
Deserialize a node from its JSON representation.
|
|
1261
|
+
*/
|
|
1262
|
+
static fromJSON(t, e) {
|
|
1263
|
+
if (!e)
|
|
1264
|
+
throw new RangeError("Invalid input for Node.fromJSON");
|
|
1265
|
+
let n;
|
|
1266
|
+
if (e.marks) {
|
|
1267
|
+
if (!Array.isArray(e.marks))
|
|
1268
|
+
throw new RangeError("Invalid mark data for Node.fromJSON");
|
|
1269
|
+
n = e.marks.map(t.markFromJSON);
|
|
1270
|
+
}
|
|
1271
|
+
if (e.type == "text") {
|
|
1272
|
+
if (typeof e.text != "string")
|
|
1273
|
+
throw new RangeError("Invalid text node in JSON");
|
|
1274
|
+
return t.text(e.text, n);
|
|
1275
|
+
}
|
|
1276
|
+
let r = u.fromJSON(t, e.content), i = t.nodeType(e.type).create(e.attrs, r, n);
|
|
1277
|
+
return i.type.checkAttrs(i.attrs), i;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
m.prototype.text = void 0;
|
|
1281
|
+
class N extends m {
|
|
1282
|
+
/**
|
|
1283
|
+
@internal
|
|
1284
|
+
*/
|
|
1285
|
+
constructor(t, e, n, r) {
|
|
1286
|
+
if (super(t, e, null, r), !n)
|
|
1287
|
+
throw new RangeError("Empty text nodes are not allowed");
|
|
1288
|
+
this.text = n;
|
|
1289
|
+
}
|
|
1290
|
+
toString() {
|
|
1291
|
+
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : it(this.marks, JSON.stringify(this.text));
|
|
1292
|
+
}
|
|
1293
|
+
get textContent() {
|
|
1294
|
+
return this.text;
|
|
1295
|
+
}
|
|
1296
|
+
textBetween(t, e) {
|
|
1297
|
+
return this.text.slice(t, e);
|
|
1298
|
+
}
|
|
1299
|
+
get nodeSize() {
|
|
1300
|
+
return this.text.length;
|
|
1301
|
+
}
|
|
1302
|
+
mark(t) {
|
|
1303
|
+
return t == this.marks ? this : new N(this.type, this.attrs, this.text, t);
|
|
1304
|
+
}
|
|
1305
|
+
withText(t) {
|
|
1306
|
+
return t == this.text ? this : new N(this.type, this.attrs, t, this.marks);
|
|
1307
|
+
}
|
|
1308
|
+
cut(t = 0, e = this.text.length) {
|
|
1309
|
+
return t == 0 && e == this.text.length ? this : this.withText(this.text.slice(t, e));
|
|
1310
|
+
}
|
|
1311
|
+
eq(t) {
|
|
1312
|
+
return this.sameMarkup(t) && this.text == t.text;
|
|
1313
|
+
}
|
|
1314
|
+
toJSON() {
|
|
1315
|
+
let t = super.toJSON();
|
|
1316
|
+
return t.text = this.text, t;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
function it(o, t) {
|
|
1320
|
+
for (let e = o.length - 1; e >= 0; e--)
|
|
1321
|
+
t = o[e].type.name + "(" + t + ")";
|
|
1322
|
+
return t;
|
|
1323
|
+
}
|
|
1324
|
+
class x {
|
|
1325
|
+
/**
|
|
1326
|
+
@internal
|
|
1327
|
+
*/
|
|
1328
|
+
constructor(t) {
|
|
1329
|
+
this.validEnd = t, this.next = [], this.wrapCache = [];
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
@internal
|
|
1333
|
+
*/
|
|
1334
|
+
static parse(t, e) {
|
|
1335
|
+
let n = new St(t, e);
|
|
1336
|
+
if (n.next == null)
|
|
1337
|
+
return x.empty;
|
|
1338
|
+
let r = st(n);
|
|
1339
|
+
n.next && n.err("Unexpected trailing text");
|
|
1340
|
+
let i = Mt(Tt(r));
|
|
1341
|
+
return At(i, n), i;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
Match a node type, returning a match after that node if
|
|
1345
|
+
successful.
|
|
1346
|
+
*/
|
|
1347
|
+
matchType(t) {
|
|
1348
|
+
for (let e = 0; e < this.next.length; e++)
|
|
1349
|
+
if (this.next[e].type == t)
|
|
1350
|
+
return this.next[e].next;
|
|
1351
|
+
return null;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
Try to match a fragment. Returns the resulting match when
|
|
1355
|
+
successful.
|
|
1356
|
+
*/
|
|
1357
|
+
matchFragment(t, e = 0, n = t.childCount) {
|
|
1358
|
+
let r = this;
|
|
1359
|
+
for (let i = e; r && i < n; i++)
|
|
1360
|
+
r = r.matchType(t.child(i).type);
|
|
1361
|
+
return r;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
@internal
|
|
1365
|
+
*/
|
|
1366
|
+
get inlineContent() {
|
|
1367
|
+
return this.next.length != 0 && this.next[0].type.isInline;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
Get the first matching node type at this match position that can
|
|
1371
|
+
be generated.
|
|
1372
|
+
*/
|
|
1373
|
+
get defaultType() {
|
|
1374
|
+
for (let t = 0; t < this.next.length; t++) {
|
|
1375
|
+
let { type: e } = this.next[t];
|
|
1376
|
+
if (!(e.isText || e.hasRequiredAttrs()))
|
|
1377
|
+
return e;
|
|
1378
|
+
}
|
|
1379
|
+
return null;
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
@internal
|
|
1383
|
+
*/
|
|
1384
|
+
compatible(t) {
|
|
1385
|
+
for (let e = 0; e < this.next.length; e++)
|
|
1386
|
+
for (let n = 0; n < t.next.length; n++)
|
|
1387
|
+
if (this.next[e].type == t.next[n].type)
|
|
1388
|
+
return !0;
|
|
1389
|
+
return !1;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
Try to match the given fragment, and if that fails, see if it can
|
|
1393
|
+
be made to match by inserting nodes in front of it. When
|
|
1394
|
+
successful, return a fragment of inserted nodes (which may be
|
|
1395
|
+
empty if nothing had to be inserted). When `toEnd` is true, only
|
|
1396
|
+
return a fragment if the resulting match goes to the end of the
|
|
1397
|
+
content expression.
|
|
1398
|
+
*/
|
|
1399
|
+
fillBefore(t, e = !1, n = 0) {
|
|
1400
|
+
let r = [this];
|
|
1401
|
+
function i(s, h) {
|
|
1402
|
+
let l = s.matchFragment(t, n);
|
|
1403
|
+
if (l && (!e || l.validEnd))
|
|
1404
|
+
return u.from(h.map((a) => a.createAndFill()));
|
|
1405
|
+
for (let a = 0; a < s.next.length; a++) {
|
|
1406
|
+
let { type: c, next: p } = s.next[a];
|
|
1407
|
+
if (!(c.isText || c.hasRequiredAttrs()) && r.indexOf(p) == -1) {
|
|
1408
|
+
r.push(p);
|
|
1409
|
+
let d = i(p, h.concat(c));
|
|
1410
|
+
if (d)
|
|
1411
|
+
return d;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
return null;
|
|
1415
|
+
}
|
|
1416
|
+
return i(this, []);
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
Find a set of wrapping node types that would allow a node of the
|
|
1420
|
+
given type to appear at this position. The result may be empty
|
|
1421
|
+
(when it fits directly) and will be null when no such wrapping
|
|
1422
|
+
exists.
|
|
1423
|
+
*/
|
|
1424
|
+
findWrapping(t) {
|
|
1425
|
+
for (let n = 0; n < this.wrapCache.length; n += 2)
|
|
1426
|
+
if (this.wrapCache[n] == t)
|
|
1427
|
+
return this.wrapCache[n + 1];
|
|
1428
|
+
let e = this.computeWrapping(t);
|
|
1429
|
+
return this.wrapCache.push(t, e), e;
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
@internal
|
|
1433
|
+
*/
|
|
1434
|
+
computeWrapping(t) {
|
|
1435
|
+
let e = /* @__PURE__ */ Object.create(null), n = [{ match: this, type: null, via: null }];
|
|
1436
|
+
for (; n.length; ) {
|
|
1437
|
+
let r = n.shift(), i = r.match;
|
|
1438
|
+
if (i.matchType(t)) {
|
|
1439
|
+
let s = [];
|
|
1440
|
+
for (let h = r; h.type; h = h.via)
|
|
1441
|
+
s.push(h.type);
|
|
1442
|
+
return s.reverse();
|
|
1443
|
+
}
|
|
1444
|
+
for (let s = 0; s < i.next.length; s++) {
|
|
1445
|
+
let { type: h, next: l } = i.next[s];
|
|
1446
|
+
!h.isLeaf && !h.hasRequiredAttrs() && !(h.name in e) && (!r.type || l.validEnd) && (n.push({ match: h.contentMatch, type: h, via: r }), e[h.name] = !0);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
return null;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
The number of outgoing edges this node has in the finite
|
|
1453
|
+
automaton that describes the content expression.
|
|
1454
|
+
*/
|
|
1455
|
+
get edgeCount() {
|
|
1456
|
+
return this.next.length;
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
Get the _n_th outgoing edge from this node in the finite
|
|
1460
|
+
automaton that describes the content expression.
|
|
1461
|
+
*/
|
|
1462
|
+
edge(t) {
|
|
1463
|
+
if (t >= this.next.length)
|
|
1464
|
+
throw new RangeError(`There's no ${t}th edge in this content match`);
|
|
1465
|
+
return this.next[t];
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
@internal
|
|
1469
|
+
*/
|
|
1470
|
+
toString() {
|
|
1471
|
+
let t = [];
|
|
1472
|
+
function e(n) {
|
|
1473
|
+
t.push(n);
|
|
1474
|
+
for (let r = 0; r < n.next.length; r++)
|
|
1475
|
+
t.indexOf(n.next[r].next) == -1 && e(n.next[r].next);
|
|
1476
|
+
}
|
|
1477
|
+
return e(this), t.map((n, r) => {
|
|
1478
|
+
let i = r + (n.validEnd ? "*" : " ") + " ";
|
|
1479
|
+
for (let s = 0; s < n.next.length; s++)
|
|
1480
|
+
i += (s ? ", " : "") + n.next[s].type.name + "->" + t.indexOf(n.next[s].next);
|
|
1481
|
+
return i;
|
|
1482
|
+
}).join(`
|
|
1483
|
+
`);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
x.empty = new x(!0);
|
|
1487
|
+
class St {
|
|
1488
|
+
constructor(t, e) {
|
|
1489
|
+
this.string = t, this.nodeTypes = e, this.inline = null, this.pos = 0, this.tokens = t.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
1490
|
+
}
|
|
1491
|
+
get next() {
|
|
1492
|
+
return this.tokens[this.pos];
|
|
1493
|
+
}
|
|
1494
|
+
eat(t) {
|
|
1495
|
+
return this.next == t && (this.pos++ || !0);
|
|
1496
|
+
}
|
|
1497
|
+
err(t) {
|
|
1498
|
+
throw new SyntaxError(t + " (in content expression '" + this.string + "')");
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
function st(o) {
|
|
1502
|
+
let t = [];
|
|
1503
|
+
do
|
|
1504
|
+
t.push(Ct(o));
|
|
1505
|
+
while (o.eat("|"));
|
|
1506
|
+
return t.length == 1 ? t[0] : { type: "choice", exprs: t };
|
|
1507
|
+
}
|
|
1508
|
+
function Ct(o) {
|
|
1509
|
+
let t = [];
|
|
1510
|
+
do
|
|
1511
|
+
t.push(bt(o));
|
|
1512
|
+
while (o.next && o.next != ")" && o.next != "|");
|
|
1513
|
+
return t.length == 1 ? t[0] : { type: "seq", exprs: t };
|
|
1514
|
+
}
|
|
1515
|
+
function bt(o) {
|
|
1516
|
+
let t = vt(o);
|
|
1517
|
+
for (; ; )
|
|
1518
|
+
if (o.eat("+"))
|
|
1519
|
+
t = { type: "plus", expr: t };
|
|
1520
|
+
else if (o.eat("*"))
|
|
1521
|
+
t = { type: "star", expr: t };
|
|
1522
|
+
else if (o.eat("?"))
|
|
1523
|
+
t = { type: "opt", expr: t };
|
|
1524
|
+
else if (o.eat("{"))
|
|
1525
|
+
t = Et(o, t);
|
|
1526
|
+
else
|
|
1527
|
+
break;
|
|
1528
|
+
return t;
|
|
1529
|
+
}
|
|
1530
|
+
function L(o) {
|
|
1531
|
+
/\D/.test(o.next) && o.err("Expected number, got '" + o.next + "'");
|
|
1532
|
+
let t = Number(o.next);
|
|
1533
|
+
return o.pos++, t;
|
|
1534
|
+
}
|
|
1535
|
+
function Et(o, t) {
|
|
1536
|
+
let e = L(o), n = e;
|
|
1537
|
+
return o.eat(",") && (o.next != "}" ? n = L(o) : n = -1), o.eat("}") || o.err("Unclosed braced range"), { type: "range", min: e, max: n, expr: t };
|
|
1538
|
+
}
|
|
1539
|
+
function Ot(o, t) {
|
|
1540
|
+
let e = o.nodeTypes, n = e[t];
|
|
1541
|
+
if (n)
|
|
1542
|
+
return [n];
|
|
1543
|
+
let r = [];
|
|
1544
|
+
for (let i in e) {
|
|
1545
|
+
let s = e[i];
|
|
1546
|
+
s.isInGroup(t) && r.push(s);
|
|
1547
|
+
}
|
|
1548
|
+
return r.length == 0 && o.err("No node type or group '" + t + "' found"), r;
|
|
1549
|
+
}
|
|
1550
|
+
function vt(o) {
|
|
1551
|
+
if (o.eat("(")) {
|
|
1552
|
+
let t = st(o);
|
|
1553
|
+
return o.eat(")") || o.err("Missing closing paren"), t;
|
|
1554
|
+
} else if (/\W/.test(o.next))
|
|
1555
|
+
o.err("Unexpected token '" + o.next + "'");
|
|
1556
|
+
else {
|
|
1557
|
+
let t = Ot(o, o.next).map((e) => (o.inline == null ? o.inline = e.isInline : o.inline != e.isInline && o.err("Mixing inline and block content"), { type: "name", value: e }));
|
|
1558
|
+
return o.pos++, t.length == 1 ? t[0] : { type: "choice", exprs: t };
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
function Tt(o) {
|
|
1562
|
+
let t = [[]];
|
|
1563
|
+
return r(i(o, 0), e()), t;
|
|
1564
|
+
function e() {
|
|
1565
|
+
return t.push([]) - 1;
|
|
1566
|
+
}
|
|
1567
|
+
function n(s, h, l) {
|
|
1568
|
+
let a = { term: l, to: h };
|
|
1569
|
+
return t[s].push(a), a;
|
|
1570
|
+
}
|
|
1571
|
+
function r(s, h) {
|
|
1572
|
+
s.forEach((l) => l.to = h);
|
|
1573
|
+
}
|
|
1574
|
+
function i(s, h) {
|
|
1575
|
+
if (s.type == "choice")
|
|
1576
|
+
return s.exprs.reduce((l, a) => l.concat(i(a, h)), []);
|
|
1577
|
+
if (s.type == "seq")
|
|
1578
|
+
for (let l = 0; ; l++) {
|
|
1579
|
+
let a = i(s.exprs[l], h);
|
|
1580
|
+
if (l == s.exprs.length - 1)
|
|
1581
|
+
return a;
|
|
1582
|
+
r(a, h = e());
|
|
1583
|
+
}
|
|
1584
|
+
else if (s.type == "star") {
|
|
1585
|
+
let l = e();
|
|
1586
|
+
return n(h, l), r(i(s.expr, l), l), [n(l)];
|
|
1587
|
+
} else if (s.type == "plus") {
|
|
1588
|
+
let l = e();
|
|
1589
|
+
return r(i(s.expr, h), l), r(i(s.expr, l), l), [n(l)];
|
|
1590
|
+
} else {
|
|
1591
|
+
if (s.type == "opt")
|
|
1592
|
+
return [n(h)].concat(i(s.expr, h));
|
|
1593
|
+
if (s.type == "range") {
|
|
1594
|
+
let l = h;
|
|
1595
|
+
for (let a = 0; a < s.min; a++) {
|
|
1596
|
+
let c = e();
|
|
1597
|
+
r(i(s.expr, l), c), l = c;
|
|
1598
|
+
}
|
|
1599
|
+
if (s.max == -1)
|
|
1600
|
+
r(i(s.expr, l), l);
|
|
1601
|
+
else
|
|
1602
|
+
for (let a = s.min; a < s.max; a++) {
|
|
1603
|
+
let c = e();
|
|
1604
|
+
n(l, c), r(i(s.expr, l), c), l = c;
|
|
1605
|
+
}
|
|
1606
|
+
return [n(l)];
|
|
1607
|
+
} else {
|
|
1608
|
+
if (s.type == "name")
|
|
1609
|
+
return [n(h, void 0, s.value)];
|
|
1610
|
+
throw new Error("Unknown expr type");
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
function ot(o, t) {
|
|
1616
|
+
return t - o;
|
|
1617
|
+
}
|
|
1618
|
+
function W(o, t) {
|
|
1619
|
+
let e = [];
|
|
1620
|
+
return n(t), e.sort(ot);
|
|
1621
|
+
function n(r) {
|
|
1622
|
+
let i = o[r];
|
|
1623
|
+
if (i.length == 1 && !i[0].term)
|
|
1624
|
+
return n(i[0].to);
|
|
1625
|
+
e.push(r);
|
|
1626
|
+
for (let s = 0; s < i.length; s++) {
|
|
1627
|
+
let { term: h, to: l } = i[s];
|
|
1628
|
+
!h && e.indexOf(l) == -1 && n(l);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
function Mt(o) {
|
|
1633
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
1634
|
+
return e(W(o, 0));
|
|
1635
|
+
function e(n) {
|
|
1636
|
+
let r = [];
|
|
1637
|
+
n.forEach((s) => {
|
|
1638
|
+
o[s].forEach(({ term: h, to: l }) => {
|
|
1639
|
+
if (!h)
|
|
1640
|
+
return;
|
|
1641
|
+
let a;
|
|
1642
|
+
for (let c = 0; c < r.length; c++)
|
|
1643
|
+
r[c][0] == h && (a = r[c][1]);
|
|
1644
|
+
W(o, l).forEach((c) => {
|
|
1645
|
+
a || r.push([h, a = []]), a.indexOf(c) == -1 && a.push(c);
|
|
1646
|
+
});
|
|
1647
|
+
});
|
|
1648
|
+
});
|
|
1649
|
+
let i = t[n.join(",")] = new x(n.indexOf(o.length - 1) > -1);
|
|
1650
|
+
for (let s = 0; s < r.length; s++) {
|
|
1651
|
+
let h = r[s][1].sort(ot);
|
|
1652
|
+
i.next.push({ type: r[s][0], next: t[h.join(",")] || e(h) });
|
|
1653
|
+
}
|
|
1654
|
+
return i;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
function At(o, t) {
|
|
1658
|
+
for (let e = 0, n = [o]; e < n.length; e++) {
|
|
1659
|
+
let r = n[e], i = !r.validEnd, s = [];
|
|
1660
|
+
for (let h = 0; h < r.next.length; h++) {
|
|
1661
|
+
let { type: l, next: a } = r.next[h];
|
|
1662
|
+
s.push(l.name), i && !(l.isText || l.hasRequiredAttrs()) && (i = !1), n.indexOf(a) == -1 && n.push(a);
|
|
1663
|
+
}
|
|
1664
|
+
i && t.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
function ht(o) {
|
|
1668
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
1669
|
+
for (let e in o) {
|
|
1670
|
+
let n = o[e];
|
|
1671
|
+
if (!n.hasDefault)
|
|
1672
|
+
return null;
|
|
1673
|
+
t[e] = n.default;
|
|
1674
|
+
}
|
|
1675
|
+
return t;
|
|
1676
|
+
}
|
|
1677
|
+
function lt(o, t) {
|
|
1678
|
+
let e = /* @__PURE__ */ Object.create(null);
|
|
1679
|
+
for (let n in o) {
|
|
1680
|
+
let r = t && t[n];
|
|
1681
|
+
if (r === void 0) {
|
|
1682
|
+
let i = o[n];
|
|
1683
|
+
if (i.hasDefault)
|
|
1684
|
+
r = i.default;
|
|
1685
|
+
else
|
|
1686
|
+
throw new RangeError("No value supplied for attribute " + n);
|
|
1687
|
+
}
|
|
1688
|
+
e[n] = r;
|
|
1689
|
+
}
|
|
1690
|
+
return e;
|
|
1691
|
+
}
|
|
1692
|
+
function at(o, t, e, n) {
|
|
1693
|
+
for (let r in t)
|
|
1694
|
+
if (!(r in o))
|
|
1695
|
+
throw new RangeError(`Unsupported attribute ${r} for ${e} of type ${r}`);
|
|
1696
|
+
for (let r in o) {
|
|
1697
|
+
let i = o[r];
|
|
1698
|
+
i.validate && i.validate(t[r]);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
function ct(o, t) {
|
|
1702
|
+
let e = /* @__PURE__ */ Object.create(null);
|
|
1703
|
+
if (t)
|
|
1704
|
+
for (let n in t)
|
|
1705
|
+
e[n] = new zt(o, n, t[n]);
|
|
1706
|
+
return e;
|
|
1707
|
+
}
|
|
1708
|
+
class z {
|
|
1709
|
+
/**
|
|
1710
|
+
@internal
|
|
1711
|
+
*/
|
|
1712
|
+
constructor(t, e, n) {
|
|
1713
|
+
this.name = t, this.schema = e, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = ct(t, n.attrs), this.defaultAttrs = ht(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || t == "text"), this.isText = t == "text";
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
True if this is an inline type.
|
|
1717
|
+
*/
|
|
1718
|
+
get isInline() {
|
|
1719
|
+
return !this.isBlock;
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
True if this is a textblock type, a block that contains inline
|
|
1723
|
+
content.
|
|
1724
|
+
*/
|
|
1725
|
+
get isTextblock() {
|
|
1726
|
+
return this.isBlock && this.inlineContent;
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
True for node types that allow no content.
|
|
1730
|
+
*/
|
|
1731
|
+
get isLeaf() {
|
|
1732
|
+
return this.contentMatch == x.empty;
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
True when this node is an atom, i.e. when it does not have
|
|
1736
|
+
directly editable content.
|
|
1737
|
+
*/
|
|
1738
|
+
get isAtom() {
|
|
1739
|
+
return this.isLeaf || !!this.spec.atom;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
Return true when this node type is part of the given
|
|
1743
|
+
[group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
|
|
1744
|
+
*/
|
|
1745
|
+
isInGroup(t) {
|
|
1746
|
+
return this.groups.indexOf(t) > -1;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.
|
|
1750
|
+
*/
|
|
1751
|
+
get whitespace() {
|
|
1752
|
+
return this.spec.whitespace || (this.spec.code ? "pre" : "normal");
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
Tells you whether this node type has any required attributes.
|
|
1756
|
+
*/
|
|
1757
|
+
hasRequiredAttrs() {
|
|
1758
|
+
for (let t in this.attrs)
|
|
1759
|
+
if (this.attrs[t].isRequired)
|
|
1760
|
+
return !0;
|
|
1761
|
+
return !1;
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
Indicates whether this node allows some of the same content as
|
|
1765
|
+
the given node type.
|
|
1766
|
+
*/
|
|
1767
|
+
compatibleContent(t) {
|
|
1768
|
+
return this == t || this.contentMatch.compatible(t.contentMatch);
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
@internal
|
|
1772
|
+
*/
|
|
1773
|
+
computeAttrs(t) {
|
|
1774
|
+
return !t && this.defaultAttrs ? this.defaultAttrs : lt(this.attrs, t);
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
Create a `Node` of this type. The given attributes are
|
|
1778
|
+
checked and defaulted (you can pass `null` to use the type's
|
|
1779
|
+
defaults entirely, if no required attributes exist). `content`
|
|
1780
|
+
may be a `Fragment`, a node, an array of nodes, or
|
|
1781
|
+
`null`. Similarly `marks` may be `null` to default to the empty
|
|
1782
|
+
set of marks.
|
|
1783
|
+
*/
|
|
1784
|
+
create(t = null, e, n) {
|
|
1785
|
+
if (this.isText)
|
|
1786
|
+
throw new Error("NodeType.create can't construct text nodes");
|
|
1787
|
+
return new m(this, this.computeAttrs(t), u.from(e), f.setFrom(n));
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
1791
|
+
against the node type's content restrictions, and throw an error
|
|
1792
|
+
if it doesn't match.
|
|
1793
|
+
*/
|
|
1794
|
+
createChecked(t = null, e, n) {
|
|
1795
|
+
return e = u.from(e), this.checkContent(e), new m(this, this.computeAttrs(t), e, f.setFrom(n));
|
|
1796
|
+
}
|
|
1797
|
+
/**
|
|
1798
|
+
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
1799
|
+
necessary to add nodes to the start or end of the given fragment
|
|
1800
|
+
to make it fit the node. If no fitting wrapping can be found,
|
|
1801
|
+
return null. Note that, due to the fact that required nodes can
|
|
1802
|
+
always be created, this will always succeed if you pass null or
|
|
1803
|
+
`Fragment.empty` as content.
|
|
1804
|
+
*/
|
|
1805
|
+
createAndFill(t = null, e, n) {
|
|
1806
|
+
if (t = this.computeAttrs(t), e = u.from(e), e.size) {
|
|
1807
|
+
let s = this.contentMatch.fillBefore(e);
|
|
1808
|
+
if (!s)
|
|
1809
|
+
return null;
|
|
1810
|
+
e = s.append(e);
|
|
1811
|
+
}
|
|
1812
|
+
let r = this.contentMatch.matchFragment(e), i = r && r.fillBefore(u.empty, !0);
|
|
1813
|
+
return i ? new m(this, t, e.append(i), f.setFrom(n)) : null;
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
Returns true if the given fragment is valid content for this node
|
|
1817
|
+
type.
|
|
1818
|
+
*/
|
|
1819
|
+
validContent(t) {
|
|
1820
|
+
let e = this.contentMatch.matchFragment(t);
|
|
1821
|
+
if (!e || !e.validEnd)
|
|
1822
|
+
return !1;
|
|
1823
|
+
for (let n = 0; n < t.childCount; n++)
|
|
1824
|
+
if (!this.allowsMarks(t.child(n).marks))
|
|
1825
|
+
return !1;
|
|
1826
|
+
return !0;
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
Throws a RangeError if the given fragment is not valid content for this
|
|
1830
|
+
node type.
|
|
1831
|
+
@internal
|
|
1832
|
+
*/
|
|
1833
|
+
checkContent(t) {
|
|
1834
|
+
if (!this.validContent(t))
|
|
1835
|
+
throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0, 50)}`);
|
|
1836
|
+
}
|
|
1837
|
+
/**
|
|
1838
|
+
@internal
|
|
1839
|
+
*/
|
|
1840
|
+
checkAttrs(t) {
|
|
1841
|
+
at(this.attrs, t, "node", this.name);
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
Check whether the given mark type is allowed in this node.
|
|
1845
|
+
*/
|
|
1846
|
+
allowsMarkType(t) {
|
|
1847
|
+
return this.markSet == null || this.markSet.indexOf(t) > -1;
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
Test whether the given set of marks are allowed in this node.
|
|
1851
|
+
*/
|
|
1852
|
+
allowsMarks(t) {
|
|
1853
|
+
if (this.markSet == null)
|
|
1854
|
+
return !0;
|
|
1855
|
+
for (let e = 0; e < t.length; e++)
|
|
1856
|
+
if (!this.allowsMarkType(t[e].type))
|
|
1857
|
+
return !1;
|
|
1858
|
+
return !0;
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
Removes the marks that are not allowed in this node from the given set.
|
|
1862
|
+
*/
|
|
1863
|
+
allowedMarks(t) {
|
|
1864
|
+
if (this.markSet == null)
|
|
1865
|
+
return t;
|
|
1866
|
+
let e;
|
|
1867
|
+
for (let n = 0; n < t.length; n++)
|
|
1868
|
+
this.allowsMarkType(t[n].type) ? e && e.push(t[n]) : e || (e = t.slice(0, n));
|
|
1869
|
+
return e ? e.length ? e : f.none : t;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
@internal
|
|
1873
|
+
*/
|
|
1874
|
+
static compile(t, e) {
|
|
1875
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
1876
|
+
t.forEach((i, s) => n[i] = new z(i, e, s));
|
|
1877
|
+
let r = e.spec.topNode || "doc";
|
|
1878
|
+
if (!n[r])
|
|
1879
|
+
throw new RangeError("Schema is missing its top node type ('" + r + "')");
|
|
1880
|
+
if (!n.text)
|
|
1881
|
+
throw new RangeError("Every schema needs a 'text' type");
|
|
1882
|
+
for (let i in n.text.attrs)
|
|
1883
|
+
throw new RangeError("The text node type should not have attributes");
|
|
1884
|
+
return n;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
function Nt(o, t, e) {
|
|
1888
|
+
let n = e.split("|");
|
|
1889
|
+
return (r) => {
|
|
1890
|
+
let i = r === null ? "null" : typeof r;
|
|
1891
|
+
if (n.indexOf(i) < 0)
|
|
1892
|
+
throw new RangeError(`Expected value of type ${n} for attribute ${t} on type ${o}, got ${i}`);
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
class zt {
|
|
1896
|
+
constructor(t, e, n) {
|
|
1897
|
+
this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Nt(t, e, n.validate) : n.validate;
|
|
1898
|
+
}
|
|
1899
|
+
get isRequired() {
|
|
1900
|
+
return !this.hasDefault;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
class J {
|
|
1904
|
+
/**
|
|
1905
|
+
@internal
|
|
1906
|
+
*/
|
|
1907
|
+
constructor(t, e, n, r) {
|
|
1908
|
+
this.name = t, this.rank = e, this.schema = n, this.spec = r, this.attrs = ct(t, r.attrs), this.excluded = null;
|
|
1909
|
+
let i = ht(this.attrs);
|
|
1910
|
+
this.instance = i ? new f(this, i) : null;
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
Create a mark of this type. `attrs` may be `null` or an object
|
|
1914
|
+
containing only some of the mark's attributes. The others, if
|
|
1915
|
+
they have defaults, will be added.
|
|
1916
|
+
*/
|
|
1917
|
+
create(t = null) {
|
|
1918
|
+
return !t && this.instance ? this.instance : new f(this, lt(this.attrs, t));
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
@internal
|
|
1922
|
+
*/
|
|
1923
|
+
static compile(t, e) {
|
|
1924
|
+
let n = /* @__PURE__ */ Object.create(null), r = 0;
|
|
1925
|
+
return t.forEach((i, s) => n[i] = new J(i, r++, e, s)), n;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
When there is a mark of this type in the given set, a new set
|
|
1929
|
+
without it is returned. Otherwise, the input set is returned.
|
|
1930
|
+
*/
|
|
1931
|
+
removeFromSet(t) {
|
|
1932
|
+
for (var e = 0; e < t.length; e++)
|
|
1933
|
+
t[e].type == this && (t = t.slice(0, e).concat(t.slice(e + 1)), e--);
|
|
1934
|
+
return t;
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
Tests whether there is a mark of this type in the given set.
|
|
1938
|
+
*/
|
|
1939
|
+
isInSet(t) {
|
|
1940
|
+
for (let e = 0; e < t.length; e++)
|
|
1941
|
+
if (t[e].type == this)
|
|
1942
|
+
return t[e];
|
|
1943
|
+
}
|
|
1944
|
+
/**
|
|
1945
|
+
@internal
|
|
1946
|
+
*/
|
|
1947
|
+
checkAttrs(t) {
|
|
1948
|
+
at(this.attrs, t, "mark", this.name);
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
Queries whether a given mark type is
|
|
1952
|
+
[excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
|
|
1953
|
+
*/
|
|
1954
|
+
excludes(t) {
|
|
1955
|
+
return this.excluded.indexOf(t) > -1;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
class qt {
|
|
1959
|
+
/**
|
|
1960
|
+
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
1961
|
+
*/
|
|
1962
|
+
constructor(t) {
|
|
1963
|
+
this.linebreakReplacement = null, this.cached = /* @__PURE__ */ Object.create(null);
|
|
1964
|
+
let e = this.spec = {};
|
|
1965
|
+
for (let r in t)
|
|
1966
|
+
e[r] = t[r];
|
|
1967
|
+
e.nodes = q.from(t.nodes), e.marks = q.from(t.marks || {}), this.nodes = z.compile(this.spec.nodes, this), this.marks = J.compile(this.spec.marks, this);
|
|
1968
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
1969
|
+
for (let r in this.nodes) {
|
|
1970
|
+
if (r in this.marks)
|
|
1971
|
+
throw new RangeError(r + " can not be both a node and a mark");
|
|
1972
|
+
let i = this.nodes[r], s = i.spec.content || "", h = i.spec.marks;
|
|
1973
|
+
if (i.contentMatch = n[s] || (n[s] = x.parse(s, this.nodes)), i.inlineContent = i.contentMatch.inlineContent, i.spec.linebreakReplacement) {
|
|
1974
|
+
if (this.linebreakReplacement)
|
|
1975
|
+
throw new RangeError("Multiple linebreak nodes defined");
|
|
1976
|
+
if (!i.isInline || !i.isLeaf)
|
|
1977
|
+
throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
|
|
1978
|
+
this.linebreakReplacement = i;
|
|
1979
|
+
}
|
|
1980
|
+
i.markSet = h == "_" ? null : h ? U(this, h.split(" ")) : h == "" || !i.inlineContent ? [] : null;
|
|
1981
|
+
}
|
|
1982
|
+
for (let r in this.marks) {
|
|
1983
|
+
let i = this.marks[r], s = i.spec.excludes;
|
|
1984
|
+
i.excluded = s == null ? [i] : s == "" ? [] : U(this, s.split(" "));
|
|
1985
|
+
}
|
|
1986
|
+
this.nodeFromJSON = (r) => m.fromJSON(this, r), this.markFromJSON = (r) => f.fromJSON(this, r), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
Create a node in this schema. The `type` may be a string or a
|
|
1990
|
+
`NodeType` instance. Attributes will be extended with defaults,
|
|
1991
|
+
`content` may be a `Fragment`, `null`, a `Node`, or an array of
|
|
1992
|
+
nodes.
|
|
1993
|
+
*/
|
|
1994
|
+
node(t, e = null, n, r) {
|
|
1995
|
+
if (typeof t == "string")
|
|
1996
|
+
t = this.nodeType(t);
|
|
1997
|
+
else if (t instanceof z) {
|
|
1998
|
+
if (t.schema != this)
|
|
1999
|
+
throw new RangeError("Node type from different schema used (" + t.name + ")");
|
|
2000
|
+
} else throw new RangeError("Invalid node type: " + t);
|
|
2001
|
+
return t.createChecked(e, n, r);
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
Create a text node in the schema. Empty text nodes are not
|
|
2005
|
+
allowed.
|
|
2006
|
+
*/
|
|
2007
|
+
text(t, e) {
|
|
2008
|
+
let n = this.nodes.text;
|
|
2009
|
+
return new N(n, n.defaultAttrs, t, f.setFrom(e));
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
Create a mark with the given type and attributes.
|
|
2013
|
+
*/
|
|
2014
|
+
mark(t, e) {
|
|
2015
|
+
return typeof t == "string" && (t = this.marks[t]), t.create(e);
|
|
2016
|
+
}
|
|
2017
|
+
/**
|
|
2018
|
+
@internal
|
|
2019
|
+
*/
|
|
2020
|
+
nodeType(t) {
|
|
2021
|
+
let e = this.nodes[t];
|
|
2022
|
+
if (!e)
|
|
2023
|
+
throw new RangeError("Unknown node type: " + t);
|
|
2024
|
+
return e;
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
function U(o, t) {
|
|
2028
|
+
let e = [];
|
|
2029
|
+
for (let n = 0; n < t.length; n++) {
|
|
2030
|
+
let r = t[n], i = o.marks[r], s = i;
|
|
2031
|
+
if (i)
|
|
2032
|
+
e.push(i);
|
|
2033
|
+
else
|
|
2034
|
+
for (let h in o.marks) {
|
|
2035
|
+
let l = o.marks[h];
|
|
2036
|
+
(r == "_" || l.spec.group && l.spec.group.split(" ").indexOf(r) > -1) && e.push(s = l);
|
|
2037
|
+
}
|
|
2038
|
+
if (!s)
|
|
2039
|
+
throw new SyntaxError("Unknown mark type: '" + t[n] + "'");
|
|
2040
|
+
}
|
|
2041
|
+
return e;
|
|
2042
|
+
}
|
|
2043
|
+
function Rt(o) {
|
|
2044
|
+
return o.tag != null;
|
|
2045
|
+
}
|
|
2046
|
+
function It(o) {
|
|
2047
|
+
return o.style != null;
|
|
2048
|
+
}
|
|
2049
|
+
class D {
|
|
2050
|
+
/**
|
|
2051
|
+
Create a parser that targets the given schema, using the given
|
|
2052
|
+
parsing rules.
|
|
2053
|
+
*/
|
|
2054
|
+
constructor(t, e) {
|
|
2055
|
+
this.schema = t, this.rules = e, this.tags = [], this.styles = [];
|
|
2056
|
+
let n = this.matchedStyles = [];
|
|
2057
|
+
e.forEach((r) => {
|
|
2058
|
+
if (Rt(r))
|
|
2059
|
+
this.tags.push(r);
|
|
2060
|
+
else if (It(r)) {
|
|
2061
|
+
let i = /[^=]*/.exec(r.style)[0];
|
|
2062
|
+
n.indexOf(i) < 0 && n.push(i), this.styles.push(r);
|
|
2063
|
+
}
|
|
2064
|
+
}), this.normalizeLists = !this.tags.some((r) => {
|
|
2065
|
+
if (!/^(ul|ol)\b/.test(r.tag) || !r.node)
|
|
2066
|
+
return !1;
|
|
2067
|
+
let i = t.nodes[r.node];
|
|
2068
|
+
return i.contentMatch.matchType(i);
|
|
2069
|
+
});
|
|
2070
|
+
}
|
|
2071
|
+
/**
|
|
2072
|
+
Parse a document from the content of a DOM node.
|
|
2073
|
+
*/
|
|
2074
|
+
parse(t, e = {}) {
|
|
2075
|
+
let n = new V(this, e, !1);
|
|
2076
|
+
return n.addAll(t, f.none, e.from, e.to), n.finish();
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
Parses the content of the given DOM node, like
|
|
2080
|
+
[`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
|
|
2081
|
+
options. But unlike that method, which produces a whole node,
|
|
2082
|
+
this one returns a slice that is open at the sides, meaning that
|
|
2083
|
+
the schema constraints aren't applied to the start of nodes to
|
|
2084
|
+
the left of the input and the end of nodes at the end.
|
|
2085
|
+
*/
|
|
2086
|
+
parseSlice(t, e = {}) {
|
|
2087
|
+
let n = new V(this, e, !0);
|
|
2088
|
+
return n.addAll(t, f.none, e.from, e.to), C.maxOpen(n.finish());
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
@internal
|
|
2092
|
+
*/
|
|
2093
|
+
matchTag(t, e, n) {
|
|
2094
|
+
for (let r = n ? this.tags.indexOf(n) + 1 : 0; r < this.tags.length; r++) {
|
|
2095
|
+
let i = this.tags[r];
|
|
2096
|
+
if (Dt(t, i.tag) && (i.namespace === void 0 || t.namespaceURI == i.namespace) && (!i.context || e.matchesContext(i.context))) {
|
|
2097
|
+
if (i.getAttrs) {
|
|
2098
|
+
let s = i.getAttrs(t);
|
|
2099
|
+
if (s === !1)
|
|
2100
|
+
continue;
|
|
2101
|
+
i.attrs = s || void 0;
|
|
2102
|
+
}
|
|
2103
|
+
return i;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
@internal
|
|
2109
|
+
*/
|
|
2110
|
+
matchStyle(t, e, n, r) {
|
|
2111
|
+
for (let i = r ? this.styles.indexOf(r) + 1 : 0; i < this.styles.length; i++) {
|
|
2112
|
+
let s = this.styles[i], h = s.style;
|
|
2113
|
+
if (!(h.indexOf(t) != 0 || s.context && !n.matchesContext(s.context) || // Test that the style string either precisely matches the prop,
|
|
2114
|
+
// or has an '=' sign after the prop, followed by the given
|
|
2115
|
+
// value.
|
|
2116
|
+
h.length > t.length && (h.charCodeAt(t.length) != 61 || h.slice(t.length + 1) != e))) {
|
|
2117
|
+
if (s.getAttrs) {
|
|
2118
|
+
let l = s.getAttrs(e);
|
|
2119
|
+
if (l === !1)
|
|
2120
|
+
continue;
|
|
2121
|
+
s.attrs = l || void 0;
|
|
2122
|
+
}
|
|
2123
|
+
return s;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
@internal
|
|
2129
|
+
*/
|
|
2130
|
+
static schemaRules(t) {
|
|
2131
|
+
let e = [];
|
|
2132
|
+
function n(r) {
|
|
2133
|
+
let i = r.priority == null ? 50 : r.priority, s = 0;
|
|
2134
|
+
for (; s < e.length; s++) {
|
|
2135
|
+
let h = e[s];
|
|
2136
|
+
if ((h.priority == null ? 50 : h.priority) < i)
|
|
2137
|
+
break;
|
|
2138
|
+
}
|
|
2139
|
+
e.splice(s, 0, r);
|
|
2140
|
+
}
|
|
2141
|
+
for (let r in t.marks) {
|
|
2142
|
+
let i = t.marks[r].spec.parseDOM;
|
|
2143
|
+
i && i.forEach((s) => {
|
|
2144
|
+
n(s = H(s)), s.mark || s.ignore || s.clearMark || (s.mark = r);
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
for (let r in t.nodes) {
|
|
2148
|
+
let i = t.nodes[r].spec.parseDOM;
|
|
2149
|
+
i && i.forEach((s) => {
|
|
2150
|
+
n(s = H(s)), s.node || s.ignore || s.mark || (s.node = r);
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
return e;
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
Construct a DOM parser using the parsing rules listed in a
|
|
2157
|
+
schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by
|
|
2158
|
+
[priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
|
|
2159
|
+
*/
|
|
2160
|
+
static fromSchema(t) {
|
|
2161
|
+
return t.cached.domParser || (t.cached.domParser = new D(t, D.schemaRules(t)));
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
const ut = {
|
|
2165
|
+
address: !0,
|
|
2166
|
+
article: !0,
|
|
2167
|
+
aside: !0,
|
|
2168
|
+
blockquote: !0,
|
|
2169
|
+
canvas: !0,
|
|
2170
|
+
dd: !0,
|
|
2171
|
+
div: !0,
|
|
2172
|
+
dl: !0,
|
|
2173
|
+
fieldset: !0,
|
|
2174
|
+
figcaption: !0,
|
|
2175
|
+
figure: !0,
|
|
2176
|
+
footer: !0,
|
|
2177
|
+
form: !0,
|
|
2178
|
+
h1: !0,
|
|
2179
|
+
h2: !0,
|
|
2180
|
+
h3: !0,
|
|
2181
|
+
h4: !0,
|
|
2182
|
+
h5: !0,
|
|
2183
|
+
h6: !0,
|
|
2184
|
+
header: !0,
|
|
2185
|
+
hgroup: !0,
|
|
2186
|
+
hr: !0,
|
|
2187
|
+
li: !0,
|
|
2188
|
+
noscript: !0,
|
|
2189
|
+
ol: !0,
|
|
2190
|
+
output: !0,
|
|
2191
|
+
p: !0,
|
|
2192
|
+
pre: !0,
|
|
2193
|
+
section: !0,
|
|
2194
|
+
table: !0,
|
|
2195
|
+
tfoot: !0,
|
|
2196
|
+
ul: !0
|
|
2197
|
+
}, Ft = {
|
|
2198
|
+
head: !0,
|
|
2199
|
+
noscript: !0,
|
|
2200
|
+
object: !0,
|
|
2201
|
+
script: !0,
|
|
2202
|
+
style: !0,
|
|
2203
|
+
title: !0
|
|
2204
|
+
}, ft = { ol: !0, ul: !0 }, E = 1, P = 2, S = 4;
|
|
2205
|
+
function G(o, t, e) {
|
|
2206
|
+
return t != null ? (t ? E : 0) | (t === "full" ? P : 0) : o && o.whitespace == "pre" ? E | P : e & ~S;
|
|
2207
|
+
}
|
|
2208
|
+
class v {
|
|
2209
|
+
constructor(t, e, n, r, i, s) {
|
|
2210
|
+
this.type = t, this.attrs = e, this.marks = n, this.solid = r, this.options = s, this.content = [], this.activeMarks = f.none, this.match = i || (s & S ? null : t.contentMatch);
|
|
2211
|
+
}
|
|
2212
|
+
findWrapping(t) {
|
|
2213
|
+
if (!this.match) {
|
|
2214
|
+
if (!this.type)
|
|
2215
|
+
return [];
|
|
2216
|
+
let e = this.type.contentMatch.fillBefore(u.from(t));
|
|
2217
|
+
if (e)
|
|
2218
|
+
this.match = this.type.contentMatch.matchFragment(e);
|
|
2219
|
+
else {
|
|
2220
|
+
let n = this.type.contentMatch, r;
|
|
2221
|
+
return (r = n.findWrapping(t.type)) ? (this.match = n, r) : null;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
return this.match.findWrapping(t.type);
|
|
2225
|
+
}
|
|
2226
|
+
finish(t) {
|
|
2227
|
+
if (!(this.options & E)) {
|
|
2228
|
+
let n = this.content[this.content.length - 1], r;
|
|
2229
|
+
if (n && n.isText && (r = /[ \t\r\n\u000c]+$/.exec(n.text))) {
|
|
2230
|
+
let i = n;
|
|
2231
|
+
n.text.length == r[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - r[0].length));
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
let e = u.from(this.content);
|
|
2235
|
+
return !t && this.match && (e = e.append(this.match.fillBefore(u.empty, !0))), this.type ? this.type.create(this.attrs, e, this.marks) : e;
|
|
2236
|
+
}
|
|
2237
|
+
inlineContext(t) {
|
|
2238
|
+
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !ut.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
class V {
|
|
2242
|
+
constructor(t, e, n) {
|
|
2243
|
+
this.parser = t, this.options = e, this.isOpen = n, this.open = 0, this.localPreserveWS = !1;
|
|
2244
|
+
let r = e.topNode, i, s = G(null, e.preserveWhitespace, 0) | (n ? S : 0);
|
|
2245
|
+
r ? i = new v(r.type, r.attrs, f.none, !0, e.topMatch || r.type.contentMatch, s) : n ? i = new v(null, null, f.none, !0, null, s) : i = new v(t.schema.topNodeType, null, f.none, !0, null, s), this.nodes = [i], this.find = e.findPositions, this.needsBlock = !1;
|
|
2246
|
+
}
|
|
2247
|
+
get top() {
|
|
2248
|
+
return this.nodes[this.open];
|
|
2249
|
+
}
|
|
2250
|
+
// Add a DOM node to the content. Text is inserted as text node,
|
|
2251
|
+
// otherwise, the node is passed to `addElement` or, if it has a
|
|
2252
|
+
// `style` attribute, `addElementWithStyles`.
|
|
2253
|
+
addDOM(t, e) {
|
|
2254
|
+
t.nodeType == 3 ? this.addTextNode(t, e) : t.nodeType == 1 && this.addElement(t, e);
|
|
2255
|
+
}
|
|
2256
|
+
addTextNode(t, e) {
|
|
2257
|
+
let n = t.nodeValue, r = this.top, i = r.options & P ? "full" : this.localPreserveWS || (r.options & E) > 0, { schema: s } = this.parser;
|
|
2258
|
+
if (i === "full" || r.inlineContext(t) || /[^ \t\r\n\u000c]/.test(n)) {
|
|
2259
|
+
if (i)
|
|
2260
|
+
if (i === "full")
|
|
2261
|
+
n = n.replace(/\r\n?/g, `
|
|
2262
|
+
`);
|
|
2263
|
+
else if (s.linebreakReplacement && /[\r\n]/.test(n) && this.top.findWrapping(s.linebreakReplacement.create())) {
|
|
2264
|
+
let h = n.split(/\r?\n|\r/);
|
|
2265
|
+
for (let l = 0; l < h.length; l++)
|
|
2266
|
+
l && this.insertNode(s.linebreakReplacement.create(), e, !0), h[l] && this.insertNode(s.text(h[l]), e, !/\S/.test(h[l]));
|
|
2267
|
+
n = "";
|
|
2268
|
+
} else
|
|
2269
|
+
n = n.replace(/\r?\n|\r/g, " ");
|
|
2270
|
+
else if (n = n.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(n) && this.open == this.nodes.length - 1) {
|
|
2271
|
+
let h = r.content[r.content.length - 1], l = t.previousSibling;
|
|
2272
|
+
(!h || l && l.nodeName == "BR" || h.isText && /[ \t\r\n\u000c]$/.test(h.text)) && (n = n.slice(1));
|
|
2273
|
+
}
|
|
2274
|
+
n && this.insertNode(s.text(n), e, !/\S/.test(n)), this.findInText(t);
|
|
2275
|
+
} else
|
|
2276
|
+
this.findInside(t);
|
|
2277
|
+
}
|
|
2278
|
+
// Try to find a handler for the given tag and use that to parse. If
|
|
2279
|
+
// none is found, the element's content nodes are added directly.
|
|
2280
|
+
addElement(t, e, n) {
|
|
2281
|
+
let r = this.localPreserveWS, i = this.top;
|
|
2282
|
+
(t.tagName == "PRE" || /pre/.test(t.style && t.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
2283
|
+
let s = t.nodeName.toLowerCase(), h;
|
|
2284
|
+
ft.hasOwnProperty(s) && this.parser.normalizeLists && Bt(t);
|
|
2285
|
+
let l = this.options.ruleFromNode && this.options.ruleFromNode(t) || (h = this.parser.matchTag(t, this, n));
|
|
2286
|
+
t: if (l ? l.ignore : Ft.hasOwnProperty(s))
|
|
2287
|
+
this.findInside(t), this.ignoreFallback(t, e);
|
|
2288
|
+
else if (!l || l.skip || l.closeParent) {
|
|
2289
|
+
l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (t = l.skip);
|
|
2290
|
+
let a, c = this.needsBlock;
|
|
2291
|
+
if (ut.hasOwnProperty(s))
|
|
2292
|
+
i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), a = !0, i.type || (this.needsBlock = !0);
|
|
2293
|
+
else if (!t.firstChild) {
|
|
2294
|
+
this.leafFallback(t, e);
|
|
2295
|
+
break t;
|
|
2296
|
+
}
|
|
2297
|
+
let p = l && l.skip ? e : this.readStyles(t, e);
|
|
2298
|
+
p && this.addAll(t, p), a && this.sync(i), this.needsBlock = c;
|
|
2299
|
+
} else {
|
|
2300
|
+
let a = this.readStyles(t, e);
|
|
2301
|
+
a && this.addElementByRule(t, l, a, l.consuming === !1 ? h : void 0);
|
|
2302
|
+
}
|
|
2303
|
+
this.localPreserveWS = r;
|
|
2304
|
+
}
|
|
2305
|
+
// Called for leaf DOM nodes that would otherwise be ignored
|
|
2306
|
+
leafFallback(t, e) {
|
|
2307
|
+
t.nodeName == "BR" && this.top.type && this.top.type.inlineContent && this.addTextNode(t.ownerDocument.createTextNode(`
|
|
2308
|
+
`), e);
|
|
2309
|
+
}
|
|
2310
|
+
// Called for ignored nodes
|
|
2311
|
+
ignoreFallback(t, e) {
|
|
2312
|
+
t.nodeName == "BR" && (!this.top.type || !this.top.type.inlineContent) && this.findPlace(this.parser.schema.text("-"), e, !0);
|
|
2313
|
+
}
|
|
2314
|
+
// Run any style parser associated with the node's styles. Either
|
|
2315
|
+
// return an updated array of marks, or null to indicate some of the
|
|
2316
|
+
// styles had a rule with `ignore` set.
|
|
2317
|
+
readStyles(t, e) {
|
|
2318
|
+
let n = t.style;
|
|
2319
|
+
if (n && n.length)
|
|
2320
|
+
for (let r = 0; r < this.parser.matchedStyles.length; r++) {
|
|
2321
|
+
let i = this.parser.matchedStyles[r], s = n.getPropertyValue(i);
|
|
2322
|
+
if (s)
|
|
2323
|
+
for (let h = void 0; ; ) {
|
|
2324
|
+
let l = this.parser.matchStyle(i, s, this, h);
|
|
2325
|
+
if (!l)
|
|
2326
|
+
break;
|
|
2327
|
+
if (l.ignore)
|
|
2328
|
+
return null;
|
|
2329
|
+
if (l.clearMark ? e = e.filter((a) => !l.clearMark(a)) : e = e.concat(this.parser.schema.marks[l.mark].create(l.attrs)), l.consuming === !1)
|
|
2330
|
+
h = l;
|
|
2331
|
+
else
|
|
2332
|
+
break;
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
return e;
|
|
2336
|
+
}
|
|
2337
|
+
// Look up a handler for the given node. If none are found, return
|
|
2338
|
+
// false. Otherwise, apply it, use its return value to drive the way
|
|
2339
|
+
// the node's content is wrapped, and return true.
|
|
2340
|
+
addElementByRule(t, e, n, r) {
|
|
2341
|
+
let i, s;
|
|
2342
|
+
if (e.node)
|
|
2343
|
+
if (s = this.parser.schema.nodes[e.node], s.isLeaf)
|
|
2344
|
+
this.insertNode(s.create(e.attrs), n, t.nodeName == "BR") || this.leafFallback(t, n);
|
|
2345
|
+
else {
|
|
2346
|
+
let l = this.enter(s, e.attrs || null, n, e.preserveWhitespace);
|
|
2347
|
+
l && (i = !0, n = l);
|
|
2348
|
+
}
|
|
2349
|
+
else {
|
|
2350
|
+
let l = this.parser.schema.marks[e.mark];
|
|
2351
|
+
n = n.concat(l.create(e.attrs));
|
|
2352
|
+
}
|
|
2353
|
+
let h = this.top;
|
|
2354
|
+
if (s && s.isLeaf)
|
|
2355
|
+
this.findInside(t);
|
|
2356
|
+
else if (r)
|
|
2357
|
+
this.addElement(t, n, r);
|
|
2358
|
+
else if (e.getContent)
|
|
2359
|
+
this.findInside(t), e.getContent(t, this.parser.schema).forEach((l) => this.insertNode(l, n, !1));
|
|
2360
|
+
else {
|
|
2361
|
+
let l = t;
|
|
2362
|
+
typeof e.contentElement == "string" ? l = t.querySelector(e.contentElement) : typeof e.contentElement == "function" ? l = e.contentElement(t) : e.contentElement && (l = e.contentElement), this.findAround(t, l, !0), this.addAll(l, n), this.findAround(t, l, !1);
|
|
2363
|
+
}
|
|
2364
|
+
i && this.sync(h) && this.open--;
|
|
2365
|
+
}
|
|
2366
|
+
// Add all child nodes between `startIndex` and `endIndex` (or the
|
|
2367
|
+
// whole node, if not given). If `sync` is passed, use it to
|
|
2368
|
+
// synchronize after every block element.
|
|
2369
|
+
addAll(t, e, n, r) {
|
|
2370
|
+
let i = n || 0;
|
|
2371
|
+
for (let s = n ? t.childNodes[n] : t.firstChild, h = r == null ? null : t.childNodes[r]; s != h; s = s.nextSibling, ++i)
|
|
2372
|
+
this.findAtPoint(t, i), this.addDOM(s, e);
|
|
2373
|
+
this.findAtPoint(t, i);
|
|
2374
|
+
}
|
|
2375
|
+
// Try to find a way to fit the given node type into the current
|
|
2376
|
+
// context. May add intermediate wrappers and/or leave non-solid
|
|
2377
|
+
// nodes that we're in.
|
|
2378
|
+
findPlace(t, e, n) {
|
|
2379
|
+
let r, i;
|
|
2380
|
+
for (let s = this.open, h = 0; s >= 0; s--) {
|
|
2381
|
+
let l = this.nodes[s], a = l.findWrapping(t);
|
|
2382
|
+
if (a && (!r || r.length > a.length + h) && (r = a, i = l, !a.length))
|
|
2383
|
+
break;
|
|
2384
|
+
if (l.solid) {
|
|
2385
|
+
if (n)
|
|
2386
|
+
break;
|
|
2387
|
+
h += 2;
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
if (!r)
|
|
2391
|
+
return null;
|
|
2392
|
+
this.sync(i);
|
|
2393
|
+
for (let s = 0; s < r.length; s++)
|
|
2394
|
+
e = this.enterInner(r[s], null, e, !1);
|
|
2395
|
+
return e;
|
|
2396
|
+
}
|
|
2397
|
+
// Try to insert the given node, adjusting the context when needed.
|
|
2398
|
+
insertNode(t, e, n) {
|
|
2399
|
+
if (t.isInline && this.needsBlock && !this.top.type) {
|
|
2400
|
+
let i = this.textblockFromContext();
|
|
2401
|
+
i && (e = this.enterInner(i, null, e));
|
|
2402
|
+
}
|
|
2403
|
+
let r = this.findPlace(t, e, n);
|
|
2404
|
+
if (r) {
|
|
2405
|
+
this.closeExtra();
|
|
2406
|
+
let i = this.top;
|
|
2407
|
+
i.match && (i.match = i.match.matchType(t.type));
|
|
2408
|
+
let s = f.none;
|
|
2409
|
+
for (let h of r.concat(t.marks))
|
|
2410
|
+
(i.type ? i.type.allowsMarkType(h.type) : K(h.type, t.type)) && (s = h.addToSet(s));
|
|
2411
|
+
return i.content.push(t.mark(s)), !0;
|
|
2412
|
+
}
|
|
2413
|
+
return !1;
|
|
2414
|
+
}
|
|
2415
|
+
// Try to start a node of the given type, adjusting the context when
|
|
2416
|
+
// necessary.
|
|
2417
|
+
enter(t, e, n, r) {
|
|
2418
|
+
let i = this.findPlace(t.create(e), n, !1);
|
|
2419
|
+
return i && (i = this.enterInner(t, e, n, !0, r)), i;
|
|
2420
|
+
}
|
|
2421
|
+
// Open a node of the given type
|
|
2422
|
+
enterInner(t, e, n, r = !1, i) {
|
|
2423
|
+
this.closeExtra();
|
|
2424
|
+
let s = this.top;
|
|
2425
|
+
s.match = s.match && s.match.matchType(t);
|
|
2426
|
+
let h = G(t, i, s.options);
|
|
2427
|
+
s.options & S && s.content.length == 0 && (h |= S);
|
|
2428
|
+
let l = f.none;
|
|
2429
|
+
return n = n.filter((a) => (s.type ? s.type.allowsMarkType(a.type) : K(a.type, t)) ? (l = a.addToSet(l), !1) : !0), this.nodes.push(new v(t, e, l, r, null, h)), this.open++, n;
|
|
2430
|
+
}
|
|
2431
|
+
// Make sure all nodes above this.open are finished and added to
|
|
2432
|
+
// their parents
|
|
2433
|
+
closeExtra(t = !1) {
|
|
2434
|
+
let e = this.nodes.length - 1;
|
|
2435
|
+
if (e > this.open) {
|
|
2436
|
+
for (; e > this.open; e--)
|
|
2437
|
+
this.nodes[e - 1].content.push(this.nodes[e].finish(t));
|
|
2438
|
+
this.nodes.length = this.open + 1;
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
finish() {
|
|
2442
|
+
return this.open = 0, this.closeExtra(this.isOpen), this.nodes[0].finish(!!(this.isOpen || this.options.topOpen));
|
|
2443
|
+
}
|
|
2444
|
+
sync(t) {
|
|
2445
|
+
for (let e = this.open; e >= 0; e--) {
|
|
2446
|
+
if (this.nodes[e] == t)
|
|
2447
|
+
return this.open = e, !0;
|
|
2448
|
+
this.localPreserveWS && (this.nodes[e].options |= E);
|
|
2449
|
+
}
|
|
2450
|
+
return !1;
|
|
2451
|
+
}
|
|
2452
|
+
get currentPos() {
|
|
2453
|
+
this.closeExtra();
|
|
2454
|
+
let t = 0;
|
|
2455
|
+
for (let e = this.open; e >= 0; e--) {
|
|
2456
|
+
let n = this.nodes[e].content;
|
|
2457
|
+
for (let r = n.length - 1; r >= 0; r--)
|
|
2458
|
+
t += n[r].nodeSize;
|
|
2459
|
+
e && t++;
|
|
2460
|
+
}
|
|
2461
|
+
return t;
|
|
2462
|
+
}
|
|
2463
|
+
findAtPoint(t, e) {
|
|
2464
|
+
if (this.find)
|
|
2465
|
+
for (let n = 0; n < this.find.length; n++)
|
|
2466
|
+
this.find[n].node == t && this.find[n].offset == e && (this.find[n].pos = this.currentPos);
|
|
2467
|
+
}
|
|
2468
|
+
findInside(t) {
|
|
2469
|
+
if (this.find)
|
|
2470
|
+
for (let e = 0; e < this.find.length; e++)
|
|
2471
|
+
this.find[e].pos == null && t.nodeType == 1 && t.contains(this.find[e].node) && (this.find[e].pos = this.currentPos);
|
|
2472
|
+
}
|
|
2473
|
+
findAround(t, e, n) {
|
|
2474
|
+
if (t != e && this.find)
|
|
2475
|
+
for (let r = 0; r < this.find.length; r++)
|
|
2476
|
+
this.find[r].pos == null && t.nodeType == 1 && t.contains(this.find[r].node) && e.compareDocumentPosition(this.find[r].node) & (n ? 2 : 4) && (this.find[r].pos = this.currentPos);
|
|
2477
|
+
}
|
|
2478
|
+
findInText(t) {
|
|
2479
|
+
if (this.find)
|
|
2480
|
+
for (let e = 0; e < this.find.length; e++)
|
|
2481
|
+
this.find[e].node == t && (this.find[e].pos = this.currentPos - (t.nodeValue.length - this.find[e].offset));
|
|
2482
|
+
}
|
|
2483
|
+
// Determines whether the given context string matches this context.
|
|
2484
|
+
matchesContext(t) {
|
|
2485
|
+
if (t.indexOf("|") > -1)
|
|
2486
|
+
return t.split(/\s*\|\s*/).some(this.matchesContext, this);
|
|
2487
|
+
let e = t.split("/"), n = this.options.context, r = !this.isOpen && (!n || n.parent.type == this.nodes[0].type), i = -(n ? n.depth + 1 : 0) + (r ? 0 : 1), s = (h, l) => {
|
|
2488
|
+
for (; h >= 0; h--) {
|
|
2489
|
+
let a = e[h];
|
|
2490
|
+
if (a == "") {
|
|
2491
|
+
if (h == e.length - 1 || h == 0)
|
|
2492
|
+
continue;
|
|
2493
|
+
for (; l >= i; l--)
|
|
2494
|
+
if (s(h - 1, l))
|
|
2495
|
+
return !0;
|
|
2496
|
+
return !1;
|
|
2497
|
+
} else {
|
|
2498
|
+
let c = l > 0 || l == 0 && r ? this.nodes[l].type : n && l >= i ? n.node(l - i).type : null;
|
|
2499
|
+
if (!c || c.name != a && !c.isInGroup(a))
|
|
2500
|
+
return !1;
|
|
2501
|
+
l--;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
return !0;
|
|
2505
|
+
};
|
|
2506
|
+
return s(e.length - 1, this.open);
|
|
2507
|
+
}
|
|
2508
|
+
textblockFromContext() {
|
|
2509
|
+
let t = this.options.context;
|
|
2510
|
+
if (t)
|
|
2511
|
+
for (let e = t.depth; e >= 0; e--) {
|
|
2512
|
+
let n = t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;
|
|
2513
|
+
if (n && n.isTextblock && n.defaultAttrs)
|
|
2514
|
+
return n;
|
|
2515
|
+
}
|
|
2516
|
+
for (let e in this.parser.schema.nodes) {
|
|
2517
|
+
let n = this.parser.schema.nodes[e];
|
|
2518
|
+
if (n.isTextblock && n.defaultAttrs)
|
|
2519
|
+
return n;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
function Bt(o) {
|
|
2524
|
+
for (let t = o.firstChild, e = null; t; t = t.nextSibling) {
|
|
2525
|
+
let n = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
|
|
2526
|
+
n && ft.hasOwnProperty(n) && e ? (e.appendChild(t), t = e) : n == "li" ? e = t : n && (e = null);
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
function Dt(o, t) {
|
|
2530
|
+
return (o.matches || o.msMatchesSelector || o.webkitMatchesSelector || o.mozMatchesSelector).call(o, t);
|
|
2531
|
+
}
|
|
2532
|
+
function H(o) {
|
|
2533
|
+
let t = {};
|
|
2534
|
+
for (let e in o)
|
|
2535
|
+
t[e] = o[e];
|
|
2536
|
+
return t;
|
|
2537
|
+
}
|
|
2538
|
+
function K(o, t) {
|
|
2539
|
+
let e = t.schema.nodes;
|
|
2540
|
+
for (let n in e) {
|
|
2541
|
+
let r = e[n];
|
|
2542
|
+
if (!r.allowsMarkType(o))
|
|
2543
|
+
continue;
|
|
2544
|
+
let i = [], s = (h) => {
|
|
2545
|
+
i.push(h);
|
|
2546
|
+
for (let l = 0; l < h.edgeCount; l++) {
|
|
2547
|
+
let { type: a, next: c } = h.edge(l);
|
|
2548
|
+
if (a == t || i.indexOf(c) < 0 && s(c))
|
|
2549
|
+
return !0;
|
|
2550
|
+
}
|
|
2551
|
+
};
|
|
2552
|
+
if (s(r.contentMatch))
|
|
2553
|
+
return !0;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
class pt {
|
|
2557
|
+
/**
|
|
2558
|
+
Create a serializer. `nodes` should map node names to functions
|
|
2559
|
+
that take a node and return a description of the corresponding
|
|
2560
|
+
DOM. `marks` does the same for mark names, but also gets an
|
|
2561
|
+
argument that tells it whether the mark's content is block or
|
|
2562
|
+
inline content (for typical use, it'll always be inline). A mark
|
|
2563
|
+
serializer may be `null` to indicate that marks of that type
|
|
2564
|
+
should not be serialized.
|
|
2565
|
+
*/
|
|
2566
|
+
constructor(t, e) {
|
|
2567
|
+
this.nodes = t, this.marks = e;
|
|
2568
|
+
}
|
|
2569
|
+
/**
|
|
2570
|
+
Serialize the content of this fragment to a DOM fragment. When
|
|
2571
|
+
not in the browser, the `document` option, containing a DOM
|
|
2572
|
+
document, should be passed so that the serializer can create
|
|
2573
|
+
nodes.
|
|
2574
|
+
*/
|
|
2575
|
+
serializeFragment(t, e = {}, n) {
|
|
2576
|
+
n || (n = I(e).createDocumentFragment());
|
|
2577
|
+
let r = n, i = [];
|
|
2578
|
+
return t.forEach((s) => {
|
|
2579
|
+
if (i.length || s.marks.length) {
|
|
2580
|
+
let h = 0, l = 0;
|
|
2581
|
+
for (; h < i.length && l < s.marks.length; ) {
|
|
2582
|
+
let a = s.marks[l];
|
|
2583
|
+
if (!this.marks[a.type.name]) {
|
|
2584
|
+
l++;
|
|
2585
|
+
continue;
|
|
2586
|
+
}
|
|
2587
|
+
if (!a.eq(i[h][0]) || a.type.spec.spanning === !1)
|
|
2588
|
+
break;
|
|
2589
|
+
h++, l++;
|
|
2590
|
+
}
|
|
2591
|
+
for (; h < i.length; )
|
|
2592
|
+
r = i.pop()[1];
|
|
2593
|
+
for (; l < s.marks.length; ) {
|
|
2594
|
+
let a = s.marks[l++], c = this.serializeMark(a, s.isInline, e);
|
|
2595
|
+
c && (i.push([a, r]), r.appendChild(c.dom), r = c.contentDOM || c.dom);
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
r.appendChild(this.serializeNodeInner(s, e));
|
|
2599
|
+
}), n;
|
|
2600
|
+
}
|
|
2601
|
+
/**
|
|
2602
|
+
@internal
|
|
2603
|
+
*/
|
|
2604
|
+
serializeNodeInner(t, e) {
|
|
2605
|
+
let { dom: n, contentDOM: r } = T(I(e), this.nodes[t.type.name](t), null, t.attrs);
|
|
2606
|
+
if (r) {
|
|
2607
|
+
if (t.isLeaf)
|
|
2608
|
+
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
2609
|
+
this.serializeFragment(t.content, e, r);
|
|
2610
|
+
}
|
|
2611
|
+
return n;
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
Serialize this node to a DOM node. This can be useful when you
|
|
2615
|
+
need to serialize a part of a document, as opposed to the whole
|
|
2616
|
+
document. To serialize a whole document, use
|
|
2617
|
+
[`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
|
|
2618
|
+
its [content](https://prosemirror.net/docs/ref/#model.Node.content).
|
|
2619
|
+
*/
|
|
2620
|
+
serializeNode(t, e = {}) {
|
|
2621
|
+
let n = this.serializeNodeInner(t, e);
|
|
2622
|
+
for (let r = t.marks.length - 1; r >= 0; r--) {
|
|
2623
|
+
let i = this.serializeMark(t.marks[r], t.isInline, e);
|
|
2624
|
+
i && ((i.contentDOM || i.dom).appendChild(n), n = i.dom);
|
|
2625
|
+
}
|
|
2626
|
+
return n;
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
@internal
|
|
2630
|
+
*/
|
|
2631
|
+
serializeMark(t, e, n = {}) {
|
|
2632
|
+
let r = this.marks[t.type.name];
|
|
2633
|
+
return r && T(I(n), r(t, e), null, t.attrs);
|
|
2634
|
+
}
|
|
2635
|
+
static renderSpec(t, e, n = null, r) {
|
|
2636
|
+
return T(t, e, n, r);
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
2640
|
+
properties in a schema's node and mark specs.
|
|
2641
|
+
*/
|
|
2642
|
+
static fromSchema(t) {
|
|
2643
|
+
return t.cached.domSerializer || (t.cached.domSerializer = new pt(this.nodesFromSchema(t), this.marksFromSchema(t)));
|
|
2644
|
+
}
|
|
2645
|
+
/**
|
|
2646
|
+
Gather the serializers in a schema's node specs into an object.
|
|
2647
|
+
This can be useful as a base to build a custom serializer from.
|
|
2648
|
+
*/
|
|
2649
|
+
static nodesFromSchema(t) {
|
|
2650
|
+
let e = Q(t.nodes);
|
|
2651
|
+
return e.text || (e.text = (n) => n.text), e;
|
|
2652
|
+
}
|
|
2653
|
+
/**
|
|
2654
|
+
Gather the serializers in a schema's mark specs into an object.
|
|
2655
|
+
*/
|
|
2656
|
+
static marksFromSchema(t) {
|
|
2657
|
+
return Q(t.marks);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
function Q(o) {
|
|
2661
|
+
let t = {};
|
|
2662
|
+
for (let e in o) {
|
|
2663
|
+
let n = o[e].spec.toDOM;
|
|
2664
|
+
n && (t[e] = n);
|
|
2665
|
+
}
|
|
2666
|
+
return t;
|
|
2667
|
+
}
|
|
2668
|
+
function I(o) {
|
|
2669
|
+
return o.document || window.document;
|
|
2670
|
+
}
|
|
2671
|
+
const X = /* @__PURE__ */ new WeakMap();
|
|
2672
|
+
function Pt(o) {
|
|
2673
|
+
let t = X.get(o);
|
|
2674
|
+
return t === void 0 && X.set(o, t = Jt(o)), t;
|
|
2675
|
+
}
|
|
2676
|
+
function Jt(o) {
|
|
2677
|
+
let t = null;
|
|
2678
|
+
function e(n) {
|
|
2679
|
+
if (n && typeof n == "object")
|
|
2680
|
+
if (Array.isArray(n))
|
|
2681
|
+
if (typeof n[0] == "string")
|
|
2682
|
+
t || (t = []), t.push(n);
|
|
2683
|
+
else
|
|
2684
|
+
for (let r = 0; r < n.length; r++)
|
|
2685
|
+
e(n[r]);
|
|
2686
|
+
else
|
|
2687
|
+
for (let r in n)
|
|
2688
|
+
e(n[r]);
|
|
2689
|
+
}
|
|
2690
|
+
return e(o), t;
|
|
2691
|
+
}
|
|
2692
|
+
function T(o, t, e, n) {
|
|
2693
|
+
if (typeof t == "string")
|
|
2694
|
+
return { dom: o.createTextNode(t) };
|
|
2695
|
+
if (t.nodeType != null)
|
|
2696
|
+
return { dom: t };
|
|
2697
|
+
if (t.dom && t.dom.nodeType != null)
|
|
2698
|
+
return t;
|
|
2699
|
+
let r = t[0], i;
|
|
2700
|
+
if (typeof r != "string")
|
|
2701
|
+
throw new RangeError("Invalid array passed to renderSpec");
|
|
2702
|
+
if (n && (i = Pt(n)) && i.indexOf(t) > -1)
|
|
2703
|
+
throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
|
|
2704
|
+
let s = r.indexOf(" ");
|
|
2705
|
+
s > 0 && (e = r.slice(0, s), r = r.slice(s + 1));
|
|
2706
|
+
let h, l = e ? o.createElementNS(e, r) : o.createElement(r), a = t[1], c = 1;
|
|
2707
|
+
if (a && typeof a == "object" && a.nodeType == null && !Array.isArray(a)) {
|
|
2708
|
+
c = 2;
|
|
2709
|
+
for (let p in a)
|
|
2710
|
+
if (a[p] != null) {
|
|
2711
|
+
let d = p.indexOf(" ");
|
|
2712
|
+
d > 0 ? l.setAttributeNS(p.slice(0, d), p.slice(d + 1), a[p]) : p == "style" && l.style ? l.style.cssText = a[p] : l.setAttribute(p, a[p]);
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
for (let p = c; p < t.length; p++) {
|
|
2716
|
+
let d = t[p];
|
|
2717
|
+
if (d === 0) {
|
|
2718
|
+
if (p < t.length - 1 || p > c)
|
|
2719
|
+
throw new RangeError("Content hole must be the only child of its parent node");
|
|
2720
|
+
return { dom: l, contentDOM: l };
|
|
2721
|
+
} else {
|
|
2722
|
+
let { dom: dt, contentDOM: $ } = T(o, d, e, n);
|
|
2723
|
+
if (l.appendChild(dt), $) {
|
|
2724
|
+
if (h)
|
|
2725
|
+
throw new RangeError("Multiple content holes");
|
|
2726
|
+
h = $;
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
return { dom: l, contentDOM: h };
|
|
2731
|
+
}
|
|
2732
|
+
export {
|
|
2733
|
+
x as ContentMatch,
|
|
2734
|
+
D as DOMParser,
|
|
2735
|
+
pt as DOMSerializer,
|
|
2736
|
+
u as Fragment,
|
|
2737
|
+
f as Mark,
|
|
2738
|
+
J as MarkType,
|
|
2739
|
+
m as Node,
|
|
2740
|
+
kt as NodeRange,
|
|
2741
|
+
z as NodeType,
|
|
2742
|
+
F as ReplaceError,
|
|
2743
|
+
b as ResolvedPos,
|
|
2744
|
+
qt as Schema,
|
|
2745
|
+
C as Slice
|
|
2746
|
+
};
|