@omegagrid/bundle 0.10.29 → 0.10.31
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 +21 -16
- package/package.json +18 -18
package/omegagrid.js
CHANGED
|
@@ -333,6 +333,7 @@
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
:host([disabled]), :host([disabled]:hover), :host([disabled]:active) {
|
|
336
|
+
color: var(--og-text-color-2);
|
|
336
337
|
background-color: var(--og-button-background-color);
|
|
337
338
|
border-color: var(--og-border-color);
|
|
338
339
|
cursor: not-allowed;
|
|
@@ -2770,7 +2771,7 @@
|
|
|
2770
2771
|
${"bottom"==this.sectionPosition?this.renderSwitches():""}
|
|
2771
2772
|
|
|
2772
2773
|
${"bottom"==this.sectionPosition?this.renderTabs():""}
|
|
2773
|
-
`,this.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this.tabIndex=0}focus(){this.input?.focus()}clearFilter(t=!0){this.input.value="",this.focus(),t&&this.updateCommands()}async willUpdate(t){if(t.has("adapter")&&this.adapter){this.adapter.attach(this);const t=await this.adapter.getSections(),e=await this.adapter.getOptions(t?.length?t[0].id:null);this.sections=t,e&&(this.options=sg(e))}else t.has("commands")&&this.commands&&(this.model.clear(),this.commands.forEach((t=>this.model.register(t)))),t.has("options")&&(this.options=sg(this.options))}async updated(t){["commands","adapter","model","activeSectionIndex"].some((e=>t.has(e)))&&await this.updateCommands(!0)}async updateCommands(t=!1){if(this.adapter){this.model.clear();const e=this.activeSection?.switches?.filter((t=>t.checked)).map((t=>t.key))||[];if(t){const t=await this.adapter.getOptions(this.activeSection?.id);this.options=sg(t)}this._updateToken++;const i=this._updateToken,[o,r]=await Promise.all([this.adapter.getGroups({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e}),this.adapter.getCommands({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e})]);if(i!=this._updateToken)return;o?.forEach((t=>this.model.registerGroup(t))),r?.forEach((t=>this.model.register(t))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups);this.placeholder=this.activeSection?.placeholder||"",this.list.reset(),this.list.size=this.visibleItems.length,this.list.selectedIndex=this.visibleItems.findIndex((t=>t instanceof eg))??0,this.list.renderItems(!0),
|
|
2774
|
+
`,this.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this.tabIndex=0}focus(){this.input?.focus()}clearFilter(t=!0){this.input.value="",this.focus(),t&&this.updateCommands()}async willUpdate(t){if(t.has("adapter")&&this.adapter){this.adapter.attach(this);const t=await this.adapter.getSections(),e=await this.adapter.getOptions(t?.length?t[0].id:null);this.sections=t,e&&(this.options=sg(e))}else t.has("commands")&&this.commands&&(this.model.clear(),this.commands.forEach((t=>this.model.register(t)))),t.has("options")&&(this.options=sg(this.options))}async updated(t){["commands","adapter","model","activeSectionIndex"].some((e=>t.has(e)))&&await this.updateCommands(!0)}async updateCommands(t=!1){if(this.adapter){this.model.clear();const e=this.activeSection?.switches?.filter((t=>t.checked)).map((t=>t.key))||[];if(t){const t=await this.adapter.getOptions(this.activeSection?.id);this.options=sg(t)}this._updateToken++;const i=this._updateToken,[o,r]=await Promise.all([this.adapter.getGroups({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e}),this.adapter.getCommands({sectionId:this.activeSection?.id,filter:this.filterValue,switches:e})]);if(i!=this._updateToken)return;o?.forEach((t=>this.model.registerGroup(t))),r?.forEach((t=>this.model.register(t))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups);this.placeholder=this.activeSection?.placeholder||"",this.list.reset(),this.list.size=this.visibleItems.length,this.list.selectedIndex=this.visibleItems.findIndex((t=>t instanceof eg))??0,this.list.renderItems(!0),this.noResults=0==this.visibleItems.length}async toggleGroup(t){const e=this.model.groups.get(t);if(this.list.reset(),e.open)e.open=!1,this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0),this.list.size=this.visibleItems.length;else if(e.open=!0,this.adapter){const i=(await Promise.all([this.adapter.getCommands({sectionId:this.activeSection?.id,groupId:t,filter:this.filterValue})]))[0];i.length>0&&(e.commands.clear(),i.forEach((i=>{i.group&&i.group!=t||e.addCommand(i)}))),this.visibleItems=this.model.filter(null,this.showGroups,!0)}else this.visibleItems=this.model.filter(this.filterValue,this.showGroups,!0);this.list.size=this.visibleItems.length}getSectionTitle(t){return(t.title??t.id)+(t.triggerCommand?` (${t.triggerCommand})`:"")}layout(){this.listWrapper&&(this.listWrapper.style.transition="flex-basis 0.2s ease-in-out",this.listWrapper.style.flexBasis=Ot(this.list.offsetHeight),Nt(this.listWrapper,{h:this.list.offsetHeight}))}};pg.styles=[ag],cg([Ts({type:Object})],pg.prototype,"options",void 0),cg([Ts({type:String})],pg.prototype,"mode",void 0),cg([Ts({type:String})],pg.prototype,"value",void 0),cg([Ts({type:String,reflect:!0})],pg.prototype,"sectionPosition",void 0),cg([Ts({type:String})],pg.prototype,"text",void 0),cg([Ts({type:Array})],pg.prototype,"commands",void 0),cg([Ts({type:Object})],pg.prototype,"adapter",void 0),cg([Ts({type:Object})],pg.prototype,"target",void 0),cg([Ts({type:String})],pg.prototype,"placeholder",void 0),cg([Ts({type:Boolean})],pg.prototype,"showGroups",void 0),cg([Ts({type:Object})],pg.prototype,"model",void 0),cg([$s()],pg.prototype,"sections",void 0),cg([$s()],pg.prototype,"activeSectionIndex",void 0),cg([$s()],pg.prototype,"noResults",void 0),cg([Ds(".list")],pg.prototype,"listWrapper",void 0),cg([Ds("og-list")],pg.prototype,"list",void 0),cg([Ds("input")],pg.prototype,"input",void 0),cg([Ds("og-dropdown-list")],pg.prototype,"dropdown",void 0),pg=cg([Ls("og-commands")],pg);class gg extends au{filterCommands(t,e){if(!t)return[];const i=null==e?.filter?null:new RegExp(ut(e.filter),"i");return null==i?t:t.filter((t=>i.test(t.id||t.name||"")))}getGroups(t){return[]}getCommands(t){return[]}getSections(t){return[{id:"default"}]}getOptions(t){return null}exec(t,e){}}class mg extends gg{get commands(){return this._commands}set commands(t){this._commands=t,this.map.clear();const e=t=>{t.forEach((t=>{this.map.set(t.id??t.name,t),t.next?.commands&&e(t.next.commands)}))};e(this._commands)}constructor(t){super(),this.map=new Map,this.commandChain=[],this._commands=[],this.commands=t}getCommands(t){const e=this.commandChain.length?this.commandChain[this.commandChain.length-1]:null,i=e?this.map.get(e.id)?.next?.commands:null;return this.filterCommands(i||this.commands,t)}exec(t,e){const i=this.map.get(t.id)?.next;i?.commands?.length?(this.commandChain.push(t),null==this._originalText&&(this._originalText=this.component.text),null==this._originalMode&&(this._originalMode=this.component.mode),null!=i.text&&(this.component.text=i.text),null!=i.mode&&(this.component.mode=i.mode)):this.reset(),this.component.updateCommands()}reset(){this.commandChain=[],this.component&&(this.component.text=this._originalText,this.component.mode=this._originalMode),this._originalText=null,this._originalMode=null}getOptions(){return null}}const fg={yes_no:t=>[{id:"Y",name:$o("Yes"),exec:t},{id:"N",name:$o("No"),exec:t}],apply:t=>[{id:"apply",name:$o("Apply"),exec:t},{id:"cancel",name:$o("Cancel"),exec:t}],ok:t=>[{id:"ok",name:"OK",exec:t},{id:"cancel",name:$o("Cancel"),exec:t}]},vg=(t,e)=>fg[t](e);class bg{get commands(){return this._commands}constructor(t){this.target=t,this._commands=[],this._onExec=t=>{Lr().info(`trigger command: ${t.command.id}`),this._resolveCallback&&this._resolveCallback({command:t.command,id:t.command?.id,value:t.value}),this._resolveCallback=null,this._rejectCallback=null,null==this.adapter.map.get(t.command.id)?.next&&this.close()}}clear(){this._commands=[],this._adapter=null}add(t){this._commands.push(...Array.isArray(t)?t:[t]),this._adapter=null}get adapter(){return this._adapter||(this._adapter=new mg(this._commands)),this._adapter}cleanCallbacks(){this._rejectCallback&&this._rejectCallback(),this._resolveCallback=null,this._rejectCallback=null}get menu(){return this._menu??(this._menu=yt("og-commands",{listeners:[["command.exec",this._onExec]]}))}get menuContainer(){return this._menuContainer||(this._menuContainer=yt("og-floating-window",{listeners:[["hide",()=>{this.target?.focus(),this.adapter?.reset()}]]}),this.menu.slot="content",this._menuContainer.appendChild(this.menu)),this._menuContainer}async open(t){return Lr().info("open menu"),this.target.shadowRoot.appendChild(this.menuContainer),this.menuContainer.show(),t??(t={content:null}),this.menu.text=t.text,this.menu.value=t.value,this.menu.mode=t.mode||"search",Array.isArray(t.content)?(this.menu.commands=t.content,this.menu.adapter=null):"string"==typeof t.content?(this.menu.commands=vg(t.content),this.menu.adapter=null):(this.menu.commands=null,this.menu.adapter=this.adapter),await this.menu.updateComplete,this.menu.focus(),this.updatePosition(),new Promise(((t,e)=>{this._resolveCallback=t,this._rejectCallback=e}))}close(){this.menuContainer.hide(!1),this.menuContainer.remove(),this.cleanCallbacks(),this.target?.focus()}updatePosition(){Nt(this.menuContainer,{w:.9*this.target.clientWidth}),Xt(this.menuContainer,this.target,{horizontal:!0,vertical:!1}),Ht(this.menuContainer,{t:50})}}const yg={TOP_HEIGHT:41,SIDEMENU_WIDTH:41,SIDEBAR_WIDTH:250,SIZER_TRESHOLD:5,SIDEBAR_HEADER_HEIGHT:30,ALERT_DEFAULT_HEIGHT:30,ALERT_MAX_HEIGHT:300,...G},wg=kn`
|
|
2774
2775
|
:host {
|
|
2775
2776
|
display: flex;
|
|
2776
2777
|
flex-direction: column;
|
|
@@ -2810,6 +2811,11 @@
|
|
|
2810
2811
|
border-right: 1px solid var(--og-bucket-border-color);
|
|
2811
2812
|
}
|
|
2812
2813
|
|
|
2814
|
+
.main+og-bucket-sidemenu {
|
|
2815
|
+
border-left: 1px solid var(--og-bucket-border-color);
|
|
2816
|
+
border-right: none;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2813
2819
|
og-bucket-sidebar {
|
|
2814
2820
|
height: 100%;
|
|
2815
2821
|
}
|
|
@@ -2855,23 +2861,22 @@
|
|
|
2855
2861
|
z-index: 1000;
|
|
2856
2862
|
}
|
|
2857
2863
|
*/
|
|
2858
|
-
|
|
2859
|
-
`;class xg extends uu{constructor(){super(...arguments),this.items=[]}async addAlert(t){const e=yt("og-bucket-alert"),i={options:t,component:e};e.options=t,e.addEventListener("close",(()=>this.removeAlert(i))),this.component.shadowRoot.appendChild(e),this.items.push(i),this.items.length>this.component.options.alerts.maxItems&&this.removeAlert(this.items[0]);const o=t.timeout??this.component.options.alerts.timeout;o>0&&(i.timer=window.setTimeout((()=>{i.timer=void 0,this.removeAlert(i)}),o)),await this.component.updateComplete,this.updatePositions()}updatePositions(){[...this.items].reverse().forEach(((t,e)=>{Ht(t.component,{r:10,b:10+e*(t.component.offsetHeight+10)})}))}removeAlert(t){const e=this.items.indexOf(t);-1!=e&&(this.items[e].component.remove(),this.items.splice(e,1),null!=t.timer&&window.clearTimeout(t.timer),t.timer=void 0,this.updatePositions())}}const kg={alerts:{maxItems:5,timeout:5e3},pathPosition:"top",componentMode:"tabbed",modalSidebarWidth:yg.SIDEBAR_WIDTH};function Cg(t,e=null){return{...nn(t,e),...kg,...e,...t}}class Mg extends uu{constructor(){super(...arguments),this._componentPromiseResolutions=new Map,this._resolvingComponentIds=new Set,this.paths=new Map,this.components=new Map,this.anonymousComponents=new Map,this.unsavedComponents=new Set,this.states=new Map}get hasUnsavedComponents(){return this.unsavedComponents.size>0}get bucket(){return this.component}setState(t,e){const i=this.components.get(t);i&&i.setState?i.setState(e):this.states.set(t,e)}has(t){return this.components.has(t)||this.anonymousComponents.has(t)||this._resolvingComponentIds.has(t)}get(t){let e=this.components.get(t);return e??(e=this.anonymousComponents.get(t)),e?(this.resolveComponentPromises(t,e),e):new Promise(((e,i)=>{const o=this.components.get(t);if(this.enqueueComponentResolution(t,e,i),!this._resolvingComponentIds.has(t)){if(o)return this.resolveComponentPromises(t,o);this._resolvingComponentIds.add(t),Promise.all([this.component.createComponent(t)]).then((e=>{const i=e[0];if(i){this.register(t,i);const e=this.bucket.state;e?.components&&e?.components[t]&&i.setState&&i.setState(e.components[t])}this.resolveComponentPromises(t,i)}))}}))}resolveComponentPromises(t,e){this._componentPromiseResolutions.has(t)&&(this._componentPromiseResolutions.get(t).forEach((t=>t.resolve(e))),this._componentPromiseResolutions.delete(t)),this._resolvingComponentIds.delete(t)}enqueueComponentResolution(t,e,i){this._componentPromiseResolutions.has(t)||this._componentPromiseResolutions.set(t,[]),this._componentPromiseResolutions.get(t).push({resolve:e,reject:i})}update(t,e){const i=e.id??t;if(this.bucket.editorContainer.updateTab(t,{id:i,title:e.title??void 0}),this.components.has(t)&&i!=t){const e=this.components.get(t);this.unregister(t),this.register(i,e)}return this.components.get(i)}register(t,e){if(null==t)t=`temp_${Rg.getUniqueId()}`,this.anonymousComponents.set(t,e);else if(this.components.set(t,e),this.has(t))return t;return this.bucket.dispatchEvent(new Ig("register",{componentId:t})),t}unregister(t){this.components.delete(t),this.anonymousComponents.delete(t),this.paths.delete(t),this.bucket.dispatchEvent(new Ig("unregister",{componentId:t}))}async getPath(t){if(this.paths.has(t))return this.paths.get(t);if(!this.bucket.options.pathResolver)return[];const e=await this.bucket.options.pathResolver(t);return this.paths.set(t,e),e}}class _g extends uu{constructor(){super(...arguments),this.modalSidebars=[],this.modalSidebarComponents=new Map,this.createModalSidebarComponent=t=>{const e=yt("og-bucket-modal-sidebar");return e.className=t.position??"left",e.componentId=t.id,e.caption=t.caption,e.closable=null==t.closable||t.closable,e.bucket=this.bucket,e}}get bucket(){return this.component}get components(){return this.bucket.components}updateModalSidebarPositions(){this.modalSidebars.length>0?this.bucket.showOverlay():this.bucket.hideOverlay();const t=this.bucket.compact?this.bucket.sidemenu.offsetWidth:this.bucket.container.containers[0].offsetWidth+this.bucket.sidemenu.offsetWidth;let e=0,i=0;this.modalSidebars.forEach((async o=>{const r=this.modalSidebarComponents.get(o.id),n="right"==o.position,s=n?i:e;r&&(qt(r,500+s),Nt(r,{w:o.width||this.bucket.options.modalSidebarWidth}),n?(i++,Ht(r,{t:0,r:0+20*s,b:0})):(Ht(r,{t:0,l:t+20*s,b:0}),e++))}))}async openModalSidebar(t){return this.bucket.showOverlay(),this.modalSidebars.push(t),t.component&&(t.id=t.id||`temp-${Rg.getUniqueId()}`,this.components.register(t.id,t.component)),new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i);const o=this.createModalSidebarComponent(t);this.modalSidebarComponents.set(t.id,o),this.bucket.body.appendChild(o),this.updateModalSidebarPositions()}))}async closeModalSidebar(t=!1){const e=t?0:this.modalSidebars.length-1;for(;this.modalSidebars.length>e;){const t=this.modalSidebars.pop();t&&(this.modalSidebarComponents.get(t.id).remove(),this.modalSidebarComponents.delete(t.id),this.components.unregister(t.id))}this.updateModalSidebarPositions()}}class Sg extends uu{constructor(){super(...arguments),this.items=new Map}get bucket(){return this.component}register(t,e){this.items.set(t,e)}unregister(t){this.items.delete(t),this.bucket.components.unregister(t),this.bucket.dispatchStateEvent()}async open(t){const e=yt("og-dialog",{componentId:t.id,maximizable:t.maximizable??!0,listeners:[["dialog.move",()=>this.bucket.dispatchStateEvent()],["dialog.resize",()=>this.bucket.dispatchStateEvent()],["dialog.close",t=>this.unregister(t.dialog.componentId)]]});e.setOptions(t),e.open(this.bucket),e.showLoader();let i=t.component;return delete t.component,!i&&t.id&&(i=await this.bucket.createComponent(t.id),this.register(t.id,e)),e.hideLoader(),e.component=i,t.id&&(this.register(t.id,e),this.bucket.dispatchStateEvent()),e}}var zg,Eg=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};const Lg={top:{rightItems:[]},sidemenu:{items:[],activeIndex:null,hidden:!1},sidebar:{width:yg.SIDEBAR_WIDTH,collapsed:!1},editorLayout:{items:[]}};class Ig extends Event{constructor(t,e){super(`bucket.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e)}}let Rg=zg=class extends hu{get activeComponentId(){return this._activeComponentId}get container(){return this._container
|
|
2864
|
+
|
|
2865
|
+
`;class xg extends uu{constructor(){super(...arguments),this.items=[]}async addAlert(t){const e=yt("og-bucket-alert"),i={options:t,component:e};e.options=t,e.addEventListener("close",(()=>this.removeAlert(i))),this.component.shadowRoot.appendChild(e),this.items.push(i),this.items.length>this.component.options.alerts.maxItems&&this.removeAlert(this.items[0]);const o=t.timeout??this.component.options.alerts.timeout;o>0&&(i.timer=window.setTimeout((()=>{i.timer=void 0,this.removeAlert(i)}),o)),await this.component.updateComplete,this.updatePositions()}updatePositions(){[...this.items].reverse().forEach(((t,e)=>{Ht(t.component,{r:10,b:10+e*(t.component.offsetHeight+10)})}))}removeAlert(t){const e=this.items.indexOf(t);-1!=e&&(this.items[e].component.remove(),this.items.splice(e,1),null!=t.timer&&window.clearTimeout(t.timer),t.timer=void 0,this.updatePositions())}}const kg={alerts:{maxItems:5,timeout:5e3},pathPosition:"top",componentMode:"tabbed",sidebarPosition:"left",modalSidebarWidth:yg.SIDEBAR_WIDTH};function Cg(t,e=null){return{...nn(t,e),...kg,...e,...t}}class Mg extends uu{constructor(){super(...arguments),this._componentPromiseResolutions=new Map,this._resolvingComponentIds=new Set,this.paths=new Map,this.components=new Map,this.anonymousComponents=new Map,this.unsavedComponents=new Set,this.states=new Map}get hasUnsavedComponents(){return this.unsavedComponents.size>0}get bucket(){return this.component}setState(t,e){const i=this.components.get(t);i&&i.setState?i.setState(e):this.states.set(t,e)}has(t){return this.components.has(t)||this.anonymousComponents.has(t)||this._resolvingComponentIds.has(t)}get(t){let e=this.components.get(t);return e??(e=this.anonymousComponents.get(t)),e?(this.resolveComponentPromises(t,e),e):new Promise(((e,i)=>{const o=this.components.get(t);if(this.enqueueComponentResolution(t,e,i),!this._resolvingComponentIds.has(t)){if(o)return this.resolveComponentPromises(t,o);this._resolvingComponentIds.add(t),Promise.all([this.component.createComponent(t)]).then((e=>{const i=e[0];if(i){this.register(t,i);const e=this.bucket.state;e?.components&&e?.components[t]&&i.setState&&i.setState(e.components[t])}this.resolveComponentPromises(t,i)}))}}))}resolveComponentPromises(t,e){this._componentPromiseResolutions.has(t)&&(this._componentPromiseResolutions.get(t).forEach((t=>t.resolve(e))),this._componentPromiseResolutions.delete(t)),this._resolvingComponentIds.delete(t)}enqueueComponentResolution(t,e,i){this._componentPromiseResolutions.has(t)||this._componentPromiseResolutions.set(t,[]),this._componentPromiseResolutions.get(t).push({resolve:e,reject:i})}update(t,e){const i=e.id??t;if(this.bucket.editorContainer.updateTab(t,{id:i,title:e.title??void 0}),this.components.has(t)&&i!=t){const e=this.components.get(t);this.unregister(t),this.register(i,e)}return this.components.get(i)}register(t,e){if(null==t)t=`temp_${Rg.getUniqueId()}`,this.anonymousComponents.set(t,e);else if(this.components.set(t,e),this.has(t))return t;return this.bucket.dispatchEvent(new Ig("register",{componentId:t})),t}unregister(t){this.components.delete(t),this.anonymousComponents.delete(t),this.paths.delete(t),this.bucket.dispatchEvent(new Ig("unregister",{componentId:t}))}async getPath(t){if(this.paths.has(t))return this.paths.get(t);if(!this.bucket.options.pathResolver)return[];const e=await this.bucket.options.pathResolver(t);return this.paths.set(t,e),e}}class _g extends uu{constructor(){super(...arguments),this.modalSidebars=[],this.modalSidebarComponents=new Map,this.createModalSidebarComponent=t=>{const e=yt("og-bucket-modal-sidebar");return e.className=t.position??"left",e.componentId=t.id,e.caption=t.caption,e.closable=null==t.closable||t.closable,e.bucket=this.bucket,e}}get bucket(){return this.component}get components(){return this.bucket.components}updateModalSidebarPositions(){this.modalSidebars.length>0?this.bucket.showOverlay():this.bucket.hideOverlay();const t=this.bucket.compact?this.bucket.sidemenu.offsetWidth:this.bucket.container.containers[0].offsetWidth+this.bucket.sidemenu.offsetWidth;let e=0,i=0;this.modalSidebars.forEach((async o=>{const r=this.modalSidebarComponents.get(o.id),n="right"==o.position,s=n?i:e;r&&(qt(r,500+s),Nt(r,{w:o.width||this.bucket.options.modalSidebarWidth}),n?(i++,Ht(r,{t:0,r:0+20*s,b:0})):(Ht(r,{t:0,l:t+20*s,b:0}),e++))}))}async openModalSidebar(t){return this.bucket.showOverlay(),this.modalSidebars.push(t),t.component&&(t.id=t.id||`temp-${Rg.getUniqueId()}`,this.components.register(t.id,t.component)),new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i);const o=this.createModalSidebarComponent(t);this.modalSidebarComponents.set(t.id,o),this.bucket.body.appendChild(o),this.updateModalSidebarPositions()}))}async closeModalSidebar(t=!1){const e=t?0:this.modalSidebars.length-1;for(;this.modalSidebars.length>e;){const t=this.modalSidebars.pop();t&&(this.modalSidebarComponents.get(t.id).remove(),this.modalSidebarComponents.delete(t.id),this.components.unregister(t.id))}this.updateModalSidebarPositions()}}class Sg extends uu{constructor(){super(...arguments),this.items=new Map}get bucket(){return this.component}register(t,e){this.items.set(t,e)}unregister(t){this.items.delete(t),this.bucket.components.unregister(t),this.bucket.dispatchStateEvent()}async open(t){const e=yt("og-dialog",{componentId:t.id,maximizable:t.maximizable??!0,listeners:[["dialog.move",()=>this.bucket.dispatchStateEvent()],["dialog.resize",()=>this.bucket.dispatchStateEvent()],["dialog.close",t=>this.unregister(t.dialog.componentId)]]});e.setOptions(t),e.open(this.bucket),e.showLoader();let i=t.component;return delete t.component,!i&&t.id&&(i=await this.bucket.createComponent(t.id),this.register(t.id,e)),e.hideLoader(),e.component=i,t.id&&(this.register(t.id,e),this.bucket.dispatchStateEvent()),e}}var zg,Eg=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};const Lg={top:{rightItems:[]},sidemenu:{items:[],activeIndex:null,hidden:!1},sidebar:{width:yg.SIDEBAR_WIDTH,collapsed:!1},editorLayout:{items:[]}};class Ig extends Event{constructor(t,e){super(`bucket.${t}`,{bubbles:!0,composed:!0}),Object.assign(this,e)}}let Rg=zg=class extends hu{get activeComponentId(){return this._activeComponentId}get sidebarIndex(){return"left"==this.options.sidebarPosition?0:1}get mainIndex(){return"left"==this.options.sidebarPosition?1:0}get container(){if(this._container)return this._container;this._container=yt("og-splitcontainer"),this._container.orientation="horizontal";const t={size:this.sourceData.sidebar?.width||yg.SIDEBAR_WIDTH,collapsed:this.sourceData.sidebar?.collapsed||!1};return this._container.items=[0==this.sidebarIndex?t:{size:null},1==this.sidebarIndex?t:{size:null}],this._container.createComponent=this._createSplitContainerComponent,this._container.addEventListener("splitContainer.resize",this._onSplitContainerResize),this._container.addEventListener("tab.beforeRemove",this._onTabBeforeRemove),this._container.addEventListener("tab.remove",this._onTabRemove),this._container.addEventListener("tab.select",this._onTabSelect),this._container}get editorContainer(){return this._editorContainer||(this._editorContainer=yt("og-tabsplitcontainer"),this._editorContainer.style.height="100%",this._editorContainer.closable=!0,this._editorContainer.singleActive=!0,this._editorContainer.createComponent=this.createEditorComponent,this._editorContainer.model=new Pp(this.sourceData.editorLayout),this._editorContainer.scrollableTabs=!0),this._editorContainer}get singleContainer(){return this._singleContainer||(this._singleContainer=yt("div"),this._singleContainer.style.height="100%"),this._singleContainer}get sidebarHost(){return this._sidebarHost||(this._sidebarHost=yt("og-bucket-sidebar"),this._sidebarHost.bucket=this,this._sidebarHost.componentId=this.sidebar1ComponentId),this._sidebarHost}constructor(){super(),this.sourceData=Lg,this.logger=new Sr("Ωbucket"),this.compact=!1,this.updateContainerVisibility=q((()=>{let t=!1;this.editorContainer.walk(((e,i)=>{if(i.tabs?.items?.length)return t=!0,!1})),t?xt(this.editorContainer):kt(this.editorContainer)}),100),this.showOverlay=()=>this.overlay.show(this.body),this.hideOverlay=()=>this.overlay.hide(),this._onWindowBeforeUnload=t=>{this.components.hasUnsavedComponents&&(t.preventDefault(),t.returnValue="")},this.createEditorComponent=t=>yt("og-bucket-component-host",{componentId:t,bucket:this,pathPosition:this.options.pathPosition}),this._createSplitContainerComponent=t=>{let e;return t==this.sidebarIndex?(this.logger.info("create primary sidebar"),this.sidebarHost):t==this.mainIndex?(this.logger.info("create editor container"),"single"==this.options?.componentMode?this.singleContainer:this.editorContainer):(e||(e=yt("div"),e.innerHTML="empty"),e)},this._onSplitContainerResize=()=>{this.top?.layout(),this.dispatchStateEvent()},this._onTabRemove=t=>{this.components.unregister(t.tab.id),this.dispatchEvent(new Ig("close",{tab:t.tab,componentId:t.tab.id})),this.dispatchStateEvent()},this._onTabBeforeRemove=t=>{const e=t.tab.id;this.components.unsavedComponents.has(e)&&(t.preventDefault(),this.openMenu({text:`[${t.tab.title||t.tab.id}]: ${$o("Discard changes and close tab?")}`,content:"yes_no"}).then((i=>{"Y"==i?.command?.id&&(this.components.unsavedComponents.delete(e),t.resolveClose())})))},this._onTabSelect=t=>{t.tabs.topLevelComponent==this.editorContainer&&(this._activeComponentId=t.tab?.id,this.dispatchEvent(new Ig("activate",{tab:t.tab,componentId:t.tab?.id})),this.dispatchStateEvent())},this.renderSideMenu=()=>this.sourceData.sidemenu.hidden?as``:as`
|
|
2866
|
+
<og-bucket-sidemenu
|
|
2867
|
+
@select=${this._onSidemenuSelect}
|
|
2868
|
+
.settings=${this.sourceData.sidemenu}>
|
|
2869
|
+
</og-bucket-sidemenu>
|
|
2870
|
+
`,this.render=()=>as`
|
|
2860
2871
|
<og-bucket-top></og-bucket-top>
|
|
2861
2872
|
|
|
2862
2873
|
<div class="body">
|
|
2863
2874
|
<og-overlay></og-overlay>
|
|
2864
|
-
|
|
2865
|
-
${this.sourceData.sidemenu.hidden?as``:as`
|
|
2866
|
-
<og-bucket-sidemenu
|
|
2867
|
-
@select=${this._onSidemenuSelect}
|
|
2868
|
-
.settings=${this.sourceData.sidemenu}>
|
|
2869
|
-
</og-bucket-sidemenu>
|
|
2870
|
-
`}
|
|
2871
|
-
|
|
2875
|
+
${"left"==this.options.sidebarPosition?this.renderSideMenu():null}
|
|
2872
2876
|
<div class="main"></div>
|
|
2877
|
+
${"right"==this.options.sidebarPosition?this.renderSideMenu():null}
|
|
2873
2878
|
</div>
|
|
2874
|
-
`,this.components=new Mg(this),this.sidebars=new _g(this),this.alerts=new xg(this),this.dialogs=new Sg(this),this.commands=new bg(this),this.shortcuts=new mn(this),this.options=Cg(),this.logger.info("init"),this.addEventListener("state",(t=>{t.target!=this&&(t.stopPropagation(),this.dispatchStateEvent())}))}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.logger.info("connected"),window.addEventListener("beforeunload",this._onWindowBeforeUnload)}disconnectedCallback(){window.removeEventListener("beforeunload",this._onWindowBeforeUnload)}layout(){this.container?.layout(),this.top?.layout()}setSourceData(t){this.sourceData=t,t.options&&(this.options=Cg(t.options,this.options))}async updated(){const t=this.compact?"single"==this.options?.componentMode?this.singleContainer:this.editorContainer:this.container;t.parentElement!=this.main&&(St(this.main),this.main.appendChild(t),t instanceof zs&&t.requestUpdate());const e=(this.sourceData.sidemenu.items??[])[this.sourceData.sidemenu.activeIndex]?.id;e&&(this.sidebar1ComponentId=e),await(this.container?.updateComplete),this.layout()}_openComponent(t){"single"==this.options?.componentMode?(St(this.singleContainer),this.singleContainer.appendChild(this.createEditorComponent(t.id))):this.editorContainer.open(t)}async open(t){this.compact&&this.hideSidebar(),"single"==this.options?.componentMode?xt(this.singleContainer):xt(this.editorContainer);const e=t.component;return e?(t.id=this.components.register(t.id,t.component),delete t.component,this._openComponent(t),e):new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i),this.components.has(t.id)&&this.components.resolveComponentPromises(t.id,this.components.components.get(t.id)),this._openComponent(t),this.dispatchStateEvent()}))}async openDialog(t){return await this.dialogs.open(t)}openMenu(t){return this.commands.open(t)}openModalSidebar(t){return this.sidebars.openModalSidebar(t)}async toggleSidebar(t){t??(t=this.compact?this.sidebarHost.parentElement!=this.main:this.container.items[
|
|
2879
|
+
`,this.components=new Mg(this),this.sidebars=new _g(this),this.alerts=new xg(this),this.dialogs=new Sg(this),this.commands=new bg(this),this.shortcuts=new mn(this),this.options=Cg(),this.logger.info("init"),this.addEventListener("state",(t=>{t.target!=this&&(t.stopPropagation(),this.dispatchStateEvent())}))}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.logger.info("connected"),window.addEventListener("beforeunload",this._onWindowBeforeUnload)}disconnectedCallback(){window.removeEventListener("beforeunload",this._onWindowBeforeUnload)}layout(){this.container?.layout(),this.top?.layout()}setSourceData(t){this.sourceData=t,t.options&&(this.options=Cg(t.options,this.options))}async updated(){const t=this.compact?"single"==this.options?.componentMode?this.singleContainer:this.editorContainer:this.container;t.parentElement!=this.main&&(St(this.main),this.main.appendChild(t),t instanceof zs&&t.requestUpdate());const e=(this.sourceData.sidemenu.items??[])[this.sourceData.sidemenu.activeIndex]?.id;e&&(this.sidebar1ComponentId=e),await(this.container?.updateComplete),this.layout()}_openComponent(t){"single"==this.options?.componentMode?(St(this.singleContainer),this.singleContainer.appendChild(this.createEditorComponent(t.id))):this.editorContainer.open(t)}async open(t){this.compact&&this.hideSidebar(),"single"==this.options?.componentMode?xt(this.singleContainer):xt(this.editorContainer);const e=t.component;return e?(t.id=this.components.register(t.id,t.component),delete t.component,this._openComponent(t),e):new Promise(((e,i)=>{this.components.enqueueComponentResolution(t.id,e,i),this.components.has(t.id)&&this.components.resolveComponentPromises(t.id,this.components.components.get(t.id)),this._openComponent(t),this.dispatchStateEvent()}))}async openDialog(t){return await this.dialogs.open(t)}openMenu(t){return this.commands.open(t)}openModalSidebar(t){return this.sidebars.openModalSidebar(t)}async toggleSidebar(t){t??(t=this.compact?this.sidebarHost.parentElement!=this.main:this.container.items[this.sidebarIndex].collapsed),t?this.showSidebar():this.hideSidebar()}async hideSidebar(){this.compact?this.sidebarHost.parentElement==this.main&&(St(this.main),this.main.appendChild(this.editorContainer)):await this.container.collapse(this.sidebarIndex,!0),this.layout()}async showSidebar(){this.compact?this.sidebarHost.parentElement!=this.main&&(St(this.main),this.main.appendChild(this.sidebarHost)):await this.container.collapse(this.sidebarIndex,!1),this.layout()}showAlert(t){return this.alerts.addAlert(t)}getState(){const t=this.container?.items[0];return{sidebar:{selectedItem:this.sidebar1ComponentId,width:t?.size,collapsed:!!t?.collapsed},layout:this.editorContainer?.model.getSourceData(),dialogs:[...Array.from(this.dialogs.items.entries()).map((([t,e])=>Object.assign({id:t},e.getOptions())))],components:[...this.components.components].reduce(((t,[e,i])=>{if(i.getState){const o=i.getState();o&&(t[e]=o)}return t}),{})}}async setState(t){this.state=t;const e=this.sourceData.sidemenu.items.findIndex((e=>e.id==t.sidebar.selectedItem));e>=0&&(this.sourceData.sidemenu.activeIndex=e,this.sidebar1ComponentId=t.sidebar.selectedItem),this.sourceData.editorLayout=t.layout,this._editorContainer=null,this.requestUpdate(),await this.updateComplete,this.sidemenu?.requestUpdate(),this.updateSidebarComponent(),this.updateMainComponent(),t.dialogs?.forEach((t=>this.openDialog(t)));for(const e in t.components)this.components.setState(e,t.components[e])}_onSidemenuSelect(t){const e=(this.sourceData.sidemenu.items??[])[t.index]?.id;e==this.sidebar1ComponentId?this.toggleSidebar():(this.toggleSidebar(!0),this.sidebar1ComponentId=e,this.updateSidebarComponent()),this.dispatchStateEvent()}updateSidebarComponent(){this.sidebarHost.componentId=this.sidebar1ComponentId}updateMainComponent(){this.container?.updateComponent(1)}async openSidebarComponent(t){this.sidebar1ComponentId=t.toString(),this.showSidebar(),this.updateSidebarComponent(),this.sidemenu.selectItem(t.toString()),await this.sidebarHost.updateComplete}};Rg.styles=[wg],Rg.uniqueId=0,Rg.getUniqueId=()=>++zg.uniqueId,Eg([Ds("og-overlay")],Rg.prototype,"overlay",void 0),Eg([Ds("og-bucket-top")],Rg.prototype,"top",void 0),Eg([Ds("og-bucket-sidemenu")],Rg.prototype,"sidemenu",void 0),Eg([Ds(".body")],Rg.prototype,"body",void 0),Eg([Ds(".main")],Rg.prototype,"main",void 0),Eg([Ts({type:Object})],Rg.prototype,"createComponent",void 0),Eg([Ts({type:Object})],Rg.prototype,"sourceData",void 0),Eg([Ts({type:Object})],Rg.prototype,"options",void 0),Eg([Ts({type:Object})],Rg.prototype,"logger",void 0),Eg([Ts({type:Boolean})],Rg.prototype,"compact",void 0),Rg=zg=Eg([Ls("og-bucket")],Rg);const Tg=kn`
|
|
2875
2880
|
* {
|
|
2876
2881
|
box-sizing: border-box;
|
|
2877
2882
|
}
|
|
@@ -3547,7 +3552,7 @@
|
|
|
3547
3552
|
margin-left: 2px;
|
|
3548
3553
|
}
|
|
3549
3554
|
|
|
3550
|
-
`;var nf=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 sf=class extends Eu{get hasCrossButton(){return this.cross&&(this.selection.count>0&&this.options.allowEmpty||""!==this.searchTerm)}get tree(){return this._tree||(this._tree=new ef,this._tree.disableAutoload=!0,this._tree.model=this.adapter?null:this.model,this._tree.adapter=this.adapter,this._tree.selection=this.selection,this._tree.options=this.options,this._tree.maxHeight=this.maxHeight,this._tree.addEventListener("change",(t=>this._onChange(t))),this._tree.addEventListener("render",this._onTreeRender),this._tree.slot="inner-content"),this._tree}_onChange(t){this._autoHighlight=!1,this.selectedItems=null,this.selectedItems=t.component.selection.items,this.value=t.component.selection.serialize(),this.options.autoClose&&this.close(),this.dispatchEvent(new Km(t.type,{component:t.component,node:t.node}))}async open(){this.tree.parentElement!=this.dropdown&&this.dropdown.appendChild(this._tree),await super.open()}async willUpdate(t){this.buttonInput&&(this.options.search=!1),t.has("value")&&(this.selection.setItems(this.value),this.selectedItems=null,this.selectedItems=this.selection.items,this.isOpen&&this.tree&&(this._autoHighlight?this.tree.highlightFirstSelectedNode():this._autoHighlight=!0,this.tree.renderItems(!0))),this._tree&&(t.has("adapter")&&(this._tree.adapter=this.adapter),t.has("model")&&(this._tree.model=this.model)),t.has("adapter")&&this.adapter&&(this._firstOpen=!0,this.options=Um(await this.adapter.getOptions(),this.options)),this._renderDropdown=!0}async filter(t){this.input&&(this.searchTerm=t),await this.updateComplete,this.input&&(this.input.value=t),await this.tree.updateComplete,this.tree.filter(t)}async clearFilter(){this.input&&(this.searchTerm=""),await this.updateComplete,this.input&&(this.input.value=""),this.tree.clearFilter()}focus(){this.buttonInput?this.input?.focus():super.focus()}constructor(){super(),this.options=Um(),this.selection=new Bm(this.options),this.maxHeight=300,this.maxWidth=400,this.cross=!1,this.buttonInput=!1,this.preventInputEnter=!1,this.dynamicWidth=!1,this.selectedItems=new Map,this.searchTerm="",this._renderDropdown=!0,this._firstOpen=!0,this._autoHighlight=!0,this.originalWidth=0,this._debounceWidthUpdate=q((()=>{this.dropdown&&this.dropdown.isConnected&&(this.dynamicWidth&&this.adjustWidth(),Ut(this.dropdown))})),this._onTreeRender=()=>{this._debounceWidthUpdate()},this.tooltip=yt("og-tooltip"),this._onMouseOver=()=>{this.contentDiv&&this.contentDiv.scrollWidth>this.contentDiv.clientWidth&&(this.tooltip.parentElement||(document.body.appendChild(this.tooltip),Nt(this.tooltip,{w:this.button.offsetWidth})),this.tooltip.content=this.getSelectionHtml(),this.tooltip.attachTo(this.button,"bottom"))},this._onMouseOut=()=>{this.tooltip.deatach()},this._debounceFilter=q((t=>{this.tree.filter(t),this.dispatchEvent(new Km("tree.filter"))}),300),this._onInput=async t=>{this.isOpen||await this.open();const e=t.target.value;this._debounceFilter(e),this.searchTerm=e},this._onInputKeyDown=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.tree.list.moveDown();break;case"ArrowUp":t.preventDefault(),this.tree.list.moveUp();break;case"Enter":if(t.preventDefault(),this.preventInputEnter)return;this.tree.list.selectedIndex>-1&&(this.tree.list.select(this.tree.list.selectedIndex,hp.Enter),setTimeout((()=>this.input.focus()),100))}},this._onInputBlur=()=>this.input.value=this.getSelectionText(),this.render=()=>as`
|
|
3555
|
+
`;var nf=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 sf=class extends Eu{reset(){this._tree=null}get hasCrossButton(){return this.cross&&(this.selection.count>0&&this.options.allowEmpty||""!==this.searchTerm)}get tree(){return this._tree||(this._tree=new ef,this._tree.disableAutoload=!0,this._tree.model=this.adapter?null:this.model,this._tree.adapter=this.adapter,this._tree.selection=this.selection,this._tree.options=this.options,this._tree.maxHeight=this.maxHeight,this._tree.addEventListener("change",(t=>this._onChange(t))),this._tree.addEventListener("render",this._onTreeRender),this._tree.slot="inner-content"),this._tree}_onChange(t){this._autoHighlight=!1,this.selectedItems=null,this.selectedItems=t.component.selection.items,this.value=t.component.selection.serialize(),this.options.autoClose&&this.close(),this.dispatchEvent(new Km(t.type,{component:t.component,node:t.node}))}async open(){this.tree.parentElement!=this.dropdown&&this.dropdown.appendChild(this._tree),await super.open()}async willUpdate(t){this.buttonInput&&(this.options.search=!1),t.has("value")&&(this.selection.setItems(this.value),this.selectedItems=null,this.selectedItems=this.selection.items,this.isOpen&&this.tree&&(this._autoHighlight?this.tree.highlightFirstSelectedNode():this._autoHighlight=!0,this.tree.renderItems(!0))),this._tree&&(t.has("adapter")&&(this._tree.adapter=this.adapter),t.has("model")&&(this._tree.model=this.model)),t.has("adapter")&&this.adapter&&(this._firstOpen=!0,this.options=Um(await this.adapter.getOptions(),this.options)),this._renderDropdown=!0}async filter(t){this.input&&(this.searchTerm=t),await this.updateComplete,this.input&&(this.input.value=t),await this.tree.updateComplete,this.tree.filter(t)}async clearFilter(){this.input&&(this.searchTerm=""),await this.updateComplete,this.input&&(this.input.value=""),this.tree.clearFilter()}focus(){this.buttonInput?this.input?.focus():super.focus()}constructor(){super(),this.options=Um(),this.selection=new Bm(this.options),this.maxHeight=300,this.maxWidth=400,this.cross=!1,this.buttonInput=!1,this.preventInputEnter=!1,this.dynamicWidth=!1,this.selectedItems=new Map,this.searchTerm="",this._renderDropdown=!0,this._firstOpen=!0,this._autoHighlight=!0,this.originalWidth=0,this._debounceWidthUpdate=q((()=>{this.dropdown&&this.dropdown.isConnected&&(this.dynamicWidth&&this.adjustWidth(),Ut(this.dropdown))})),this._onTreeRender=()=>{this._debounceWidthUpdate()},this.tooltip=yt("og-tooltip"),this._onMouseOver=()=>{this.contentDiv&&this.contentDiv.scrollWidth>this.contentDiv.clientWidth&&(this.tooltip.parentElement||(document.body.appendChild(this.tooltip),Nt(this.tooltip,{w:this.button.offsetWidth})),this.tooltip.content=this.getSelectionHtml(),this.tooltip.attachTo(this.button,"bottom"))},this._onMouseOut=()=>{this.tooltip.deatach()},this._debounceFilter=q((t=>{this.tree.filter(t),this.dispatchEvent(new Km("tree.filter"))}),300),this._onInput=async t=>{this.isOpen||await this.open();const e=t.target.value;this._debounceFilter(e),this.searchTerm=e},this._onInputKeyDown=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.tree.list.moveDown();break;case"ArrowUp":t.preventDefault(),this.tree.list.moveUp();break;case"Enter":if(t.preventDefault(),this.preventInputEnter)return;this.tree.list.selectedIndex>-1&&(this.tree.list.select(this.tree.list.selectedIndex,hp.Enter),setTimeout((()=>this.input.focus()),100))}},this._onInputBlur=()=>this.input.value=this.getSelectionText(),this.render=()=>as`
|
|
3551
3556
|
${this.buttonInput?as`
|
|
3552
3557
|
<og-input
|
|
3553
3558
|
@input="${this._onInput}"
|
|
@@ -3564,7 +3569,7 @@
|
|
|
3564
3569
|
@mouseleave="${this._onMouseOut}"
|
|
3565
3570
|
color="${this.color}"
|
|
3566
3571
|
class="main"
|
|
3567
|
-
style="flex: 1"
|
|
3572
|
+
style="flex: 1"
|
|
3568
3573
|
.caret="${this.noCaret?"none":this.openDirection}">
|
|
3569
3574
|
${this.buttonInput?"":as`
|
|
3570
3575
|
<div class="content" slot="content">
|
|
@@ -8397,7 +8402,7 @@ milkdown-block-handle {
|
|
|
8397
8402
|
.caption="${this.item.caption}"
|
|
8398
8403
|
.value="${this.getValue()}">
|
|
8399
8404
|
</og-tree-dropdown>
|
|
8400
|
-
`}updated(){this.item.width&&Nt(this.tree,{w:this.item.width}),this.item.adapter||this.tree.setSourceData(this.item.items,{globalLevels:!1,selectMode:Pm.Single,checkboxes:!1,expanders:!1})}getValue(){return Array.isArray(this.value)?this.value:null==this.value?null:[[this.value,0,1]]}};xE.styles=[kn`
|
|
8405
|
+
`}updated(){this.item.width&&Nt(this.tree,{w:this.item.width}),this.item.adapter||this.tree.setSourceData(this.item.items,{globalLevels:!1,selectMode:Pm.Single,checkboxes:!1,expanders:!1,...this.item.options})}getValue(){return Array.isArray(this.value)?this.value:null==this.value?null:[[this.value,0,1]]}};xE.styles=[kn`
|
|
8401
8406
|
:host {
|
|
8402
8407
|
display: flex;
|
|
8403
8408
|
flex-direction: row;
|
|
@@ -9934,4 +9939,4 @@ milkdown-block-handle {
|
|
|
9934
9939
|
`:null}
|
|
9935
9940
|
</div>
|
|
9936
9941
|
</og-panel>
|
|
9937
|
-
`: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?_v.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?_v.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=_v.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Xr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};RL.styles=[LL],IL([Ts({type:Object})],RL.prototype,"model",void 0),IL([$s()],RL.prototype,"editTitle",void 0),IL([Ds("#title")],RL.prototype,"titleInput",void 0),IL([Ds("#type")],RL.prototype,"typeList",void 0),IL([Ds("#dataRange")],RL.prototype,"dataRangeInput",void 0),IL([Ds("#seriesRange")],RL.prototype,"seriesRangeInput",void 0),IL([Ds("#categoryRange")],RL.prototype,"categoryRangeInput",void 0),RL=IL([Ls("og-plugin-chart-form")],RL);const TL=Xa().themes.get("og-dark");Object.assign(TL.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 $L=Xa().themes.get("og-light");Object.assign($L.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 AL=i(6946),DL=i(6471),OL=i(4969),NL=i(9502),PL=i(7706),jL=i(1480),HL=i(2006),FL=i(7503),BL=i(7873),WL=i(8746),VL=i(2570),UL=i(8815),GL=i(6390),qL=i(6593),YL=i(895),ZL=i(9083),XL=i(6093),QL=i(9685),KL=i(9849),JL=i(8268),tI=i(4693),eI=i(3599),iI=i(782),oI=i(754),rI=i(5700),nI=i(4731),sI=i(7291),aI=i(597),lI=i(1474),cI=i(6224),hI=i(6239),dI=i(6828),uI=i(2212),pI=i(863),gI=i(3602),mI=i(1985),fI=i(886),vI=i(7201),bI=i(9937),yI=i(8450),wI=i(9630),xI=i(9766),kI=i(388),CI=i(1903),MI=i(398),_I=i(6105),SI=i(6147),zI=i(5722),EI=i(5576),LI=i(3131),II=i(6308),RI=i(9645),TI=i(3199),$I=i(871),AI=i(5251),DI=i(6426),OI=i(2643),NI=i(8522),PI=i(6398),jI=i(2525),HI=i(8434),FI=i(6138),BI=i(5835),WI=i(5654),VI=i(6659),UI=i(2977),GI=i(4480),qI=i(9886),YI=i(6815),ZI=i(1582),XI=i(2968),QI=i(394),KI=i(7024),JI=i(7853),tR=i(8249),eR=i(2869),iR=i(486),oR=i(5735),rR=i(470),nR=i(4612),sR=i(4018),aR=i(1476),lR=i(3194),cR=i(3525),hR=i(7541),dR=i(4104),uR=i(6686),pR=i(7719),gR=i(3898),mR=i(8153),fR=i(3690),vR=i(1776),bR=i(4980),yR=i(5578),wR=i(9613),xR=i(1119),kR=i(8444),CR=i(2978),MR=i(9130),_R=i(2127),SR=i(2732),zR=i(4287),ER=i(4045),LR=i(7642),IR=i(1367),RR=i(320),TR=i(821),$R=i(102),AR=i(7683),DR=i(3980),OR=i(576),NR=i(654),PR=i(73),jR=i(140),HR=i(8129),FR=i(5087),BR=i(6992),WR=i(8247),VR=i(8038),UR=i(5286),GR=i(9179),qR=i(1808),YR=i(9459),ZR=i(2883),XR=i(9124),QR=i(7067),KR=i(1054),JR=i(7325),tT=i(1272),eT=i(3359),iT=i(6562),oT=i(4193),rT=i(6348),nT=i(2435),sT=i(7544),aT=i(4470),lT=i(9111),cT=i(9318),hT=i(7294),dT=i(4479),uT=i(2409),pT=i(3091),gT=i(5789),mT=i(5890),fT=i(3874),vT=i(2907),bT=i(1175),yT=i(1686),wT=i(703),xT=i(6606),kT=i(4194),CT=i(6228),MT=i(62),_T=i(2072),ST=i(9744),zT=i(25),ET=i(2618),LT=i(1988),IT=i(8013),RT=i(1133),TT=i(362),$T=i(6845),AT=i(6800),DT=i(1103),OT=i(4933),NT=i(7284),PT=i(2620),jT=i(2366),HT=i(7457),FT=i(2449),BT=i(2),WT=i(5697),VT=i(7069),UT=i(4716),GT=i(4740),qT=i(4557),YT=i(1868),ZT=i(8647),XT=i(5127),QT=i(4816),KT=i(4009),JT=i(5104),t$=i(2830),e$=i(3093),i$=i(5029),o$=i(3514),r$=i(2142),n$=i(4999),s$=i(7523),a$=i(346),l$=i(7917),c$=i(3976),h$=i(9801),d$=i(2464),u$=i(5511),p$=i(5210),g$=i(5815),m$=i(3339),f$=i(7472),v$=i(8811),b$=i(8548),y$=i(6880),w$=i(1840),x$=i(5547),k$=i(4788),C$=i(9467),M$=i(9187),_$=i(9217),S$=i(7897),z$=i(2644),E$=i(6204),L$=i(1472),I$=i(1247),R$=i(7406),T$=i(925),$$=i(7455),A$=i(3771),D$=i(1549),O$=i(3541),N$=i(3140),P$=i(9800),j$=i(229),H$=i(2677),F$=i(1844),B$=i(3245),W$=i(9056),V$=i(7535),U$=i(2359),G$=i(15),q$=i(5569),Y$=i(2014),Z$=i(1599),X$=i(6521),Q$=i(232),K$=i(9745),J$=i(9594),tA=i(6979),eA=i(4494),iA=i(312),oA=i(4983),rA=i(1258),nA=i(6313),sA=i(12),aA=i(8003),lA=i(7830),cA=i(8875),hA=i(3911),dA=i(1817),uA=i(478),pA=i(2585),gA=i(6564),mA=i(2884),fA=i(3825),vA=i(7348),bA=i(9277),yA=i(4118),wA=i(9200),xA=i(51),kA=i(2872),CA=i(4702),MA=i(9281),_A=i(1394),SA=i(7295),zA=i(2936),EA=i(3789),LA=i(3614),IA=i(4827),RA=i(9204),TA=i(9113),$A=i(4058),AA=i(9939),DA=i(1139);const OA=[AL.mw,DL.mw,OL.mw,NL.mw,PL.mw,jL.mw,HL.mw,FL.mw,WL.mw,UL.mw,VL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,rI.mw,nI.mw,sI.mw,aI.mw,lI.mw,cI.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,_I.mw,MI.mw,SI.mw,zI.mw,EI.mw,LI.mw,II.mw,RI.mw,TI.mw,$I.mw,AI.mw,DI.mw,OI.mw,NI.mw,jI.mw,HI.mw,FI.mw,BI.mw,WI.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,PI.mw,rR.mw,nR.mw,sR.mw,aR.mw,lR.mw,cR.mw,hR.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,MR.mw,_R.mw,SR.mw,zR.mw,ER.mw,LR.mw,IR.mw,RR.mw,TR.mw,$R.mw,AR.mw,DR.mw,OR.mw,NR.mw,PR.mw,jR.mw,HR.mw,FR.mw,BR.mw,WR.mw,VR.mw,hI.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,nT.mw,BL.mw,sT.mw,aT.mw],NA=[lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,vT.mw,yT.mw,bT.mw,xT.mw,wT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.mw,zT.mw,ET.mw,LT.mw,IT.mw,DT.mw,OT.mw,NT.mw,PT.mw,jT.mw,HT.mw,FT.mw,WT.mw,VT.mw,UT.mw,XT.mw,QT.mw,KT.mw,JT.mw,t$.mw,e$.mw,i$.mw,o$.mw,RT.mw,TT.mw,AT.mw,$T.mw,r$.mw,n$.mw,s$.mw,a$.mw,l$.mw,c$.mw,h$.mw,d$.mw,GT.mw,qT.mw,YT.mw,ZT.mw,p$.mw,g$.mw,m$.mw,f$.mw,v$.mw,b$.mw,y$.mw,w$.mw,x$.mw,k$.mw,C$.mw,M$.mw,_$.mw,S$.mw,z$.mw,E$.mw,L$.mw,I$.mw,R$.mw,u$.mw,T$.mw,$$.mw,A$.mw,D$.mw,O$.mw,N$.mw,P$.mw,j$.mw,H$.mw,F$.mw,B$.mw,W$.mw,V$.mw,U$.mw,G$.mw,q$.mw,Y$.mw,Z$.mw,X$.mw,Q$.mw,K$.mw,J$.mw,tA.mw,eA.mw,iA.mw,oA.mw,rA.mw,nA.mw,sA.mw,aA.mw,lA.mw,cA.mw,hA.mw,dA.mw,uA.mw,pA.mw,gA.mw,mA.mw,fA.mw,vA.mw,bA.mw,BT.mw,yA.mw,wA.mw,xA.mw,kA.mw,CA.mw,MA.mw,_A.mw,SA.mw,zA.mw,EA.mw,LA.mw,IA.mw,RA.mw,TA.mw,$A.mw,fT.mw,AA.mw,DA.mw],PA={xlsx:F,charts:B},jA={name:"@omegagrid/bundle",version:"0.10.
|
|
9942
|
+
`: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?_v.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?_v.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=_v.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Xr({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};RL.styles=[LL],IL([Ts({type:Object})],RL.prototype,"model",void 0),IL([$s()],RL.prototype,"editTitle",void 0),IL([Ds("#title")],RL.prototype,"titleInput",void 0),IL([Ds("#type")],RL.prototype,"typeList",void 0),IL([Ds("#dataRange")],RL.prototype,"dataRangeInput",void 0),IL([Ds("#seriesRange")],RL.prototype,"seriesRangeInput",void 0),IL([Ds("#categoryRange")],RL.prototype,"categoryRangeInput",void 0),RL=IL([Ls("og-plugin-chart-form")],RL);const TL=Xa().themes.get("og-dark");Object.assign(TL.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 $L=Xa().themes.get("og-light");Object.assign($L.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 AL=i(6946),DL=i(6471),OL=i(4969),NL=i(9502),PL=i(7706),jL=i(1480),HL=i(2006),FL=i(7503),BL=i(7873),WL=i(8746),VL=i(2570),UL=i(8815),GL=i(6390),qL=i(6593),YL=i(895),ZL=i(9083),XL=i(6093),QL=i(9685),KL=i(9849),JL=i(8268),tI=i(4693),eI=i(3599),iI=i(782),oI=i(754),rI=i(5700),nI=i(4731),sI=i(7291),aI=i(597),lI=i(1474),cI=i(6224),hI=i(6239),dI=i(6828),uI=i(2212),pI=i(863),gI=i(3602),mI=i(1985),fI=i(886),vI=i(7201),bI=i(9937),yI=i(8450),wI=i(9630),xI=i(9766),kI=i(388),CI=i(1903),MI=i(398),_I=i(6105),SI=i(6147),zI=i(5722),EI=i(5576),LI=i(3131),II=i(6308),RI=i(9645),TI=i(3199),$I=i(871),AI=i(5251),DI=i(6426),OI=i(2643),NI=i(8522),PI=i(6398),jI=i(2525),HI=i(8434),FI=i(6138),BI=i(5835),WI=i(5654),VI=i(6659),UI=i(2977),GI=i(4480),qI=i(9886),YI=i(6815),ZI=i(1582),XI=i(2968),QI=i(394),KI=i(7024),JI=i(7853),tR=i(8249),eR=i(2869),iR=i(486),oR=i(5735),rR=i(470),nR=i(4612),sR=i(4018),aR=i(1476),lR=i(3194),cR=i(3525),hR=i(7541),dR=i(4104),uR=i(6686),pR=i(7719),gR=i(3898),mR=i(8153),fR=i(3690),vR=i(1776),bR=i(4980),yR=i(5578),wR=i(9613),xR=i(1119),kR=i(8444),CR=i(2978),MR=i(9130),_R=i(2127),SR=i(2732),zR=i(4287),ER=i(4045),LR=i(7642),IR=i(1367),RR=i(320),TR=i(821),$R=i(102),AR=i(7683),DR=i(3980),OR=i(576),NR=i(654),PR=i(73),jR=i(140),HR=i(8129),FR=i(5087),BR=i(6992),WR=i(8247),VR=i(8038),UR=i(5286),GR=i(9179),qR=i(1808),YR=i(9459),ZR=i(2883),XR=i(9124),QR=i(7067),KR=i(1054),JR=i(7325),tT=i(1272),eT=i(3359),iT=i(6562),oT=i(4193),rT=i(6348),nT=i(2435),sT=i(7544),aT=i(4470),lT=i(9111),cT=i(9318),hT=i(7294),dT=i(4479),uT=i(2409),pT=i(3091),gT=i(5789),mT=i(5890),fT=i(3874),vT=i(2907),bT=i(1175),yT=i(1686),wT=i(703),xT=i(6606),kT=i(4194),CT=i(6228),MT=i(62),_T=i(2072),ST=i(9744),zT=i(25),ET=i(2618),LT=i(1988),IT=i(8013),RT=i(1133),TT=i(362),$T=i(6845),AT=i(6800),DT=i(1103),OT=i(4933),NT=i(7284),PT=i(2620),jT=i(2366),HT=i(7457),FT=i(2449),BT=i(2),WT=i(5697),VT=i(7069),UT=i(4716),GT=i(4740),qT=i(4557),YT=i(1868),ZT=i(8647),XT=i(5127),QT=i(4816),KT=i(4009),JT=i(5104),t$=i(2830),e$=i(3093),i$=i(5029),o$=i(3514),r$=i(2142),n$=i(4999),s$=i(7523),a$=i(346),l$=i(7917),c$=i(3976),h$=i(9801),d$=i(2464),u$=i(5511),p$=i(5210),g$=i(5815),m$=i(3339),f$=i(7472),v$=i(8811),b$=i(8548),y$=i(6880),w$=i(1840),x$=i(5547),k$=i(4788),C$=i(9467),M$=i(9187),_$=i(9217),S$=i(7897),z$=i(2644),E$=i(6204),L$=i(1472),I$=i(1247),R$=i(7406),T$=i(925),$$=i(7455),A$=i(3771),D$=i(1549),O$=i(3541),N$=i(3140),P$=i(9800),j$=i(229),H$=i(2677),F$=i(1844),B$=i(3245),W$=i(9056),V$=i(7535),U$=i(2359),G$=i(15),q$=i(5569),Y$=i(2014),Z$=i(1599),X$=i(6521),Q$=i(232),K$=i(9745),J$=i(9594),tA=i(6979),eA=i(4494),iA=i(312),oA=i(4983),rA=i(1258),nA=i(6313),sA=i(12),aA=i(8003),lA=i(7830),cA=i(8875),hA=i(3911),dA=i(1817),uA=i(478),pA=i(2585),gA=i(6564),mA=i(2884),fA=i(3825),vA=i(7348),bA=i(9277),yA=i(4118),wA=i(9200),xA=i(51),kA=i(2872),CA=i(4702),MA=i(9281),_A=i(1394),SA=i(7295),zA=i(2936),EA=i(3789),LA=i(3614),IA=i(4827),RA=i(9204),TA=i(9113),$A=i(4058),AA=i(9939),DA=i(1139);const OA=[AL.mw,DL.mw,OL.mw,NL.mw,PL.mw,jL.mw,HL.mw,FL.mw,WL.mw,UL.mw,VL.mw,GL.mw,qL.mw,YL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,oI.mw,rI.mw,nI.mw,sI.mw,aI.mw,lI.mw,cI.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,_I.mw,MI.mw,SI.mw,zI.mw,EI.mw,LI.mw,II.mw,RI.mw,TI.mw,$I.mw,AI.mw,DI.mw,OI.mw,NI.mw,jI.mw,HI.mw,FI.mw,BI.mw,WI.mw,VI.mw,UI.mw,GI.mw,qI.mw,YI.mw,ZI.mw,XI.mw,QI.mw,KI.mw,JI.mw,tR.mw,eR.mw,iR.mw,oR.mw,PI.mw,rR.mw,nR.mw,sR.mw,aR.mw,lR.mw,cR.mw,hR.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,MR.mw,_R.mw,SR.mw,zR.mw,ER.mw,LR.mw,IR.mw,RR.mw,TR.mw,$R.mw,AR.mw,DR.mw,OR.mw,NR.mw,PR.mw,jR.mw,HR.mw,FR.mw,BR.mw,WR.mw,VR.mw,hI.mw,UR.mw,GR.mw,qR.mw,YR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tT.mw,eT.mw,iT.mw,oT.mw,rT.mw,nT.mw,BL.mw,sT.mw,aT.mw],NA=[lT.mw,cT.mw,hT.mw,dT.mw,uT.mw,pT.mw,gT.mw,mT.mw,vT.mw,yT.mw,bT.mw,xT.mw,wT.mw,kT.mw,CT.mw,MT.mw,_T.mw,ST.mw,zT.mw,ET.mw,LT.mw,IT.mw,DT.mw,OT.mw,NT.mw,PT.mw,jT.mw,HT.mw,FT.mw,WT.mw,VT.mw,UT.mw,XT.mw,QT.mw,KT.mw,JT.mw,t$.mw,e$.mw,i$.mw,o$.mw,RT.mw,TT.mw,AT.mw,$T.mw,r$.mw,n$.mw,s$.mw,a$.mw,l$.mw,c$.mw,h$.mw,d$.mw,GT.mw,qT.mw,YT.mw,ZT.mw,p$.mw,g$.mw,m$.mw,f$.mw,v$.mw,b$.mw,y$.mw,w$.mw,x$.mw,k$.mw,C$.mw,M$.mw,_$.mw,S$.mw,z$.mw,E$.mw,L$.mw,I$.mw,R$.mw,u$.mw,T$.mw,$$.mw,A$.mw,D$.mw,O$.mw,N$.mw,P$.mw,j$.mw,H$.mw,F$.mw,B$.mw,W$.mw,V$.mw,U$.mw,G$.mw,q$.mw,Y$.mw,Z$.mw,X$.mw,Q$.mw,K$.mw,J$.mw,tA.mw,eA.mw,iA.mw,oA.mw,rA.mw,nA.mw,sA.mw,aA.mw,lA.mw,cA.mw,hA.mw,dA.mw,uA.mw,pA.mw,gA.mw,mA.mw,fA.mw,vA.mw,bA.mw,BT.mw,yA.mw,wA.mw,xA.mw,kA.mw,CA.mw,MA.mw,_A.mw,SA.mw,zA.mw,EA.mw,LA.mw,IA.mw,RA.mw,TA.mw,$A.mw,fT.mw,AA.mw,DA.mw],PA={xlsx:F,charts:B},jA={name:"@omegagrid/bundle",version:"0.10.31"};Xa().activate("light"),Hd.styleDefault="fal",Fd.add(OA),Fd.add(NA)})(),window.Omegagrid=o})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omegagrid/bundle",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.31",
|
|
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.10.
|
|
23
|
-
"@omegagrid/calendar": "^0.10.
|
|
24
|
-
"@omegagrid/code": "^0.10.
|
|
25
|
-
"@omegagrid/commands": "^0.10.
|
|
26
|
-
"@omegagrid/core": "^0.10.
|
|
27
|
-
"@omegagrid/dialog": "^0.10.
|
|
28
|
-
"@omegagrid/editor": "^0.10.
|
|
29
|
-
"@omegagrid/form": "^0.10.
|
|
30
|
-
"@omegagrid/grid": "^0.10.
|
|
31
|
-
"@omegagrid/localize": "^0.10.
|
|
32
|
-
"@omegagrid/markdown": "^0.10.
|
|
33
|
-
"@omegagrid/plugin-charts": "^0.10.
|
|
34
|
-
"@omegagrid/plugin-xlsx": "^0.10.
|
|
35
|
-
"@omegagrid/statusbar": "^0.10.
|
|
36
|
-
"@omegagrid/tabs": "^0.10.
|
|
37
|
-
"@omegagrid/toolbar": "^0.10.
|
|
38
|
-
"@omegagrid/tree": "^0.10.
|
|
22
|
+
"@omegagrid/bucket": "^0.10.31",
|
|
23
|
+
"@omegagrid/calendar": "^0.10.31",
|
|
24
|
+
"@omegagrid/code": "^0.10.31",
|
|
25
|
+
"@omegagrid/commands": "^0.10.31",
|
|
26
|
+
"@omegagrid/core": "^0.10.31",
|
|
27
|
+
"@omegagrid/dialog": "^0.10.31",
|
|
28
|
+
"@omegagrid/editor": "^0.10.31",
|
|
29
|
+
"@omegagrid/form": "^0.10.31",
|
|
30
|
+
"@omegagrid/grid": "^0.10.31",
|
|
31
|
+
"@omegagrid/localize": "^0.10.31",
|
|
32
|
+
"@omegagrid/markdown": "^0.10.31",
|
|
33
|
+
"@omegagrid/plugin-charts": "^0.10.31",
|
|
34
|
+
"@omegagrid/plugin-xlsx": "^0.10.31",
|
|
35
|
+
"@omegagrid/statusbar": "^0.10.31",
|
|
36
|
+
"@omegagrid/tabs": "^0.10.31",
|
|
37
|
+
"@omegagrid/toolbar": "^0.10.31",
|
|
38
|
+
"@omegagrid/tree": "^0.10.31",
|
|
39
39
|
"lit": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|