@odoo/o-spreadsheet 15.0.11 → 15.0.12

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.
@@ -26197,10 +26197,13 @@ class Popover extends owl.Component {
26197
26197
  super(...arguments);
26198
26198
  this.getters = this.env.getters;
26199
26199
  }
26200
+ get maxHeight() {
26201
+ return Math.max(0, this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1);
26202
+ }
26200
26203
  get style() {
26201
26204
  const horizontalPosition = `left:${this.horizontalPosition()}`;
26202
26205
  const verticalPosition = `top:${this.verticalPosition()}`;
26203
- const height = `max-height:${this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1}`;
26206
+ const height = `max-height:${this.maxHeight}`;
26204
26207
  return `
26205
26208
  position: absolute;
26206
26209
  z-index: 5;
@@ -26222,7 +26225,8 @@ class Popover extends owl.Component {
26222
26225
  }
26223
26226
  get shouldRenderBottom() {
26224
26227
  const { y } = this.props.position;
26225
- return y + this.props.childHeight < this.viewportDimension.height + TOPBAR_HEIGHT;
26228
+ return (y + Math.min(this.props.childHeight, this.maxHeight) <
26229
+ this.viewportDimension.height + TOPBAR_HEIGHT);
26226
26230
  }
26227
26231
  horizontalPosition() {
26228
26232
  const { x } = this.props.position;
@@ -31452,6 +31456,6 @@ exports.registries = registries;
31452
31456
  exports.setTranslationMethod = setTranslationMethod;
31453
31457
 
31454
31458
 
31455
- __info__.version = '15.0.11';
31456
- __info__.date = '2023-10-19T14:17:19.414Z';
31457
- __info__.hash = 'd1931c8';
31459
+ __info__.version = '15.0.12';
31460
+ __info__.date = '2023-11-02T09:28:12.777Z';
31461
+ __info__.hash = 'e82bd99';
@@ -4129,6 +4129,7 @@ declare class Popover extends Component<Props$d, SpreadsheetEnv> {
4129
4129
  marginTop: number;
4130
4130
  };
4131
4131
  private getters;
4132
+ get maxHeight(): number;
4132
4133
  get style(): string;
4133
4134
  private get viewportDimension();
4134
4135
  private get shouldRenderRight();
@@ -26174,10 +26174,13 @@ class Popover extends Component {
26174
26174
  super(...arguments);
26175
26175
  this.getters = this.env.getters;
26176
26176
  }
26177
+ get maxHeight() {
26178
+ return Math.max(0, this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1);
26179
+ }
26177
26180
  get style() {
26178
26181
  const horizontalPosition = `left:${this.horizontalPosition()}`;
26179
26182
  const verticalPosition = `top:${this.verticalPosition()}`;
26180
- const height = `max-height:${this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1}`;
26183
+ const height = `max-height:${this.maxHeight}`;
26181
26184
  return `
26182
26185
  position: absolute;
26183
26186
  z-index: 5;
@@ -26199,7 +26202,8 @@ class Popover extends Component {
26199
26202
  }
26200
26203
  get shouldRenderBottom() {
26201
26204
  const { y } = this.props.position;
26202
- return y + this.props.childHeight < this.viewportDimension.height + TOPBAR_HEIGHT;
26205
+ return (y + Math.min(this.props.childHeight, this.maxHeight) <
26206
+ this.viewportDimension.height + TOPBAR_HEIGHT);
26203
26207
  }
26204
26208
  horizontalPosition() {
26205
26209
  const { x } = this.props.position;
@@ -31407,6 +31411,6 @@ const helpers = {
31407
31411
  export { CommandResult, CorePlugin, DATETIME_FORMAT, DataSource, DispatchResult, Model, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, DEBUG as __DEBUG__, __info__, astToFormula, cellTypes, convertAstNodes, coreTypes, functionCache, helpers, invalidateEvaluationCommands, normalize, parse, readonlyAllowedCommands, registries, setTranslationMethod };
31408
31412
 
31409
31413
 
31410
- __info__.version = '15.0.11';
31411
- __info__.date = '2023-10-19T14:17:19.414Z';
31412
- __info__.hash = 'd1931c8';
31414
+ __info__.version = '15.0.12';
31415
+ __info__.date = '2023-11-02T09:28:12.777Z';
31416
+ __info__.hash = 'e82bd99';
@@ -26194,10 +26194,13 @@
26194
26194
  super(...arguments);
26195
26195
  this.getters = this.env.getters;
26196
26196
  }
26197
+ get maxHeight() {
26198
+ return Math.max(0, this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1);
26199
+ }
26197
26200
  get style() {
26198
26201
  const horizontalPosition = `left:${this.horizontalPosition()}`;
26199
26202
  const verticalPosition = `top:${this.verticalPosition()}`;
26200
- const height = `max-height:${this.viewportDimension.height - BOTTOMBAR_HEIGHT - SCROLLBAR_WIDTH$1}`;
26203
+ const height = `max-height:${this.maxHeight}`;
26201
26204
  return `
26202
26205
  position: absolute;
26203
26206
  z-index: 5;
@@ -26219,7 +26222,8 @@
26219
26222
  }
26220
26223
  get shouldRenderBottom() {
26221
26224
  const { y } = this.props.position;
26222
- return y + this.props.childHeight < this.viewportDimension.height + TOPBAR_HEIGHT;
26225
+ return (y + Math.min(this.props.childHeight, this.maxHeight) <
26226
+ this.viewportDimension.height + TOPBAR_HEIGHT);
26223
26227
  }
26224
26228
  horizontalPosition() {
26225
26229
  const { x } = this.props.position;
@@ -31451,9 +31455,9 @@
31451
31455
  Object.defineProperty(exports, '__esModule', { value: true });
31452
31456
 
31453
31457
 
31454
- __info__.version = '15.0.11';
31455
- __info__.date = '2023-10-19T14:17:19.414Z';
31456
- __info__.hash = 'd1931c8';
31458
+ __info__.version = '15.0.12';
31459
+ __info__.date = '2023-11-02T09:28:12.777Z';
31460
+ __info__.hash = 'e82bd99';
31457
31461
 
31458
31462
 
31459
31463
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
@@ -1450,7 +1450,7 @@
1450
1450
  <t t-slot="default"/>
1451
1451
  </div>
1452
1452
  </Portal>
1453
- `;class Du extends t.Component{constructor(){super(...arguments),this.getters=this.env.getters}get style(){const e=`left:${this.horizontalPosition()}`;return`\n position: absolute;\n z-index: 5;\n ${`top:${this.verticalPosition()}`}px;\n ${e}px;\n ${"max-height:"+(this.viewportDimension.height-36-S)}px;\n width:${this.props.childWidth}px;\n overflow-y: auto;\n overflow-x: hidden;\n box-shadow: 1px 2px 5px 2px rgb(51 51 51 / 15%);\n `}get viewportDimension(){return this.getters.getViewportDimension()}get shouldRenderRight(){const{x:e}=this.props.position;return e+this.props.childWidth<this.viewportDimension.width}get shouldRenderBottom(){const{y:e}=this.props.position;return e+this.props.childHeight<this.viewportDimension.height+v}horizontalPosition(){const{x:e}=this.props.position;return this.shouldRenderRight?e:e-this.props.childWidth-this.props.flipHorizontalOffset}verticalPosition(){const{y:e}=this.props.position;return this.shouldRenderBottom?e:Math.max(e-this.props.childHeight+this.props.flipVerticalOffset,this.props.marginTop)}}Du.template=$u,Du.components={Portal:ku},Du.defaultProps={flipHorizontalOffset:0,flipVerticalOffset:0,verticalOffset:0,marginTop:0};const{xml:Pu,css:Uu}=t.tags,{useExternalListener:Bu,useRef:Vu}=t.hooks,Hu=Pu`
1453
+ `;class Du extends t.Component{constructor(){super(...arguments),this.getters=this.env.getters}get maxHeight(){return Math.max(0,this.viewportDimension.height-36-S)}get style(){const e=`left:${this.horizontalPosition()}`;return`\n position: absolute;\n z-index: 5;\n ${`top:${this.verticalPosition()}`}px;\n ${e}px;\n ${`max-height:${this.maxHeight}`}px;\n width:${this.props.childWidth}px;\n overflow-y: auto;\n overflow-x: hidden;\n box-shadow: 1px 2px 5px 2px rgb(51 51 51 / 15%);\n `}get viewportDimension(){return this.getters.getViewportDimension()}get shouldRenderRight(){const{x:e}=this.props.position;return e+this.props.childWidth<this.viewportDimension.width}get shouldRenderBottom(){const{y:e}=this.props.position;return e+Math.min(this.props.childHeight,this.maxHeight)<this.viewportDimension.height+v}horizontalPosition(){const{x:e}=this.props.position;return this.shouldRenderRight?e:e-this.props.childWidth-this.props.flipHorizontalOffset}verticalPosition(){const{y:e}=this.props.position;return this.shouldRenderBottom?e:Math.max(e-this.props.childHeight+this.props.flipVerticalOffset,this.props.marginTop)}}Du.template=$u,Du.components={Portal:ku},Du.defaultProps={flipHorizontalOffset:0,flipVerticalOffset:0,verticalOffset:0,marginTop:0};const{xml:Pu,css:Uu}=t.tags,{useExternalListener:Bu,useRef:Vu}=t.hooks,Hu=Pu`
1454
1454
  <Popover
1455
1455
  position="props.position"
1456
1456
  childWidth="${y}"
@@ -3072,4 +3072,4 @@
3072
3072
  height: ${15}px;
3073
3073
  vertical-align: sub;
3074
3074
  }
3075
- `;class Pf extends t.Component{constructor(e,s={}){super(e,s),this.model=new Lu(this.props.data,{notifyUser:e=>this.trigger("notify-user",{content:e}),askConfirmation:(e,t,s)=>this.trigger("ask-confirmation",{content:e,confirm:t,cancel:s}),editText:(e,t,s)=>this.trigger("edit-text",{title:e,placeholder:t,callback:s}),openSidePanel:(e,t={})=>this.openSidePanel(e,t),evalContext:{env:this.env},transportService:this.props.transportService,client:this.props.client,isReadonly:this.props.isReadonly,snapshotRequested:this.props.snapshotRequested},this.props.stateUpdateMessages),this.grid=Nf("grid"),this.sidePanel=t.useState({isOpen:!1,panelProps:{}}),this.linkEditor=t.useState({isOpen:!1}),this.composer=t.useState({topBarFocus:"inactive",gridFocusMode:"inactive"}),this.clipBoardString="",this.keyDownMapping={"CTRL+H":()=>this.toggleSidePanel("FindAndReplace",{}),"CTRL+F":()=>this.toggleSidePanel("FindAndReplace",{})},Of({openSidePanel:(e,t={})=>this.openSidePanel(e,t),toggleSidePanel:(e,t={})=>this.toggleSidePanel(e,t),dispatch:this.model.dispatch,getters:this.model.getters,uuidGenerator:this.model.uuidGenerator,_t:Pf._t,clipboard:navigator.clipboard,export:this.model.exportData.bind(this.model),waitForIdle:this.model.waitForIdle.bind(this.model),exportXLSX:this.model.exportXLSX.bind(this.model),openLinkEditor:()=>this.openLinkEditor()}),_f(window,"resize",this.render),_f(document.body,"cut",this.copy.bind(this,!0)),_f(document.body,"copy",this.copy.bind(this,!1)),_f(document.body,"paste",this.paste),_f(document.body,"keyup",this.onKeyup.bind(this)),_f(window,"beforeunload",this.leaveCollaborativeSession.bind(this)),this.activateFirstSheet()}get focusTopBarComposer(){return"inactive"===this.model.getters.getEditionMode()?"inactive":this.composer.topBarFocus}get focusGridComposer(){return"inactive"===this.model.getters.getEditionMode()?"inactive":this.composer.gridFocusMode}mounted(){this.model.on("update",this,this.render),this.model.on("unexpected-revision-id",this,(()=>this.trigger("unexpected-revision-id"))),this.props.client&&this.model.joinSession(this.props.client)}willUnmount(){this.leaveCollaborativeSession()}async willUpdateProps(e){this.props.isReadonly!==e.isReadonly&&this.model.updateReadOnly(e.isReadonly)}leaveCollaborativeSession(){this.model.off("update",this),this.model.leaveSession()}activateFirstSheet(){const e=this.model.getters.getActiveSheetId(),[t]=this.model.getters.getSheets();t.id!==e&&this.model.dispatch("ACTIVATE_SHEET",{sheetIdFrom:e,sheetIdTo:t.id})}destroy(){this.model.destroy(),super.destroy()}openSidePanel(e,t){this.sidePanel.component=e,this.sidePanel.panelProps=t,this.sidePanel.isOpen=!0}closeSidePanel(){this.sidePanel.isOpen=!1,this.focusGrid()}openLinkEditor(){this.linkEditor.isOpen=!0}closeLinkEditor(){this.linkEditor.isOpen=!1,this.focusGrid()}toggleSidePanel(e,t){this.sidePanel.isOpen&&e===this.sidePanel.component?(this.sidePanel.isOpen=!1,this.focusGrid()):this.openSidePanel(e,t)}focusGrid(){if(!this._focusGrid)throw new Error("_focusGrid should be exposed by the grid component");this._focusGrid()}copy(e,t){if(!this.grid.el.contains(document.activeElement))return;if("inactive"!==this.model.getters.getEditionMode())return;const s=e?"CUT":"COPY",i=this.model.getters.getSelectedZones();this.model.dispatch(s,{target:i});const o=this.model.getters.getClipboardContent();this.clipBoardString=o,t.clipboardData.setData("text/plain",o),t.preventDefault()}paste(e){if(!this.grid.el.contains(document.activeElement))return;const t=e.clipboardData;if(t.types.indexOf("text/plain")>-1){const e=t.getData("text/plain"),s=this.model.getters.getSelectedZones();this.clipBoardString===e?this.model.dispatch("PASTE",{target:s,interactive:!0}):this.model.dispatch("PASTE_FROM_OS_CLIPBOARD",{target:s,text:e})}}save(){this.trigger("save-content",{data:this.model.exportData()})}onKeyup(e){"Control"===e.key&&this.model.getters.getSelectionMode()!==Ih.expanding&&this.model.dispatch("STOP_SELECTION")}onKeydown(e){"Control"!==e.key||e.repeat||this.model.dispatch(this.model.getters.getSelectionMode()===Ih.idle?"PREPARE_SELECTION_EXPANSION":"START_SELECTION_EXPANSION");let t="";(e.ctrlKey||e.metaKey)&&(t+="CTRL+"),t+=e.key.toUpperCase();let s=this.keyDownMapping[t];if(s)return e.preventDefault(),e.stopPropagation(),void s()}onTopBarComposerFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="contentFocus",this.composer.gridFocusMode="inactive",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}onGridComposerContentFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="inactive",this.composer.gridFocusMode="contentFocus",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}onGridComposerCellFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="inactive",this.composer.gridFocusMode="cellFocus",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}setComposerContent({content:e,selection:t}){"inactive"===this.model.getters.getEditionMode()?this.model.dispatch("START_EDITION",{text:e,selection:t}):e&&this.model.dispatch("SET_CURRENT_CONTENT",{content:e,selection:t})}}Pf.template=$f,Pf.style=Df,Pf.components={TopBar:Af,Grid:ef,BottomBar:Yu,SidePanel:af,LinkEditor:Fg},Pf._t=e=>e;const Uf={},Bf={MIN_ROW_HEIGHT:10,MIN_COL_WIDTH:5,HEADER_HEIGHT:f,HEADER_WIDTH:m,TOPBAR_HEIGHT:v,BOTTOMBAR_HEIGHT:36,DEFAULT_CELL_WIDTH:E,DEFAULT_CELL_HEIGHT:b,SCROLLBAR_WIDTH:S},Vf={autofillModifiersRegistry:xa,autofillRulesRegistry:Ta,cellMenuRegistry:rl,colMenuRegistry:al,linkMenuRegistry:ll,functionRegistry:or,uiPluginRegistry:id,corePluginRegistry:sd,rowMenuRegistry:cl,sidePanelRegistry:fh,sheetMenuRegistry:hl,topbarMenuRegistry:dl,topbarComponentRegistry:mh,otRegistry:ul,inverseCommandRegistry:La,cellRegistry:Zr},Hf={LinkCell:Jr},zf={args:Ae,toBoolean:pe,toNumber:ce,toString:de,toXC:ss,toZone:Os,toCartesian:ts,numberToLetters:es,createFullMenuItem:_a,UuidGenerator:si,formatDecimal:ne,computeTextWidth:gs,isMarkdownLink:Is,parseMarkdownLink:ws,markdownLink:ys,createEmptyWorkbookData:ua};e.CorePlugin=ga,e.DATETIME_FORMAT=A,e.DataSource=rd,e.DispatchResult=Pe,e.Model=Lu,e.Revision=qh,e.SPREADSHEET_DIMENSIONS=Bf,e.Spreadsheet=Pf,e.UIPlugin=vh,e.__DEBUG__=Ms,e.__info__=Uf,e.astToFormula=_r,e.cellTypes=Hf,e.convertAstNodes=Ar,e.coreTypes=$e,e.functionCache=Dr,e.helpers=zf,e.invalidateEvaluationCommands=ke,e.normalize=Hr,e.parse=Mr,e.readonlyAllowedCommands=Fe,e.registries=Vf,e.setTranslationMethod=function(e){o=e},Object.defineProperty(e,"__esModule",{value:!0}),Uf.version="15.0.11",Uf.date="2023-10-19T14:17:19.414Z",Uf.hash="d1931c8"}(this.o_spreadsheet=this.o_spreadsheet||{},owl);
3075
+ `;class Pf extends t.Component{constructor(e,s={}){super(e,s),this.model=new Lu(this.props.data,{notifyUser:e=>this.trigger("notify-user",{content:e}),askConfirmation:(e,t,s)=>this.trigger("ask-confirmation",{content:e,confirm:t,cancel:s}),editText:(e,t,s)=>this.trigger("edit-text",{title:e,placeholder:t,callback:s}),openSidePanel:(e,t={})=>this.openSidePanel(e,t),evalContext:{env:this.env},transportService:this.props.transportService,client:this.props.client,isReadonly:this.props.isReadonly,snapshotRequested:this.props.snapshotRequested},this.props.stateUpdateMessages),this.grid=Nf("grid"),this.sidePanel=t.useState({isOpen:!1,panelProps:{}}),this.linkEditor=t.useState({isOpen:!1}),this.composer=t.useState({topBarFocus:"inactive",gridFocusMode:"inactive"}),this.clipBoardString="",this.keyDownMapping={"CTRL+H":()=>this.toggleSidePanel("FindAndReplace",{}),"CTRL+F":()=>this.toggleSidePanel("FindAndReplace",{})},Of({openSidePanel:(e,t={})=>this.openSidePanel(e,t),toggleSidePanel:(e,t={})=>this.toggleSidePanel(e,t),dispatch:this.model.dispatch,getters:this.model.getters,uuidGenerator:this.model.uuidGenerator,_t:Pf._t,clipboard:navigator.clipboard,export:this.model.exportData.bind(this.model),waitForIdle:this.model.waitForIdle.bind(this.model),exportXLSX:this.model.exportXLSX.bind(this.model),openLinkEditor:()=>this.openLinkEditor()}),_f(window,"resize",this.render),_f(document.body,"cut",this.copy.bind(this,!0)),_f(document.body,"copy",this.copy.bind(this,!1)),_f(document.body,"paste",this.paste),_f(document.body,"keyup",this.onKeyup.bind(this)),_f(window,"beforeunload",this.leaveCollaborativeSession.bind(this)),this.activateFirstSheet()}get focusTopBarComposer(){return"inactive"===this.model.getters.getEditionMode()?"inactive":this.composer.topBarFocus}get focusGridComposer(){return"inactive"===this.model.getters.getEditionMode()?"inactive":this.composer.gridFocusMode}mounted(){this.model.on("update",this,this.render),this.model.on("unexpected-revision-id",this,(()=>this.trigger("unexpected-revision-id"))),this.props.client&&this.model.joinSession(this.props.client)}willUnmount(){this.leaveCollaborativeSession()}async willUpdateProps(e){this.props.isReadonly!==e.isReadonly&&this.model.updateReadOnly(e.isReadonly)}leaveCollaborativeSession(){this.model.off("update",this),this.model.leaveSession()}activateFirstSheet(){const e=this.model.getters.getActiveSheetId(),[t]=this.model.getters.getSheets();t.id!==e&&this.model.dispatch("ACTIVATE_SHEET",{sheetIdFrom:e,sheetIdTo:t.id})}destroy(){this.model.destroy(),super.destroy()}openSidePanel(e,t){this.sidePanel.component=e,this.sidePanel.panelProps=t,this.sidePanel.isOpen=!0}closeSidePanel(){this.sidePanel.isOpen=!1,this.focusGrid()}openLinkEditor(){this.linkEditor.isOpen=!0}closeLinkEditor(){this.linkEditor.isOpen=!1,this.focusGrid()}toggleSidePanel(e,t){this.sidePanel.isOpen&&e===this.sidePanel.component?(this.sidePanel.isOpen=!1,this.focusGrid()):this.openSidePanel(e,t)}focusGrid(){if(!this._focusGrid)throw new Error("_focusGrid should be exposed by the grid component");this._focusGrid()}copy(e,t){if(!this.grid.el.contains(document.activeElement))return;if("inactive"!==this.model.getters.getEditionMode())return;const s=e?"CUT":"COPY",i=this.model.getters.getSelectedZones();this.model.dispatch(s,{target:i});const o=this.model.getters.getClipboardContent();this.clipBoardString=o,t.clipboardData.setData("text/plain",o),t.preventDefault()}paste(e){if(!this.grid.el.contains(document.activeElement))return;const t=e.clipboardData;if(t.types.indexOf("text/plain")>-1){const e=t.getData("text/plain"),s=this.model.getters.getSelectedZones();this.clipBoardString===e?this.model.dispatch("PASTE",{target:s,interactive:!0}):this.model.dispatch("PASTE_FROM_OS_CLIPBOARD",{target:s,text:e})}}save(){this.trigger("save-content",{data:this.model.exportData()})}onKeyup(e){"Control"===e.key&&this.model.getters.getSelectionMode()!==Ih.expanding&&this.model.dispatch("STOP_SELECTION")}onKeydown(e){"Control"!==e.key||e.repeat||this.model.dispatch(this.model.getters.getSelectionMode()===Ih.idle?"PREPARE_SELECTION_EXPANSION":"START_SELECTION_EXPANSION");let t="";(e.ctrlKey||e.metaKey)&&(t+="CTRL+"),t+=e.key.toUpperCase();let s=this.keyDownMapping[t];if(s)return e.preventDefault(),e.stopPropagation(),void s()}onTopBarComposerFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="contentFocus",this.composer.gridFocusMode="inactive",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}onGridComposerContentFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="inactive",this.composer.gridFocusMode="contentFocus",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}onGridComposerCellFocused(e){this.model.getters.isReadonly()||(this.composer.topBarFocus="inactive",this.composer.gridFocusMode="cellFocus",this.setComposerContent(e.detail||{}),this.env.dispatch("UNFOCUS_SELECTION_INPUT"))}setComposerContent({content:e,selection:t}){"inactive"===this.model.getters.getEditionMode()?this.model.dispatch("START_EDITION",{text:e,selection:t}):e&&this.model.dispatch("SET_CURRENT_CONTENT",{content:e,selection:t})}}Pf.template=$f,Pf.style=Df,Pf.components={TopBar:Af,Grid:ef,BottomBar:Yu,SidePanel:af,LinkEditor:Fg},Pf._t=e=>e;const Uf={},Bf={MIN_ROW_HEIGHT:10,MIN_COL_WIDTH:5,HEADER_HEIGHT:f,HEADER_WIDTH:m,TOPBAR_HEIGHT:v,BOTTOMBAR_HEIGHT:36,DEFAULT_CELL_WIDTH:E,DEFAULT_CELL_HEIGHT:b,SCROLLBAR_WIDTH:S},Vf={autofillModifiersRegistry:xa,autofillRulesRegistry:Ta,cellMenuRegistry:rl,colMenuRegistry:al,linkMenuRegistry:ll,functionRegistry:or,uiPluginRegistry:id,corePluginRegistry:sd,rowMenuRegistry:cl,sidePanelRegistry:fh,sheetMenuRegistry:hl,topbarMenuRegistry:dl,topbarComponentRegistry:mh,otRegistry:ul,inverseCommandRegistry:La,cellRegistry:Zr},Hf={LinkCell:Jr},zf={args:Ae,toBoolean:pe,toNumber:ce,toString:de,toXC:ss,toZone:Os,toCartesian:ts,numberToLetters:es,createFullMenuItem:_a,UuidGenerator:si,formatDecimal:ne,computeTextWidth:gs,isMarkdownLink:Is,parseMarkdownLink:ws,markdownLink:ys,createEmptyWorkbookData:ua};e.CorePlugin=ga,e.DATETIME_FORMAT=A,e.DataSource=rd,e.DispatchResult=Pe,e.Model=Lu,e.Revision=qh,e.SPREADSHEET_DIMENSIONS=Bf,e.Spreadsheet=Pf,e.UIPlugin=vh,e.__DEBUG__=Ms,e.__info__=Uf,e.astToFormula=_r,e.cellTypes=Hf,e.convertAstNodes=Ar,e.coreTypes=$e,e.functionCache=Dr,e.helpers=zf,e.invalidateEvaluationCommands=ke,e.normalize=Hr,e.parse=Mr,e.readonlyAllowedCommands=Fe,e.registries=Vf,e.setTranslationMethod=function(e){o=e},Object.defineProperty(e,"__esModule",{value:!0}),Uf.version="15.0.12",Uf.date="2023-11-02T09:28:12.777Z",Uf.hash="e82bd99"}(this.o_spreadsheet=this.o_spreadsheet||{},owl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "15.0.11",
3
+ "version": "15.0.12",
4
4
  "description": "A spreadsheet component",
5
5
  "main": "dist/o-spreadsheet.cjs.js",
6
6
  "browser": "dist/o-spreadsheet.iife.js",