@odoo/o-spreadsheet 19.1.0-alpha.6 → 19.1.0-alpha.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/dist/o-spreadsheet-engine.esm.js +4 -4
- package/dist/o-spreadsheet-engine.iife.js +4 -4
- package/dist/o-spreadsheet-engine.min.iife.js +1 -1
- package/dist/o_spreadsheet.esm.js +6 -6
- package/dist/o_spreadsheet.iife.js +6 -6
- package/dist/o_spreadsheet.min.iife.js +1 -1
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -2
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
5
|
* @version 19.1.0-alpha.3
|
|
6
|
-
* @date 2025-10-
|
|
7
|
-
* @hash
|
|
6
|
+
* @date 2025-10-17T11:08:54.279Z
|
|
7
|
+
* @hash a11279d
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
class FunctionCodeBuilder {
|
|
@@ -50300,5 +50300,5 @@ export { BadExpressionError, BasePlugin, CellErrorType, CircularDependencyError,
|
|
|
50300
50300
|
|
|
50301
50301
|
|
|
50302
50302
|
__info__.version = "19.1.0-alpha.3";
|
|
50303
|
-
__info__.date = "2025-10-
|
|
50304
|
-
__info__.hash = "
|
|
50303
|
+
__info__.date = "2025-10-17T11:08:54.279Z";
|
|
50304
|
+
__info__.hash = "a11279d";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
5
|
* @version 19.1.0-alpha.3
|
|
6
|
-
* @date 2025-10-
|
|
7
|
-
* @hash
|
|
6
|
+
* @date 2025-10-17T11:08:54.279Z
|
|
7
|
+
* @hash a11279d
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports) {
|
|
@@ -50411,8 +50411,8 @@
|
|
|
50411
50411
|
|
|
50412
50412
|
|
|
50413
50413
|
__info__.version = "19.1.0-alpha.3";
|
|
50414
|
-
__info__.date = "2025-10-
|
|
50415
|
-
__info__.hash = "
|
|
50414
|
+
__info__.date = "2025-10-17T11:08:54.279Z";
|
|
50415
|
+
__info__.hash = "a11279d";
|
|
50416
50416
|
|
|
50417
50417
|
|
|
50418
50418
|
})(this.o_spreadsheet_engine = this.o_spreadsheet_engine || {});
|
|
@@ -814,4 +814,4 @@
|
|
|
814
814
|
<tableParts count="${e.tables.length}">
|
|
815
815
|
${RE(a)}
|
|
816
816
|
</tableParts>
|
|
817
|
-
`}var SI;!function(e){e[e.Ready=0]="Ready",e[e.Running=1]="Running",e[e.RunningCore=2]="RunningCore",e[e.Finalizing=3]="Finalizing"}(SI||(SI={}));function CI(e,t={}){const r=re(t);return r.type=e,r}const TI={Background:0,Highlights:1,Clipboard:2,Chart:4,Autofill:5,Selection:6,Headers:100},II=Ue(()=>Object.keys(TI).sort((e,t)=>TI[e]-TI[t]));const xI={};e.BadExpressionError=C,e.BasePlugin=Cs,e.CellErrorType=E,e.CircularDependencyError=T,e.DEFAULT_LOCALE=Ol,e.DEFAULT_LOCALES=_l,e.DivisionByZeroError=_,e.EvaluationError=S,e.FunctionCodeBuilder=t,e.FunctionRegistry=Pg,e.InvalidReferenceError=I,e.Model=class extends pm{corePlugins=[];statefulUIPlugins=[];range;session;isReplayingCommand=!1;renderers={};status=0;config;corePluginConfig;coreViewPluginConfig;uiPluginConfig;state;selection;getters;coreGetters;uuidGenerator;handlers=[];uiHandlers=[];coreHandlers=[];constructor(e={},t={},r=[],n=new Eo,o=!1){const s=performance.now();console.debug("##### Model creation #####"),super(),b(),r=sw(e,r);const i=rw(e,o);this.state=new vT,this.uuidGenerator=n,this.config=this.setupConfig(t),this.session=this.setupSession(i.revisionId),this.coreGetters={},this.range=new mT(this.coreGetters),this.coreGetters.getRangeString=this.range.getRangeString.bind(this.range),this.coreGetters.getRangeFromSheetXC=this.range.getRangeFromSheetXC.bind(this.range),this.coreGetters.createAdaptedRanges=this.range.createAdaptedRanges.bind(this.range),this.coreGetters.getRangeData=this.range.getRangeData.bind(this.range),this.coreGetters.getRangeDataFromXc=this.range.getRangeDataFromXc.bind(this.range),this.coreGetters.getRangeDataFromZone=this.range.getRangeDataFromZone.bind(this.range),this.coreGetters.getRangeFromRangeData=this.range.getRangeFromRangeData.bind(this.range),this.coreGetters.getRangeFromZone=this.range.getRangeFromZone.bind(this.range),this.coreGetters.recomputeRanges=this.range.recomputeRanges.bind(this.range),this.coreGetters.isRangeValid=this.range.isRangeValid.bind(this.range),this.coreGetters.extendRange=this.range.extendRange.bind(this.range),this.coreGetters.getRangesUnion=this.range.getRangesUnion.bind(this.range),this.coreGetters.removeRangesSheetPrefix=this.range.removeRangesSheetPrefix.bind(this.range),this.coreGetters.adaptFormulaStringDependencies=this.range.adaptFormulaStringDependencies.bind(this.range),this.coreGetters.copyFormulaStringForSheet=this.range.copyFormulaStringForSheet.bind(this.range),this.getters={isReadonly:()=>"readonly"===this.config.mode||"dashboard"===this.config.mode,isDashboard:()=>"dashboard"===this.config.mode},this.selection=new bT(this.getters),this.coreHandlers.push(this.range),this.handlers.push(this.range),this.corePluginConfig=this.setupCorePluginConfig(),this.coreViewPluginConfig=this.setupCoreViewPluginConfig(),this.uiPluginConfig=this.setupUiPluginConfig();for(const e of hT.getAll())this.setupCorePlugin(e,i);Object.assign(this.getters,this.coreGetters),this.session.loadInitialMessages(r);for(const e of gT.getAll()){const t=this.setupCoreViewPlugin(e);this.handlers.push(t),this.uiHandlers.push(t),this.coreHandlers.push(t)}for(const e of fT.getAll()){const t=this.setupUiPlugin(e);this.statefulUIPlugins.push(t),this.handlers.push(t),this.uiHandlers.push(t)}for(const e of dT.getAll()){const t=this.setupUiPlugin(e);this.handlers.push(t),this.uiHandlers.push(t)}if(this.dispatch("START"),this.selection.observe(this,{handleEvent:()=>this.trigger("update")}),this.setupSessionEvents(),this.joinSession(),t.snapshotRequested||e["[Content_Types].xml"]&&!this.getters.isReadonly()){const e=performance.now();console.debug("Snapshot requested"),this.session.snapshot(this.exportData()),this.garbageCollectExternalResources(),console.debug("Snapshot taken in",performance.now()-e,"ms")}console.debug("Model created in",performance.now()-s,"ms"),console.debug("######")}joinSession(){this.session.join(this.config.client)}async leaveSession(){const e=this.getters.isReadonly()?void 0:xe(()=>this.exportData());await this.session.leave(e)}setupUiPlugin(e){const t=new e(this.uiPluginConfig);for(const r of e.getters){if(!(r in t))throw new Error(`Invalid getter name: ${r} for plugin ${t.constructor}`);if(r in this.getters)throw new Error(`Getter "${r}" is already defined.`);this.getters[r]=t[r].bind(t)}for(const r of e.layers)this.renderers[r]||(this.renderers[r]=[]),this.renderers[r].push(t);return t}setupCoreViewPlugin(e){const t=new e(this.coreViewPluginConfig);for(const r of e.getters){if(!(r in t))throw new Error(`Invalid getter name: ${r} for plugin ${t.constructor}`);if(r in this.getters)throw new Error(`Getter "${r}" is already defined.`);this.getters[r]=t[r].bind(t)}return t}setupCorePlugin(e,t){const r=new e(this.corePluginConfig);for(const t of e.getters){if(!(t in r))throw new Error(`Invalid getter name: ${t} for plugin ${r.constructor}`);if(t in this.coreGetters)throw new Error(`Getter "${t}" is already defined.`);this.coreGetters[t]=r[t].bind(r)}r.import(t),this.corePlugins.push(r),this.coreHandlers.push(r),this.handlers.push(r)}onRemoteRevisionReceived({commands:e}){for(const t of e){const e=this.status;this.status=2,this.dispatchToHandlers(this.statefulUIPlugins,t),this.status=e}this.finalize()}setupSession(e){return new Hb(Xb({initialRevisionId:e,recordChanges:this.state.recordChanges.bind(this.state),dispatch:e=>{this.checkDispatchAllowed(e).isSuccessful?(this.isReplayingCommand=!0,this.dispatchToHandlers(this.coreHandlers,e),this.isReplayingCommand=!1):this.dispatchToHandlers(this.coreHandlers,{type:"UNDO",commands:[e]})}}),this.config.transportService,e)}setupSessionEvents(){this.session.on("remote-revision-received",this,this.onRemoteRevisionReceived),this.session.on("revision-undone",this,({commands:e})=>{this.dispatchFromCorePlugin("UNDO",{commands:e}),this.finalize()}),this.session.on("revision-redone",this,({commands:e})=>{this.dispatchFromCorePlugin("REDO",{commands:e}),this.finalize()}),this.session.on("unexpected-revision-id",this,()=>this.trigger("unexpected-revision-id")),this.session.on("collaborative-event-received",this,()=>{this.trigger("update")})}setupConfig(e){const t=e.client||{id:this.uuidGenerator.smallUuid(),name:v("Anonymous").toString()},r=e.transportService||new gm,n="readonly"===e.mode||"dashboard"===e.mode;return{...e,mode:e.mode||"normal",custom:e.custom||{},external:this.setupExternalConfig(e.external||{}),transportService:n?new mm(r):r,client:t,moveClient:()=>{},snapshotRequested:!1,notifyUI:e=>this.trigger("notify-ui",e),raiseBlockingErrorUI:e=>this.trigger("raise-error-ui",{text:e}),customColors:e.customColors||[]}}setupExternalConfig(e){const t=e.loadLocales||(()=>Promise.resolve(_l));return{...e,loadLocales:t}}setupCorePluginConfig(){return{getters:this.coreGetters,stateObserver:this.state,range:this.range,dispatch:this.dispatchFromCorePlugin,canDispatch:this.canDispatch,custom:this.config.custom,external:this.config.external}}setupCoreViewPluginConfig(){return{getters:this.getters,stateObserver:this.state,custom:this.config.custom,session:this.session,defaultCurrency:this.config.defaultCurrency,customColors:this.config.customColors||[],external:this.config.external}}setupUiPluginConfig(){return{getters:this.getters,stateObserver:this.state,dispatch:this.dispatch,canDispatch:this.canDispatch,selection:this.selection,moveClient:this.session.move.bind(this.session),custom:this.config.custom,uiActions:this.config,session:this.session,defaultCurrency:this.config.defaultCurrency,customColors:this.config.customColors||[],external:this.config.external}}checkDispatchAllowed(e){const t=ys(e)?this.checkDispatchAllowedCoreCommand(e):this.checkDispatchAllowedLocalCommand(e);return t.some(e=>"Success"!==e)?new Es(t.flat()):Es.Success}checkDispatchAllowedCoreCommand(e){const t=this.corePlugins.map(t=>t.allowDispatch(e));return t.push(this.range.allowDispatch(e)),t}checkDispatchAllowedLocalCommand(e){return this.uiHandlers.map(t=>t.allowDispatch(e))}finalize(){this.status=3;for(const e of this.handlers)e.finalize();this.status=0,this.trigger("command-finalized")}canDispatch=(e,t)=>this.checkDispatchAllowed(CI(e,t));dispatch=(e,t)=>{const r=CI(e,t),n=this.status;if(this.getters.isReadonly()&&(o=r,!bs.has(o.type)))return new Es("Readonly");var o;if(!this.session.canApplyOptimisticUpdate())return new Es("WaitingSessionConfirmation");switch(n){case 0:const t=this.checkDispatchAllowed(r);if(!t.isSuccessful)return this.trigger("update"),t;this.status=1;const{changes:n,commands:o}=this.state.recordChanges(()=>{const t=performance.now();ys(r)&&this.state.addCommand(r),this.dispatchToHandlers(this.handlers,r),this.finalize();const n=performance.now()-t;n>5&&console.debug(e,n,"ms")});this.session.save(r,o,n),this.status=0,this.trigger("update");break;case 1:if(ys(r)){const e=this.checkDispatchAllowed(r);if(!e.isSuccessful)return e;this.state.addCommand(r)}this.dispatchToHandlers(this.handlers,r);break;case 3:throw new Error("Cannot dispatch commands in the finalize state");case 2:if(ys(r))throw new Error(`A UI plugin cannot dispatch ${e} while handling a core command`);this.dispatchToHandlers(this.handlers,r)}return Es.Success};dispatchFromCorePlugin=(e,t)=>{const r=CI(e,t),n=this.status;this.status=2;const o=this.isReplayingCommand?this.coreHandlers:this.handlers;return this.dispatchToHandlers(o,r),this.status=n,Es.Success};dispatchToHandlers(e,t){const r=ys(t);for(const n of e)!r&&n instanceof uw||n.beforeHandle(t);for(const n of e)!r&&n instanceof uw||n.handle(t);this.trigger("command-dispatched",t)}drawLayer(e,t){const r=this.renderers[t];if(r)for(const n of r)e.ctx.save(),n.drawLayer(e,t),e.ctx.restore()}exportData(){let e=lw();for(const t of this.handlers)t instanceof uw&&t.export(e);return e.revisionId=this.session.getRevisionId()||Y,e=re(e),e}updateMode(e){this.config.mode=e,this.trigger("update")}async exportXLSX(){this.dispatch("EVALUATE_CELLS");let e={...lw(),sheets:[(t=tw,r="Sheet1",{...aw(t,r),charts:[],images:[],cellValues:{}})]};var t,r;for(const t of this.handlers)t instanceof Cs&&await t.exportForExcel(e);return e=re(e),EI(e)}garbageCollectExternalResources(){for(const e of this.corePlugins)e.garbageCollectExternalResources()}},e.NotAvailableError=x,e.OPERATOR_MAP=lm,e.OP_PRIORITY=Xg,e.OrderedLayers=II,e.POSTFIX_UNARY_OPERATORS=Dl,e.Registry=h,e.Scope=n,e.SplillBlockedError=A,e.StateObserver=vT,e.TokenizingChars=Ze,e.UNARY_OPERATOR_MAP=cm,e.UnknownFunctionError=R,e.UuidGenerator=Eo,e.__info__=xI,e._t=v,e.addRenderingLayer=function(e,t){if(TI[e])throw new Error(`Layer ${e} already exists`);TI[e]=t},e.batched=function(e){let t=!1;return async(...r)=>{t||(t=!0,await Promise.resolve(),t=!1,e(...r))}},e.borderStyles=["thin","medium","thick","dashed","dotted"],e.buildSheetLink=Ee,e.categories=Ug,e.cellReference=to,e.chartStyleToCellStyle=function(e){return{bold:e.bold,italic:e.italic,fontSize:e.fontSize,textColor:e.color,align:e.align}},e.clip=ae,e.compile=hm,e.compileTokens=dm,e.concat=Ie,e.convertAstNodes=nm,e.createEmptyStructure=yo,e.debounce=Te,e.deepCopy=re,e.deepEquals=Ae,e.deepEqualsArray=Oe,e.errorTypes=w,e.escapeRegExp=te,e.findNextDefinedValue=function(e,t){let r=e.slice(t).find(e=>e);return r||(r=e.slice(0,t).reverse().find(e=>e)),r||""},e.functionCache=um,e.getAddHeaderStartIndex=Re,e.getCanonicalSymbolName=se,e.getFormulaNumberRegex=Rt,e.getFullReference=mo,e.getSearchRegex=function(e,t){let r=te(e);const n=t.matchCase?"":"i";return t.exactMatch&&(r=`^${r}$`),RegExp(r,n)},e.getUniqueText=Xe,e.getUnquotedSheetName=ne,e.groupConsecutive=ce,e.includesAll=De,e.insertItemsAtIndex=Be,e.isBoolean=he,e.isColHeader=uo,e.isColReference=lo,e.isConsecutive=ke,e.isDefined=Se,e.isFormula=Ke,e.isMarkdownLink=ge,e.isMatrix=O,e.isNotNull=function(e){return null!==e},e.isNumber=_t,e.isNumberBetween=Ge,e.isObjectEmptyRecursive=Ce,e.isRowHeader=ho,e.isRowReference=co,e.isSheetUrl=ye,e.isSingleCellReference=fo,e.isWebLink=me,e.iterateAstNodes=om,e.largeMax=We,e.largeMin=qe,e.lazy=xe,e.linkNext=ue,e.loopThroughReferenceType=function(e){if("REFERENCE"!==e.type)return e;const{xc:t,sheetName:r}=go(e.value),[n,o]=t.split(":"),s=po(n),i=o?`:${po(o)}`:"";return{...e,value:mo(r,s+i)}},e.mapAst=im,e.markdownLink=pe,e.memoize=Ue,e.parse=tm,e.parseMarkdownLink=be,e.parseNumber=Dt,e.parseSheetUrl=we,e.parseTokens=rm,e.percentile=Ft,e.range=le,e.rangeReference=ao,e.rangeTokenize=Wg,e.removeDuplicates=Ye,e.removeFalsyAttributes=Fe,e.removeIndexesFromArray=He,e.replaceItemAtIndex=ze,e.replaceNewLines=Pe,e.sanitizeSheetName=ie,e.setDefaultTranslationMethod=b,e.setTranslationMethod=function(e,t=()=>!0){g=e,m=t},e.setXcToFixedReferenceType=bo,e.specialWhiteSpaceRegexp=Me,e.splitReference=go,e.tokenize=Nl,e.transpose2dPOJO=je,e.trimContent=$e,e.unquote=oe,e.whiteSpaceCharacters=Le,xI.version="19.1.0-alpha.3",xI.date="2025-10-16T14:35:12.274Z",xI.hash="8ab685e"}(this.o_spreadsheet_engine=this.o_spreadsheet_engine||{});
|
|
817
|
+
`}var SI;!function(e){e[e.Ready=0]="Ready",e[e.Running=1]="Running",e[e.RunningCore=2]="RunningCore",e[e.Finalizing=3]="Finalizing"}(SI||(SI={}));function CI(e,t={}){const r=re(t);return r.type=e,r}const TI={Background:0,Highlights:1,Clipboard:2,Chart:4,Autofill:5,Selection:6,Headers:100},II=Ue(()=>Object.keys(TI).sort((e,t)=>TI[e]-TI[t]));const xI={};e.BadExpressionError=C,e.BasePlugin=Cs,e.CellErrorType=E,e.CircularDependencyError=T,e.DEFAULT_LOCALE=Ol,e.DEFAULT_LOCALES=_l,e.DivisionByZeroError=_,e.EvaluationError=S,e.FunctionCodeBuilder=t,e.FunctionRegistry=Pg,e.InvalidReferenceError=I,e.Model=class extends pm{corePlugins=[];statefulUIPlugins=[];range;session;isReplayingCommand=!1;renderers={};status=0;config;corePluginConfig;coreViewPluginConfig;uiPluginConfig;state;selection;getters;coreGetters;uuidGenerator;handlers=[];uiHandlers=[];coreHandlers=[];constructor(e={},t={},r=[],n=new Eo,o=!1){const s=performance.now();console.debug("##### Model creation #####"),super(),b(),r=sw(e,r);const i=rw(e,o);this.state=new vT,this.uuidGenerator=n,this.config=this.setupConfig(t),this.session=this.setupSession(i.revisionId),this.coreGetters={},this.range=new mT(this.coreGetters),this.coreGetters.getRangeString=this.range.getRangeString.bind(this.range),this.coreGetters.getRangeFromSheetXC=this.range.getRangeFromSheetXC.bind(this.range),this.coreGetters.createAdaptedRanges=this.range.createAdaptedRanges.bind(this.range),this.coreGetters.getRangeData=this.range.getRangeData.bind(this.range),this.coreGetters.getRangeDataFromXc=this.range.getRangeDataFromXc.bind(this.range),this.coreGetters.getRangeDataFromZone=this.range.getRangeDataFromZone.bind(this.range),this.coreGetters.getRangeFromRangeData=this.range.getRangeFromRangeData.bind(this.range),this.coreGetters.getRangeFromZone=this.range.getRangeFromZone.bind(this.range),this.coreGetters.recomputeRanges=this.range.recomputeRanges.bind(this.range),this.coreGetters.isRangeValid=this.range.isRangeValid.bind(this.range),this.coreGetters.extendRange=this.range.extendRange.bind(this.range),this.coreGetters.getRangesUnion=this.range.getRangesUnion.bind(this.range),this.coreGetters.removeRangesSheetPrefix=this.range.removeRangesSheetPrefix.bind(this.range),this.coreGetters.adaptFormulaStringDependencies=this.range.adaptFormulaStringDependencies.bind(this.range),this.coreGetters.copyFormulaStringForSheet=this.range.copyFormulaStringForSheet.bind(this.range),this.getters={isReadonly:()=>"readonly"===this.config.mode||"dashboard"===this.config.mode,isDashboard:()=>"dashboard"===this.config.mode},this.selection=new bT(this.getters),this.coreHandlers.push(this.range),this.handlers.push(this.range),this.corePluginConfig=this.setupCorePluginConfig(),this.coreViewPluginConfig=this.setupCoreViewPluginConfig(),this.uiPluginConfig=this.setupUiPluginConfig();for(const e of hT.getAll())this.setupCorePlugin(e,i);Object.assign(this.getters,this.coreGetters),this.session.loadInitialMessages(r);for(const e of gT.getAll()){const t=this.setupCoreViewPlugin(e);this.handlers.push(t),this.uiHandlers.push(t),this.coreHandlers.push(t)}for(const e of fT.getAll()){const t=this.setupUiPlugin(e);this.statefulUIPlugins.push(t),this.handlers.push(t),this.uiHandlers.push(t)}for(const e of dT.getAll()){const t=this.setupUiPlugin(e);this.handlers.push(t),this.uiHandlers.push(t)}if(this.dispatch("START"),this.selection.observe(this,{handleEvent:()=>this.trigger("update")}),this.setupSessionEvents(),this.joinSession(),t.snapshotRequested||e["[Content_Types].xml"]&&!this.getters.isReadonly()){const e=performance.now();console.debug("Snapshot requested"),this.session.snapshot(this.exportData()),this.garbageCollectExternalResources(),console.debug("Snapshot taken in",performance.now()-e,"ms")}console.debug("Model created in",performance.now()-s,"ms"),console.debug("######")}joinSession(){this.session.join(this.config.client)}async leaveSession(){const e=this.getters.isReadonly()?void 0:xe(()=>this.exportData());await this.session.leave(e)}setupUiPlugin(e){const t=new e(this.uiPluginConfig);for(const r of e.getters){if(!(r in t))throw new Error(`Invalid getter name: ${r} for plugin ${t.constructor}`);if(r in this.getters)throw new Error(`Getter "${r}" is already defined.`);this.getters[r]=t[r].bind(t)}for(const r of e.layers)this.renderers[r]||(this.renderers[r]=[]),this.renderers[r].push(t);return t}setupCoreViewPlugin(e){const t=new e(this.coreViewPluginConfig);for(const r of e.getters){if(!(r in t))throw new Error(`Invalid getter name: ${r} for plugin ${t.constructor}`);if(r in this.getters)throw new Error(`Getter "${r}" is already defined.`);this.getters[r]=t[r].bind(t)}return t}setupCorePlugin(e,t){const r=new e(this.corePluginConfig);for(const t of e.getters){if(!(t in r))throw new Error(`Invalid getter name: ${t} for plugin ${r.constructor}`);if(t in this.coreGetters)throw new Error(`Getter "${t}" is already defined.`);this.coreGetters[t]=r[t].bind(r)}r.import(t),this.corePlugins.push(r),this.coreHandlers.push(r),this.handlers.push(r)}onRemoteRevisionReceived({commands:e}){for(const t of e){const e=this.status;this.status=2,this.dispatchToHandlers(this.statefulUIPlugins,t),this.status=e}this.finalize()}setupSession(e){return new Hb(Xb({initialRevisionId:e,recordChanges:this.state.recordChanges.bind(this.state),dispatch:e=>{this.checkDispatchAllowed(e).isSuccessful?(this.isReplayingCommand=!0,this.dispatchToHandlers(this.coreHandlers,e),this.isReplayingCommand=!1):this.dispatchToHandlers(this.coreHandlers,{type:"UNDO",commands:[e]})}}),this.config.transportService,e)}setupSessionEvents(){this.session.on("remote-revision-received",this,this.onRemoteRevisionReceived),this.session.on("revision-undone",this,({commands:e})=>{this.dispatchFromCorePlugin("UNDO",{commands:e}),this.finalize()}),this.session.on("revision-redone",this,({commands:e})=>{this.dispatchFromCorePlugin("REDO",{commands:e}),this.finalize()}),this.session.on("unexpected-revision-id",this,()=>this.trigger("unexpected-revision-id")),this.session.on("collaborative-event-received",this,()=>{this.trigger("update")})}setupConfig(e){const t=e.client||{id:this.uuidGenerator.smallUuid(),name:v("Anonymous").toString()},r=e.transportService||new gm,n="readonly"===e.mode||"dashboard"===e.mode;return{...e,mode:e.mode||"normal",custom:e.custom||{},external:this.setupExternalConfig(e.external||{}),transportService:n?new mm(r):r,client:t,moveClient:()=>{},snapshotRequested:!1,notifyUI:e=>this.trigger("notify-ui",e),raiseBlockingErrorUI:e=>this.trigger("raise-error-ui",{text:e}),customColors:e.customColors||[]}}setupExternalConfig(e){const t=e.loadLocales||(()=>Promise.resolve(_l));return{...e,loadLocales:t}}setupCorePluginConfig(){return{getters:this.coreGetters,stateObserver:this.state,range:this.range,dispatch:this.dispatchFromCorePlugin,canDispatch:this.canDispatch,custom:this.config.custom,external:this.config.external}}setupCoreViewPluginConfig(){return{getters:this.getters,stateObserver:this.state,custom:this.config.custom,session:this.session,defaultCurrency:this.config.defaultCurrency,customColors:this.config.customColors||[],external:this.config.external}}setupUiPluginConfig(){return{getters:this.getters,stateObserver:this.state,dispatch:this.dispatch,canDispatch:this.canDispatch,selection:this.selection,moveClient:this.session.move.bind(this.session),custom:this.config.custom,uiActions:this.config,session:this.session,defaultCurrency:this.config.defaultCurrency,customColors:this.config.customColors||[],external:this.config.external}}checkDispatchAllowed(e){const t=ys(e)?this.checkDispatchAllowedCoreCommand(e):this.checkDispatchAllowedLocalCommand(e);return t.some(e=>"Success"!==e)?new Es(t.flat()):Es.Success}checkDispatchAllowedCoreCommand(e){const t=this.corePlugins.map(t=>t.allowDispatch(e));return t.push(this.range.allowDispatch(e)),t}checkDispatchAllowedLocalCommand(e){return this.uiHandlers.map(t=>t.allowDispatch(e))}finalize(){this.status=3;for(const e of this.handlers)e.finalize();this.status=0,this.trigger("command-finalized")}canDispatch=(e,t)=>this.checkDispatchAllowed(CI(e,t));dispatch=(e,t)=>{const r=CI(e,t),n=this.status;if(this.getters.isReadonly()&&(o=r,!bs.has(o.type)))return new Es("Readonly");var o;if(!this.session.canApplyOptimisticUpdate())return new Es("WaitingSessionConfirmation");switch(n){case 0:const t=this.checkDispatchAllowed(r);if(!t.isSuccessful)return this.trigger("update"),t;this.status=1;const{changes:n,commands:o}=this.state.recordChanges(()=>{const t=performance.now();ys(r)&&this.state.addCommand(r),this.dispatchToHandlers(this.handlers,r),this.finalize();const n=performance.now()-t;n>5&&console.debug(e,n,"ms")});this.session.save(r,o,n),this.status=0,this.trigger("update");break;case 1:if(ys(r)){const e=this.checkDispatchAllowed(r);if(!e.isSuccessful)return e;this.state.addCommand(r)}this.dispatchToHandlers(this.handlers,r);break;case 3:throw new Error("Cannot dispatch commands in the finalize state");case 2:if(ys(r))throw new Error(`A UI plugin cannot dispatch ${e} while handling a core command`);this.dispatchToHandlers(this.handlers,r)}return Es.Success};dispatchFromCorePlugin=(e,t)=>{const r=CI(e,t),n=this.status;this.status=2;const o=this.isReplayingCommand?this.coreHandlers:this.handlers;return this.dispatchToHandlers(o,r),this.status=n,Es.Success};dispatchToHandlers(e,t){const r=ys(t);for(const n of e)!r&&n instanceof uw||n.beforeHandle(t);for(const n of e)!r&&n instanceof uw||n.handle(t);this.trigger("command-dispatched",t)}drawLayer(e,t){const r=this.renderers[t];if(r)for(const n of r)e.ctx.save(),n.drawLayer(e,t),e.ctx.restore()}exportData(){let e=lw();for(const t of this.handlers)t instanceof uw&&t.export(e);return e.revisionId=this.session.getRevisionId()||Y,e=re(e),e}updateMode(e){this.config.mode=e,this.trigger("update")}async exportXLSX(){this.dispatch("EVALUATE_CELLS");let e={...lw(),sheets:[(t=tw,r="Sheet1",{...aw(t,r),charts:[],images:[],cellValues:{}})]};var t,r;for(const t of this.handlers)t instanceof Cs&&await t.exportForExcel(e);return e=re(e),EI(e)}garbageCollectExternalResources(){for(const e of this.corePlugins)e.garbageCollectExternalResources()}},e.NotAvailableError=x,e.OPERATOR_MAP=lm,e.OP_PRIORITY=Xg,e.OrderedLayers=II,e.POSTFIX_UNARY_OPERATORS=Dl,e.Registry=h,e.Scope=n,e.SplillBlockedError=A,e.StateObserver=vT,e.TokenizingChars=Ze,e.UNARY_OPERATOR_MAP=cm,e.UnknownFunctionError=R,e.UuidGenerator=Eo,e.__info__=xI,e._t=v,e.addRenderingLayer=function(e,t){if(TI[e])throw new Error(`Layer ${e} already exists`);TI[e]=t},e.batched=function(e){let t=!1;return async(...r)=>{t||(t=!0,await Promise.resolve(),t=!1,e(...r))}},e.borderStyles=["thin","medium","thick","dashed","dotted"],e.buildSheetLink=Ee,e.categories=Ug,e.cellReference=to,e.chartStyleToCellStyle=function(e){return{bold:e.bold,italic:e.italic,fontSize:e.fontSize,textColor:e.color,align:e.align}},e.clip=ae,e.compile=hm,e.compileTokens=dm,e.concat=Ie,e.convertAstNodes=nm,e.createEmptyStructure=yo,e.debounce=Te,e.deepCopy=re,e.deepEquals=Ae,e.deepEqualsArray=Oe,e.errorTypes=w,e.escapeRegExp=te,e.findNextDefinedValue=function(e,t){let r=e.slice(t).find(e=>e);return r||(r=e.slice(0,t).reverse().find(e=>e)),r||""},e.functionCache=um,e.getAddHeaderStartIndex=Re,e.getCanonicalSymbolName=se,e.getFormulaNumberRegex=Rt,e.getFullReference=mo,e.getSearchRegex=function(e,t){let r=te(e);const n=t.matchCase?"":"i";return t.exactMatch&&(r=`^${r}$`),RegExp(r,n)},e.getUniqueText=Xe,e.getUnquotedSheetName=ne,e.groupConsecutive=ce,e.includesAll=De,e.insertItemsAtIndex=Be,e.isBoolean=he,e.isColHeader=uo,e.isColReference=lo,e.isConsecutive=ke,e.isDefined=Se,e.isFormula=Ke,e.isMarkdownLink=ge,e.isMatrix=O,e.isNotNull=function(e){return null!==e},e.isNumber=_t,e.isNumberBetween=Ge,e.isObjectEmptyRecursive=Ce,e.isRowHeader=ho,e.isRowReference=co,e.isSheetUrl=ye,e.isSingleCellReference=fo,e.isWebLink=me,e.iterateAstNodes=om,e.largeMax=We,e.largeMin=qe,e.lazy=xe,e.linkNext=ue,e.loopThroughReferenceType=function(e){if("REFERENCE"!==e.type)return e;const{xc:t,sheetName:r}=go(e.value),[n,o]=t.split(":"),s=po(n),i=o?`:${po(o)}`:"";return{...e,value:mo(r,s+i)}},e.mapAst=im,e.markdownLink=pe,e.memoize=Ue,e.parse=tm,e.parseMarkdownLink=be,e.parseNumber=Dt,e.parseSheetUrl=we,e.parseTokens=rm,e.percentile=Ft,e.range=le,e.rangeReference=ao,e.rangeTokenize=Wg,e.removeDuplicates=Ye,e.removeFalsyAttributes=Fe,e.removeIndexesFromArray=He,e.replaceItemAtIndex=ze,e.replaceNewLines=Pe,e.sanitizeSheetName=ie,e.setDefaultTranslationMethod=b,e.setTranslationMethod=function(e,t=()=>!0){g=e,m=t},e.setXcToFixedReferenceType=bo,e.specialWhiteSpaceRegexp=Me,e.splitReference=go,e.tokenize=Nl,e.transpose2dPOJO=je,e.trimContent=$e,e.unquote=oe,e.whiteSpaceCharacters=Le,xI.version="19.1.0-alpha.3",xI.date="2025-10-17T11:08:54.279Z",xI.hash="a11279d"}(this.o_spreadsheet_engine=this.o_spreadsheet_engine||{});
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.1.0-alpha.
|
|
6
|
-
* @date 2025-10-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.1.0-alpha.7
|
|
6
|
+
* @date 2025-10-17T11:09:35.690Z
|
|
7
|
+
* @hash a11279d
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, useExternalListener, onWillUpdateProps, onWillStart, onWillPatch, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -87526,6 +87526,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
87526
87526
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType$1 as CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, categories, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
87527
87527
|
|
|
87528
87528
|
|
|
87529
|
-
__info__.version = "19.1.0-alpha.
|
|
87530
|
-
__info__.date = "2025-10-
|
|
87531
|
-
__info__.hash = "
|
|
87529
|
+
__info__.version = "19.1.0-alpha.7";
|
|
87530
|
+
__info__.date = "2025-10-17T11:09:35.690Z";
|
|
87531
|
+
__info__.hash = "a11279d";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.1.0-alpha.
|
|
6
|
-
* @date 2025-10-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.1.0-alpha.7
|
|
6
|
+
* @date 2025-10-17T11:09:35.690Z
|
|
7
|
+
* @hash a11279d
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -87581,9 +87581,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
87581
87581
|
exports.tokenize = tokenize;
|
|
87582
87582
|
|
|
87583
87583
|
|
|
87584
|
-
__info__.version = "19.1.0-alpha.
|
|
87585
|
-
__info__.date = "2025-10-
|
|
87586
|
-
__info__.hash = "
|
|
87584
|
+
__info__.version = "19.1.0-alpha.7";
|
|
87585
|
+
__info__.date = "2025-10-17T11:09:35.690Z";
|
|
87586
|
+
__info__.hash = "a11279d";
|
|
87587
87587
|
|
|
87588
87588
|
|
|
87589
87589
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|