@omegagrid/bundle 0.6.78 → 0.6.80

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
@@ -1590,7 +1590,7 @@
1590
1590
  opacity: 0.5;
1591
1591
  pointer-events: none;
1592
1592
  }
1593
- `;var Wp,Up,Gp=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 Yp=Up=class extends as{constructor(){super(...arguments),Wp.set(this,!1),this.closable=!1,this.fixed=!1,this.addButton=!1,this.selectedIndex=-1,this.tabPosition="top",this.cacheComponents=!1,this.components=new Map,this._firstLoad=!0,this._onSelect=()=>this.refresh(),this._onRemove=t=>{this.components.delete(t.tab.id),0===this.tabs.items?.length&&xt(this.tabs,"flex")},this.hideOverlay=()=>{kt(this.overlay),this.tabs.hideOverlay()},this._onDragover=t=>{(Up.dragParent||Bp.dragParent)&&(Up.dragParent.topLevelComponent!=this.topLevelComponent&&Bp.dragParent.topLevelComponent!=this.topLevelComponent||(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this.positionOverlay(this.calculateOverlayPosition(t.offsetX,t.offsetY))))},this._onDrop=()=>{Up.dragParent?.topLevelComponent!=this.topLevelComponent&&Bp.dragParent?.topLevelComponent!=this.topLevelComponent||(Up.dropTarget=this,this.hideOverlay())},this._onDragStart=t=>{Up.dragParent=this},this._onDragStop=()=>{Up.dragParent=null},this._onTabDrop=t=>{Up.dragParent=null,t.stopPropagation()},this.render=()=>{const t=Vr`
1593
+ `;var Wp,Up,Gp=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 Yp=Up=class extends as{constructor(){super(...arguments),Wp.set(this,!1),this.closable=!1,this.fixed=!1,this.addButton=!1,this._selectedIndex=-1,this.tabPosition="top",this.cacheComponents=!1,this.components=new Map,this._firstLoad=!0,this._onSelect=()=>this.refresh(),this._onRemove=t=>{this.components.delete(t.tab.id),0===this.tabs.items?.length&&xt(this.tabs,"flex")},this.hideOverlay=()=>{kt(this.overlay),this.tabs.hideOverlay()},this._onDragover=t=>{(Up.dragParent||Bp.dragParent)&&(Up.dragParent.topLevelComponent!=this.topLevelComponent&&Bp.dragParent.topLevelComponent!=this.topLevelComponent||(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this.positionOverlay(this.calculateOverlayPosition(t.offsetX,t.offsetY))))},this._onDrop=()=>{Up.dragParent?.topLevelComponent!=this.topLevelComponent&&Bp.dragParent?.topLevelComponent!=this.topLevelComponent||(Up.dropTarget=this,this.hideOverlay())},this._onDragStart=t=>{Up.dragParent=this},this._onDragStop=()=>{Up.dragParent=null},this._onTabDrop=t=>{Up.dragParent=null,t.stopPropagation()},this.render=()=>{const t=Vr`
1594
1594
  <og-tabs
1595
1595
  class="${this.inactive?"inactive":""}"
1596
1596
  style="${this.items?.length?"":"display: none;"}"
@@ -1619,7 +1619,7 @@
1619
1619
  ${"top"==this.tabPosition?t:e}
1620
1620
  ${"bottom"==this.tabPosition?t:e}
1621
1621
  <div id="overlay" style="display: none"></div>
1622
- `}}set inactive(t){(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,Wp,t,"f"),this.tabs&&this.tabs.classList.toggle("inactive",t)}get inactive(){return 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)}(this,Wp,"f")}get selectedId(){return this.tabs?.selectedItem?.id}get component(){return this.currentComponent}layout(){this.currentComponent?.layout&&this.currentComponent.layout()}updateTabs(){this.tabs.requestUpdate()}async getComponent(t){if(!this.createComponent)return null;if(!this.cacheComponents||!this.components.has(t)){const e=await this.createComponent(t);if(!this.cacheComponents)return e;this.components.set(t,e)}return this.components.get(t)}async loadComponent(t){null!=t?(this.currentComponent=await this.getComponent(t),St(this.container),this.currentComponent&&wt(this.container,this.currentComponent),this._firstLoad&&(this._firstLoad=!1,this.dispatchEvent(new Event("load")))):(St(this.container),this.currentComponent=null),this._firstLoad&&(this._firstLoad=!1,this.layout())}refresh(){const t=this.tabs?.selectedItem?.id;null!=t&&this.loadComponent(this.tabs.selectedItem?.id)}open(t,e=!0){const i=this.tabs.getIndexById(t.id);i>-1?this.tabs.selectTab(i,e):(this.tabs.addTab(t),this.tabs.selectTabById(t.id,e)),xt(this.tabs,"flex")}willUpdate(){this.topLevelComponent||(this.topLevelComponent=this),this.selectedIndex=this.items?.length>0?Math.max(0,Math.min(this.selectedIndex??-1,this.items.length-1)):-1}firstUpdated(){this.selectedIndex>-1&&this.open(this.items[this.selectedIndex])}updated(t){t.has("items")&&(this._firstLoad=!0)}positionOverlay(t){if(Up.dropPosition=t,this.tabs.hideOverlay(),null==t)return this.tabs.positionOverlay(this.tabs.empty),kt(this.overlay);xt(this.overlay),jt(this.overlay,{t:("bottom"==t?this.container.clientHeight/2:0)+this.container.offsetTop,l:"right"==t?this.container.clientWidth/2:0,b:"top"==t?this.container.clientHeight/2:0,r:"left"==t?this.container.clientWidth/2:0})}calculateOverlayPosition(t,e){const[i,o]=[this.container.clientWidth,this.container.clientHeight],n=.3;if(t>i*n&&t<i-i*n&&e>o*n&&e<o-o*n)return null;const[r,s]=[i/o>t/e,i/o>t/(o-e)];return r?s?"left":"bottom":s?"top":"right"}};Wp=new WeakMap,Yp.styles=[Fp],Gp([us({type:Boolean,noAccessor:!0})],Yp.prototype,"inactive",null),Gp([us({type:Object})],Yp.prototype,"topLevelComponent",void 0),Gp([us({type:Array})],Yp.prototype,"items",void 0),Gp([us({type:Boolean})],Yp.prototype,"closable",void 0),Gp([us({type:Object})],Yp.prototype,"createComponent",void 0),Gp([ms("og-tabs")],Yp.prototype,"tabs",void 0),Gp([us({type:Array})],Yp.prototype,"actions",void 0),Gp([us({type:Boolean})],Yp.prototype,"fixed",void 0),Gp([us({type:Boolean})],Yp.prototype,"addButton",void 0),Gp([us({type:Number,reflect:!0})],Yp.prototype,"selectedIndex",void 0),Gp([us({type:String,reflect:!0})],Yp.prototype,"tabPosition",void 0),Gp([us({type:Boolean})],Yp.prototype,"cacheComponents",void 0),Gp([ms("#container")],Yp.prototype,"container",void 0),Gp([ms("#overlay")],Yp.prototype,"overlay",void 0),Yp=Up=Gp([cs("og-tabcontainer")],Yp);var qp,Zp=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 Xp=qp=class extends as{constructor(){super(...arguments),this.addButton=!1,this.closable=!1,this.singleActive=!1,this.tabPosition="top",this.tabContainers=new Set,this.loadState=0,this._createTabContainer=t=>{const e=yt("og-tabcontainer");e.inactive=this.singleActive,e.index=t,e.parentContainer=this,e.tabPosition=this.tabPosition,this.model.items=this.model.items??[],e.closable=this.closable,e.addButton=this.addButton,e.style.height="100%";const i=this.model.items[t];return e.items=i?.tabs??[],e.selectedIndex=i.selectedIndex,e.topLevelComponent=this.topLevelComponent,e.addEventListener("tab.remove",(()=>{0==e.tabs.items.length&&(this.model.items.length>1&&this.model.items.splice(t,1),this.model.items.forEach((t=>t.size=null)),this.requestUpdate()),this.removeEmptyContainers()})),e.addEventListener("tab.move",(()=>{this.removeEmptyContainers()})),e.addEventListener("tab.select",(t=>{t.tabs.topLevelComponent==this.topLevelComponent&&i&&(i.selectedIndex=t.tabs.selectedIndex,this.singleActive&&(this._activeTabContainer=e,this._activeTab=t.tab,this.updateActiveTab()))})),e.createComponent=this.createComponent,e},this._createSplitContainer=t=>{const e=yt("og-tabsplitcontainer");return e.style.height="100%",e.addButton=this.addButton,e.tabPosition=this.tabPosition,e.model=this.model.items[t].container,e.createComponent=this.createComponent,e.topLevelComponent=this.topLevelComponent,e.closable=this.closable,e.singleActive=this.singleActive,e},this._createSplitContainerComponent=t=>new Promise(((e,i)=>{const o=t,n=this.model.items?this.model.items[o]:null;if(n){const t=n.container?this._createSplitContainer(o):this._createTabContainer(o);t.addEventListener("load",(()=>{this.loadState++,this.loadState==this.splitContainer.items.length&&this.dispatchEvent(new Event("load"))})),this.tabContainers.add(t),e(t)}else i()})),this._onDrop=t=>{if(!Yp.dragParent&&!Bp.dragParent)return;if(Yp.dragParent.topLevelComponent!=this.topLevelComponent&&Bp.dragParent.topLevelComponent!=this.topLevelComponent)return;t.stopImmediatePropagation();const e=Yp.dragParent,i=Yp.dropTarget;if(Yp.dragParent=null,Yp.dropTarget=null,!e||!i)return e&&0==e.parentContainer.model.items[e.index].tabs.length&&e.parentContainer.model.items.splice(e.index,1),void e.parentContainer.splitContainer.requestUpdate();const o=e.tabs.removeTab(Bp.dragIndex,!1),n=Yp.dropPosition?["left","right"].includes(Yp.dropPosition)?"horizontal":"vertical":null,r=i?.parentContainer;if(r){if(null==n)r.model.items[i.index].tabs.push(o);else if(n==r.model.orientation)r.model.items.splice(i.index+(["right","bottom"].includes(Yp.dropPosition)?1:0),0,{tabs:[o]});else{const t=r.model.items[i.index];t.container=new Op({orientation:n,items:[{tabs:t.tabs},{tabs:[o]}]})}r.splitContainer.resetContainerSizes(),r.splitContainer.requestUpdate()}const s=e?.parentContainer;if(s){for(let t=s.model.items.length-1;t>=0;t--){const e=s.model.items[t];e.tabs&&0!=e.tabs.length||e.container||s.model.items.splice(t,1)}s.splitContainer.resetContainerSizes(),s.splitContainer.requestUpdate()}},this.render=()=>this.model?Vr`
1622
+ `}}set inactive(t){(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,Wp,t,"f"),this.tabs&&this.tabs.classList.toggle("inactive",t)}get inactive(){return 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)}(this,Wp,"f")}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t!=this._selectedIndex&&(this.requestUpdate("selectedIndex",this._selectedIndex),this._selectedIndex=t)}get selectedId(){return this.tabs?.selectedItem?.id}get component(){return this.currentComponent}layout(){this.currentComponent?.layout&&this.currentComponent.layout()}updateTabs(){this.tabs.requestUpdate()}async getComponent(t){if(!this.createComponent)return null;if(!this.cacheComponents||!this.components.has(t)){const e=await this.createComponent(t);if(!this.cacheComponents)return e;this.components.set(t,e)}return this.components.get(t)}async loadComponent(t){null!=t?(this.currentComponent=await this.getComponent(t),St(this.container),this.currentComponent&&wt(this.container,this.currentComponent),this._firstLoad&&(this._firstLoad=!1,this.dispatchEvent(new Event("load")))):(St(this.container),this.currentComponent=null),this._firstLoad&&(this._firstLoad=!1,this.layout())}refresh(){const t=this.tabs?.selectedItem?.id;this._selectedIndex=this.tabs?.selectedIndex??-1,null!=t&&this.loadComponent(this.tabs.selectedItem?.id)}open(t,e=!0){const i=this.tabs.getIndexById(t.id);i>-1?this.tabs.selectTab(i,e):(this.tabs.addTab(t),this.tabs.selectTabById(t.id,e)),xt(this.tabs,"flex")}willUpdate(){this.topLevelComponent||(this.topLevelComponent=this),this.selectedIndex=this.items?.length>0?Math.max(0,Math.min(this.selectedIndex??-1,this.items.length-1)):-1}firstUpdated(){this.selectedIndex>-1&&this.open(this.items[this.selectedIndex])}updated(t){t.has("items")&&(this._firstLoad=!0)}positionOverlay(t){if(Up.dropPosition=t,this.tabs.hideOverlay(),null==t)return this.tabs.positionOverlay(this.tabs.empty),kt(this.overlay);xt(this.overlay),jt(this.overlay,{t:("bottom"==t?this.container.clientHeight/2:0)+this.container.offsetTop,l:"right"==t?this.container.clientWidth/2:0,b:"top"==t?this.container.clientHeight/2:0,r:"left"==t?this.container.clientWidth/2:0})}calculateOverlayPosition(t,e){const[i,o]=[this.container.clientWidth,this.container.clientHeight],n=.3;if(t>i*n&&t<i-i*n&&e>o*n&&e<o-o*n)return null;const[r,s]=[i/o>t/e,i/o>t/(o-e)];return r?s?"left":"bottom":s?"top":"right"}};Wp=new WeakMap,Yp.styles=[Fp],Gp([us({type:Boolean,noAccessor:!0})],Yp.prototype,"inactive",null),Gp([us({type:Object})],Yp.prototype,"topLevelComponent",void 0),Gp([us({type:Array})],Yp.prototype,"items",void 0),Gp([us({type:Boolean})],Yp.prototype,"closable",void 0),Gp([us({type:Object})],Yp.prototype,"createComponent",void 0),Gp([ms("og-tabs")],Yp.prototype,"tabs",void 0),Gp([us({type:Array})],Yp.prototype,"actions",void 0),Gp([us({type:Boolean})],Yp.prototype,"fixed",void 0),Gp([us({type:Boolean})],Yp.prototype,"addButton",void 0),Gp([us({type:Number,reflect:!0,noAccessor:!0})],Yp.prototype,"selectedIndex",null),Gp([us({type:String,reflect:!0})],Yp.prototype,"tabPosition",void 0),Gp([us({type:Boolean})],Yp.prototype,"cacheComponents",void 0),Gp([ms("#container")],Yp.prototype,"container",void 0),Gp([ms("#overlay")],Yp.prototype,"overlay",void 0),Yp=Up=Gp([cs("og-tabcontainer")],Yp);var qp,Zp=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 Xp=qp=class extends as{constructor(){super(...arguments),this.addButton=!1,this.closable=!1,this.singleActive=!1,this.tabPosition="top",this.tabContainers=new Set,this.loadState=0,this._createTabContainer=t=>{const e=yt("og-tabcontainer");e.inactive=this.singleActive,e.index=t,e.parentContainer=this,e.tabPosition=this.tabPosition,this.model.items=this.model.items??[],e.closable=this.closable,e.addButton=this.addButton,e.style.height="100%";const i=this.model.items[t];return e.items=i?.tabs??[],e.selectedIndex=i.selectedIndex,e.topLevelComponent=this.topLevelComponent,e.addEventListener("tab.remove",(()=>{0==e.tabs.items.length&&(this.model.items.length>1&&this.model.items.splice(t,1),this.model.items.forEach((t=>t.size=null)),this.requestUpdate()),this.removeEmptyContainers()})),e.addEventListener("tab.move",(()=>{this.removeEmptyContainers()})),e.addEventListener("tab.select",(t=>{t.tabs.topLevelComponent==this.topLevelComponent&&i&&(i.selectedIndex=t.tabs.selectedIndex,this.singleActive&&(this._activeTabContainer=e,this._activeTab=t.tab,this.updateActiveTab()))})),e.createComponent=this.createComponent,e},this._createSplitContainer=t=>{const e=yt("og-tabsplitcontainer");return e.style.height="100%",e.addButton=this.addButton,e.tabPosition=this.tabPosition,e.model=this.model.items[t].container,e.createComponent=this.createComponent,e.topLevelComponent=this.topLevelComponent,e.closable=this.closable,e.singleActive=this.singleActive,e},this._createSplitContainerComponent=t=>new Promise(((e,i)=>{const o=t,n=this.model.items?this.model.items[o]:null;if(n){const t=n.container?this._createSplitContainer(o):this._createTabContainer(o);t.addEventListener("load",(()=>{this.loadState++,this.loadState==this.splitContainer.items.length&&this.dispatchEvent(new Event("load"))})),this.tabContainers.add(t),e(t)}else i()})),this._onDrop=t=>{if(!Yp.dragParent&&!Bp.dragParent)return;if(Yp.dragParent.topLevelComponent!=this.topLevelComponent&&Bp.dragParent.topLevelComponent!=this.topLevelComponent)return;t.stopImmediatePropagation();const e=Yp.dragParent,i=Yp.dropTarget;if(Yp.dragParent=null,Yp.dropTarget=null,!e||!i)return e&&0==e.parentContainer.model.items[e.index].tabs.length&&e.parentContainer.model.items.splice(e.index,1),void e.parentContainer.splitContainer.requestUpdate();const o=e.tabs.removeTab(Bp.dragIndex,!1),n=Yp.dropPosition?["left","right"].includes(Yp.dropPosition)?"horizontal":"vertical":null,r=i?.parentContainer;if(r){if(null==n)r.model.items[i.index].tabs.push(o);else if(n==r.model.orientation)r.model.items.splice(i.index+(["right","bottom"].includes(Yp.dropPosition)?1:0),0,{tabs:[o]});else{const t=r.model.items[i.index];t.container=new Op({orientation:n,items:[{tabs:t.tabs},{tabs:[o]}]})}r.splitContainer.resetContainerSizes(),r.splitContainer.requestUpdate()}const s=e?.parentContainer;if(s){for(let t=s.model.items.length-1;t>=0;t--){const e=s.model.items[t];e.tabs&&0!=e.tabs.length||e.container||s.model.items.splice(t,1)}s.splitContainer.resetContainerSizes(),s.splitContainer.requestUpdate()}},this.render=()=>this.model?Vr`
1623
1623
  <og-splitcontainer
1624
1624
  orientation=${this.model?.orientation}
1625
1625
  .items="${this.model.items??[]}"
@@ -1829,7 +1829,7 @@
1829
1829
  }
1830
1830
  */
1831
1831
 
1832
- `,cg={yes_no:[{id:"Y",name:"Yes"},{id:"N",name:"No"}]};class hg extends ud{constructor(){super(...arguments),this.items=[]}async addAlert(t){const e=yt("og-bucket-alert"),i={options:t,component:e};e.options=t,e.addEventListener("close",(()=>this.removeAlert(i))),this.component.shadowRoot.appendChild(e),this.items.push(i),this.items.length>this.component.options.alerts.maxItems&&this.removeAlert(this.items[0]);const o=t.timeout??this.component.options.alerts.timeout;o>0&&(i.timer=window.setTimeout((()=>{i.timer=void 0,this.removeAlert(i)}),o)),await this.component.updateComplete,this.updatePositions()}updatePositions(){[...this.items].reverse().forEach(((t,e)=>{jt(t.component,{r:10,b:10+e*(t.component.offsetHeight+10)})}))}removeAlert(t){const e=this.items.indexOf(t);-1!=e&&(this.items[e].component.remove(),this.items.splice(e,1),null!=t.timer&&window.clearTimeout(t.timer),t.timer=void 0,this.updatePositions())}}const dg={alerts:{maxItems:5,timeout:5e3}};class ug extends ud{constructor(){super(...arguments),this._componentPromiseResolutions=new Map,this._resolvingComponentIds=new Set,this.items=new Map,this.unsavedComponents=new Set,this.states=new Map}get hasUnsavedComponents(){return this.unsavedComponents.size>0}get bucket(){return this.component}setState(t,e){const i=this.items.get(t);i&&i.setState?i.setState(e):this.states.set(t,e)}has(t){return this.items.has(t)}get(t){return this.items.has(t)?this.items.get(t):new Promise(((e,i)=>{const o=this.items.get(t);if(this.enqueueComponentResolution(t,e,i),!this._resolvingComponentIds.has(t)){if(o)return this.resolveComponentPromises(t,o);this._resolvingComponentIds.add(t),Promise.all([this.component.createComponent(t)]).then((e=>{const i=e[0];if(i){this.register(t,i);const e=this.bucket.state;e?.components&&e?.components[t]&&i.setState&&i.setState(e.components[t])}this.resolveComponentPromises(t,i)}))}}))}resolveComponentPromises(t,e){this._componentPromiseResolutions.has(t)&&(this._componentPromiseResolutions.get(t).forEach((t=>t.resolve(e))),this._componentPromiseResolutions.delete(t)),this._resolvingComponentIds.delete(t)}enqueueComponentResolution(t,e,i){this._componentPromiseResolutions.has(t)||this._componentPromiseResolutions.set(t,[]),this._componentPromiseResolutions.get(t).push({resolve:e,reject:i})}update(t,e){const i=e.id??t;if(this.bucket.editorContainer.updateTab(t,{id:i,title:e.title??void 0}),this.items.has(t)&&i!=t){const e=this.items.get(t);this.unregister(t),this.register(i,e)}return this.items.get(i)}register(t,e){this.items.set(t,e),this.bucket.dispatchEvent(new bg("register",{componentId:t}))}unregister(t){this.items.delete(t),this.bucket.dispatchEvent(new bg("unregister",{componentId:t}))}}class pg extends ud{constructor(){super(...arguments),this.modalSidebars=[],this.modalSidebarComponents=new Map,this.createModalSidebarComponent=t=>{const e=yt("og-bucket-modal-sidebar");return e.className=t.position??"left",e.componentId=t.id,e.caption=t.caption,e.closable=null==t.closable||t.closable,e.bucket=this.bucket,e}}get bucket(){return this.component}get components(){return this.bucket.components}updateModalSidebarPositions(){this.modalSidebars.length>0?this.bucket.showOverlay():this.bucket.hideOverlay();const t=this.bucket.compact?this.bucket.sidemenu.offsetWidth:this.bucket.container.containers[0].offsetWidth+this.bucket.sidemenu.offsetWidth;let e=0,i=0;this.modalSidebars.forEach((async o=>{const n=this.modalSidebarComponents.get(o.id),r="right"==o.position,s=r?i:e;n&&(Ut(n,500+s),Dt(n,{w:o.width||ag.SIDEBAR_WIDTH}),r?(i++,jt(n,{t:0,r:0+20*s,b:0})):(jt(n,{t:0,l:t+20*s,b:0}),e++))}))}async openModalSidebar(t){return this.bucket.showOverlay(),this.modalSidebars.push(t),t.component&&(t.id=t.id||`temp-${yg.getUniqueId()}`,this.components.register(t.id,t.component)),new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i);const o=this.createModalSidebarComponent(t);this.modalSidebarComponents.set(t.id,o),this.bucket.body.appendChild(o),this.updateModalSidebarPositions()}))}async closeModalSidebar(t=!1){const e=t?0:this.modalSidebars.length-1;for(;this.modalSidebars.length>e;){const t=this.modalSidebars.pop();t&&(this.modalSidebarComponents.get(t.id).remove(),this.modalSidebarComponents.delete(t.id),this.components.unregister(t.id))}this.updateModalSidebarPositions()}}class gg extends ud{constructor(){super(...arguments),this.items=new Map}get bucket(){return this.component}register(t,e){this.items.set(t,e)}unregister(t){this.items.delete(t),this.bucket.components.unregister(t)}async open(t){const e=yt("og-dialog");if(e.setOptions(t),e.open(this.bucket),t.id){e.componentId=t.id,e.showLoader();const[i]=await Promise.all([this.component.createComponent(t.id)]);e.hideLoader(),e.addEventListener("dialog.close",(t=>this.unregister(t.dialog.componentId))),e.addEventListener("dialog.move",(()=>this.bucket.dispatchStateEvent())),e.component=i,this.register(t.id,e),this.bucket.dispatchStateEvent()}return e}}var mg,fg=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 vg={top:{rightItems:[]},sidemenu:{items:[],activeIndex:null},editorLayout:{items:[]}};class bg extends Event{constructor(t,e){super(`bucket.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e)}}let yg=mg=class extends hd{get activeComponentId(){return this._activeComponentId}get container(){return this._container||(this._container=yt("og-splitcontainer"),this._container.orientation="horizontal",this._container.items=[{size:ag.SIDEBAR_WIDTH},{size:null}],this._container.createComponent=this._createSplitContainerComponent,this._container.addEventListener("splitContainer.resize",this._onSplitContainerResize),this._container.addEventListener("tab.beforeRemove",this._onTabBeforeRemove),this._container.addEventListener("tab.remove",this._onTabRemove),this._container.addEventListener("tab.select",this._onTabSelect)),this._container}get editorContainer(){return this._editorContainer||(this._editorContainer=yt("og-tabsplitcontainer"),this._editorContainer.style.height="100%",this._editorContainer.closable=!0,this._editorContainer.singleActive=!0,this._editorContainer.createComponent=this.createEditorComponent,this._editorContainer.model=new Op(this.sourceData.editorLayout)),this._editorContainer}get sidebarHost(){return this._sidebarHost||(this._sidebarHost=yt("og-bucket-sidebar"),this._sidebarHost.bucket=this,this._sidebarHost.componentId=this.sidebar1ComponentId),this._sidebarHost}constructor(){super(),this.sourceData=vg,this.logger=new dn("Ωbucket"),this.compact=!1,this.updateContainerVisibility=Y((()=>{let t=!1;this.editorContainer.walk(((e,i)=>{if(i.tabs?.items?.length)return t=!0,!1})),t?xt(this.editorContainer):kt(this.editorContainer)}),100),this.showOverlay=()=>this.overlay.show(this.body),this.hideOverlay=()=>this.overlay.hide(),this._onWindowBeforeUnload=t=>{this.components.hasUnsavedComponents&&(t.preventDefault(),t.returnValue="")},this.createEditorComponent=t=>{const e=yt("og-bucket-component-host");return e.componentId=t,e.bucket=this,e},this._createSplitContainerComponent=t=>{let e;return 0==t?(this.logger.info("create primary sidebar"),this.sidebarHost):1==t?(this.logger.info("create editor container"),this.editorContainer):(e||(e=yt("div"),e.innerHTML="empty"),e)},this._onSplitContainerResize=()=>{this.top?.layout(),this.dispatchStateEvent()},this._onTabRemove=t=>{this.components.unregister(t.tab.id),this.dispatchEvent(new bg("close",{tab:t.tab,componentId:t.tab.id})),this.dispatchStateEvent()},this._onTabBeforeRemove=t=>{this.components.unsavedComponents.has(t.tab.id)&&(t.preventDefault(),this.openMenu({text:"Discard changes and close tab?",content:"yes_no"}).then((e=>{"Y"==e?.id&&(this.components.unsavedComponents.delete(t.tab.id),t.tabs.removeTab(t.index,!0))})))},this._onTabSelect=t=>{t.tabs.topLevelComponent==this.editorContainer&&(this._activeComponentId=t.tab?.id,this.dispatchEvent(new bg("activate",{tab:t.tab,componentId:t.tab?.id})),this.dispatchStateEvent())},this.render=()=>Vr`
1832
+ `,cg={yes_no:[{id:"Y",name:"Yes"},{id:"N",name:"No"}]};class hg extends ud{constructor(){super(...arguments),this.items=[]}async addAlert(t){const e=yt("og-bucket-alert"),i={options:t,component:e};e.options=t,e.addEventListener("close",(()=>this.removeAlert(i))),this.component.shadowRoot.appendChild(e),this.items.push(i),this.items.length>this.component.options.alerts.maxItems&&this.removeAlert(this.items[0]);const o=t.timeout??this.component.options.alerts.timeout;o>0&&(i.timer=window.setTimeout((()=>{i.timer=void 0,this.removeAlert(i)}),o)),await this.component.updateComplete,this.updatePositions()}updatePositions(){[...this.items].reverse().forEach(((t,e)=>{jt(t.component,{r:10,b:10+e*(t.component.offsetHeight+10)})}))}removeAlert(t){const e=this.items.indexOf(t);-1!=e&&(this.items[e].component.remove(),this.items.splice(e,1),null!=t.timer&&window.clearTimeout(t.timer),t.timer=void 0,this.updatePositions())}}const dg={alerts:{maxItems:5,timeout:5e3}};class ug extends ud{constructor(){super(...arguments),this._componentPromiseResolutions=new Map,this._resolvingComponentIds=new Set,this.items=new Map,this.unsavedComponents=new Set,this.states=new Map}get hasUnsavedComponents(){return this.unsavedComponents.size>0}get bucket(){return this.component}setState(t,e){const i=this.items.get(t);i&&i.setState?i.setState(e):this.states.set(t,e)}has(t){return this.items.has(t)}get(t){if(this.items.has(t)){const e=this.items.get(t);return this.resolveComponentPromises(t,e),e}return new Promise(((e,i)=>{const o=this.items.get(t);if(this.enqueueComponentResolution(t,e,i),!this._resolvingComponentIds.has(t)){if(o)return this.resolveComponentPromises(t,o);this._resolvingComponentIds.add(t),Promise.all([this.component.createComponent(t)]).then((e=>{const i=e[0];if(i){this.register(t,i);const e=this.bucket.state;e?.components&&e?.components[t]&&i.setState&&i.setState(e.components[t])}this.resolveComponentPromises(t,i)}))}}))}resolveComponentPromises(t,e){this._componentPromiseResolutions.has(t)&&(this._componentPromiseResolutions.get(t).forEach((t=>t.resolve(e))),this._componentPromiseResolutions.delete(t)),this._resolvingComponentIds.delete(t)}enqueueComponentResolution(t,e,i){this._componentPromiseResolutions.has(t)||this._componentPromiseResolutions.set(t,[]),this._componentPromiseResolutions.get(t).push({resolve:e,reject:i})}update(t,e){const i=e.id??t;if(this.bucket.editorContainer.updateTab(t,{id:i,title:e.title??void 0}),this.items.has(t)&&i!=t){const e=this.items.get(t);this.unregister(t),this.register(i,e)}return this.items.get(i)}register(t,e){this.items.set(t,e),this.bucket.dispatchEvent(new bg("register",{componentId:t}))}unregister(t){this.items.delete(t),this.bucket.dispatchEvent(new bg("unregister",{componentId:t}))}}class pg extends ud{constructor(){super(...arguments),this.modalSidebars=[],this.modalSidebarComponents=new Map,this.createModalSidebarComponent=t=>{const e=yt("og-bucket-modal-sidebar");return e.className=t.position??"left",e.componentId=t.id,e.caption=t.caption,e.closable=null==t.closable||t.closable,e.bucket=this.bucket,e}}get bucket(){return this.component}get components(){return this.bucket.components}updateModalSidebarPositions(){this.modalSidebars.length>0?this.bucket.showOverlay():this.bucket.hideOverlay();const t=this.bucket.compact?this.bucket.sidemenu.offsetWidth:this.bucket.container.containers[0].offsetWidth+this.bucket.sidemenu.offsetWidth;let e=0,i=0;this.modalSidebars.forEach((async o=>{const n=this.modalSidebarComponents.get(o.id),r="right"==o.position,s=r?i:e;n&&(Ut(n,500+s),Dt(n,{w:o.width||ag.SIDEBAR_WIDTH}),r?(i++,jt(n,{t:0,r:0+20*s,b:0})):(jt(n,{t:0,l:t+20*s,b:0}),e++))}))}async openModalSidebar(t){return this.bucket.showOverlay(),this.modalSidebars.push(t),t.component&&(t.id=t.id||`temp-${yg.getUniqueId()}`,this.components.register(t.id,t.component)),new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i);const o=this.createModalSidebarComponent(t);this.modalSidebarComponents.set(t.id,o),this.bucket.body.appendChild(o),this.updateModalSidebarPositions()}))}async closeModalSidebar(t=!1){const e=t?0:this.modalSidebars.length-1;for(;this.modalSidebars.length>e;){const t=this.modalSidebars.pop();t&&(this.modalSidebarComponents.get(t.id).remove(),this.modalSidebarComponents.delete(t.id),this.components.unregister(t.id))}this.updateModalSidebarPositions()}}class gg extends ud{constructor(){super(...arguments),this.items=new Map}get bucket(){return this.component}register(t,e){this.items.set(t,e)}unregister(t){this.items.delete(t),this.bucket.components.unregister(t)}async open(t){const e=yt("og-dialog");if(e.setOptions(t),e.open(this.bucket),t.id){e.componentId=t.id,e.showLoader();const[i]=await Promise.all([this.component.createComponent(t.id)]);e.hideLoader(),e.addEventListener("dialog.close",(t=>this.unregister(t.dialog.componentId))),e.addEventListener("dialog.move",(()=>this.bucket.dispatchStateEvent())),e.component=i,this.register(t.id,e),this.bucket.dispatchStateEvent()}return e}}var mg,fg=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 vg={top:{rightItems:[]},sidemenu:{items:[],activeIndex:null},editorLayout:{items:[]}};class bg extends Event{constructor(t,e){super(`bucket.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e)}}let yg=mg=class extends hd{get activeComponentId(){return this._activeComponentId}get container(){return this._container||(this._container=yt("og-splitcontainer"),this._container.orientation="horizontal",this._container.items=[{size:ag.SIDEBAR_WIDTH},{size:null}],this._container.createComponent=this._createSplitContainerComponent,this._container.addEventListener("splitContainer.resize",this._onSplitContainerResize),this._container.addEventListener("tab.beforeRemove",this._onTabBeforeRemove),this._container.addEventListener("tab.remove",this._onTabRemove),this._container.addEventListener("tab.select",this._onTabSelect)),this._container}get editorContainer(){return this._editorContainer||(this._editorContainer=yt("og-tabsplitcontainer"),this._editorContainer.style.height="100%",this._editorContainer.closable=!0,this._editorContainer.singleActive=!0,this._editorContainer.createComponent=this.createEditorComponent,this._editorContainer.model=new Op(this.sourceData.editorLayout)),this._editorContainer}get sidebarHost(){return this._sidebarHost||(this._sidebarHost=yt("og-bucket-sidebar"),this._sidebarHost.bucket=this,this._sidebarHost.componentId=this.sidebar1ComponentId),this._sidebarHost}constructor(){super(),this.sourceData=vg,this.logger=new dn("Ωbucket"),this.compact=!1,this.updateContainerVisibility=Y((()=>{let t=!1;this.editorContainer.walk(((e,i)=>{if(i.tabs?.items?.length)return t=!0,!1})),t?xt(this.editorContainer):kt(this.editorContainer)}),100),this.showOverlay=()=>this.overlay.show(this.body),this.hideOverlay=()=>this.overlay.hide(),this._onWindowBeforeUnload=t=>{this.components.hasUnsavedComponents&&(t.preventDefault(),t.returnValue="")},this.createEditorComponent=t=>{const e=yt("og-bucket-component-host");return e.componentId=t,e.bucket=this,e},this._createSplitContainerComponent=t=>{let e;return 0==t?(this.logger.info("create primary sidebar"),this.sidebarHost):1==t?(this.logger.info("create editor container"),this.editorContainer):(e||(e=yt("div"),e.innerHTML="empty"),e)},this._onSplitContainerResize=()=>{this.top?.layout(),this.dispatchStateEvent()},this._onTabRemove=t=>{this.components.unregister(t.tab.id),this.dispatchEvent(new bg("close",{tab:t.tab,componentId:t.tab.id})),this.dispatchStateEvent()},this._onTabBeforeRemove=t=>{this.components.unsavedComponents.has(t.tab.id)&&(t.preventDefault(),this.openMenu({text:"Discard changes and close tab?",content:"yes_no"}).then((e=>{"Y"==e?.id&&(this.components.unsavedComponents.delete(t.tab.id),t.tabs.removeTab(t.index,!0))})))},this._onTabSelect=t=>{t.tabs.topLevelComponent==this.editorContainer&&(this._activeComponentId=t.tab?.id,this.dispatchEvent(new bg("activate",{tab:t.tab,componentId:t.tab?.id})),this.dispatchStateEvent())},this.render=()=>Vr`
1833
1833
  <og-bucket-top></og-bucket-top>
1834
1834
  <og-commands .target="${this}"></og-commands>
1835
1835
 
@@ -8401,4 +8401,4 @@ milkdown-block-handle {
8401
8401
  `:null}
8402
8402
  </div>
8403
8403
  </og-panel>
8404
- `: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?av.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?av.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=av.fromA1(this.dataRangeInput.value),this.dispatchEvent(new An({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Oz.styles=[Tz],Az([us({type:Object})],Oz.prototype,"model",void 0),Az([ps()],Oz.prototype,"editTitle",void 0),Az([ms("#title")],Oz.prototype,"titleInput",void 0),Az([ms("#type")],Oz.prototype,"typeList",void 0),Az([ms("#dataRange")],Oz.prototype,"dataRangeInput",void 0),Az([ms("#seriesRange")],Oz.prototype,"seriesRangeInput",void 0),Az([ms("#categoryRange")],Oz.prototype,"categoryRangeInput",void 0),Oz=Az([cs("og-plugin-chart-form")],Oz);const $z=ya().themes.get("dark");Object.assign($z.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 Dz=ya().themes.get("light");Object.assign(Dz.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 Nz=i(2439),Pz=i(8022),jz=i(6158),Vz=i(127),Bz=i(4505),Fz=i(8659),Wz=i(397),Uz=i(930),Gz=i(9723),Yz=i(6343),qz=i(4582),Zz=i(6127),Xz=i(8238),Qz=i(7362),Kz=i(452),Jz=i(5390),tR=i(3368),eR=i(6288),iR=i(7513),oR=i(1386),nR=i(5764),rR=i(1261),sR=i(3071),aR=i(3285),lR=i(2356),cR=i(6780),hR=i(8542),dR=i(8385),uR=i(1025),pR=i(2034),gR=i(8113),mR=i(1821),fR=i(7212),vR=i(2583),bR=i(5360),yR=i(2377),wR=i(2864),xR=i(7998),kR=i(4101),CR=i(7813),MR=i(5037),_R=i(7005),SR=i(9626),ER=i(9517),zR=i(1504),RR=i(3838),LR=i(4935),IR=i(7699),HR=i(3322),TR=i(5757),AR=i(536),OR=i(1673),$R=i(8736),DR=i(196),NR=i(5133),PR=i(6092),jR=i(791),VR=i(5927),BR=i(1802),FR=i(9511),WR=i(6267),UR=i(1072),GR=i(4331),YR=i(8644),qR=i(2704),ZR=i(2419),XR=i(6363),QR=i(5236),KR=i(3499),JR=i(3811),tL=i(1953),eL=i(4729),iL=i(8964),oL=i(8540),nL=i(8752),rL=i(8783),sL=i(8270),aL=i(7261),lL=i(9231),cL=i(4555),hL=i(5293),dL=i(6981),uL=i(5268),pL=i(2680),gL=i(789),mL=i(4373),fL=i(436),vL=i(8573),bL=i(1808),yL=i(3247),wL=i(5143),xL=i(2415),kL=i(2561),CL=i(5726),ML=i(7436),_L=i(4201),SL=i(8248),EL=i(6433),zL=i(2698),RL=i(979),LL=i(9358),IL=i(9176),HL=i(1239),TL=i(4218),AL=i(8377),OL=i(3740),$L=i(5379),DL=i(9974),NL=i(8955),PL=i(3559),jL=i(809),VL=i(8014),BL=i(8265),FL=i(3300),WL=i(8724),UL=i(8033),GL=i(7700),YL=i(5741),qL=i(3478),ZL=i(512),XL=i(499),QL=i(8680),KL=i(9646),JL=i(9432),tI=i(2841),eI=i(75),iI=i(9256),oI=i(444),nI=i(5633),rI=i(3788),sI=i(3573),aI=i(9948),lI=i(1836),cI=i(7029),hI=i(8532),dI=i(6639),uI=i(1633),pI=i(9805),gI=i(2171),mI=i(875),fI=i(9595),vI=i(3894),bI=i(2803),yI=i(7765),wI=i(8804),xI=i(8654),kI=i(257),CI=i(5844),MI=i(9651),_I=i(760),SI=i(9518),EI=i(4585),zI=i(1769),RI=i(643),LI=i(5156),II=i(822),HI=i(8249),TI=i(3434),AI=i(9314),OI=i(3093),$I=i(7721),DI=i(588),NI=i(7645),PI=i(7148),jI=i(6795),VI=i(7047),BI=i(9428),FI=i(1879),WI=i(9779),UI=i(2476),GI=i(9648),YI=i(2896),qI=i(6817),ZI=i(5196),XI=i(2762),QI=i(5981),KI=i(9014),JI=i(2611),tH=i(7946),eH=i(6301),iH=i(8020),oH=i(3987),nH=i(3192),rH=i(8796),sH=i(2489),aH=i(7324),lH=i(6069),cH=i(4155),hH=i(6977),dH=i(8055),uH=i(2653),pH=i(9492),gH=i(4334),mH=i(6804),fH=i(9954),vH=i(2211),bH=i(5211),yH=i(1519),wH=i(6204),xH=i(5501),kH=i(5244),CH=i(9742),MH=i(1552),_H=i(1330),SH=i(2596),EH=i(5184),zH=i(7675),RH=i(1513),LH=i(9396),IH=i(7673),HH=i(244),TH=i(1187),AH=i(1736),OH=i(4390),$H=i(7106),DH=i(2096),NH=i(9991),PH=i(5629),jH=i(3386),VH=i(6651),BH=i(1684),FH=i(3849),WH=i(2582),UH=i(8569),GH=i(2955),YH=i(9100),qH=i(7381),ZH=i(9190),XH=i(4071),QH=i(8e3),KH=i(4633),JH=i(4374),tT=i(486),eT=i(3680),iT=i(9999),oT=i(2830),nT=i(5255),rT=i(6021),sT=i(2214),aT=i(8497),lT=i(2052),cT=i(5327),hT=i(8701),dT=i(8722),uT=i(7325),pT=i(2445);const gT=[Nz.mw,Pz.mw,jz.mw,Vz.mw,Bz.mw,Fz.mw,Wz.mw,Uz.mw,Gz.mw,qz.mw,Yz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,sR.mw,aR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.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,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,$R.mw,DR.mw,NR.mw,PR.mw,jR.mw,BR.mw,FR.mw,WR.mw,UR.mw,GR.mw,YR.mw,qR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tL.mw,eL.mw,iL.mw,oL.mw,nL.mw,rL.mw,sL.mw,VR.mw,aL.mw,lL.mw,cL.mw,hL.mw,dL.mw,uL.mw,pL.mw,gL.mw,mL.mw,fL.mw,vL.mw,bL.mw,yL.mw,wL.mw,xL.mw,kL.mw,CL.mw,ML.mw,_L.mw,SL.mw,EL.mw,zL.mw,RL.mw,LL.mw,IL.mw,HL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,NL.mw,PL.mw,jL.mw,VL.mw,BL.mw,FL.mw,WL.mw,UL.mw,GL.mw,YL.mw,pR.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,nI.mw,rI.mw,sI.mw,aI.mw,cI.mw,lI.mw,dI.mw,hI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,_I.mw,SI.mw,EI.mw,zI.mw,RI.mw,LI.mw,II.mw,TI.mw,AI.mw,OI.mw,jI.mw,VI.mw,BI.mw,FI.mw,WI.mw,UI.mw,GI.mw,YI.mw,xI.mw,kI.mw,MI.mw,CI.mw,qI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tH.mw,eH.mw,$I.mw,DI.mw,NI.mw,PI.mw,oH.mw,nH.mw,rH.mw,sH.mw,aH.mw,lH.mw,cH.mw,hH.mw,dH.mw,uH.mw,pH.mw,gH.mw,mH.mw,fH.mw,vH.mw,bH.mw,yH.mw,wH.mw,xH.mw,iH.mw,kH.mw,CH.mw,MH.mw,_H.mw,SH.mw,EH.mw,zH.mw,RH.mw,LH.mw,IH.mw,HH.mw,TH.mw,AH.mw,OH.mw,$H.mw,DH.mw,NH.mw,PH.mw,jH.mw,VH.mw,BH.mw,FH.mw,WH.mw,UH.mw,GH.mw,YH.mw,qH.mw,ZH.mw,XH.mw,QH.mw,KH.mw,JH.mw,tT.mw,eT.mw,iT.mw,oT.mw,nT.mw,rT.mw,sT.mw,aT.mw,lT.mw,HI.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw],mT={xlsx:V,charts:B},fT={name:"@omegagrid/bundle",version:"0.6.78"};ya().activate("light"),Ph.styleDefault="fal",jh.add(...gT)})(),window.Omegagrid=o})();
8404
+ `: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?av.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?av.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=av.fromA1(this.dataRangeInput.value),this.dispatchEvent(new An({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Oz.styles=[Tz],Az([us({type:Object})],Oz.prototype,"model",void 0),Az([ps()],Oz.prototype,"editTitle",void 0),Az([ms("#title")],Oz.prototype,"titleInput",void 0),Az([ms("#type")],Oz.prototype,"typeList",void 0),Az([ms("#dataRange")],Oz.prototype,"dataRangeInput",void 0),Az([ms("#seriesRange")],Oz.prototype,"seriesRangeInput",void 0),Az([ms("#categoryRange")],Oz.prototype,"categoryRangeInput",void 0),Oz=Az([cs("og-plugin-chart-form")],Oz);const $z=ya().themes.get("dark");Object.assign($z.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 Dz=ya().themes.get("light");Object.assign(Dz.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 Nz=i(2439),Pz=i(8022),jz=i(6158),Vz=i(127),Bz=i(4505),Fz=i(8659),Wz=i(397),Uz=i(930),Gz=i(9723),Yz=i(6343),qz=i(4582),Zz=i(6127),Xz=i(8238),Qz=i(7362),Kz=i(452),Jz=i(5390),tR=i(3368),eR=i(6288),iR=i(7513),oR=i(1386),nR=i(5764),rR=i(1261),sR=i(3071),aR=i(3285),lR=i(2356),cR=i(6780),hR=i(8542),dR=i(8385),uR=i(1025),pR=i(2034),gR=i(8113),mR=i(1821),fR=i(7212),vR=i(2583),bR=i(5360),yR=i(2377),wR=i(2864),xR=i(7998),kR=i(4101),CR=i(7813),MR=i(5037),_R=i(7005),SR=i(9626),ER=i(9517),zR=i(1504),RR=i(3838),LR=i(4935),IR=i(7699),HR=i(3322),TR=i(5757),AR=i(536),OR=i(1673),$R=i(8736),DR=i(196),NR=i(5133),PR=i(6092),jR=i(791),VR=i(5927),BR=i(1802),FR=i(9511),WR=i(6267),UR=i(1072),GR=i(4331),YR=i(8644),qR=i(2704),ZR=i(2419),XR=i(6363),QR=i(5236),KR=i(3499),JR=i(3811),tL=i(1953),eL=i(4729),iL=i(8964),oL=i(8540),nL=i(8752),rL=i(8783),sL=i(8270),aL=i(7261),lL=i(9231),cL=i(4555),hL=i(5293),dL=i(6981),uL=i(5268),pL=i(2680),gL=i(789),mL=i(4373),fL=i(436),vL=i(8573),bL=i(1808),yL=i(3247),wL=i(5143),xL=i(2415),kL=i(2561),CL=i(5726),ML=i(7436),_L=i(4201),SL=i(8248),EL=i(6433),zL=i(2698),RL=i(979),LL=i(9358),IL=i(9176),HL=i(1239),TL=i(4218),AL=i(8377),OL=i(3740),$L=i(5379),DL=i(9974),NL=i(8955),PL=i(3559),jL=i(809),VL=i(8014),BL=i(8265),FL=i(3300),WL=i(8724),UL=i(8033),GL=i(7700),YL=i(5741),qL=i(3478),ZL=i(512),XL=i(499),QL=i(8680),KL=i(9646),JL=i(9432),tI=i(2841),eI=i(75),iI=i(9256),oI=i(444),nI=i(5633),rI=i(3788),sI=i(3573),aI=i(9948),lI=i(1836),cI=i(7029),hI=i(8532),dI=i(6639),uI=i(1633),pI=i(9805),gI=i(2171),mI=i(875),fI=i(9595),vI=i(3894),bI=i(2803),yI=i(7765),wI=i(8804),xI=i(8654),kI=i(257),CI=i(5844),MI=i(9651),_I=i(760),SI=i(9518),EI=i(4585),zI=i(1769),RI=i(643),LI=i(5156),II=i(822),HI=i(8249),TI=i(3434),AI=i(9314),OI=i(3093),$I=i(7721),DI=i(588),NI=i(7645),PI=i(7148),jI=i(6795),VI=i(7047),BI=i(9428),FI=i(1879),WI=i(9779),UI=i(2476),GI=i(9648),YI=i(2896),qI=i(6817),ZI=i(5196),XI=i(2762),QI=i(5981),KI=i(9014),JI=i(2611),tH=i(7946),eH=i(6301),iH=i(8020),oH=i(3987),nH=i(3192),rH=i(8796),sH=i(2489),aH=i(7324),lH=i(6069),cH=i(4155),hH=i(6977),dH=i(8055),uH=i(2653),pH=i(9492),gH=i(4334),mH=i(6804),fH=i(9954),vH=i(2211),bH=i(5211),yH=i(1519),wH=i(6204),xH=i(5501),kH=i(5244),CH=i(9742),MH=i(1552),_H=i(1330),SH=i(2596),EH=i(5184),zH=i(7675),RH=i(1513),LH=i(9396),IH=i(7673),HH=i(244),TH=i(1187),AH=i(1736),OH=i(4390),$H=i(7106),DH=i(2096),NH=i(9991),PH=i(5629),jH=i(3386),VH=i(6651),BH=i(1684),FH=i(3849),WH=i(2582),UH=i(8569),GH=i(2955),YH=i(9100),qH=i(7381),ZH=i(9190),XH=i(4071),QH=i(8e3),KH=i(4633),JH=i(4374),tT=i(486),eT=i(3680),iT=i(9999),oT=i(2830),nT=i(5255),rT=i(6021),sT=i(2214),aT=i(8497),lT=i(2052),cT=i(5327),hT=i(8701),dT=i(8722),uT=i(7325),pT=i(2445);const gT=[Nz.mw,Pz.mw,jz.mw,Vz.mw,Bz.mw,Fz.mw,Wz.mw,Uz.mw,Gz.mw,qz.mw,Yz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,sR.mw,aR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.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,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,$R.mw,DR.mw,NR.mw,PR.mw,jR.mw,BR.mw,FR.mw,WR.mw,UR.mw,GR.mw,YR.mw,qR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tL.mw,eL.mw,iL.mw,oL.mw,nL.mw,rL.mw,sL.mw,VR.mw,aL.mw,lL.mw,cL.mw,hL.mw,dL.mw,uL.mw,pL.mw,gL.mw,mL.mw,fL.mw,vL.mw,bL.mw,yL.mw,wL.mw,xL.mw,kL.mw,CL.mw,ML.mw,_L.mw,SL.mw,EL.mw,zL.mw,RL.mw,LL.mw,IL.mw,HL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,NL.mw,PL.mw,jL.mw,VL.mw,BL.mw,FL.mw,WL.mw,UL.mw,GL.mw,YL.mw,pR.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,nI.mw,rI.mw,sI.mw,aI.mw,cI.mw,lI.mw,dI.mw,hI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,_I.mw,SI.mw,EI.mw,zI.mw,RI.mw,LI.mw,II.mw,TI.mw,AI.mw,OI.mw,jI.mw,VI.mw,BI.mw,FI.mw,WI.mw,UI.mw,GI.mw,YI.mw,xI.mw,kI.mw,MI.mw,CI.mw,qI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tH.mw,eH.mw,$I.mw,DI.mw,NI.mw,PI.mw,oH.mw,nH.mw,rH.mw,sH.mw,aH.mw,lH.mw,cH.mw,hH.mw,dH.mw,uH.mw,pH.mw,gH.mw,mH.mw,fH.mw,vH.mw,bH.mw,yH.mw,wH.mw,xH.mw,iH.mw,kH.mw,CH.mw,MH.mw,_H.mw,SH.mw,EH.mw,zH.mw,RH.mw,LH.mw,IH.mw,HH.mw,TH.mw,AH.mw,OH.mw,$H.mw,DH.mw,NH.mw,PH.mw,jH.mw,VH.mw,BH.mw,FH.mw,WH.mw,UH.mw,GH.mw,YH.mw,qH.mw,ZH.mw,XH.mw,QH.mw,KH.mw,JH.mw,tT.mw,eT.mw,iT.mw,oT.mw,nT.mw,rT.mw,sT.mw,aT.mw,lT.mw,HI.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw],mT={xlsx:V,charts:B},fT={name:"@omegagrid/bundle",version:"0.6.80"};ya().activate("light"),Ph.styleDefault="fal",jh.add(...gT)})(),window.Omegagrid=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/bundle",
3
- "version": "0.6.78",
3
+ "version": "0.6.80",
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.78",
23
- "@omegagrid/calendar": "^0.6.78",
24
- "@omegagrid/code": "^0.6.78",
25
- "@omegagrid/commands": "^0.6.78",
26
- "@omegagrid/core": "^0.6.78",
27
- "@omegagrid/dialog": "^0.6.78",
28
- "@omegagrid/editor": "^0.6.78",
29
- "@omegagrid/form": "^0.6.78",
30
- "@omegagrid/grid": "^0.6.78",
31
- "@omegagrid/localize": "^0.6.78",
32
- "@omegagrid/markdown": "^0.6.78",
33
- "@omegagrid/plugin-charts": "^0.6.78",
34
- "@omegagrid/plugin-xlsx": "^0.6.78",
35
- "@omegagrid/statusbar": "^0.6.78",
36
- "@omegagrid/tabs": "^0.6.78",
37
- "@omegagrid/toolbar": "^0.6.78",
38
- "@omegagrid/tree": "^0.6.78",
22
+ "@omegagrid/bucket": "^0.6.80",
23
+ "@omegagrid/calendar": "^0.6.80",
24
+ "@omegagrid/code": "^0.6.80",
25
+ "@omegagrid/commands": "^0.6.80",
26
+ "@omegagrid/core": "^0.6.80",
27
+ "@omegagrid/dialog": "^0.6.80",
28
+ "@omegagrid/editor": "^0.6.80",
29
+ "@omegagrid/form": "^0.6.80",
30
+ "@omegagrid/grid": "^0.6.80",
31
+ "@omegagrid/localize": "^0.6.80",
32
+ "@omegagrid/markdown": "^0.6.80",
33
+ "@omegagrid/plugin-charts": "^0.6.80",
34
+ "@omegagrid/plugin-xlsx": "^0.6.80",
35
+ "@omegagrid/statusbar": "^0.6.80",
36
+ "@omegagrid/tabs": "^0.6.80",
37
+ "@omegagrid/toolbar": "^0.6.80",
38
+ "@omegagrid/tree": "^0.6.80",
39
39
  "lit": "^3.1.1"
40
40
  },
41
41
  "devDependencies": {