@omegagrid/bundle 0.6.11 → 0.6.13

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 +4 -4
  2. package/package.json +18 -18
package/omegagrid.js CHANGED
@@ -1775,7 +1775,7 @@
1775
1775
  </og-splitcontainer>
1776
1776
  `))}
1777
1777
  </div>
1778
- `,this.components=new ig(this),this.sidebars=new og(this),this.alerts=new tg(this),this.dialogs=new ng(this),this.options=function(t,e=null){return{...jn(t,e),...eg,...e,...t}}(),this.logger.info("init"),this.addEventListener("state",(t=>{t.target!=this&&(t.stopPropagation(),this.dispatchStateEvent())}))}connectedCallback(){super.connectedCallback(),this.logger.info("connected"),window.addEventListener("beforeunload",this._onWindowBeforeUnload)}disconnectedCallback(){window.removeEventListener("beforeunload",this._onWindowBeforeUnload)}layout(){this.container?.layout(),this.top?.layout()}setSourceData(t){this.sourceData=t}async firstUpdated(){const t=(this.sourceData.sidemenu.items??[])[this.sourceData.sidemenu.activeIndex]?.id;t&&(this.sidebar1ComponentId=t)}async open(t){return new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i),this.editorContainer.open(t),this.dispatchStateEvent()}))}async openDialog(t){return await this.dialogs.open(t)}async openMenu(t){let e;this.logger.info("open menu");const i=()=>{this.menu.removeEventListener("command.exec",o),this.menu.removeEventListener("command.close",i),e(new Bp({id:null}))},o=t=>{this.menu.removeEventListener("command.exec",o),this.menu.removeEventListener("command.close",i),e(t.command)};return new Promise((n=>{e=n,this.menu.addEventListener("command.exec",o),this.menu.addEventListener("command.close",i),this.menu.text=t.text,this.menu.open(),this.menu.commands=t.content instanceof Fp?t.content:new Fp(Jp[t.content])}))}async toggleSidebar(){await this.container.collapse(0,!this.container.items[0].collapsed),this.layout()}async hideSidebar(){await this.container.collapse(0,!0),this.layout()}async showSidebar(){await this.container.collapse(0,!1),this.layout()}showAlert(t){return this.alerts.addAlert(t)}createEditorContainer(){return this.editorContainer=gt("og-tabsplitcontainer"),this.editorContainer.style.height="100%",this.editorContainer.closable=!0,this.editorContainer.singleActive=!0,this.editorContainer.createComponent=this.createEditorComponent,this.editorContainer.model=new _p(this.sourceData.editorLayout),this.editorContainer}getSidebarHost(){return lg(this,rg,"f")||(function(t,e,i,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?n.call(t,i):n?n.value=i:e.set(t,i)}(this,rg,gt("og-bucket-sidebar"),"f"),lg(this,rg,"f").bucket=this,lg(this,rg,"f").componentId=this.sidebar1ComponentId),lg(this,rg,"f")}getState(){const t=this.container?.items[0];return{sidebar:{selectedItem:this.sidebar1ComponentId,width:t?.size,collapsed:!!t?.collapsed},layout:this.editorContainer?.model.getSourceData(),dialogs:[...Array.from(this.dialogs.items.entries()).map((([t,e])=>Object.assign({id:t},e.getOptions())))],components:[...this.components.items].reduce(((t,[e,i])=>{if(i.getState){const o=i.getState();o&&(t[e]=o)}return t}),{})}}async setState(t){this.state=t;const e=this.sourceData.sidemenu.items.findIndex((e=>e.id==t.sidebar.selectedItem));e>=0&&(this.sourceData.sidemenu.activeIndex=e,this.sidebar1ComponentId=t.sidebar.selectedItem),this.sourceData.editorLayout=t.layout,this.editorContainer=null,this.requestUpdate(),await this.updateComplete,this.sidemenu?.requestUpdate(),this.updateSidebarComponent(),this.updateMainComponent(),t.dialogs?.forEach((t=>this.openDialog(t)));for(const e in t.components)this.components.setState(e,t.components[e])}_onSidemenuSelect(t){const e=(this.sourceData.sidemenu.items??[])[t.index]?.id;e==this.sidebar1ComponentId?this.toggleSidebar():(this.sidebar1ComponentId=e,this.updateSidebarComponent()),this.dispatchStateEvent()}updateSidebarComponent(){this.getSidebarHost().componentId=this.sidebar1ComponentId}updateMainComponent(){this.container?.updateComponent(1)}};rg=new WeakMap,dg.styles=[Kp],dg.uniqueId=0,dg.getUniqueId=()=>++sg.uniqueId,ag([ss("og-overlay")],dg.prototype,"overlay",void 0),ag([ss("#commandMenu")],dg.prototype,"menu",void 0),ag([ss("og-bucket-top")],dg.prototype,"top",void 0),ag([ss("og-bucket-sidemenu")],dg.prototype,"sidemenu",void 0),ag([ss("og-splitcontainer")],dg.prototype,"container",void 0),ag([ss("#body")],dg.prototype,"body",void 0),ag([os({type:Object})],dg.prototype,"createComponent",void 0),ag([os({type:Object})],dg.prototype,"sourceData",void 0),ag([os({type:Object})],dg.prototype,"options",void 0),ag([os({type:Object})],dg.prototype,"logger",void 0),dg=sg=ag([ts("og-bucket")],dg);var ug=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const pg={info:[Fs.Accent,"circle-info"],danger:[Fs.Red,"circle-exclamation"],warning:[Fs.Yellow,"circle-exclamation"],success:[Fs.Green,"circle-check"]};class gg extends Event{constructor(t){super(`alert.${t}`,{bubbles:!0,composed:!0})}}let fg=class extends Kr{constructor(){super(...arguments),this.render=()=>Hr`
1778
+ `,this.components=new ig(this),this.sidebars=new og(this),this.alerts=new tg(this),this.dialogs=new ng(this),this.options=function(t,e=null){return{...jn(t,e),...eg,...e,...t}}(),this.logger.info("init"),this.addEventListener("state",(t=>{t.target!=this&&(t.stopPropagation(),this.dispatchStateEvent())}))}connectedCallback(){super.connectedCallback(),this.logger.info("connected"),window.addEventListener("beforeunload",this._onWindowBeforeUnload)}disconnectedCallback(){window.removeEventListener("beforeunload",this._onWindowBeforeUnload)}layout(){this.container?.layout(),this.top?.layout()}setSourceData(t){this.sourceData=t}async firstUpdated(){const t=(this.sourceData.sidemenu.items??[])[this.sourceData.sidemenu.activeIndex]?.id;t&&(this.sidebar1ComponentId=t)}async open(t){return new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i),this.editorContainer.open(t),this.dispatchStateEvent()}))}async openDialog(t){return await this.dialogs.open(t)}async openMenu(t){let e;this.logger.info("open menu");const i=()=>{this.menu.removeEventListener("command.exec",o),this.menu.removeEventListener("command.close",i),e(new Bp({id:null}))},o=t=>{this.menu.removeEventListener("command.exec",o),this.menu.removeEventListener("command.close",i),e(t.command)};return new Promise((n=>{e=n,this.menu.addEventListener("command.exec",o),this.menu.addEventListener("command.close",i),this.menu.text=t.text,this.menu.open(),this.menu.commands=t.content instanceof Fp?t.content:new Fp(Jp[t.content])}))}openModalSidebar(t){return this.sidebars.openModalSidebar(t)}async toggleSidebar(){await this.container.collapse(0,!this.container.items[0].collapsed),this.layout()}async hideSidebar(){await this.container.collapse(0,!0),this.layout()}async showSidebar(){await this.container.collapse(0,!1),this.layout()}showAlert(t){return this.alerts.addAlert(t)}createEditorContainer(){return this.editorContainer=gt("og-tabsplitcontainer"),this.editorContainer.style.height="100%",this.editorContainer.closable=!0,this.editorContainer.singleActive=!0,this.editorContainer.createComponent=this.createEditorComponent,this.editorContainer.model=new _p(this.sourceData.editorLayout),this.editorContainer}getSidebarHost(){return lg(this,rg,"f")||(function(t,e,i,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===o?n.call(t,i):n?n.value=i:e.set(t,i)}(this,rg,gt("og-bucket-sidebar"),"f"),lg(this,rg,"f").bucket=this,lg(this,rg,"f").componentId=this.sidebar1ComponentId),lg(this,rg,"f")}getState(){const t=this.container?.items[0];return{sidebar:{selectedItem:this.sidebar1ComponentId,width:t?.size,collapsed:!!t?.collapsed},layout:this.editorContainer?.model.getSourceData(),dialogs:[...Array.from(this.dialogs.items.entries()).map((([t,e])=>Object.assign({id:t},e.getOptions())))],components:[...this.components.items].reduce(((t,[e,i])=>{if(i.getState){const o=i.getState();o&&(t[e]=o)}return t}),{})}}async setState(t){this.state=t;const e=this.sourceData.sidemenu.items.findIndex((e=>e.id==t.sidebar.selectedItem));e>=0&&(this.sourceData.sidemenu.activeIndex=e,this.sidebar1ComponentId=t.sidebar.selectedItem),this.sourceData.editorLayout=t.layout,this.editorContainer=null,this.requestUpdate(),await this.updateComplete,this.sidemenu?.requestUpdate(),this.updateSidebarComponent(),this.updateMainComponent(),t.dialogs?.forEach((t=>this.openDialog(t)));for(const e in t.components)this.components.setState(e,t.components[e])}_onSidemenuSelect(t){const e=(this.sourceData.sidemenu.items??[])[t.index]?.id;e==this.sidebar1ComponentId?this.toggleSidebar():(this.sidebar1ComponentId=e,this.updateSidebarComponent()),this.dispatchStateEvent()}updateSidebarComponent(){this.getSidebarHost().componentId=this.sidebar1ComponentId}updateMainComponent(){this.container?.updateComponent(1)}};rg=new WeakMap,dg.styles=[Kp],dg.uniqueId=0,dg.getUniqueId=()=>++sg.uniqueId,ag([ss("og-overlay")],dg.prototype,"overlay",void 0),ag([ss("#commandMenu")],dg.prototype,"menu",void 0),ag([ss("og-bucket-top")],dg.prototype,"top",void 0),ag([ss("og-bucket-sidemenu")],dg.prototype,"sidemenu",void 0),ag([ss("og-splitcontainer")],dg.prototype,"container",void 0),ag([ss("#body")],dg.prototype,"body",void 0),ag([os({type:Object})],dg.prototype,"createComponent",void 0),ag([os({type:Object})],dg.prototype,"sourceData",void 0),ag([os({type:Object})],dg.prototype,"options",void 0),ag([os({type:Object})],dg.prototype,"logger",void 0),dg=sg=ag([ts("og-bucket")],dg);var ug=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const pg={info:[Fs.Accent,"circle-info"],danger:[Fs.Red,"circle-exclamation"],warning:[Fs.Yellow,"circle-exclamation"],success:[Fs.Green,"circle-check"]};class gg extends Event{constructor(t){super(`alert.${t}`,{bubbles:!0,composed:!0})}}let fg=class extends Kr{constructor(){super(...arguments),this.render=()=>Hr`
1779
1779
  <div class="header">
1780
1780
  <div class="icon">
1781
1781
  <og-icon .icon="${this.iconSpec}"></og-icon>
@@ -1829,7 +1829,7 @@
1829
1829
  .body {
1830
1830
  padding: 2px;
1831
1831
  }
1832
- `,ug([os({type:Object})],fg.prototype,"options",void 0),ug([os({type:String,reflect:!0})],fg.prototype,"color",void 0),fg=ug([ts("og-bucket-alert"),ra({props:["border"]})],fg);var mg=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};let vg=class extends Kr{constructor(){super(...arguments),this.render=()=>Hr`<div></div>`}async loadComponent(t){this.bucket?.createComponent?(xt(this.container),this._component=await(this.bucket?.createComponent(t)),this._component&&this.container.appendChild(this._component)):console.error("mising componentFactory")}async updated(t){this.bucket&&t.has("componentId")&&this.loadComponent(this.componentId)}layout(){this._component?.layout&&this._component.layout()}};vg.styles=qn`
1832
+ `,ug([os({type:Object})],fg.prototype,"options",void 0),ug([os({type:String,reflect:!0})],fg.prototype,"color",void 0),fg=ug([ts("og-bucket-alert"),ra({props:["border"]})],fg);var mg=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};let vg=class extends Kr{constructor(){super(...arguments),this.render=()=>Hr`<div></div>`}async loadComponent(t){xt(this.container),this._component=await this.bucket.components.get(t),this._component&&this.container.appendChild(this._component)}async updated(t){this.bucket&&t.has("componentId")&&this.loadComponent(this.componentId)}layout(){this._component?.layout&&this._component.layout()}};vg.styles=qn`
1833
1833
  :host {
1834
1834
  display: block;
1835
1835
  background-color: var(--og-sidebar-background-color, var(--og-background-color));
@@ -1915,7 +1915,7 @@
1915
1915
  style="${va({minWidth:Rt(this.leftItemWidth)})}"></div>
1916
1916
  <div class="item" id="center" data-component="bucket-topCenter"></div>
1917
1917
  <div class="item" id="right" data-component="bucket-topRight"></div>
1918
- `}get bucket(){return this.parentComponent}async updated(){if(!this.bucket)return;let t=!1;for(const e of this.items){const i=await this.bucket.createComponent(e.dataset.component);xt(e),i&&(e.appendChild(i),t=!0)}t||vt(this)}firstUpdated(){this.layout()}layout(){this.bucket?.container&&this.bucket.container.containers[0]&&(this.bucket.container.items[0].collapsed||(this.leftItemWidth=this.bucket.container.containers[0].offsetWidth))}};Cg.styles=[xg],kg([ls(".item")],Cg.prototype,"items",void 0),kg([ns()],Cg.prototype,"leftItemWidth",void 0),Cg=kg([ts("og-bucket-top")],Cg);var Mg=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};let _g=class extends Kr{constructor(){super(...arguments),this.active=!1,this.render=()=>Hr`
1918
+ `}get bucket(){return this.parentComponent}async updated(){if(!this.bucket)return;let t=!1;for(const e of this.items){const i=await this.bucket.components.get(e.dataset.component);xt(e),i&&(e.appendChild(i),t=!0)}t||vt(this)}firstUpdated(){this.layout()}layout(){this.bucket?.container&&this.bucket.container.containers[0]&&(this.bucket.container.items[0].collapsed||(this.leftItemWidth=this.bucket.container.containers[0].offsetWidth))}};Cg.styles=[xg],kg([ls(".item")],Cg.prototype,"items",void 0),kg([ns()],Cg.prototype,"leftItemWidth",void 0),Cg=kg([ts("og-bucket-top")],Cg);var Mg=function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};let _g=class extends Kr{constructor(){super(...arguments),this.active=!1,this.render=()=>Hr`
1919
1919
  <div class="icon">
1920
1920
  <og-icon .icon="${this.iconSpec}"></og-icon>
1921
1921
  </div>
@@ -7927,4 +7927,4 @@ milkdown-block-handle {
7927
7927
  `:null}
7928
7928
  </div>
7929
7929
  </og-panel>
7930
- `: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?rv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?rv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=rv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Ln({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};XE.styles=[YE],ZE([os({type:Object})],XE.prototype,"model",void 0),ZE([ns()],XE.prototype,"editTitle",void 0),ZE([ss("#title")],XE.prototype,"titleInput",void 0),ZE([ss("#type")],XE.prototype,"typeList",void 0),ZE([ss("#dataRange")],XE.prototype,"dataRangeInput",void 0),ZE([ss("#seriesRange")],XE.prototype,"seriesRangeInput",void 0),ZE([ss("#categoryRange")],XE.prototype,"categoryRangeInput",void 0),XE=ZE([ts("og-plugin-chart-form")],XE);const QE=ha().themes.get("dark");Object.assign(QE.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 KE=ha().themes.get("light");Object.assign(KE.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 JE=i(2439),tz=i(8022),ez=i(6158),iz=i(127),oz=i(4505),nz=i(8659),rz=i(397),sz=i(930),az=i(9723),lz=i(6343),cz=i(4582),hz=i(6127),dz=i(8238),uz=i(7362),pz=i(452),gz=i(5390),fz=i(3368),mz=i(6288),vz=i(7513),bz=i(1386),yz=i(5764),wz=i(1261),xz=i(3071),kz=i(3285),Cz=i(2356),Mz=i(6780),_z=i(8542),Sz=i(8385),Ez=i(1025),zz=i(2034),Lz=i(8113),Rz=i(1821),Iz=i(7212),Hz=i(2583),Tz=i(5360),Az=i(2377),Oz=i(2864),$z=i(7998),Dz=i(4101),Nz=i(7813),Pz=i(5037),jz=i(7005),Vz=i(9626),Bz=i(9517),Fz=i(1504),Wz=i(3838),Uz=i(4935),Gz=i(7699),qz=i(3322),Yz=i(5757),Zz=i(536),Xz=i(1673),Qz=i(8736),Kz=i(196),Jz=i(5133),tL=i(6092),eL=i(791),iL=i(5927),oL=i(1802),nL=i(9511),rL=i(6267),sL=i(1072),aL=i(4331),lL=i(8644),cL=i(2704),hL=i(2419),dL=i(6363),uL=i(5236),pL=i(3499),gL=i(3811),fL=i(1953),mL=i(4729),vL=i(8964),bL=i(8540),yL=i(8752),wL=i(8783),xL=i(8270),kL=i(7261),CL=i(9231),ML=i(4555),_L=i(5293),SL=i(6981),EL=i(5268),zL=i(2680),LL=i(789),RL=i(4373),IL=i(436),HL=i(8573),TL=i(1808),AL=i(3247),OL=i(5143),$L=i(2415),DL=i(2561),NL=i(5726),PL=i(7436),jL=i(4201),VL=i(8248),BL=i(6433),FL=i(2698),WL=i(979),UL=i(9358),GL=i(9176),qL=i(1239),YL=i(4218),ZL=i(8377),XL=i(3740),QL=i(5379),KL=i(9974),JL=i(8955),tR=i(3559),eR=i(809),iR=i(8014),oR=i(8265),nR=i(3300),rR=i(8724),sR=i(8033),aR=i(7700),lR=i(5741),cR=i(3478),hR=i(512),dR=i(9432),uR=i(2841),pR=i(75),gR=i(9256),fR=i(444),mR=i(5633),vR=i(3788),bR=i(3573),yR=i(9948),wR=i(1836),xR=i(7029),kR=i(8532),CR=i(6639),MR=i(1633),_R=i(9805),SR=i(2171),ER=i(875),zR=i(9595),LR=i(3894),RR=i(2803),IR=i(7765),HR=i(8804),TR=i(8654),AR=i(257),OR=i(5844),$R=i(9651),DR=i(760),NR=i(9518),PR=i(4585),jR=i(1769),VR=i(643),BR=i(5156),FR=i(822),WR=i(8249),UR=i(3434),GR=i(9314),qR=i(3093),YR=i(7721),ZR=i(588),XR=i(7645),QR=i(7148),KR=i(6795),JR=i(7047),tI=i(9428),eI=i(1879),iI=i(9779),oI=i(2476),nI=i(9648),rI=i(2896),sI=i(6817),aI=i(5196),lI=i(2762),cI=i(5981),hI=i(9014),dI=i(2611),uI=i(7946),pI=i(6301),gI=i(8020),fI=i(3987),mI=i(3192),vI=i(8796),bI=i(2489),yI=i(7324),wI=i(6069),xI=i(4155),kI=i(6977),CI=i(8055),MI=i(2653),_I=i(9492),SI=i(4334),EI=i(6804),zI=i(9954),LI=i(2211),RI=i(5211),II=i(1519),HI=i(6204),TI=i(5501),AI=i(5244),OI=i(9742),$I=i(1552),DI=i(1330),NI=i(2596),PI=i(5184),jI=i(7675),VI=i(1513),BI=i(9396),FI=i(7673),WI=i(244),UI=i(1187),GI=i(1736),qI=i(4390),YI=i(7106),ZI=i(2096),XI=i(9991),QI=i(5629),KI=i(3386),JI=i(6651),tH=i(1684),eH=i(3849),iH=i(2582),oH=i(8569),nH=i(2955),rH=i(9100),sH=i(7381),aH=i(9190),lH=i(4071),cH=i(8e3),hH=i(4633),dH=i(4374),uH=i(486),pH=i(3680),gH=i(9999),fH=i(2830),mH=i(5255),vH=i(6021),bH=i(2214),yH=i(8497),wH=i(2052),xH=i(5327),kH=i(8701);const CH=[JE.w2,tz.Jt,ez.Xk,iz.Wz,oz.UR,nz.mR,rz.cb,sz.td,az.GF,cz.xB,lz.S$,hz.Ot,dz.fU,uz.Vp,pz.HV,gz.BH,fz.Dn,mz.hy,vz.IP,bz.Nf,yz.jP,wz.AP,xz._X,kz.mu,Cz.LB,Mz.hS,_z.l5,Sz.SI,Ez.ch,Lz._u,Rz.ec,Iz.jb,Hz.cW,Tz.$f,Az.qI,Oz.j3,$z.fq,Dz.ao,Nz.Uj,Pz.GE,jz.QR,Vz.DQ,Fz.lE,Bz.mE,Wz.hp,Uz.yL,Gz.ub,qz.lL,Yz.IN,Zz.B0,Xz.Ce,Qz.dm,Kz.h0,Jz.sx,tL.HF,eL.qf,oL.jw,nL.k8,rL.Am,sL.ff,aL.s6,lL.bx,cL.pS,hL.k6,dL.q9,uL.$F,pL.gK,gL.W1,fL.QL,mL.EZ,vL.DN,bL.Jy,yL.z1,wL.Gl,xL.n2,iL.Ew,kL.QL,CL.ck,ML.I2,_L.Qv,SL.CK,EL.bn,zL.bx,LL.e6,RL.yy,IL.xg,HL.AJ,TL.py,AL.I0,OL.id,$L.qp,DL.UX,NL.PA,PL.B2,jL.It,VL.PZ,BL.aG,FL.$U,WL.S9,UL.Nb,GL.Z4,qL.qz,YL.jw,ZL.cd,XL.jR,QL.qt,KL.x7,JL.oE,tR.ad,eR.IT,iR.Ts,oR.UN,nR.jb,rR.jT,sR.w9,aR.Jm,lR.CQ,zz.$6,cR.Dw,hR.nx,dR.w2,uR.Jt,pR.Xk,gR.Wz,fR.UR,mR.mR,vR.cb,bR.td,yR.GF,xR.xB,wR.S$,CR.fU,kR.Ot,MR.Vp,_R.HV,SR.BH,ER.Dn,zR.hy,LR.IP,RR.Nf,IR.jP,HR.AP,DR._X,NR.mu,PR.LB,jR.hS,VR.l5,BR.SI,FR.ch,UR._u,GR.ec,qR.jb,KR.cW,JR.$f,tI.qI,eI.j3,iI.fq,oI.ao,nI.Uj,rI.GE,TR.QR,AR.DQ,$R.lE,OR.mE,sI.hp,aI.yL,lI.ub,cI.lL,hI.IN,dI.B0,uI.Ce,pI.dm,YR.h0,ZR.sx,XR.HF,QR.qf,fI.jw,mI.k8,vI.Am,bI.ff,yI.s6,wI.bx,xI.pS,kI.k6,CI.q9,MI.$F,_I.gK,SI.W1,EI.QL,zI.EZ,LI.DN,RI.Jy,II.z1,HI.Gl,TI.n2,gI.Ew,AI.QL,OI.ck,$I.I2,DI.Qv,NI.CK,PI.bn,jI.bx,VI.e6,BI.yy,FI.xg,WI.AJ,UI.py,GI.I0,qI.id,YI.qp,ZI.UX,XI.PA,QI.B2,KI.It,JI.PZ,tH.aG,eH.$U,iH.S9,oH.Nb,nH.Z4,rH.qz,sH.jw,aH.cd,lH.jR,cH.qt,hH.x7,dH.oE,uH.ad,pH.IT,gH.Ts,fH.UN,mH.jb,vH.jT,bH.w9,yH.Jm,wH.CQ,WR.$6,xH.Dw,kH.nx],MH={xlsx:P,charts:j},_H={name:"@omegagrid/bundle",version:"0.6.11"};ha().activate("light"),Rh.styleDefault="fal",Ih.add(...CH)})(),window.Omegagrid=o})();
7930
+ `: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?rv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?rv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=rv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Ln({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};XE.styles=[YE],ZE([os({type:Object})],XE.prototype,"model",void 0),ZE([ns()],XE.prototype,"editTitle",void 0),ZE([ss("#title")],XE.prototype,"titleInput",void 0),ZE([ss("#type")],XE.prototype,"typeList",void 0),ZE([ss("#dataRange")],XE.prototype,"dataRangeInput",void 0),ZE([ss("#seriesRange")],XE.prototype,"seriesRangeInput",void 0),ZE([ss("#categoryRange")],XE.prototype,"categoryRangeInput",void 0),XE=ZE([ts("og-plugin-chart-form")],XE);const QE=ha().themes.get("dark");Object.assign(QE.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 KE=ha().themes.get("light");Object.assign(KE.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 JE=i(2439),tz=i(8022),ez=i(6158),iz=i(127),oz=i(4505),nz=i(8659),rz=i(397),sz=i(930),az=i(9723),lz=i(6343),cz=i(4582),hz=i(6127),dz=i(8238),uz=i(7362),pz=i(452),gz=i(5390),fz=i(3368),mz=i(6288),vz=i(7513),bz=i(1386),yz=i(5764),wz=i(1261),xz=i(3071),kz=i(3285),Cz=i(2356),Mz=i(6780),_z=i(8542),Sz=i(8385),Ez=i(1025),zz=i(2034),Lz=i(8113),Rz=i(1821),Iz=i(7212),Hz=i(2583),Tz=i(5360),Az=i(2377),Oz=i(2864),$z=i(7998),Dz=i(4101),Nz=i(7813),Pz=i(5037),jz=i(7005),Vz=i(9626),Bz=i(9517),Fz=i(1504),Wz=i(3838),Uz=i(4935),Gz=i(7699),qz=i(3322),Yz=i(5757),Zz=i(536),Xz=i(1673),Qz=i(8736),Kz=i(196),Jz=i(5133),tL=i(6092),eL=i(791),iL=i(5927),oL=i(1802),nL=i(9511),rL=i(6267),sL=i(1072),aL=i(4331),lL=i(8644),cL=i(2704),hL=i(2419),dL=i(6363),uL=i(5236),pL=i(3499),gL=i(3811),fL=i(1953),mL=i(4729),vL=i(8964),bL=i(8540),yL=i(8752),wL=i(8783),xL=i(8270),kL=i(7261),CL=i(9231),ML=i(4555),_L=i(5293),SL=i(6981),EL=i(5268),zL=i(2680),LL=i(789),RL=i(4373),IL=i(436),HL=i(8573),TL=i(1808),AL=i(3247),OL=i(5143),$L=i(2415),DL=i(2561),NL=i(5726),PL=i(7436),jL=i(4201),VL=i(8248),BL=i(6433),FL=i(2698),WL=i(979),UL=i(9358),GL=i(9176),qL=i(1239),YL=i(4218),ZL=i(8377),XL=i(3740),QL=i(5379),KL=i(9974),JL=i(8955),tR=i(3559),eR=i(809),iR=i(8014),oR=i(8265),nR=i(3300),rR=i(8724),sR=i(8033),aR=i(7700),lR=i(5741),cR=i(3478),hR=i(512),dR=i(9432),uR=i(2841),pR=i(75),gR=i(9256),fR=i(444),mR=i(5633),vR=i(3788),bR=i(3573),yR=i(9948),wR=i(1836),xR=i(7029),kR=i(8532),CR=i(6639),MR=i(1633),_R=i(9805),SR=i(2171),ER=i(875),zR=i(9595),LR=i(3894),RR=i(2803),IR=i(7765),HR=i(8804),TR=i(8654),AR=i(257),OR=i(5844),$R=i(9651),DR=i(760),NR=i(9518),PR=i(4585),jR=i(1769),VR=i(643),BR=i(5156),FR=i(822),WR=i(8249),UR=i(3434),GR=i(9314),qR=i(3093),YR=i(7721),ZR=i(588),XR=i(7645),QR=i(7148),KR=i(6795),JR=i(7047),tI=i(9428),eI=i(1879),iI=i(9779),oI=i(2476),nI=i(9648),rI=i(2896),sI=i(6817),aI=i(5196),lI=i(2762),cI=i(5981),hI=i(9014),dI=i(2611),uI=i(7946),pI=i(6301),gI=i(8020),fI=i(3987),mI=i(3192),vI=i(8796),bI=i(2489),yI=i(7324),wI=i(6069),xI=i(4155),kI=i(6977),CI=i(8055),MI=i(2653),_I=i(9492),SI=i(4334),EI=i(6804),zI=i(9954),LI=i(2211),RI=i(5211),II=i(1519),HI=i(6204),TI=i(5501),AI=i(5244),OI=i(9742),$I=i(1552),DI=i(1330),NI=i(2596),PI=i(5184),jI=i(7675),VI=i(1513),BI=i(9396),FI=i(7673),WI=i(244),UI=i(1187),GI=i(1736),qI=i(4390),YI=i(7106),ZI=i(2096),XI=i(9991),QI=i(5629),KI=i(3386),JI=i(6651),tH=i(1684),eH=i(3849),iH=i(2582),oH=i(8569),nH=i(2955),rH=i(9100),sH=i(7381),aH=i(9190),lH=i(4071),cH=i(8e3),hH=i(4633),dH=i(4374),uH=i(486),pH=i(3680),gH=i(9999),fH=i(2830),mH=i(5255),vH=i(6021),bH=i(2214),yH=i(8497),wH=i(2052),xH=i(5327),kH=i(8701);const CH=[JE.w2,tz.Jt,ez.Xk,iz.Wz,oz.UR,nz.mR,rz.cb,sz.td,az.GF,cz.xB,lz.S$,hz.Ot,dz.fU,uz.Vp,pz.HV,gz.BH,fz.Dn,mz.hy,vz.IP,bz.Nf,yz.jP,wz.AP,xz._X,kz.mu,Cz.LB,Mz.hS,_z.l5,Sz.SI,Ez.ch,Lz._u,Rz.ec,Iz.jb,Hz.cW,Tz.$f,Az.qI,Oz.j3,$z.fq,Dz.ao,Nz.Uj,Pz.GE,jz.QR,Vz.DQ,Fz.lE,Bz.mE,Wz.hp,Uz.yL,Gz.ub,qz.lL,Yz.IN,Zz.B0,Xz.Ce,Qz.dm,Kz.h0,Jz.sx,tL.HF,eL.qf,oL.jw,nL.k8,rL.Am,sL.ff,aL.s6,lL.bx,cL.pS,hL.k6,dL.q9,uL.$F,pL.gK,gL.W1,fL.QL,mL.EZ,vL.DN,bL.Jy,yL.z1,wL.Gl,xL.n2,iL.Ew,kL.QL,CL.ck,ML.I2,_L.Qv,SL.CK,EL.bn,zL.bx,LL.e6,RL.yy,IL.xg,HL.AJ,TL.py,AL.I0,OL.id,$L.qp,DL.UX,NL.PA,PL.B2,jL.It,VL.PZ,BL.aG,FL.$U,WL.S9,UL.Nb,GL.Z4,qL.qz,YL.jw,ZL.cd,XL.jR,QL.qt,KL.x7,JL.oE,tR.ad,eR.IT,iR.Ts,oR.UN,nR.jb,rR.jT,sR.w9,aR.Jm,lR.CQ,zz.$6,cR.Dw,hR.nx,dR.w2,uR.Jt,pR.Xk,gR.Wz,fR.UR,mR.mR,vR.cb,bR.td,yR.GF,xR.xB,wR.S$,CR.fU,kR.Ot,MR.Vp,_R.HV,SR.BH,ER.Dn,zR.hy,LR.IP,RR.Nf,IR.jP,HR.AP,DR._X,NR.mu,PR.LB,jR.hS,VR.l5,BR.SI,FR.ch,UR._u,GR.ec,qR.jb,KR.cW,JR.$f,tI.qI,eI.j3,iI.fq,oI.ao,nI.Uj,rI.GE,TR.QR,AR.DQ,$R.lE,OR.mE,sI.hp,aI.yL,lI.ub,cI.lL,hI.IN,dI.B0,uI.Ce,pI.dm,YR.h0,ZR.sx,XR.HF,QR.qf,fI.jw,mI.k8,vI.Am,bI.ff,yI.s6,wI.bx,xI.pS,kI.k6,CI.q9,MI.$F,_I.gK,SI.W1,EI.QL,zI.EZ,LI.DN,RI.Jy,II.z1,HI.Gl,TI.n2,gI.Ew,AI.QL,OI.ck,$I.I2,DI.Qv,NI.CK,PI.bn,jI.bx,VI.e6,BI.yy,FI.xg,WI.AJ,UI.py,GI.I0,qI.id,YI.qp,ZI.UX,XI.PA,QI.B2,KI.It,JI.PZ,tH.aG,eH.$U,iH.S9,oH.Nb,nH.Z4,rH.qz,sH.jw,aH.cd,lH.jR,cH.qt,hH.x7,dH.oE,uH.ad,pH.IT,gH.Ts,fH.UN,mH.jb,vH.jT,bH.w9,yH.Jm,wH.CQ,WR.$6,xH.Dw,kH.nx],MH={xlsx:P,charts:j},_H={name:"@omegagrid/bundle",version:"0.6.13"};ha().activate("light"),Rh.styleDefault="fal",Ih.add(...CH)})(),window.Omegagrid=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/bundle",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
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": "6.4.2",
20
20
  "@fortawesome/pro-light-svg-icons": "6.4.2",
21
21
  "@fortawesome/pro-solid-svg-icons": "6.4.2",
22
- "@omegagrid/bucket": "^0.6.11",
23
- "@omegagrid/calendar": "^0.6.11",
24
- "@omegagrid/code": "^0.6.11",
25
- "@omegagrid/commands": "^0.6.11",
26
- "@omegagrid/core": "^0.6.11",
27
- "@omegagrid/dialog": "^0.6.11",
28
- "@omegagrid/editor": "^0.6.11",
29
- "@omegagrid/form": "^0.6.11",
30
- "@omegagrid/grid": "^0.6.11",
31
- "@omegagrid/localize": "^0.6.11",
32
- "@omegagrid/markdown": "^0.6.11",
33
- "@omegagrid/plugin-charts": "^0.6.11",
34
- "@omegagrid/plugin-xlsx": "^0.6.11",
35
- "@omegagrid/statusbar": "^0.6.11",
36
- "@omegagrid/tabs": "^0.6.11",
37
- "@omegagrid/toolbar": "^0.6.11",
38
- "@omegagrid/tree": "^0.6.11",
22
+ "@omegagrid/bucket": "^0.6.13",
23
+ "@omegagrid/calendar": "^0.6.13",
24
+ "@omegagrid/code": "^0.6.13",
25
+ "@omegagrid/commands": "^0.6.13",
26
+ "@omegagrid/core": "^0.6.13",
27
+ "@omegagrid/dialog": "^0.6.13",
28
+ "@omegagrid/editor": "^0.6.13",
29
+ "@omegagrid/form": "^0.6.13",
30
+ "@omegagrid/grid": "^0.6.13",
31
+ "@omegagrid/localize": "^0.6.13",
32
+ "@omegagrid/markdown": "^0.6.13",
33
+ "@omegagrid/plugin-charts": "^0.6.13",
34
+ "@omegagrid/plugin-xlsx": "^0.6.13",
35
+ "@omegagrid/statusbar": "^0.6.13",
36
+ "@omegagrid/tabs": "^0.6.13",
37
+ "@omegagrid/toolbar": "^0.6.13",
38
+ "@omegagrid/tree": "^0.6.13",
39
39
  "lit": "^3.1.1"
40
40
  },
41
41
  "devDependencies": {