@unicom-cloud/ui 0.8.109 → 0.8.110
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/Affix.js +2 -2
- package/Alert.js +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +6 -4
- package/Countdown.js +42 -8
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +42 -6
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +43 -7
- package/Form.js +21 -16
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +2 -2
- package/LiquidFill.js +12 -10
- package/List.js +1 -1
- package/Loading.js +42 -6
- package/Marquee.js +12 -10
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +41 -5
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +12 -10
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +76 -0
- package/Segmented.js +42 -7
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +43 -7
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +1 -1
- package/Tour.js +13 -11
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +2 -2
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +2 -2
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +3 -3
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/BDMqvmVH.js +4239 -0
- package/chunk/BDgzrqDN.js +154 -0
- package/chunk/BG6j6Ct7.js +30 -0
- package/chunk/BGJspFG9.js +56 -0
- package/chunk/BO_5qdS_.js +13 -0
- package/chunk/{DblEjsQ8.js → BUNoUPLs.js} +1 -1
- package/chunk/B_c0gPsX.js +83 -0
- package/chunk/BcEZk8pT.js +837 -0
- package/chunk/{DGSfSsAY.js → BeHcDey_.js} +1 -1
- package/chunk/{Bm3gJPkz.js → BnUWOu3_.js} +5 -5
- package/chunk/Bvxzb1wd.js +16 -0
- package/chunk/{DryCfcSV.js → CFyN9Eio.js} +4 -4
- package/chunk/CN7NKv_2.js +11 -0
- package/chunk/COc48wzV.js +64 -0
- package/chunk/{BDKb_-wj.js → COsRZOz1.js} +4 -4
- package/chunk/CT7ury1Z.js +13 -0
- package/chunk/Ca6eMq_Y.js +8 -0
- package/chunk/{p9jiLDTk.js → CgN4U7Ou.js} +2 -2
- package/chunk/{Bg3uJGPu.js → CsqGBZv1.js} +1 -1
- package/chunk/CylJZkp8.js +6 -0
- package/chunk/{9WWq1a0I.js → DSqW_efI.js} +1 -1
- package/chunk/{Bz3KT4sO.js → Dbw0YUY1.js} +81 -47
- package/chunk/Dh-zFF65.js +15 -0
- package/chunk/Di5KBCVQ.js +4 -0
- package/chunk/{DjPTURUf.js → Lyh0cz3R.js} +3 -3
- package/chunk/{DgWzb7M5.js → Y_GQsZUt.js} +1 -1
- package/chunk/{BfBHo0RR.js → n1tirBXA.js} +7 -7
- package/chunk/{DYc9a7tm.js → qsVvkBLU.js} +1 -1
- package/chunk/zFFM4RBT.js +2100 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +10 -8
- package/countdown/index.js +67 -33
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +74 -38
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +63 -29
- package/form/Form.js +3 -3
- package/form/FormItem.js +1 -1
- package/form/index.js +85 -77
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +128 -133
- package/hooks/useCreation.js +4 -0
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +44 -9
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +718 -717
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +3 -3
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +2 -2
- package/liquid-fill/index.js +17 -15
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +54 -18
- package/marquee/index.js +19 -17
- package/marquee-/index.js +17 -15
- package/mentions/index.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +4 -3
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +41 -5
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +120 -81
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +2 -2
- package/progress/index.js +1 -1
- package/qr-code/index.js +15 -13
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/constant.js +5 -0
- package/rich-text/core.js +11 -0
- package/rich-text/eventemitter/index.d.ts +135 -0
- package/rich-text/index.js +182 -0
- package/rich-text/interface.js +1 -0
- package/rich-text/rich.js +1877 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +145 -110
- package/select/Option.js +1 -1
- package/select/Select.js +235 -227
- package/select-view/Core.js +2 -2
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +1 -1
- package/space/index.js +51 -15
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +41 -39
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +2 -2
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +20 -18
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +4 -4
- package/tree-select/index.js +1 -1
- package/trigger/index.js +1 -1
- package/types/common/hooks/src/index.d.ts +1 -5
- package/types/common/hooks/src/use-url-state/index.d.ts +1 -1
- package/types/common/hooks/useId.d.ts +1 -1
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/common/hooks/useKeyboardEvent.d.ts +1 -1
- package/types/common/hooks/{useListenResize.d.ts → useListenWindowResize.d.ts} +4 -6
- package/types/common/hooks/useWatch.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +2 -2
- package/types/common/utils/index.d.ts +47 -0
- package/types/common/utils/keyboardCode.d.ts +4 -0
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/mitt.d.ts +1 -0
- package/types/common/utils/pinyin.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/config-provider/interface.d.ts +2 -0
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/index.d.ts +6 -1
- package/types/pc/hooks/index.d.ts +2 -2
- package/types/pc/hooks/useCreation.d.ts +1 -0
- package/types/pc/hooks/useListenWindowResize.d.ts +1 -0
- package/types/pc/index.d.ts +2 -0
- package/types/pc/message/index.d.ts +1 -0
- package/types/pc/message/interface.d.ts +2 -2
- package/types/pc/page-header/interface.d.ts +3 -0
- package/types/pc/rich-text/blots/block.d.ts +34 -0
- package/types/pc/rich-text/blots/break.d.ts +8 -0
- package/types/pc/rich-text/blots/container.d.ts +4 -0
- package/types/pc/rich-text/blots/cursor.d.ts +26 -0
- package/types/pc/rich-text/blots/embed.d.ts +18 -0
- package/types/pc/rich-text/blots/inline.d.ts +12 -0
- package/types/pc/rich-text/blots/scroll.d.ts +49 -0
- package/types/pc/rich-text/blots/text.d.ts +5 -0
- package/types/pc/rich-text/constant.d.ts +1 -0
- package/types/pc/rich-text/core/composition.d.ts +12 -0
- package/types/pc/rich-text/core/editor.d.ts +28 -0
- package/types/pc/rich-text/core/emitter.d.ts +37 -0
- package/types/pc/rich-text/core/instances.d.ts +3 -0
- package/types/pc/rich-text/core/logger.d.ts +7 -0
- package/types/pc/rich-text/core/module.d.ts +8 -0
- package/types/pc/rich-text/core/rich.d.ts +217 -0
- package/types/pc/rich-text/core/selection.d.ts +74 -0
- package/types/pc/rich-text/core/theme.d.ts +32 -0
- package/types/pc/rich-text/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/types/pc/rich-text/core/utils/scrollRectIntoView.d.ts +11 -0
- package/types/pc/rich-text/core.d.ts +7 -0
- package/types/pc/rich-text/delta/AttributeMap.d.ts +10 -0
- package/types/pc/rich-text/delta/Op.d.ts +11 -0
- package/types/pc/rich-text/delta/OpIterator.d.ts +13 -0
- package/types/pc/rich-text/delta/index.d.ts +45 -0
- package/types/pc/rich-text/eventemitter/index.d.ts +101 -0
- package/types/pc/rich-text/formats/align.d.ts +5 -0
- package/types/pc/rich-text/formats/background.d.ts +5 -0
- package/types/pc/rich-text/formats/blockquote.d.ts +6 -0
- package/types/pc/rich-text/formats/bold.d.ts +11 -0
- package/types/pc/rich-text/formats/code.d.ts +15 -0
- package/types/pc/rich-text/formats/color.d.ts +7 -0
- package/types/pc/rich-text/formats/direction.d.ts +5 -0
- package/types/pc/rich-text/formats/font.d.ts +7 -0
- package/types/pc/rich-text/formats/formula.d.ts +10 -0
- package/types/pc/rich-text/formats/header.d.ts +7 -0
- package/types/pc/rich-text/formats/image.d.ts +13 -0
- package/types/pc/rich-text/formats/indent.d.ts +8 -0
- package/types/pc/rich-text/formats/italic.d.ts +6 -0
- package/types/pc/rich-text/formats/link.d.ts +13 -0
- package/types/pc/rich-text/formats/list.d.ts +13 -0
- package/types/pc/rich-text/formats/script.d.ts +8 -0
- package/types/pc/rich-text/formats/size.d.ts +4 -0
- package/types/pc/rich-text/formats/strike.d.ts +6 -0
- package/types/pc/rich-text/formats/table.d.ts +45 -0
- package/types/pc/rich-text/formats/underline.d.ts +6 -0
- package/types/pc/rich-text/formats/video.d.ts +14 -0
- package/types/pc/rich-text/index.d.ts +6 -0
- package/types/pc/rich-text/interface.d.ts +17 -0
- package/types/pc/rich-text/modules/clipboard.d.ts +43 -0
- package/types/pc/rich-text/modules/history.d.ts +36 -0
- package/types/pc/rich-text/modules/input.d.ts +10 -0
- package/types/pc/rich-text/modules/keyboard.d.ts +58 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/types/pc/rich-text/modules/syntax.d.ts +50 -0
- package/types/pc/rich-text/modules/table.d.ts +20 -0
- package/types/pc/rich-text/modules/tableEmbed.d.ts +27 -0
- package/types/pc/rich-text/modules/toolbar.d.ts +24 -0
- package/types/pc/rich-text/modules/uiNode.d.ts +19 -0
- package/types/pc/rich-text/modules/uploader.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/attributor.d.ts +17 -0
- package/types/pc/rich-text/parchment/attributor/class.d.ts +8 -0
- package/types/pc/rich-text/parchment/attributor/store.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/style.d.ts +8 -0
- package/types/pc/rich-text/parchment/blot/abstract/blot.d.ts +115 -0
- package/types/pc/rich-text/parchment/blot/abstract/container.d.ts +18 -0
- package/types/pc/rich-text/parchment/blot/abstract/leaf.d.ts +29 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +50 -0
- package/types/pc/rich-text/parchment/blot/abstract/shadow.d.ts +37 -0
- package/types/pc/rich-text/parchment/blot/block.d.ts +25 -0
- package/types/pc/rich-text/parchment/blot/embed.d.ts +11 -0
- package/types/pc/rich-text/parchment/blot/inline.d.ts +28 -0
- package/types/pc/rich-text/parchment/blot/scroll.d.ts +34 -0
- package/types/pc/rich-text/parchment/blot/text.d.ts +26 -0
- package/types/pc/rich-text/parchment/collection/linked-list.d.ts +21 -0
- package/types/pc/rich-text/parchment/collection/linked-node.d.ts +6 -0
- package/types/pc/rich-text/parchment/error.d.ts +6 -0
- package/types/pc/rich-text/parchment/index.d.ts +21 -0
- package/types/pc/rich-text/parchment/registry.d.ts +21 -0
- package/types/pc/rich-text/parchment/scope.d.ts +14 -0
- package/types/pc/rich-text/rich.d.ts +5 -0
- package/types/pc/rich-text/themes/base.d.ts +35 -0
- package/types/pc/rich-text/themes/bubble.d.ts +18 -0
- package/types/pc/rich-text/themes/snow.d.ts +9 -0
- package/types/pc/rich-text/ui/color-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icon-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icons.d.ts +51 -0
- package/types/pc/rich-text/ui/picker.d.ts +16 -0
- package/types/pc/rich-text/ui/tooltip.d.ts +12 -0
- package/types/pc/select/interface.d.ts +4 -0
- package/types/pc/utils/index.d.ts +2 -0
- package/types/pc/utils/mitt.d.ts +1 -0
- package/types/pc/utils/names.d.ts +107 -91
- package/types/pc/utils/pinyin.d.ts +1 -0
- package/types/pc/version/index.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +5 -3
- package/typography/Operations.js +6 -4
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +2 -2
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +167 -163
- package/utils/mitt.js +5 -0
- package/utils/names.js +12 -2
- package/utils/pinyin.js +5 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/5_U1CBIu.js +0 -8
- package/chunk/B9YvSTvI.js +0 -2321
- package/chunk/BLOlsa0k.js +0 -11
- package/chunk/BTLlOOe9.js +0 -189
- package/chunk/C6Aw3qIJ.js +0 -16
- package/chunk/CMl7m9nA.js +0 -6
- package/chunk/COqvRD0G.js +0 -11
- package/chunk/DXlwLh0Y.js +0 -806
- package/chunk/DlSv5Vu0.js +0 -16
- package/chunk/DmDh7NRL.js +0 -14
- package/chunk/Duezix3m.js +0 -25
- package/chunk/siEVY1s5.js +0 -33
- package/hooks/useCreate.js +0 -4
- package/types/common/hooks/src/use-dynamic-list/index.d.ts +0 -18
- package/types/common/hooks/src/use-event-emitter/index.d.ts +0 -11
- package/types/common/hooks/src/use-map/index.d.ts +0 -8
- package/types/common/hooks/src/use-set/index.d.ts +0 -6
- package/types/common/hooks/useCreate.d.ts +0 -2
- package/types/pc/hooks/useCreate.d.ts +0 -1
- package/types/pc/hooks/useListenResize.d.ts +0 -1
- /package/hooks/{useListenResize.js → useListenWindowResize.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Scope from '../../scope.js';
|
|
2
|
+
import type { Leaf } from './blot.js';
|
|
3
|
+
import ShadowBlot from './shadow.js';
|
|
4
|
+
declare class LeafBlot extends ShadowBlot implements Leaf {
|
|
5
|
+
static scope: Scope;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the value represented by domNode if it is this Blot's type
|
|
8
|
+
* No checking that domNode can represent this Blot type is required so
|
|
9
|
+
* applications needing it should check externally before calling.
|
|
10
|
+
*/
|
|
11
|
+
static value(_domNode: Node): any;
|
|
12
|
+
/**
|
|
13
|
+
* Given location represented by node and offset from DOM Selection Range,
|
|
14
|
+
* return index to that location.
|
|
15
|
+
*/
|
|
16
|
+
index(node: Node, offset: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Given index to location within blot, return node and offset representing
|
|
19
|
+
* that location, consumable by DOM Selection Range
|
|
20
|
+
*/
|
|
21
|
+
position(index: number, _inclusive?: boolean): [Node, number];
|
|
22
|
+
/**
|
|
23
|
+
* Return value represented by this blot
|
|
24
|
+
* Should not change without interaction from API or
|
|
25
|
+
* user change detectable by update()
|
|
26
|
+
*/
|
|
27
|
+
value(): any;
|
|
28
|
+
}
|
|
29
|
+
export default LeafBlot;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import LinkedList from '../../collection/linked-list.js';
|
|
2
|
+
import type { Blot, BlotConstructor, Parent, Root } from './blot.js';
|
|
3
|
+
import ShadowBlot from './shadow.js';
|
|
4
|
+
declare class ParentBlot extends ShadowBlot implements Parent {
|
|
5
|
+
/**
|
|
6
|
+
* Whitelist array of Blots that can be direct children.
|
|
7
|
+
*/
|
|
8
|
+
static allowedChildren?: BlotConstructor[];
|
|
9
|
+
/**
|
|
10
|
+
* Default child blot to be inserted if this blot becomes empty.
|
|
11
|
+
*/
|
|
12
|
+
static defaultChild?: BlotConstructor;
|
|
13
|
+
static uiClass: string;
|
|
14
|
+
children: LinkedList<Blot>;
|
|
15
|
+
domNode: HTMLElement;
|
|
16
|
+
uiNode: HTMLElement | null;
|
|
17
|
+
constructor(scroll: Root, domNode: Node);
|
|
18
|
+
appendChild(other: Blot): void;
|
|
19
|
+
attach(): void;
|
|
20
|
+
attachUI(node: HTMLElement): void;
|
|
21
|
+
/**
|
|
22
|
+
* Called during construction, should fill its own children LinkedList.
|
|
23
|
+
*/
|
|
24
|
+
build(): void;
|
|
25
|
+
deleteAt(index: number, length: number): void;
|
|
26
|
+
descendant<T extends Blot>(criteria: new (...args: any[]) => T, index: number): [T | null, number];
|
|
27
|
+
descendant(criteria: (blot: Blot) => boolean, index: number): [Blot | null, number];
|
|
28
|
+
descendants<T extends Blot>(criteria: new (...args: any[]) => T, index?: number, length?: number): T[];
|
|
29
|
+
descendants(criteria: (blot: Blot) => boolean, index?: number, length?: number): Blot[];
|
|
30
|
+
detach(): void;
|
|
31
|
+
enforceAllowedChildren(): void;
|
|
32
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
33
|
+
insertAt(index: number, value: string, def?: any): void;
|
|
34
|
+
insertBefore(childBlot: Blot, refBlot?: Blot | null): void;
|
|
35
|
+
length(): number;
|
|
36
|
+
moveChildren(targetParent: Parent, refNode?: Blot | null): void;
|
|
37
|
+
optimize(context?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}): void;
|
|
40
|
+
path(index: number, inclusive?: boolean): [Blot, number][];
|
|
41
|
+
removeChild(child: Blot): void;
|
|
42
|
+
replaceWith(name: string | Blot, value?: any): Blot;
|
|
43
|
+
split(index: number, force?: boolean): Blot | null;
|
|
44
|
+
splitAfter(child: Blot): Parent;
|
|
45
|
+
unwrap(): void;
|
|
46
|
+
update(mutations: MutationRecord[], _context: {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}): void;
|
|
49
|
+
}
|
|
50
|
+
export default ParentBlot;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Scope from '../../scope.js';
|
|
2
|
+
import type { Blot, BlotConstructor, Parent, Root } from './blot.js';
|
|
3
|
+
declare class ShadowBlot implements Blot {
|
|
4
|
+
scroll: Root;
|
|
5
|
+
domNode: Node;
|
|
6
|
+
static blotName: string;
|
|
7
|
+
static className: string;
|
|
8
|
+
static requiredContainer: BlotConstructor;
|
|
9
|
+
static scope: Scope;
|
|
10
|
+
static tagName: string | string[];
|
|
11
|
+
static create(rawValue?: unknown): Node;
|
|
12
|
+
prev: Blot | null;
|
|
13
|
+
next: Blot | null;
|
|
14
|
+
parent: Parent;
|
|
15
|
+
get statics(): any;
|
|
16
|
+
constructor(scroll: Root, domNode: Node);
|
|
17
|
+
attach(): void;
|
|
18
|
+
clone(): Blot;
|
|
19
|
+
detach(): void;
|
|
20
|
+
deleteAt(index: number, length: number): void;
|
|
21
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
22
|
+
insertAt(index: number, value: string, def?: any): void;
|
|
23
|
+
isolate(index: number, length: number): Blot;
|
|
24
|
+
length(): number;
|
|
25
|
+
offset(root?: Blot): number;
|
|
26
|
+
optimize(_context?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}): void;
|
|
29
|
+
remove(): void;
|
|
30
|
+
replaceWith(name: string | Blot, value?: any): Blot;
|
|
31
|
+
split(index: number, _force?: boolean): Blot | null;
|
|
32
|
+
update(_mutations: MutationRecord[], _context: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}): void;
|
|
35
|
+
wrap(name: string | Parent, value?: any): Parent;
|
|
36
|
+
}
|
|
37
|
+
export default ShadowBlot;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import AttributorStore from '../attributor/store.js';
|
|
2
|
+
import Scope from '../scope.js';
|
|
3
|
+
import type { Blot, BlotConstructor, Formattable, Root } from './abstract/blot.js';
|
|
4
|
+
import ParentBlot from './abstract/parent.js';
|
|
5
|
+
declare class BlockBlot extends ParentBlot implements Formattable {
|
|
6
|
+
static blotName: string;
|
|
7
|
+
static scope: Scope;
|
|
8
|
+
static tagName: string | string[];
|
|
9
|
+
static allowedChildren: BlotConstructor[];
|
|
10
|
+
static create(value?: unknown): HTMLElement;
|
|
11
|
+
static formats(domNode: HTMLElement, scroll: Root): any;
|
|
12
|
+
protected attributes: AttributorStore;
|
|
13
|
+
constructor(scroll: Root, domNode: Node);
|
|
14
|
+
format(name: string, value: any): void;
|
|
15
|
+
formats(): {
|
|
16
|
+
[index: string]: any;
|
|
17
|
+
};
|
|
18
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
19
|
+
insertAt(index: number, value: string, def?: any): void;
|
|
20
|
+
replaceWith(name: string | Blot, value?: any): Blot;
|
|
21
|
+
update(mutations: MutationRecord[], context: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}): void;
|
|
24
|
+
}
|
|
25
|
+
export default BlockBlot;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Formattable, Root } from './abstract/blot.js';
|
|
2
|
+
import LeafBlot from './abstract/leaf.js';
|
|
3
|
+
declare class EmbedBlot extends LeafBlot implements Formattable {
|
|
4
|
+
static formats(_domNode: HTMLElement, _scroll: Root): any;
|
|
5
|
+
format(name: string, value: any): void;
|
|
6
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
7
|
+
formats(): {
|
|
8
|
+
[index: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default EmbedBlot;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import AttributorStore from '../attributor/store.js';
|
|
2
|
+
import Scope from '../scope.js';
|
|
3
|
+
import type { Blot, BlotConstructor, Formattable, Parent, Root } from './abstract/blot.js';
|
|
4
|
+
import ParentBlot from './abstract/parent.js';
|
|
5
|
+
declare class InlineBlot extends ParentBlot implements Formattable {
|
|
6
|
+
static allowedChildren: BlotConstructor[];
|
|
7
|
+
static blotName: string;
|
|
8
|
+
static scope: Scope;
|
|
9
|
+
static tagName: string | string[];
|
|
10
|
+
static create(value?: unknown): HTMLElement;
|
|
11
|
+
static formats(domNode: HTMLElement, scroll: Root): any;
|
|
12
|
+
protected attributes: AttributorStore;
|
|
13
|
+
constructor(scroll: Root, domNode: Node);
|
|
14
|
+
format(name: string, value: any): void;
|
|
15
|
+
formats(): {
|
|
16
|
+
[index: string]: any;
|
|
17
|
+
};
|
|
18
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
19
|
+
optimize(context: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): void;
|
|
22
|
+
replaceWith(name: string | Blot, value?: any): Blot;
|
|
23
|
+
update(mutations: MutationRecord[], context: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}): void;
|
|
26
|
+
wrap(name: string | Parent, value?: any): Parent;
|
|
27
|
+
}
|
|
28
|
+
export default InlineBlot;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Registry, { type RegistryDefinition } from '../registry.js';
|
|
2
|
+
import Scope from '../scope.js';
|
|
3
|
+
import type { Blot, BlotConstructor, Root } from './abstract/blot.js';
|
|
4
|
+
import ParentBlot from './abstract/parent.js';
|
|
5
|
+
import BlockBlot from './block.js';
|
|
6
|
+
declare class ScrollBlot extends ParentBlot implements Root {
|
|
7
|
+
registry: Registry;
|
|
8
|
+
static blotName: string;
|
|
9
|
+
static defaultChild: typeof BlockBlot;
|
|
10
|
+
static allowedChildren: BlotConstructor[];
|
|
11
|
+
static scope: Scope;
|
|
12
|
+
static tagName: string;
|
|
13
|
+
observer: MutationObserver;
|
|
14
|
+
constructor(registry: Registry, node: HTMLDivElement);
|
|
15
|
+
create(input: Node | string | Scope, value?: any): Blot;
|
|
16
|
+
find(node: Node | null, bubble?: boolean): Blot | null;
|
|
17
|
+
query(query: string | Node | Scope, scope?: Scope): RegistryDefinition | null;
|
|
18
|
+
register(...definitions: RegistryDefinition[]): RegistryDefinition[];
|
|
19
|
+
build(): void;
|
|
20
|
+
detach(): void;
|
|
21
|
+
deleteAt(index: number, length: number): void;
|
|
22
|
+
formatAt(index: number, length: number, name: string, value: any): void;
|
|
23
|
+
insertAt(index: number, value: string, def?: any): void;
|
|
24
|
+
optimize(context?: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}): void;
|
|
27
|
+
optimize(mutations: MutationRecord[], context: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}): void;
|
|
30
|
+
update(mutations?: MutationRecord[], context?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}): void;
|
|
33
|
+
}
|
|
34
|
+
export default ScrollBlot;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Scope from '../scope.js';
|
|
2
|
+
import type { Blot, Leaf, Root } from './abstract/blot.js';
|
|
3
|
+
import LeafBlot from './abstract/leaf.js';
|
|
4
|
+
declare class TextBlot extends LeafBlot implements Leaf {
|
|
5
|
+
static readonly blotName = "text";
|
|
6
|
+
static scope: Scope;
|
|
7
|
+
static create(value: string): Text;
|
|
8
|
+
static value(domNode: Text): string;
|
|
9
|
+
domNode: Text;
|
|
10
|
+
protected text: string;
|
|
11
|
+
constructor(scroll: Root, node: Node);
|
|
12
|
+
deleteAt(index: number, length: number): void;
|
|
13
|
+
index(node: Node, offset: number): number;
|
|
14
|
+
insertAt(index: number, value: string, def?: any): void;
|
|
15
|
+
length(): number;
|
|
16
|
+
optimize(context: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}): void;
|
|
19
|
+
position(index: number, _inclusive?: boolean): [Node, number];
|
|
20
|
+
split(index: number, force?: boolean): Blot | null;
|
|
21
|
+
update(mutations: MutationRecord[], _context: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}): void;
|
|
24
|
+
value(): string;
|
|
25
|
+
}
|
|
26
|
+
export default TextBlot;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type LinkedNode from './linked-node.js';
|
|
2
|
+
declare class LinkedList<T extends LinkedNode> {
|
|
3
|
+
head: T | null;
|
|
4
|
+
tail: T | null;
|
|
5
|
+
length: number;
|
|
6
|
+
constructor();
|
|
7
|
+
append(...nodes: T[]): void;
|
|
8
|
+
at(index: number): T | null;
|
|
9
|
+
contains(node: T): boolean;
|
|
10
|
+
indexOf(node: T): number;
|
|
11
|
+
insertBefore(node: T | null, refNode: T | null): void;
|
|
12
|
+
offset(target: T): number;
|
|
13
|
+
remove(node: T): void;
|
|
14
|
+
iterator(curNode?: T | null): () => T | null;
|
|
15
|
+
find(index: number, inclusive?: boolean): [T | null, number];
|
|
16
|
+
forEach(callback: (cur: T) => void): void;
|
|
17
|
+
forEachAt(index: number, length: number, callback: (cur: T, offset: number, length: number) => void): void;
|
|
18
|
+
map(callback: (cur: T) => any): any[];
|
|
19
|
+
reduce<M>(callback: (memo: M, cur: T) => M, memo: M): M;
|
|
20
|
+
}
|
|
21
|
+
export default LinkedList;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import ContainerBlot from './blot/abstract/container.js';
|
|
2
|
+
import LeafBlot from './blot/abstract/leaf.js';
|
|
3
|
+
import ParentBlot from './blot/abstract/parent.js';
|
|
4
|
+
import BlockBlot from './blot/block.js';
|
|
5
|
+
import EmbedBlot from './blot/embed.js';
|
|
6
|
+
import InlineBlot from './blot/inline.js';
|
|
7
|
+
import ScrollBlot from './blot/scroll.js';
|
|
8
|
+
import TextBlot from './blot/text.js';
|
|
9
|
+
import Attributor from './attributor/attributor.js';
|
|
10
|
+
import ClassAttributor from './attributor/class.js';
|
|
11
|
+
import AttributorStore from './attributor/store.js';
|
|
12
|
+
import StyleAttributor from './attributor/style.js';
|
|
13
|
+
import Registry from './registry.js';
|
|
14
|
+
import Scope from './scope.js';
|
|
15
|
+
export { Attributor, AttributorStore, BlockBlot, ClassAttributor, ContainerBlot, EmbedBlot, InlineBlot, LeafBlot, ParentBlot, Registry, Scope, ScrollBlot, StyleAttributor, TextBlot, };
|
|
16
|
+
export type { AttributorOptions } from './attributor/attributor.js';
|
|
17
|
+
export type { Blot, BlotConstructor, Formattable, Leaf, Parent, Root, } from './blot/abstract/blot.js';
|
|
18
|
+
export type { default as ShadowBlot } from './blot/abstract/shadow.js';
|
|
19
|
+
export type { default as LinkedList } from './collection/linked-list.js';
|
|
20
|
+
export type { default as LinkedNode } from './collection/linked-node.js';
|
|
21
|
+
export type { RegistryDefinition, RegistryInterface } from './registry.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Attributor from './attributor/attributor.js';
|
|
2
|
+
import { type Blot, type BlotConstructor, type Root } from './blot/abstract/blot.js';
|
|
3
|
+
import Scope from './scope.js';
|
|
4
|
+
export type RegistryDefinition = Attributor | BlotConstructor;
|
|
5
|
+
export interface RegistryInterface {
|
|
6
|
+
create(scroll: Root, input: Node | string | Scope, value?: any): Blot;
|
|
7
|
+
query(query: string | Node | Scope, scope: Scope): RegistryDefinition | null;
|
|
8
|
+
register(...definitions: any[]): any;
|
|
9
|
+
}
|
|
10
|
+
export default class Registry implements RegistryInterface {
|
|
11
|
+
static blots: WeakMap<Node, Blot>;
|
|
12
|
+
static find(node?: Node | null, bubble?: boolean): Blot | null;
|
|
13
|
+
private attributes;
|
|
14
|
+
private classes;
|
|
15
|
+
private tags;
|
|
16
|
+
private types;
|
|
17
|
+
create(scroll: Root, input: Node | string | Scope, value?: any): Blot;
|
|
18
|
+
find(node: Node | null, bubble?: boolean): Blot | null;
|
|
19
|
+
query(query: string | Node | Scope, scope?: Scope): RegistryDefinition | null;
|
|
20
|
+
register(...definitions: RegistryDefinition[]): RegistryDefinition[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare enum Scope {
|
|
2
|
+
TYPE = 3,// 0011 Lower two bits
|
|
3
|
+
LEVEL = 12,// 1100 Higher two bits
|
|
4
|
+
ATTRIBUTE = 13,// 1101
|
|
5
|
+
BLOT = 14,// 1110
|
|
6
|
+
INLINE = 7,// 0111
|
|
7
|
+
BLOCK = 11,// 1011
|
|
8
|
+
BLOCK_BLOT = 10,// 1010
|
|
9
|
+
INLINE_BLOT = 6,// 0110
|
|
10
|
+
BLOCK_ATTRIBUTE = 9,// 1001
|
|
11
|
+
INLINE_ATTRIBUTE = 5,// 0101
|
|
12
|
+
ANY = 15
|
|
13
|
+
}
|
|
14
|
+
export default Scope;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Bounds, DebugLevel, EmitterSource, ExpandedRichOptions, RichOptions } from './core.js';
|
|
2
|
+
import Rich from './core.js';
|
|
3
|
+
export { AttributeMap, Delta, Module, Op, OpIterator, Parchment, Range, } from './core.js';
|
|
4
|
+
export type { Bounds, DebugLevel, EmitterSource, ExpandedRichOptions, RichOptions, };
|
|
5
|
+
export default Rich;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type Rich from '../core/rich.js';
|
|
2
|
+
import type Selection from '../core/selection.js';
|
|
3
|
+
import type { Range } from '../core/selection.js';
|
|
4
|
+
import type { ThemeOptions } from '../core/theme.js';
|
|
5
|
+
import Theme from '../core/theme.js';
|
|
6
|
+
import type Clipboard from '../modules/clipboard.js';
|
|
7
|
+
import type History from '../modules/history.js';
|
|
8
|
+
import type Keyboard from '../modules/keyboard.js';
|
|
9
|
+
import type Uploader from '../modules/uploader.js';
|
|
10
|
+
import Picker from '../ui/picker.js';
|
|
11
|
+
import Tooltip from '../ui/tooltip.js';
|
|
12
|
+
declare class BaseTheme extends Theme {
|
|
13
|
+
pickers: Picker[];
|
|
14
|
+
tooltip?: Tooltip;
|
|
15
|
+
constructor(rich: Rich, options: ThemeOptions);
|
|
16
|
+
addModule(name: 'clipboard'): Clipboard;
|
|
17
|
+
addModule(name: 'keyboard'): Keyboard;
|
|
18
|
+
addModule(name: 'uploader'): Uploader;
|
|
19
|
+
addModule(name: 'history'): History;
|
|
20
|
+
addModule(name: 'selection'): Selection;
|
|
21
|
+
addModule(name: string): unknown;
|
|
22
|
+
buildButtons(buttons: NodeListOf<HTMLElement>, icons: Record<string, Record<string, string> | string>): void;
|
|
23
|
+
buildPickers(selects: NodeListOf<HTMLSelectElement>, icons: Record<string, string | Record<string, string>>): void;
|
|
24
|
+
}
|
|
25
|
+
declare class BaseTooltip extends Tooltip {
|
|
26
|
+
textbox: HTMLInputElement | null;
|
|
27
|
+
linkRange?: Range;
|
|
28
|
+
constructor(rich: Rich, boundsContainer?: HTMLElement);
|
|
29
|
+
listen(): void;
|
|
30
|
+
cancel(): void;
|
|
31
|
+
edit(mode?: string, preview?: string | null): void;
|
|
32
|
+
restoreFocus(): void;
|
|
33
|
+
save(): void;
|
|
34
|
+
}
|
|
35
|
+
export { BaseTooltip, BaseTheme as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Rich from '../core/rich.js';
|
|
2
|
+
import type { Bounds } from '../core/selection.js';
|
|
3
|
+
import type { ThemeOptions } from '../core/theme.js';
|
|
4
|
+
import type Toolbar from '../modules/toolbar.js';
|
|
5
|
+
import BaseTheme, { BaseTooltip } from './base.js';
|
|
6
|
+
declare class BubbleTooltip extends BaseTooltip {
|
|
7
|
+
static TEMPLATE: string;
|
|
8
|
+
constructor(rich: Rich, bounds?: HTMLElement);
|
|
9
|
+
listen(): void;
|
|
10
|
+
cancel(): void;
|
|
11
|
+
position(reference: Bounds): number;
|
|
12
|
+
}
|
|
13
|
+
declare class BubbleTheme extends BaseTheme {
|
|
14
|
+
tooltip: BubbleTooltip;
|
|
15
|
+
constructor(rich: Rich, options: ThemeOptions);
|
|
16
|
+
extendToolbar(toolbar: Toolbar): void;
|
|
17
|
+
}
|
|
18
|
+
export { BubbleTooltip, BubbleTheme as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Rich from '../core/rich.js';
|
|
2
|
+
import type { ThemeOptions } from '../core/theme.js';
|
|
3
|
+
import type Toolbar from '../modules/toolbar.js';
|
|
4
|
+
import BaseTheme from './base.js';
|
|
5
|
+
declare class SnowTheme extends BaseTheme {
|
|
6
|
+
constructor(rich: Rich, options: ThemeOptions);
|
|
7
|
+
extendToolbar(toolbar: Toolbar): void;
|
|
8
|
+
}
|
|
9
|
+
export default SnowTheme;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Picker from './picker.js';
|
|
2
|
+
declare class ColorPicker extends Picker {
|
|
3
|
+
constructor(select: HTMLSelectElement, label: string);
|
|
4
|
+
buildItem(option: HTMLOptionElement): HTMLSpanElement;
|
|
5
|
+
selectItem(item: HTMLElement | null, trigger?: boolean): void;
|
|
6
|
+
}
|
|
7
|
+
export default ColorPicker;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Picker from './picker.js';
|
|
2
|
+
declare class IconPicker extends Picker {
|
|
3
|
+
defaultItem: HTMLElement | null;
|
|
4
|
+
constructor(select: HTMLSelectElement, icons: Record<string, string>);
|
|
5
|
+
selectItem(target: HTMLElement | null, trigger?: boolean): void;
|
|
6
|
+
}
|
|
7
|
+
export default IconPicker;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
align: {
|
|
3
|
+
'': any;
|
|
4
|
+
center: any;
|
|
5
|
+
right: any;
|
|
6
|
+
justify: any;
|
|
7
|
+
};
|
|
8
|
+
background: any;
|
|
9
|
+
blockquote: any;
|
|
10
|
+
bold: any;
|
|
11
|
+
clean: any;
|
|
12
|
+
code: any;
|
|
13
|
+
'code-block': any;
|
|
14
|
+
color: any;
|
|
15
|
+
direction: {
|
|
16
|
+
'': any;
|
|
17
|
+
rtl: any;
|
|
18
|
+
};
|
|
19
|
+
formula: any;
|
|
20
|
+
header: {
|
|
21
|
+
1: any;
|
|
22
|
+
2: any;
|
|
23
|
+
3: any;
|
|
24
|
+
4: any;
|
|
25
|
+
5: any;
|
|
26
|
+
6: any;
|
|
27
|
+
};
|
|
28
|
+
italic: any;
|
|
29
|
+
image: any;
|
|
30
|
+
indent: {
|
|
31
|
+
'+1': any;
|
|
32
|
+
'-1': any;
|
|
33
|
+
};
|
|
34
|
+
link: any;
|
|
35
|
+
list: {
|
|
36
|
+
bullet: any;
|
|
37
|
+
check: any;
|
|
38
|
+
ordered: any;
|
|
39
|
+
};
|
|
40
|
+
script: {
|
|
41
|
+
sub: any;
|
|
42
|
+
super: any;
|
|
43
|
+
};
|
|
44
|
+
strike: any;
|
|
45
|
+
table: any;
|
|
46
|
+
underline: any;
|
|
47
|
+
video: any;
|
|
48
|
+
redo: any;
|
|
49
|
+
undo: any;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare class Picker {
|
|
2
|
+
select: HTMLSelectElement;
|
|
3
|
+
container: HTMLElement;
|
|
4
|
+
label: HTMLElement;
|
|
5
|
+
constructor(select: HTMLSelectElement);
|
|
6
|
+
togglePicker(): void;
|
|
7
|
+
buildItem(option: HTMLOptionElement): HTMLSpanElement;
|
|
8
|
+
buildLabel(): HTMLSpanElement;
|
|
9
|
+
buildOptions(): void;
|
|
10
|
+
buildPicker(): void;
|
|
11
|
+
escape(): void;
|
|
12
|
+
close(): void;
|
|
13
|
+
selectItem(item: HTMLElement | null, trigger?: boolean): void;
|
|
14
|
+
update(): void;
|
|
15
|
+
}
|
|
16
|
+
export default Picker;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type Rich from '../core.js';
|
|
2
|
+
import type { Bounds } from '../core/selection.js';
|
|
3
|
+
declare class Tooltip {
|
|
4
|
+
rich: Rich;
|
|
5
|
+
boundsContainer: HTMLElement;
|
|
6
|
+
root: HTMLDivElement;
|
|
7
|
+
constructor(rich: Rich, boundsContainer?: HTMLElement);
|
|
8
|
+
hide(): void;
|
|
9
|
+
position(reference: Bounds): number;
|
|
10
|
+
show(): void;
|
|
11
|
+
}
|
|
12
|
+
export default Tooltip;
|
|
@@ -156,6 +156,10 @@ export interface SelectProps extends SelectViewCommonProps {
|
|
|
156
156
|
* @en Pass properties used by VirtualList.
|
|
157
157
|
*/
|
|
158
158
|
virtualListProps?: AvailableVirtualListProps;
|
|
159
|
+
/**
|
|
160
|
+
* @zh 是否立即触发一次 onChange 回调。仅在 (value || defaultValue) 条件满足的情况下才会触发。
|
|
161
|
+
*/
|
|
162
|
+
immediateTriggerChangeOnMount?: boolean;
|
|
159
163
|
/**
|
|
160
164
|
* @zh 点击选择框的回调
|
|
161
165
|
* @en Callback when select an option or input value change.
|
|
@@ -19,11 +19,13 @@ export * from './lodash';
|
|
|
19
19
|
export * from './math';
|
|
20
20
|
export * from './mergedToString';
|
|
21
21
|
export * from './mergeProps';
|
|
22
|
+
export * from './mitt';
|
|
22
23
|
export * from './mutationObserver';
|
|
23
24
|
export * from './names';
|
|
24
25
|
export * from './omit';
|
|
25
26
|
export * from './pad';
|
|
26
27
|
export * from './pick';
|
|
28
|
+
export * from './pinyin';
|
|
27
29
|
export * from './PqbCSSTransition';
|
|
28
30
|
export * from './reactDOM';
|
|
29
31
|
export * from './reactTransitionGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, default as mitt } from '../../common/utils/mitt';
|