@titaui/pc 1.16.37 → 1.16.39
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/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +6 -4
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
- package/lib/components/create-okr-modal/index.js +4 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +16 -12
- package/lib/components/create-okr-modal/utils/helper.js +6 -2
- package/lib/components/date-picker/BodyItem.js +6 -6
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +6 -6
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +5 -5
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/dialog-qq-docs/index.js +11 -9
- package/lib/components/dialog-qq-docs/utils.js +6 -2
- package/lib/components/dialog-select/index.js +1 -1
- package/lib/components/dialog-upload/index.js +4 -2
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +5 -3
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +5 -5
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +5 -5
- package/lib/components/ereport-list/index.js +5 -5
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/filter-buttons/department.js +1 -1
- package/lib/components/filter-buttons/index.js +1 -1
- package/lib/components/filter-buttons/name.js +1 -1
- package/lib/components/firework/index.js +6 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +10 -6
- package/lib/components/guide-order/index.js +1 -1
- package/lib/components/guide-tip/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/magnet/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +5 -5
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
- package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +8 -0
- package/lib/components/menus/export-modules/survey-menu/menus.js +17 -1
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +4 -2
- package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
- package/lib/components/okr-detail/components/header/o-classify.js +4 -2
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +4 -2
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +4 -2
- package/lib/components/okr-detail/detail-footer/index.js +4 -2
- package/lib/components/okr-detail/detail-header/index.js +12 -10
- package/lib/components/okr-detail/okr-list/index.js +4 -2
- package/lib/components/okr-detail/request-apis.js +6 -2
- package/lib/components/okr-excel/renders.js +8 -4
- package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +4 -2
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +4 -2
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
- package/lib/components/okr-flow/child-node/work-node.js +4 -2
- package/lib/components/okr-flow/export-modal/index.js +6 -43
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
- package/lib/components/okr-flow/request-apis.js +6 -2
- package/lib/components/okr-flow/root-node/index.js +4 -2
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress-modal/index.js +4 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -4
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +5 -5
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
- package/lib/components/okr-share/common-painter/openDataPainter.js +6 -2
- package/lib/components/okr-share/common-painter/utils.js +8 -4
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
- package/lib/components/okr-share/pink-card/drawKrs.js +6 -2
- package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
- package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
- package/lib/components/okr-share/pink-card/index.js +6 -2
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +24 -20
- package/lib/components/open-data-painter/index.js +6 -2
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +6 -2
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/picker/range-picker/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/popup-select/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +5 -5
- package/lib/components/rate/index.js +1 -1
- package/lib/components/rich-editor/models/schema.js +8 -8
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +10 -10
- package/lib/components/rich-editor/plugins/block/heading/index.js +10 -10
- package/lib/components/rich-editor/plugins/block/lists/index.js +16 -16
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +7 -7
- package/lib/components/rich-editor/plugins/core/index.js +6 -6
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +7 -7
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +6 -6
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +13 -13
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +10 -10
- package/lib/components/rich-editor/plugins/inline/em/index.js +7 -7
- package/lib/components/rich-editor/plugins/inline/link/index.js +10 -10
- package/lib/components/rich-editor/plugins/inline/strong/index.js +10 -10
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +10 -10
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +5 -5
- package/lib/components/rich-editor/ui/Popup/index.js +5 -5
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +6 -6
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
- package/lib/components/survey-model/request-api.js +6 -2
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/table-excel-v2/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tag/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +7 -5
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +7 -5
- package/lib/components/task-tree/task-item-node/e-project.js +4 -2
- package/lib/components/task-tree/task-item-node/e-task.js +4 -2
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +5 -5
- package/lib/components/toast/index.js +12 -8
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +6 -4
- package/lib/components/upload/index2.js +4 -2
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -2
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/version-change-modal/request-api.js +6 -2
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +4 -12
- package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
- package/lib/components/weekly-report/common-painter/drawName.js +6 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
- package/lib/components/weekly-report/index.js +6 -4
- package/lib/components-v1/animate/AnimateChild.js +5 -5
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +5 -5
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +5 -5
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +5 -5
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +6 -6
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +5 -5
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +5 -5
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +6 -2
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +18 -14
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +5 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +6 -2
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/helpers.js +6 -2
- package/lib/utils/open-data.js +6 -4
- package/lib/utils/request-v1.js +6 -2
- package/lib/utils/request.js +6 -2
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
33
33
|
|
|
34
34
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
35
|
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
37
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
43
43
|
|
|
44
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
45
|
|
|
46
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
47
|
|
|
48
48
|
var PLUGIN_NAME = 'color';
|
|
49
49
|
var FONT_COLOR_SCHEMA_NAME = 'fontColor';
|
|
@@ -71,7 +71,7 @@ var FontColorSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
71
71
|
var _super = _createSuper(FontColorSchema);
|
|
72
72
|
|
|
73
73
|
function FontColorSchema() {
|
|
74
|
-
var
|
|
74
|
+
var _this;
|
|
75
75
|
|
|
76
76
|
_classCallCheck(this, FontColorSchema);
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ var FontColorSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
79
79
|
args[_key] = arguments[_key];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
return _possibleConstructorReturn(_this, (
|
|
82
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = FONT_COLOR_SCHEMA_NAME, _this.attrs = {
|
|
83
83
|
color: {
|
|
84
84
|
"default": ''
|
|
85
85
|
}
|
|
@@ -91,7 +91,7 @@ var FontColorSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
91
91
|
getAttrs: function getAttrs(dom) {
|
|
92
92
|
return getColorAttrs(dom.getAttribute('color'));
|
|
93
93
|
}
|
|
94
|
-
}],
|
|
94
|
+
}], _assertThisInitialized(_this)));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
_createClass(FontColorSchema, [{
|
|
@@ -129,7 +129,7 @@ var BackgroundColorSchema = /*#__PURE__*/function (_InlineSchema2) {
|
|
|
129
129
|
var _super2 = _createSuper(BackgroundColorSchema);
|
|
130
130
|
|
|
131
131
|
function BackgroundColorSchema() {
|
|
132
|
-
var
|
|
132
|
+
var _this2;
|
|
133
133
|
|
|
134
134
|
_classCallCheck(this, BackgroundColorSchema);
|
|
135
135
|
|
|
@@ -137,7 +137,7 @@ var BackgroundColorSchema = /*#__PURE__*/function (_InlineSchema2) {
|
|
|
137
137
|
args[_key2] = arguments[_key2];
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
return _possibleConstructorReturn(_this2, (
|
|
140
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = BACKGROUND_COLOR_SCHEMA_NAME, _this2.attrs = {
|
|
141
141
|
color: {
|
|
142
142
|
"default": ''
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@ var BackgroundColorSchema = /*#__PURE__*/function (_InlineSchema2) {
|
|
|
147
147
|
}, {
|
|
148
148
|
style: 'background-color',
|
|
149
149
|
getAttrs: getBgAttrs
|
|
150
|
-
}],
|
|
150
|
+
}], _assertThisInitialized(_this2)));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
_createClass(BackgroundColorSchema, [{
|
|
@@ -170,7 +170,7 @@ var ColorController = /*#__PURE__*/function (_BaseController) {
|
|
|
170
170
|
var _super3 = _createSuper(ColorController);
|
|
171
171
|
|
|
172
172
|
function ColorController() {
|
|
173
|
-
var
|
|
173
|
+
var _this3;
|
|
174
174
|
|
|
175
175
|
_classCallCheck(this, ColorController);
|
|
176
176
|
|
|
@@ -178,7 +178,7 @@ var ColorController = /*#__PURE__*/function (_BaseController) {
|
|
|
178
178
|
args[_key3] = arguments[_key3];
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
return _possibleConstructorReturn(_this3, (
|
|
181
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.toolbar = {
|
|
182
182
|
title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Textcolor'),
|
|
183
183
|
icon: 'tu-icon-text-color',
|
|
184
184
|
handler: function handler(editor) {
|
|
@@ -186,7 +186,7 @@ var ColorController = /*#__PURE__*/function (_BaseController) {
|
|
|
186
186
|
editor.view.focus();
|
|
187
187
|
},
|
|
188
188
|
renderMenu: _selector["default"]
|
|
189
|
-
},
|
|
189
|
+
}, _assertThisInitialized(_this3)));
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
return _createClass(ColorController);
|
|
@@ -200,7 +200,7 @@ var ColorPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
200
200
|
var _super4 = _createSuper(ColorPlugin);
|
|
201
201
|
|
|
202
202
|
function ColorPlugin() {
|
|
203
|
-
var
|
|
203
|
+
var _this4;
|
|
204
204
|
|
|
205
205
|
_classCallCheck(this, ColorPlugin);
|
|
206
206
|
|
|
@@ -208,7 +208,7 @@ var ColorPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
208
208
|
args[_key4] = arguments[_key4];
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
return _possibleConstructorReturn(_this4, (
|
|
211
|
+
return _possibleConstructorReturn(_this4, (_this4 = _super4.call.apply(_super4, [this].concat(args)), _this4.name = PLUGIN_NAME, _this4.schema = [FontColorSchema, BackgroundColorSchema], _this4.controller = ColorController, _assertThisInitialized(_this4)));
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
return _createClass(ColorPlugin);
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
30
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
var PLUGIN_NAME = 'deleteLine';
|
|
45
45
|
|
|
@@ -57,7 +57,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
57
57
|
var _super = _createSuper(DeleteLineSchema);
|
|
58
58
|
|
|
59
59
|
function DeleteLineSchema() {
|
|
60
|
-
var
|
|
60
|
+
var _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, DeleteLineSchema);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (
|
|
68
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
69
69
|
tag: 's',
|
|
70
70
|
priority: 25
|
|
71
71
|
}, {
|
|
@@ -77,7 +77,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
77
77
|
}, {
|
|
78
78
|
style: 'text-decoration-line',
|
|
79
79
|
getAttrs: getAttrs
|
|
80
|
-
}],
|
|
80
|
+
}], _assertThisInitialized(_this)));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
_createClass(DeleteLineSchema, [{
|
|
@@ -100,7 +100,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
100
100
|
var _super2 = _createSuper(DeleteLineController);
|
|
101
101
|
|
|
102
102
|
function DeleteLineController() {
|
|
103
|
-
var
|
|
103
|
+
var _this2;
|
|
104
104
|
|
|
105
105
|
_classCallCheck(this, DeleteLineController);
|
|
106
106
|
|
|
@@ -108,7 +108,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
108
108
|
args[_key2] = arguments[_key2];
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
return _possibleConstructorReturn(_this2, (
|
|
111
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
112
112
|
title: (0, _getLocale.getLocale)('Rtx_Striketjrough'),
|
|
113
113
|
icon: 'tu-icon-text-delline',
|
|
114
114
|
handler: function handler(editor) {
|
|
@@ -118,7 +118,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
118
118
|
active: function active(state) {
|
|
119
119
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, _assertThisInitialized(_this2)));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return _createClass(DeleteLineController);
|
|
@@ -132,7 +132,7 @@ var DeleteLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
132
132
|
var _super3 = _createSuper(DeleteLinePlugin);
|
|
133
133
|
|
|
134
134
|
function DeleteLinePlugin() {
|
|
135
|
-
var
|
|
135
|
+
var _this3;
|
|
136
136
|
|
|
137
137
|
_classCallCheck(this, DeleteLinePlugin);
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ var DeleteLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
140
140
|
args[_key3] = arguments[_key3];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
return _possibleConstructorReturn(_this3, (
|
|
143
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = DeleteLineSchema, _this3.controller = DeleteLineController, _assertThisInitialized(_this3)));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
return _createClass(DeleteLinePlugin);
|
|
@@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
21
21
|
|
|
22
22
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
23
|
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
31
31
|
|
|
32
32
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33
33
|
|
|
34
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
35
|
|
|
36
36
|
var PLUGIN_NAME = 'em';
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ var EmSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
41
41
|
var _super = _createSuper(EmSchema);
|
|
42
42
|
|
|
43
43
|
function EmSchema() {
|
|
44
|
-
var
|
|
44
|
+
var _this;
|
|
45
45
|
|
|
46
46
|
_classCallCheck(this, EmSchema);
|
|
47
47
|
|
|
@@ -49,13 +49,13 @@ var EmSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
49
49
|
args[_key] = arguments[_key];
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
return _possibleConstructorReturn(_this, (
|
|
52
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
53
53
|
tag: "i"
|
|
54
54
|
}, {
|
|
55
55
|
tag: "em"
|
|
56
56
|
}, {
|
|
57
57
|
style: "font-style=italic"
|
|
58
|
-
}],
|
|
58
|
+
}], _assertThisInitialized(_this)));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
_createClass(EmSchema, [{
|
|
@@ -76,7 +76,7 @@ var EmPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
76
76
|
var _super2 = _createSuper(EmPlugin);
|
|
77
77
|
|
|
78
78
|
function EmPlugin() {
|
|
79
|
-
var
|
|
79
|
+
var _this2;
|
|
80
80
|
|
|
81
81
|
_classCallCheck(this, EmPlugin);
|
|
82
82
|
|
|
@@ -84,7 +84,7 @@ var EmPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
84
84
|
args[_key2] = arguments[_key2];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
return _possibleConstructorReturn(_this2, (
|
|
87
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = EmSchema, _assertThisInitialized(_this2)));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
return _createClass(EmPlugin);
|
|
@@ -33,7 +33,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
33
33
|
|
|
34
34
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
35
|
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
37
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
43
43
|
|
|
44
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
45
|
|
|
46
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
47
|
|
|
48
48
|
var PLUGIN_NAME = 'link';
|
|
49
49
|
|
|
@@ -53,7 +53,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
53
53
|
var _super = _createSuper(LinkSchema);
|
|
54
54
|
|
|
55
55
|
function LinkSchema() {
|
|
56
|
-
var
|
|
56
|
+
var _this;
|
|
57
57
|
|
|
58
58
|
_classCallCheck(this, LinkSchema);
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
61
61
|
args[_key] = arguments[_key];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
return _possibleConstructorReturn(_this, (
|
|
64
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.priority = 100, _this.inclusive = false, _this.group = 'link', _this.attrs = {
|
|
65
65
|
href: {
|
|
66
66
|
"default": ''
|
|
67
67
|
}
|
|
@@ -82,7 +82,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
82
82
|
return ['a', {
|
|
83
83
|
href: node.attrs.href
|
|
84
84
|
}, 0];
|
|
85
|
-
},
|
|
85
|
+
}, _assertThisInitialized(_this)));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
return _createClass(LinkSchema);
|
|
@@ -96,7 +96,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
96
96
|
var _super2 = _createSuper(LinkController);
|
|
97
97
|
|
|
98
98
|
function LinkController() {
|
|
99
|
-
var
|
|
99
|
+
var _this2;
|
|
100
100
|
|
|
101
101
|
_classCallCheck(this, LinkController);
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
104
104
|
args[_key2] = arguments[_key2];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
return _possibleConstructorReturn(_this2, (
|
|
107
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
108
108
|
title: '链接',
|
|
109
109
|
icon: 'tu-icon-text-link',
|
|
110
110
|
handler: function handler(editor) {
|
|
@@ -118,7 +118,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
118
118
|
disabled: function disabled(state) {
|
|
119
119
|
return !_main.stateKey.getState(state).canInsertLink;
|
|
120
120
|
}
|
|
121
|
-
}, _this2.pmPlugins = [_main["default"], _fakeCursorForToolbar["default"]],
|
|
121
|
+
}, _this2.pmPlugins = [_main["default"], _fakeCursorForToolbar["default"]], _assertThisInitialized(_this2)));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return _createClass(LinkController);
|
|
@@ -132,7 +132,7 @@ var LinkPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
132
132
|
var _super3 = _createSuper(LinkPlugin);
|
|
133
133
|
|
|
134
134
|
function LinkPlugin() {
|
|
135
|
-
var
|
|
135
|
+
var _this3;
|
|
136
136
|
|
|
137
137
|
_classCallCheck(this, LinkPlugin);
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ var LinkPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
140
140
|
args[_key3] = arguments[_key3];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
return _possibleConstructorReturn(_this3, (
|
|
143
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = LinkSchema, _this3.controller = LinkController, _assertThisInitialized(_this3)));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
return _createClass(LinkPlugin);
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
30
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
var PLUGIN_NAME = 'strong';
|
|
45
45
|
|
|
@@ -49,7 +49,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
49
49
|
var _super = _createSuper(StrongSchema);
|
|
50
50
|
|
|
51
51
|
function StrongSchema() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, StrongSchema);
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
|
|
61
61
|
tag: "strong"
|
|
62
62
|
}, {
|
|
63
63
|
tag: "b",
|
|
@@ -69,7 +69,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
69
69
|
getAttrs: function getAttrs(value) {
|
|
70
70
|
return /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null;
|
|
71
71
|
}
|
|
72
|
-
}],
|
|
72
|
+
}], _assertThisInitialized(_this)));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
_createClass(StrongSchema, [{
|
|
@@ -90,7 +90,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
90
90
|
var _super2 = _createSuper(StrongController);
|
|
91
91
|
|
|
92
92
|
function StrongController() {
|
|
93
|
-
var
|
|
93
|
+
var _this2;
|
|
94
94
|
|
|
95
95
|
_classCallCheck(this, StrongController);
|
|
96
96
|
|
|
@@ -98,7 +98,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
98
98
|
args[_key2] = arguments[_key2];
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
return _possibleConstructorReturn(_this2, (
|
|
101
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
102
102
|
title: (0, _getLocale.getLocale)('Rtx_Bold'),
|
|
103
103
|
icon: 'tu-icon-text-blod',
|
|
104
104
|
handler: function handler(editor) {
|
|
@@ -108,7 +108,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
108
108
|
active: function active(state) {
|
|
109
109
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, _assertThisInitialized(_this2)));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
return _createClass(StrongController);
|
|
@@ -122,7 +122,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
122
122
|
var _super3 = _createSuper(StrongPlugin);
|
|
123
123
|
|
|
124
124
|
function StrongPlugin() {
|
|
125
|
-
var
|
|
125
|
+
var _this3;
|
|
126
126
|
|
|
127
127
|
_classCallCheck(this, StrongPlugin);
|
|
128
128
|
|
|
@@ -130,7 +130,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
130
130
|
args[_key3] = arguments[_key3];
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
return _possibleConstructorReturn(_this3, (
|
|
133
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _assertThisInitialized(_this3)));
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
return _createClass(StrongPlugin);
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
30
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
var PLUGIN_NAME = 'underLine';
|
|
45
45
|
|
|
@@ -60,7 +60,7 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
60
60
|
var _super = _createSuper(UnderLineSchema);
|
|
61
61
|
|
|
62
62
|
function UnderLineSchema() {
|
|
63
|
-
var
|
|
63
|
+
var _this;
|
|
64
64
|
|
|
65
65
|
_classCallCheck(this, UnderLineSchema);
|
|
66
66
|
|
|
@@ -68,14 +68,14 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
68
68
|
args[_key] = arguments[_key];
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
return _possibleConstructorReturn(_this, (
|
|
71
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
72
72
|
tag: 'ins'
|
|
73
73
|
}, {
|
|
74
74
|
tag: 'u'
|
|
75
75
|
}, {
|
|
76
76
|
tag: 'span',
|
|
77
77
|
getAttrs: getAttrs
|
|
78
|
-
}],
|
|
78
|
+
}], _assertThisInitialized(_this)));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
_createClass(UnderLineSchema, [{
|
|
@@ -98,7 +98,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
98
98
|
var _super2 = _createSuper(UnderLineController);
|
|
99
99
|
|
|
100
100
|
function UnderLineController() {
|
|
101
|
-
var
|
|
101
|
+
var _this2;
|
|
102
102
|
|
|
103
103
|
_classCallCheck(this, UnderLineController);
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
106
106
|
args[_key2] = arguments[_key2];
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
return _possibleConstructorReturn(_this2, (
|
|
109
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
110
110
|
title: (0, _getLocale.getLocale)('Rtx_Underline'),
|
|
111
111
|
icon: 'tu-icon-text-underline',
|
|
112
112
|
handler: function handler(editor) {
|
|
@@ -116,7 +116,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
116
116
|
active: function active(state) {
|
|
117
117
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, _assertThisInitialized(_this2)));
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
return _createClass(UnderLineController);
|
|
@@ -130,7 +130,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
130
130
|
var _super3 = _createSuper(UnderLinePlugin);
|
|
131
131
|
|
|
132
132
|
function UnderLinePlugin() {
|
|
133
|
-
var
|
|
133
|
+
var _this3;
|
|
134
134
|
|
|
135
135
|
_classCallCheck(this, UnderLinePlugin);
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
138
138
|
args[_key3] = arguments[_key3];
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
return _possibleConstructorReturn(_this3, (
|
|
141
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _assertThisInitialized(_this3)));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
return _createClass(UnderLinePlugin);
|
|
@@ -17,13 +17,13 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
-
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
20
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
23
23
|
|
|
24
24
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
29
|
|
|
@@ -33,9 +33,9 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
33
33
|
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
35
|
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
37
|
|
|
38
|
-
function _extends() { _extends = Object.assign
|
|
38
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
39
39
|
|
|
40
40
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
41
41
|
|
|
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
37
37
|
|
|
38
38
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
39
39
|
|
|
40
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
40
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
41
41
|
|
|
42
42
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
47
47
|
|
|
48
48
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
49
|
|
|
50
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
50
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
51
51
|
|
|
52
52
|
var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
|
|
53
53
|
_inherits(PortalProviderAPI, _EventDispatcher);
|
|
@@ -55,7 +55,7 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
55
55
|
var _super = _createSuper(PortalProviderAPI);
|
|
56
56
|
|
|
57
57
|
function PortalProviderAPI() {
|
|
58
|
-
var
|
|
58
|
+
var _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, PortalProviderAPI);
|
|
61
61
|
|
|
@@ -63,9 +63,9 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
|
|
67
67
|
_this.context = context;
|
|
68
|
-
},
|
|
68
|
+
}, _assertThisInitialized(_this)));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(PortalProviderAPI, [{
|
|
@@ -35,7 +35,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
35
35
|
|
|
36
36
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
37
|
|
|
38
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
39
|
|
|
40
40
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
45
45
|
|
|
46
46
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
47
|
|
|
48
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
49
|
|
|
50
50
|
var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
51
51
|
_inherits(EditorPopup, _React$Component);
|
|
@@ -53,7 +53,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
53
53
|
var _super = _createSuper(EditorPopup);
|
|
54
54
|
|
|
55
55
|
function EditorPopup() {
|
|
56
|
-
var
|
|
56
|
+
var _this;
|
|
57
57
|
|
|
58
58
|
_classCallCheck(this, EditorPopup);
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
61
61
|
args[_key] = arguments[_key];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
return _possibleConstructorReturn(_this, (
|
|
64
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
65
65
|
overflowScrollParent: false,
|
|
66
66
|
validPosition: true
|
|
67
67
|
}, _this.placement = ['', ''], _this.handleRef = function (popup) {
|
|
@@ -74,7 +74,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
74
74
|
return _this.updatePosition(props);
|
|
75
75
|
}), _this.onResize = function () {
|
|
76
76
|
return _this.scheduledUpdatePosition();
|
|
77
|
-
},
|
|
77
|
+
}, _assertThisInitialized(_this)));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
_createClass(EditorPopup, [{
|