@omegagrid/bundle 0.6.55 → 0.6.57

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 +18 -10
  2. package/package.json +18 -18
package/omegagrid.js CHANGED
@@ -2018,6 +2018,7 @@
2018
2018
  `,Tg([cs({type:Object})],Ag.prototype,"bucket",void 0),Tg([cs({type:String})],Ag.prototype,"componentId",void 0),Tg([us("#host")],Ag.prototype,"host",void 0),Ag=Tg([ss("og-bucket-component-host")],Ag);const Og=Jn`
2019
2019
  :host {
2020
2020
  display: flex;
2021
+ position: relative;
2021
2022
  flex-direction: column;
2022
2023
  background-color: var(--og-bucket-sidebar-background-color);
2023
2024
  box-shadow: 8px 8px 4px -3px var(--og-dialog-shadow);
@@ -2063,13 +2064,14 @@
2063
2064
  overflow: hidden;
2064
2065
  }
2065
2066
 
2066
- `;var $g=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 Dg=class extends ns{constructor(){super(...arguments),this.closable=!1,this._onClose=()=>{this.close()},this.render=()=>Nr`
2067
+ `;var $g=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 Dg=class extends ns{constructor(){super(...arguments),this.closable=!1,this.showLoader=()=>this.overlay.show(this),this.hideLoader=()=>this.overlay.hide(),this._onClose=()=>{this.close()},this.render=()=>Nr`
2067
2068
  <div id="header">
2068
2069
  <div id="title">${this.caption}</div>
2069
2070
  ${this.closable?Nr`<div id="close" @click="${()=>this.close()}">&times</div>`:""}
2070
2071
  </div>
2071
2072
  <div id="body"></div>
2072
- `}layout(){this.component?.layout()}disconnectedCallback(){this.component?.removeEventListener("close",this._onClose)}async updated(t){if(t.has("componentId")&&this.componentId){const t=await this.bucket.components.get(this.componentId);this.component=t,Mt(this.body),this.body.appendChild(t),t.addEventListener("close",this._onClose,{once:!0}),t.focus()}}close(){this.bucket.sidebars.closeModalSidebar()}};Dg.styles=[Og],$g([cs({type:String})],Dg.prototype,"caption",void 0),$g([cs({type:Boolean})],Dg.prototype,"closable",void 0),$g([cs({type:Object})],Dg.prototype,"bucket",void 0),$g([cs({type:String})],Dg.prototype,"componentId",void 0),$g([us("#body")],Dg.prototype,"body",void 0),Dg=$g([ss("og-bucket-modal-sidebar")],Dg);class Ng{static init(t){Ng.monacoPath=t}static async get(){return this.monaco||(this.monaco=await this.load()),this.monaco}static getSync(){return this.monaco}static load(){if(!Fn.require)throw new Error("AMDLoader is not initialized");return Fn.require.config({paths:{vs:Ng.monacoPath}}),new Promise((t=>{Fn.require(["vs/editor/editor.main"],(()=>{t(self.monaco)}))}))}static async loadToIFrame(t){if(!Fn.require)throw new Error("AMDLoader is not initialized");const e=t.contentWindow;return e.monaco?e.monaco:(await Wn.load(`${Ng.monacoPath}/loader.js`,t.contentDocument),e.require.config({paths:{vs:Ng.monacoPath}}),await new Promise((t=>{e.require(["vs/editor/editor.main"],(()=>{t(e.monaco)}))})))}}class Pg extends Event{constructor(t,e,i){super(`code.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e),this.origEvent=i}}var jg,Vg,Bg,Fg,Wg,Ug,Gg,Yg,qg,Zg,Xg,Qg=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},Kg=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)},Jg=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");return"a"===o?n.call(t,i):n?n.value=i:e.set(t,i),i};let tm=Xg=class extends ns{constructor(){super(...arguments),jg.set(this,void 0),Vg.set(this,void 0),Bg.set(this,"typescript"),Fg.set(this,!1),Wg.set(this,0),Ug.set(this,void 0),Gg.set(this,void 0),Yg.set(this,void 0),qg.set(this,void 0),Zg.set(this,(()=>{Kg(this,jg,"f").updateOptions({theme:this.theme})})),this.getOptions=()=>({...this.options,theme:this.theme,language:Kg(this,Bg,"f"),fontSize:Nn().fontSize,fontLigatures:""})}get monaco(){return Xg.monaco}get editor(){return Kg(this,jg,"f")}get model(){return Kg(this,jg,"f")?.getModel()}get options(){return Kg(this,Vg,"f")}set options(t){Jg(this,Vg,t,"f"),Kg(this,jg,"f")?.updateOptions(t)}get content(){return Kg(this,jg,"f")?Kg(this,jg,"f").getValue():Kg(this,Ug,"f")}set content(t){null==t&&(t=""),Kg(this,jg,"f")?(Jg(this,Fg,!0,"f"),Kg(this,jg,"f")?.setValue(t)):Jg(this,Ug,t,"f")}get language(){return Kg(this,Bg,"f")}set language(t){Jg(this,Bg,t,"f"),this.model&&Ng.get().then((e=>e.editor.setModelLanguage(this.model,t)))}get selectedContent(){if(!Kg(this,jg,"f"))return Kg(this,Ug,"f");const t=Kg(this,jg,"f").getSelections().map((t=>this.model.getValueInRange(t))).join("\n").trim();return null==t||""==t?Kg(this,jg,"f").getValue():t}get container(){return Kg(this,qg,"f")??Jg(this,qg,vt("div"),"f")}get theme(){return"light"==fa().activeTheme?.type?"vs":"vs-dark"}showContainer(){this.container.parentElement!==document.body&&document.body.appendChild(this.container)}hideContainer(){Kg(this,qg,"f")?.remove()}async initEditor(){if(Kg(this,Wg,"f")>0)return;Jg(this,Wg,1,"f"),Xg.monaco=await Ng.get(),Jg(this,jg,Xg.monaco.editor.create(this.container,this.getOptions()),"f");const t=Kg(this,Bg,"f"),e=Xg.monaco.editor.createModel(Kg(this,Ug,"f"),t);Kg(this,jg,"f").setModel(e),Kg(this,Gg,"f")&&Kg(this,jg,"f").setSelection(Kg(this,Gg,"f")),Kg(this,Yg,"f")&&Kg(this,jg,"f").setScrollPosition({scrollTop:Kg(this,Yg,"f").top,scrollLeft:Kg(this,Yg,"f").left}),Kg(this,jg,"f").onDidBlurEditorText((()=>{this.dispatchEvent(new Pg("blur",{editor:Kg(this,jg,"f")}))})),Kg(this,jg,"f").onDidChangeModelContent((t=>{Kg(this,Fg,"f")?Jg(this,Fg,!1,"f"):(this.dispatchEvent(new Pg("change",{editor:Kg(this,jg,"f"),changes:t.changes})),this.dispatchEvent(new Hn({value:e})))})),Kg(this,jg,"f").onKeyDown((t=>{this.dispatchEvent(new Pg("keydown",{editor:Kg(this,jg,"f")},t.browserEvent))})),Jg(this,Fg,!1,"f"),Jg(this,Wg,2,"f"),this.dispatchEvent(new Pg("ready",{editor:Kg(this,jg,"f")})),Kg(this,jg,"f").focus(),setTimeout((()=>{Kg(this,Bg,"f")!=t&&Xg.monaco.editor.setModelLanguage(e,Kg(this,Bg,"f"))}),100)}async updated(){await this.initEditor(),this.layout()}connectedCallback(){super.connectedCallback(),fa().addEventListener("change",Kg(this,Zg,"f")),this.hasUpdated&&(this.initEditor(),this.layout())}disconnectedCallback(){fa().removeEventListener("change",Kg(this,Zg,"f")),this.hideContainer()}layout(){if(!this.isConnected||this.clientWidth<10||this.clientHeight<10)return void this.hideContainer();this.showContainer();const t=Lt(this,document.body);Nt(this.container,{t:t.top+1,l:t.left+1}),Ot(this.container,{w:this.clientWidth-1,h:this.clientHeight-1}),this.editor?.layout()}dispose(){Kg(this,qg,"f")?.remove(),Jg(this,qg,null,"f"),Kg(this,jg,"f")?.dispose(),Jg(this,jg,null,"f"),Jg(this,Wg,0,"f")}focus(){Kg(this,jg,"f")?.focus()}};jg=new WeakMap,Vg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Wg=new WeakMap,Ug=new WeakMap,Gg=new WeakMap,Yg=new WeakMap,qg=new WeakMap,Zg=new WeakMap,tm.styles=Jn`
2073
+ <og-overlay defaultLoader></og-overlay>
2074
+ `}layout(){this.component?.layout()}disconnectedCallback(){this.component?.removeEventListener("close",this._onClose)}async updated(t){if(t.has("componentId")&&this.componentId){this.showLoader();const t=await this.bucket.components.get(this.componentId);this.component=t,Mt(this.body),this.body.appendChild(t),t.addEventListener("close",this._onClose,{once:!0}),t.focus(),this.hideLoader()}}close(){this.bucket.sidebars.closeModalSidebar()}};Dg.styles=[Og],$g([cs({type:String})],Dg.prototype,"caption",void 0),$g([cs({type:Boolean})],Dg.prototype,"closable",void 0),$g([cs({type:Object})],Dg.prototype,"bucket",void 0),$g([cs({type:String})],Dg.prototype,"componentId",void 0),$g([us("#body")],Dg.prototype,"body",void 0),$g([us("og-overlay")],Dg.prototype,"overlay",void 0),Dg=$g([ss("og-bucket-modal-sidebar")],Dg);class Ng{static init(t){Ng.monacoPath=t}static async get(){return this.monaco||(this.monaco=await this.load()),this.monaco}static getSync(){return this.monaco}static load(){if(!Fn.require)throw new Error("AMDLoader is not initialized");return Fn.require.config({paths:{vs:Ng.monacoPath}}),new Promise((t=>{Fn.require(["vs/editor/editor.main"],(()=>{t(self.monaco)}))}))}static async loadToIFrame(t){if(!Fn.require)throw new Error("AMDLoader is not initialized");const e=t.contentWindow;return e.monaco?e.monaco:(await Wn.load(`${Ng.monacoPath}/loader.js`,t.contentDocument),e.require.config({paths:{vs:Ng.monacoPath}}),await new Promise((t=>{e.require(["vs/editor/editor.main"],(()=>{t(e.monaco)}))})))}}class Pg extends Event{constructor(t,e,i){super(`code.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e),this.origEvent=i}}var jg,Vg,Bg,Fg,Wg,Ug,Gg,Yg,qg,Zg,Xg,Qg=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},Kg=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)},Jg=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");return"a"===o?n.call(t,i):n?n.value=i:e.set(t,i),i};let tm=Xg=class extends ns{constructor(){super(...arguments),jg.set(this,void 0),Vg.set(this,void 0),Bg.set(this,"typescript"),Fg.set(this,!1),Wg.set(this,0),Ug.set(this,void 0),Gg.set(this,void 0),Yg.set(this,void 0),qg.set(this,void 0),Zg.set(this,(()=>{Kg(this,jg,"f").updateOptions({theme:this.theme})})),this.getOptions=()=>({...this.options,theme:this.theme,language:Kg(this,Bg,"f"),fontSize:Nn().fontSize,fontLigatures:""})}get monaco(){return Xg.monaco}get editor(){return Kg(this,jg,"f")}get model(){return Kg(this,jg,"f")?.getModel()}get options(){return Kg(this,Vg,"f")}set options(t){Jg(this,Vg,t,"f"),Kg(this,jg,"f")?.updateOptions(t)}get content(){return Kg(this,jg,"f")?Kg(this,jg,"f").getValue():Kg(this,Ug,"f")}set content(t){null==t&&(t=""),Kg(this,jg,"f")?(Jg(this,Fg,!0,"f"),Kg(this,jg,"f")?.setValue(t)):Jg(this,Ug,t,"f")}get language(){return Kg(this,Bg,"f")}set language(t){Jg(this,Bg,t,"f"),this.model&&Ng.get().then((e=>e.editor.setModelLanguage(this.model,t)))}get selectedContent(){if(!Kg(this,jg,"f"))return Kg(this,Ug,"f");const t=Kg(this,jg,"f").getSelections().map((t=>this.model.getValueInRange(t))).join("\n").trim();return null==t||""==t?Kg(this,jg,"f").getValue():t}get container(){return Kg(this,qg,"f")??Jg(this,qg,vt("div"),"f")}get theme(){return"light"==fa().activeTheme?.type?"vs":"vs-dark"}showContainer(){this.container.parentElement!==document.body&&document.body.appendChild(this.container)}hideContainer(){Kg(this,qg,"f")?.remove()}async initEditor(){if(Kg(this,Wg,"f")>0)return;Jg(this,Wg,1,"f"),Xg.monaco=await Ng.get(),Jg(this,jg,Xg.monaco.editor.create(this.container,this.getOptions()),"f");const t=Kg(this,Bg,"f"),e=Xg.monaco.editor.createModel(Kg(this,Ug,"f"),t);Kg(this,jg,"f").setModel(e),Kg(this,Gg,"f")&&Kg(this,jg,"f").setSelection(Kg(this,Gg,"f")),Kg(this,Yg,"f")&&Kg(this,jg,"f").setScrollPosition({scrollTop:Kg(this,Yg,"f").top,scrollLeft:Kg(this,Yg,"f").left}),Kg(this,jg,"f").onDidBlurEditorText((()=>{this.dispatchEvent(new Pg("blur",{editor:Kg(this,jg,"f")}))})),Kg(this,jg,"f").onDidChangeModelContent((t=>{Kg(this,Fg,"f")?Jg(this,Fg,!1,"f"):(this.dispatchEvent(new Pg("change",{editor:Kg(this,jg,"f"),changes:t.changes})),this.dispatchEvent(new Hn({value:e})))})),Kg(this,jg,"f").onKeyDown((t=>{this.dispatchEvent(new Pg("keydown",{editor:Kg(this,jg,"f")},t.browserEvent))})),Jg(this,Fg,!1,"f"),Jg(this,Wg,2,"f"),this.dispatchEvent(new Pg("ready",{editor:Kg(this,jg,"f")})),Kg(this,jg,"f").focus(),setTimeout((()=>{Kg(this,Bg,"f")!=t&&Xg.monaco.editor.setModelLanguage(e,Kg(this,Bg,"f"))}),100)}async updated(){await this.initEditor(),this.layout()}connectedCallback(){super.connectedCallback(),fa().addEventListener("change",Kg(this,Zg,"f")),this.hasUpdated&&(this.initEditor(),this.layout())}disconnectedCallback(){fa().removeEventListener("change",Kg(this,Zg,"f")),this.hideContainer()}layout(){if(!this.isConnected||this.clientWidth<10||this.clientHeight<10)return void this.hideContainer();this.showContainer();const t=Lt(this,document.body);Nt(this.container,{t:t.top+1,l:t.left+1}),Ot(this.container,{w:this.clientWidth-1,h:this.clientHeight-1}),this.editor?.layout()}dispose(){Kg(this,qg,"f")?.remove(),Jg(this,qg,null,"f"),Kg(this,jg,"f")?.dispose(),Jg(this,jg,null,"f"),Jg(this,Wg,0,"f")}focus(){Kg(this,jg,"f")?.focus()}};jg=new WeakMap,Vg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Wg=new WeakMap,Ug=new WeakMap,Gg=new WeakMap,Yg=new WeakMap,qg=new WeakMap,Zg=new WeakMap,tm.styles=Jn`
2073
2075
  :host {
2074
2076
  user-select: text;
2075
2077
  display: block;
@@ -3875,6 +3877,7 @@
3875
3877
  display: block;
3876
3878
  background-color: var(--og-form-background-color);
3877
3879
  font-size: var(--og-font-size);
3880
+ position: relative;
3878
3881
  }
3879
3882
 
3880
3883
  * {
@@ -3903,7 +3906,11 @@
3903
3906
  .error {
3904
3907
  color: red;
3905
3908
  }
3906
- `;var LC=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 IC=new Map([[SC.Label,kC`og-form-label`],[SC.TextInput,kC`og-form-textinput`],[SC.ColorInput,kC`og-form-colorinput`],[SC.Checkbox,kC`og-form-checkbox`],[SC.List,kC`og-form-list`],[SC.Button,kC`og-form-button`],[SC.NumericInput,kC`og-form-numericinput`],[SC.FileInput,kC`og-form-fileinput`],[SC.DateInput,kC`og-form-dateinput`],[SC.CalendarDateInput,kC`og-form-calendardateinput`]]);class HC extends Event{constructor(t,e){super(`form.${t}`,{bubbles:!0,cancelable:!0,composed:!0}),Object.assign(this,e||{})}}let TC=class extends ns{constructor(){super(...arguments),this.values={},this.errorCounts={},this.render=()=>{if(!this.model)return _C``;const t=ms(this.model.columns,(t=>{const e=Ca({width:t?.width?Tt(t.width):"auto"});return _C`<col style="${e}">`})),e=ms(this.model.controls,((t,e)=>{const i=Ca({height:this.model.rows&&this.model.rows[e]&&this.model.rows[e].height?Tt(this.model.rows[e].height):null});return _C`
3909
+
3910
+ og-overlay {
3911
+ min-height: 200px;
3912
+ }
3913
+ `;var LC=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 IC=new Map([[SC.Label,kC`og-form-label`],[SC.TextInput,kC`og-form-textinput`],[SC.ColorInput,kC`og-form-colorinput`],[SC.Checkbox,kC`og-form-checkbox`],[SC.List,kC`og-form-list`],[SC.Button,kC`og-form-button`],[SC.NumericInput,kC`og-form-numericinput`],[SC.FileInput,kC`og-form-fileinput`],[SC.DateInput,kC`og-form-dateinput`],[SC.CalendarDateInput,kC`og-form-calendardateinput`]]);class HC extends Event{constructor(t,e){super(`form.${t}`,{bubbles:!0,cancelable:!0,composed:!0}),Object.assign(this,e||{})}}let TC=class extends ns{constructor(){super(...arguments),this.values={},this.errorCounts={},this.showOverlay=()=>this.overlay?.show(this),this.hideOverlay=()=>this.overlay?.hide(),this.render=()=>{const t=_C`<og-overlay defaultLoader></og-overlay>`;if(!this.model)return t;const e=ms(this.model.columns,(t=>{const e=Ca({width:t?.width?Tt(t.width):"auto"});return _C`<col style="${e}">`})),i=ms(this.model.controls,((t,e)=>{const i=Ca({height:this.model.rows&&this.model.rows[e]&&this.model.rows[e].height?Tt(this.model.rows[e].height):null});return _C`
3907
3914
  <tr class="row" style="${i}">
3908
3915
  ${ms(t,(t=>_C`
3909
3916
  <td colspan="${t?.props.cs||1}" rowspan="${t?.props.rs||1}">
@@ -3918,21 +3925,22 @@
3918
3925
  .adapter="${t.props.adapter||this.model.options.treeAdapter}">
3919
3926
  </${IC.get(t.props.type)}>
3920
3927
  ${ms(t.errors,(t=>_C`
3921
- <div class="error">${t}</div>
3928
+ <div class="error">${bo(t)}</div>
3922
3929
  `))}
3923
3930
  `:""}
3924
3931
  </td>
3925
3932
  `))}
3926
3933
  </tr>
3927
3934
  `}));return _C`
3935
+ ${t}
3928
3936
  ${this.caption?_C`<div class="title">${this.caption}</div>`:""}
3929
3937
  <div class="body">${this.model?_C`
3930
3938
  <table>
3931
- <colgroup>${t}</colgroup>
3932
- <tbody>${e}</tbody>
3939
+ <colgroup>${e}</colgroup>
3940
+ <tbody>${i}</tbody>
3933
3941
  </table>
3934
3942
  `:""}</div>
3935
- `}}setSourceData(t){this.model=new zC(t)}resetValues(){const t={};this.model?.controlMap.forEach((e=>t[e.key]=e.props.value)),this.values=t}setValue(t,e){this.values[t]=e,this.shadowRoot.querySelector(`#${t}`).value=e}async reset(){this.resetValues(),this.controls.forEach((t=>t.reset()))}validate(){this.controls.forEach((t=>t.validate())),this.requestUpdate()}isValid(){this.validate();for(const t of this.controlNodes)if(!t.isValid)return!1;return!0}async initAdapter(){this.model=new zC({rows:await this.adapter.getRows(this.key),columns:await this.adapter.getColumns(this.key),controls:await this.adapter.getControls(this.key)})}async willUpdate(t){t.has("adapter")&&(this.adapter?.attach(this),await this.initAdapter()),t.has("model")&&this.resetValues()}updated(){this.controls=new Map,this.controlNodes.forEach((t=>this.controls.set(t.id,t))),this.model?.controls.forEach(((t,e)=>t.forEach(((t,i)=>{const o=t.props.cs||1,n=t.props.rs||1;if(o>1||n>1)for(let t=e;t<=e+n-1;t++)for(let n=i;n<=i+o-1;n++){const o=this.rowElms[t].children[n];o&&(n!=i||t!=e?Ct(o):kt(o))}else kt(this.rowElms[e].children[i])}))))}_onValueChange(t){this.values[t.model.key]=t.value,this.errorCounts[t.model.key]!=t.model.errors.length&&this.requestUpdate(),this.errorCounts[t.model.key]=t.model.errors.length,this.dispatchEvent(new HC("change",{key:t.model.key,value:t.value,valid:0==t.model.errors.length}))}};TC.styles=[RC],LC([cs()],TC.prototype,"key",void 0),LC([cs({type:Object})],TC.prototype,"adapter",void 0),LC([cs({type:Object})],TC.prototype,"model",void 0),LC([cs({type:String})],TC.prototype,"caption",void 0),LC([gs(".control")],TC.prototype,"controlNodes",void 0),LC([gs(".row")],TC.prototype,"rowElms",void 0),LC([cs({type:Object})],TC.prototype,"values",void 0),TC=LC([ss("og-form")],TC);class AC extends rd{getForms(){return[{key:0}]}getRows(t){return[]}getColumns(t){return[]}save(t){return!0}getOptions(){return{}}onAction(t){}}const OC={FORM_CONTROL_HEIGHT:20,BUTTON_CONFIG:new Map([["save",{text:"Save",color:Zs.Accent,default:!0}],["reset",{text:"Reset",color:Zs.Gray}],["validate",{text:"Validate",color:Zs.Gray}],["storno",{text:"Storno",color:Zs.Gray}],["close",{text:"Close",color:Zs.Gray}]]),...U},$C={caption:null,buttonsPosition:"bottom",alertsPosition:"bottom",buttons:[],closeAfterSave:!0};function DC(t,e=null){return{...Pn(t,e),...$C,...e,...t}}const NC=Jn`
3943
+ `}}setSourceData(t){this.model=new zC(t)}resetValues(){const t={};this.model?.controlMap.forEach((e=>t[e.key]=e.props.value)),this.values=t}setValue(t,e){this.values[t]=e,this.shadowRoot.querySelector(`#${t}`).value=e}async reset(){this.resetValues(),this.controls.forEach((t=>t.reset()))}validate(){this.controls.forEach((t=>t.validate())),this.requestUpdate()}isValid(){this.validate();for(const t of this.controlNodes)if(!t.isValid)return!1;return!0}async initAdapter(){this.showOverlay(),this.model=new zC({rows:await this.adapter.getRows(this.key),columns:await this.adapter.getColumns(this.key),controls:await this.adapter.getControls(this.key)}),this.hideOverlay()}async updated(t){t.has("adapter")&&(this.adapter?.attach(this),await this.initAdapter()),t.has("model")&&this.resetValues(),this.controls=new Map,this.controlNodes.forEach((t=>this.controls.set(t.id,t))),this.model?.controls.forEach(((t,e)=>t.forEach(((t,i)=>{const o=t.props.cs||1,n=t.props.rs||1;if(o>1||n>1)for(let t=e;t<=e+n-1;t++)for(let n=i;n<=i+o-1;n++){const o=this.rowElms[t].children[n];o&&(n!=i||t!=e?Ct(o):kt(o))}else kt(this.rowElms[e].children[i])}))))}_onValueChange(t){this.values[t.model.key]=t.value,this.errorCounts[t.model.key]!=t.model.errors.length&&this.requestUpdate(),this.errorCounts[t.model.key]=t.model.errors.length,this.dispatchEvent(new HC("change",{key:t.model.key,value:t.value,valid:0==t.model.errors.length}))}};TC.styles=[RC],LC([cs()],TC.prototype,"key",void 0),LC([cs({type:Object})],TC.prototype,"adapter",void 0),LC([cs({type:Object})],TC.prototype,"model",void 0),LC([cs({type:String})],TC.prototype,"caption",void 0),LC([gs(".control")],TC.prototype,"controlNodes",void 0),LC([gs(".row")],TC.prototype,"rowElms",void 0),LC([us("og-overlay")],TC.prototype,"overlay",void 0),LC([cs({type:Object})],TC.prototype,"values",void 0),TC=LC([ss("og-form")],TC);class AC extends rd{getForms(){return[{key:0}]}getRows(t){return[]}getColumns(t){return[]}save(t){return!0}getOptions(){return{}}onAction(t){}}const OC={FORM_CONTROL_HEIGHT:20,BUTTON_CONFIG:new Map([["save",{text:"Save",color:Zs.Accent,default:!0}],["reset",{text:"Reset",color:Zs.Gray}],["validate",{text:"Validate",color:Zs.Gray}],["storno",{text:"Storno",color:Zs.Gray}],["close",{text:"Close",color:Zs.Gray}]]),...U},$C={caption:null,buttonsPosition:"bottom",alertsPosition:"bottom",buttons:[],closeAfterSave:!0};function DC(t,e=null){return{...Pn(t,e),...$C,...e,...t}}const NC=Jn`
3936
3944
  * {
3937
3945
  box-sizing: border-box;
3938
3946
  }
@@ -3974,7 +3982,7 @@
3974
3982
  min-width: 80px;
3975
3983
  text-align: center;
3976
3984
  }
3977
- `;var PC=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 jC=class extends ns{constructor(){super(),this.options=DC(),this.collapsibleForms=!1,this._saving=!1,this._onButtonClick=t=>{switch(t.key){case"save":this.save();break;case"reset":this.reset();break;case"close":this.dispatchEvent(new Event("close"));break;default:this.adapter?.onAction(t.key),this.dispatchEvent(new Sn("form",{key:t.key},null,{bubbles:!0,composed:!0,common:!0}))}},this.renderButton=t=>{const e=q(t)?t:OC.BUTTON_CONFIG.get(t);return e.key=e.key??(X(t)?t:null),e.color=e.color||Zs.Gray,Nr`
3985
+ `;var PC=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 jC=class extends ns{constructor(){super(),this.options=DC(),this.collapsibleForms=!1,this._saving=!1,this.showOverlay=()=>this.overlay?.show(this),this.hideOverlay=()=>this.overlay?.hide(),this._onButtonClick=t=>{switch(t.key){case"save":this.save();break;case"reset":this.reset();break;case"close":this.dispatchEvent(new Event("close"));break;default:this.adapter?.onAction(t.key),this.dispatchEvent(new Sn("form",{key:t.key},null,{bubbles:!0,composed:!0,common:!0}))}},this.renderButton=t=>{const e=q(t)?t:OC.BUTTON_CONFIG.get(t);return e.key=e.key??(X(t)?t:null),e.color=e.color||Zs.Gray,Nr`
3978
3986
  <og-button
3979
3987
  .text="${e.text}"
3980
3988
  .color="${e.color}"
@@ -4012,7 +4020,7 @@
4012
4020
  </og-container>
4013
4021
  ${"bottom"==this.options.alertsPosition?e:""}
4014
4022
  ${"bottom"==this.options.buttonsPosition?t:""}
4015
- `},this.addEventListener("keydown",(t=>{"Enter"==t.key&&this.save()}))}connectedCallback(){super.connectedCallback(),this.tabIndex=0}get values(){const t=new Map;return this.forms.forEach(((e,i)=>t.set(this.config[i].key??i,e.values))),t}setSourceData(t,e){this.config=t,this.options=DC(e,this.options)}reset(t=!0){this.forms.forEach((t=>t.reset())),t&&this.dispatchEvent(new HC("reset"))}isValid(){return Array.from(this.forms.values()).every((t=>t.isValid()))}async save(t=!0){if(this._saving)return!1;if(!this.isValid())return!1;if(this._saving=!0,this.adapter){this.overlay.show(this);let e=!0;try{const t=await this.adapter.save(this.values);!1===t?e=!1:Array.isArray(t)&&(this.alerts=t)}catch(t){e=!1,this.alerts=[{text:t.message,type:"danger"}]}this.overlay.hide(),t&&e&&(this.dispatchEvent(new HC("save")),this.options.closeAfterSave&&this.dispatchEvent(new Event("close")))}else t&&this.dispatchEvent(new HC("save"));return this._saving=!1,!0}async initAdapter(){this.config=await this.adapter.getForms(),this.options=DC(await this.adapter.getOptions(),this.options)}async willUpdate(t){t.has("adapter")&&await this.initAdapter()}};jC.styles=[NC],PC([cs({type:Array})],jC.prototype,"config",void 0),PC([cs({type:Object})],jC.prototype,"options",void 0),PC([cs({type:Boolean})],jC.prototype,"collapsibleForms",void 0),PC([cs({type:Object})],jC.prototype,"adapter",void 0),PC([cs({type:Array})],jC.prototype,"alerts",void 0),PC([us("og-overlay")],jC.prototype,"overlay",void 0),PC([gs("og-form")],jC.prototype,"forms",void 0),jC=PC([ss("og-form-container")],jC);var VC=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};class BC extends Event{constructor(t,e,i){super(t,{bubbles:!0,cancelable:!0,composed:!0}),this.model=e,this.value=i}}class FC extends ns{constructor(){super(...arguments),this.value=null,this.required=!1}updateValue(t,e=!0){this.value=t,this.validate(),e&&this.dispatchEvent(new BC("change",this.model,t))}willUpdate(t){t.has("model")&&(null===this.value&&(this.value=this.model.props.value),this.required=this.model.props.required)}reset(){this.updateValue(this.model.props.value)}validate(){this.model&&(!this.required||null!=this.value&&""!==this.value?this.model.errors=[]:this.model.errors=["this field is required"])}get isValid(){return 0==this.model.errors.length}}FC.styles=[Jn`
4023
+ `},this.addEventListener("keydown",(t=>{"Enter"==t.key&&this.save()}))}connectedCallback(){super.connectedCallback(),this.tabIndex=0}get values(){const t=new Map;return this.forms.forEach(((e,i)=>t.set(this.config[i].key??i,e.values))),t}setSourceData(t,e){this.config=t,this.options=DC(e,this.options)}reset(t=!0){this.forms.forEach((t=>t.reset())),t&&this.dispatchEvent(new HC("reset"))}isValid(){return Array.from(this.forms.values()).every((t=>t.isValid()))}async save(t=!0){if(this._saving)return!1;if(!this.isValid())return!1;if(this._saving=!0,this.adapter){this.showOverlay();let e=!0;try{const t=await this.adapter.save(this.values);!1===t?e=!1:Array.isArray(t)&&(this.alerts=t)}catch(t){e=!1,this.alerts=[{text:t.message,type:"danger"}]}this.hideOverlay(),t&&e&&(this.dispatchEvent(new HC("save")),this.options.closeAfterSave&&this.dispatchEvent(new Event("close")))}else t&&this.dispatchEvent(new HC("save"));return this._saving=!1,!0}async initAdapter(){this.showOverlay(),this.config=await this.adapter.getForms(),this.options=DC(await this.adapter.getOptions(),this.options),this.hideOverlay()}async updated(t){t.has("adapter")&&await this.initAdapter()}};jC.styles=[NC],PC([cs({type:Array})],jC.prototype,"config",void 0),PC([cs({type:Object})],jC.prototype,"options",void 0),PC([cs({type:Boolean})],jC.prototype,"collapsibleForms",void 0),PC([cs({type:Object})],jC.prototype,"adapter",void 0),PC([cs({type:Array})],jC.prototype,"alerts",void 0),PC([us("og-overlay")],jC.prototype,"overlay",void 0),PC([gs("og-form")],jC.prototype,"forms",void 0),jC=PC([ss("og-form-container")],jC);var VC=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};class BC extends Event{constructor(t,e,i){super(t,{bubbles:!0,cancelable:!0,composed:!0}),this.model=e,this.value=i}}class FC extends ns{constructor(){super(...arguments),this.value=null,this.required=!1}updateValue(t,e=!0){this.value=t,this.validate(),e&&this.dispatchEvent(new BC("change",this.model,t))}willUpdate(t){t.has("model")&&(null===this.value&&(this.value=this.model.props.value),this.required=this.model.props.required)}reset(){this.updateValue(this.model.props.value)}validate(){this.model&&(!this.required||null!=this.value&&""!==this.value?this.model.errors=[]:this.model.errors=["this field is required"])}get isValid(){return 0==this.model.errors.length}}FC.styles=[Jn`
4016
4024
  :host {
4017
4025
  display: block;
4018
4026
  }
@@ -8288,4 +8296,4 @@ milkdown-block-handle {
8288
8296
  `:null}
8289
8297
  </div>
8290
8298
  </og-panel>
8291
- `: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?sv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?sv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=sv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Hn({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Hz.styles=[Lz],Iz([cs({type:Object})],Hz.prototype,"model",void 0),Iz([hs()],Hz.prototype,"editTitle",void 0),Iz([us("#title")],Hz.prototype,"titleInput",void 0),Iz([us("#type")],Hz.prototype,"typeList",void 0),Iz([us("#dataRange")],Hz.prototype,"dataRangeInput",void 0),Iz([us("#seriesRange")],Hz.prototype,"seriesRangeInput",void 0),Iz([us("#categoryRange")],Hz.prototype,"categoryRangeInput",void 0),Hz=Iz([ss("og-plugin-chart-form")],Hz);const Tz=fa().themes.get("dark");Object.assign(Tz.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 Az=fa().themes.get("light");Object.assign(Az.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 Oz=i(2439),$z=i(8022),Dz=i(6158),Nz=i(127),Pz=i(4505),jz=i(8659),Vz=i(397),Bz=i(930),Fz=i(9723),Wz=i(6343),Uz=i(4582),Gz=i(6127),Yz=i(8238),qz=i(7362),Zz=i(452),Xz=i(5390),Qz=i(3368),Kz=i(6288),Jz=i(7513),tR=i(1386),eR=i(5764),iR=i(1261),oR=i(3071),nR=i(3285),rR=i(2356),sR=i(6780),aR=i(8542),lR=i(8385),cR=i(1025),hR=i(2034),dR=i(8113),uR=i(1821),pR=i(7212),gR=i(2583),mR=i(5360),fR=i(2377),vR=i(2864),bR=i(7998),yR=i(4101),wR=i(7813),xR=i(5037),kR=i(7005),CR=i(9626),MR=i(9517),_R=i(1504),SR=i(3838),ER=i(4935),zR=i(7699),RR=i(3322),LR=i(5757),IR=i(536),HR=i(1673),TR=i(8736),AR=i(196),OR=i(5133),$R=i(6092),DR=i(791),NR=i(5927),PR=i(1802),jR=i(9511),VR=i(6267),BR=i(1072),FR=i(4331),WR=i(8644),UR=i(2704),GR=i(2419),YR=i(6363),qR=i(5236),ZR=i(3499),XR=i(3811),QR=i(1953),KR=i(4729),JR=i(8964),tL=i(8540),eL=i(8752),iL=i(8783),oL=i(8270),nL=i(7261),rL=i(9231),sL=i(4555),aL=i(5293),lL=i(6981),cL=i(5268),hL=i(2680),dL=i(789),uL=i(4373),pL=i(436),gL=i(8573),mL=i(1808),fL=i(3247),vL=i(5143),bL=i(2415),yL=i(2561),wL=i(5726),xL=i(7436),kL=i(4201),CL=i(8248),ML=i(6433),_L=i(2698),SL=i(979),EL=i(9358),zL=i(9176),RL=i(1239),LL=i(4218),IL=i(8377),HL=i(3740),TL=i(5379),AL=i(9974),OL=i(8955),$L=i(3559),DL=i(809),NL=i(8014),PL=i(8265),jL=i(3300),VL=i(8724),BL=i(8033),FL=i(7700),WL=i(5741),UL=i(3478),GL=i(512),YL=i(499),qL=i(8680),ZL=i(9646),XL=i(9432),QL=i(2841),KL=i(75),JL=i(9256),tI=i(444),eI=i(5633),iI=i(3788),oI=i(3573),nI=i(9948),rI=i(1836),sI=i(7029),aI=i(8532),lI=i(6639),cI=i(1633),hI=i(9805),dI=i(2171),uI=i(875),pI=i(9595),gI=i(3894),mI=i(2803),fI=i(7765),vI=i(8804),bI=i(8654),yI=i(257),wI=i(5844),xI=i(9651),kI=i(760),CI=i(9518),MI=i(4585),_I=i(1769),SI=i(643),EI=i(5156),zI=i(822),RI=i(8249),LI=i(3434),II=i(9314),HI=i(3093),TI=i(7721),AI=i(588),OI=i(7645),$I=i(7148),DI=i(6795),NI=i(7047),PI=i(9428),jI=i(1879),VI=i(9779),BI=i(2476),FI=i(9648),WI=i(2896),UI=i(6817),GI=i(5196),YI=i(2762),qI=i(5981),ZI=i(9014),XI=i(2611),QI=i(7946),KI=i(6301),JI=i(8020),tH=i(3987),eH=i(3192),iH=i(8796),oH=i(2489),nH=i(7324),rH=i(6069),sH=i(4155),aH=i(6977),lH=i(8055),cH=i(2653),hH=i(9492),dH=i(4334),uH=i(6804),pH=i(9954),gH=i(2211),mH=i(5211),fH=i(1519),vH=i(6204),bH=i(5501),yH=i(5244),wH=i(9742),xH=i(1552),kH=i(1330),CH=i(2596),MH=i(5184),_H=i(7675),SH=i(1513),EH=i(9396),zH=i(7673),RH=i(244),LH=i(1187),IH=i(1736),HH=i(4390),TH=i(7106),AH=i(2096),OH=i(9991),$H=i(5629),DH=i(3386),NH=i(6651),PH=i(1684),jH=i(3849),VH=i(2582),BH=i(8569),FH=i(2955),WH=i(9100),UH=i(7381),GH=i(9190),YH=i(4071),qH=i(8e3),ZH=i(4633),XH=i(4374),QH=i(486),KH=i(3680),JH=i(9999),tT=i(2830),eT=i(5255),iT=i(6021),oT=i(2214),nT=i(8497),rT=i(2052),sT=i(5327),aT=i(8701),lT=i(8722),cT=i(7325),hT=i(2445);const dT=[Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Vz.mw,Bz.mw,Fz.mw,Uz.mw,Wz.mw,Gz.mw,Yz.mw,qz.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,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,vR.mw,bR.mw,yR.mw,wR.mw,xR.mw,kR.mw,CR.mw,_R.mw,MR.mw,SR.mw,ER.mw,zR.mw,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,$R.mw,DR.mw,PR.mw,jR.mw,VR.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,NR.mw,nL.mw,rL.mw,sL.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,hR.mw,UL.mw,GL.mw,YL.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,nI.mw,sI.mw,rI.mw,lI.mw,aI.mw,cI.mw,hI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,EI.mw,zI.mw,LI.mw,II.mw,HI.mw,DI.mw,NI.mw,PI.mw,jI.mw,VI.mw,BI.mw,FI.mw,WI.mw,bI.mw,yI.mw,xI.mw,wI.mw,UI.mw,GI.mw,YI.mw,qI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,TI.mw,AI.mw,OI.mw,$I.mw,tH.mw,eH.mw,iH.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,JI.mw,yH.mw,wH.mw,xH.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,RI.mw,sT.mw,aT.mw,lT.mw,cT.mw,hT.mw],uT={xlsx:j,charts:V},pT={name:"@omegagrid/bundle",version:"0.6.55"};fa().activate("light"),$h.styleDefault="fal",Dh.add(...dT)})(),window.Omegagrid=o})();
8299
+ `: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?sv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?sv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=sv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Hn({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Hz.styles=[Lz],Iz([cs({type:Object})],Hz.prototype,"model",void 0),Iz([hs()],Hz.prototype,"editTitle",void 0),Iz([us("#title")],Hz.prototype,"titleInput",void 0),Iz([us("#type")],Hz.prototype,"typeList",void 0),Iz([us("#dataRange")],Hz.prototype,"dataRangeInput",void 0),Iz([us("#seriesRange")],Hz.prototype,"seriesRangeInput",void 0),Iz([us("#categoryRange")],Hz.prototype,"categoryRangeInput",void 0),Hz=Iz([ss("og-plugin-chart-form")],Hz);const Tz=fa().themes.get("dark");Object.assign(Tz.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 Az=fa().themes.get("light");Object.assign(Az.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 Oz=i(2439),$z=i(8022),Dz=i(6158),Nz=i(127),Pz=i(4505),jz=i(8659),Vz=i(397),Bz=i(930),Fz=i(9723),Wz=i(6343),Uz=i(4582),Gz=i(6127),Yz=i(8238),qz=i(7362),Zz=i(452),Xz=i(5390),Qz=i(3368),Kz=i(6288),Jz=i(7513),tR=i(1386),eR=i(5764),iR=i(1261),oR=i(3071),nR=i(3285),rR=i(2356),sR=i(6780),aR=i(8542),lR=i(8385),cR=i(1025),hR=i(2034),dR=i(8113),uR=i(1821),pR=i(7212),gR=i(2583),mR=i(5360),fR=i(2377),vR=i(2864),bR=i(7998),yR=i(4101),wR=i(7813),xR=i(5037),kR=i(7005),CR=i(9626),MR=i(9517),_R=i(1504),SR=i(3838),ER=i(4935),zR=i(7699),RR=i(3322),LR=i(5757),IR=i(536),HR=i(1673),TR=i(8736),AR=i(196),OR=i(5133),$R=i(6092),DR=i(791),NR=i(5927),PR=i(1802),jR=i(9511),VR=i(6267),BR=i(1072),FR=i(4331),WR=i(8644),UR=i(2704),GR=i(2419),YR=i(6363),qR=i(5236),ZR=i(3499),XR=i(3811),QR=i(1953),KR=i(4729),JR=i(8964),tL=i(8540),eL=i(8752),iL=i(8783),oL=i(8270),nL=i(7261),rL=i(9231),sL=i(4555),aL=i(5293),lL=i(6981),cL=i(5268),hL=i(2680),dL=i(789),uL=i(4373),pL=i(436),gL=i(8573),mL=i(1808),fL=i(3247),vL=i(5143),bL=i(2415),yL=i(2561),wL=i(5726),xL=i(7436),kL=i(4201),CL=i(8248),ML=i(6433),_L=i(2698),SL=i(979),EL=i(9358),zL=i(9176),RL=i(1239),LL=i(4218),IL=i(8377),HL=i(3740),TL=i(5379),AL=i(9974),OL=i(8955),$L=i(3559),DL=i(809),NL=i(8014),PL=i(8265),jL=i(3300),VL=i(8724),BL=i(8033),FL=i(7700),WL=i(5741),UL=i(3478),GL=i(512),YL=i(499),qL=i(8680),ZL=i(9646),XL=i(9432),QL=i(2841),KL=i(75),JL=i(9256),tI=i(444),eI=i(5633),iI=i(3788),oI=i(3573),nI=i(9948),rI=i(1836),sI=i(7029),aI=i(8532),lI=i(6639),cI=i(1633),hI=i(9805),dI=i(2171),uI=i(875),pI=i(9595),gI=i(3894),mI=i(2803),fI=i(7765),vI=i(8804),bI=i(8654),yI=i(257),wI=i(5844),xI=i(9651),kI=i(760),CI=i(9518),MI=i(4585),_I=i(1769),SI=i(643),EI=i(5156),zI=i(822),RI=i(8249),LI=i(3434),II=i(9314),HI=i(3093),TI=i(7721),AI=i(588),OI=i(7645),$I=i(7148),DI=i(6795),NI=i(7047),PI=i(9428),jI=i(1879),VI=i(9779),BI=i(2476),FI=i(9648),WI=i(2896),UI=i(6817),GI=i(5196),YI=i(2762),qI=i(5981),ZI=i(9014),XI=i(2611),QI=i(7946),KI=i(6301),JI=i(8020),tH=i(3987),eH=i(3192),iH=i(8796),oH=i(2489),nH=i(7324),rH=i(6069),sH=i(4155),aH=i(6977),lH=i(8055),cH=i(2653),hH=i(9492),dH=i(4334),uH=i(6804),pH=i(9954),gH=i(2211),mH=i(5211),fH=i(1519),vH=i(6204),bH=i(5501),yH=i(5244),wH=i(9742),xH=i(1552),kH=i(1330),CH=i(2596),MH=i(5184),_H=i(7675),SH=i(1513),EH=i(9396),zH=i(7673),RH=i(244),LH=i(1187),IH=i(1736),HH=i(4390),TH=i(7106),AH=i(2096),OH=i(9991),$H=i(5629),DH=i(3386),NH=i(6651),PH=i(1684),jH=i(3849),VH=i(2582),BH=i(8569),FH=i(2955),WH=i(9100),UH=i(7381),GH=i(9190),YH=i(4071),qH=i(8e3),ZH=i(4633),XH=i(4374),QH=i(486),KH=i(3680),JH=i(9999),tT=i(2830),eT=i(5255),iT=i(6021),oT=i(2214),nT=i(8497),rT=i(2052),sT=i(5327),aT=i(8701),lT=i(8722),cT=i(7325),hT=i(2445);const dT=[Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Vz.mw,Bz.mw,Fz.mw,Uz.mw,Wz.mw,Gz.mw,Yz.mw,qz.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,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,vR.mw,bR.mw,yR.mw,wR.mw,xR.mw,kR.mw,CR.mw,_R.mw,MR.mw,SR.mw,ER.mw,zR.mw,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,$R.mw,DR.mw,PR.mw,jR.mw,VR.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,NR.mw,nL.mw,rL.mw,sL.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,hR.mw,UL.mw,GL.mw,YL.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,nI.mw,sI.mw,rI.mw,lI.mw,aI.mw,cI.mw,hI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,fI.mw,vI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,EI.mw,zI.mw,LI.mw,II.mw,HI.mw,DI.mw,NI.mw,PI.mw,jI.mw,VI.mw,BI.mw,FI.mw,WI.mw,bI.mw,yI.mw,xI.mw,wI.mw,UI.mw,GI.mw,YI.mw,qI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,TI.mw,AI.mw,OI.mw,$I.mw,tH.mw,eH.mw,iH.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,JI.mw,yH.mw,wH.mw,xH.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,RI.mw,sT.mw,aT.mw,lT.mw,cT.mw,hT.mw],uT={xlsx:j,charts:V},pT={name:"@omegagrid/bundle",version:"0.6.57"};fa().activate("light"),$h.styleDefault="fal",Dh.add(...dT)})(),window.Omegagrid=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omegagrid/bundle",
3
- "version": "0.6.55",
3
+ "version": "0.6.57",
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.55",
23
- "@omegagrid/calendar": "^0.6.55",
24
- "@omegagrid/code": "^0.6.55",
25
- "@omegagrid/commands": "^0.6.55",
26
- "@omegagrid/core": "^0.6.55",
27
- "@omegagrid/dialog": "^0.6.55",
28
- "@omegagrid/editor": "^0.6.55",
29
- "@omegagrid/form": "^0.6.55",
30
- "@omegagrid/grid": "^0.6.55",
31
- "@omegagrid/localize": "^0.6.55",
32
- "@omegagrid/markdown": "^0.6.55",
33
- "@omegagrid/plugin-charts": "^0.6.55",
34
- "@omegagrid/plugin-xlsx": "^0.6.55",
35
- "@omegagrid/statusbar": "^0.6.55",
36
- "@omegagrid/tabs": "^0.6.55",
37
- "@omegagrid/toolbar": "^0.6.55",
38
- "@omegagrid/tree": "^0.6.55",
22
+ "@omegagrid/bucket": "^0.6.57",
23
+ "@omegagrid/calendar": "^0.6.57",
24
+ "@omegagrid/code": "^0.6.57",
25
+ "@omegagrid/commands": "^0.6.57",
26
+ "@omegagrid/core": "^0.6.57",
27
+ "@omegagrid/dialog": "^0.6.57",
28
+ "@omegagrid/editor": "^0.6.57",
29
+ "@omegagrid/form": "^0.6.57",
30
+ "@omegagrid/grid": "^0.6.57",
31
+ "@omegagrid/localize": "^0.6.57",
32
+ "@omegagrid/markdown": "^0.6.57",
33
+ "@omegagrid/plugin-charts": "^0.6.57",
34
+ "@omegagrid/plugin-xlsx": "^0.6.57",
35
+ "@omegagrid/statusbar": "^0.6.57",
36
+ "@omegagrid/tabs": "^0.6.57",
37
+ "@omegagrid/toolbar": "^0.6.57",
38
+ "@omegagrid/tree": "^0.6.57",
39
39
  "lit": "^3.1.1"
40
40
  },
41
41
  "devDependencies": {