@omegagrid/bundle 0.9.5 → 0.9.6

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 +2 -2
  2. package/package.json +18 -18
package/omegagrid.js CHANGED
@@ -2505,7 +2505,7 @@
2505
2505
  ${"bottom"==this.sectionPosition?this.renderSwitches():""}
2506
2506
 
2507
2507
  ${"bottom"==this.sectionPosition?this.renderTabs():""}
2508
- `,this.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this.tabIndex=0}focus(){this.input?.focus()}clearFilter(t=!0){this.input.value="",this.focus(),t&&this.updateCommands()}async willUpdate(t){if(t.has("adapter")&&this.adapter){this.adapter.attach(this);const t=await this.adapter.getSections(),e=await this.adapter.getOptions(t?.length?t[0].id:null);this.sections=t,e&&(this.options=Xp(e))}else t.has("commands")&&this.commands&&(this.model.clear(),this.commands.forEach((t=>this.model.register(t)))),t.has("options")&&(this.options=Xp(this.options))}async updated(t){(t.has("commands")||t.has("adapter")||t.has("model"))&&await this.updateCommands()}async updateCommands(t=!1){if(this.adapter){this.model.clear();const e=this.activeSection?.switches?.filter((t=>t.checked)).map((t=>t.key))||[];if(t){const t=await this.adapter.getOptions(this.activeSection?.id);this.options=Xp(t,this.options)}const[i,o]=await Promise.all([this.adapter.getGroups({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e}),this.adapter.getCommands({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e})]);i?.forEach((t=>this.model.registerGroup(t))),o?.forEach((t=>this.model.register(t))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups);this.placeholder=this.activeSection?.placeholder||"",this.list.reset(),this.list.size=this.visibleItems.length,this.list.selectedIndex=this.visibleItems.findIndex((t=>t instanceof Up))??0,this.list.renderItems(!0),this.noResults=0==this.visibleItems.length,await this.list.updateComplete}async toggleGroup(t){const e=this.model.groups.get(t);if(this.list.reset(),e.open)e.open=!1,this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0),this.list.size=this.visibleItems.length;else if(e.open=!0,this.adapter){const i=(await Promise.all([this.adapter.getCommands({sectionId:this.activeSection?.id,groupId:t,filter:this.filterValue})]))[0];i.length>0&&(e.commands.clear(),i.forEach((i=>{i.group&&i.group!=t||e.addCommand(i)}))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0);this.list.size=this.visibleItems.length}getSectionTitle(t){return(t.title??t.id)+(t.triggerCommand?` (${t.triggerCommand})`:"")}};og.styles=[Qp],Jp([Ls({type:Object})],og.prototype,"options",void 0),Jp([Ls({type:String})],og.prototype,"mode",void 0),Jp([Ls({type:String})],og.prototype,"value",void 0),Jp([Ls({type:String,reflect:!0})],og.prototype,"sectionPosition",void 0),Jp([Ls({type:String})],og.prototype,"text",void 0),Jp([Ls({type:Array})],og.prototype,"commands",void 0),Jp([Ls({type:Object})],og.prototype,"adapter",void 0),Jp([Ls({type:Object})],og.prototype,"target",void 0),Jp([Ls({type:String})],og.prototype,"placeholder",void 0),Jp([Ls({type:Boolean})],og.prototype,"showGroups",void 0),Jp([Ls({type:Object})],og.prototype,"model",void 0),Jp([Is()],og.prototype,"sections",void 0),Jp([Is()],og.prototype,"activeSectionIndex",void 0),Jp([Is()],og.prototype,"noResults",void 0),Jp([Ts("og-list")],og.prototype,"list",void 0),Jp([Ts("input")],og.prototype,"input",void 0),Jp([Ts("og-dropdown-list")],og.prototype,"dropdown",void 0),og=Jp([Ss("og-commands")],og);class rg extends Zd{filterCommands(t,e){if(!t)return[];const i=null==e?.filter?null:new RegExp(ut(e.filter),"i");return null==i?t:t.filter((t=>i.test(t.id||t.name||"")))}getGroups(t){return[]}getCommands(t){return[]}getSections(t){return[{id:"default"}]}getOptions(t){return null}exec(t,e){}}class ng extends rg{get commands(){return this._commands}set commands(t){this._commands=t,this.map.clear();const e=t=>{t.forEach((t=>{this.map.set(t.id??t.name,t),t.next?.commands&&e(t.next.commands)}))};e(this._commands)}constructor(t){super(),this.map=new Map,this.commandChain=[],this._commands=[],this.commands=t}getCommands(t){const e=this.commandChain.length?this.commandChain[this.commandChain.length-1]:null,i=e?this.map.get(e.id)?.next?.commands:null;return this.filterCommands(i||this.commands,t)}exec(t,e){const i=this.map.get(t.id)?.next;i?.commands?.length?(this.commandChain.push(t),null==this._originalText&&(this._originalText=this.component.text),null==this._originalMode&&(this._originalMode=this.component.mode),null!=i.text&&(this.component.text=i.text),null!=i.mode&&(this.component.mode=i.mode)):this.reset(),this.component.updateCommands()}reset(){this.commandChain=[],this.component&&(this.component.text=this._originalText,this.component.mode=this._originalMode),this._originalText=null,this._originalMode=null}getOptions(){return null}}const sg={yes_no:t=>[{id:"Y",name:"Yes",exec:t},{id:"N",name:"No",exec:t}],apply:t=>[{id:"apply",name:"Apply",exec:t},{id:"cancel",name:"Cancel"}],ok:t=>[{id:"ok",name:"OK",exec:t},{id:"cancel",name:"Cancel"}]},ag=(t,e)=>sg[t](e);class lg{get commands(){return this._commands}constructor(t){this.target=t,this._commands=[],this._onExec=t=>{Sr().info(`trigger command: ${t.command.id}`),this._resolveCallback&&this._resolveCallback(t.command),this._resolveCallback=null,this._rejectCallback=null,null==this.adapter.map.get(t.command.id)?.next&&this.close()}}clear(){this._commands=[],this._adapter=null}add(t){this._commands.push(...Array.isArray(t)?t:[t]),this._adapter=null}get adapter(){return this._adapter||(this._adapter=new ng(this._commands)),this._adapter}cleanCallbacks(){this._rejectCallback&&this._rejectCallback(),this._resolveCallback=null,this._rejectCallback=null}get menu(){return this._menu??(this._menu=yt("og-commands",{listeners:[["command.exec",this._onExec]]}))}get menuContainer(){return this._menuContainer||(this._menuContainer=yt("og-floating-window",{listeners:[["hide",()=>{this.target?.focus(),this.adapter?.reset()}]]}),this.menu.slot="content",this._menuContainer.appendChild(this.menu)),this._menuContainer}async open(t){return Sr().info("open menu"),this.target.shadowRoot.appendChild(this.menuContainer),this.menuContainer.show(),t??(t={content:null}),this.menu.text=t.text,this.menu.value=t.value,this.menu.mode=t.mode||"search",Array.isArray(t.content)?(this.menu.commands=t.content,this.menu.adapter=null):"string"==typeof t.content?(this.menu.commands=ag(t.content),this.menu.adapter=null):(this.menu.commands=null,this.menu.adapter=this.adapter),await this.menu.updateComplete,this.menu.focus(),this.updatePosition(),new Promise(((t,e)=>{this._resolveCallback=t,this._rejectCallback=e}))}close(){this.menuContainer.hide(!1),this.menuContainer.remove(),this.cleanCallbacks(),this.target?.focus()}updatePosition(){Nt(this.menuContainer,{w:.9*this.target.clientWidth}),Yt(this.menuContainer,this.target,{horizontal:!0,vertical:!1}),Ht(this.menuContainer,{t:50})}}const cg={TOP_HEIGHT:41,SIDEMENU_WIDTH:41,SIDEBAR_WIDTH:250,SIZER_TRESHOLD:5,SIDEBAR_HEADER_HEIGHT:30,ALERT_DEFAULT_HEIGHT:30,ALERT_MAX_HEIGHT:300,...G},hg=yn`
2508
+ `,this.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this.tabIndex=0}focus(){this.input?.focus()}clearFilter(t=!0){this.input.value="",this.focus(),t&&this.updateCommands()}async willUpdate(t){if(t.has("adapter")&&this.adapter){this.adapter.attach(this);const t=await this.adapter.getSections(),e=await this.adapter.getOptions(t?.length?t[0].id:null);this.sections=t,e&&(this.options=Xp(e))}else t.has("commands")&&this.commands&&(this.model.clear(),this.commands.forEach((t=>this.model.register(t)))),t.has("options")&&(this.options=Xp(this.options))}async updated(t){(t.has("commands")||t.has("adapter")||t.has("model"))&&await this.updateCommands()}async updateCommands(t=!1){if(this.adapter){this.model.clear();const e=this.activeSection?.switches?.filter((t=>t.checked)).map((t=>t.key))||[];if(t){const t=await this.adapter.getOptions(this.activeSection?.id);this.options=Xp(t)}const[i,o]=await Promise.all([this.adapter.getGroups({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e}),this.adapter.getCommands({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e})]);i?.forEach((t=>this.model.registerGroup(t))),o?.forEach((t=>this.model.register(t))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups);this.placeholder=this.activeSection?.placeholder||"",this.list.reset(),this.list.size=this.visibleItems.length,this.list.selectedIndex=this.visibleItems.findIndex((t=>t instanceof Up))??0,this.list.renderItems(!0),this.noResults=0==this.visibleItems.length,await this.list.updateComplete}async toggleGroup(t){const e=this.model.groups.get(t);if(this.list.reset(),e.open)e.open=!1,this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0),this.list.size=this.visibleItems.length;else if(e.open=!0,this.adapter){const i=(await Promise.all([this.adapter.getCommands({sectionId:this.activeSection?.id,groupId:t,filter:this.filterValue})]))[0];i.length>0&&(e.commands.clear(),i.forEach((i=>{i.group&&i.group!=t||e.addCommand(i)}))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0);this.list.size=this.visibleItems.length}getSectionTitle(t){return(t.title??t.id)+(t.triggerCommand?` (${t.triggerCommand})`:"")}};og.styles=[Qp],Jp([Ls({type:Object})],og.prototype,"options",void 0),Jp([Ls({type:String})],og.prototype,"mode",void 0),Jp([Ls({type:String})],og.prototype,"value",void 0),Jp([Ls({type:String,reflect:!0})],og.prototype,"sectionPosition",void 0),Jp([Ls({type:String})],og.prototype,"text",void 0),Jp([Ls({type:Array})],og.prototype,"commands",void 0),Jp([Ls({type:Object})],og.prototype,"adapter",void 0),Jp([Ls({type:Object})],og.prototype,"target",void 0),Jp([Ls({type:String})],og.prototype,"placeholder",void 0),Jp([Ls({type:Boolean})],og.prototype,"showGroups",void 0),Jp([Ls({type:Object})],og.prototype,"model",void 0),Jp([Is()],og.prototype,"sections",void 0),Jp([Is()],og.prototype,"activeSectionIndex",void 0),Jp([Is()],og.prototype,"noResults",void 0),Jp([Ts("og-list")],og.prototype,"list",void 0),Jp([Ts("input")],og.prototype,"input",void 0),Jp([Ts("og-dropdown-list")],og.prototype,"dropdown",void 0),og=Jp([Ss("og-commands")],og);class rg extends Zd{filterCommands(t,e){if(!t)return[];const i=null==e?.filter?null:new RegExp(ut(e.filter),"i");return null==i?t:t.filter((t=>i.test(t.id||t.name||"")))}getGroups(t){return[]}getCommands(t){return[]}getSections(t){return[{id:"default"}]}getOptions(t){return null}exec(t,e){}}class ng extends rg{get commands(){return this._commands}set commands(t){this._commands=t,this.map.clear();const e=t=>{t.forEach((t=>{this.map.set(t.id??t.name,t),t.next?.commands&&e(t.next.commands)}))};e(this._commands)}constructor(t){super(),this.map=new Map,this.commandChain=[],this._commands=[],this.commands=t}getCommands(t){const e=this.commandChain.length?this.commandChain[this.commandChain.length-1]:null,i=e?this.map.get(e.id)?.next?.commands:null;return this.filterCommands(i||this.commands,t)}exec(t,e){const i=this.map.get(t.id)?.next;i?.commands?.length?(this.commandChain.push(t),null==this._originalText&&(this._originalText=this.component.text),null==this._originalMode&&(this._originalMode=this.component.mode),null!=i.text&&(this.component.text=i.text),null!=i.mode&&(this.component.mode=i.mode)):this.reset(),this.component.updateCommands()}reset(){this.commandChain=[],this.component&&(this.component.text=this._originalText,this.component.mode=this._originalMode),this._originalText=null,this._originalMode=null}getOptions(){return null}}const sg={yes_no:t=>[{id:"Y",name:"Yes",exec:t},{id:"N",name:"No",exec:t}],apply:t=>[{id:"apply",name:"Apply",exec:t},{id:"cancel",name:"Cancel"}],ok:t=>[{id:"ok",name:"OK",exec:t},{id:"cancel",name:"Cancel"}]},ag=(t,e)=>sg[t](e);class lg{get commands(){return this._commands}constructor(t){this.target=t,this._commands=[],this._onExec=t=>{Sr().info(`trigger command: ${t.command.id}`),this._resolveCallback&&this._resolveCallback(t.command),this._resolveCallback=null,this._rejectCallback=null,null==this.adapter.map.get(t.command.id)?.next&&this.close()}}clear(){this._commands=[],this._adapter=null}add(t){this._commands.push(...Array.isArray(t)?t:[t]),this._adapter=null}get adapter(){return this._adapter||(this._adapter=new ng(this._commands)),this._adapter}cleanCallbacks(){this._rejectCallback&&this._rejectCallback(),this._resolveCallback=null,this._rejectCallback=null}get menu(){return this._menu??(this._menu=yt("og-commands",{listeners:[["command.exec",this._onExec]]}))}get menuContainer(){return this._menuContainer||(this._menuContainer=yt("og-floating-window",{listeners:[["hide",()=>{this.target?.focus(),this.adapter?.reset()}]]}),this.menu.slot="content",this._menuContainer.appendChild(this.menu)),this._menuContainer}async open(t){return Sr().info("open menu"),this.target.shadowRoot.appendChild(this.menuContainer),this.menuContainer.show(),t??(t={content:null}),this.menu.text=t.text,this.menu.value=t.value,this.menu.mode=t.mode||"search",Array.isArray(t.content)?(this.menu.commands=t.content,this.menu.adapter=null):"string"==typeof t.content?(this.menu.commands=ag(t.content),this.menu.adapter=null):(this.menu.commands=null,this.menu.adapter=this.adapter),await this.menu.updateComplete,this.menu.focus(),this.updatePosition(),new Promise(((t,e)=>{this._resolveCallback=t,this._rejectCallback=e}))}close(){this.menuContainer.hide(!1),this.menuContainer.remove(),this.cleanCallbacks(),this.target?.focus()}updatePosition(){Nt(this.menuContainer,{w:.9*this.target.clientWidth}),Yt(this.menuContainer,this.target,{horizontal:!0,vertical:!1}),Ht(this.menuContainer,{t:50})}}const cg={TOP_HEIGHT:41,SIDEMENU_WIDTH:41,SIDEBAR_WIDTH:250,SIZER_TRESHOLD:5,SIDEBAR_HEADER_HEIGHT:30,ALERT_DEFAULT_HEIGHT:30,ALERT_MAX_HEIGHT:300,...G},hg=yn`
2509
2509
  :host {
2510
2510
  display: flex;
2511
2511
  flex-direction: column;
@@ -9243,4 +9243,4 @@ milkdown-block-handle {
9243
9243
  `:null}
9244
9244
  </div>
9245
9245
  </og-panel>
9246
- `: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?gv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?gv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=gv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new qr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};qz.styles=[Uz],Gz([Ls({type:Object})],qz.prototype,"model",void 0),Gz([Is()],qz.prototype,"editTitle",void 0),Gz([Ts("#title")],qz.prototype,"titleInput",void 0),Gz([Ts("#type")],qz.prototype,"typeList",void 0),Gz([Ts("#dataRange")],qz.prototype,"dataRangeInput",void 0),Gz([Ts("#seriesRange")],qz.prototype,"seriesRangeInput",void 0),Gz([Ts("#categoryRange")],qz.prototype,"categoryRangeInput",void 0),qz=Gz([Ss("og-plugin-chart-form")],qz);const Yz=Da().themes.get("dark");Object.assign(Yz.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 Zz=Da().themes.get("light");Object.assign(Zz.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 Xz=i(6946),Qz=i(6471),Kz=i(4969),Jz=i(9502),tL=i(7706),eL=i(1480),iL=i(2006),oL=i(7503),rL=i(7873),nL=i(8746),sL=i(2570),aL=i(8815),lL=i(6390),cL=i(6593),hL=i(895),dL=i(9083),uL=i(6093),pL=i(9685),gL=i(9849),mL=i(8268),fL=i(4693),vL=i(3599),bL=i(782),yL=i(754),wL=i(5700),xL=i(4731),kL=i(7291),CL=i(597),ML=i(1474),_L=i(6224),SL=i(6239),EL=i(6828),zL=i(2212),LL=i(863),IL=i(3602),RL=i(1985),TL=i(886),AL=i(7201),OL=i(9937),$L=i(8450),DL=i(9630),NL=i(9766),PL=i(388),jL=i(1903),HL=i(398),FL=i(6105),BL=i(6147),WL=i(5722),VL=i(5576),UL=i(3131),GL=i(6308),qL=i(9645),YL=i(3199),ZL=i(871),XL=i(5251),QL=i(6426),KL=i(2643),JL=i(8522),tI=i(6398),eI=i(2525),iI=i(8434),oI=i(6138),rI=i(5835),nI=i(5654),sI=i(6659),aI=i(2977),lI=i(4480),cI=i(9886),hI=i(6815),dI=i(1582),uI=i(2968),pI=i(394),gI=i(7024),mI=i(7853),fI=i(8249),vI=i(2869),bI=i(486),yI=i(5735),wI=i(470),xI=i(4612),kI=i(4018),CI=i(1476),MI=i(3194),_I=i(3525),SI=i(7541),EI=i(4104),zI=i(6686),LI=i(7719),II=i(3898),RI=i(8153),TI=i(3690),AI=i(1776),OI=i(4980),$I=i(5578),DI=i(9613),NI=i(1119),PI=i(8444),jI=i(2978),HI=i(9130),FI=i(2127),BI=i(2732),WI=i(4287),VI=i(4045),UI=i(7642),GI=i(1367),qI=i(320),YI=i(821),ZI=i(102),XI=i(7683),QI=i(3980),KI=i(576),JI=i(654),tR=i(73),eR=i(140),iR=i(8129),oR=i(5087),rR=i(6992),nR=i(8247),sR=i(8038),aR=i(5286),lR=i(9179),cR=i(1808),hR=i(9459),dR=i(2883),uR=i(9124),pR=i(7067),gR=i(1054),mR=i(7325),fR=i(1272),vR=i(3359),bR=i(6562),yR=i(4193),wR=i(6348),xR=i(2435),kR=i(9111),CR=i(9318),MR=i(7294),_R=i(4479),SR=i(2409),ER=i(3091),zR=i(5789),LR=i(5890),IR=i(3874),RR=i(2907),TR=i(1175),AR=i(1686),OR=i(703),$R=i(6606),DR=i(4194),NR=i(6228),PR=i(62),jR=i(2072),HR=i(9744),FR=i(25),BR=i(2618),WR=i(1988),VR=i(8013),UR=i(1133),GR=i(362),qR=i(6845),YR=i(6800),ZR=i(1103),XR=i(4933),QR=i(7284),KR=i(2620),JR=i(2366),tT=i(7457),eT=i(2449),iT=i(2),oT=i(5697),rT=i(7069),nT=i(4716),sT=i(4740),aT=i(4557),lT=i(1868),cT=i(8647),hT=i(5127),dT=i(4816),uT=i(4009),pT=i(5104),gT=i(2830),mT=i(3093),fT=i(5029),vT=i(3514),bT=i(2142),yT=i(4999),wT=i(7523),xT=i(346),kT=i(7917),CT=i(3976),MT=i(9801),_T=i(2464),ST=i(5511),ET=i(5210),zT=i(5815),LT=i(3339),IT=i(7472),RT=i(8811),TT=i(8548),AT=i(6880),OT=i(1840),$T=i(5547),DT=i(4788),NT=i(9467),PT=i(9187),jT=i(9217),HT=i(7897),FT=i(2644),BT=i(6204),WT=i(1472),VT=i(1247),UT=i(7406),GT=i(925),qT=i(7455),YT=i(3771),ZT=i(1549),XT=i(3541),QT=i(3140),KT=i(9800),JT=i(229),tA=i(2677),eA=i(1844),iA=i(3245),oA=i(9056),rA=i(7535),nA=i(2359),sA=i(15),aA=i(5569),lA=i(2014),cA=i(1599),hA=i(6521),dA=i(232),uA=i(9745),pA=i(9594),gA=i(6979),mA=i(4494),fA=i(312),vA=i(4983),bA=i(1258),yA=i(6313),wA=i(12),xA=i(8003),kA=i(7830),CA=i(8875),MA=i(3911),_A=i(1817),SA=i(478),EA=i(2585),zA=i(6564),LA=i(2884),IA=i(3825),RA=i(7348),TA=i(9277),AA=i(4118),OA=i(9200),$A=i(51),DA=i(2872),NA=i(4702),PA=i(9281),jA=i(1394),HA=i(7295),FA=i(2936),BA=i(3789),WA=i(3614),VA=i(4827),UA=i(9204),GA=i(9113),qA=i(4058);const YA=[Xz.mw,Qz.mw,Kz.mw,Jz.mw,tL.mw,eL.mw,iL.mw,oL.mw,nL.mw,aL.mw,sL.mw,lL.mw,cL.mw,hL.mw,dL.mw,uL.mw,pL.mw,gL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,aT.mw,lT.mw,cT.mw,ET.mw,zT.mw,LT.mw,IT.mw,RT.mw,TT.mw,AT.mw,OT.mw,$T.mw,DT.mw,NT.mw,PT.mw,jT.mw,HT.mw,FT.mw,BT.mw,WT.mw,VT.mw,UT.mw,ST.mw,GT.mw,qT.mw,YT.mw,ZT.mw,XT.mw,QT.mw,KT.mw,JT.mw,tA.mw,eA.mw,iA.mw,oA.mw,rA.mw,nA.mw,sA.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,yA.mw,wA.mw,xA.mw,kA.mw,CA.mw,MA.mw,_A.mw,SA.mw,EA.mw,zA.mw,LA.mw,IA.mw,RA.mw,TA.mw,iT.mw,AA.mw,OA.mw,$A.mw,DA.mw,NA.mw,PA.mw,jA.mw,HA.mw,FA.mw,BA.mw,WA.mw,VA.mw,UA.mw,GA.mw,qA.mw,IR.mw],XA={xlsx:F,charts:B},QA={name:"@omegagrid/bundle",version:"0.9.5"};Da().activate("light"),_d.styleDefault="fal",Sd.add(YA),Sd.add(ZA)})(),window.Omegagrid=o})();
9246
+ `: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?gv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?gv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=gv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new qr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};qz.styles=[Uz],Gz([Ls({type:Object})],qz.prototype,"model",void 0),Gz([Is()],qz.prototype,"editTitle",void 0),Gz([Ts("#title")],qz.prototype,"titleInput",void 0),Gz([Ts("#type")],qz.prototype,"typeList",void 0),Gz([Ts("#dataRange")],qz.prototype,"dataRangeInput",void 0),Gz([Ts("#seriesRange")],qz.prototype,"seriesRangeInput",void 0),Gz([Ts("#categoryRange")],qz.prototype,"categoryRangeInput",void 0),qz=Gz([Ss("og-plugin-chart-form")],qz);const Yz=Da().themes.get("dark");Object.assign(Yz.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 Zz=Da().themes.get("light");Object.assign(Zz.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 Xz=i(6946),Qz=i(6471),Kz=i(4969),Jz=i(9502),tL=i(7706),eL=i(1480),iL=i(2006),oL=i(7503),rL=i(7873),nL=i(8746),sL=i(2570),aL=i(8815),lL=i(6390),cL=i(6593),hL=i(895),dL=i(9083),uL=i(6093),pL=i(9685),gL=i(9849),mL=i(8268),fL=i(4693),vL=i(3599),bL=i(782),yL=i(754),wL=i(5700),xL=i(4731),kL=i(7291),CL=i(597),ML=i(1474),_L=i(6224),SL=i(6239),EL=i(6828),zL=i(2212),LL=i(863),IL=i(3602),RL=i(1985),TL=i(886),AL=i(7201),OL=i(9937),$L=i(8450),DL=i(9630),NL=i(9766),PL=i(388),jL=i(1903),HL=i(398),FL=i(6105),BL=i(6147),WL=i(5722),VL=i(5576),UL=i(3131),GL=i(6308),qL=i(9645),YL=i(3199),ZL=i(871),XL=i(5251),QL=i(6426),KL=i(2643),JL=i(8522),tI=i(6398),eI=i(2525),iI=i(8434),oI=i(6138),rI=i(5835),nI=i(5654),sI=i(6659),aI=i(2977),lI=i(4480),cI=i(9886),hI=i(6815),dI=i(1582),uI=i(2968),pI=i(394),gI=i(7024),mI=i(7853),fI=i(8249),vI=i(2869),bI=i(486),yI=i(5735),wI=i(470),xI=i(4612),kI=i(4018),CI=i(1476),MI=i(3194),_I=i(3525),SI=i(7541),EI=i(4104),zI=i(6686),LI=i(7719),II=i(3898),RI=i(8153),TI=i(3690),AI=i(1776),OI=i(4980),$I=i(5578),DI=i(9613),NI=i(1119),PI=i(8444),jI=i(2978),HI=i(9130),FI=i(2127),BI=i(2732),WI=i(4287),VI=i(4045),UI=i(7642),GI=i(1367),qI=i(320),YI=i(821),ZI=i(102),XI=i(7683),QI=i(3980),KI=i(576),JI=i(654),tR=i(73),eR=i(140),iR=i(8129),oR=i(5087),rR=i(6992),nR=i(8247),sR=i(8038),aR=i(5286),lR=i(9179),cR=i(1808),hR=i(9459),dR=i(2883),uR=i(9124),pR=i(7067),gR=i(1054),mR=i(7325),fR=i(1272),vR=i(3359),bR=i(6562),yR=i(4193),wR=i(6348),xR=i(2435),kR=i(9111),CR=i(9318),MR=i(7294),_R=i(4479),SR=i(2409),ER=i(3091),zR=i(5789),LR=i(5890),IR=i(3874),RR=i(2907),TR=i(1175),AR=i(1686),OR=i(703),$R=i(6606),DR=i(4194),NR=i(6228),PR=i(62),jR=i(2072),HR=i(9744),FR=i(25),BR=i(2618),WR=i(1988),VR=i(8013),UR=i(1133),GR=i(362),qR=i(6845),YR=i(6800),ZR=i(1103),XR=i(4933),QR=i(7284),KR=i(2620),JR=i(2366),tT=i(7457),eT=i(2449),iT=i(2),oT=i(5697),rT=i(7069),nT=i(4716),sT=i(4740),aT=i(4557),lT=i(1868),cT=i(8647),hT=i(5127),dT=i(4816),uT=i(4009),pT=i(5104),gT=i(2830),mT=i(3093),fT=i(5029),vT=i(3514),bT=i(2142),yT=i(4999),wT=i(7523),xT=i(346),kT=i(7917),CT=i(3976),MT=i(9801),_T=i(2464),ST=i(5511),ET=i(5210),zT=i(5815),LT=i(3339),IT=i(7472),RT=i(8811),TT=i(8548),AT=i(6880),OT=i(1840),$T=i(5547),DT=i(4788),NT=i(9467),PT=i(9187),jT=i(9217),HT=i(7897),FT=i(2644),BT=i(6204),WT=i(1472),VT=i(1247),UT=i(7406),GT=i(925),qT=i(7455),YT=i(3771),ZT=i(1549),XT=i(3541),QT=i(3140),KT=i(9800),JT=i(229),tA=i(2677),eA=i(1844),iA=i(3245),oA=i(9056),rA=i(7535),nA=i(2359),sA=i(15),aA=i(5569),lA=i(2014),cA=i(1599),hA=i(6521),dA=i(232),uA=i(9745),pA=i(9594),gA=i(6979),mA=i(4494),fA=i(312),vA=i(4983),bA=i(1258),yA=i(6313),wA=i(12),xA=i(8003),kA=i(7830),CA=i(8875),MA=i(3911),_A=i(1817),SA=i(478),EA=i(2585),zA=i(6564),LA=i(2884),IA=i(3825),RA=i(7348),TA=i(9277),AA=i(4118),OA=i(9200),$A=i(51),DA=i(2872),NA=i(4702),PA=i(9281),jA=i(1394),HA=i(7295),FA=i(2936),BA=i(3789),WA=i(3614),VA=i(4827),UA=i(9204),GA=i(9113),qA=i(4058);const YA=[Xz.mw,Qz.mw,Kz.mw,Jz.mw,tL.mw,eL.mw,iL.mw,oL.mw,nL.mw,aL.mw,sL.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,EL.mw,zL.mw,LL.mw,IL.mw,RL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,NL.mw,PL.mw,jL.mw,FL.mw,HL.mw,BL.mw,WL.mw,VL.mw,UL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,eI.mw,iI.mw,oI.mw,rI.mw,nI.mw,sI.mw,aI.mw,lI.mw,cI.mw,hI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.m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A.mw,CA.mw,MA.mw,_A.mw,SA.mw,EA.mw,zA.mw,LA.mw,IA.mw,RA.mw,TA.mw,iT.mw,AA.mw,OA.mw,$A.mw,DA.mw,NA.mw,PA.mw,jA.mw,HA.mw,FA.mw,BA.mw,WA.mw,VA.mw,UA.mw,GA.mw,qA.mw,IR.mw],XA={xlsx:F,charts:B},QA={name:"@omegagrid/bundle",version:"0.9.6"};Da().activate("light"),_d.styleDefault="fal",Sd.add(YA),Sd.add(ZA)})(),window.Omegagrid=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/bundle",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
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.9.5",
23
- "@omegagrid/calendar": "^0.9.5",
24
- "@omegagrid/code": "^0.9.5",
25
- "@omegagrid/commands": "^0.9.5",
26
- "@omegagrid/core": "^0.9.5",
27
- "@omegagrid/dialog": "^0.9.5",
28
- "@omegagrid/editor": "^0.9.5",
29
- "@omegagrid/form": "^0.9.5",
30
- "@omegagrid/grid": "^0.9.5",
31
- "@omegagrid/localize": "^0.9.5",
32
- "@omegagrid/markdown": "^0.9.5",
33
- "@omegagrid/plugin-charts": "^0.9.5",
34
- "@omegagrid/plugin-xlsx": "^0.9.5",
35
- "@omegagrid/statusbar": "^0.9.5",
36
- "@omegagrid/tabs": "^0.9.5",
37
- "@omegagrid/toolbar": "^0.9.5",
38
- "@omegagrid/tree": "^0.9.5",
22
+ "@omegagrid/bucket": "^0.9.6",
23
+ "@omegagrid/calendar": "^0.9.6",
24
+ "@omegagrid/code": "^0.9.6",
25
+ "@omegagrid/commands": "^0.9.6",
26
+ "@omegagrid/core": "^0.9.6",
27
+ "@omegagrid/dialog": "^0.9.6",
28
+ "@omegagrid/editor": "^0.9.6",
29
+ "@omegagrid/form": "^0.9.6",
30
+ "@omegagrid/grid": "^0.9.6",
31
+ "@omegagrid/localize": "^0.9.6",
32
+ "@omegagrid/markdown": "^0.9.6",
33
+ "@omegagrid/plugin-charts": "^0.9.6",
34
+ "@omegagrid/plugin-xlsx": "^0.9.6",
35
+ "@omegagrid/statusbar": "^0.9.6",
36
+ "@omegagrid/tabs": "^0.9.6",
37
+ "@omegagrid/toolbar": "^0.9.6",
38
+ "@omegagrid/tree": "^0.9.6",
39
39
  "lit": "^3.1.1"
40
40
  },
41
41
  "devDependencies": {