@omegagrid/bundle 0.6.34 → 0.6.35
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 +2 -2
- package/package.json +18 -18
package/omegagrid.js
CHANGED
|
@@ -3165,7 +3165,7 @@
|
|
|
3165
3165
|
height: 100%;
|
|
3166
3166
|
padding: 0;
|
|
3167
3167
|
}
|
|
3168
|
-
`],Nx([ds("og-grid-formula")],Px.prototype,"input",void 0),Px=Nx([rs("og-grid-formulaeditor")],Px);const jx=new Map([["t",{createComponent:()=>new Ix}],["n",{createComponent:()=>new Hx}],["b",{createComponent:()=>new Rx}],["s",{createComponent:()=>new Ax}],["m",{createComponent:()=>new Ax}],["d",{createComponent:t=>t?.dateCalendarEditor?new Dx:new Ox}]]);class Vx{get model(){return this.grid.model}get selection(){return this.grid.selection}get selector(){return this.grid.selector}get events(){return this.grid.events}get table(){return this.grid.table}get isEditing(){return!!this.editor}get activeEditor(){return this.editor}get isFormulaMode(){return this._formulaMode||this.grid.group?.isFormulaMode}constructor(t){this.grid=t,this.editorMap=new Map,this.columnMoving=!1,this.rowMoving=!1,this._formulaMode=!1}canEdit(t){return t.editable||this.grid.designMode}updateCell(t,e,i=!0,o=!1){this.updateCells([t],[e],i,o)}updateCells(t,e,i=!0,o=!1){let n,r,s,a,l;t.forEach(((t,o)=>{const c=t.value;let h,d,u;q(e[o])?(d=e[o],h="v"in d?d.v:void 0):h=e[o],d?u=t.update(d):(t.clearFormula(),c!==h&&(u={v:c,dv:t.displayValue},t.value=h)),i&&u&&(n=n||[],r=r||[],s=s||[],a=a||[],l=l||[],n.push(c),r.push(u),s.push(h),a.push(d),l.push(t))})),i&&l?.length&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!o,cells:l,editType:"value",newValues:s,newProps:a,oldValues:n,oldProps:r}))}startFormulaMode(){this._formulaMode=!0,this.grid.group&&this.grid.group.startFormulaMode(this.grid)}endFormulaMode(t=!0){this._formulaMode=!1,t&&this.grid.group&&this.grid.group.endFormulaMode(),this.grid.selecting.hideFormulaSelector(),this.grid.selecting.removeFormulaHighlight(),this.grid.selecting.showSelector()}startEdit(t=null){const e=this.grid.selecting.activeCell;if(e&&this.canEdit(e)){this.grid.logger.info(`start edit ${new dv(e.c,e.r).A1}`);let i=!0;Cv(t)||null==t&&e.hasOwnFormula?this.editor=this.getFormulaEditor().open(this.grid,t):(i=!1,this.editor=this.getEditor(e).open(this.grid,t)),this.grid.dispatchEvent(new yx("startEdit",{grid:this.grid})),i&&(this.startFormulaMode(),this.grid.dispatchEvent(new yx("startFormulaEdit",{grid:this.grid})))}}endEdit(){this.editor&&(this.grid.logger.info("end edit"),this.grid.editing.endFormulaMode(),this.editor?.close(),this.editor=null,this.grid.dispatchEvent(new yx("endEdit",{grid:this.grid})))}commitEdit(){this.editor&&(this.editor.commit(),this.endEdit())}insertRows(t){const e=this.model.insertRows(t.index,t.count,t.after);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"insert_row",newValues:e})),e}insertColumns(t){const e=this.model.insertColumns(t.index,t.count,t.after);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"insert_column",newValues:e})),e}deleteRows(t){const e=this.model.deleteRows(t.index,t.count);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"delete_row",oldValues:e})),e}deleteColumns(t){const e=this.model.deleteColumns(t.index,t.count);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"delete_column",oldValues:e})),e}moveRows(t){this.model.moveRows(t.index,t.count,t.targetIndex),this.grid.rendering.renderAll(!1),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:t.fromHistory,editType:"move_row",oldValues:[new dv(0,t.index,1/0,t.index+t.count-1)],newValues:[new dv(0,t.targetIndex,1/0,t.targetIndex+t.count-1)]}))}moveColumns(t){this.model.moveColumns(t.index,t.count,t.targetIndex),this.grid.rendering.renderAll(!1),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:t.fromHistory,editType:"move_column",oldValues:[new dv(t.index,t.index+t.count-1,1/0)],newValues:[new dv(t.targetIndex,0,t.targetIndex+t.count-1,1/0)]}))}clearSelection(t=!0){const e=this.model.getCellArray(this.selection.range).filter((t=>this.canEdit(t)));this.updateCells(e,e.map((()=>null)),t),this.grid.rendering.updateCells(e,!0)}getEditor(t){const e=t.type;if(!this.editorMap.has(e)){const t=function(t){return jx.get(jx.has(t)?t:"t")}(e).createComponent(this.model.options.editing);this.grid.shadowRoot.appendChild(t),this.editorMap.set(e,t)}return this.editorMap.get(e)}getFormulaEditor(){const t="formula";if(!this.editorMap.has(t)){const e=new Px;this.grid.shadowRoot.appendChild(e),this.editorMap.set(t,e)}return this.editorMap.get(t)}getSelectionCellData(){return this.model.getCellMatrix(this.selection.range).map((t=>t.map((t=>t.getSourceData({displayValue:!0})))))}copySelection(){const t=this.model.getValuesInRange(this.selection.range
|
|
3168
|
+
`],Nx([ds("og-grid-formula")],Px.prototype,"input",void 0),Px=Nx([rs("og-grid-formulaeditor")],Px);const jx=new Map([["t",{createComponent:()=>new Ix}],["n",{createComponent:()=>new Hx}],["b",{createComponent:()=>new Rx}],["s",{createComponent:()=>new Ax}],["m",{createComponent:()=>new Ax}],["d",{createComponent:t=>t?.dateCalendarEditor?new Dx:new Ox}]]);class Vx{get model(){return this.grid.model}get selection(){return this.grid.selection}get selector(){return this.grid.selector}get events(){return this.grid.events}get table(){return this.grid.table}get isEditing(){return!!this.editor}get activeEditor(){return this.editor}get isFormulaMode(){return this._formulaMode||this.grid.group?.isFormulaMode}constructor(t){this.grid=t,this.editorMap=new Map,this.columnMoving=!1,this.rowMoving=!1,this._formulaMode=!1}canEdit(t){return t.editable||this.grid.designMode}updateCell(t,e,i=!0,o=!1){this.updateCells([t],[e],i,o)}updateCells(t,e,i=!0,o=!1){let n,r,s,a,l;t.forEach(((t,o)=>{const c=t.value;let h,d,u;q(e[o])?(d=e[o],h="v"in d?d.v:void 0):h=e[o],d?u=t.update(d):(t.clearFormula(),c!==h&&(u={v:c,dv:t.displayValue},t.value=h)),i&&u&&(n=n||[],r=r||[],s=s||[],a=a||[],l=l||[],n.push(c),r.push(u),s.push(h),a.push(d),l.push(t))})),i&&l?.length&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!o,cells:l,editType:"value",newValues:s,newProps:a,oldValues:n,oldProps:r}))}startFormulaMode(){this._formulaMode=!0,this.grid.group&&this.grid.group.startFormulaMode(this.grid)}endFormulaMode(t=!0){this._formulaMode=!1,t&&this.grid.group&&this.grid.group.endFormulaMode(),this.grid.selecting.hideFormulaSelector(),this.grid.selecting.removeFormulaHighlight(),this.grid.selecting.showSelector()}startEdit(t=null){const e=this.grid.selecting.activeCell;if(e&&this.canEdit(e)){this.grid.logger.info(`start edit ${new dv(e.c,e.r).A1}`);let i=!0;Cv(t)||null==t&&e.hasOwnFormula?this.editor=this.getFormulaEditor().open(this.grid,t):(i=!1,this.editor=this.getEditor(e).open(this.grid,t)),this.grid.dispatchEvent(new yx("startEdit",{grid:this.grid})),i&&(this.startFormulaMode(),this.grid.dispatchEvent(new yx("startFormulaEdit",{grid:this.grid})))}}endEdit(){this.editor&&(this.grid.logger.info("end edit"),this.grid.editing.endFormulaMode(),this.editor?.close(),this.editor=null,this.grid.dispatchEvent(new yx("endEdit",{grid:this.grid})))}commitEdit(){this.editor&&(this.editor.commit(),this.endEdit())}insertRows(t){const e=this.model.insertRows(t.index,t.count,t.after);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"insert_row",newValues:e})),e}insertColumns(t){const e=this.model.insertColumns(t.index,t.count,t.after);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"insert_column",newValues:e})),e}deleteRows(t){const e=this.model.deleteRows(t.index,t.count);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"delete_row",oldValues:e})),e}deleteColumns(t){const e=this.model.deleteColumns(t.index,t.count);return this.grid.rendering.renderAll(!0),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:!!t.fromHistory,editType:"delete_column",oldValues:e})),e}moveRows(t){this.model.moveRows(t.index,t.count,t.targetIndex),this.grid.rendering.renderAll(!1),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:t.fromHistory,editType:"move_row",oldValues:[new dv(0,t.index,1/0,t.index+t.count-1)],newValues:[new dv(0,t.targetIndex,1/0,t.targetIndex+t.count-1)]}))}moveColumns(t){this.model.moveColumns(t.index,t.count,t.targetIndex),this.grid.rendering.renderAll(!1),et(t.dispatchEvent,!0)&&this.grid.dispatchEvent(new wx({grid:this.grid,fromHistory:t.fromHistory,editType:"move_column",oldValues:[new dv(t.index,t.index+t.count-1,1/0)],newValues:[new dv(t.targetIndex,0,t.targetIndex+t.count-1,1/0)]}))}clearSelection(t=!0){const e=this.model.getCellArray(this.selection.range).filter((t=>this.canEdit(t)));this.updateCells(e,e.map((()=>null)),t),this.grid.rendering.updateCells(e,!0)}getEditor(t){const e=t.type;if(!this.editorMap.has(e)){const t=function(t){return jx.get(jx.has(t)?t:"t")}(e).createComponent(this.model.options.editing);this.grid.shadowRoot.appendChild(t),this.editorMap.set(e,t)}return this.editorMap.get(e)}getFormulaEditor(){const t="formula";if(!this.editorMap.has(t)){const e=new Px;this.grid.shadowRoot.appendChild(e),this.editorMap.set(t,e)}return this.editorMap.get(t)}getSelectionCellData(){return this.model.getCellMatrix(this.selection.range).map((t=>t.map((t=>t.getSourceData({displayValue:!0})))))}copySelection(){const t=ClipboardItem.supports(ox.CUSTOM_CLIPBOARD_TYPE),e=this.model.getValuesInRange(this.selection.range,t);this.grid.selecting.hideSelector(),this.grid.selecting.showCopySelector();const i={"text/plain":new Blob([rn(e,{decimalSeparator:this.model.options.systemDecimalSeparator})],{type:"text/plain"})};t?i[ox.CUSTOM_CLIPBOARD_TYPE]=new Blob([JSON.stringify(this.getSelectionCellData())],{type:"application/json"}):this.grid.logger.warn("Browser does not support custom clipboard type"),navigator.clipboard.write([new ClipboardItem(i)]).then((()=>this.grid.logger.info("selected content copied")),(()=>this.grid.logger.error("copy rejected")))}pasteMatrix(t){const e=this.selection.range,i=[],o=[],n=this.model.options.clipboard?.rowPasteMode,r=this.model.options.clipboard?.columnPasteMode,s="all"==(this.model.options.clipboard?.pasteProps??"all")?null:this.model.options.clipboard.pasteProps,a=t.length,l=a>0?t[0].length:0;"insert"==n?this.insertRows({index:e.r1,count:a,after:!1}):"rewrite_append"==n&&e.r1+a>this.model.rows.length-1&&this.insertRows({index:this.model.rows.length-1,count:e.r1+a-this.model.rows.length,after:!0}),"insert"==r?this.insertColumns({index:e.c1,count:l,after:!1}):"rewrite_append"==r&&e.c1+l>this.model.columns.length-1&&this.insertColumns({index:this.model.columns.length-1,count:e.c1+l-this.model.columns.length,after:!0});const c=a>0&&l>0&&e.size.rows%a==0&&e.size.columns%l==0,h=Math.min(c?e.r2:e.r1+a-1,this.model.rows.length-1),d=Math.min(c?e.c2:e.c1+l-1,this.model.columns.length-1);for(let n=e.r1;n<=h;n++){const r=(n-e.r1)%a;for(let a=e.c1;a<=d;a++){const l=this.model.rows[n].cell(a);if(!l.editable)continue;const c=(a-e.c1)%t[r].length;if(s&&q(t[r][c])){const e={};s.forEach((i=>{e[i]=t[r][c][i]})),l.prefersDisplayValue||(e.dv=void 0),o.push(e)}else o.push(t[r][c]);i.push(l)}}this.updateCells(i,o,!0),this.grid.rendering.updateCells(i,!0)}pasteText(t){this.pasteMatrix(sn(t))}async paste(){this.grid.selecting.hideCopySelector();try{const t=await navigator.clipboard.read();if(0==t.length)return;const e=t[0];if(e.types.includes(ox.CUSTOM_CLIPBOARD_TYPE)){const t=await e.getType(ox.CUSTOM_CLIPBOARD_TYPE);this.pasteMatrix(JSON.parse(await t.text()))}else if(e.types.includes("text/plain")){const t=await e.getType("text/plain");this.pasteText(await t.text())}}catch(t){return void this.grid.logger.error("paste rejected")}}openComments(t){setTimeout((()=>{this.grid.comment.attachTo(this.grid.table.getCellByCellModel(t),t,!0)}),100)}undo(){let t;const[e]=this.grid.history.pop();if(e)switch(e.type){case"value":t=e.addresses.map((t=>this.model.getCellByA1(t))),this.updateCells(t,e.oldProps,!0,!0),this.grid.rendering.updateCells(t,!0);break;case"insert_column":e.newValues.forEach(((t,i)=>this.grid.editing.deleteColumns({index:mv(e.addresses[i]),count:1,dispatchEvent:!0,fromHistory:!0})));break;case"insert_row":e.newValues.forEach(((t,i)=>this.grid.editing.deleteRows({index:pv(e.addresses[i]),count:1,dispatchEvent:!0,fromHistory:!0})))}}redo(){let t;const[e]=this.grid.history.pop2();if(e)switch(e.type){case"value":t=e.addresses.map((t=>this.model.getCellByA1(t))),this.updateCells(t,e.newValues,!0,!0),this.grid.rendering.updateCells(t,!0);break;case"insert_column":e.newValues.forEach(((t,i)=>this.grid.editing.insertColumns({index:mv(e.addresses[i]),count:1,dispatchEvent:!0,fromHistory:!0})));break;case"insert_row":e.newValues.forEach(((t,i)=>this.grid.editing.insertRows({index:pv(e.addresses[i]),count:1,dispatchEvent:!0,fromHistory:!0})))}}startColumnMoving(t){this.columnMoving=!0}}class Bx extends yx{constructor(t,e){super(`filter.${t}`,e)}}class Fx extends os{get currentValue(){return this.filterModel.get(this.columnModel.index)?.term}constructor(){super(),this.addEventListener("keydown",(t=>t.stopPropagation())),this.addEventListener("mousedown",(t=>t.stopPropagation())),this.addEventListener("pointerdown",(t=>t.stopPropagation())),this.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("dblclick",(t=>t.stopPropagation()))}filter(t){this.filterModel.filter({term:t,c:this.columnModel.index}),this.dispatchEvent(new Bx("apply",{filter:Array.from(this.filterModel.settings.values())}))}clearFilter(){this.filterModel.filter({term:null,c:this.columnModel.index}),this.dispatchEvent(new Bx("apply",{filter:Array.from(this.filterModel.settings.values())}))}activate(){this.dispatchEvent(new Bx("activate"))}deactivate(){this.dispatchEvent(new Bx("deactivate"))}}Fx.styles=[Kn`
|
|
3169
3169
|
:host {
|
|
3170
3170
|
height: 100%;
|
|
3171
3171
|
border: 1px solid var(--og-accent-color);
|
|
@@ -8211,4 +8211,4 @@ milkdown-block-handle {
|
|
|
8211
8211
|
`:null}
|
|
8212
8212
|
</div>
|
|
8213
8213
|
</og-panel>
|
|
8214
|
-
`: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?dv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?dv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=dv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new In({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Lz.styles=[zz],Rz([ls({type:Object})],Lz.prototype,"model",void 0),Rz([cs()],Lz.prototype,"editTitle",void 0),Rz([ds("#title")],Lz.prototype,"titleInput",void 0),Rz([ds("#type")],Lz.prototype,"typeList",void 0),Rz([ds("#dataRange")],Lz.prototype,"dataRangeInput",void 0),Rz([ds("#seriesRange")],Lz.prototype,"seriesRangeInput",void 0),Rz([ds("#categoryRange")],Lz.prototype,"categoryRangeInput",void 0),Lz=Rz([rs("og-plugin-chart-form")],Lz);const Iz=ma().themes.get("dark");Object.assign(Iz.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 Hz=ma().themes.get("light");Object.assign(Hz.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 Tz=i(2439),Az=i(8022),Oz=i(6158),$z=i(127),Dz=i(4505),Nz=i(8659),Pz=i(397),jz=i(930),Vz=i(9723),Bz=i(6343),Fz=i(4582),Wz=i(6127),Uz=i(8238),Gz=i(7362),Yz=i(452),qz=i(5390),Zz=i(3368),Xz=i(6288),Qz=i(7513),Kz=i(1386),Jz=i(5764),tR=i(1261),eR=i(3071),iR=i(3285),oR=i(2356),nR=i(6780),rR=i(8542),sR=i(8385),aR=i(1025),lR=i(2034),cR=i(8113),hR=i(1821),dR=i(7212),uR=i(2583),pR=i(5360),gR=i(2377),mR=i(2864),fR=i(7998),vR=i(4101),bR=i(7813),yR=i(5037),wR=i(7005),xR=i(9626),kR=i(9517),CR=i(1504),MR=i(3838),_R=i(4935),SR=i(7699),ER=i(3322),zR=i(5757),RR=i(536),LR=i(1673),IR=i(8736),HR=i(196),TR=i(5133),AR=i(6092),OR=i(791),$R=i(5927),DR=i(1802),NR=i(9511),PR=i(6267),jR=i(1072),VR=i(4331),BR=i(8644),FR=i(2704),WR=i(2419),UR=i(6363),GR=i(5236),YR=i(3499),qR=i(3811),ZR=i(1953),XR=i(4729),QR=i(8964),KR=i(8540),JR=i(8752),tL=i(8783),eL=i(8270),iL=i(7261),oL=i(9231),nL=i(4555),rL=i(5293),sL=i(6981),aL=i(5268),lL=i(2680),cL=i(789),hL=i(4373),dL=i(436),uL=i(8573),pL=i(1808),gL=i(3247),mL=i(5143),fL=i(2415),vL=i(2561),bL=i(5726),yL=i(7436),wL=i(4201),xL=i(8248),kL=i(6433),CL=i(2698),ML=i(979),_L=i(9358),SL=i(9176),EL=i(1239),zL=i(4218),RL=i(8377),LL=i(3740),IL=i(5379),HL=i(9974),TL=i(8955),AL=i(3559),OL=i(809),$L=i(8014),DL=i(8265),NL=i(3300),PL=i(8724),jL=i(8033),VL=i(7700),BL=i(5741),FL=i(3478),WL=i(512),UL=i(499),GL=i(8680),YL=i(9646),qL=i(9432),ZL=i(2841),XL=i(75),QL=i(9256),KL=i(444),JL=i(5633),tI=i(3788),eI=i(3573),iI=i(9948),oI=i(1836),nI=i(7029),rI=i(8532),sI=i(6639),aI=i(1633),lI=i(9805),cI=i(2171),hI=i(875),dI=i(9595),uI=i(3894),pI=i(2803),gI=i(7765),mI=i(8804),fI=i(8654),vI=i(257),bI=i(5844),yI=i(9651),wI=i(760),xI=i(9518),kI=i(4585),CI=i(1769),MI=i(643),_I=i(5156),SI=i(822),EI=i(8249),zI=i(3434),RI=i(9314),LI=i(3093),II=i(7721),HI=i(588),TI=i(7645),AI=i(7148),OI=i(6795),$I=i(7047),DI=i(9428),NI=i(1879),PI=i(9779),jI=i(2476),VI=i(9648),BI=i(2896),FI=i(6817),WI=i(5196),UI=i(2762),GI=i(5981),YI=i(9014),qI=i(2611),ZI=i(7946),XI=i(6301),QI=i(8020),KI=i(3987),JI=i(3192),tH=i(8796),eH=i(2489),iH=i(7324),oH=i(6069),nH=i(4155),rH=i(6977),sH=i(8055),aH=i(2653),lH=i(9492),cH=i(4334),hH=i(6804),dH=i(9954),uH=i(2211),pH=i(5211),gH=i(1519),mH=i(6204),fH=i(5501),vH=i(5244),bH=i(9742),yH=i(1552),wH=i(1330),xH=i(2596),kH=i(5184),CH=i(7675),MH=i(1513),_H=i(9396),SH=i(7673),EH=i(244),zH=i(1187),RH=i(1736),LH=i(4390),IH=i(7106),HH=i(2096),TH=i(9991),AH=i(5629),OH=i(3386),$H=i(6651),DH=i(1684),NH=i(3849),PH=i(2582),jH=i(8569),VH=i(2955),BH=i(9100),FH=i(7381),WH=i(9190),UH=i(4071),GH=i(8e3),YH=i(4633),qH=i(4374),ZH=i(486),XH=i(3680),QH=i(9999),KH=i(2830),JH=i(5255),tT=i(6021),eT=i(2214),iT=i(8497),oT=i(2052),nT=i(5327),rT=i(8701),sT=i(8722),aT=i(7325),lT=i(2445);const cT=[Tz.mw,Az.mw,Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Vz.mw,Fz.mw,Bz.mw,Wz.mw,Uz.mw,Gz.mw,Yz.mw,qz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,sR.mw,aR.mw,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,CR.mw,kR.mw,MR.mw,_R.mw,SR.mw,ER.mw,zR.mw,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,DR.mw,NR.mw,PR.mw,jR.mw,VR.mw,BR.mw,FR.mw,WR.mw,UR.mw,GR.mw,YR.mw,qR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tL.mw,eL.mw,$R.mw,iL.mw,oL.mw,nL.mw,rL.mw,sL.mw,aL.mw,lL.mw,cL.mw,hL.mw,dL.mw,uL.mw,pL.mw,gL.mw,mL.mw,fL.mw,vL.mw,bL.mw,yL.mw,wL.mw,xL.mw,kL.mw,CL.mw,ML.mw,_L.mw,SL.mw,EL.mw,zL.mw,RL.mw,LL.mw,IL.mw,HL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,NL.mw,PL.mw,jL.mw,VL.mw,BL.mw,lR.mw,FL.mw,WL.mw,UL.mw,GL.mw,YL.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,nI.mw,oI.mw,sI.mw,rI.mw,aI.mw,lI.mw,cI.mw,hI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,wI.mw,xI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,zI.mw,RI.mw,LI.mw,OI.mw,$I.mw,DI.mw,NI.mw,PI.mw,jI.mw,VI.mw,BI.mw,fI.mw,vI.mw,yI.mw,bI.mw,FI.mw,WI.mw,UI.mw,GI.mw,YI.mw,qI.mw,ZI.mw,XI.mw,II.mw,HI.mw,TI.mw,AI.mw,KI.mw,JI.mw,tH.mw,eH.mw,iH.mw,oH.mw,nH.mw,rH.mw,sH.mw,aH.mw,lH.mw,cH.mw,hH.mw,dH.mw,uH.mw,pH.mw,gH.mw,mH.mw,fH.mw,QI.mw,vH.mw,bH.mw,yH.mw,wH.mw,xH.mw,kH.mw,CH.mw,MH.mw,_H.mw,SH.mw,EH.mw,zH.mw,RH.mw,LH.mw,IH.mw,HH.mw,TH.mw,AH.mw,OH.mw,$H.mw,DH.mw,NH.mw,PH.mw,jH.mw,VH.mw,BH.mw,FH.mw,WH.mw,UH.mw,GH.mw,YH.mw,qH.mw,ZH.mw,XH.mw,QH.mw,KH.mw,JH.mw,tT.mw,eT.mw,iT.mw,oT.mw,EI.mw,nT.mw,rT.mw,sT.mw,aT.mw,lT.mw],hT={xlsx:j,charts:V},dT={name:"@omegagrid/bundle",version:"0.6.
|
|
8214
|
+
`: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?dv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?dv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=dv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new In({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};Lz.styles=[zz],Rz([ls({type:Object})],Lz.prototype,"model",void 0),Rz([cs()],Lz.prototype,"editTitle",void 0),Rz([ds("#title")],Lz.prototype,"titleInput",void 0),Rz([ds("#type")],Lz.prototype,"typeList",void 0),Rz([ds("#dataRange")],Lz.prototype,"dataRangeInput",void 0),Rz([ds("#seriesRange")],Lz.prototype,"seriesRangeInput",void 0),Rz([ds("#categoryRange")],Lz.prototype,"categoryRangeInput",void 0),Lz=Rz([rs("og-plugin-chart-form")],Lz);const Iz=ma().themes.get("dark");Object.assign(Iz.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 Hz=ma().themes.get("light");Object.assign(Hz.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 Tz=i(2439),Az=i(8022),Oz=i(6158),$z=i(127),Dz=i(4505),Nz=i(8659),Pz=i(397),jz=i(930),Vz=i(9723),Bz=i(6343),Fz=i(4582),Wz=i(6127),Uz=i(8238),Gz=i(7362),Yz=i(452),qz=i(5390),Zz=i(3368),Xz=i(6288),Qz=i(7513),Kz=i(1386),Jz=i(5764),tR=i(1261),eR=i(3071),iR=i(3285),oR=i(2356),nR=i(6780),rR=i(8542),sR=i(8385),aR=i(1025),lR=i(2034),cR=i(8113),hR=i(1821),dR=i(7212),uR=i(2583),pR=i(5360),gR=i(2377),mR=i(2864),fR=i(7998),vR=i(4101),bR=i(7813),yR=i(5037),wR=i(7005),xR=i(9626),kR=i(9517),CR=i(1504),MR=i(3838),_R=i(4935),SR=i(7699),ER=i(3322),zR=i(5757),RR=i(536),LR=i(1673),IR=i(8736),HR=i(196),TR=i(5133),AR=i(6092),OR=i(791),$R=i(5927),DR=i(1802),NR=i(9511),PR=i(6267),jR=i(1072),VR=i(4331),BR=i(8644),FR=i(2704),WR=i(2419),UR=i(6363),GR=i(5236),YR=i(3499),qR=i(3811),ZR=i(1953),XR=i(4729),QR=i(8964),KR=i(8540),JR=i(8752),tL=i(8783),eL=i(8270),iL=i(7261),oL=i(9231),nL=i(4555),rL=i(5293),sL=i(6981),aL=i(5268),lL=i(2680),cL=i(789),hL=i(4373),dL=i(436),uL=i(8573),pL=i(1808),gL=i(3247),mL=i(5143),fL=i(2415),vL=i(2561),bL=i(5726),yL=i(7436),wL=i(4201),xL=i(8248),kL=i(6433),CL=i(2698),ML=i(979),_L=i(9358),SL=i(9176),EL=i(1239),zL=i(4218),RL=i(8377),LL=i(3740),IL=i(5379),HL=i(9974),TL=i(8955),AL=i(3559),OL=i(809),$L=i(8014),DL=i(8265),NL=i(3300),PL=i(8724),jL=i(8033),VL=i(7700),BL=i(5741),FL=i(3478),WL=i(512),UL=i(499),GL=i(8680),YL=i(9646),qL=i(9432),ZL=i(2841),XL=i(75),QL=i(9256),KL=i(444),JL=i(5633),tI=i(3788),eI=i(3573),iI=i(9948),oI=i(1836),nI=i(7029),rI=i(8532),sI=i(6639),aI=i(1633),lI=i(9805),cI=i(2171),hI=i(875),dI=i(9595),uI=i(3894),pI=i(2803),gI=i(7765),mI=i(8804),fI=i(8654),vI=i(257),bI=i(5844),yI=i(9651),wI=i(760),xI=i(9518),kI=i(4585),CI=i(1769),MI=i(643),_I=i(5156),SI=i(822),EI=i(8249),zI=i(3434),RI=i(9314),LI=i(3093),II=i(7721),HI=i(588),TI=i(7645),AI=i(7148),OI=i(6795),$I=i(7047),DI=i(9428),NI=i(1879),PI=i(9779),jI=i(2476),VI=i(9648),BI=i(2896),FI=i(6817),WI=i(5196),UI=i(2762),GI=i(5981),YI=i(9014),qI=i(2611),ZI=i(7946),XI=i(6301),QI=i(8020),KI=i(3987),JI=i(3192),tH=i(8796),eH=i(2489),iH=i(7324),oH=i(6069),nH=i(4155),rH=i(6977),sH=i(8055),aH=i(2653),lH=i(9492),cH=i(4334),hH=i(6804),dH=i(9954),uH=i(2211),pH=i(5211),gH=i(1519),mH=i(6204),fH=i(5501),vH=i(5244),bH=i(9742),yH=i(1552),wH=i(1330),xH=i(2596),kH=i(5184),CH=i(7675),MH=i(1513),_H=i(9396),SH=i(7673),EH=i(244),zH=i(1187),RH=i(1736),LH=i(4390),IH=i(7106),HH=i(2096),TH=i(9991),AH=i(5629),OH=i(3386),$H=i(6651),DH=i(1684),NH=i(3849),PH=i(2582),jH=i(8569),VH=i(2955),BH=i(9100),FH=i(7381),WH=i(9190),UH=i(4071),GH=i(8e3),YH=i(4633),qH=i(4374),ZH=i(486),XH=i(3680),QH=i(9999),KH=i(2830),JH=i(5255),tT=i(6021),eT=i(2214),iT=i(8497),oT=i(2052),nT=i(5327),rT=i(8701),sT=i(8722),aT=i(7325),lT=i(2445);const cT=[Tz.mw,Az.mw,Oz.mw,$z.mw,Dz.mw,Nz.mw,Pz.mw,jz.mw,Vz.mw,Fz.mw,Bz.mw,Wz.mw,Uz.mw,Gz.mw,Yz.mw,qz.mw,Zz.mw,Xz.mw,Qz.mw,Kz.mw,Jz.mw,tR.mw,eR.mw,iR.mw,oR.mw,nR.mw,rR.mw,sR.mw,aR.mw,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,CR.mw,kR.mw,MR.mw,_R.mw,SR.mw,ER.mw,zR.mw,RR.mw,LR.mw,IR.mw,HR.mw,TR.mw,AR.mw,OR.mw,DR.mw,NR.mw,PR.mw,jR.mw,VR.mw,BR.mw,FR.mw,WR.mw,UR.mw,GR.mw,YR.mw,qR.mw,ZR.mw,XR.mw,QR.mw,KR.mw,JR.mw,tL.mw,eL.mw,$R.mw,iL.mw,oL.mw,nL.mw,rL.mw,sL.mw,aL.mw,lL.mw,cL.mw,hL.mw,dL.mw,uL.mw,pL.mw,gL.mw,mL.mw,fL.mw,vL.mw,bL.mw,yL.mw,wL.mw,xL.mw,kL.mw,CL.mw,ML.mw,_L.mw,SL.mw,EL.mw,zL.mw,RL.mw,LL.mw,IL.mw,HL.mw,TL.mw,AL.mw,OL.mw,$L.mw,DL.mw,NL.mw,PL.mw,jL.mw,VL.mw,BL.mw,lR.mw,FL.mw,WL.mw,UL.mw,GL.mw,YL.mw,qL.mw,ZL.mw,XL.mw,QL.mw,KL.mw,JL.mw,tI.mw,eI.mw,iI.mw,nI.mw,oI.mw,sI.mw,rI.mw,aI.mw,lI.mw,cI.mw,hI.mw,dI.mw,uI.mw,pI.mw,gI.mw,mI.mw,wI.mw,xI.mw,kI.mw,CI.mw,MI.mw,_I.mw,SI.mw,zI.mw,RI.mw,LI.mw,OI.mw,$I.mw,DI.mw,NI.mw,PI.mw,jI.mw,VI.mw,BI.mw,fI.mw,vI.mw,yI.mw,bI.mw,FI.mw,WI.mw,UI.mw,GI.mw,YI.mw,qI.mw,ZI.mw,XI.mw,II.mw,HI.mw,TI.mw,AI.mw,KI.mw,JI.mw,tH.mw,eH.mw,iH.mw,oH.mw,nH.mw,rH.mw,sH.mw,aH.mw,lH.mw,cH.mw,hH.mw,dH.mw,uH.mw,pH.mw,gH.mw,mH.mw,fH.mw,QI.mw,vH.mw,bH.mw,yH.mw,wH.mw,xH.mw,kH.mw,CH.mw,MH.mw,_H.mw,SH.mw,EH.mw,zH.mw,RH.mw,LH.mw,IH.mw,HH.mw,TH.mw,AH.mw,OH.mw,$H.mw,DH.mw,NH.mw,PH.mw,jH.mw,VH.mw,BH.mw,FH.mw,WH.mw,UH.mw,GH.mw,YH.mw,qH.mw,ZH.mw,XH.mw,QH.mw,KH.mw,JH.mw,tT.mw,eT.mw,iT.mw,oT.mw,EI.mw,nT.mw,rT.mw,sT.mw,aT.mw,lT.mw],hT={xlsx:j,charts:V},dT={name:"@omegagrid/bundle",version:"0.6.35"};ma().activate("light"),Oh.styleDefault="fal",$h.add(...cT)})(),window.Omegagrid=o})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omegagrid/bundle",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.35",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Distribution package for Omegagrid library",
|
|
6
6
|
"main": "omegagrid.js",
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"@fortawesome/fontawesome-svg-core": "6.4.2",
|
|
20
20
|
"@fortawesome/pro-light-svg-icons": "6.4.2",
|
|
21
21
|
"@fortawesome/pro-solid-svg-icons": "6.4.2",
|
|
22
|
-
"@omegagrid/bucket": "^0.6.
|
|
23
|
-
"@omegagrid/calendar": "^0.6.
|
|
24
|
-
"@omegagrid/code": "^0.6.
|
|
25
|
-
"@omegagrid/commands": "^0.6.
|
|
26
|
-
"@omegagrid/core": "^0.6.
|
|
27
|
-
"@omegagrid/dialog": "^0.6.
|
|
28
|
-
"@omegagrid/editor": "^0.6.
|
|
29
|
-
"@omegagrid/form": "^0.6.
|
|
30
|
-
"@omegagrid/grid": "^0.6.
|
|
31
|
-
"@omegagrid/localize": "^0.6.
|
|
32
|
-
"@omegagrid/markdown": "^0.6.
|
|
33
|
-
"@omegagrid/plugin-charts": "^0.6.
|
|
34
|
-
"@omegagrid/plugin-xlsx": "^0.6.
|
|
35
|
-
"@omegagrid/statusbar": "^0.6.
|
|
36
|
-
"@omegagrid/tabs": "^0.6.
|
|
37
|
-
"@omegagrid/toolbar": "^0.6.
|
|
38
|
-
"@omegagrid/tree": "^0.6.
|
|
22
|
+
"@omegagrid/bucket": "^0.6.35",
|
|
23
|
+
"@omegagrid/calendar": "^0.6.35",
|
|
24
|
+
"@omegagrid/code": "^0.6.35",
|
|
25
|
+
"@omegagrid/commands": "^0.6.35",
|
|
26
|
+
"@omegagrid/core": "^0.6.35",
|
|
27
|
+
"@omegagrid/dialog": "^0.6.35",
|
|
28
|
+
"@omegagrid/editor": "^0.6.35",
|
|
29
|
+
"@omegagrid/form": "^0.6.35",
|
|
30
|
+
"@omegagrid/grid": "^0.6.35",
|
|
31
|
+
"@omegagrid/localize": "^0.6.35",
|
|
32
|
+
"@omegagrid/markdown": "^0.6.35",
|
|
33
|
+
"@omegagrid/plugin-charts": "^0.6.35",
|
|
34
|
+
"@omegagrid/plugin-xlsx": "^0.6.35",
|
|
35
|
+
"@omegagrid/statusbar": "^0.6.35",
|
|
36
|
+
"@omegagrid/tabs": "^0.6.35",
|
|
37
|
+
"@omegagrid/toolbar": "^0.6.35",
|
|
38
|
+
"@omegagrid/tree": "^0.6.35",
|
|
39
39
|
"lit": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|