@omegagrid/bundle 0.6.6 → 0.6.7
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 -6
- package/package.json +18 -18
package/omegagrid.js
CHANGED
|
@@ -2907,10 +2907,6 @@
|
|
|
2907
2907
|
|
|
2908
2908
|
td>div, th>div {
|
|
2909
2909
|
overflow: hidden;
|
|
2910
|
-
white-space: pre;
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
th.vtree>div, th.vtree-line>div, th.htree>div, th.htree-line>div {
|
|
2914
2910
|
white-space: nowrap;
|
|
2915
2911
|
}
|
|
2916
2912
|
|
|
@@ -3636,7 +3632,7 @@
|
|
|
3636
3632
|
</div>
|
|
3637
3633
|
</og-container>
|
|
3638
3634
|
</div>
|
|
3639
|
-
`,this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("mouseover",this._onMouseOver)}add(){this.items.unshift(new ew({text:"",author:this.cellModel.model.options.user})),this.startEdit(0)}startEdit(t){this.editIndex=t,this.requestUpdate()}endEdit(){this.commit(),this.editIndex=-1}delete(t){this.items.splice(t,1),this.requestUpdate(),this.dispatchEvent(new uk("commit",this.items,null,null,this.cellModel))}commit(){this.editItem&&this.editItem.text!=this.editBody.innerText&&(this.editItem.text=this.editBody.innerText,this.editItem.date=new Date,this.dispatchEvent(new uk("commit",this.items,this.editItem,this.editIndex,this.cellModel)))}disconnectedCallback(){this.destroy()}destroy(){this._connector?.parentElement&&this._connector.remove()}updated(){this.editBody&&(this.editBody.focus(),this.editBody.addEventListener("blur",(()=>this.endEdit()),{once:!0})),this.items?.forEach(((t,e)=>{const i=this.bodies[e];Y(this.cellModel?.commentRenderer)?(i.style.whiteSpace="normal",this.cellModel?.commentRenderer(i,t,this.cellModel)):(i.style.whiteSpace="pre-wrap",i.textContent=t?.text??"")}))}canEdit(t){return this.cellModel?.commentable&&!this.items[t].readOnly}get canAdd(){return this.cellModel?.commentable}deatach(t=0){this.isAttached&&(this._hideTimerDisabled||this._hideTimer||(this._hideTimer=window.setTimeout((()=>{this._attachedTo=null,this.hide(),this._connector&&(this._connector.style.display="none"),this.parentElement&&this.parentElement.removeEventListener("mousemove",this._onParentMouseDown)}),t)))}get zIndex(){return this.cellModel?.model?.options?.comments?.zIndex??Om.DEFAULT_OPTIONS.comments.zIndex}updateConnector(){if(!this.isAttached)return;this._connector||(this._connector=document.createElementNS("http://www.w3.org/2000/svg","svg"),document.body.appendChild(this._connector));const t=Et(this.attachedTo,document.body),e=t.left+this._attachedTo.offsetWidth<this.offsetLeft+this.offsetWidth/2,i=t.top<this.offsetTop+this.offsetHeight/2,o=e?t.left+this._attachedTo.offsetWidth:this.offsetLeft+this.offsetWidth/2,n=i?t.top:this.offsetTop+this.offsetHeight/2,r=e?this.offsetLeft+this.offsetWidth/2:t.left+this._attachedTo.offsetWidth,s=i?this.offsetTop+this.offsetHeight/2:t.top;this._connector.setAttribute("width",(r-o).toString()),this._connector.setAttribute("height",(s-n).toString()),this._connector.style.pointerEvents="none",this._connector.style.zIndex=(this.zIndex-1).toString(),Ot(this._connector,{l:o,t:n}),this._connector.style.display="block",this._connector.innerHTML=`\n\t\t\t<line \n\t\t\t\tx1="${e?0:r-o}" y1="${i?0:s-n}" \n\t\t\t\tx2="${e?r-o:0}" y2="${i?s-n:0}" \n\t\t\t\tstroke="#8b7600" stroke-width="1"/>\n\t\t`}attachTo(t,e,i=!1){this._attachedTo=t,this.items=e.comments,this.cellModel=e,this._hideTimerDisabled=i,this._hideTimer&&window.clearTimeout(this._hideTimer),this._hideTimer=null,this.parentElement!=document.body&&document.body.appendChild(this),document.body.addEventListener("mousedown",this._onParentMouseDown),this.show();const o=Et(t,document.body);Ot(this,{l:o.left+t.offsetWidth+e.model.options.comments.offsetX,t:o.top+e.model.options.comments.offsetY}),this.style.zIndex=this.zIndex.toString(),this.updateConnector(),i&&this.startEdit(0)}};pk.styles=[hk],dk([os({type:Array})],pk.prototype,"items",void 0),dk([ns()],pk.prototype,"cellModel",void 0),dk([ns()],pk.prototype,"editIndex",void 0),dk([ls(".comment-body")],pk.prototype,"bodies",void 0),pk=dk([ts("og-grid-comment")],pk);const gk=(t,e)=>{for(const i in e)t.style[i]=e[i]};function fk(t,e){e.hasError&&(t.innerHTML=`<span style="color:#fff;background:#f00">!${e.error}</span>`),e.cssStyle&&gk(t,e.cssStyle),e.hasSparkline&&function(t,e){const i=gt("og-grid-sparkline");i.cell=e,t.appendChild(i)}(t,e);let i=e.calculatedIndent;if(i>0&&(i*=e.model.options.cellIndentFactor??1),e.column.levelButtons){if(e.row.hasChildren){const o=new Ad;o.state=e.row.collapsed?"closed":"open",o.addEventListener("toggle",(()=>this.grid.rendering.toggleRow(e.row.index))),o.addEventListener("click",(t=>t.stopPropagation())),t.appendChild(o),Ot(o,{l:4+i,t:(e.model.options.rowHeight||20)/2-6})}i+=20}if(i>0&&(t.style.paddingLeft=Rt(i)),e.hasComment||e.hasTooltip||e.clickable&&(null!==e.value||e.model.options.emptyClickable)){const i=gt("div");i.className="crn",t.appendChild(i),e.hasComment&&t.classList.add("cmt"),e.hasTooltip&&t.classList.add("tt"),e.clickable&&t.classList.add("clc")}if(e.composedStyle&&e.composedStyle.icon){const i=gt("og-icon");i.icon=e.composedStyle.icon,Ot(i,{l:4,t:2}),t.appendChild(i)}const o=e.afterRenderer;return o&&o(t,e),t}function mk(t){t.tooltip?.hide()}function vk(t,e){fk.call(this,t,e),t.style.textAlign="center",t.innerHTML="";const i=gt("og-checkbox");return i.addEventListener("mousedown",(t=>{t.stopPropagation();const o=this.grid,n="checked"!=i.value;o.editing.updateCell(e,n),i.value=n?"checked":"none"})),i.style.cursor="pointer",i.value=e.value?"checked":"none",t.appendChild(i),t}function bk(t,e){t=fk.call(this,t,e);try{t.textContent=e.value?e.model.options.dateFormatter(e.value,e.format):""}catch(e){t.textContent="!invalid format"}return t}function yk(t,e,i={default:!0}){if(i.default)if(null!=e.displayValue)t.textContent=e.displayValue;else{const i=e.valueFormatter;t.textContent=(i?i(e.value):e.value)??""}const o=gt("div");return o.className="triangle-down",Ot(o,{t:8,r:8}),t.appendChild(o),fk.call(this,t,e)}function wk(t,e){e.cssStyle&&e.cssStyle.textAlign||(t.style.textAlign="right");try{t.innerHTML=e.formattedValue}catch(i){t.textContent=(e.value??"").toString()}return fk.call(this,t,e)}function xk(t,e){if(e.hasDisplayValue)t.textContent=e.displayValue;else if(null!=e.value){const i=e.valueFormatter;t.textContent=i?i(e.value):e.value??""}else t.textContent="";return
|
|
3635
|
+
`,this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("mouseover",this._onMouseOver)}add(){this.items.unshift(new ew({text:"",author:this.cellModel.model.options.user})),this.startEdit(0)}startEdit(t){this.editIndex=t,this.requestUpdate()}endEdit(){this.commit(),this.editIndex=-1}delete(t){this.items.splice(t,1),this.requestUpdate(),this.dispatchEvent(new uk("commit",this.items,null,null,this.cellModel))}commit(){this.editItem&&this.editItem.text!=this.editBody.innerText&&(this.editItem.text=this.editBody.innerText,this.editItem.date=new Date,this.dispatchEvent(new uk("commit",this.items,this.editItem,this.editIndex,this.cellModel)))}disconnectedCallback(){this.destroy()}destroy(){this._connector?.parentElement&&this._connector.remove()}updated(){this.editBody&&(this.editBody.focus(),this.editBody.addEventListener("blur",(()=>this.endEdit()),{once:!0})),this.items?.forEach(((t,e)=>{const i=this.bodies[e];Y(this.cellModel?.commentRenderer)?(i.style.whiteSpace="normal",this.cellModel?.commentRenderer(i,t,this.cellModel)):(i.style.whiteSpace="pre-wrap",i.textContent=t?.text??"")}))}canEdit(t){return this.cellModel?.commentable&&!this.items[t].readOnly}get canAdd(){return this.cellModel?.commentable}deatach(t=0){this.isAttached&&(this._hideTimerDisabled||this._hideTimer||(this._hideTimer=window.setTimeout((()=>{this._attachedTo=null,this.hide(),this._connector&&(this._connector.style.display="none"),this.parentElement&&this.parentElement.removeEventListener("mousemove",this._onParentMouseDown)}),t)))}get zIndex(){return this.cellModel?.model?.options?.comments?.zIndex??Om.DEFAULT_OPTIONS.comments.zIndex}updateConnector(){if(!this.isAttached)return;this._connector||(this._connector=document.createElementNS("http://www.w3.org/2000/svg","svg"),document.body.appendChild(this._connector));const t=Et(this.attachedTo,document.body),e=t.left+this._attachedTo.offsetWidth<this.offsetLeft+this.offsetWidth/2,i=t.top<this.offsetTop+this.offsetHeight/2,o=e?t.left+this._attachedTo.offsetWidth:this.offsetLeft+this.offsetWidth/2,n=i?t.top:this.offsetTop+this.offsetHeight/2,r=e?this.offsetLeft+this.offsetWidth/2:t.left+this._attachedTo.offsetWidth,s=i?this.offsetTop+this.offsetHeight/2:t.top;this._connector.setAttribute("width",(r-o).toString()),this._connector.setAttribute("height",(s-n).toString()),this._connector.style.pointerEvents="none",this._connector.style.zIndex=(this.zIndex-1).toString(),Ot(this._connector,{l:o,t:n}),this._connector.style.display="block",this._connector.innerHTML=`\n\t\t\t<line \n\t\t\t\tx1="${e?0:r-o}" y1="${i?0:s-n}" \n\t\t\t\tx2="${e?r-o:0}" y2="${i?s-n:0}" \n\t\t\t\tstroke="#8b7600" stroke-width="1"/>\n\t\t`}attachTo(t,e,i=!1){this._attachedTo=t,this.items=e.comments,this.cellModel=e,this._hideTimerDisabled=i,this._hideTimer&&window.clearTimeout(this._hideTimer),this._hideTimer=null,this.parentElement!=document.body&&document.body.appendChild(this),document.body.addEventListener("mousedown",this._onParentMouseDown),this.show();const o=Et(t,document.body);Ot(this,{l:o.left+t.offsetWidth+e.model.options.comments.offsetX,t:o.top+e.model.options.comments.offsetY}),this.style.zIndex=this.zIndex.toString(),this.updateConnector(),i&&this.startEdit(0)}};pk.styles=[hk],dk([os({type:Array})],pk.prototype,"items",void 0),dk([ns()],pk.prototype,"cellModel",void 0),dk([ns()],pk.prototype,"editIndex",void 0),dk([ls(".comment-body")],pk.prototype,"bodies",void 0),pk=dk([ts("og-grid-comment")],pk);const gk=(t,e)=>{for(const i in e)t.style[i]=e[i]};function fk(t,e){e.hasError&&(t.innerHTML=`<span style="color:#fff;background:#f00">!${e.error}</span>`),e.cssStyle&&gk(t,e.cssStyle),e.hasSparkline&&function(t,e){const i=gt("og-grid-sparkline");i.cell=e,t.appendChild(i)}(t,e);let i=e.calculatedIndent;if(i>0&&(i*=e.model.options.cellIndentFactor??1),e.column.levelButtons){if(e.row.hasChildren){const o=new Ad;o.state=e.row.collapsed?"closed":"open",o.addEventListener("toggle",(()=>this.grid.rendering.toggleRow(e.row.index))),o.addEventListener("click",(t=>t.stopPropagation())),t.appendChild(o),Ot(o,{l:4+i,t:(e.model.options.rowHeight||20)/2-6})}i+=20}if(i>0&&(t.style.paddingLeft=Rt(i)),e.hasComment||e.hasTooltip||e.clickable&&(null!==e.value||e.model.options.emptyClickable)){const i=gt("div");i.className="crn",t.appendChild(i),e.hasComment&&t.classList.add("cmt"),e.hasTooltip&&t.classList.add("tt"),e.clickable&&t.classList.add("clc")}if(e.composedStyle&&e.composedStyle.icon){const i=gt("og-icon");i.icon=e.composedStyle.icon,Ot(i,{l:4,t:2}),t.appendChild(i)}const o=e.afterRenderer;return o&&o(t,e),t}function mk(t){t.tooltip?.hide()}function vk(t,e){fk.call(this,t,e),t.style.textAlign="center",t.innerHTML="";const i=gt("og-checkbox");return i.addEventListener("mousedown",(t=>{t.stopPropagation();const o=this.grid,n="checked"!=i.value;o.editing.updateCell(e,n),i.value=n?"checked":"none"})),i.style.cursor="pointer",i.value=e.value?"checked":"none",t.appendChild(i),t}function bk(t,e){t=fk.call(this,t,e);try{t.textContent=e.value?e.model.options.dateFormatter(e.value,e.format):""}catch(e){t.textContent="!invalid format"}return t}function yk(t,e,i={default:!0}){if(i.default)if(null!=e.displayValue)t.textContent=e.displayValue;else{const i=e.valueFormatter;t.textContent=(i?i(e.value):e.value)??""}const o=gt("div");return o.className="triangle-down",Ot(o,{t:8,r:8}),t.appendChild(o),fk.call(this,t,e)}function wk(t,e){e.cssStyle&&e.cssStyle.textAlign||(t.style.textAlign="right");try{t.innerHTML=e.formattedValue}catch(i){t.textContent=(e.value??"").toString()}return fk.call(this,t,e)}function xk(t,e){if(e.hasDisplayValue)t.textContent=e.displayValue;else if(null!=e.value){const i=e.valueFormatter;t.textContent=i?i(e.value):e.value??""}else t.textContent="";return"normal"!==(t=fk.call(this,t,e)).style.whiteSpace&&(t.style.whiteSpace="pre"),t}function kk(t,e){const i=e.value;return isNaN(i)||""===i?xk.call(this,t,e):wk.call(this,t,e)}const Ck={n:wk,t:xk,tm:bk,d:bk,dt:bk,b:vk,s:yk,m:yk,g:kk,a:function(t,e){const i=(e.editorContent??e.value)||[];t.innerHTML="";const o=this.grid;return Qr(Hr`
|
|
3640
3636
|
<div class="actions">
|
|
3641
3637
|
${cs(i,(t=>Hr`
|
|
3642
3638
|
<og-button
|
|
@@ -7923,4 +7919,4 @@ milkdown-block-handle {
|
|
|
7923
7919
|
`:null}
|
|
7924
7920
|
</div>
|
|
7925
7921
|
</og-panel>
|
|
7926
|
-
`:null,this.addEventListener("mousedown",(t=>t.stopPropagation()))}getTypeIndex(t){const e=this.types.findIndex((e=>e.type==t.type&&e.grouping==(t.grouping||"standard")));return e>-1?e:null}updateModel(){if(this.editTitle=!1,!this.model)return;this.titleInput&&(this.model.title=this.titleInput.value);const t=this.types[this.typeList.value];this.model.type=t.type,this.model.grouping=t.grouping,this.model.categoriesRange=this.categoryRangeInput?.value?iv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?iv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=iv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Ln({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};qE.styles=[UE],GE([os({type:Object})],qE.prototype,"model",void 0),GE([ns()],qE.prototype,"editTitle",void 0),GE([ss("#title")],qE.prototype,"titleInput",void 0),GE([ss("#type")],qE.prototype,"typeList",void 0),GE([ss("#dataRange")],qE.prototype,"dataRangeInput",void 0),GE([ss("#seriesRange")],qE.prototype,"seriesRangeInput",void 0),GE([ss("#categoryRange")],qE.prototype,"categoryRangeInput",void 0),qE=GE([ts("og-plugin-chart-form")],qE);const YE=ha().themes.get("dark");Object.assign(YE.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 ZE=ha().themes.get("light");Object.assign(ZE.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 XE=i(2439),QE=i(8022),KE=i(6158),JE=i(127),tz=i(4505),ez=i(8659),iz=i(397),oz=i(930),nz=i(9723),rz=i(6343),sz=i(4582),az=i(6127),lz=i(8238),cz=i(7362),hz=i(452),dz=i(5390),uz=i(3368),pz=i(6288),gz=i(7513),fz=i(1386),mz=i(5764),vz=i(1261),bz=i(3071),yz=i(3285),wz=i(2356),xz=i(6780),kz=i(8542),Cz=i(8385),Mz=i(1025),_z=i(2034),Sz=i(8113),Ez=i(1821),zz=i(7212),Lz=i(2583),Rz=i(5360),Iz=i(2377),Hz=i(2864),Tz=i(7998),Az=i(4101),Oz=i(7813),$z=i(5037),Dz=i(7005),Nz=i(9626),Pz=i(9517),jz=i(1504),Vz=i(3838),Bz=i(4935),Fz=i(7699),Wz=i(3322),Uz=i(5757),Gz=i(536),qz=i(1673),Yz=i(8736),Zz=i(196),Xz=i(5133),Qz=i(6092),Kz=i(791),Jz=i(5927),tL=i(1802),eL=i(9511),iL=i(6267),oL=i(1072),nL=i(4331),rL=i(8644),sL=i(2704),aL=i(2419),lL=i(6363),cL=i(5236),hL=i(3499),dL=i(3811),uL=i(1953),pL=i(4729),gL=i(8964),fL=i(8540),mL=i(8752),vL=i(8783),bL=i(8270),yL=i(7261),wL=i(9231),xL=i(4555),kL=i(5293),CL=i(6981),ML=i(5268),_L=i(2680),SL=i(789),EL=i(4373),zL=i(436),LL=i(8573),RL=i(1808),IL=i(3247),HL=i(5143),TL=i(2415),AL=i(2561),OL=i(5726),$L=i(7436),DL=i(4201),NL=i(8248),PL=i(6433),jL=i(2698),VL=i(979),BL=i(9358),FL=i(9176),WL=i(1239),UL=i(4218),GL=i(8377),qL=i(3740),YL=i(5379),ZL=i(9974),XL=i(8955),QL=i(3559),KL=i(809),JL=i(8014),tR=i(8265),eR=i(3300),iR=i(8724),oR=i(8033),nR=i(7700),rR=i(5741),sR=i(3478),aR=i(512),lR=i(9432),cR=i(2841),hR=i(75),dR=i(9256),uR=i(444),pR=i(5633),gR=i(3788),fR=i(3573),mR=i(9948),vR=i(1836),bR=i(7029),yR=i(8532),wR=i(6639),xR=i(1633),kR=i(9805),CR=i(2171),MR=i(875),_R=i(9595),SR=i(3894),ER=i(2803),zR=i(7765),LR=i(8804),RR=i(8654),IR=i(257),HR=i(5844),TR=i(9651),AR=i(760),OR=i(9518),$R=i(4585),DR=i(1769),NR=i(643),PR=i(5156),jR=i(822),VR=i(8249),BR=i(3434),FR=i(9314),WR=i(3093),UR=i(7721),GR=i(588),qR=i(7645),YR=i(7148),ZR=i(6795),XR=i(7047),QR=i(9428),KR=i(1879),JR=i(9779),tI=i(2476),eI=i(9648),iI=i(2896),oI=i(6817),nI=i(5196),rI=i(2762),sI=i(5981),aI=i(9014),lI=i(2611),cI=i(7946),hI=i(6301),dI=i(8020),uI=i(3987),pI=i(3192),gI=i(8796),fI=i(2489),mI=i(7324),vI=i(6069),bI=i(4155),yI=i(6977),wI=i(8055),xI=i(2653),kI=i(9492),CI=i(4334),MI=i(6804),_I=i(9954),SI=i(2211),EI=i(5211),zI=i(1519),LI=i(6204),RI=i(5501),II=i(5244),HI=i(9742),TI=i(1552),AI=i(1330),OI=i(2596),$I=i(5184),DI=i(7675),NI=i(1513),PI=i(9396),jI=i(7673),V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aR.nx,lR.w2,cR.Jt,hR.Xk,dR.Wz,uR.UR,pR.mR,gR.cb,fR.td,mR.GF,bR.xB,vR.S$,wR.fU,yR.Ot,xR.Vp,kR.HV,CR.BH,MR.Dn,_R.hy,SR.IP,ER.Nf,zR.jP,LR.AP,AR._X,OR.mu,$R.LB,DR.hS,NR.l5,PR.SI,jR.ch,BR._u,FR.ec,WR.jb,ZR.cW,XR.$f,QR.qI,KR.j3,JR.fq,tI.ao,eI.Uj,iI.GE,RR.QR,IR.DQ,TR.lE,HR.mE,oI.hp,nI.yL,rI.ub,sI.lL,aI.IN,lI.B0,cI.Ce,hI.dm,UR.h0,GR.sx,qR.HF,YR.qf,uI.jw,pI.k8,gI.Am,fI.ff,mI.s6,vI.bx,bI.pS,yI.k6,wI.q9,xI.$F,kI.gK,CI.W1,MI.QL,_I.EZ,SI.DN,EI.Jy,zI.z1,LI.Gl,RI.n2,dI.Ew,II.QL,HI.ck,TI.I2,AI.Qv,OI.CK,$I.bn,DI.bx,NI.e6,PI.yy,jI.xg,VI.AJ,BI.py,FI.I0,WI.id,UI.qp,GI.UX,qI.PA,YI.B2,ZI.It,XI.PZ,QI.aG,KI.$U,JI.S9,tH.Nb,eH.Z4,iH.qz,oH.jw,nH.cd,rH.jR,sH.qt,aH.x7,lH.oE,cH.ad,hH.IT,dH.Ts,uH.UN,pH.jb,gH.jT,fH.w9,mH.Jm,vH.CQ,VR.$6,bH.Dw,yH.nx],xH={xlsx:P,charts:j},kH={name:"@omegagrid/bundle",version:"0.6.
|
|
7922
|
+
`:null,this.addEventListener("mousedown",(t=>t.stopPropagation()))}getTypeIndex(t){const e=this.types.findIndex((e=>e.type==t.type&&e.grouping==(t.grouping||"standard")));return e>-1?e:null}updateModel(){if(this.editTitle=!1,!this.model)return;this.titleInput&&(this.model.title=this.titleInput.value);const t=this.types[this.typeList.value];this.model.type=t.type,this.model.grouping=t.grouping,this.model.categoriesRange=this.categoryRangeInput?.value?iv.fromA1(this.categoryRangeInput.value):null,this.model.seriesRange=this.seriesRangeInput?.value?iv.fromA1(this.seriesRangeInput.value):null,this.model.dataRange=iv.fromA1(this.dataRangeInput.value),this.dispatchEvent(new Ln({value:this.model}))}async updated(){this.editTitle&&this.titleInput&&(await this.titleInput.updateComplete,this.titleInput.focus(),this.titleInput.selectAll())}};qE.styles=[UE],GE([os({type:Object})],qE.prototype,"model",void 0),GE([ns()],qE.prototype,"editTitle",void 0),GE([ss("#title")],qE.prototype,"titleInput",void 0),GE([ss("#type")],qE.prototype,"typeList",void 0),GE([ss("#dataRange")],qE.prototype,"dataRangeInput",void 0),GE([ss("#seriesRange")],qE.prototype,"seriesRangeInput",void 0),GE([ss("#categoryRange")],qE.prototype,"categoryRangeInput",void 0),qE=GE([ts("og-plugin-chart-form")],qE);const YE=ha().themes.get("dark");Object.assign(YE.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 ZE=ha().themes.get("light");Object.assign(ZE.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 XE=i(2439),QE=i(8022),KE=i(6158),JE=i(127),tz=i(4505),ez=i(8659),iz=i(397),oz=i(930),nz=i(9723),rz=i(6343),sz=i(4582),az=i(6127),lz=i(8238),cz=i(7362),hz=i(452),dz=i(5390),uz=i(3368),pz=i(6288),gz=i(7513),fz=i(1386),mz=i(5764),vz=i(1261),bz=i(3071),yz=i(3285),wz=i(2356),xz=i(6780),kz=i(8542),Cz=i(8385),Mz=i(1025),_z=i(2034),Sz=i(8113),Ez=i(1821),zz=i(7212),Lz=i(2583),Rz=i(5360),Iz=i(2377),Hz=i(2864),Tz=i(7998),Az=i(4101),Oz=i(7813),$z=i(5037),Dz=i(7005),Nz=i(9626),Pz=i(9517),jz=i(1504),Vz=i(3838),Bz=i(4935),Fz=i(7699),Wz=i(3322),Uz=i(5757),Gz=i(536),qz=i(1673),Yz=i(8736),Zz=i(196),Xz=i(5133),Qz=i(6092),Kz=i(791),Jz=i(5927),tL=i(1802),eL=i(9511),iL=i(6267),oL=i(1072),nL=i(4331),rL=i(8644),sL=i(2704),aL=i(2419),lL=i(6363),cL=i(5236),hL=i(3499),dL=i(3811),uL=i(1953),pL=i(4729),gL=i(8964),fL=i(8540),mL=i(8752),vL=i(8783),bL=i(8270),yL=i(7261),wL=i(9231),xL=i(4555),kL=i(5293),CL=i(6981),ML=i(5268),_L=i(2680),SL=i(789),EL=i(4373),zL=i(436),LL=i(8573),RL=i(1808),IL=i(3247),HL=i(5143),TL=i(2415),AL=i(2561),OL=i(5726),$L=i(7436),DL=i(4201),NL=i(8248),PL=i(6433),jL=i(2698),VL=i(979),BL=i(9358),FL=i(9176),WL=i(1239),UL=i(4218),GL=i(8377),qL=i(3740),YL=i(5379),ZL=i(9974),XL=i(8955),QL=i(3559),KL=i(809),JL=i(8014),tR=i(8265),eR=i(3300),iR=i(8724),oR=i(8033),nR=i(7700),rR=i(5741),sR=i(3478),aR=i(512),lR=i(9432),cR=i(2841),hR=i(75),dR=i(9256),uR=i(444),pR=i(5633),gR=i(3788),fR=i(3573),mR=i(9948),vR=i(1836),bR=i(7029),yR=i(8532),wR=i(6639),xR=i(1633),kR=i(9805),CR=i(2171),MR=i(875),_R=i(9595),SR=i(3894),ER=i(2803),zR=i(7765),LR=i(8804),RR=i(8654),IR=i(257),HR=i(5844),TR=i(9651),AR=i(760),OR=i(9518),$R=i(4585),DR=i(1769),NR=i(643),PR=i(5156),jR=i(822),VR=i(8249),BR=i(3434),FR=i(9314),WR=i(3093),UR=i(7721),GR=i(588),qR=i(7645),YR=i(7148),ZR=i(6795),XR=i(7047),QR=i(9428),KR=i(1879),JR=i(9779),tI=i(2476),eI=i(9648),iI=i(2896),oI=i(6817),nI=i(5196),rI=i(2762),sI=i(5981),aI=i(9014),lI=i(2611),cI=i(7946),hI=i(6301),dI=i(8020),uI=i(3987),pI=i(3192),gI=i(8796),fI=i(2489),mI=i(7324),vI=i(6069),bI=i(4155),yI=i(6977),wI=i(8055),xI=i(2653),kI=i(9492),CI=i(4334),MI=i(6804),_I=i(9954),SI=i(2211),EI=i(5211),zI=i(1519),LI=i(6204),RI=i(5501),II=i(5244),HI=i(9742),TI=i(1552),AI=i(1330),OI=i(2596),$I=i(5184),DI=i(7675),NI=i(1513),PI=i(9396),jI=i(7673),VI=i(244),BI=i(1187),FI=i(1736),WI=i(4390),UI=i(7106),GI=i(2096),qI=i(9991),YI=i(5629),ZI=i(3386),XI=i(6651),QI=i(1684),KI=i(3849),JI=i(2582),tH=i(8569),eH=i(2955),iH=i(9100),oH=i(7381),nH=i(9190),rH=i(4071),sH=i(8e3),aH=i(4633),lH=i(4374),cH=i(486),hH=i(3680),dH=i(9999),uH=i(2830),pH=i(5255),gH=i(6021),fH=i(2214),mH=i(8497),vH=i(2052),bH=i(5327),yH=i(8701);const wH=[XE.w2,QE.Jt,KE.Xk,JE.Wz,tz.UR,ez.mR,iz.cb,oz.td,nz.GF,sz.xB,rz.S$,az.Ot,lz.fU,cz.Vp,hz.HV,dz.BH,uz.Dn,pz.hy,gz.IP,fz.Nf,mz.jP,vz.AP,bz._X,yz.mu,wz.LB,xz.hS,kz.l5,Cz.SI,Mz.ch,Sz._u,Ez.ec,zz.jb,Lz.cW,Rz.$f,Iz.qI,Hz.j3,Tz.fq,Az.ao,Oz.Uj,$z.GE,Dz.QR,Nz.DQ,jz.lE,Pz.mE,Vz.hp,Bz.yL,Fz.ub,Wz.lL,Uz.IN,Gz.B0,qz.Ce,Yz.dm,Zz.h0,Xz.sx,Qz.HF,Kz.qf,tL.jw,eL.k8,iL.Am,oL.ff,nL.s6,rL.bx,sL.pS,aL.k6,lL.q9,cL.$F,hL.gK,dL.W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,fH.w9,mH.Jm,vH.CQ,VR.$6,bH.Dw,yH.nx],xH={xlsx:P,charts:j},kH={name:"@omegagrid/bundle",version:"0.6.7"};ha().activate("light"),Rh.styleDefault="fal",Ih.add(...wH)})(),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.7",
|
|
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.7",
|
|
23
|
+
"@omegagrid/calendar": "^0.6.7",
|
|
24
|
+
"@omegagrid/code": "^0.6.7",
|
|
25
|
+
"@omegagrid/commands": "^0.6.7",
|
|
26
|
+
"@omegagrid/core": "^0.6.7",
|
|
27
|
+
"@omegagrid/dialog": "^0.6.7",
|
|
28
|
+
"@omegagrid/editor": "^0.6.7",
|
|
29
|
+
"@omegagrid/form": "^0.6.7",
|
|
30
|
+
"@omegagrid/grid": "^0.6.7",
|
|
31
|
+
"@omegagrid/localize": "^0.6.7",
|
|
32
|
+
"@omegagrid/markdown": "^0.6.7",
|
|
33
|
+
"@omegagrid/plugin-charts": "^0.6.7",
|
|
34
|
+
"@omegagrid/plugin-xlsx": "^0.6.7",
|
|
35
|
+
"@omegagrid/statusbar": "^0.6.7",
|
|
36
|
+
"@omegagrid/tabs": "^0.6.7",
|
|
37
|
+
"@omegagrid/toolbar": "^0.6.7",
|
|
38
|
+
"@omegagrid/tree": "^0.6.7",
|
|
39
39
|
"lit": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|