@omegagrid/bundle 0.10.33 → 0.10.34

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 (2) hide show
  1. package/omegagrid.js +5 -5
  2. package/package.json +18 -18
package/omegagrid.js CHANGED
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  :host([orientation=vertical]) .item {
47
- border-top: 1px solid var(--og--bucket-border-color);
47
+ border-top: 1px solid var(--og-bucket-border-color);
48
48
  }
49
49
 
50
50
  .item:nth-child(1) {
@@ -7922,7 +7922,7 @@ milkdown-block-handle {
7922
7922
  img.emoji {
7923
7923
  vertical-align: middle;
7924
7924
  }
7925
- `];var vS,bS,yS=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const wS={};class xS{static init(t){vS.milkdownPath=t}static async get(){return yS(this,vS,"f",bS)||function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?r.call(t,i):r?r.value=i:e.set(t,i)}(this,vS,await this.load(),"f",bS),Object.assign(wS,yS(this,vS,"f",bS)),yS(this,vS,"f",bS)}static getSync(){return yS(this,vS,"f",bS)}static async load(){return window.Milkdown?window.Milkdown:new Promise(((t,e)=>cs.load(this.milkdownPath).then((()=>{window.Milkdown?t(window.Milkdown):e("Failed to load Milkdown")})).catch((t=>{console.error("Failed to load Milkdown",t),e(t)}))))}}async function kS(t){const e=await xS.get(),i=e.core.Editor.make(),o=Array.from(sE(i,e,t).entries()).filter((([t,e])=>e.default));return i.config(iE(o.map((t=>t[0])),e)).config((i=>{t?.container&&i.set(e.core.rootCtx,t.container),t?.content&&i.set(e.core.defaultValueCtx,t.content),t?.readOnly&&i.update(e.core.editorViewOptionsCtx,(t=>({...t,editable:()=>!1}))),i.update(e.plugins.indent.indentConfig.key,(t=>({...t,size:4}))),i.get(e.plugins.listener.listenerCtx).markdownUpdated(((e,i,o)=>{t?.onChange&&i!==o&&t.onChange(i,o)}))})).use(e.presets.commonmark.commonmark).use(e.plugins.listener.listener).use(e.plugins.history.history).use(e.plugins.indent.indent).use(e.plugins.trailing.trailing).use(e.plugins.clipboard.clipboard).use(e.presets.gfm.gfm),o.forEach((t=>t[1].init())),await i.create(),i}async function CS(t,e){const i=await kS(Object.assign({},e,{content:t,readOnly:!0})),o=xS.getSync(),r=document.createElement("div"),s=i.ctx.get(o.core.schemaCtx),n=i.ctx.get(o.core.editorViewCtx),a=o.prose.model.DOMSerializer.fromSchema(s).serializeFragment(n.state.doc.content);for(const t of a.querySelectorAll("img")){const i=t.getAttribute("src");if(i&&e?.modifyImageUrl){const o=e.modifyImageUrl(i);t.setAttribute("src","string"==typeof o?o:await o)}t.hasAttribute("ratio")&&(t.style.width=100*parseFloat(t.getAttribute("ratio"))+"%")}return r.appendChild(a),i.destroy(),r.innerHTML}vS=xS,bS={value:void 0};var MS,_S,SS,zS=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n},ES=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},LS=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};class IS extends Event{constructor(t){super("markdown.link",{bubbles:!0,composed:!0,cancelable:!0}),Object.assign(this,t)}}let RS=class extends zn{get content(){return ES(this,MS,"f")}set content(t){LS(this,MS,t,"f"),ES(this,SS,"f")?.destroy(),LS(this,SS,null,"f"),this.requestUpdate()}get milkdownElm(){return this.container.firstElementChild}get editor(){return ES(this,SS,"f")}constructor(){super(),MS.set(this,void 0),this.maxContentWidth=800,this.contentAlignment="left",this.readOnly=!1,_S.set(this,!1),SS.set(this,void 0),this._onChange=(t,e)=>{LS(this,MS,t,"f"),this.dispatchEvent(new Xr({value:t,oldValue:e}))},this.render=()=>an`
7925
+ `];var vS,bS,yS=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const wS={};class xS{static init(t){vS.milkdownPath=t}static async get(){return yS(this,vS,"f",bS)||function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?r.call(t,i):r?r.value=i:e.set(t,i)}(this,vS,await this.load(),"f",bS),Object.assign(wS,yS(this,vS,"f",bS)),yS(this,vS,"f",bS)}static getSync(){return yS(this,vS,"f",bS)}static async load(){return window.Milkdown?window.Milkdown:new Promise(((t,e)=>cs.load(this.milkdownPath).then((()=>{window.Milkdown?t(window.Milkdown):e("Failed to load Milkdown")})).catch((t=>{console.error("Failed to load Milkdown",t),e(t)}))))}}async function kS(t){const e=await xS.get(),i=e.core.Editor.make(),o=Array.from(sE(i,e,t).entries()).filter((([t,e])=>e.default));return i.config(iE(o.map((t=>t[0])),e)).config((i=>{t?.container&&i.set(e.core.rootCtx,t.container),t?.content&&i.set(e.core.defaultValueCtx,t.content),i.update(e.core.editorViewOptionsCtx,(o=>{const r={...o};return t?.readOnly&&(r.editable=()=>!1),t?.onUpload&&(r.handlePaste=(o,r)=>{const s=Array.from(r.clipboardData?.files??[]).filter((t=>t.type.startsWith("image/")));return!!s.length&&(r.preventDefault(),(async()=>{const r=e.components.imageBlock.imageBlockSchema.type(i);for(const e of s){const i=await t.onUpload(e);if(!i)continue;const s=r.create({src:i});o.dispatch(o.state.tr.replaceSelectionWith(s))}})(),!0)}),r})),i.update(e.plugins.indent.indentConfig.key,(t=>({...t,size:4}))),i.get(e.plugins.listener.listenerCtx).markdownUpdated(((e,i,o)=>{t?.onChange&&i!==o&&t.onChange(i,o)}))})).use(e.presets.commonmark.commonmark).use(e.plugins.listener.listener).use(e.plugins.history.history).use(e.plugins.indent.indent).use(e.plugins.trailing.trailing).use(e.plugins.clipboard.clipboard).use(e.presets.gfm.gfm),o.forEach((t=>t[1].init())),await i.create(),i}async function CS(t,e){const i=await kS(Object.assign({},e,{content:t,readOnly:!0})),o=xS.getSync(),r=document.createElement("div"),s=i.ctx.get(o.core.schemaCtx),n=i.ctx.get(o.core.editorViewCtx),a=o.prose.model.DOMSerializer.fromSchema(s).serializeFragment(n.state.doc.content);for(const t of a.querySelectorAll("img")){const i=t.getAttribute("src");if(i&&e?.modifyImageUrl){const o=e.modifyImageUrl(i);t.setAttribute("src","string"==typeof o?o:await o)}t.hasAttribute("ratio")&&(t.style.width=100*parseFloat(t.getAttribute("ratio"))+"%")}return r.appendChild(a),i.destroy(),r.innerHTML}vS=xS,bS={value:void 0};var MS,_S,SS,zS=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n},ES=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},LS=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};class IS extends Event{constructor(t){super("markdown.link",{bubbles:!0,composed:!0,cancelable:!0}),Object.assign(this,t)}}let RS=class extends zn{get content(){return ES(this,MS,"f")}set content(t){LS(this,MS,t,"f"),ES(this,SS,"f")?.destroy(),LS(this,SS,null,"f"),this.requestUpdate()}get milkdownElm(){return this.container.firstElementChild}get editor(){return ES(this,SS,"f")}constructor(){super(),MS.set(this,void 0),this.maxContentWidth=800,this.contentAlignment="left",this.readOnly=!1,_S.set(this,!1),SS.set(this,void 0),this._onChange=(t,e)=>{LS(this,MS,t,"f"),this.dispatchEvent(new Xr({value:t,oldValue:e}))},this.render=()=>an`
7926
7926
  <style>
7927
7927
  .ProseMirror.editor { max-width: ${this.maxContentWidth}px; }
7928
7928
  </style>
@@ -8031,7 +8031,7 @@ milkdown-block-handle {
8031
8031
  flex: 0;
8032
8032
  text-align: center;
8033
8033
  }
8034
- `,iz=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}([Ln("og-markdown-toolbar")],iz);class oz{constructor(t,e,i){QS.set(this,void 0),KS.set(this,void 0),JS.set(this,void 0),this.update=(t,e)=>{ez(this,QS,"f").update(t,e)},this.destroy=()=>{ez(this,QS,"f").destroy(),ez(this,JS,"f").remove()},this.hide=()=>{ez(this,QS,"f").hide()},tz(this,KS,t,"f");const o=yt("og-markdown-toolbar");o.addEventListener("hide",(()=>ez(this,QS,"f").hide())),o.ctx=t,o.md=i,tz(this,JS,o,"f"),tz(this,QS,new i.plugins.tooltip.TooltipProvider({content:ez(this,JS,"f"),offset:10,debounce:20,shouldShow(t){const{doc:e,selection:r}=t.state,{empty:s,from:n,to:a}=r,l=!e.textBetween(n,a).length&&r instanceof i.prose.state.TextSelection,c=!(r instanceof i.prose.state.TextSelection),h=t.dom.getRootNode().activeElement,d=o.contains(h),u=!t.hasFocus()&&!d,p=!t.editable;return!(u||c||s||l||p)}}),"f"),ez(this,QS,"f").onShow=()=>{xt(ez(this,JS,"f")),ez(this,JS,"f").requestUpdate()},ez(this,QS,"f").onHide=()=>kt(ez(this,JS,"f")),this.update(e)}}function rz(t){const{$from:e,$to:i}=t.selection,o=e.pos-e.node().content.size;return o>=0&&(t=t.deleteRange(o,i.pos)),t}function sz(t,e,i=null){const o=e.createAndFill(i);return o?t.replaceSelectionWith(o):null}function nz(t,e=null){return(i,o)=>{if(o){const r=function(t,e,i=null){const{from:o,to:r}=t.selection;return t.setBlockType(o,r,e,i)}(rz(i.tr),t,e);o(r.scrollIntoView())}return!0}}function az(t,e=null){return(i,o)=>{const r=function(t,e,i=null){const{$from:o,$to:r}=t.selection,s=o.blockRange(r),n=s&&xS.getSync().prose.transform.findWrapping(s,e,i);return n?t.wrap(s,n):null}(rz(i.tr),t,e);return!!r&&(o&&o(r.scrollIntoView()),!0)}}function lz(t,e=null){return(i,o)=>{const r=sz(rz(i.tr),t,e);return!!r&&(o&&o(r.scrollIntoView()),!0)}}QS=new WeakMap,KS=new WeakMap,JS=new WeakMap;const cz={text:"Please enter...",mode:"block"},hz=t=>{const e=t.utils.$ctx(cz,"placeholderConfigCtx"),i=t.utils.$prose((i=>new t.prose.state.Plugin({key:new t.prose.state.PluginKey("MARKDOWN_PLACEHOLDER"),props:{decorations:o=>{const r=i.get(e.key);if("doc"===r.mode&&(!((s=o.doc).childCount<=1)||s.firstChild?.content.size))return null;var s;if("code_block"===o.selection.$from.parent.type.name||function(t){const e=t.$from.node(t.$from.depth-1)?.type;return"list_item"===e?.name}(o.selection))return null;const n=r.text??"Please enter...",a=function(t,e,i){const{selection:o}=e;if(!o.empty)return null;const r=o.$anchor,s=r.parent;if(s.content.size>0)return null;const n=t.prose.findParent((t=>"table"===t.type.name))(r);if(n)return null;const a=r.before();return t.prose.view.Decoration.node(a,a+s.nodeSize,{class:"crepe-placeholder","data-placeholder":i})}(t,o,n);return a?t.prose.view.DecorationSet.create(o.doc,[a]):null}}})));return{plugin:i,config:e}};class dz{get editor(){return this.dom?.editor?.editor}get model(){return this.editor?.getModel()}constructor(t,e,i,o){this.md=t,this.node=e,this.view=i,this.getPos=o,this.updating=!1,this.languageName="plaintext",this._onChange=t=>{if(this.updating)return;const e=t.editor.getModel(),i=this.view.state.tr;this.view.dispatch(i.setNodeAttribute(this.getPos()??0,"content",e.getValue()))},this.setLanguage=t=>{this.view.dispatch(this.view.state.tr.setNodeAttribute(this.getPos()??0,"language",t))},this.dom=this.createComponent(),this.updateLanguage()}createComponent(){const t=this.view.editable?yt("og-code-block"):yt("og-code-view");return t.content=this.node.textContent,t instanceof Wf?(t.dynamicHeight=!0,t.editorOptions={minimap:{enabled:!1},stickyScroll:{enabled:!1}},t.addEventListener("code.change",this._onChange),t.addEventListener("changeLanguage",(t=>this.setLanguage(t.value)))):t.copy=!0,t}setSelection(t,e){if(!this.dom?.isConnected)return;this.dom.focus(),this.updating=!0;const i=this.model;if(i){const o=i.getPositionAt(t),r=i.getPositionAt(e);this.editor.setSelection({startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:r.lineNumber,endColumn:r.column})}this.updating=!1}update(t){return t.type===this.node.type&&(this.updating||(this.node=t,this.updateLanguage(),this.dom.content=t.textContent),!0)}selectNode(){this.dom.focus()}deselectNode(){}stopEvent(){return!0}destroy(){}updateLanguage(){this.languageName=this.node.attrs.language||"plaintext",this.dom.language=this.languageName}}const uz={};var pz,gz=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n},mz=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},fz=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let vz=class extends zn{get content(){return mz(this,pz,"f")}set content(t){fz(this,pz,t,"f"),this.requestUpdate()}constructor(){super(),pz.set(this,""),this.editable=!1,this.editing=!1,this.startEdit=()=>{this.editing=!0},this.render=()=>this.editable?an`
8034
+ `,iz=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}([Ln("og-markdown-toolbar")],iz);class oz{constructor(t,e,i){QS.set(this,void 0),KS.set(this,void 0),JS.set(this,void 0),this.update=(t,e)=>{ez(this,QS,"f").update(t,e)},this.destroy=()=>{ez(this,QS,"f").destroy(),ez(this,JS,"f").remove()},this.hide=()=>{ez(this,QS,"f").hide()},tz(this,KS,t,"f");const o=yt("og-markdown-toolbar");o.addEventListener("hide",(()=>ez(this,QS,"f").hide())),o.ctx=t,o.md=i,tz(this,JS,o,"f"),tz(this,QS,new i.plugins.tooltip.TooltipProvider({content:ez(this,JS,"f"),offset:10,debounce:20,shouldShow(t){const{doc:e,selection:r}=t.state,{empty:s,from:n,to:a}=r,l=!e.textBetween(n,a).length&&r instanceof i.prose.state.TextSelection,c=!(r instanceof i.prose.state.TextSelection),h=t.dom.getRootNode().activeElement,d=o.contains(h),u=!t.hasFocus()&&!d,p=!t.editable;return!(u||c||s||l||p)}}),"f"),ez(this,QS,"f").onShow=()=>{xt(ez(this,JS,"f")),ez(this,JS,"f").requestUpdate()},ez(this,QS,"f").onHide=()=>kt(ez(this,JS,"f")),this.update(e)}}function rz(t){const{$from:e,$to:i}=t.selection,o=e.pos-e.node().content.size;return o>=0&&(t=t.deleteRange(o,i.pos)),t}function sz(t,e,i=null){const o=e.createAndFill(i);return o?t.replaceSelectionWith(o):null}function nz(t,e=null){return(i,o)=>{if(o){const r=function(t,e,i=null){const{from:o,to:r}=t.selection;return t.setBlockType(o,r,e,i)}(rz(i.tr),t,e);o(r.scrollIntoView())}return!0}}function az(t,e=null){return(i,o)=>{const r=function(t,e,i=null){const{$from:o,$to:r}=t.selection,s=o.blockRange(r),n=s&&xS.getSync().prose.transform.findWrapping(s,e,i);return n?t.wrap(s,n):null}(rz(i.tr),t,e);return!!r&&(o&&o(r.scrollIntoView()),!0)}}function lz(t,e=null){return(i,o)=>{const r=sz(rz(i.tr),t,e);return!!r&&(o&&o(r.scrollIntoView()),!0)}}QS=new WeakMap,KS=new WeakMap,JS=new WeakMap;const cz={text:$o("Please enter..."),mode:"block"},hz=t=>{const e=t.utils.$ctx(cz,"placeholderConfigCtx"),i=t.utils.$prose((i=>new t.prose.state.Plugin({key:new t.prose.state.PluginKey("MARKDOWN_PLACEHOLDER"),props:{decorations:o=>{if(!1===i.get(t.core.editorViewCtx)?.editable)return null;const r=i.get(e.key);if("doc"===r.mode&&(!((s=o.doc).childCount<=1)||s.firstChild?.content.size))return null;var s;if("code_block"===o.selection.$from.parent.type.name||function(t){const e=t.$from.node(t.$from.depth-1)?.type;return"list_item"===e?.name}(o.selection))return null;const n=r.text??$o("Please enter..."),a=function(t,e,i){const{selection:o}=e;if(!o.empty)return null;const r=o.$anchor,s=r.parent;if(s.content.size>0)return null;const n=t.prose.findParent((t=>"table"===t.type.name))(r);if(n)return null;const a=r.before();return t.prose.view.Decoration.node(a,a+s.nodeSize,{class:"crepe-placeholder","data-placeholder":i})}(t,o,n);return a?t.prose.view.DecorationSet.create(o.doc,[a]):null}}})));return{plugin:i,config:e}};class dz{get editor(){return this.dom?.editor?.editor}get model(){return this.editor?.getModel()}constructor(t,e,i,o){this.md=t,this.node=e,this.view=i,this.getPos=o,this.updating=!1,this.languageName="plaintext",this._onChange=t=>{if(this.updating)return;const e=t.editor.getModel(),i=this.view.state.tr;this.view.dispatch(i.setNodeAttribute(this.getPos()??0,"content",e.getValue()))},this.setLanguage=t=>{this.view.dispatch(this.view.state.tr.setNodeAttribute(this.getPos()??0,"language",t))},this.dom=this.createComponent(),this.updateLanguage()}createComponent(){const t=this.view.editable?yt("og-code-block"):yt("og-code-view");return t.content=this.node.textContent,t instanceof Wf?(t.dynamicHeight=!0,t.editorOptions={minimap:{enabled:!1},stickyScroll:{enabled:!1}},t.addEventListener("code.change",this._onChange),t.addEventListener("changeLanguage",(t=>this.setLanguage(t.value)))):t.copy=!0,t}setSelection(t,e){if(!this.dom?.isConnected)return;this.dom.focus(),this.updating=!0;const i=this.model;if(i){const o=i.getPositionAt(t),r=i.getPositionAt(e);this.editor.setSelection({startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:r.lineNumber,endColumn:r.column})}this.updating=!1}update(t){return t.type===this.node.type&&(this.updating||(this.node=t,this.updateLanguage(),this.dom.content=t.textContent),!0)}selectNode(){this.dom.focus()}deselectNode(){}stopEvent(){return!0}destroy(){}updateLanguage(){this.languageName=this.node.attrs.language||"plaintext",this.dom.language=this.languageName}}const uz={};var pz,gz=function(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n},mz=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},fz=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let vz=class extends zn{get content(){return mz(this,pz,"f")}set content(t){fz(this,pz,t,"f"),this.requestUpdate()}constructor(){super(),pz.set(this,""),this.editable=!1,this.editing=!1,this.startEdit=()=>{this.editing=!0},this.render=()=>this.editable?an`
8035
8035
  <div class="title">Raw HTML</div>
8036
8036
  <div class="body">
8037
8037
  ${this.editing?an`
@@ -8196,7 +8196,7 @@ milkdown-block-handle {
8196
8196
  width: 100%;
8197
8197
  height: 100%;
8198
8198
  }
8199
- `,Qz([Tn({type:Object})],eE.prototype,"ctx",void 0),Qz([Tn({type:Object})],eE.prototype,"md",void 0),eE=Qz([Ln("og-markdown-block-edit-menu")],eE),function(t){t.BlockEdit="block-edit",t.Cursor="cursor",t.CodeEditor="code-editor",t.LinkTooltip="link-tooltip",t.ImageBlock="image-block",t.Toolbar="toolbar",t.Placeholder="placeholder",t.Table="table",t.Html="html",t.Emoji="emoji",t.Toc="toc"}(oE||(oE={}));const rE=t=>async e=>{if(!e)return null;const i=t(e);return"string"==typeof e?i:await i};function sE(t,e,i){const o=i.modifyImageUrl?rE(i.modifyImageUrl):null;return new Map([[oE.BlockEdit,{default:!0,init:()=>{t.config((t=>{t.set(e.plugins.block.blockConfig.key,{filterNodes:t=>!e.prose.findParent((t=>["table","blockquote"].includes(t.type.name)))(t)}),t.set(e.plugins.block.block.key,{view:()=>new BS(t,e)})})).use(e.plugins.block.block)}}],[oE.Cursor,{default:!0,init:()=>{t.config((t=>{t.update(e.plugins.cursor.dropCursorConfig.key,(()=>({class:"md-editor-drop-cursor",width:4})))})).use(e.plugins.cursor.cursor)}}],[oE.ImageBlock,{default:!0,init:()=>{t.config((t=>{t.update(e.components.imageInline.inlineImageConfig.key,(t=>({uploadButton:'<og-icon icon="upload"></og-icon>',imageIcon:'<og-icon icon="image"></og-icon>',confirmButton:'<og-icon icon="check"></og-icon>',uploadPlaceholderText:"or paste link",onUpload:i.onUpload,proxyDomURL:o}))),t.update(e.components.imageBlock.imageBlockConfig.key,(t=>({uploadButton:"Upload file",imageIcon:'<og-icon icon="image"></og-icon>',captionIcon:'<og-icon icon="comment"></og-icon>',confirmButton:"Confirm",captionPlaceholderText:"Write Image Caption",uploadPlaceholderText:"or paste link",onUpload:i.onUpload,proxyDomURL:o})))})).use(e.components.imageBlock.imageBlockComponent).use(e.components.imageInline.imageInlineComponent)}}],[oE.LinkTooltip,{default:!0,init:()=>{const e=Gz.getPlugin();t.config(Gz.configure).use(e)}}],[oE.Toolbar,{default:!0,init:()=>{const i=e.plugins.tooltip.tooltipFactory("MARKDOWN_TOOLBAR");t.config((t=>{t.set(i.key,{view:i=>new oz(t,i,e)})})).use(i)}}],[oE.Placeholder,{default:!0,init:()=>{const{config:i,plugin:o}=hz(e);t.config((t=>{t.update(i.key,(t=>({...t})))})).use(o).use(i)}}],[oE.Table,{default:!0,init:()=>{t.config((t=>{t.update(e.components.tableBlock.tableBlockConfig.key,(t=>({renderButton:t=>{switch(t){case"add_row":case"add_col":return'<og-icon icon="plus"></og-icon>';case"delete_row":case"delete_col":return'<og-icon icon="trash"></og-icon>';case"align_col_left":return'<og-icon icon="align-left"></og-icon>';case"align_col_center":return'<og-icon icon="align-center"></og-icon>';case"align_col_right":return'<og-icon icon="align-right"></og-icon>';case"col_drag_handle":return'<og-icon icon="grip-lines-vertical"></og-icon>';case"row_drag_handle":return'<og-icon icon="grip-lines"></og-icon>'}}})))})).use(e.components.tableBlock.tableBlock)}}],[oE.CodeEditor,{default:!0,init:()=>{const i=function(t){return t.utils.$ctx(uz,"codeEditorConfigCtx")}(e),o=function(t){return t.utils.$view(t.presets.commonmark.codeBlockSchema.node,(e=>(e,i,o)=>new dz(t,e,i,o)))}(e);t.config((t=>{t.update(i.key,(t=>({})))})).use([o,i])}}],[oE.Html,{default:!0,init:()=>{const i=wz(e),o=xz(e);t.config((t=>{t.update(i.key,(t=>({})))})).use([o,i])}}],[oE.Emoji,{default:!0,init:()=>{e.plugins.emoji&&t.use(e.plugins.emoji.emoji)}}],[oE.Toc,{default:!0,init:()=>{const i=zz(e);t.config((t=>{t.update(i.tocConfig.key,(t=>({})))})).use(i.plugins)}}]])}const nE={STATUSBAR_HEIGHT:22,...G},aE=xs`
8199
+ `,Qz([Tn({type:Object})],eE.prototype,"ctx",void 0),Qz([Tn({type:Object})],eE.prototype,"md",void 0),eE=Qz([Ln("og-markdown-block-edit-menu")],eE),function(t){t.BlockEdit="block-edit",t.Cursor="cursor",t.CodeEditor="code-editor",t.LinkTooltip="link-tooltip",t.ImageBlock="image-block",t.Toolbar="toolbar",t.Placeholder="placeholder",t.Table="table",t.Html="html",t.Emoji="emoji",t.Toc="toc"}(oE||(oE={}));const rE=t=>async e=>{if(!e)return null;const i=t(e);return"string"==typeof e?i:await i};function sE(t,e,i){const o=i.modifyImageUrl?rE(i.modifyImageUrl):null;return new Map([[oE.BlockEdit,{default:!0,init:()=>{t.config((t=>{t.set(e.plugins.block.blockConfig.key,{filterNodes:t=>!e.prose.findParent((t=>["table","blockquote"].includes(t.type.name)))(t)}),t.set(e.plugins.block.block.key,{view:()=>new BS(t,e)})})).use(e.plugins.block.block)}}],[oE.Cursor,{default:!0,init:()=>{t.config((t=>{t.update(e.plugins.cursor.dropCursorConfig.key,(()=>({class:"md-editor-drop-cursor",width:4})))})).use(e.plugins.cursor.cursor)}}],[oE.ImageBlock,{default:!0,init:()=>{t.config((t=>{t.update(e.components.imageInline.inlineImageConfig.key,(t=>({uploadButton:'<og-icon icon="upload"></og-icon>',imageIcon:'<og-icon icon="image"></og-icon>',confirmButton:'<og-icon icon="check"></og-icon>',uploadPlaceholderText:$o("or paste link"),onUpload:i.onUpload,proxyDomURL:o}))),t.update(e.components.imageBlock.imageBlockConfig.key,(t=>({uploadButton:$o("Select file"),imageIcon:'<og-icon icon="image"></og-icon>',captionIcon:'<og-icon icon="comment"></og-icon>',confirmButton:$o("Confirm"),captionPlaceholderText:$o("Write Image Caption"),uploadPlaceholderText:$o("or paste link"),onUpload:i.onUpload,proxyDomURL:o})))})).use(e.components.imageBlock.imageBlockComponent).use(e.components.imageInline.imageInlineComponent)}}],[oE.LinkTooltip,{default:!0,init:()=>{const e=Gz.getPlugin();t.config(Gz.configure).use(e)}}],[oE.Toolbar,{default:!0,init:()=>{const i=e.plugins.tooltip.tooltipFactory("MARKDOWN_TOOLBAR");t.config((t=>{t.set(i.key,{view:i=>new oz(t,i,e)})})).use(i)}}],[oE.Placeholder,{default:!0,init:()=>{const{config:i,plugin:o}=hz(e);t.config((t=>{t.update(i.key,(t=>({...t})))})).use(o).use(i)}}],[oE.Table,{default:!0,init:()=>{t.config((t=>{t.update(e.components.tableBlock.tableBlockConfig.key,(t=>({renderButton:t=>{switch(t){case"add_row":case"add_col":return'<og-icon icon="plus"></og-icon>';case"delete_row":case"delete_col":return'<og-icon icon="trash"></og-icon>';case"align_col_left":return'<og-icon icon="align-left"></og-icon>';case"align_col_center":return'<og-icon icon="align-center"></og-icon>';case"align_col_right":return'<og-icon icon="align-right"></og-icon>';case"col_drag_handle":return'<og-icon icon="grip-lines-vertical"></og-icon>';case"row_drag_handle":return'<og-icon icon="grip-lines"></og-icon>'}}})))})).use(e.components.tableBlock.tableBlock)}}],[oE.CodeEditor,{default:!0,init:()=>{const i=function(t){return t.utils.$ctx(uz,"codeEditorConfigCtx")}(e),o=function(t){return t.utils.$view(t.presets.commonmark.codeBlockSchema.node,(e=>(e,i,o)=>new dz(t,e,i,o)))}(e);t.config((t=>{t.update(i.key,(t=>({})))})).use([o,i])}}],[oE.Html,{default:!0,init:()=>{const i=wz(e),o=xz(e);t.config((t=>{t.update(i.key,(t=>({})))})).use([o,i])}}],[oE.Emoji,{default:!0,init:()=>{e.plugins.emoji&&t.use(e.plugins.emoji.emoji)}}],[oE.Toc,{default:!0,init:()=>{const i=zz(e);t.config((t=>{t.update(i.tocConfig.key,(t=>({})))})).use(i.plugins)}}]])}const nE={STATUSBAR_HEIGHT:22,...G},aE=xs`
8200
8200
  * {
8201
8201
  box-sizing: border-box;
8202
8202
  }
@@ -9939,4 +9939,4 @@ milkdown-block-handle {
9939
9939
  `:null}
9940
9940
  </div>
9941
9941
  </og-panel>
9942
- `:null,this.addEventListener("mousedown",(t=>t.stopPropagation()))}getTypeIndex(t){const e=this.types.findIndex((e=>e.type==t.type&&e.grouping==(t.grouping||"standard")));return e>-1?e:null}updateModel(){if(this.editTitle=!1,!this.model)return;this.titleInput&&(this.model.title=this.titleInput.value);const t=this.types[this.typeList.value];this.model.type=t.type,this.model.grouping=t.grouping,this.model.categoriesRange=this.categoryRangeInput?.value?_v.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?_v.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=_v.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Xr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};RL.styles=[LL],IL([Tn({type:Object})],RL.prototype,"model",void 0),IL([$n()],RL.prototype,"editTitle",void 0),IL([Dn("#title")],RL.prototype,"titleInput",void 0),IL([Dn("#type")],RL.prototype,"typeList",void 0),IL([Dn("#dataRange")],RL.prototype,"dataRangeInput",void 0),IL([Dn("#seriesRange")],RL.prototype,"seriesRangeInput",void 0),IL([Dn("#categoryRange")],RL.prototype,"categoryRangeInput",void 0),RL=IL([Ln("og-plugin-chart-form")],RL);const TL=Xa().themes.get("og-dark");Object.assign(TL.definition,{"highcharts-title-font-size":"16px","highcharts-subtitle-font-size":"14px","highcharts-color-0":"#2caffe","highcharts-color-1":"#544fc5","highcharts-color-2":"#00e272","highcharts-color-3":"#fe6a35","highcharts-color-4":"#6b8abc","highcharts-color-5":"#d568fb","highcharts-color-6":"#2ee0ca","highcharts-color-7":"#fa4b42","highcharts-color-8":"#feb56a","highcharts-color-9":"#91e8e1","highcharts-background-color":"rgb(48, 48, 48)","highcharts-neutral-color-100":"rgb(255, 255, 255)","highcharts-neutral-color-80":"rgb(214, 214, 214)","highcharts-neutral-color-60":"rgb(173, 173, 173)","highcharts-neutral-color-40":"rgb(133, 133, 133)","highcharts-neutral-color-20":"rgb(92, 92, 92)","highcharts-neutral-color-10":"rgb(71, 71, 71)","highcharts-neutral-color-5":"rgb(61, 61, 61)","highcharts-neutral-color-3":"rgb(57, 57, 57)","highcharts-highlight-color-100":"rgb(122, 167, 255)","highcharts-highlight-color-80":"rgb(108, 144, 214)","highcharts-highlight-color-60":"rgb(94, 121, 173)","highcharts-highlight-color-20":"rgb(65, 74, 92)","highcharts-highlight-color-10":"rgb(58, 63, 71)"});const $L=Xa().themes.get("og-light");Object.assign($L.definition,{"highcharts-title-font-size":"16px","chart-background-color":"#2a2a2b","highcharts-color-0":"#2caffe","highcharts-color-1":"#544fc5","highcharts-color-2":"#00e272","highcharts-color-3":"#fe6a35","highcharts-color-4":"#6b8abc","highcharts-color-5":"#d568fb","highcharts-color-6":"#2ee0ca","highcharts-color-7":"#fa4b42","highcharts-color-8":"#feb56a","highcharts-color-9":"#91e8e1","highcharts-background-color":"#ffffff","highcharts-neutral-color-100":"#000000","highcharts-neutral-color-80":"#333333","highcharts-neutral-color-60":"#666666","highcharts-neutral-color-40":"#999999","highcharts-neutral-color-20":"#cccccc","highcharts-neutral-color-10":"#e6e6e6","highcharts-neutral-color-5":"#f2f2f2","highcharts-neutral-color-3":"#f7f7f7","highcharts-highlight-color-100":"#0022ff","highcharts-highlight-color-80":"#334eff","highcharts-highlight-color-60":"#667aff","highcharts-highlight-color-20":"#ccd3ff","highcharts-highlight-color-10":"#e6e9ff","highcharts-positive-color":"#06b535","highcharts-negative-color":"#f21313","highcharts-annotation-color-0":"rgba(130, 170, 255, 0.4)","highcharts-annotation-color-1":"rgba(139, 191, 216, 0.4)","highcharts-annotation-color-2":"rgba(150, 216, 192, 0.4)","highcharts-annotation-color-3":"rgba(156, 229, 161, 0.4)","highcharts-annotation-color-4":"rgba(162, 241, 130, 0.4)","highcharts-annotation-color-5":"rgba(169, 255, 101, 0.4)"});var AL=i(6946),DL=i(6471),OL=i(4969),NL=i(9502),PL=i(7706),jL=i(1480),HL=i(2006),FL=i(7503),BL=i(7873),WL=i(8746),VL=i(2570),UL=i(8815),GL=i(6390),qL=i(6593),YL=i(895),ZL=i(9083),XL=i(6093),QL=i(9685),KL=i(9849),JL=i(8268),tI=i(4693),eI=i(3599),iI=i(782),oI=i(754),rI=i(5700),sI=i(4731),nI=i(7291),aI=i(597),lI=i(1474),cI=i(6224),hI=i(6239),dI=i(6828),uI=i(2212),pI=i(863),gI=i(3602),mI=i(1985),fI=i(886),vI=i(7201),bI=i(9937),yI=i(8450),wI=i(9630),xI=i(9766),kI=i(388),CI=i(1903),MI=i(398),_I=i(6105),SI=i(6147),zI=i(5722),EI=i(5576),LI=i(3131),II=i(6308),RI=i(9645),TI=i(3199),$I=i(871),AI=i(5251),DI=i(6426),OI=i(2643),NI=i(8522),PI=i(6398),jI=i(2525),HI=i(8434),FI=i(6138),BI=i(5835),WI=i(5654),VI=i(6659),UI=i(2977),GI=i(4480),qI=i(9886),YI=i(6815),ZI=i(1582),XI=i(2968),QI=i(394),KI=i(7024),JI=i(7853),tR=i(8249),eR=i(2869),iR=i(486),oR=i(5735),rR=i(470),sR=i(4612),nR=i(4018),aR=i(1476),lR=i(3194),cR=i(3525),hR=i(7541),dR=i(4104),uR=i(6686),pR=i(7719),gR=i(3898),mR=i(8153),fR=i(3690),vR=i(1776),bR=i(4980),yR=i(5578),wR=i(9613),xR=i(1119),kR=i(8444),CR=i(2978),MR=i(9130),_R=i(2127),SR=i(2732),zR=i(4287),ER=i(4045),LR=i(7642),IR=i(1367),RR=i(320),TR=i(821),$R=i(102),AR=i(7683),DR=i(3980),OR=i(576),NR=i(654),PR=i(73),jR=i(140),HR=i(8129),FR=i(5087),BR=i(6992),WR=i(8247),VR=i(8038),UR=i(5286),GR=i(9179),qR=i(1808),YR=i(9459),ZR=i(2883),XR=i(9124),QR=i(7067),KR=i(1054),JR=i(7325),tT=i(1272),eT=i(3359),iT=i(6562),oT=i(4193),rT=i(6348),sT=i(2435),nT=i(7544),aT=i(4470),lT=i(9111),cT=i(9318),hT=i(7294),dT=i(4479),uT=i(2409),pT=i(3091),gT=i(5789),mT=i(5890),fT=i(3874),vT=i(2907),bT=i(1175),yT=i(1686),wT=i(703),xT=i(6606),kT=i(4194),CT=i(6228),MT=i(62),_T=i(2072),ST=i(9744),zT=i(25),ET=i(2618),LT=i(1988),IT=i(8013),RT=i(1133),TT=i(362),$T=i(6845),AT=i(6800),DT=i(1103),OT=i(4933),NT=i(7284),PT=i(2620),jT=i(2366),HT=i(7457),FT=i(2449),BT=i(2),WT=i(5697),VT=i(7069),UT=i(4716),GT=i(4740),qT=i(4557),YT=i(1868),ZT=i(8647),XT=i(5127),QT=i(4816),KT=i(4009),JT=i(5104),t$=i(2830),e$=i(3093),i$=i(5029),o$=i(3514),r$=i(2142),s$=i(4999),n$=i(7523),a$=i(346),l$=i(7917),c$=i(3976),h$=i(9801),d$=i(2464),u$=i(5511),p$=i(5210),g$=i(5815),m$=i(3339),f$=i(7472),v$=i(8811),b$=i(8548),y$=i(6880),w$=i(1840),x$=i(5547),k$=i(4788),C$=i(9467),M$=i(9187),_$=i(9217),S$=i(7897),z$=i(2644),E$=i(6204),L$=i(1472),I$=i(1247),R$=i(7406),T$=i(925),$$=i(7455),A$=i(3771),D$=i(1549),O$=i(3541),N$=i(3140),P$=i(9800),j$=i(229),H$=i(2677),F$=i(1844),B$=i(3245),W$=i(9056),V$=i(7535),U$=i(2359),G$=i(15),q$=i(5569),Y$=i(2014),Z$=i(1599),X$=i(6521),Q$=i(232),K$=i(9745),J$=i(9594),tA=i(6979),eA=i(4494),iA=i(312),oA=i(4983),rA=i(1258),sA=i(6313),nA=i(12),aA=i(8003),lA=i(7830),cA=i(8875),hA=i(3911),dA=i(1817),uA=i(478),pA=i(2585),gA=i(6564),mA=i(2884),fA=i(3825),vA=i(7348),bA=i(9277),yA=i(4118),wA=i(9200),xA=i(51),kA=i(2872),CA=i(4702),MA=i(9281),_A=i(1394),SA=i(7295),zA=i(2936),EA=i(3789),LA=i(3614),IA=i(4827),RA=i(9204),TA=i(9113),$A=i(4058),AA=i(9939),DA=i(1139);const OA=[AL.mw,DL.mw,OL.mw,NL.mw,PL.mw,jL.mw,HL.mw,FL.mw,WL.mw,UL.mw,VL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,rI.mw,sI.mw,nI.mw,aI.mw,lI.mw,cI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,xI.mw,kI.mw,CI.mw,_I.mw,MI.mw,SI.mw,zI.mw,EI.mw,LI.mw,II.mw,RI.mw,TI.mw,$I.mw,AI.mw,DI.mw,OI.mw,NI.mw,jI.mw,HI.mw,FI.mw,BI.mw,WI.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,PI.mw,rR.mw,sR.mw,nR.mw,aR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,vR.mw,bR.mw,yR.mw,wR.mw,xR.mw,kR.mw,CR.mw,MR.mw,_R.mw,SR.mw,zR.mw,ER.mw,LR.mw,IR.mw,RR.mw,TR.mw,$R.mw,AR.mw,DR.mw,OR.mw,NR.mw,PR.mw,jR.mw,HR.mw,FR.mw,BR.mw,WR.mw,VR.mw,hI.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,sT.mw,BL.mw,nT.mw,aT.mw],NA=[lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,vT.mw,yT.mw,bT.mw,xT.mw,wT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.mw,zT.mw,ET.mw,LT.mw,IT.mw,DT.mw,OT.mw,NT.mw,PT.mw,jT.mw,HT.mw,FT.mw,WT.mw,VT.mw,UT.mw,XT.mw,QT.mw,KT.mw,JT.mw,t$.mw,e$.mw,i$.mw,o$.mw,RT.mw,TT.mw,AT.mw,$T.mw,r$.mw,s$.mw,n$.mw,a$.mw,l$.mw,c$.mw,h$.mw,d$.mw,GT.mw,qT.mw,YT.mw,ZT.mw,p$.mw,g$.mw,m$.mw,f$.mw,v$.mw,b$.mw,y$.mw,w$.mw,x$.mw,k$.mw,C$.mw,M$.mw,_$.mw,S$.mw,z$.mw,E$.mw,L$.mw,I$.mw,R$.mw,u$.mw,T$.mw,$$.mw,A$.mw,D$.mw,O$.mw,N$.mw,P$.mw,j$.mw,H$.mw,F$.mw,B$.mw,W$.mw,V$.mw,U$.mw,G$.mw,q$.mw,Y$.mw,Z$.mw,X$.mw,Q$.mw,K$.mw,J$.mw,tA.mw,eA.mw,iA.mw,oA.mw,rA.mw,sA.mw,nA.mw,aA.mw,lA.mw,cA.mw,hA.mw,dA.mw,uA.mw,pA.mw,gA.mw,mA.mw,fA.mw,vA.mw,bA.mw,BT.mw,yA.mw,wA.mw,xA.mw,kA.mw,CA.mw,MA.mw,_A.mw,SA.mw,zA.mw,EA.mw,LA.mw,IA.mw,RA.mw,TA.mw,$A.mw,fT.mw,AA.mw,DA.mw],PA={xlsx:F,charts:B},jA={name:"@omegagrid/bundle",version:"0.10.33"};Xa().activate("light"),Hd.styleDefault="fal",Fd.add(OA),Fd.add(NA)})(),window.Omegagrid=o})();
9942
+ `:null,this.addEventListener("mousedown",(t=>t.stopPropagation()))}getTypeIndex(t){const e=this.types.findIndex((e=>e.type==t.type&&e.grouping==(t.grouping||"standard")));return e>-1?e:null}updateModel(){if(this.editTitle=!1,!this.model)return;this.titleInput&&(this.model.title=this.titleInput.value);const t=this.types[this.typeList.value];this.model.type=t.type,this.model.grouping=t.grouping,this.model.categoriesRange=this.categoryRangeInput?.value?_v.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?_v.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=_v.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Xr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};RL.styles=[LL],IL([Tn({type:Object})],RL.prototype,"model",void 0),IL([$n()],RL.prototype,"editTitle",void 0),IL([Dn("#title")],RL.prototype,"titleInput",void 0),IL([Dn("#type")],RL.prototype,"typeList",void 0),IL([Dn("#dataRange")],RL.prototype,"dataRangeInput",void 0),IL([Dn("#seriesRange")],RL.prototype,"seriesRangeInput",void 0),IL([Dn("#categoryRange")],RL.prototype,"categoryRangeInput",void 0),RL=IL([Ln("og-plugin-chart-form")],RL);const TL=Xa().themes.get("og-dark");Object.assign(TL.definition,{"highcharts-title-font-size":"16px","highcharts-subtitle-font-size":"14px","highcharts-color-0":"#2caffe","highcharts-color-1":"#544fc5","highcharts-color-2":"#00e272","highcharts-color-3":"#fe6a35","highcharts-color-4":"#6b8abc","highcharts-color-5":"#d568fb","highcharts-color-6":"#2ee0ca","highcharts-color-7":"#fa4b42","highcharts-color-8":"#feb56a","highcharts-color-9":"#91e8e1","highcharts-background-color":"rgb(48, 48, 48)","highcharts-neutral-color-100":"rgb(255, 255, 255)","highcharts-neutral-color-80":"rgb(214, 214, 214)","highcharts-neutral-color-60":"rgb(173, 173, 173)","highcharts-neutral-color-40":"rgb(133, 133, 133)","highcharts-neutral-color-20":"rgb(92, 92, 92)","highcharts-neutral-color-10":"rgb(71, 71, 71)","highcharts-neutral-color-5":"rgb(61, 61, 61)","highcharts-neutral-color-3":"rgb(57, 57, 57)","highcharts-highlight-color-100":"rgb(122, 167, 255)","highcharts-highlight-color-80":"rgb(108, 144, 214)","highcharts-highlight-color-60":"rgb(94, 121, 173)","highcharts-highlight-color-20":"rgb(65, 74, 92)","highcharts-highlight-color-10":"rgb(58, 63, 71)"});const $L=Xa().themes.get("og-light");Object.assign($L.definition,{"highcharts-title-font-size":"16px","chart-background-color":"#2a2a2b","highcharts-color-0":"#2caffe","highcharts-color-1":"#544fc5","highcharts-color-2":"#00e272","highcharts-color-3":"#fe6a35","highcharts-color-4":"#6b8abc","highcharts-color-5":"#d568fb","highcharts-color-6":"#2ee0ca","highcharts-color-7":"#fa4b42","highcharts-color-8":"#feb56a","highcharts-color-9":"#91e8e1","highcharts-background-color":"#ffffff","highcharts-neutral-color-100":"#000000","highcharts-neutral-color-80":"#333333","highcharts-neutral-color-60":"#666666","highcharts-neutral-color-40":"#999999","highcharts-neutral-color-20":"#cccccc","highcharts-neutral-color-10":"#e6e6e6","highcharts-neutral-color-5":"#f2f2f2","highcharts-neutral-color-3":"#f7f7f7","highcharts-highlight-color-100":"#0022ff","highcharts-highlight-color-80":"#334eff","highcharts-highlight-color-60":"#667aff","highcharts-highlight-color-20":"#ccd3ff","highcharts-highlight-color-10":"#e6e9ff","highcharts-positive-color":"#06b535","highcharts-negative-color":"#f21313","highcharts-annotation-color-0":"rgba(130, 170, 255, 0.4)","highcharts-annotation-color-1":"rgba(139, 191, 216, 0.4)","highcharts-annotation-color-2":"rgba(150, 216, 192, 0.4)","highcharts-annotation-color-3":"rgba(156, 229, 161, 0.4)","highcharts-annotation-color-4":"rgba(162, 241, 130, 0.4)","highcharts-annotation-color-5":"rgba(169, 255, 101, 0.4)"});var AL=i(6946),DL=i(6471),OL=i(4969),NL=i(9502),PL=i(7706),jL=i(1480),HL=i(2006),FL=i(7503),BL=i(7873),WL=i(8746),VL=i(2570),UL=i(8815),GL=i(6390),qL=i(6593),YL=i(895),ZL=i(9083),XL=i(6093),QL=i(9685),KL=i(9849),JL=i(8268),tI=i(4693),eI=i(3599),iI=i(782),oI=i(754),rI=i(5700),sI=i(4731),nI=i(7291),aI=i(597),lI=i(1474),cI=i(6224),hI=i(6239),dI=i(6828),uI=i(2212),pI=i(863),gI=i(3602),mI=i(1985),fI=i(886),vI=i(7201),bI=i(9937),yI=i(8450),wI=i(9630),xI=i(9766),kI=i(388),CI=i(1903),MI=i(398),_I=i(6105),SI=i(6147),zI=i(5722),EI=i(5576),LI=i(3131),II=i(6308),RI=i(9645),TI=i(3199),$I=i(871),AI=i(5251),DI=i(6426),OI=i(2643),NI=i(8522),PI=i(6398),jI=i(2525),HI=i(8434),FI=i(6138),BI=i(5835),WI=i(5654),VI=i(6659),UI=i(2977),GI=i(4480),qI=i(9886),YI=i(6815),ZI=i(1582),XI=i(2968),QI=i(394),KI=i(7024),JI=i(7853),tR=i(8249),eR=i(2869),iR=i(486),oR=i(5735),rR=i(470),sR=i(4612),nR=i(4018),aR=i(1476),lR=i(3194),cR=i(3525),hR=i(7541),dR=i(4104),uR=i(6686),pR=i(7719),gR=i(3898),mR=i(8153),fR=i(3690),vR=i(1776),bR=i(4980),yR=i(5578),wR=i(9613),xR=i(1119),kR=i(8444),CR=i(2978),MR=i(9130),_R=i(2127),SR=i(2732),zR=i(4287),ER=i(4045),LR=i(7642),IR=i(1367),RR=i(320),TR=i(821),$R=i(102),AR=i(7683),DR=i(3980),OR=i(576),NR=i(654),PR=i(73),jR=i(140),HR=i(8129),FR=i(5087),BR=i(6992),WR=i(8247),VR=i(8038),UR=i(5286),GR=i(9179),qR=i(1808),YR=i(9459),ZR=i(2883),XR=i(9124),QR=i(7067),KR=i(1054),JR=i(7325),tT=i(1272),eT=i(3359),iT=i(6562),oT=i(4193),rT=i(6348),sT=i(2435),nT=i(7544),aT=i(4470),lT=i(9111),cT=i(9318),hT=i(7294),dT=i(4479),uT=i(2409),pT=i(3091),gT=i(5789),mT=i(5890),fT=i(3874),vT=i(2907),bT=i(1175),yT=i(1686),wT=i(703),xT=i(6606),kT=i(4194),CT=i(6228),MT=i(62),_T=i(2072),ST=i(9744),zT=i(25),ET=i(2618),LT=i(1988),IT=i(8013),RT=i(1133),TT=i(362),$T=i(6845),AT=i(6800),DT=i(1103),OT=i(4933),NT=i(7284),PT=i(2620),jT=i(2366),HT=i(7457),FT=i(2449),BT=i(2),WT=i(5697),VT=i(7069),UT=i(4716),GT=i(4740),qT=i(4557),YT=i(1868),ZT=i(8647),XT=i(5127),QT=i(4816),KT=i(4009),JT=i(5104),t$=i(2830),e$=i(3093),i$=i(5029),o$=i(3514),r$=i(2142),s$=i(4999),n$=i(7523),a$=i(346),l$=i(7917),c$=i(3976),h$=i(9801),d$=i(2464),u$=i(5511),p$=i(5210),g$=i(5815),m$=i(3339),f$=i(7472),v$=i(8811),b$=i(8548),y$=i(6880),w$=i(1840),x$=i(5547),k$=i(4788),C$=i(9467),M$=i(9187),_$=i(9217),S$=i(7897),z$=i(2644),E$=i(6204),L$=i(1472),I$=i(1247),R$=i(7406),T$=i(925),$$=i(7455),A$=i(3771),D$=i(1549),O$=i(3541),N$=i(3140),P$=i(9800),j$=i(229),H$=i(2677),F$=i(1844),B$=i(3245),W$=i(9056),V$=i(7535),U$=i(2359),G$=i(15),q$=i(5569),Y$=i(2014),Z$=i(1599),X$=i(6521),Q$=i(232),K$=i(9745),J$=i(9594),tA=i(6979),eA=i(4494),iA=i(312),oA=i(4983),rA=i(1258),sA=i(6313),nA=i(12),aA=i(8003),lA=i(7830),cA=i(8875),hA=i(3911),dA=i(1817),uA=i(478),pA=i(2585),gA=i(6564),mA=i(2884),fA=i(3825),vA=i(7348),bA=i(9277),yA=i(4118),wA=i(9200),xA=i(51),kA=i(2872),CA=i(4702),MA=i(9281),_A=i(1394),SA=i(7295),zA=i(2936),EA=i(3789),LA=i(3614),IA=i(4827),RA=i(9204),TA=i(9113),$A=i(4058),AA=i(9939),DA=i(1139);const OA=[AL.mw,DL.mw,OL.mw,NL.mw,PL.mw,jL.mw,HL.mw,FL.mw,WL.mw,UL.mw,VL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,rI.mw,sI.mw,nI.mw,aI.mw,lI.mw,cI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,xI.mw,kI.mw,CI.mw,_I.mw,MI.mw,SI.mw,zI.mw,EI.mw,LI.mw,II.mw,RI.mw,TI.mw,$I.mw,AI.mw,DI.mw,OI.mw,NI.mw,jI.mw,HI.mw,FI.mw,BI.mw,WI.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,PI.mw,rR.mw,sR.mw,nR.mw,aR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,vR.mw,bR.mw,yR.mw,wR.mw,xR.mw,kR.mw,CR.mw,MR.mw,_R.mw,SR.mw,zR.mw,ER.mw,LR.mw,IR.mw,RR.mw,TR.mw,$R.mw,AR.mw,DR.mw,OR.mw,NR.mw,PR.mw,jR.mw,HR.mw,FR.mw,BR.mw,WR.mw,VR.mw,hI.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,sT.mw,BL.mw,nT.mw,aT.mw],NA=[lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,vT.mw,yT.mw,bT.mw,xT.mw,wT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.mw,zT.mw,ET.mw,LT.mw,IT.mw,DT.mw,OT.mw,NT.mw,PT.mw,jT.mw,HT.mw,FT.mw,WT.mw,VT.mw,UT.mw,XT.mw,QT.mw,KT.mw,JT.mw,t$.mw,e$.mw,i$.mw,o$.mw,RT.mw,TT.mw,AT.mw,$T.mw,r$.mw,s$.mw,n$.mw,a$.mw,l$.mw,c$.mw,h$.mw,d$.mw,GT.mw,qT.mw,YT.mw,ZT.mw,p$.mw,g$.mw,m$.mw,f$.mw,v$.mw,b$.mw,y$.mw,w$.mw,x$.mw,k$.mw,C$.mw,M$.mw,_$.mw,S$.mw,z$.mw,E$.mw,L$.mw,I$.mw,R$.mw,u$.mw,T$.mw,$$.mw,A$.mw,D$.mw,O$.mw,N$.mw,P$.mw,j$.mw,H$.mw,F$.mw,B$.mw,W$.mw,V$.mw,U$.mw,G$.mw,q$.mw,Y$.mw,Z$.mw,X$.mw,Q$.mw,K$.mw,J$.mw,tA.mw,eA.mw,iA.mw,oA.mw,rA.mw,sA.mw,nA.mw,aA.mw,lA.mw,cA.mw,hA.mw,dA.mw,uA.mw,pA.mw,gA.mw,mA.mw,fA.mw,vA.mw,bA.mw,BT.mw,yA.mw,wA.mw,xA.mw,kA.mw,CA.mw,MA.mw,_A.mw,SA.mw,zA.mw,EA.mw,LA.mw,IA.mw,RA.mw,TA.mw,$A.mw,fT.mw,AA.mw,DA.mw],PA={xlsx:F,charts:B},jA={name:"@omegagrid/bundle",version:"0.10.34"};Xa().activate("light"),Hd.styleDefault="fal",Fd.add(OA),Fd.add(NA)})(),window.Omegagrid=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/bundle",
3
- "version": "0.10.33",
3
+ "version": "0.10.34",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Distribution package for Omegagrid library",
6
6
  "main": "omegagrid.js",
@@ -19,23 +19,23 @@
19
19
  "@fortawesome/fontawesome-svg-core": "^7.0.1",
20
20
  "@fortawesome/pro-light-svg-icons": "^7.0.1",
21
21
  "@fortawesome/pro-solid-svg-icons": "^7.0.1",
22
- "@omegagrid/bucket": "^0.10.33",
23
- "@omegagrid/calendar": "^0.10.33",
24
- "@omegagrid/code": "^0.10.33",
25
- "@omegagrid/commands": "^0.10.33",
26
- "@omegagrid/core": "^0.10.33",
27
- "@omegagrid/dialog": "^0.10.33",
28
- "@omegagrid/editor": "^0.10.33",
29
- "@omegagrid/form": "^0.10.33",
30
- "@omegagrid/grid": "^0.10.33",
31
- "@omegagrid/localize": "^0.10.33",
32
- "@omegagrid/markdown": "^0.10.33",
33
- "@omegagrid/plugin-charts": "^0.10.33",
34
- "@omegagrid/plugin-xlsx": "^0.10.33",
35
- "@omegagrid/statusbar": "^0.10.33",
36
- "@omegagrid/tabs": "^0.10.33",
37
- "@omegagrid/toolbar": "^0.10.33",
38
- "@omegagrid/tree": "^0.10.33",
22
+ "@omegagrid/bucket": "^0.10.34",
23
+ "@omegagrid/calendar": "^0.10.34",
24
+ "@omegagrid/code": "^0.10.34",
25
+ "@omegagrid/commands": "^0.10.34",
26
+ "@omegagrid/core": "^0.10.34",
27
+ "@omegagrid/dialog": "^0.10.34",
28
+ "@omegagrid/editor": "^0.10.34",
29
+ "@omegagrid/form": "^0.10.34",
30
+ "@omegagrid/grid": "^0.10.34",
31
+ "@omegagrid/localize": "^0.10.34",
32
+ "@omegagrid/markdown": "^0.10.34",
33
+ "@omegagrid/plugin-charts": "^0.10.34",
34
+ "@omegagrid/plugin-xlsx": "^0.10.34",
35
+ "@omegagrid/statusbar": "^0.10.34",
36
+ "@omegagrid/tabs": "^0.10.34",
37
+ "@omegagrid/toolbar": "^0.10.34",
38
+ "@omegagrid/tree": "^0.10.34",
39
39
  "lit": "^3.1.1"
40
40
  },
41
41
  "devDependencies": {