@odoo/o-spreadsheet 19.0.33 → 19.0.34
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.
|
@@ -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.0.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.34
|
|
6
|
+
* @date 2026-05-12T12:17:43.737Z
|
|
7
|
+
* @hash d9074ea
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -79416,6 +79416,6 @@ exports.stores = stores;
|
|
|
79416
79416
|
exports.tokenColors = tokenColors;
|
|
79417
79417
|
exports.tokenize = tokenize;
|
|
79418
79418
|
|
|
79419
|
-
__info__.version = "19.0.
|
|
79420
|
-
__info__.date = "2026-05-
|
|
79421
|
-
__info__.hash = "
|
|
79419
|
+
__info__.version = "19.0.34";
|
|
79420
|
+
__info__.date = "2026-05-12T12:17:43.737Z";
|
|
79421
|
+
__info__.hash = "d9074ea";
|
package/dist/o_spreadsheet.css
CHANGED
|
@@ -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.0.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.34
|
|
6
|
+
* @date 2026-05-12T12:17:45.452Z
|
|
7
|
+
* @hash d9074ea
|
|
8
8
|
*/
|
|
9
9
|
/* Originates from src/components/top_bar/top_bar.scss */
|
|
10
10
|
@media (max-width: 1200px) {
|
|
@@ -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.0.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.34
|
|
6
|
+
* @date 2026-05-12T12:17:43.737Z
|
|
7
|
+
* @hash d9074ea
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, xml } from "@odoo/owl";
|
|
@@ -79180,6 +79180,6 @@ const chartHelpers = {
|
|
|
79180
79180
|
//#endregion
|
|
79181
79181
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
79182
79182
|
|
|
79183
|
-
__info__.version = "19.0.
|
|
79184
|
-
__info__.date = "2026-05-
|
|
79185
|
-
__info__.hash = "
|
|
79183
|
+
__info__.version = "19.0.34";
|
|
79184
|
+
__info__.date = "2026-05-12T12:17:43.737Z";
|
|
79185
|
+
__info__.hash = "d9074ea";
|
|
@@ -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.0.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.34
|
|
6
|
+
* @date 2026-05-12T12:17:43.737Z
|
|
7
|
+
* @hash d9074ea
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function(exports, _odoo_owl) {
|
|
@@ -79233,8 +79233,8 @@ exports.stores = stores;
|
|
|
79233
79233
|
exports.tokenColors = tokenColors;
|
|
79234
79234
|
exports.tokenize = tokenize;
|
|
79235
79235
|
|
|
79236
|
-
__info__.version = "19.0.
|
|
79237
|
-
__info__.date = "2026-05-
|
|
79238
|
-
__info__.hash = "
|
|
79236
|
+
__info__.version = "19.0.34";
|
|
79237
|
+
__info__.date = "2026-05-12T12:17:43.737Z";
|
|
79238
|
+
__info__.hash = "d9074ea";
|
|
79239
79239
|
|
|
79240
79240
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|
|
@@ -3446,4 +3446,4 @@ You can download it directly instead.`,5),sticky:!1,type:`warning`});return}r=aw
|
|
|
3446
3446
|
<Relationships xmlns="${Uf.Relationships}">
|
|
3447
3447
|
<Relationship ${K(e)} />
|
|
3448
3448
|
</Relationships>
|
|
3449
|
-
`),`_rels/.rels`)}function EX(e){let t={},n=[];for(let r of e.sheets){let e=r.name.slice(0,31);e=an(e,n,{compute:(e,t)=>e.slice(0,31-String(t).length)+t}),n.push(e),e!==r.name&&(t[r.name]=e,r.name=e)}if(!Object.keys(t).length)return e;let r=Object.keys(t).sort((e,t)=>t.length-e.length),i=JSON.stringify(e);for(let e of r){let n=RegExp(`'?${ut(e)}'?!`,`g`);i=i.replaceAll(n,n=>{let r=t[e];return n.replace(e,r)})}return JSON.parse(i)}function DX(e){for(let t of e.sheets)t.tables=t.tables.filter(e=>Us(Ts(e.range)).numberOfRows>1);return e}var OX=class extends cf{corePlugins=[];statefulUIPlugins=[];range;session;isReplayingCommand=!1;renderers={};status=0;config;corePluginConfig;coreViewPluginConfig;uiPluginConfig;state;selection;getters;coreGetters;uuidGenerator;handlers=[];uiHandlers=[];coreHandlers=[];constructor(e={},n={},r=[],i=new jl,a=!1){let o=performance.now();console.debug(`##### Model creation #####`),super(),dr(),r=jP(e,r);let s=CP(e,a);this.state=new HJ,this.uuidGenerator=i,this.config=this.setupConfig(n),this.session=this.setupSession(s.revisionId),this.coreGetters={},this.range=new dW(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.copyFormulaStringForSheet=this.range.copyFormulaStringForSheet.bind(this.range),this.getters={isReadonly:()=>this.config.mode===`readonly`||this.config.mode===`dashboard`,isDashboard:()=>this.config.mode===`dashboard`},this.selection=new BJ(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(let e of cq.getAll())this.setupCorePlugin(e,s);Object.assign(this.getters,this.coreGetters),this.session.loadInitialMessages(r);for(let e of dq.getAll()){let t=this.setupCoreViewPlugin(e);this.handlers.push(t),this.uiHandlers.push(t),this.coreHandlers.push(t)}for(let e of uq.getAll()){let t=this.setupUiPlugin(e);this.statefulUIPlugins.push(t),this.handlers.push(t),this.uiHandlers.push(t)}for(let e of lq.getAll()){let 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(),n.snapshotRequested||e[`[Content_Types].xml`]&&!this.getters.isReadonly()){let e=performance.now();console.debug(`Snapshot requested`),this.session.snapshot(this.exportData()),this.garbageCollectExternalResources(),console.debug(`Snapshot taken in`,performance.now()-e,`ms`)}(0,t.markRaw)(this),console.debug(`Model created in`,performance.now()-o,`ms`),console.debug(`######`)}joinSession(){this.session.join(this.config.client)}async leaveSession(){let e=this.getters.isReadonly()?void 0:Nt(()=>this.exportData());await this.session.leave(e)}setupUiPlugin(e){let t=new e(this.uiPluginConfig);for(let n of e.getters){if(!(n in t))throw Error(`Invalid getter name: ${n} for plugin ${t.constructor}`);if(n in this.getters)throw Error(`Getter "${n}" is already defined.`);this.getters[n]=t[n].bind(t)}for(let n of e.layers)this.renderers[n]||(this.renderers[n]=[]),this.renderers[n].push(t);return t}setupCoreViewPlugin(e){let t=new e(this.coreViewPluginConfig);for(let n of e.getters){if(!(n in t))throw Error(`Invalid getter name: ${n} for plugin ${t.constructor}`);if(n in this.getters)throw Error(`Getter "${n}" is already defined.`);this.getters[n]=t[n].bind(t)}return t}setupCorePlugin(e,t){let n=new e(this.corePluginConfig);for(let t of e.getters){if(!(t in n))throw Error(`Invalid getter name: ${t} for plugin ${n.constructor}`);if(t in this.coreGetters)throw Error(`Getter "${t}" is already defined.`);this.coreGetters[t]=n[t].bind(n)}n.import(t),this.corePlugins.push(n),this.coreHandlers.push(n),this.handlers.push(n)}onRemoteRevisionReceived({commands:e}){for(let t of e){let e=this.status;this.status=2,this.dispatchToHandlers(this.statefulUIPlugins,t),this.status=e}this.finalize()}setupSession(e){return new oK(IJ({initialRevisionId:e,recordChanges:this.state.recordChanges.bind(this.state),dispatch:e=>{if(!this.checkDispatchAllowed(e).isSuccessful){this.dispatchToHandlers(this.coreHandlers,{type:`UNDO`,commands:[e]});return}this.isReplayingCommand=!0,this.dispatchToHandlers(this.coreHandlers,e),this.isReplayingCommand=!1}}),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){let t=e.client||{id:this.uuidGenerator.smallUuid(),name:E(`Anonymous`).toString()},n=e.transportService||new Hq,r=e.mode===`readonly`||e.mode===`dashboard`;return{...e,mode:e.mode||`normal`,custom:e.custom||{},external:this.setupExternalConfig(e.external||{}),transportService:r?new OJ(n):n,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){let t=e.loadLocales||(()=>Promise.resolve(Pr));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,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}}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){let t=Dr(e)?this.checkDispatchAllowedCoreCommand(e):this.checkDispatchAllowedLocalCommand(e);return t.some(e=>e!==`Success`)?new kr(t.flat()):kr.Success}checkDispatchAllowedCoreCommand(e){let 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(let e of this.handlers)e.finalize();this.status=0,this.trigger(`command-finalized`)}canDispatch=(e,t)=>this.checkDispatchAllowed(kX(e,t));dispatch=(e,t)=>{let n=kX(e,t),r=this.status;if(this.getters.isReadonly()&&!Or(n))return new kr(`Readonly`);if(!this.session.canApplyOptimisticUpdate())return new kr(`WaitingSessionConfirmation`);switch(r){case 0:let t=this.checkDispatchAllowed(n);if(!t.isSuccessful)return this.trigger(`update`),t;this.status=1;let{changes:r,commands:i}=this.state.recordChanges(()=>{let t=performance.now();Dr(n)&&this.state.addCommand(n),this.dispatchToHandlers(this.handlers,n),this.finalize();let r=performance.now()-t;r>5&&console.debug(e,r,`ms`)});this.session.save(n,i,r),this.status=0,this.trigger(`update`);break;case 1:if(Dr(n)){let e=this.checkDispatchAllowed(n);if(!e.isSuccessful)return e;this.state.addCommand(n)}this.dispatchToHandlers(this.handlers,n);break;case 3:throw Error(`Cannot dispatch commands in the finalize state`);case 2:if(Dr(n))throw Error(`A UI plugin cannot dispatch ${e} while handling a core command`);this.dispatchToHandlers(this.handlers,n)}return kr.Success};dispatchFromCorePlugin=(e,t)=>{let n=kX(e,t),r=this.status;this.status=2;let i=this.isReplayingCommand?this.coreHandlers:this.handlers;return this.dispatchToHandlers(i,n),this.status=r,kr.Success};dispatchToHandlers(e,t){let n=Dr(t);for(let r of e)!n&&r instanceof YU||r.beforeHandle(t);for(let r of e)!n&&r instanceof YU||r.handle(t);this.trigger(`command-dispatched`,t)}drawLayer(e,t){let n=this.renderers[t];if(n)for(let r of n)e.ctx.save(),r.drawLayer(e,t),e.ctx.restore()}exportData(){let e=RP();for(let t of this.handlers)t instanceof YU&&t.export(e);return e.revisionId=this.session.getRevisionId()||`START_REVISION`,e=b(e),e}updateMode(e){this.config.mode=e,this.trigger(`update`)}exportXLSX(){this.dispatch(`EVALUATE_CELLS`);let e=BP();for(let t of this.handlers)t instanceof Lp&&t.exportForExcel(e);return e=b(e),_X(e)}garbageCollectExternalResources(){for(let e of this.corePlugins)e.garbageCollectExternalResources()}};function kX(e,t={}){let n=b(t);return n.type=e,n}let AX={},jX={MIN_ROW_HEIGHT:10,MIN_COL_WIDTH:5,HEADER_HEIGHT:26,HEADER_WIDTH:48,DESKTOP_BOTTOMBAR_HEIGHT:36,DEFAULT_CELL_WIDTH:96,DEFAULT_CELL_HEIGHT:23,SCROLLBAR_WIDTH:15},MX={autoCompleteProviders:up,autofillModifiersRegistry:lG,autofillRulesRegistry:uG,cellMenuRegistry:zR,colMenuRegistry:rB,errorTypes:Ki,linkMenuRegistry:LA,functionRegistry:zS,featurePluginRegistry:lq,iconsOnCellRegistry:$W,statefulUIPluginRegistry:uq,coreViewsPluginRegistry:dq,corePluginRegistry:cq,rowMenuRegistry:uB,sidePanelRegistry:RU,figureRegistry:pk,chartSidePanelComponentRegistry:EH,chartComponentRegistry:pO,chartRegistry:fO,chartSubtypeRegistry:hO,topbarMenuRegistry:Bq,topbarComponentRegistry:Vq,clickableCellRegistry:gq,otRegistry:wG,inverseCommandRegistry:yq,urlRegistry:Wr,cellPopoverRegistry:gk,numberFormatMenuRegistry:Fq,repeatLocalCommandTransformRegistry:HK,repeatCommandTransformRegistry:VK,clipboardHandlersRegistries:af,pivotRegistry:vR,pivotTimeAdapterRegistry:od,pivotSidePanelRegistry:yU,pivotNormalizationValueRegistry:Ld,supportedPivotPositionalFormulaRegistry:GU,pivotToFunctionValueRegistry:Rd,migrationStepRegistry:vP,chartJsExtensionRegistry:Mf},NX={arg:H,isEvaluationError:j,toBoolean:P,toJsDate:F,toNumber:M,toString:N,toNormalizedPivotValue:Nd,toFunctionPivotValue:Fd,toXC:T,toZone:Ts,toUnboundedZone:ws,toCartesian:ir,numberToLetters:Yn,lettersToNumber:Xn,UuidGenerator:jl,formatValue:L,createCurrencyFormat:Ro,ColorGenerator:Un,computeTextWidth:ml,createEmptyWorkbookData:RP,createEmptySheet:LP,createEmptyExcelSheet:zP,rgbaToHex:bn,colorToRGBA:xn,positionToZone:R,isDefined:C,isMatrix:Ir,lazy:Nt,genericRepeat:UK,createAction:m,createActions:f,transformRangeData:sf,deepEquals:w,overlap:zs,union:Fs,isInside:Vs,deepCopy:b,expandZoneOnInsertion:js,reduceZoneOnDeletion:Ps,unquote:pt,getMaxObjectId:Td,getFunctionsFromTokens:fC,getFirstPivotFunction:hU,getNumberOfPivotFunctions:gU,parseDimension:Od,isDateOrDatetimeField:kd,makeFieldProposal:uU,insertTokenAfterArgSeparator:fU,insertTokenAfterLeftParenthesis:pU,mergeContiguousZones:dc,getPivotHighlights:YH,pivotTimeAdapter:sd,UNDO_REDO_PIVOT_COMMANDS:oG,createPivotFormula:Md,areDomainArgsFieldsValid:jd,splitReference:jc,sanitizeSheetName:ht,getUniqueText:an,isNumber:Hi,isDateTime:ui,createCustomFields:Wd},PX={isMarkdownLink:xt,parseMarkdownLink:wt,markdownLink:Ct,openLink:Yr,urlRepresentation:Jr},FX={Checkbox:bA,Section:X,RoundColorPicker:aA,ChartDataSeries:IV,ChartErrorSection:LV,ChartLabelRange:RV,ChartTitle:HV,ChartPanel:kH,ChartFigure:dk,ChartJsComponent:Ew,ClickableCellSortIcon:KU,ZoomableChartJsComponent:TD,Grid:WU,GridOverlay:oV,ScorecardChart:Uw,GaugeChartComponent:jD,LineConfigPanel:dH,BarConfigPanel:BV,PieChartDesignPanel:mH,GenericChartConfigPanel:zV,ChartWithAxisDesignPanel:ZV,GenericZoomableChartDesignPanel:QV,LineChartDesignPanel:fH,GaugeChartConfigPanel:iH,GaugeChartDesignPanel:aH,ScorecardChartConfigPanel:_H,ScorecardChartDesignPanel:vH,GeoChartDesignPanel:lH,RadarChartDesignPanel:hH,WaterfallChartDesignPanel:TH,ComboChartDesignPanel:tH,FunnelChartDesignPanel:rH,SunburstChartDesignPanel:yH,TreeMapChartDesignPanel:wH,ChartTypePicker:DH,FigureComponent:mk,MenuPopover:ck,Popover:ik,SelectionInput:mA,ValidationMessages:ZB,AddDimensionButton:eU,PivotDimensionGranularity:nU,PivotDimensionOrder:rU,PivotDimension:tU,PivotLayoutConfigurator:sU,PivotHTMLRenderer:JU,PivotDeferUpdate:ZH,PivotTitleSection:cU,CogWheelMenu:PV,TextInput:kV,SidePanelCollapsible:bk,RadioSelection:WV,GeoChartRegionSelectSection:oH,ChartDashboardMenu:lk,FullScreenFigure:qU},IX={useDragAndDropListItems:sA,useHighlights:MH,useHighlightsOnHover:jH},LX={useStoreProvider:pf,DependencyContainer:lf,CellPopoverStore:TA,ComposerFocusStore:Sf,CellComposerStore:RB,FindAndReplaceStore:UH,HighlightStore:Kk,DelayedHoveredCellStore:hk,HoveredTableStore:rV,ModelStore:vf,NotificationStore:qk,RendererStore:yf,SelectionInputStore:pA,SpreadsheetStore:bf,useStore:z,useLocalStore:mf,SidePanelStore:BU,PivotSidePanelStore:_U,PivotMeasureDisplayPanelStore:qH,ClientFocusStore:fB,GridRenderer:mV};function RX(e,t){return zS.add(e,t),{addFunction:(e,t)=>RX(e,t)}}let zX={DEFAULT_LOCALE:D,HIGHLIGHT_COLOR:v,PIVOT_TABLE_CONFIG:tt,ChartTerms:Ub,FIGURE_ID_SPLITTER:`??`,GRID_ICON_EDGE_LENGTH:17,GRID_ICON_MARGIN:2},BX={...xO,...vD};e.AbstractCellClipboardHandler=Hl,e.AbstractChart=Dw,e.AbstractFigureClipboardHandler=Wl,e.CellErrorType=k,e.ClientDisconnectedError=aK,e.CommandResult=jr,e.CorePlugin=YU,e.CoreViewPlugin=bW,e.DispatchResult=kr,e.EvaluationError=A,e.LocalTransportService=Hq,e.Model=OX,e.PivotRuntimeDefinition=eR,e.Registry=g,e.Revision=iK,e.SPREADSHEET_DIMENSIONS=jX,e.Spreadsheet=DJ,e.SpreadsheetPivotTable=nR,e.UIPlugin=Rp,e.__info__=AX,e.addFunction=RX,e.addRenderingLayer=zr,e.astToFormula=PB,e.chartHelpers=BX,e.compile=rC,e.compileTokens=iC,e.components=FX,e.constants=zX,e.convertAstNodes=$y,e.coreTypes=Er,e.findCellInNewZone=Qs,e.functionCache=nC,e.getCaretDownSvg=Tj,e.getCaretUpSvg=Ej,e.helpers=NX,e.hooks=IX,e.invalidateCFEvaluationCommands=Sr,e.invalidateChartEvaluationCommands=br,e.invalidateDependenciesCommands=xr,e.invalidateEvaluationCommands=yr,e.iterateAstNodes=eb,e.links=PX,e.load=CP,e.parse=Zy,e.parseTokens=Qy,e.readonlyAllowedCommands=Tr,e.registries=MX,e.setDefaultSheetViewSize=$e,e.setTranslationMethod=ur,e.stores=LX,e.tokenColors=ot,e.tokenize=Jl,AX.version=`19.0.33`,AX.date=`2026-05-11T13:47:09.950Z`,AX.hash=`b46ee86`})(this.o_spreadsheet=this.o_spreadsheet||{},owl);
|
|
3449
|
+
`),`_rels/.rels`)}function EX(e){let t={},n=[];for(let r of e.sheets){let e=r.name.slice(0,31);e=an(e,n,{compute:(e,t)=>e.slice(0,31-String(t).length)+t}),n.push(e),e!==r.name&&(t[r.name]=e,r.name=e)}if(!Object.keys(t).length)return e;let r=Object.keys(t).sort((e,t)=>t.length-e.length),i=JSON.stringify(e);for(let e of r){let n=RegExp(`'?${ut(e)}'?!`,`g`);i=i.replaceAll(n,n=>{let r=t[e];return n.replace(e,r)})}return JSON.parse(i)}function DX(e){for(let t of e.sheets)t.tables=t.tables.filter(e=>Us(Ts(e.range)).numberOfRows>1);return e}var OX=class extends cf{corePlugins=[];statefulUIPlugins=[];range;session;isReplayingCommand=!1;renderers={};status=0;config;corePluginConfig;coreViewPluginConfig;uiPluginConfig;state;selection;getters;coreGetters;uuidGenerator;handlers=[];uiHandlers=[];coreHandlers=[];constructor(e={},n={},r=[],i=new jl,a=!1){let o=performance.now();console.debug(`##### Model creation #####`),super(),dr(),r=jP(e,r);let s=CP(e,a);this.state=new HJ,this.uuidGenerator=i,this.config=this.setupConfig(n),this.session=this.setupSession(s.revisionId),this.coreGetters={},this.range=new dW(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.copyFormulaStringForSheet=this.range.copyFormulaStringForSheet.bind(this.range),this.getters={isReadonly:()=>this.config.mode===`readonly`||this.config.mode===`dashboard`,isDashboard:()=>this.config.mode===`dashboard`},this.selection=new BJ(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(let e of cq.getAll())this.setupCorePlugin(e,s);Object.assign(this.getters,this.coreGetters),this.session.loadInitialMessages(r);for(let e of dq.getAll()){let t=this.setupCoreViewPlugin(e);this.handlers.push(t),this.uiHandlers.push(t),this.coreHandlers.push(t)}for(let e of uq.getAll()){let t=this.setupUiPlugin(e);this.statefulUIPlugins.push(t),this.handlers.push(t),this.uiHandlers.push(t)}for(let e of lq.getAll()){let 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(),n.snapshotRequested||e[`[Content_Types].xml`]&&!this.getters.isReadonly()){let e=performance.now();console.debug(`Snapshot requested`),this.session.snapshot(this.exportData()),this.garbageCollectExternalResources(),console.debug(`Snapshot taken in`,performance.now()-e,`ms`)}(0,t.markRaw)(this),console.debug(`Model created in`,performance.now()-o,`ms`),console.debug(`######`)}joinSession(){this.session.join(this.config.client)}async leaveSession(){let e=this.getters.isReadonly()?void 0:Nt(()=>this.exportData());await this.session.leave(e)}setupUiPlugin(e){let t=new e(this.uiPluginConfig);for(let n of e.getters){if(!(n in t))throw Error(`Invalid getter name: ${n} for plugin ${t.constructor}`);if(n in this.getters)throw Error(`Getter "${n}" is already defined.`);this.getters[n]=t[n].bind(t)}for(let n of e.layers)this.renderers[n]||(this.renderers[n]=[]),this.renderers[n].push(t);return t}setupCoreViewPlugin(e){let t=new e(this.coreViewPluginConfig);for(let n of e.getters){if(!(n in t))throw Error(`Invalid getter name: ${n} for plugin ${t.constructor}`);if(n in this.getters)throw Error(`Getter "${n}" is already defined.`);this.getters[n]=t[n].bind(t)}return t}setupCorePlugin(e,t){let n=new e(this.corePluginConfig);for(let t of e.getters){if(!(t in n))throw Error(`Invalid getter name: ${t} for plugin ${n.constructor}`);if(t in this.coreGetters)throw Error(`Getter "${t}" is already defined.`);this.coreGetters[t]=n[t].bind(n)}n.import(t),this.corePlugins.push(n),this.coreHandlers.push(n),this.handlers.push(n)}onRemoteRevisionReceived({commands:e}){for(let t of e){let e=this.status;this.status=2,this.dispatchToHandlers(this.statefulUIPlugins,t),this.status=e}this.finalize()}setupSession(e){return new oK(IJ({initialRevisionId:e,recordChanges:this.state.recordChanges.bind(this.state),dispatch:e=>{if(!this.checkDispatchAllowed(e).isSuccessful){this.dispatchToHandlers(this.coreHandlers,{type:`UNDO`,commands:[e]});return}this.isReplayingCommand=!0,this.dispatchToHandlers(this.coreHandlers,e),this.isReplayingCommand=!1}}),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){let t=e.client||{id:this.uuidGenerator.smallUuid(),name:E(`Anonymous`).toString()},n=e.transportService||new Hq,r=e.mode===`readonly`||e.mode===`dashboard`;return{...e,mode:e.mode||`normal`,custom:e.custom||{},external:this.setupExternalConfig(e.external||{}),transportService:r?new OJ(n):n,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){let t=e.loadLocales||(()=>Promise.resolve(Pr));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,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}}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){let t=Dr(e)?this.checkDispatchAllowedCoreCommand(e):this.checkDispatchAllowedLocalCommand(e);return t.some(e=>e!==`Success`)?new kr(t.flat()):kr.Success}checkDispatchAllowedCoreCommand(e){let 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(let e of this.handlers)e.finalize();this.status=0,this.trigger(`command-finalized`)}canDispatch=(e,t)=>this.checkDispatchAllowed(kX(e,t));dispatch=(e,t)=>{let n=kX(e,t),r=this.status;if(this.getters.isReadonly()&&!Or(n))return new kr(`Readonly`);if(!this.session.canApplyOptimisticUpdate())return new kr(`WaitingSessionConfirmation`);switch(r){case 0:let t=this.checkDispatchAllowed(n);if(!t.isSuccessful)return this.trigger(`update`),t;this.status=1;let{changes:r,commands:i}=this.state.recordChanges(()=>{let t=performance.now();Dr(n)&&this.state.addCommand(n),this.dispatchToHandlers(this.handlers,n),this.finalize();let r=performance.now()-t;r>5&&console.debug(e,r,`ms`)});this.session.save(n,i,r),this.status=0,this.trigger(`update`);break;case 1:if(Dr(n)){let e=this.checkDispatchAllowed(n);if(!e.isSuccessful)return e;this.state.addCommand(n)}this.dispatchToHandlers(this.handlers,n);break;case 3:throw Error(`Cannot dispatch commands in the finalize state`);case 2:if(Dr(n))throw Error(`A UI plugin cannot dispatch ${e} while handling a core command`);this.dispatchToHandlers(this.handlers,n)}return kr.Success};dispatchFromCorePlugin=(e,t)=>{let n=kX(e,t),r=this.status;this.status=2;let i=this.isReplayingCommand?this.coreHandlers:this.handlers;return this.dispatchToHandlers(i,n),this.status=r,kr.Success};dispatchToHandlers(e,t){let n=Dr(t);for(let r of e)!n&&r instanceof YU||r.beforeHandle(t);for(let r of e)!n&&r instanceof YU||r.handle(t);this.trigger(`command-dispatched`,t)}drawLayer(e,t){let n=this.renderers[t];if(n)for(let r of n)e.ctx.save(),r.drawLayer(e,t),e.ctx.restore()}exportData(){let e=RP();for(let t of this.handlers)t instanceof YU&&t.export(e);return e.revisionId=this.session.getRevisionId()||`START_REVISION`,e=b(e),e}updateMode(e){this.config.mode=e,this.trigger(`update`)}exportXLSX(){this.dispatch(`EVALUATE_CELLS`);let e=BP();for(let t of this.handlers)t instanceof Lp&&t.exportForExcel(e);return e=b(e),_X(e)}garbageCollectExternalResources(){for(let e of this.corePlugins)e.garbageCollectExternalResources()}};function kX(e,t={}){let n=b(t);return n.type=e,n}let AX={},jX={MIN_ROW_HEIGHT:10,MIN_COL_WIDTH:5,HEADER_HEIGHT:26,HEADER_WIDTH:48,DESKTOP_BOTTOMBAR_HEIGHT:36,DEFAULT_CELL_WIDTH:96,DEFAULT_CELL_HEIGHT:23,SCROLLBAR_WIDTH:15},MX={autoCompleteProviders:up,autofillModifiersRegistry:lG,autofillRulesRegistry:uG,cellMenuRegistry:zR,colMenuRegistry:rB,errorTypes:Ki,linkMenuRegistry:LA,functionRegistry:zS,featurePluginRegistry:lq,iconsOnCellRegistry:$W,statefulUIPluginRegistry:uq,coreViewsPluginRegistry:dq,corePluginRegistry:cq,rowMenuRegistry:uB,sidePanelRegistry:RU,figureRegistry:pk,chartSidePanelComponentRegistry:EH,chartComponentRegistry:pO,chartRegistry:fO,chartSubtypeRegistry:hO,topbarMenuRegistry:Bq,topbarComponentRegistry:Vq,clickableCellRegistry:gq,otRegistry:wG,inverseCommandRegistry:yq,urlRegistry:Wr,cellPopoverRegistry:gk,numberFormatMenuRegistry:Fq,repeatLocalCommandTransformRegistry:HK,repeatCommandTransformRegistry:VK,clipboardHandlersRegistries:af,pivotRegistry:vR,pivotTimeAdapterRegistry:od,pivotSidePanelRegistry:yU,pivotNormalizationValueRegistry:Ld,supportedPivotPositionalFormulaRegistry:GU,pivotToFunctionValueRegistry:Rd,migrationStepRegistry:vP,chartJsExtensionRegistry:Mf},NX={arg:H,isEvaluationError:j,toBoolean:P,toJsDate:F,toNumber:M,toString:N,toNormalizedPivotValue:Nd,toFunctionPivotValue:Fd,toXC:T,toZone:Ts,toUnboundedZone:ws,toCartesian:ir,numberToLetters:Yn,lettersToNumber:Xn,UuidGenerator:jl,formatValue:L,createCurrencyFormat:Ro,ColorGenerator:Un,computeTextWidth:ml,createEmptyWorkbookData:RP,createEmptySheet:LP,createEmptyExcelSheet:zP,rgbaToHex:bn,colorToRGBA:xn,positionToZone:R,isDefined:C,isMatrix:Ir,lazy:Nt,genericRepeat:UK,createAction:m,createActions:f,transformRangeData:sf,deepEquals:w,overlap:zs,union:Fs,isInside:Vs,deepCopy:b,expandZoneOnInsertion:js,reduceZoneOnDeletion:Ps,unquote:pt,getMaxObjectId:Td,getFunctionsFromTokens:fC,getFirstPivotFunction:hU,getNumberOfPivotFunctions:gU,parseDimension:Od,isDateOrDatetimeField:kd,makeFieldProposal:uU,insertTokenAfterArgSeparator:fU,insertTokenAfterLeftParenthesis:pU,mergeContiguousZones:dc,getPivotHighlights:YH,pivotTimeAdapter:sd,UNDO_REDO_PIVOT_COMMANDS:oG,createPivotFormula:Md,areDomainArgsFieldsValid:jd,splitReference:jc,sanitizeSheetName:ht,getUniqueText:an,isNumber:Hi,isDateTime:ui,createCustomFields:Wd},PX={isMarkdownLink:xt,parseMarkdownLink:wt,markdownLink:Ct,openLink:Yr,urlRepresentation:Jr},FX={Checkbox:bA,Section:X,RoundColorPicker:aA,ChartDataSeries:IV,ChartErrorSection:LV,ChartLabelRange:RV,ChartTitle:HV,ChartPanel:kH,ChartFigure:dk,ChartJsComponent:Ew,ClickableCellSortIcon:KU,ZoomableChartJsComponent:TD,Grid:WU,GridOverlay:oV,ScorecardChart:Uw,GaugeChartComponent:jD,LineConfigPanel:dH,BarConfigPanel:BV,PieChartDesignPanel:mH,GenericChartConfigPanel:zV,ChartWithAxisDesignPanel:ZV,GenericZoomableChartDesignPanel:QV,LineChartDesignPanel:fH,GaugeChartConfigPanel:iH,GaugeChartDesignPanel:aH,ScorecardChartConfigPanel:_H,ScorecardChartDesignPanel:vH,GeoChartDesignPanel:lH,RadarChartDesignPanel:hH,WaterfallChartDesignPanel:TH,ComboChartDesignPanel:tH,FunnelChartDesignPanel:rH,SunburstChartDesignPanel:yH,TreeMapChartDesignPanel:wH,ChartTypePicker:DH,FigureComponent:mk,MenuPopover:ck,Popover:ik,SelectionInput:mA,ValidationMessages:ZB,AddDimensionButton:eU,PivotDimensionGranularity:nU,PivotDimensionOrder:rU,PivotDimension:tU,PivotLayoutConfigurator:sU,PivotHTMLRenderer:JU,PivotDeferUpdate:ZH,PivotTitleSection:cU,CogWheelMenu:PV,TextInput:kV,SidePanelCollapsible:bk,RadioSelection:WV,GeoChartRegionSelectSection:oH,ChartDashboardMenu:lk,FullScreenFigure:qU},IX={useDragAndDropListItems:sA,useHighlights:MH,useHighlightsOnHover:jH},LX={useStoreProvider:pf,DependencyContainer:lf,CellPopoverStore:TA,ComposerFocusStore:Sf,CellComposerStore:RB,FindAndReplaceStore:UH,HighlightStore:Kk,DelayedHoveredCellStore:hk,HoveredTableStore:rV,ModelStore:vf,NotificationStore:qk,RendererStore:yf,SelectionInputStore:pA,SpreadsheetStore:bf,useStore:z,useLocalStore:mf,SidePanelStore:BU,PivotSidePanelStore:_U,PivotMeasureDisplayPanelStore:qH,ClientFocusStore:fB,GridRenderer:mV};function RX(e,t){return zS.add(e,t),{addFunction:(e,t)=>RX(e,t)}}let zX={DEFAULT_LOCALE:D,HIGHLIGHT_COLOR:v,PIVOT_TABLE_CONFIG:tt,ChartTerms:Ub,FIGURE_ID_SPLITTER:`??`,GRID_ICON_EDGE_LENGTH:17,GRID_ICON_MARGIN:2},BX={...xO,...vD};e.AbstractCellClipboardHandler=Hl,e.AbstractChart=Dw,e.AbstractFigureClipboardHandler=Wl,e.CellErrorType=k,e.ClientDisconnectedError=aK,e.CommandResult=jr,e.CorePlugin=YU,e.CoreViewPlugin=bW,e.DispatchResult=kr,e.EvaluationError=A,e.LocalTransportService=Hq,e.Model=OX,e.PivotRuntimeDefinition=eR,e.Registry=g,e.Revision=iK,e.SPREADSHEET_DIMENSIONS=jX,e.Spreadsheet=DJ,e.SpreadsheetPivotTable=nR,e.UIPlugin=Rp,e.__info__=AX,e.addFunction=RX,e.addRenderingLayer=zr,e.astToFormula=PB,e.chartHelpers=BX,e.compile=rC,e.compileTokens=iC,e.components=FX,e.constants=zX,e.convertAstNodes=$y,e.coreTypes=Er,e.findCellInNewZone=Qs,e.functionCache=nC,e.getCaretDownSvg=Tj,e.getCaretUpSvg=Ej,e.helpers=NX,e.hooks=IX,e.invalidateCFEvaluationCommands=Sr,e.invalidateChartEvaluationCommands=br,e.invalidateDependenciesCommands=xr,e.invalidateEvaluationCommands=yr,e.iterateAstNodes=eb,e.links=PX,e.load=CP,e.parse=Zy,e.parseTokens=Qy,e.readonlyAllowedCommands=Tr,e.registries=MX,e.setDefaultSheetViewSize=$e,e.setTranslationMethod=ur,e.stores=LX,e.tokenColors=ot,e.tokenize=Jl,AX.version=`19.0.34`,AX.date=`2026-05-12T12:17:43.737Z`,AX.hash=`d9074ea`})(this.o_spreadsheet=this.o_spreadsheet||{},owl);
|
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
3
3
|
@see https://github.com/odoo/o-spreadsheet
|
|
4
|
-
@version 19.0.
|
|
5
|
-
@date 2026-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.0.34
|
|
5
|
+
@date 2026-05-12T12:17:44.609Z
|
|
6
|
+
@hash d9074ea
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.34",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test:watch": "jest --watch",
|
|
29
29
|
"prettier": "prettier . --write",
|
|
30
30
|
"check-formatting": "prettier . --check && eslint",
|
|
31
|
-
"
|
|
31
|
+
"prepare": "husky install",
|
|
32
32
|
"watch": "npm-run-all -p watch:*",
|
|
33
33
|
"watch:bundle": "npm run bundle:iife -- --watch",
|
|
34
34
|
"watch:ts": "npm run build:js -- --watch",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"jszip": "^3.6.0",
|
|
88
88
|
"lint-staged": "^12.1.2",
|
|
89
89
|
"live-server": "^1.2.1",
|
|
90
|
-
"luxon": "
|
|
90
|
+
"luxon": "3.5.0",
|
|
91
91
|
"minimist": "^1.2.8",
|
|
92
92
|
"mockdate": "^3.0.2",
|
|
93
93
|
"node-watch": "^0.7.3",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"xmlSelfClosingSpace": false
|
|
136
136
|
},
|
|
137
137
|
"dependencies": {
|
|
138
|
-
"@odoo/owl": "2.8.
|
|
139
|
-
"bootstrap": "
|
|
138
|
+
"@odoo/owl": "2.8.2",
|
|
139
|
+
"bootstrap": "5.3.3",
|
|
140
140
|
"font-awesome": "^4.7.0",
|
|
141
141
|
"rbush": "^3.0.1"
|
|
142
142
|
},
|