@univerjs/docs-quick-insert-ui 0.6.6-experimental.20250317-28d180b

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.
Files changed (45) hide show
  1. package/README.md +27 -0
  2. package/lib/cjs/index.js +9 -0
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/fr-FR.js +1 -0
  6. package/lib/cjs/locale/ru-RU.js +1 -0
  7. package/lib/cjs/locale/vi-VN.js +1 -0
  8. package/lib/cjs/locale/zh-CN.js +1 -0
  9. package/lib/cjs/locale/zh-TW.js +1 -0
  10. package/lib/es/index.js +582 -0
  11. package/lib/es/locale/en-US.js +18 -0
  12. package/lib/es/locale/fa-IR.js +18 -0
  13. package/lib/es/locale/fr-FR.js +18 -0
  14. package/lib/es/locale/ru-RU.js +18 -0
  15. package/lib/es/locale/vi-VN.js +18 -0
  16. package/lib/es/locale/zh-CN.js +18 -0
  17. package/lib/es/locale/zh-TW.js +18 -0
  18. package/lib/index.css +1 -0
  19. package/lib/types/commands/commands/doc-quick-insert.command.d.ts +7 -0
  20. package/lib/types/commands/operations/quick-insert-popup.operation.d.ts +9 -0
  21. package/lib/types/controllers/built-in-menus.d.ts +11 -0
  22. package/lib/types/controllers/doc-quick-insert-trigger.controller.d.ts +13 -0
  23. package/lib/types/controllers/doc-quick-insert-ui.controller.d.ts +12 -0
  24. package/lib/types/index.d.ts +21 -0
  25. package/lib/types/locale/en-US.d.ts +3 -0
  26. package/lib/types/locale/fa-IR.d.ts +3 -0
  27. package/lib/types/locale/fr-FR.d.ts +3 -0
  28. package/lib/types/locale/ru-RU.d.ts +3 -0
  29. package/lib/types/locale/vi-VN.d.ts +3 -0
  30. package/lib/types/locale/zh-CN.d.ts +31 -0
  31. package/lib/types/locale/zh-TW.d.ts +3 -0
  32. package/lib/types/plugin.d.ts +9 -0
  33. package/lib/types/services/doc-quick-insert-popup.service.d.ts +69 -0
  34. package/lib/types/views/KeywordInputPlaceholder.d.ts +20 -0
  35. package/lib/types/views/QuickInsertPlaceholder.d.ts +16 -0
  36. package/lib/types/views/QuickInsertPopup.d.ts +20 -0
  37. package/lib/umd/index.js +9 -0
  38. package/lib/umd/locale/en-US.js +1 -0
  39. package/lib/umd/locale/fa-IR.js +1 -0
  40. package/lib/umd/locale/fr-FR.js +1 -0
  41. package/lib/umd/locale/ru-RU.js +1 -0
  42. package/lib/umd/locale/vi-VN.js +1 -0
  43. package/lib/umd/locale/zh-CN.js +1 -0
  44. package/lib/umd/locale/zh-TW.js +1 -0
  45. package/package.json +84 -0
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @univerjs/docs-quick-insert-ui
2
+
3
+ ## Package Overview
4
+
5
+ | Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
+ | --- | --- | --- | --- | --- | :---: | :---: |
7
+ | `@univerjs/docs-quick-insert-ui` | `UniverDocsDrawingUi` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ⭕️ | ⭕️ |
8
+
9
+ ## Introduction
10
+
11
+ ## Usage
12
+
13
+ ### Installation
14
+
15
+ ```shell
16
+ # Using npm
17
+ npm install @univerjs/docs-quick-insert-ui
18
+
19
+ # Using pnpm
20
+ pnpm add @univerjs/docs-quick-insert-ui
21
+ ```
22
+
23
+ <!-- Links -->
24
+ [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/docs-quick-insert-ui?style=flat-square
25
+ [npm-version-link]: https://npmjs.com/package/@univerjs/docs-quick-insert-ui
26
+ [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/docs-quick-insert-ui?style=flat-square
27
+ [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/docs-quick-insert-ui?style=flat-square
@@ -0,0 +1,9 @@
1
+ "use strict";var re=Object.defineProperty;var ie=(r,t,e)=>t in r?re(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var I=(r,t,e)=>ie(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@univerjs/core"),se=require("@univerjs/docs-drawing"),oe=require("@univerjs/drawing"),ce=require("@univerjs/drawing-ui"),a=require("@univerjs/ui"),q=require("@univerjs/docs"),C=require("@univerjs/docs-ui"),_=require("rxjs"),p=require("react/jsx-runtime"),D=require("@univerjs/design"),f=require("react"),A={id:"doc.command.delete-search-key",type:s.CommandType.COMMAND,handler:(r,t)=>{const e=r.get(s.ICommandService),{start:n,end:i}=t;return e.syncExecuteCommand(C.CutContentCommand.id,{segmentId:"",textRanges:[{startOffset:n,endOffset:n,collapsed:!0}],selections:[{startOffset:n,endOffset:i,collapsed:!1,direction:s.RANGE_DIRECTION.FORWARD}]})}},w=()=>{const r=a.useDependency(s.LocaleService);return p.jsx("div",{className:"univer-translate-y-1.5 univer-text-sm univer-text-gray-500",children:r.t("docQuickInsert.keywordInputPlaceholder")})};w.componentKey="KeywordInputPlaceholder";const ue=()=>{const r=a.useDependency(s.LocaleService);return p.jsx("div",{className:`
2
+ univer-flex univer-h-full univer-items-center univer-justify-center univer-rounded-lg univer-bg-white
3
+ univer-px-12 univer-py-6 univer-text-gray-400
4
+ `,children:p.jsx("span",{children:r.t("docQuickInsert.placeholder")})})};function L(r,t){return r.map(e=>({...e})).filter(e=>{if("children"in e)return e.children=L(e.children,t),e.children.length>0;const n=e.keywords;return n?n.some(i=>i.includes(t)):e.title.toLowerCase().includes(t)})}function W(r,t){return r.map(e=>{const n={...e};return"children"in n&&(n.children=W(n.children,t)),n.title=t.t(n.title),"keywords"in n&&(n.keywords=n.keywords.concat(n.title).map(i=>i.toLowerCase())),n})}const de=[a.KeyCode.ARROW_UP,a.KeyCode.ARROW_DOWN,a.KeyCode.ENTER],R=()=>{const r=a.useDependency(s.LocaleService),t=a.useDependency(exports.DocQuickInsertPopupService),e=a.useDependency(a.ComponentManager),n=a.useDependency(a.IShortcutService),i=a.useDependency(s.ICommandService),o=f.useMemo(()=>s.generateRandomId(),[]),[c,d]=f.useState(0),u=f.useRef(null),l=f.useRef(0);l.current=0;const S=a.useObservable(t.filterKeyword$,""),P=a.useObservable(t.editPopup$),E=a.useObservable(P==null?void 0:P.popup.menus$,[]),[j,ee]=f.useState([]),$=f.useMemo(()=>W(E,r),[E]);f.useEffect(()=>{const v=requestIdleCallback(()=>{ee(L($,S.toLowerCase()))});return()=>{cancelIdleCallback(v)}},[$,S]);const H=v=>{t.emitMenuSelected(v),i.executeCommand(k.id)};f.useEffect(()=>{const v=new s.DisposableCollection;n.getAllShortcuts().filter(h=>h.binding&&de.includes(h.binding)).forEach(h=>{const O=h.preconditions;h.preconditions=()=>!1,v.add(s.toDisposable(()=>{h.preconditions=O}))});const y={id:`quick.insert.popup.enter.${o}`,type:s.CommandType.OPERATION,handler:()=>{const h=u.current;h&&H(h)}},b={id:`quick.insert.popup.move.cursor.up.${o}`,type:s.CommandType.OPERATION,handler:()=>{d(h=>{const O=h-1;return O>=0?O:l.current-1})}},x={id:`quick.insert.popup.move.cursor.down.${o}`,type:s.CommandType.OPERATION,handler:()=>{d(h=>{const O=h+1;return O<=l.current-1?O:0})}};return v.add(i.registerCommand(b)),v.add(i.registerCommand(x)),v.add(i.registerCommand(y)),v.add(n.registerShortcut({priority:1e3,id:b.id,binding:a.KeyCode.ARROW_UP,preconditions:()=>!0,staticParameters:{direction:s.Direction.UP}})),v.add(n.registerShortcut({priority:1e3,id:x.id,binding:a.KeyCode.ARROW_DOWN,preconditions:()=>!0,staticParameters:{direction:s.Direction.DOWN}})),v.add(n.registerShortcut({priority:1e3,id:y.id,binding:a.KeyCode.ENTER,preconditions:()=>!0})),()=>{v.dispose()}},[]),f.useEffect(()=>{d(0)},[j]);function K(v){return v.map(g=>{const Q=g.icon,y=Q?e.get(Q):null;if("children"in g)return p.jsx(D.MenuItemGroup,{title:p.jsxs("div",{className:`
5
+ univer-mb-2 univer-flex univer-items-center univer-text-xs univer-text-gray-400
6
+ `,children:[y&&p.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:p.jsx(y,{})}),p.jsx("span",{children:g.title})]}),children:K(g.children)},g.id);const b=l.current,x=c===b;return x&&(u.current=g),l.current++,p.jsx(D.MenuItem,{onMouseEnter:()=>d(b),onMouseLeave:()=>d(Number.NaN),className:D.clsx("univer-text-sm",{"hover:univer-bg-transparent":!x,"univer-bg-gray-100":x}),onClick:()=>{H(g)},children:p.jsxs("div",{className:"univer-flex univer-items-center univer-px-1",children:[y&&p.jsx("span",{className:"univer-mr-2 univer-inline-flex univer-text-base",children:p.jsx(y,{})}),p.jsx("span",{children:g.title})]})},g.id)})}const te=j.length>0,ne=(P==null?void 0:P.popup.Placeholder)||ue;return p.jsx("div",{className:D.clsx(`
7
+ univer-rounded-lg univer-border univer-border-solid univer-border-gray-100
8
+ univer-shadow-[0_0_10px_0_rgba(0,0,0,0.1)]
9
+ `),children:te?p.jsx("div",{className:"univer-max-h-[360px] univer-w-[220px] univer-overflow-y-auto",children:p.jsx(D.Menu,{children:K(j)})}):p.jsx(ne,{})})};R.componentKey="doc.quick-insert-popup";var ae=Object.getOwnPropertyDescriptor,le=(r,t,e,n)=>{for(var i=n>1?void 0:n?ae(t,e):t,o=r.length-1,c;o>=0;o--)(c=r[o])&&(i=c(i)||i);return i},U=(r,t)=>(e,n)=>t(e,n,r);exports.DocQuickInsertPopupService=class extends s.Disposable{constructor(e,n,i){super();I(this,"_popups",new Set);I(this,"_editPopup$",new _.BehaviorSubject(void 0));I(this,"editPopup$",this._editPopup$.asObservable());I(this,"_inputOffset$",new _.BehaviorSubject({start:0,end:0}));I(this,"inputOffset$",this._inputOffset$.asObservable());I(this,"filterKeyword$");I(this,"_menuSelectedCallbacks",new Set);I(this,"_inputPlaceholderRenderRoot",null);this._docCanvasPopupManagerService=e,this._univerInstanceService=n,this._commandService=i,this.disposeWithMe(this._editPopup$);const o=(c,d)=>{var u,l;return(l=(u=this._univerInstanceService.getCurrentUnitOfType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:u.getBody())==null?void 0:l.dataStream.slice(c,d)};this.filterKeyword$=this._inputOffset$.pipe(_.map(c=>{var u;const d=o(c.start,c.end);return(u=d==null?void 0:d.slice(1))!=null?u:""}),_.distinctUntilChanged()),this.disposeWithMe(_.combineLatest([this.filterKeyword$.pipe(_.tap(c=>{var d,u,l;c.length>0?(u=(d=this._inputPlaceholderRenderRoot)==null?void 0:d.unmount)==null||u.dispose():(l=this._inputPlaceholderRenderRoot)==null||l.mount()})),this.editPopup$.pipe(_.tap(c=>{var d,u;c||(u=(d=this._inputPlaceholderRenderRoot)==null?void 0:d.unmount)==null||u.dispose()}))]).subscribe())}get editPopup(){return this._editPopup$.value}get inputOffset(){return this._inputOffset$.value}setInputOffset(e){this._inputOffset$.next(e)}resolvePopup(e){return Array.from(this._popups).find(n=>n.keyword===e)}registerPopup(e){return this._popups.add(e),()=>{this._popups.delete(e)}}_createInputPlaceholderRenderRoot(e){return{mount(){this.unmount=e()}}}showPopup(e){const{popup:n,index:i,unitId:o}=e;this.closePopup();const c=this._docCanvasPopupManagerService.attachPopupToRange({startOffset:i,endOffset:i,collapsed:!0},{componentKey:R.componentKey,onClickOutside:()=>{this.closePopup()},direction:"bottom"},o);this._inputPlaceholderRenderRoot=this._createInputPlaceholderRenderRoot(()=>{const d=this._docCanvasPopupManagerService.attachPopupToRange({startOffset:i+1,endOffset:i+1,collapsed:!1},{componentKey:w.componentKey,onClickOutside:()=>{d.dispose()},direction:"horizontal"},o);return d}),this._inputPlaceholderRenderRoot.mount(),this._editPopup$.next({disposable:c,popup:n,anchor:i,unitId:o})}closePopup(){this.editPopup&&(this.editPopup.disposable.dispose(),this._editPopup$.next(null))}onMenuSelected(e){return this._menuSelectedCallbacks.add(e),()=>{this._menuSelectedCallbacks.delete(e)}}emitMenuSelected(e){const{start:n,end:i}=this.inputOffset;this._commandService.syncExecuteCommand(A.id,{start:n,end:i}),setTimeout(()=>{this._menuSelectedCallbacks.forEach(o=>o(e))},0)}};exports.DocQuickInsertPopupService=le([U(0,s.Inject(C.DocCanvasPopManagerService)),U(1,s.Inject(s.IUniverInstanceService)),U(2,s.Inject(s.ICommandService))],exports.DocQuickInsertPopupService);const z={type:s.CommandType.OPERATION,id:"doc.operation.show-quick-insert-popup",handler(r,t){const e=r.get(exports.DocQuickInsertPopupService);return t?(e.showPopup(t),!0):!1}},k={type:s.CommandType.OPERATION,id:"doc.operation.close-quick-insert-popup",handler(r){return r.get(exports.DocQuickInsertPopupService).closePopup(),!0}},B={id:"quick-insert.text.menu",title:"docQuickInsert.menu.text",icon:"TextSingle",keywords:["text"]},V={id:C.OrderListCommand.id,title:"docQuickInsert.menu.numberedList",icon:"OrderSingle",keywords:["numbered","list","ordered"]},F={id:C.BulletListCommand.id,title:"docQuickInsert.menu.bulletedList",icon:"UnorderSingle",keywords:["bulleted","list","unordered"]},G={id:C.HorizontalLineCommand.id,title:"docQuickInsert.menu.divider",icon:"DividerSingle",keywords:["divider","line","separate"]},pe=[{title:"docQuickInsert.group.basics",id:"quick.insert.group.basic",children:[B,V,F,G]}],fe=new Set([V.id,F.id,G.id]);var ve=Object.getOwnPropertyDescriptor,he=(r,t,e,n)=>{for(var i=n>1?void 0:n?ve(t,e):t,o=r.length-1,c;o>=0;o--)(c=r[o])&&(i=c(i)||i);return i},M=(r,t)=>(e,n)=>t(e,n,r);exports.DocQuickInsertTriggerController=class extends s.Disposable{constructor(t,e,n,i){super(),this._commandService=t,this._textSelectionManagerService=e,this._docQuickInsertPopupService=n,this._shortcutService=i,this.disposeWithMe(this._shortcutService.registerShortcut({id:k.id,binding:a.KeyCode.ESC,preconditions:()=>!!this._docQuickInsertPopupService.editPopup,priority:1e3})),this._initTrigger(),this._initMenuHandler()}_initTrigger(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{var o,c,d;const{_docQuickInsertPopupService:e,_textSelectionManagerService:n,_commandService:i}=this;if(t.id===C.InsertCommand.id){const u=t.params;if(e.editPopup){e.setInputOffset({start:e.inputOffset.start,end:u.range.endOffset+1});return}const l=n.getActiveTextRange();if(!l)return;const S=e.resolvePopup(u.body.dataStream);if(!S||!(S.preconditions?S.preconditions(u):!0))return;e.setInputOffset({start:l.startOffset-1,end:l.startOffset}),setTimeout(()=>{i.executeCommand(z.id,{index:l.startOffset-1,unitId:u.unitId,popup:S})},100)}if(t.id===q.RichTextEditingMutation.id){const u=t.params;if(u.isCompositionEnd){const l=(c=(o=u.textRanges)==null?void 0:o[0])==null?void 0:c.endOffset;l&&e.setInputOffset({start:e.inputOffset.start,end:l})}}if(t.id===C.DeleteCommand.id){const u=t.params;if(e.editPopup&&u.direction===s.DeleteDirection.LEFT){const l=(d=u.len)!=null?d:0;e.setInputOffset({start:e.inputOffset.start,end:u.range.endOffset-l})}}if(t.id===C.MoveCursorOperation.id){const u=t.params;(u.direction===s.Direction.LEFT||u.direction===s.Direction.RIGHT)&&e.editPopup&&i.executeCommand(k.id)}if(t.id===C.DeleteLeftCommand.id){const u=n.getActiveTextRange();if(!e.editPopup||!u)return;u.endOffset<=e.editPopup.anchor&&i.executeCommand(k.id)}}))}_initMenuHandler(){this.disposeWithMe(this._docQuickInsertPopupService.onMenuSelected(t=>{t.id!==B.id&&fe.has(t.id)&&this._commandService.executeCommand(t.id)}))}};exports.DocQuickInsertTriggerController=he([M(0,s.ICommandService),M(1,s.Inject(q.DocSelectionManagerService)),M(2,s.Inject(exports.DocQuickInsertPopupService)),M(3,s.Inject(a.IShortcutService))],exports.DocQuickInsertTriggerController);var m=function(){return m=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},m.apply(this,arguments)},me=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e},T=f.forwardRef(function(r,t){var e=r.icon,n=r.id,i=r.className,o=r.extend,c=me(r,["icon","id","className","extend"]),d="univerjs-icon univerjs-icon-".concat(n," ").concat(i||"").trim(),u=f.useRef("_".concat(Ce()));return Z(e,"".concat(n),{defIds:e.defIds,idSuffix:u.current},m({ref:t,className:d},c),o)});function Z(r,t,e,n,i){return f.createElement(r.tag,m(m({key:t},ge(r,e,i)),n),(Ie(r,e).children||[]).map(function(o,c){return Z(o,"".concat(t,"-").concat(r.tag,"-").concat(c),e,void 0,i)}))}function ge(r,t,e){var n=m({},r.attrs);e!=null&&e.colorChannel1&&n.fill==="colorChannel1"&&(n.fill=e.colorChannel1),r.tag==="mask"&&n.id&&(n.id=n.id+t.idSuffix),Object.entries(n).forEach(function(o){var c=o[0],d=o[1];c==="mask"&&typeof d=="string"&&(n[c]=d.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))});var i=t.defIds;return!i||i.length===0||(r.tag==="use"&&n["xlink:href"]&&(n["xlink:href"]=n["xlink:href"]+t.idSuffix),Object.entries(n).forEach(function(o){var c=o[0],d=o[1];typeof d=="string"&&(n[c]=d.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),n}function Ie(r,t){var e,n=t.defIds;return!n||n.length===0?r:r.tag==="defs"&&(!((e=r.children)===null||e===void 0)&&e.length)?m(m({},r),{children:r.children.map(function(i){return typeof i.attrs.id=="string"&&n&&n.indexOf(i.attrs.id)>-1?m(m({},i),{attrs:m(m({},i.attrs),{id:i.attrs.id+t.idSuffix})}):i})}):r}function Ce(){return Math.random().toString(36).substring(2,8)}T.displayName="UniverIcon";var _e={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.01953 3.13985C1.01953 2.77258 1.31726 2.47485 1.68453 2.47485H2.73713C3.1044 2.47485 3.40213 2.77258 3.40213 3.13985 3.40213 3.50712 3.1044 3.80485 2.73713 3.80485H1.68453C1.31726 3.80485 1.01953 3.50712 1.01953 3.13985zM4.17734 3.13985C4.17734 2.77258 4.47507 2.47485 4.84234 2.47485H6.94754C7.31481 2.47485 7.61254 2.77258 7.61254 3.13985 7.61254 3.50712 7.31481 3.80485 6.94754 3.80485H4.84234C4.47507 3.80485 4.17734 3.50712 4.17734 3.13985zM8.38775 3.13985C8.38775 2.77258 8.68548 2.47485 9.05275 2.47485H11.158C11.5252 2.47485 11.823 2.77258 11.823 3.13985 11.823 3.50712 11.5252 3.80485 11.158 3.80485H9.05275C8.68548 3.80485 8.38775 3.50712 8.38775 3.13985zM12.5982 3.13985C12.5982 2.77258 12.8959 2.47485 13.2632 2.47485H14.3158C14.683 2.47485 14.9808 2.77258 14.9808 3.13985 14.9808 3.50712 14.683 3.80485 14.3158 3.80485H13.2632C12.8959 3.80485 12.5982 3.50712 12.5982 3.13985zM1.01953 7.99972C1.01953 7.63245 1.31726 7.33472 1.68453 7.33472H14.3158C14.683 7.33472 14.9808 7.63245 14.9808 7.99972 14.9808 8.36699 14.683 8.66472 14.3158 8.66472H1.68453C1.31726 8.66472 1.01953 8.36699 1.01953 7.99972zM1.68453 12.1951C1.31726 12.1951 1.01953 12.4928 1.01953 12.8601 1.01953 13.2273 1.31726 13.5251 1.68453 13.5251H2.73713C3.1044 13.5251 3.40213 13.2273 3.40213 12.8601 3.40213 12.4928 3.1044 12.1951 2.73713 12.1951H1.68453zM4.84234 12.1951C4.47507 12.1951 4.17734 12.4928 4.17734 12.8601 4.17734 13.2273 4.47507 13.5251 4.84234 13.5251H6.94754C7.31481 13.5251 7.61254 13.2273 7.61254 12.8601 7.61254 12.4928 7.31481 12.1951 6.94754 12.1951H4.84234zM9.05275 12.1951C8.68548 12.1951 8.38775 12.4928 8.38775 12.8601 8.38775 13.2273 8.68548 13.5251 9.05275 13.5251H11.158C11.5252 13.5251 11.823 13.2273 11.823 12.8601 11.823 12.4928 11.5252 12.1951 11.158 12.1951H9.05275zM13.2632 12.1951C12.8959 12.1951 12.5982 12.4928 12.5982 12.8601 12.5982 13.2273 12.8959 13.5251 13.2632 13.5251H14.3158C14.683 13.5251 14.9808 13.2273 14.9808 12.8601 14.9808 12.4928 14.683 12.1951 14.3158 12.1951H13.2632z"}}]},J=f.forwardRef(function(r,t){return f.createElement(T,Object.assign({},r,{id:"divider-single",ref:t,icon:_e}))});J.displayName="DividerSingle";var Se={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z"}}]},X=f.forwardRef(function(r,t){return f.createElement(T,Object.assign({},r,{id:"text-single",ref:t,icon:Se}))});X.displayName="TextSingle";var Pe=Object.getOwnPropertyDescriptor,ye=(r,t,e,n)=>{for(var i=n>1?void 0:n?Pe(t,e):t,o=r.length-1,c;o>=0;o--)(c=r[o])&&(i=c(i)||i);return i},N=(r,t)=>(e,n)=>t(e,n,r);exports.DocQuickInsertUIController=class extends s.Disposable{constructor(t,e,n){super(),this._commandService=t,this._docQuickInsertPopupService=e,this._componentManager=n,this._initCommands(),this._initComponents(),this._initMenus()}_initCommands(){[A,z,k].forEach(t=>{this.disposeWithMe(this._commandService.registerCommand(t))})}_initComponents(){this.disposeWithMe(this._componentManager.register(R.componentKey,R)),this.disposeWithMe(this._componentManager.register(w.componentKey,w)),this.disposeWithMe(this._componentManager.register("DividerSingle",J)),this.disposeWithMe(this._componentManager.register("TextSingle",X)),[{keyword:"/",menus$:_.of(pe),preconditions:e=>{var n;return((n=e.range.startNodePosition)==null?void 0:n.glyph)===0}}].forEach(e=>{this.disposeWithMe(this._docQuickInsertPopupService.registerPopup(e))})}_initMenus(){}};exports.DocQuickInsertUIController=ye([N(0,s.ICommandService),N(1,s.Inject(exports.DocQuickInsertPopupService)),N(2,s.Inject(a.ComponentManager))],exports.DocQuickInsertUIController);var Oe=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,be=(r,t,e)=>t in r?Oe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,De=(r,t,e,n)=>{for(var i=n>1?void 0:n?xe(t,e):t,o=r.length-1,c;o>=0;o--)(c=r[o])&&(i=c(i)||i);return i},ke=(r,t)=>(e,n)=>t(e,n,r),Y=(r,t,e)=>be(r,typeof t!="symbol"?t+"":t,e);const Me="DOC_QUICK_INSERT_UI_PLUGIN";exports.UniverDocsQuickInsertUIPlugin=class extends s.Plugin{constructor(t){super(),this._injector=t}onStarting(){[[exports.DocQuickInsertUIController],[exports.DocQuickInsertTriggerController],[exports.DocQuickInsertPopupService]].forEach(e=>this._injector.add(e)),this._injector.get(exports.DocQuickInsertUIController)}onRendered(){this._injector.get(exports.DocQuickInsertTriggerController),this._injector.get(exports.DocQuickInsertPopupService)}};Y(exports.UniverDocsQuickInsertUIPlugin,"type",s.UniverInstanceType.UNIVER_DOC);Y(exports.UniverDocsQuickInsertUIPlugin,"pluginName",Me);exports.UniverDocsQuickInsertUIPlugin=De([s.DependentOn(ce.UniverDrawingUIPlugin,oe.UniverDrawingPlugin,se.UniverDocsDrawingPlugin,a.UniverUIPlugin),ke(0,s.Inject(s.Injector))],exports.UniverDocsQuickInsertUIPlugin);
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"Numbered List",bulletedList:"Bulleted List",divider:"Divider",text:"Text"},group:{basics:"Basics"},placeholder:"No results found",keywordInputPlaceholder:"Enter keywords"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"لیست شمارهدار",bulletedList:"لیست نقطهدار",divider:"خط تقسیم",text:"متن"},group:{basics:"بنیادی"},placeholder:"هیچ نتیجهای یافت نشد",keywordInputPlaceholder:"وارد کلمات کلیدی"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"Liste numérotée",bulletedList:"Liste à puces",divider:"Ligne de séparation",text:"Texte"},group:{basics:"Basiques"},placeholder:"Aucun résultat",keywordInputPlaceholder:"Entrez des mots clés"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"Список с нумерацией",bulletedList:"Маркированный список",divider:"Разделительная линия",text:"Текст"},group:{basics:"Основные"},placeholder:"Нет результатов",keywordInputPlaceholder:"Введите ключевые слова"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"Danh sách được đánh số",bulletedList:"Danh sách không được đánh số",divider:"Đường phân cách",text:"Văn bản"},group:{basics:"Cơ bản"},placeholder:"Không có kết quả",keywordInputPlaceholder:"Nhập từ khóa"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"无序列表",divider:"分隔线",text:"文本"},group:{basics:"基础"},placeholder:"暂无结果",keywordInputPlaceholder:"输入关键词"}};module.exports=e;
@@ -0,0 +1 @@
1
+ "use strict";const e={docQuickInsert:{menu:{numberedList:"有序列表",bulletedList:"無序列表",divider:"分隔線",text:"文本"},group:{basics:"基礎"},placeholder:"無結果",keywordInputPlaceholder:"輸入關鍵詞"}};module.exports=e;