@odoo/o-spreadsheet 18.1.6 → 18.1.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.
|
@@ -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 18.1.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.7
|
|
6
|
+
* @date 2025-02-10T09:00:28.556Z
|
|
7
|
+
* @hash 338d8a1
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -770,9 +770,16 @@ function deepEqualsArray(arr1, arr2) {
|
|
|
770
770
|
}
|
|
771
771
|
return true;
|
|
772
772
|
}
|
|
773
|
-
/**
|
|
773
|
+
/**
|
|
774
|
+
* Check if the given array contains all the values of the other array.
|
|
775
|
+
* It makes the assumption that both array do not contain duplicates.
|
|
776
|
+
*/
|
|
774
777
|
function includesAll(arr, values) {
|
|
775
|
-
|
|
778
|
+
if (arr.length < values.length) {
|
|
779
|
+
return false;
|
|
780
|
+
}
|
|
781
|
+
const set = new Set(arr);
|
|
782
|
+
return values.every((value) => set.has(value));
|
|
776
783
|
}
|
|
777
784
|
/**
|
|
778
785
|
* Return an object with all the keys in the object that have a falsy value removed.
|
|
@@ -41031,8 +41038,8 @@ function useDragAndDropListItems() {
|
|
|
41031
41038
|
document.body.style.cursor = "move";
|
|
41032
41039
|
state.draggedItemId = args.draggedItemId;
|
|
41033
41040
|
const container = direction === "horizontal"
|
|
41034
|
-
? new HorizontalContainer(args.
|
|
41035
|
-
: new VerticalContainer(args.
|
|
41041
|
+
? new HorizontalContainer(args.scrollableContainerEl)
|
|
41042
|
+
: new VerticalContainer(args.scrollableContainerEl);
|
|
41036
41043
|
dndHelper = new DOMDndHelper({
|
|
41037
41044
|
...args,
|
|
41038
41045
|
container,
|
|
@@ -41043,8 +41050,8 @@ function useDragAndDropListItems() {
|
|
|
41043
41050
|
const stopListening = startDnd(dndHelper.onMouseMove.bind(dndHelper), dndHelper.onMouseUp.bind(dndHelper));
|
|
41044
41051
|
cleanupFns.push(stopListening);
|
|
41045
41052
|
const onScroll = dndHelper.onScroll.bind(dndHelper);
|
|
41046
|
-
args.
|
|
41047
|
-
cleanupFns.push(() => args.
|
|
41053
|
+
args.scrollableContainerEl.addEventListener("scroll", onScroll);
|
|
41054
|
+
cleanupFns.push(() => args.scrollableContainerEl.removeEventListener("scroll", onScroll));
|
|
41048
41055
|
cleanupFns.push(dndHelper.destroy.bind(dndHelper));
|
|
41049
41056
|
};
|
|
41050
41057
|
owl.onWillUnmount(() => {
|
|
@@ -41501,7 +41508,7 @@ class ConditionalFormatPreviewList extends owl.Component {
|
|
|
41501
41508
|
draggedItemId: cf.id,
|
|
41502
41509
|
initialMousePosition: event.clientY,
|
|
41503
41510
|
items: items,
|
|
41504
|
-
|
|
41511
|
+
scrollableContainerEl: this.cfListRef.el,
|
|
41505
41512
|
onDragEnd: (cfId, finalIndex) => this.onDragEnd(cfId, finalIndex),
|
|
41506
41513
|
});
|
|
41507
41514
|
}
|
|
@@ -44683,6 +44690,7 @@ class PivotLayoutConfigurator extends owl.Component {
|
|
|
44683
44690
|
unusedGranularities: Object,
|
|
44684
44691
|
dateGranularities: Array,
|
|
44685
44692
|
datetimeGranularities: Array,
|
|
44693
|
+
getScrollableContainerEl: { type: Function, optional: true },
|
|
44686
44694
|
pivotId: String,
|
|
44687
44695
|
};
|
|
44688
44696
|
dimensionsRef = owl.useRef("pivot-dimensions");
|
|
@@ -44716,7 +44724,7 @@ class PivotLayoutConfigurator extends owl.Component {
|
|
|
44716
44724
|
draggedItemId: dimension.nameWithGranularity,
|
|
44717
44725
|
initialMousePosition: event.clientY,
|
|
44718
44726
|
items: draggableItems,
|
|
44719
|
-
|
|
44727
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44720
44728
|
onDragEnd: (dimensionName, finalIndex) => {
|
|
44721
44729
|
const originalIndex = draggableIds.findIndex((id) => id === dimensionName);
|
|
44722
44730
|
if (originalIndex === finalIndex) {
|
|
@@ -44765,7 +44773,7 @@ class PivotLayoutConfigurator extends owl.Component {
|
|
|
44765
44773
|
draggedItemId: measure.id,
|
|
44766
44774
|
initialMousePosition: event.clientY,
|
|
44767
44775
|
items: draggableItems,
|
|
44768
|
-
|
|
44776
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44769
44777
|
onDragEnd: (measureName, finalIndex) => {
|
|
44770
44778
|
const originalIndex = draggableIds.findIndex((id) => id === measureName);
|
|
44771
44779
|
if (originalIndex === finalIndex) {
|
|
@@ -45398,7 +45406,7 @@ class SpreadsheetPivotTable {
|
|
|
45398
45406
|
rowTreeToRows(tree, parentRow) {
|
|
45399
45407
|
return tree.flatMap((node) => {
|
|
45400
45408
|
const row = {
|
|
45401
|
-
indent: parentRow ? parentRow.indent + 1 :
|
|
45409
|
+
indent: parentRow ? parentRow.indent + 1 : 1,
|
|
45402
45410
|
fields: [...(parentRow?.fields || []), node.field],
|
|
45403
45411
|
values: [...(parentRow?.values || []), node.value],
|
|
45404
45412
|
};
|
|
@@ -45454,7 +45462,7 @@ function dataEntriesToRows(dataEntries, index, rows, fields, values) {
|
|
|
45454
45462
|
pivotTableRows.push({
|
|
45455
45463
|
fields: _fields,
|
|
45456
45464
|
values: _values,
|
|
45457
|
-
indent: index,
|
|
45465
|
+
indent: index + 1,
|
|
45458
45466
|
});
|
|
45459
45467
|
const record = groups[value];
|
|
45460
45468
|
if (record) {
|
|
@@ -46452,6 +46460,7 @@ class PivotSpreadsheetSidePanel extends owl.Component {
|
|
|
46452
46460
|
};
|
|
46453
46461
|
store;
|
|
46454
46462
|
state;
|
|
46463
|
+
pivotSidePanelRef = owl.useRef("pivotSidePanel");
|
|
46455
46464
|
setup() {
|
|
46456
46465
|
this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId);
|
|
46457
46466
|
this.state = owl.useState({
|
|
@@ -46480,6 +46489,9 @@ class PivotSpreadsheetSidePanel extends owl.Component {
|
|
|
46480
46489
|
get definition() {
|
|
46481
46490
|
return this.store.definition;
|
|
46482
46491
|
}
|
|
46492
|
+
getScrollableContainerEl() {
|
|
46493
|
+
return this.pivotSidePanelRef.el;
|
|
46494
|
+
}
|
|
46483
46495
|
onSelectionChanged(ranges) {
|
|
46484
46496
|
this.state.rangeHasChanged = true;
|
|
46485
46497
|
this.state.range = ranges[0];
|
|
@@ -68961,7 +68973,7 @@ class BottomBar extends owl.Component {
|
|
|
68961
68973
|
draggedItemId: sheetId,
|
|
68962
68974
|
initialMousePosition: event.clientX,
|
|
68963
68975
|
items: sheets,
|
|
68964
|
-
|
|
68976
|
+
scrollableContainerEl: this.sheetListRef.el,
|
|
68965
68977
|
onDragEnd: (sheetId, finalIndex) => this.onDragEnd(sheetId, finalIndex),
|
|
68966
68978
|
});
|
|
68967
68979
|
}
|
|
@@ -75100,6 +75112,6 @@ exports.tokenColors = tokenColors;
|
|
|
75100
75112
|
exports.tokenize = tokenize;
|
|
75101
75113
|
|
|
75102
75114
|
|
|
75103
|
-
__info__.version = "18.1.
|
|
75104
|
-
__info__.date = "2025-02-
|
|
75105
|
-
__info__.hash = "
|
|
75115
|
+
__info__.version = "18.1.7";
|
|
75116
|
+
__info__.date = "2025-02-10T09:00:28.556Z";
|
|
75117
|
+
__info__.hash = "338d8a1";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -9555,7 +9555,7 @@ interface DndPartialArgs {
|
|
|
9555
9555
|
draggedItemId: UID;
|
|
9556
9556
|
initialMousePosition: Pixel;
|
|
9557
9557
|
items: DragAndDropItemsPartial[];
|
|
9558
|
-
|
|
9558
|
+
scrollableContainerEl: HTMLElement;
|
|
9559
9559
|
onChange?: () => void;
|
|
9560
9560
|
onCancel?: () => void;
|
|
9561
9561
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -10076,6 +10076,7 @@ interface Props$f {
|
|
|
10076
10076
|
unusedGranularities: Record<string, Set<string>>;
|
|
10077
10077
|
dateGranularities: string[];
|
|
10078
10078
|
datetimeGranularities: string[];
|
|
10079
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
10079
10080
|
pivotId: UID;
|
|
10080
10081
|
}
|
|
10081
10082
|
declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChildEnv> {
|
|
@@ -10096,6 +10097,10 @@ declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChil
|
|
|
10096
10097
|
unusedGranularities: ObjectConstructor;
|
|
10097
10098
|
dateGranularities: ArrayConstructor;
|
|
10098
10099
|
datetimeGranularities: ArrayConstructor;
|
|
10100
|
+
getScrollableContainerEl: {
|
|
10101
|
+
type: FunctionConstructor;
|
|
10102
|
+
optional: boolean;
|
|
10103
|
+
};
|
|
10099
10104
|
pivotId: StringConstructor;
|
|
10100
10105
|
};
|
|
10101
10106
|
private dimensionsRef;
|
|
@@ -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 18.1.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.7
|
|
6
|
+
* @date 2025-02-10T09:00:28.556Z
|
|
7
|
+
* @hash 338d8a1
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -768,9 +768,16 @@ function deepEqualsArray(arr1, arr2) {
|
|
|
768
768
|
}
|
|
769
769
|
return true;
|
|
770
770
|
}
|
|
771
|
-
/**
|
|
771
|
+
/**
|
|
772
|
+
* Check if the given array contains all the values of the other array.
|
|
773
|
+
* It makes the assumption that both array do not contain duplicates.
|
|
774
|
+
*/
|
|
772
775
|
function includesAll(arr, values) {
|
|
773
|
-
|
|
776
|
+
if (arr.length < values.length) {
|
|
777
|
+
return false;
|
|
778
|
+
}
|
|
779
|
+
const set = new Set(arr);
|
|
780
|
+
return values.every((value) => set.has(value));
|
|
774
781
|
}
|
|
775
782
|
/**
|
|
776
783
|
* Return an object with all the keys in the object that have a falsy value removed.
|
|
@@ -41029,8 +41036,8 @@ function useDragAndDropListItems() {
|
|
|
41029
41036
|
document.body.style.cursor = "move";
|
|
41030
41037
|
state.draggedItemId = args.draggedItemId;
|
|
41031
41038
|
const container = direction === "horizontal"
|
|
41032
|
-
? new HorizontalContainer(args.
|
|
41033
|
-
: new VerticalContainer(args.
|
|
41039
|
+
? new HorizontalContainer(args.scrollableContainerEl)
|
|
41040
|
+
: new VerticalContainer(args.scrollableContainerEl);
|
|
41034
41041
|
dndHelper = new DOMDndHelper({
|
|
41035
41042
|
...args,
|
|
41036
41043
|
container,
|
|
@@ -41041,8 +41048,8 @@ function useDragAndDropListItems() {
|
|
|
41041
41048
|
const stopListening = startDnd(dndHelper.onMouseMove.bind(dndHelper), dndHelper.onMouseUp.bind(dndHelper));
|
|
41042
41049
|
cleanupFns.push(stopListening);
|
|
41043
41050
|
const onScroll = dndHelper.onScroll.bind(dndHelper);
|
|
41044
|
-
args.
|
|
41045
|
-
cleanupFns.push(() => args.
|
|
41051
|
+
args.scrollableContainerEl.addEventListener("scroll", onScroll);
|
|
41052
|
+
cleanupFns.push(() => args.scrollableContainerEl.removeEventListener("scroll", onScroll));
|
|
41046
41053
|
cleanupFns.push(dndHelper.destroy.bind(dndHelper));
|
|
41047
41054
|
};
|
|
41048
41055
|
onWillUnmount(() => {
|
|
@@ -41499,7 +41506,7 @@ class ConditionalFormatPreviewList extends Component {
|
|
|
41499
41506
|
draggedItemId: cf.id,
|
|
41500
41507
|
initialMousePosition: event.clientY,
|
|
41501
41508
|
items: items,
|
|
41502
|
-
|
|
41509
|
+
scrollableContainerEl: this.cfListRef.el,
|
|
41503
41510
|
onDragEnd: (cfId, finalIndex) => this.onDragEnd(cfId, finalIndex),
|
|
41504
41511
|
});
|
|
41505
41512
|
}
|
|
@@ -44681,6 +44688,7 @@ class PivotLayoutConfigurator extends Component {
|
|
|
44681
44688
|
unusedGranularities: Object,
|
|
44682
44689
|
dateGranularities: Array,
|
|
44683
44690
|
datetimeGranularities: Array,
|
|
44691
|
+
getScrollableContainerEl: { type: Function, optional: true },
|
|
44684
44692
|
pivotId: String,
|
|
44685
44693
|
};
|
|
44686
44694
|
dimensionsRef = useRef("pivot-dimensions");
|
|
@@ -44714,7 +44722,7 @@ class PivotLayoutConfigurator extends Component {
|
|
|
44714
44722
|
draggedItemId: dimension.nameWithGranularity,
|
|
44715
44723
|
initialMousePosition: event.clientY,
|
|
44716
44724
|
items: draggableItems,
|
|
44717
|
-
|
|
44725
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44718
44726
|
onDragEnd: (dimensionName, finalIndex) => {
|
|
44719
44727
|
const originalIndex = draggableIds.findIndex((id) => id === dimensionName);
|
|
44720
44728
|
if (originalIndex === finalIndex) {
|
|
@@ -44763,7 +44771,7 @@ class PivotLayoutConfigurator extends Component {
|
|
|
44763
44771
|
draggedItemId: measure.id,
|
|
44764
44772
|
initialMousePosition: event.clientY,
|
|
44765
44773
|
items: draggableItems,
|
|
44766
|
-
|
|
44774
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44767
44775
|
onDragEnd: (measureName, finalIndex) => {
|
|
44768
44776
|
const originalIndex = draggableIds.findIndex((id) => id === measureName);
|
|
44769
44777
|
if (originalIndex === finalIndex) {
|
|
@@ -45396,7 +45404,7 @@ class SpreadsheetPivotTable {
|
|
|
45396
45404
|
rowTreeToRows(tree, parentRow) {
|
|
45397
45405
|
return tree.flatMap((node) => {
|
|
45398
45406
|
const row = {
|
|
45399
|
-
indent: parentRow ? parentRow.indent + 1 :
|
|
45407
|
+
indent: parentRow ? parentRow.indent + 1 : 1,
|
|
45400
45408
|
fields: [...(parentRow?.fields || []), node.field],
|
|
45401
45409
|
values: [...(parentRow?.values || []), node.value],
|
|
45402
45410
|
};
|
|
@@ -45452,7 +45460,7 @@ function dataEntriesToRows(dataEntries, index, rows, fields, values) {
|
|
|
45452
45460
|
pivotTableRows.push({
|
|
45453
45461
|
fields: _fields,
|
|
45454
45462
|
values: _values,
|
|
45455
|
-
indent: index,
|
|
45463
|
+
indent: index + 1,
|
|
45456
45464
|
});
|
|
45457
45465
|
const record = groups[value];
|
|
45458
45466
|
if (record) {
|
|
@@ -46450,6 +46458,7 @@ class PivotSpreadsheetSidePanel extends Component {
|
|
|
46450
46458
|
};
|
|
46451
46459
|
store;
|
|
46452
46460
|
state;
|
|
46461
|
+
pivotSidePanelRef = useRef("pivotSidePanel");
|
|
46453
46462
|
setup() {
|
|
46454
46463
|
this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId);
|
|
46455
46464
|
this.state = useState({
|
|
@@ -46478,6 +46487,9 @@ class PivotSpreadsheetSidePanel extends Component {
|
|
|
46478
46487
|
get definition() {
|
|
46479
46488
|
return this.store.definition;
|
|
46480
46489
|
}
|
|
46490
|
+
getScrollableContainerEl() {
|
|
46491
|
+
return this.pivotSidePanelRef.el;
|
|
46492
|
+
}
|
|
46481
46493
|
onSelectionChanged(ranges) {
|
|
46482
46494
|
this.state.rangeHasChanged = true;
|
|
46483
46495
|
this.state.range = ranges[0];
|
|
@@ -68959,7 +68971,7 @@ class BottomBar extends Component {
|
|
|
68959
68971
|
draggedItemId: sheetId,
|
|
68960
68972
|
initialMousePosition: event.clientX,
|
|
68961
68973
|
items: sheets,
|
|
68962
|
-
|
|
68974
|
+
scrollableContainerEl: this.sheetListRef.el,
|
|
68963
68975
|
onDragEnd: (sheetId, finalIndex) => this.onDragEnd(sheetId, finalIndex),
|
|
68964
68976
|
});
|
|
68965
68977
|
}
|
|
@@ -75054,6 +75066,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
75054
75066
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
75055
75067
|
|
|
75056
75068
|
|
|
75057
|
-
__info__.version = "18.1.
|
|
75058
|
-
__info__.date = "2025-02-
|
|
75059
|
-
__info__.hash = "
|
|
75069
|
+
__info__.version = "18.1.7";
|
|
75070
|
+
__info__.date = "2025-02-10T09:00:28.556Z";
|
|
75071
|
+
__info__.hash = "338d8a1";
|
|
@@ -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 18.1.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.7
|
|
6
|
+
* @date 2025-02-10T09:00:28.556Z
|
|
7
|
+
* @hash 338d8a1
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -769,9 +769,16 @@
|
|
|
769
769
|
}
|
|
770
770
|
return true;
|
|
771
771
|
}
|
|
772
|
-
/**
|
|
772
|
+
/**
|
|
773
|
+
* Check if the given array contains all the values of the other array.
|
|
774
|
+
* It makes the assumption that both array do not contain duplicates.
|
|
775
|
+
*/
|
|
773
776
|
function includesAll(arr, values) {
|
|
774
|
-
|
|
777
|
+
if (arr.length < values.length) {
|
|
778
|
+
return false;
|
|
779
|
+
}
|
|
780
|
+
const set = new Set(arr);
|
|
781
|
+
return values.every((value) => set.has(value));
|
|
775
782
|
}
|
|
776
783
|
/**
|
|
777
784
|
* Return an object with all the keys in the object that have a falsy value removed.
|
|
@@ -41030,8 +41037,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
41030
41037
|
document.body.style.cursor = "move";
|
|
41031
41038
|
state.draggedItemId = args.draggedItemId;
|
|
41032
41039
|
const container = direction === "horizontal"
|
|
41033
|
-
? new HorizontalContainer(args.
|
|
41034
|
-
: new VerticalContainer(args.
|
|
41040
|
+
? new HorizontalContainer(args.scrollableContainerEl)
|
|
41041
|
+
: new VerticalContainer(args.scrollableContainerEl);
|
|
41035
41042
|
dndHelper = new DOMDndHelper({
|
|
41036
41043
|
...args,
|
|
41037
41044
|
container,
|
|
@@ -41042,8 +41049,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
41042
41049
|
const stopListening = startDnd(dndHelper.onMouseMove.bind(dndHelper), dndHelper.onMouseUp.bind(dndHelper));
|
|
41043
41050
|
cleanupFns.push(stopListening);
|
|
41044
41051
|
const onScroll = dndHelper.onScroll.bind(dndHelper);
|
|
41045
|
-
args.
|
|
41046
|
-
cleanupFns.push(() => args.
|
|
41052
|
+
args.scrollableContainerEl.addEventListener("scroll", onScroll);
|
|
41053
|
+
cleanupFns.push(() => args.scrollableContainerEl.removeEventListener("scroll", onScroll));
|
|
41047
41054
|
cleanupFns.push(dndHelper.destroy.bind(dndHelper));
|
|
41048
41055
|
};
|
|
41049
41056
|
owl.onWillUnmount(() => {
|
|
@@ -41500,7 +41507,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
41500
41507
|
draggedItemId: cf.id,
|
|
41501
41508
|
initialMousePosition: event.clientY,
|
|
41502
41509
|
items: items,
|
|
41503
|
-
|
|
41510
|
+
scrollableContainerEl: this.cfListRef.el,
|
|
41504
41511
|
onDragEnd: (cfId, finalIndex) => this.onDragEnd(cfId, finalIndex),
|
|
41505
41512
|
});
|
|
41506
41513
|
}
|
|
@@ -44682,6 +44689,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44682
44689
|
unusedGranularities: Object,
|
|
44683
44690
|
dateGranularities: Array,
|
|
44684
44691
|
datetimeGranularities: Array,
|
|
44692
|
+
getScrollableContainerEl: { type: Function, optional: true },
|
|
44685
44693
|
pivotId: String,
|
|
44686
44694
|
};
|
|
44687
44695
|
dimensionsRef = owl.useRef("pivot-dimensions");
|
|
@@ -44715,7 +44723,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44715
44723
|
draggedItemId: dimension.nameWithGranularity,
|
|
44716
44724
|
initialMousePosition: event.clientY,
|
|
44717
44725
|
items: draggableItems,
|
|
44718
|
-
|
|
44726
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44719
44727
|
onDragEnd: (dimensionName, finalIndex) => {
|
|
44720
44728
|
const originalIndex = draggableIds.findIndex((id) => id === dimensionName);
|
|
44721
44729
|
if (originalIndex === finalIndex) {
|
|
@@ -44764,7 +44772,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44764
44772
|
draggedItemId: measure.id,
|
|
44765
44773
|
initialMousePosition: event.clientY,
|
|
44766
44774
|
items: draggableItems,
|
|
44767
|
-
|
|
44775
|
+
scrollableContainerEl: this.props.getScrollableContainerEl?.() || this.dimensionsRef.el,
|
|
44768
44776
|
onDragEnd: (measureName, finalIndex) => {
|
|
44769
44777
|
const originalIndex = draggableIds.findIndex((id) => id === measureName);
|
|
44770
44778
|
if (originalIndex === finalIndex) {
|
|
@@ -45397,7 +45405,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
45397
45405
|
rowTreeToRows(tree, parentRow) {
|
|
45398
45406
|
return tree.flatMap((node) => {
|
|
45399
45407
|
const row = {
|
|
45400
|
-
indent: parentRow ? parentRow.indent + 1 :
|
|
45408
|
+
indent: parentRow ? parentRow.indent + 1 : 1,
|
|
45401
45409
|
fields: [...(parentRow?.fields || []), node.field],
|
|
45402
45410
|
values: [...(parentRow?.values || []), node.value],
|
|
45403
45411
|
};
|
|
@@ -45453,7 +45461,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
45453
45461
|
pivotTableRows.push({
|
|
45454
45462
|
fields: _fields,
|
|
45455
45463
|
values: _values,
|
|
45456
|
-
indent: index,
|
|
45464
|
+
indent: index + 1,
|
|
45457
45465
|
});
|
|
45458
45466
|
const record = groups[value];
|
|
45459
45467
|
if (record) {
|
|
@@ -46451,6 +46459,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
46451
46459
|
};
|
|
46452
46460
|
store;
|
|
46453
46461
|
state;
|
|
46462
|
+
pivotSidePanelRef = owl.useRef("pivotSidePanel");
|
|
46454
46463
|
setup() {
|
|
46455
46464
|
this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId);
|
|
46456
46465
|
this.state = owl.useState({
|
|
@@ -46479,6 +46488,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
46479
46488
|
get definition() {
|
|
46480
46489
|
return this.store.definition;
|
|
46481
46490
|
}
|
|
46491
|
+
getScrollableContainerEl() {
|
|
46492
|
+
return this.pivotSidePanelRef.el;
|
|
46493
|
+
}
|
|
46482
46494
|
onSelectionChanged(ranges) {
|
|
46483
46495
|
this.state.rangeHasChanged = true;
|
|
46484
46496
|
this.state.range = ranges[0];
|
|
@@ -68960,7 +68972,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
68960
68972
|
draggedItemId: sheetId,
|
|
68961
68973
|
initialMousePosition: event.clientX,
|
|
68962
68974
|
items: sheets,
|
|
68963
|
-
|
|
68975
|
+
scrollableContainerEl: this.sheetListRef.el,
|
|
68964
68976
|
onDragEnd: (sheetId, finalIndex) => this.onDragEnd(sheetId, finalIndex),
|
|
68965
68977
|
});
|
|
68966
68978
|
}
|
|
@@ -75099,9 +75111,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
75099
75111
|
exports.tokenize = tokenize;
|
|
75100
75112
|
|
|
75101
75113
|
|
|
75102
|
-
__info__.version = "18.1.
|
|
75103
|
-
__info__.date = "2025-02-
|
|
75104
|
-
__info__.hash = "
|
|
75114
|
+
__info__.version = "18.1.7";
|
|
75115
|
+
__info__.date = "2025-02-10T09:00:28.556Z";
|
|
75116
|
+
__info__.hash = "338d8a1";
|
|
75105
75117
|
|
|
75106
75118
|
|
|
75107
75119
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|