@omegagrid/bundle 0.7.6 → 0.7.8
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.
- package/omegagrid.js +18 -49
- package/package.json +18 -18
package/omegagrid.js
CHANGED
|
@@ -2747,7 +2747,7 @@
|
|
|
2747
2747
|
og-icon {
|
|
2748
2748
|
margin-right: -4px;
|
|
2749
2749
|
}
|
|
2750
|
-
`],Tg([Ss({type:Array})],Og.prototype,"path",void 0),Tg([Ss({type:Boolean})],Og.prototype,"clickable",void 0),Og=Tg([Cs("og-bucket-path")],Og);class $g{static init(t){$g.monacoPath=t}static async get(){return this.monaco||(this.monaco=await this.load()),this.monaco}static getSync(){return this.monaco}static load(){if(!sn.require)throw new Error("AMDLoader is not initialized");return sn.require.config({paths:{vs:$g.monacoPath}}),new Promise((t=>{sn.require(["vs/editor/editor.main"],(()=>{t(self.monaco)}))}))}static async loadToIFrame(t){if(!sn.require)throw new Error("AMDLoader is not initialized");const e=t.contentWindow;return e.monaco?e.monaco:(await an.load(`${$g.monacoPath}/loader.js`,t.contentDocument),e.require.config({paths:{vs:$g.monacoPath}}),await new Promise((t=>{e.require(["vs/editor/editor.main"],(()=>{t(e.monaco)}))})))}}class Dg extends Event{constructor(t,e,i){super(`code.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e),this.origEvent=i}}var Ng,Pg,jg,Hg,Bg,Fg,Wg,Vg,Ug,Gg,qg,Yg=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},Zg=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)},Xg=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let Qg=qg=class extends xs{constructor(){super(...arguments),Ng.set(this,void 0),Pg.set(this,void 0),jg.set(this,"typescript"),Hg.set(this,!1),Bg.set(this,0),Fg.set(this,void 0),Wg.set(this,void 0),Vg.set(this,void 0),Ug.set(this,void 0),Gg.set(this,(()=>{Zg(this,Ng,"f").updateOptions({theme:this.theme})})),this.getOptions=()=>({...this.options,theme:this.theme,language:Zg(this,jg,"f"),fontSize:tn().fontSize,fontLigatures:""})}get monaco(){return qg.monaco}get editor(){return Zg(this,Ng,"f")}get model(){return Zg(this,Ng,"f")?.getModel()}get options(){return Zg(this,Pg,"f")}set options(t){Xg(this,Pg,t,"f"),Zg(this,Ng,"f")?.updateOptions(t)}get content(){return Zg(this,Ng,"f")?Zg(this,Ng,"f").getValue():Zg(this,Fg,"f")}set content(t){null==t&&(t=""),Zg(this,Ng,"f")?(Xg(this,Hg,!0,"f"),Zg(this,Ng,"f")?.setValue(t)):Xg(this,Fg,t,"f")}get language(){return Zg(this,jg,"f")}set language(t){Xg(this,jg,t,"f"),this.model&&$g.get().then((e=>e.editor.setModelLanguage(this.model,t)))}get selectedContent(){if(!Zg(this,Ng,"f"))return Zg(this,Fg,"f");const t=Zg(this,Ng,"f").getSelections().map((t=>this.model.getValueInRange(t))).join("\n").trim();return null==t||""==t?Zg(this,Ng,"f").getValue():t}get container(){return Zg(this,Ug,"f")??Xg(this,Ug,yt("div",{style:{zIndex:
|
|
2750
|
+
`],Tg([Ss({type:Array})],Og.prototype,"path",void 0),Tg([Ss({type:Boolean})],Og.prototype,"clickable",void 0),Og=Tg([Cs("og-bucket-path")],Og);class $g{static init(t){$g.monacoPath=t}static async get(){return this.monaco||(this.monaco=await this.load()),this.monaco}static getSync(){return this.monaco}static load(){if(!sn.require)throw new Error("AMDLoader is not initialized");return sn.require.config({paths:{vs:$g.monacoPath}}),new Promise((t=>{sn.require(["vs/editor/editor.main"],(()=>{t(self.monaco)}))}))}static async loadToIFrame(t){if(!sn.require)throw new Error("AMDLoader is not initialized");const e=t.contentWindow;return e.monaco?e.monaco:(await an.load(`${$g.monacoPath}/loader.js`,t.contentDocument),e.require.config({paths:{vs:$g.monacoPath}}),await new Promise((t=>{e.require(["vs/editor/editor.main"],(()=>{t(e.monaco)}))})))}}class Dg extends Event{constructor(t,e,i){super(`code.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e),this.origEvent=i}}var Ng,Pg,jg,Hg,Bg,Fg,Wg,Vg,Ug,Gg,qg,Yg=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},Zg=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)},Xg=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let Qg=qg=class extends xs{constructor(){super(...arguments),Ng.set(this,void 0),Pg.set(this,void 0),jg.set(this,"typescript"),Hg.set(this,!1),Bg.set(this,0),Fg.set(this,void 0),Wg.set(this,void 0),Vg.set(this,void 0),Ug.set(this,void 0),Gg.set(this,(()=>{Zg(this,Ng,"f").updateOptions({theme:this.theme})})),this.getOptions=()=>({...this.options,theme:this.theme,language:Zg(this,jg,"f"),fontSize:tn().fontSize,fontLigatures:""})}get monaco(){return qg.monaco}get editor(){return Zg(this,Ng,"f")}get model(){return Zg(this,Ng,"f")?.getModel()}get options(){return Zg(this,Pg,"f")}set options(t){Xg(this,Pg,t,"f"),Zg(this,Ng,"f")?.updateOptions(t)}get content(){return Zg(this,Ng,"f")?Zg(this,Ng,"f").getValue():Zg(this,Fg,"f")}set content(t){null==t&&(t=""),Zg(this,Ng,"f")?(Xg(this,Hg,!0,"f"),Zg(this,Ng,"f")?.setValue(t)):Xg(this,Fg,t,"f")}get language(){return Zg(this,jg,"f")}set language(t){Xg(this,jg,t,"f"),this.model&&$g.get().then((e=>e.editor.setModelLanguage(this.model,t)))}get selectedContent(){if(!Zg(this,Ng,"f"))return Zg(this,Fg,"f");const t=Zg(this,Ng,"f").getSelections().map((t=>this.model.getValueInRange(t))).join("\n").trim();return null==t||""==t?Zg(this,Ng,"f").getValue():t}get container(){return Zg(this,Ug,"f")??Xg(this,Ug,yt("div",{style:{zIndex:qg.zIndex.toString()}}),"f")}get theme(){return"light"==Aa().activeTheme?.type?"vs":"vs-dark"}showContainer(){this.container.parentElement!==document.body&&document.body.appendChild(this.container)}hideContainer(){Zg(this,Ug,"f")?.remove()}async initEditor(){if(Zg(this,Bg,"f")>0)return;Xg(this,Bg,1,"f"),qg.monaco=await $g.get(),Xg(this,Ng,qg.monaco.editor.create(this.container,this.getOptions()),"f");const t=Zg(this,jg,"f"),e=qg.monaco.editor.createModel(Zg(this,Fg,"f"),t);Zg(this,Ng,"f").setModel(e),Zg(this,Wg,"f")&&Zg(this,Ng,"f").setSelection(Zg(this,Wg,"f")),Zg(this,Vg,"f")&&Zg(this,Ng,"f").setScrollPosition({scrollTop:Zg(this,Vg,"f").top,scrollLeft:Zg(this,Vg,"f").left}),Zg(this,Ng,"f").onDidBlurEditorText((()=>{this.dispatchEvent(new Dg("blur",{editor:Zg(this,Ng,"f")}))})),Zg(this,Ng,"f").onDidChangeModelContent((t=>{Zg(this,Hg,"f")?Xg(this,Hg,!1,"f"):(this.dispatchEvent(new Dg("change",{editor:Zg(this,Ng,"f"),changes:t.changes})),this.dispatchEvent(new qr({value:e})))})),Zg(this,Ng,"f").onKeyDown((t=>{this.dispatchEvent(new Dg("keydown",{editor:Zg(this,Ng,"f")},t.browserEvent))})),Xg(this,Hg,!1,"f"),Xg(this,Bg,2,"f"),this.dispatchEvent(new Dg("ready",{editor:Zg(this,Ng,"f")})),Zg(this,Ng,"f").focus(),setTimeout((()=>{Zg(this,jg,"f")!=t&&qg.monaco.editor.setModelLanguage(e,Zg(this,jg,"f"))}),100)}async updated(){await this.initEditor(),this.layout()}connectedCallback(){super.connectedCallback(),Aa().addEventListener("change",Zg(this,Gg,"f")),this.hasUpdated&&(this.initEditor(),this.layout())}disconnectedCallback(){Aa().removeEventListener("change",Zg(this,Gg,"f")),this.hideContainer()}layout(){if(!this.isConnected||this.clientWidth<10||this.clientHeight<10)return void this.hideContainer();this.showContainer();const t=Tt(this,document.body);Ht(this.container,{t:t.top+1,l:t.left+1}),Nt(this.container,{w:this.clientWidth-1,h:this.clientHeight-1}),this.editor?.layout()}dispose(){Zg(this,Ug,"f")?.remove(),Xg(this,Ug,null,"f"),Zg(this,Ng,"f")?.dispose(),Xg(this,Ng,null,"f"),Xg(this,Bg,0,"f")}focus(){Zg(this,Ng,"f")?.focus()}};Ng=new WeakMap,Pg=new WeakMap,jg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Wg=new WeakMap,Vg=new WeakMap,Ug=new WeakMap,Gg=new WeakMap,Qg.zIndex=1e4,Qg.styles=fn`
|
|
2751
2751
|
:host {
|
|
2752
2752
|
user-select: text;
|
|
2753
2753
|
display: block;
|
|
@@ -2755,7 +2755,7 @@
|
|
|
2755
2755
|
height: 100%;
|
|
2756
2756
|
position: relative;
|
|
2757
2757
|
}
|
|
2758
|
-
`,Yg([Ss({type:Object,noAccessor:!0})],Qg.prototype,"options",null),Yg([Ss({type:String,noAccessor:!0})],Qg.prototype,"content",null),Yg([Ss({type:String,noAccessor:!0})],Qg.prototype,"language",null),Qg=qg=Yg([Cs("og-code")],Qg);var Kg,Jg,tm,em,im,om,rm,nm,sm,am,lm,cm,hm=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},dm=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)},um=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let pm=cm=class extends xs{constructor(){super(...arguments),Kg.set(this,!1),Jg.set(this,0),tm.set(this,void 0),em.set(this,void 0),im.set(this,void 0),om.set(this,void 0),rm.set(this,
|
|
2758
|
+
`,Yg([Ss({type:Object,noAccessor:!0})],Qg.prototype,"options",null),Yg([Ss({type:String,noAccessor:!0})],Qg.prototype,"content",null),Yg([Ss({type:String,noAccessor:!0})],Qg.prototype,"language",null),Qg=qg=Yg([Cs("og-code")],Qg);var Kg,Jg,tm,em,im,om,rm,nm,sm,am,lm,cm,hm=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},dm=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)},um=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i};let pm=cm=class extends xs{constructor(){super(...arguments),Kg.set(this,!1),Jg.set(this,0),tm.set(this,void 0),em.set(this,void 0),im.set(this,void 0),om.set(this,void 0),rm.set(this,""),nm.set(this,""),sm.set(this,"typescript"),am.set(this,void 0),lm.set(this,(()=>{this.editor.updateOptions({theme:this.theme})})),this.getOptions=()=>({...this.options,theme:this.theme,fontSize:tn().fontSize,fontLigatures:""})}get monaco(){return cm.monaco}get editor(){return dm(this,im,"f")}get modifiedModel(){return dm(this,im,"f")?.getModel().modified}get originalModel(){return dm(this,im,"f")?.getModel().original}get options(){return dm(this,om,"f")}set options(t){um(this,om,t,"f"),dm(this,im,"f")?.updateOptions(t)}get modifiedContent(){return this.modifiedModel?this.modifiedModel.getValue():dm(this,rm,"f")}set modifiedContent(t){this.modifiedModel?(um(this,Kg,!0,"f"),this.modifiedModel.setValue(t)):um(this,rm,t,"f")}get originalContent(){return this.originalModel?this.originalModel.getValue():dm(this,nm,"f")}set originalContent(t){this.originalModel?(um(this,Kg,!0,"f"),this.originalModel.setValue(t)):um(this,nm,t,"f")}get language(){return dm(this,sm,"f")}set language(t){um(this,sm,t,"f"),dm(this,im,"f")&&$g.get().then((e=>{e.editor.setModelLanguage(dm(this,im,"f").getModel().modified,t),e.editor.setModelLanguage(dm(this,im,"f").getModel().original,t)}))}get selectedContent(){if(!dm(this,im,"f"))return dm(this,nm,"f");if(!dm(this,em,"f"))return dm(this,nm,"f");const t=dm(this,im,"f").getSelections().map((t=>dm(this,em,"f").getValueInRange(t))).join("\n").trim();return null==t||""==t?dm(this,em,"f").getValue():t}get container(){return dm(this,am,"f")??um(this,am,yt("div",{style:{zIndex:Qg.zIndex.toString()}}),"f")}get theme(){return"light"==Aa().activeTheme?.type?"vs":"vs-dark"}showContainer(){this.container.parentElement!==document.body&&document.body.appendChild(this.container)}hideContainer(){dm(this,am,"f")?.remove()}async initEditor(){if(dm(this,Jg,"f")>0)return;um(this,Jg,1,"f"),cm.monaco=await $g.get(),um(this,im,cm.monaco.editor.createDiffEditor(this.container,this.getOptions()),"f");const t=dm(this,sm,"f"),e=cm.monaco.editor.createModel(dm(this,nm,"f"),t),i=cm.monaco.editor.createModel(dm(this,rm,"f"),t);this.editor.setModel({original:e,modified:i}),dm(this,tm,"f")&&dm(this,im,"f").setSelection(dm(this,tm,"f")),i.onDidChangeContent((t=>{dm(this,Kg,"f")?um(this,Kg,!1,"f"):(this.dispatchEvent(new Dg("change",{editor:this.editor,changes:t.changes})),this.dispatchEvent(new qr({value:this.editor.getModel().modified.getValue()})))}));const o=dm(this,im,"f").getModifiedEditor(),r=dm(this,im,"f").getOriginalEditor();o.onDidFocusEditorText((()=>um(this,em,o.getModel(),"f"))),r.onDidFocusEditorText((()=>um(this,em,r.getModel(),"f"))),o.onKeyDown((t=>{this.dispatchEvent(new Dg("keydown",{editor:dm(this,im,"f")},t.browserEvent))})),r.onKeyDown((t=>{this.dispatchEvent(new Dg("keydown",{editor:dm(this,im,"f")},t.browserEvent))})),um(this,Kg,!1,"f"),um(this,Jg,2,"f"),this.dispatchEvent(new Dg("ready",{editor:dm(this,im,"f")})),dm(this,im,"f").focus(),setTimeout((()=>{dm(this,sm,"f")!=t&&(cm.monaco.editor.setModelLanguage(dm(this,im,"f").getModel().modified,dm(this,sm,"f")),cm.monaco.editor.setModelLanguage(dm(this,im,"f").getModel().original,dm(this,sm,"f")))}),100)}async updated(){await this.initEditor(),this.layout()}connectedCallback(){super.connectedCallback(),Aa().addEventListener("change",dm(this,lm,"f")),this.hasUpdated&&(this.initEditor(),this.layout())}disconnectedCallback(){Aa().removeEventListener("change",dm(this,lm,"f")),this.hideContainer()}layout(){if(!this.isConnected||this.clientWidth<10||this.clientHeight<10)return void this.hideContainer();this.showContainer();const t=Tt(this,document.body);Ht(this.container,{t:t.top+1,l:t.left+1});const e=this.clientWidth-1,i=this.clientHeight-1;Nt(this.container,{w:e,h:i}),dm(this,im,"f")?.layout({width:e,height:i})}dispose(){dm(this,am,"f")?.remove(),um(this,am,null,"f"),dm(this,im,"f")?.dispose(),um(this,im,null,"f"),um(this,Jg,0,"f")}focus(){dm(this,im,"f")?.focus()}};Kg=new WeakMap,Jg=new WeakMap,tm=new WeakMap,em=new WeakMap,im=new WeakMap,om=new WeakMap,rm=new WeakMap,nm=new WeakMap,sm=new WeakMap,am=new WeakMap,lm=new WeakMap,pm.styles=fn`
|
|
2759
2759
|
:host {
|
|
2760
2760
|
user-select: text;
|
|
2761
2761
|
display: block;
|
|
@@ -2794,11 +2794,14 @@
|
|
|
2794
2794
|
|
|
2795
2795
|
.toolbar {
|
|
2796
2796
|
flex: 0;
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
.toolbar-levels {
|
|
2797
2800
|
min-height: 18px;
|
|
2798
2801
|
margin: 2px 2px 0 2px;
|
|
2799
2802
|
}
|
|
2800
2803
|
|
|
2801
|
-
.toolbar > * {
|
|
2804
|
+
.toolbar-levels > * {
|
|
2802
2805
|
height: 18px;
|
|
2803
2806
|
line-height: 18px;
|
|
2804
2807
|
}
|
|
@@ -2908,7 +2911,7 @@
|
|
|
2908
2911
|
.item:hover div.lvl {
|
|
2909
2912
|
display: flex;
|
|
2910
2913
|
}
|
|
2911
|
-
`,Sm=$d({display:"block",position:"relative",top:"5px",left:"4px"}),Em={[bm.Checked]:{value:"checked",color:null},[bm.CheckedByParent]:{value:"checked",color:"#555555"},[bm.None]:{value:"none",color:null},[bm.Unchecked]:{value:"unchecked",color:"#ff0000"}};class zm{get term(){return this._term}get hasFilter(){return""==this._term||null==this._term}constructor(t){this.model=t,this._term=null,this._property="value"}filter(t){this._term=t;const e=((t,e)=>{const i=new RegExp(`${ut(ct(t))}`,"ig");let o;return t=>{const r=[];for(;o=i.exec(ct((t[e]??"").toString()));)r.push([o.index,i.lastIndex]);return r}})(this._term,this._property);let i;this.model.nodes.forEach((o=>{o.collapsed=!1,o.htmlValue=null,t?(i=e(o),o.filterState=i.length>0?Er.Matched:Er.Filtered):(o.filterState=Er.Matched,o.collapse()),o.filterState==Er.Matched&&(o.walkUp((t=>{t.filterState==Er.Filtered&&(t.filterState=Er.ChildMatched)})),t&&(o.htmlValue=re(o.value,i)))})),this.model.indexVisibleNodes()}clear(){this._term=null,this.model.nodes.forEach((t=>{t.filterState=Er.Matched,t.collapsed=!1,t.htmlValue=null})),this.model.indexVisibleNodes()}}var Lm=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Im extends Event{constructor(t,e){super(t,{bubbles:!1,cancelable:!0,composed:!1}),Object.assign(this,e)}}class Rm extends PointerEvent{constructor(t,e,i){super(`tree.${t}`,e),Object.assign(this,i)}}class Tm extends DragEvent{constructor(t,e,i){super(`tree.${t}`,e),Object.assign(this,i)}}let Am=class extends xs{get size(){return this.model?.visibleNodes.length??0}get hasGlobalLevels(){return(this.options.selectMode==fm.Multiple||this.options.selectMode==fm.MultipleLevels)&&this.options.globalLevels&&this.model.maxLevel>0}constructor(){super(),this.options=Cm(),this.selection=new wm(this.options),this.logger=new Mr("Ωtree"),this.maxHeight=null,this.itemHeight=xm.LIST_ITEM_HEIGHT,this.disableAutoload=!1,this.loading=!1,this.noMatches=!1,this.awaitFilter=!1,this.currentFilter="",this.loadingNodes=new Set,this._onDragover=t=>{if(this.options.fileDrop&&(t.preventDefault(),t.stopPropagation(),"Files"==t.dataTransfer.types[0])){t.dataTransfer.dropEffect="move";const e=t.composedPath().find((t=>t.classList&&t.classList.contains("item")));this._onDragLeave(),e&&e.classList.add("drag"),this._lastDragItem=e}},this._onDrop=t=>{t.preventDefault(),this._onDragLeave();const e=t.composedPath().find((t=>t.classList&&t.classList.contains("item"))),i=this.model.nodes[parseInt(e.dataset.node)];this.dispatchEvent(new Tm("drop",t,{tree:this,node:i}))},this._onDragLeave=()=>{this._lastDragItem&&this._lastDragItem.classList.remove("drag"),this._lastDragItem=null},this.keyActions={ArrowRight:()=>{const t=this.model.visibleNodes[this.list.selectedIndex];t.collapsed&&(this.toggleNodeCollapse(t),this.model.indexVisibleNodes(),this.list.size=this.size)},ArrowLeft:()=>{const t=this.model.visibleNodes[this.list.selectedIndex];t.collapsed||(this.toggleNodeCollapse(t),this.model.indexVisibleNodes(),this.list.size=this.size)}},this._onGlobalLevelSelect=async t=>{this.toggleNode(this.model.root,t.level,!0),this.globalTreeLevels.requestUpdate(),this.requestUpdate(),await this.list.updateComplete,this.list.renderItems(!0)},this._onSearch=()=>{this.list.size=this.size,this.list.select(0),this.renderItems(!0),this.noMatches=0==this.size},this._onListRender=()=>{this.awaitFilter&&(this.filter(this.currentFilter),this.awaitFilter=null)},this._onListMenu=t=>{this.dispatchEvent(new Rm("menu",t,{tree:this,node:this.model.visibleNodes[t.index]}))},this.addEventListener("dragover",this._onDragover),this.addEventListener("dragleave",this._onDragLeave),this.addEventListener("drop",this._onDrop)}destroy(){this.logger.info("destroy")}connectedCallback(){super.connectedCallback(),this.logger.info("init"),this.tabIndex=0}setSourceData(t,e=null){Object.assign(this.options,e??{}),this.model=new mm(t,this.options),t?.length>0&&void 0!==t[0].s&&this.selection.setItems(t.filter((t=>t.s)).map((t=>[t.k,0,1]))),this.dispatchEvent(new Im("load",{component:this}))}setValue(t){this.selection.populate(t)}async loadData(t){this.loading=!0,this.list&&(this.list.size=0),this.model=null,t=t??{};const[e,i]=await Promise.all([this.adapter.getTree(t),this.adapter.getOptions()]);this.setSourceData(e,i),i?.pageSize>0&&(this.updateNodeLoadState(this.model.root,this.model.root.children.length),this.model.indexVisibleNodes()),this.loading=!1,this.pendingHighlight&&(await this.updateComplete,await this.highlightNode(this.pendingHighlight),this.pendingHighlight=null)}async loadMore(t){const e=t.children.length,i=await this.adapter.getTree({parent:t,parentKey:t.key,offset:e}),o=new mm(i,this.options);t.insertChildren(o.root.children,e),this.updateNodeLoadState(t,o.root.children.length),this.model.indexNodesByTree(!0),this.list.size=this.size,this.list.requestUpdate()}willUpdate(t){t.has("adapter")&&this.adapter&&(this.model=null,this.adapter.attach(this),this.disableAutoload||this.loadData()),this.model=this.model??new mm([],null),this.filtering=new zm(this.model),this.selection.model=this.model,t.has("options")&&(this.options=Cm(this.options),this.model.options=this.options,this.selection.options=this.options)}updated(t){t.has("model")&&this.list&&(this.list.size=this.size,this.noMatches=this.noMatches&&0==this.size,this.list.requestUpdate())}async firstUpdated(){var t;this.value&&this.selection.setItems(this.value??[]),this.list.itemRenderer=(t=this,(e,i,o)=>{const r=t.model.visibleNodes[i];if(r.placeholder)return((t,e)=>{const i=e.parent,o=i.model.options;return e.element=t,es`
|
|
2914
|
+
`,Sm=$d({display:"block",position:"relative",top:"5px",left:"4px"}),Em={[bm.Checked]:{value:"checked",color:null},[bm.CheckedByParent]:{value:"checked",color:"#555555"},[bm.None]:{value:"none",color:null},[bm.Unchecked]:{value:"unchecked",color:"#ff0000"}};class zm{get term(){return this._term}get hasFilter(){return""==this._term||null==this._term}constructor(t){this.model=t,this._term=null,this._property="value"}filter(t){this._term=t;const e=((t,e)=>{const i=new RegExp(`${ut(ct(t))}`,"ig");let o;return t=>{const r=[];for(;o=i.exec(ct((t[e]??"").toString()));)r.push([o.index,i.lastIndex]);return r}})(this._term,this._property);let i;this.model.nodes.forEach((o=>{o.collapsed=!1,o.htmlValue=null,t?(i=e(o),o.filterState=i.length>0?Er.Matched:Er.Filtered):(o.filterState=Er.Matched,o.collapse()),o.filterState==Er.Matched&&(o.walkUp((t=>{t.filterState==Er.Filtered&&(t.filterState=Er.ChildMatched)})),t&&(o.htmlValue=re(o.value,i)))})),this.model.indexVisibleNodes()}clear(){this._term=null,this.model.nodes.forEach((t=>{t.filterState=Er.Matched,t.collapsed=!1,t.htmlValue=null})),this.model.indexVisibleNodes()}}var Lm=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Im extends Event{constructor(t,e){super(t,{bubbles:!1,cancelable:!0,composed:!1}),Object.assign(this,e)}}class Rm extends PointerEvent{constructor(t,e,i){super(`tree.${t}`,e),Object.assign(this,i)}}class Tm extends DragEvent{constructor(t,e,i){super(`tree.${t}`,e),Object.assign(this,i)}}let Am=class extends xs{get size(){return this.model?.visibleNodes.length??0}get hasGlobalLevels(){return(this.options.selectMode==fm.Multiple||this.options.selectMode==fm.MultipleLevels)&&this.options.globalLevels&&this.model.maxLevel>0}constructor(){super(),this.options=Cm(),this.selection=new wm(this.options),this.logger=new Mr("Ωtree"),this.maxHeight=null,this.itemHeight=xm.LIST_ITEM_HEIGHT,this.disableAutoload=!1,this.loading=!1,this.noMatches=!1,this.awaitFilter=!1,this.currentFilter="",this.loadingNodes=new Set,this._onDragover=t=>{if(this.options.fileDrop&&(t.preventDefault(),t.stopPropagation(),"Files"==t.dataTransfer.types[0])){t.dataTransfer.dropEffect="move";const e=t.composedPath().find((t=>t.classList&&t.classList.contains("item")));this._onDragLeave(),e&&e.classList.add("drag"),this._lastDragItem=e}},this._onDrop=t=>{t.preventDefault(),this._onDragLeave();const e=t.composedPath().find((t=>t.classList&&t.classList.contains("item"))),i=this.model.nodes[parseInt(e.dataset.node)];this.dispatchEvent(new Tm("drop",t,{tree:this,node:i}))},this._onDragLeave=()=>{this._lastDragItem&&this._lastDragItem.classList.remove("drag"),this._lastDragItem=null},this.keyActions={ArrowRight:()=>{const t=this.model.visibleNodes[this.list.selectedIndex];t.collapsed&&(this.toggleNodeCollapse(t),this.model.indexVisibleNodes(),this.list.size=this.size)},ArrowLeft:()=>{const t=this.model.visibleNodes[this.list.selectedIndex];t.collapsed||(this.toggleNodeCollapse(t),this.model.indexVisibleNodes(),this.list.size=this.size)}},this._onGlobalLevelSelect=async t=>{this.toggleNode(this.model.root,t.level,!0),this.globalTreeLevels.requestUpdate(),this.requestUpdate(),await this.list.updateComplete,this.list.renderItems(!0)},this._onSearch=()=>{this.list.size=this.size,this.list.select(0),this.renderItems(!0),this.noMatches=0==this.size},this._onListRender=()=>{this.awaitFilter&&(this.filter(this.currentFilter),this.awaitFilter=null)},this._onListMenu=t=>{this.dispatchEvent(new Rm("menu",t,{tree:this,node:this.model.visibleNodes[t.index]}))},this.addEventListener("dragover",this._onDragover),this.addEventListener("dragleave",this._onDragLeave),this.addEventListener("drop",this._onDrop)}destroy(){this.logger.info("destroy")}connectedCallback(){super.connectedCallback(),this.logger.info("init"),this.tabIndex=0}setSourceData(t,e=null){Object.assign(this.options,e??{}),this.model=new mm(t,this.options),t?.length>0&&void 0!==t[0].s&&this.selection.setItems(t.filter((t=>t.s)).map((t=>[t.k,0,1]))),this.dispatchEvent(new Im("load",{component:this}))}setValue(t){this.selection.populate(t)}async loadData(t){this.loading=!0,this.list&&(this.list.size=0),this.model=null,t=t??{};const[e,i]=await Promise.all([this.adapter.getTree(t),this.adapter.getOptions()]);this.setSourceData(e,i),i?.pageSize>0&&(this.updateNodeLoadState(this.model.root,this.model.root.children.length),this.model.indexVisibleNodes()),this.loading=!1,this.pendingHighlight&&(await this.updateComplete,await this.highlightNode(this.pendingHighlight),this.pendingHighlight=null)}async loadMore(t){const e=t.children.length,i=await this.adapter.getTree({parent:t,parentKey:t.key,offset:e}),o=new mm(i,this.options);t.insertChildren(o.root.children,e),this.updateNodeLoadState(t,o.root.children.length),this.model.indexNodesByTree(!0),this.list.size=this.size,this.list.requestUpdate()}async refresh(){await this.loadData({filter:this.currentFilter})}willUpdate(t){t.has("adapter")&&this.adapter&&(this.model=null,this.adapter.attach(this),this.disableAutoload||this.loadData()),this.model=this.model??new mm([],null),this.filtering=new zm(this.model),this.selection.model=this.model,t.has("options")&&(this.options=Cm(this.options),this.model.options=this.options,this.selection.options=this.options)}updated(t){t.has("model")&&this.list&&(this.list.size=this.size,this.noMatches=this.noMatches&&0==this.size,this.list.requestUpdate())}async firstUpdated(){var t;this.value&&this.selection.setItems(this.value??[]),this.list.itemRenderer=(t=this,(e,i,o)=>{const r=t.model.visibleNodes[i];if(r.placeholder)return((t,e)=>{const i=e.parent,o=i.model.options;return e.element=t,es`
|
|
2912
2915
|
<div
|
|
2913
2916
|
class="placeholder"
|
|
2914
2917
|
style="${$d({paddingLeft:(i.level+1)*o.levelIndent+5+"px"})}">
|
|
@@ -2976,7 +2979,7 @@
|
|
|
2976
2979
|
`:null,this.noMatches?es`
|
|
2977
2980
|
<og-alert text="No matches" type="warning"></og-alert>
|
|
2978
2981
|
`:null,this.hasGlobalLevels&&!this.noMatches?es`
|
|
2979
|
-
<div class="toolbar">
|
|
2982
|
+
<div class="toolbar toolbar-levels">
|
|
2980
2983
|
<og-tree-levels
|
|
2981
2984
|
id="globalLevels"
|
|
2982
2985
|
.count="${(this.options.maxLevel??this.model.maxLevel)+1}"
|
|
@@ -4822,29 +4825,22 @@
|
|
|
4822
4825
|
.placeholder="${this.model.props.placeholder}">
|
|
4823
4826
|
</og-calendar-dropdown>
|
|
4824
4827
|
`}get formattedValue(){return this.value?(this.value instanceof Date&&(this.value=[this.value.getFullYear(),(this.value.getMonth()+1).toString().padStart(2,"0"),this.value.getDate().toString().padStart(2,"0")].join("")),[[this.value,0,1]]):null}get date(){return Q(this.value)?(Yo(this.value,Eo()),new Date(this.value)):this.value instanceof Date?this.value:null}};YC.styles=[...FC.styles],YC=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}([Cs("og-form-calendardateinput")],YC);var ZC=function(t,e,i,o){var r,n=arguments.length,s=n<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--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};let XC=class extends FC{validate(){super.validate()}constructor(){super(),this._onKeydown=t=>{switch(t.key){case"ArrowUp":t.preventDefault(),this.up();break;case"ArrowDown":t.preventDefault(),this.down()}},this._onChange=t=>{this.updateValue(parseFloat(t.target.value))},this.up=()=>this.updateValue((this.value??-1)+1),this.down=()=>this.updateValue((this.value??1)-1),this.render=()=>es`
|
|
4825
|
-
<
|
|
4826
|
-
|
|
4827
|
-
.
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
</div>
|
|
4828
|
+
<og-numericinput
|
|
4829
|
+
?buttons="${!0}"
|
|
4830
|
+
.min="${this.min}"
|
|
4831
|
+
.max="${this.max}"
|
|
4832
|
+
.value="${this.value}"
|
|
4833
|
+
.placeholder="${this.model?.props.placeholder}"
|
|
4834
|
+
@change="${this._onChange}">
|
|
4835
|
+
</og-numericinput>
|
|
4834
4836
|
`,this.addEventListener("keydown",this._onKeydown)}updateValue(t){null!=t&&(t=isNaN(this.min)?t:Math.max(t,this.min),t=isNaN(this.max)?t:Math.min(t,this.max)),super.updateValue(t),this.requestUpdate()}};XC.styles=[...FC.styles,fn`
|
|
4835
|
-
|
|
4837
|
+
og-numericinput {
|
|
4836
4838
|
border: 1px solid var(--og-accent-color);
|
|
4837
4839
|
background-color: var(--og-form-background-color);
|
|
4838
4840
|
color: var(--og-text-color);
|
|
4839
|
-
font-size: var(--og-font-size);
|
|
4840
4841
|
height: ${OC.FORM_CONTROL_HEIGHT}px;
|
|
4841
4842
|
line-height: ${OC.FORM_CONTROL_HEIGHT}px;
|
|
4842
|
-
outline: none;
|
|
4843
4843
|
width: 100%;
|
|
4844
|
-
position: relative;
|
|
4845
|
-
text-align: right;
|
|
4846
|
-
padding-right: 20px;
|
|
4847
|
-
border-radius: var(--og-base-radius);
|
|
4848
4844
|
}
|
|
4849
4845
|
|
|
4850
4846
|
.buttons {
|
|
@@ -4857,33 +4853,6 @@
|
|
|
4857
4853
|
background-color: var(--og-accent-color);
|
|
4858
4854
|
}
|
|
4859
4855
|
|
|
4860
|
-
.buttons > div {
|
|
4861
|
-
color: var(--og-text-color-2);
|
|
4862
|
-
position: absolute;
|
|
4863
|
-
left: 0;
|
|
4864
|
-
right: 0;
|
|
4865
|
-
height: 50%;
|
|
4866
|
-
overflow: hidden;
|
|
4867
|
-
text-align: center;
|
|
4868
|
-
line-height: 10px;
|
|
4869
|
-
}
|
|
4870
|
-
|
|
4871
|
-
.buttons > div:hover {
|
|
4872
|
-
opacity: 0.5;
|
|
4873
|
-
}
|
|
4874
|
-
|
|
4875
|
-
.buttons > div og-icon {
|
|
4876
|
-
height: 100%;
|
|
4877
|
-
}
|
|
4878
|
-
|
|
4879
|
-
#btnUp {
|
|
4880
|
-
top: 0;
|
|
4881
|
-
}
|
|
4882
|
-
|
|
4883
|
-
#btnDown {
|
|
4884
|
-
bottom: 0;
|
|
4885
|
-
}
|
|
4886
|
-
|
|
4887
4856
|
:host {
|
|
4888
4857
|
position: relative;
|
|
4889
4858
|
box-sizing: border-box;
|
|
@@ -9071,4 +9040,4 @@ milkdown-block-handle {
|
|
|
9071
9040
|
`:null}
|
|
9072
9041
|
</div>
|
|
9073
9042
|
</og-panel>
|
|
9074
|
-
`: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?iv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?iv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=iv.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())}};Rz.styles=[Lz],Iz([Ss({type:Object})],Rz.prototype,"model",void 0),Iz([Es()],Rz.prototype,"editTitle",void 0),Iz([Ls("#title")],Rz.prototype,"titleInput",void 0),Iz([Ls("#type")],Rz.prototype,"typeList",void 0),Iz([Ls("#dataRange")],Rz.prototype,"dataRangeInput",void 0),Iz([Ls("#seriesRange")],Rz.prototype,"seriesRangeInput",void 0),Iz([Ls("#categoryRange")],Rz.prototype,"categoryRangeInput",void 0),Rz=Iz([Cs("og-plugin-chart-form")],Rz);const Tz=Aa().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=Aa().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(6946),$z=i(6471),Dz=i(4969),Nz=i(9502),Pz=i(7706),jz=i(1480),Hz=i(2006),Bz=i(7503),Fz=i(8746),Wz=i(2570),Vz=i(8815),Uz=i(6390),Gz=i(6593),qz=i(895),Yz=i(9083),Zz=i(6093),Xz=i(9685),Qz=i(9849),Kz=i(8268),Jz=i(4693),tL=i(3599),eL=i(782),iL=i(754),oL=i(5700),rL=i(4731),nL=i(7291),sL=i(597),aL=i(1474),lL=i(6224),cL=i(6239),hL=i(6828),dL=i(2212),uL=i(863),pL=i(3602),gL=i(1985),mL=i(886),fL=i(7201),vL=i(9937),bL=i(8450),yL=i(9630),wL=i(9766),xL=i(388),kL=i(1903),CL=i(398),ML=i(6105),_L=i(6147),SL=i(5722),EL=i(5576),zL=i(3131),LL=i(6308),IL=i(9645),RL=i(3199),TL=i(871),AL=i(5251),OL=i(6426),$L=i(2643),DL=i(8522),NL=i(6398),PL=i(2525),jL=i(8434),HL=i(6138),BL=i(5835),FL=i(5654),WL=i(6659),VL=i(2977),UL=i(4480),GL=i(9886),qL=i(6815),YL=i(1582),ZL=i(2968),XL=i(394),QL=i(7024),KL=i(7853),JL=i(8249),tI=i(2869),eI=i(486),iI=i(5735),oI=i(470),rI=i(4612),nI=i(4018),sI=i(1476),aI=i(3194),lI=i(3525),cI=i(7541),hI=i(4104),dI=i(6686),uI=i(7719),pI=i(3898),gI=i(8153),mI=i(3690),fI=i(1776),vI=i(4980),bI=i(5578),yI=i(9613),wI=i(1119),xI=i(8444),kI=i(2978),CI=i(9130),MI=i(2127),_I=i(2732),SI=i(4287),EI=i(4045),zI=i(7642),LI=i(1367),II=i(320),RI=i(821),TI=i(102),AI=i(7683),OI=i(3980),$I=i(576),DI=i(654),NI=i(73),PI=i(140),jI=i(8129),HI=i(5087),BI=i(6992),FI=i(8247),WI=i(8038),VI=i(5286),UI=i(9179),GI=i(1808),qI=i(9459),YI=i(2883),ZI=i(9111),XI=i(9318),QI=i(7294),KI=i(4479),JI=i(2409),tR=i(3091),eR=i(5789),iR=i(5890),oR=i(2907),rR=i(1175),nR=i(1686),sR=i(703),aR=i(6606),lR=i(4194),cR=i(6228),hR=i(62),dR=i(2072),uR=i(9744),pR=i(25),gR=i(2618),mR=i(1988),fR=i(8013),vR=i(1133),bR=i(362),yR=i(6845),wR=i(6800),xR=i(1103),kR=i(4933),CR=i(7284),MR=i(2620),_R=i(2366),SR=i(7457),ER=i(2449),zR=i(2),LR=i(5697),IR=i(7069),RR=i(4716),TR=i(4740),AR=i(4557),OR=i(1868),$R=i(8647),DR=i(5127),NR=i(4816),PR=i(4009),jR=i(5104),HR=i(2830),BR=i(3093),FR=i(5029),WR=i(3514),VR=i(2142),UR=i(4999),GR=i(7523),qR=i(346),YR=i(7917),ZR=i(3976),XR=i(9801),QR=i(2464),KR=i(5511),JR=i(5210),tT=i(5815),eT=i(3339),iT=i(7472),oT=i(8811),rT=i(8548),nT=i(6880),sT=i(1840),aT=i(5547),lT=i(4788),cT=i(9467),hT=i(9187),dT=i(9217),uT=i(7897),pT=i(2644),gT=i(6204),mT=i(1472),fT=i(1247),vT=i(7406),bT=i(925),yT=i(7455),wT=i(3771),xT=i(1549),kT=i(3541),CT=i(3140),MT=i(9800),_T=i(229),ST=i(2677),ET=i(1844),zT=i(3245),LT=i(9056),IT=i(7535),RT=i(2359),TT=i(15),AT=i(5569),OT=i(2014),$T=i(1599),DT=i(6521),NT=i(232),PT=i(9745),jT=i(9594),HT=i(6979),BT=i(4494),FT=i(312),WT=i(4983),VT=i(1258),UT=i(6313),GT=i(12),qT=i(8003),YT=i(7830),ZT=i(8875),XT=i(3911),QT=i(1817),KT=i(478),JT=i(2585),tA=i(6564),eA=i(2884),iA=i(3825),oA=i(7348),rA=i(9277),nA=i(4118),sA=i(9200),aA=i(51),lA=i(2872),cA=i(4702);const hA=[Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Hz.mw,Bz.mw,Fz.mw,Vz.mw,Wz.mw,Uz.mw,Gz.mw,qz.mw,Yz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tL.mw,eL.mw,iL.mw,oL.mw,rL.mw,nL.mw,sL.mw,aL.mw,lL.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,ML.mw,CL.mw,_L.mw,SL.mw,EL.mw,zL.mw,LL.mw,IL.mw,RL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,PL.mw,jL.mw,HL.mw,BL.mw,FL.mw,WL.mw,VL.mw,UL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,NL.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.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,xI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,EI.mw,zI.mw,LI.mw,II.mw,RI.mw,TI.mw,AI.mw,OI.mw,$I.mw,DI.mw,NI.mw,PI.mw,jI.mw,HI.mw,BI.mw,FI.mw,WI.mw,cL.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw],dA=[ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,aR.mw,sR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,xR.mw,kR.mw,CR.mw,MR.mw,_R.mw,SR.mw,ER.mw,LR.mw,IR.mw,RR.mw,DR.mw,NR.mw,PR.mw,jR.mw,HR.mw,BR.mw,FR.mw,WR.mw,vR.mw,bR.mw,wR.mw,yR.mw,VR.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,TR.mw,AR.mw,OR.mw,$R.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,nT.mw,sT.mw,aT.mw,lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,fT.mw,vT.mw,KR.mw,bT.mw,yT.mw,wT.mw,xT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.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,BT.mw,FT.mw,WT.mw,VT.mw,UT.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,zR.mw,nA.mw,sA.mw,aA.mw,lA.mw,cA.mw],uA={xlsx:B,charts:F},pA={name:"@omegagrid/bundle",version:"0.7.
|
|
9043
|
+
`: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?iv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?iv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=iv.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())}};Rz.styles=[Lz],Iz([Ss({type:Object})],Rz.prototype,"model",void 0),Iz([Es()],Rz.prototype,"editTitle",void 0),Iz([Ls("#title")],Rz.prototype,"titleInput",void 0),Iz([Ls("#type")],Rz.prototype,"typeList",void 0),Iz([Ls("#dataRange")],Rz.prototype,"dataRangeInput",void 0),Iz([Ls("#seriesRange")],Rz.prototype,"seriesRangeInput",void 0),Iz([Ls("#categoryRange")],Rz.prototype,"categoryRangeInput",void 0),Rz=Iz([Cs("og-plugin-chart-form")],Rz);const Tz=Aa().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=Aa().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(6946),$z=i(6471),Dz=i(4969),Nz=i(9502),Pz=i(7706),jz=i(1480),Hz=i(2006),Bz=i(7503),Fz=i(8746),Wz=i(2570),Vz=i(8815),Uz=i(6390),Gz=i(6593),qz=i(895),Yz=i(9083),Zz=i(6093),Xz=i(9685),Qz=i(9849),Kz=i(8268),Jz=i(4693),tL=i(3599),eL=i(782),iL=i(754),oL=i(5700),rL=i(4731),nL=i(7291),sL=i(597),aL=i(1474),lL=i(6224),cL=i(6239),hL=i(6828),dL=i(2212),uL=i(863),pL=i(3602),gL=i(1985),mL=i(886),fL=i(7201),vL=i(9937),bL=i(8450),yL=i(9630),wL=i(9766),xL=i(388),kL=i(1903),CL=i(398),ML=i(6105),_L=i(6147),SL=i(5722),EL=i(5576),zL=i(3131),LL=i(6308),IL=i(9645),RL=i(3199),TL=i(871),AL=i(5251),OL=i(6426),$L=i(2643),DL=i(8522),NL=i(6398),PL=i(2525),jL=i(8434),HL=i(6138),BL=i(5835),FL=i(5654),WL=i(6659),VL=i(2977),UL=i(4480),GL=i(9886),qL=i(6815),YL=i(1582),ZL=i(2968),XL=i(394),QL=i(7024),KL=i(7853),JL=i(8249),tI=i(2869),eI=i(486),iI=i(5735),oI=i(470),rI=i(4612),nI=i(4018),sI=i(1476),aI=i(3194),lI=i(3525),cI=i(7541),hI=i(4104),dI=i(6686),uI=i(7719),pI=i(3898),gI=i(8153),mI=i(3690),fI=i(1776),vI=i(4980),bI=i(5578),yI=i(9613),wI=i(1119),xI=i(8444),kI=i(2978),CI=i(9130),MI=i(2127),_I=i(2732),SI=i(4287),EI=i(4045),zI=i(7642),LI=i(1367),II=i(320),RI=i(821),TI=i(102),AI=i(7683),OI=i(3980),$I=i(576),DI=i(654),NI=i(73),PI=i(140),jI=i(8129),HI=i(5087),BI=i(6992),FI=i(8247),WI=i(8038),VI=i(5286),UI=i(9179),GI=i(1808),qI=i(9459),YI=i(2883),ZI=i(9111),XI=i(9318),QI=i(7294),KI=i(4479),JI=i(2409),tR=i(3091),eR=i(5789),iR=i(5890),oR=i(2907),rR=i(1175),nR=i(1686),sR=i(703),aR=i(6606),lR=i(4194),cR=i(6228),hR=i(62),dR=i(2072),uR=i(9744),pR=i(25),gR=i(2618),mR=i(1988),fR=i(8013),vR=i(1133),bR=i(362),yR=i(6845),wR=i(6800),xR=i(1103),kR=i(4933),CR=i(7284),MR=i(2620),_R=i(2366),SR=i(7457),ER=i(2449),zR=i(2),LR=i(5697),IR=i(7069),RR=i(4716),TR=i(4740),AR=i(4557),OR=i(1868),$R=i(8647),DR=i(5127),NR=i(4816),PR=i(4009),jR=i(5104),HR=i(2830),BR=i(3093),FR=i(5029),WR=i(3514),VR=i(2142),UR=i(4999),GR=i(7523),qR=i(346),YR=i(7917),ZR=i(3976),XR=i(9801),QR=i(2464),KR=i(5511),JR=i(5210),tT=i(5815),eT=i(3339),iT=i(7472),oT=i(8811),rT=i(8548),nT=i(6880),sT=i(1840),aT=i(5547),lT=i(4788),cT=i(9467),hT=i(9187),dT=i(9217),uT=i(7897),pT=i(2644),gT=i(6204),mT=i(1472),fT=i(1247),vT=i(7406),bT=i(925),yT=i(7455),wT=i(3771),xT=i(1549),kT=i(3541),CT=i(3140),MT=i(9800),_T=i(229),ST=i(2677),ET=i(1844),zT=i(3245),LT=i(9056),IT=i(7535),RT=i(2359),TT=i(15),AT=i(5569),OT=i(2014),$T=i(1599),DT=i(6521),NT=i(232),PT=i(9745),jT=i(9594),HT=i(6979),BT=i(4494),FT=i(312),WT=i(4983),VT=i(1258),UT=i(6313),GT=i(12),qT=i(8003),YT=i(7830),ZT=i(8875),XT=i(3911),QT=i(1817),KT=i(478),JT=i(2585),tA=i(6564),eA=i(2884),iA=i(3825),oA=i(7348),rA=i(9277),nA=i(4118),sA=i(9200),aA=i(51),lA=i(2872),cA=i(4702);const hA=[Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Hz.mw,Bz.mw,Fz.mw,Vz.mw,Wz.mw,Uz.mw,Gz.mw,qz.mw,Yz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tL.mw,eL.mw,iL.mw,oL.mw,rL.mw,nL.mw,sL.mw,aL.mw,lL.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,ML.mw,CL.mw,_L.mw,SL.mw,EL.mw,zL.mw,LL.mw,IL.mw,RL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,PL.mw,jL.mw,HL.mw,BL.mw,FL.mw,WL.mw,VL.mw,UL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,NL.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.mw,fI.mw,vI.mw,bI.mw,yI.mw,wI.mw,xI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,EI.mw,zI.mw,LI.mw,II.mw,RI.mw,TI.mw,AI.mw,OI.mw,$I.mw,DI.mw,NI.mw,PI.mw,jI.mw,HI.mw,BI.mw,FI.mw,WI.mw,cL.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw],dA=[ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,aR.mw,sR.mw,lR.mw,cR.mw,hR.mw,dR.mw,uR.mw,pR.mw,gR.mw,mR.mw,fR.mw,xR.mw,kR.mw,CR.mw,MR.mw,_R.mw,SR.mw,ER.mw,LR.mw,IR.mw,RR.mw,DR.mw,NR.mw,PR.mw,jR.mw,HR.mw,BR.mw,FR.mw,WR.mw,vR.mw,bR.mw,wR.mw,yR.mw,VR.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,TR.mw,AR.mw,OR.mw,$R.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,nT.mw,sT.mw,aT.mw,lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,fT.mw,vT.mw,KR.mw,bT.mw,yT.mw,wT.mw,xT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.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,BT.mw,FT.mw,WT.mw,VT.mw,UT.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,zR.mw,nA.mw,sA.mw,aA.mw,lA.mw,cA.mw],uA={xlsx:B,charts:F},pA={name:"@omegagrid/bundle",version:"0.7.8"};Aa().activate("light"),kd.styleDefault="fal",Cd.add(hA),Cd.add(dA)})(),window.Omegagrid=o})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omegagrid/bundle",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
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.7.
|
|
23
|
-
"@omegagrid/calendar": "^0.7.
|
|
24
|
-
"@omegagrid/code": "^0.7.
|
|
25
|
-
"@omegagrid/commands": "^0.7.
|
|
26
|
-
"@omegagrid/core": "^0.7.
|
|
27
|
-
"@omegagrid/dialog": "^0.7.
|
|
28
|
-
"@omegagrid/editor": "^0.7.
|
|
29
|
-
"@omegagrid/form": "^0.7.
|
|
30
|
-
"@omegagrid/grid": "^0.7.
|
|
31
|
-
"@omegagrid/localize": "^0.7.
|
|
32
|
-
"@omegagrid/markdown": "^0.7.
|
|
33
|
-
"@omegagrid/plugin-charts": "^0.7.
|
|
34
|
-
"@omegagrid/plugin-xlsx": "^0.7.
|
|
35
|
-
"@omegagrid/statusbar": "^0.7.
|
|
36
|
-
"@omegagrid/tabs": "^0.7.
|
|
37
|
-
"@omegagrid/toolbar": "^0.7.
|
|
38
|
-
"@omegagrid/tree": "^0.7.
|
|
22
|
+
"@omegagrid/bucket": "^0.7.8",
|
|
23
|
+
"@omegagrid/calendar": "^0.7.8",
|
|
24
|
+
"@omegagrid/code": "^0.7.8",
|
|
25
|
+
"@omegagrid/commands": "^0.7.8",
|
|
26
|
+
"@omegagrid/core": "^0.7.8",
|
|
27
|
+
"@omegagrid/dialog": "^0.7.8",
|
|
28
|
+
"@omegagrid/editor": "^0.7.8",
|
|
29
|
+
"@omegagrid/form": "^0.7.8",
|
|
30
|
+
"@omegagrid/grid": "^0.7.8",
|
|
31
|
+
"@omegagrid/localize": "^0.7.8",
|
|
32
|
+
"@omegagrid/markdown": "^0.7.8",
|
|
33
|
+
"@omegagrid/plugin-charts": "^0.7.8",
|
|
34
|
+
"@omegagrid/plugin-xlsx": "^0.7.8",
|
|
35
|
+
"@omegagrid/statusbar": "^0.7.8",
|
|
36
|
+
"@omegagrid/tabs": "^0.7.8",
|
|
37
|
+
"@omegagrid/toolbar": "^0.7.8",
|
|
38
|
+
"@omegagrid/tree": "^0.7.8",
|
|
39
39
|
"lit": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|