@odoo/o-spreadsheet 19.4.0-alpha.13 → 19.4.0-alpha.14
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.cjs +804 -839
- package/dist/o_spreadsheet.css +12 -4
- package/dist/o_spreadsheet.esm.js +412 -447
- package/dist/o_spreadsheet.iife.js +804 -839
- package/dist/o_spreadsheet.min.iife.js +78 -78
- package/dist/o_spreadsheet.xml +8 -7
- package/dist/types/components/action_button/action_button.d.ts +1 -1
- package/dist/types/components/animation/ripple.d.ts +3 -3
- package/dist/types/components/border_editor/border_editor.d.ts +2 -2
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +1 -1
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +2 -1
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -1
- package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -1
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +2 -2
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +2 -3
- package/dist/types/components/helpers/dom_helpers.d.ts +0 -4
- package/dist/types/components/menu/menu.d.ts +1 -1
- package/dist/types/components/menu_popover/menu_popover.d.ts +1 -1
- package/dist/types/components/props_validation.d.ts +2 -6
- package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +5 -6
- package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +5 -4
- package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +7 -7
- package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +3 -2
- package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +3 -2
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +5 -5
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +3 -3
- package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +7 -4
- package/dist/types/components/side_panel/chart/common.d.ts +3 -2
- package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +4 -4
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +2 -2
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +1 -1
- package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.4.0-alpha.
|
|
6
|
-
* @date 2026-06-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.4.0-alpha.14
|
|
6
|
+
* @date 2026-06-12T09:49:11.281Z
|
|
7
|
+
* @hash f92f5e0
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function(exports, _odoo_owl) {
|
|
@@ -333,12 +333,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
333
333
|
a.click();
|
|
334
334
|
document.body.removeChild(a);
|
|
335
335
|
}
|
|
336
|
-
/**
|
|
337
|
-
* Detects if the current browser is Firefox
|
|
338
|
-
*/
|
|
339
|
-
function isBrowserFirefox() {
|
|
340
|
-
return /Firefox/i.test(navigator.userAgent);
|
|
341
|
-
}
|
|
342
336
|
function maxTouchPoints() {
|
|
343
337
|
return navigator.maxTouchPoints || 1;
|
|
344
338
|
}
|
|
@@ -3010,6 +3004,187 @@ set(value) {
|
|
|
3010
3004
|
return container;
|
|
3011
3005
|
}
|
|
3012
3006
|
|
|
3007
|
+
//#endregion
|
|
3008
|
+
//#region src/components/props_validation.ts
|
|
3009
|
+
/**
|
|
3010
|
+
* Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
|
|
3011
|
+
*/
|
|
3012
|
+
function validateNumber() {
|
|
3013
|
+
return _odoo_owl.types.number();
|
|
3014
|
+
}
|
|
3015
|
+
/**
|
|
3016
|
+
* Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
|
|
3017
|
+
*/
|
|
3018
|
+
function validateString() {
|
|
3019
|
+
return _odoo_owl.types.string();
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
|
|
3023
|
+
*/
|
|
3024
|
+
function validateObject() {
|
|
3025
|
+
return _odoo_owl.types.object();
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* Validate that a prop is an array, but with a more specific element type than `any[]`.
|
|
3029
|
+
*/
|
|
3030
|
+
function validateArrayOf() {
|
|
3031
|
+
return _odoo_owl.types.array();
|
|
3032
|
+
}
|
|
3033
|
+
/**
|
|
3034
|
+
* Validate that a prop is a record (string-keyed dictionary), but with a more
|
|
3035
|
+
* specific value type than `any`.
|
|
3036
|
+
*/
|
|
3037
|
+
function validateRecordOf() {
|
|
3038
|
+
return _odoo_owl.types.record();
|
|
3039
|
+
}
|
|
3040
|
+
/**
|
|
3041
|
+
* Validate that a prop is a `Set`, typed with a specific element type.
|
|
3042
|
+
*/
|
|
3043
|
+
function validateSetOf() {
|
|
3044
|
+
return _odoo_owl.types.instanceOf(Set);
|
|
3045
|
+
}
|
|
3046
|
+
function validateRect() {
|
|
3047
|
+
return _odoo_owl.types.object({
|
|
3048
|
+
x: _odoo_owl.types.number(),
|
|
3049
|
+
y: _odoo_owl.types.number(),
|
|
3050
|
+
width: _odoo_owl.types.number(),
|
|
3051
|
+
height: _odoo_owl.types.number()
|
|
3052
|
+
});
|
|
3053
|
+
}
|
|
3054
|
+
function validateBorderPosition() {
|
|
3055
|
+
return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
|
|
3056
|
+
}
|
|
3057
|
+
function validateBorderStyle() {
|
|
3058
|
+
return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
|
|
3059
|
+
}
|
|
3060
|
+
function validateDOMCoordinates() {
|
|
3061
|
+
return _odoo_owl.types.object({
|
|
3062
|
+
x: _odoo_owl.types.number(),
|
|
3063
|
+
y: _odoo_owl.types.number()
|
|
3064
|
+
});
|
|
3065
|
+
}
|
|
3066
|
+
function validateDOMDimension() {
|
|
3067
|
+
return _odoo_owl.types.object({
|
|
3068
|
+
width: _odoo_owl.types.number(),
|
|
3069
|
+
height: _odoo_owl.types.number()
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
function validateSortDirection() {
|
|
3073
|
+
return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
|
|
3074
|
+
}
|
|
3075
|
+
function validateResizeDirection() {
|
|
3076
|
+
return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
|
|
3077
|
+
-1,
|
|
3078
|
+
0,
|
|
3079
|
+
1
|
|
3080
|
+
].includes(direction));
|
|
3081
|
+
}
|
|
3082
|
+
function validateComposerFocusType() {
|
|
3083
|
+
return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
|
|
3084
|
+
}
|
|
3085
|
+
function validateDimension() {
|
|
3086
|
+
return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
|
|
3087
|
+
}
|
|
3088
|
+
function validateContextMenuType() {
|
|
3089
|
+
return _odoo_owl.types.customValidator(validateString(), (value) => [
|
|
3090
|
+
"ROW",
|
|
3091
|
+
"COL",
|
|
3092
|
+
"CELL",
|
|
3093
|
+
"FILTER",
|
|
3094
|
+
"GROUP_HEADERS",
|
|
3095
|
+
"UNGROUP_HEADERS"
|
|
3096
|
+
].includes(value));
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
|
|
3100
|
+
* match what `useStore(...)` returns at the call site.
|
|
3101
|
+
*/
|
|
3102
|
+
function validateStore() {
|
|
3103
|
+
return _odoo_owl.types.object();
|
|
3104
|
+
}
|
|
3105
|
+
function validateFunction() {
|
|
3106
|
+
return _odoo_owl.types.function();
|
|
3107
|
+
}
|
|
3108
|
+
const types = {
|
|
3109
|
+
..._odoo_owl.types,
|
|
3110
|
+
function: validateFunction,
|
|
3111
|
+
ArrayOf: validateArrayOf,
|
|
3112
|
+
RecordOf: validateRecordOf,
|
|
3113
|
+
SetOf: validateSetOf,
|
|
3114
|
+
GenericCriterionType: validateString,
|
|
3115
|
+
UID: validateString,
|
|
3116
|
+
CriterionFilter: validateObject,
|
|
3117
|
+
CSSProperties: validateObject,
|
|
3118
|
+
ResizeDirection: validateResizeDirection,
|
|
3119
|
+
FigureUI: validateObject,
|
|
3120
|
+
Token: validateObject,
|
|
3121
|
+
CellPosition: validateObject,
|
|
3122
|
+
AutoCompleteProviderDefinition: validateObject,
|
|
3123
|
+
AutoCompleteProposal: validateObject,
|
|
3124
|
+
FunctionDescription: validateObject,
|
|
3125
|
+
Rect: validateRect,
|
|
3126
|
+
Pixel: validateNumber,
|
|
3127
|
+
HeaderIndex: validateNumber,
|
|
3128
|
+
BorderPosition: validateBorderPosition,
|
|
3129
|
+
BorderStyle: validateBorderStyle,
|
|
3130
|
+
Color: validateString,
|
|
3131
|
+
ActionSpec: validateObject,
|
|
3132
|
+
DOMCoordinates: validateDOMCoordinates,
|
|
3133
|
+
DOMDimension: validateDOMDimension,
|
|
3134
|
+
ComposerFocusType: validateComposerFocusType,
|
|
3135
|
+
SortDirection: validateSortDirection,
|
|
3136
|
+
Store: validateStore,
|
|
3137
|
+
Position: validateObject,
|
|
3138
|
+
PivotCoreDefinition: validateObject,
|
|
3139
|
+
PivotField: validateObject,
|
|
3140
|
+
PivotDimension: validateObject,
|
|
3141
|
+
PivotMeasure: validateObject,
|
|
3142
|
+
PivotCoreMeasure: validateObject,
|
|
3143
|
+
PivotCustomGroupedField: validateObject,
|
|
3144
|
+
PivotRuntimeDefinition: validateObject,
|
|
3145
|
+
PivotFilter: validateObject,
|
|
3146
|
+
DataFilterValue: validateObject,
|
|
3147
|
+
SpreadsheetPivotCoreDefinition: validateObject,
|
|
3148
|
+
ComposerSelection: validateObject,
|
|
3149
|
+
Action: validateObject,
|
|
3150
|
+
MenuItemOrSeparator: validateObject,
|
|
3151
|
+
Model: validateObject,
|
|
3152
|
+
DispatchResult: validateObject,
|
|
3153
|
+
Zone: validateObject,
|
|
3154
|
+
Range: validateObject,
|
|
3155
|
+
HeaderGroup: validateObject,
|
|
3156
|
+
GridClickModifiers: validateObject,
|
|
3157
|
+
ZoomedMouseEvent: validateObject,
|
|
3158
|
+
ConditionalFormat: validateObject,
|
|
3159
|
+
ColorScaleThreshold: validateObject,
|
|
3160
|
+
Table: validateObject,
|
|
3161
|
+
CoreTable: validateObject,
|
|
3162
|
+
TableConfig: validateObject,
|
|
3163
|
+
TableStyle: validateObject,
|
|
3164
|
+
TitleDesign: validateObject,
|
|
3165
|
+
ChartDefinition: validateObject,
|
|
3166
|
+
ChartDefinitionWithDataSource: validateObject,
|
|
3167
|
+
ChartWithAxisDefinition: validateObject,
|
|
3168
|
+
ChartStyle: validateObject,
|
|
3169
|
+
ChartColorScale: validateObject,
|
|
3170
|
+
ChartRangeDataSource: validateObject,
|
|
3171
|
+
DataSetStyle: validateObject,
|
|
3172
|
+
GeoChartDefinition: validateObject,
|
|
3173
|
+
FunnelChartDefinition: validateObject,
|
|
3174
|
+
TreeMapChartDefinition: validateObject,
|
|
3175
|
+
TreeMapCategoryColorOptions: validateObject,
|
|
3176
|
+
TreeMapColorScaleOptions: validateObject,
|
|
3177
|
+
NamedRange: validateObject,
|
|
3178
|
+
DataValidationRule: validateObject,
|
|
3179
|
+
InformationNotification: validateObject,
|
|
3180
|
+
NotificationStoreMethods: validateObject,
|
|
3181
|
+
SidePanelContent: validateObject,
|
|
3182
|
+
SidePanelComponentProps: validateObject,
|
|
3183
|
+
DataValidationCriterionType: validateString,
|
|
3184
|
+
Dimension: validateDimension,
|
|
3185
|
+
ContextMenuType: validateContextMenuType
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3013
3188
|
//#endregion
|
|
3014
3189
|
//#region src/components/figures/chart/chartJs/chartjs_animation_store.ts
|
|
3015
3190
|
var ChartAnimationStore = class extends SpreadsheetStore {
|
|
@@ -11525,8 +11700,8 @@ set(value) {
|
|
|
11525
11700
|
var ChartJsComponent = class extends Component {
|
|
11526
11701
|
static template = "o-spreadsheet-ChartJsComponent";
|
|
11527
11702
|
props = (0, _odoo_owl.props)({
|
|
11528
|
-
chartId:
|
|
11529
|
-
"isFullScreen?":
|
|
11703
|
+
chartId: types.string(),
|
|
11704
|
+
"isFullScreen?": types.boolean()
|
|
11530
11705
|
});
|
|
11531
11706
|
canvas = (0, _odoo_owl.signal)(null);
|
|
11532
11707
|
chart;
|
|
@@ -12224,8 +12399,8 @@ set(value) {
|
|
|
12224
12399
|
var ScorecardChart = class extends Component {
|
|
12225
12400
|
static template = "o-spreadsheet-ScorecardChart";
|
|
12226
12401
|
props = (0, _odoo_owl.props)({
|
|
12227
|
-
chartId:
|
|
12228
|
-
"isFullScreen?":
|
|
12402
|
+
chartId: types.string(),
|
|
12403
|
+
"isFullScreen?": types.boolean()
|
|
12229
12404
|
});
|
|
12230
12405
|
canvas = (0, _odoo_owl.signal)(null);
|
|
12231
12406
|
get runtime() {
|
|
@@ -13913,8 +14088,8 @@ set(value) {
|
|
|
13913
14088
|
var GaugeChartComponent = class extends Component {
|
|
13914
14089
|
static template = "o-spreadsheet-GaugeChartComponent";
|
|
13915
14090
|
props = (0, _odoo_owl.props)({
|
|
13916
|
-
chartId:
|
|
13917
|
-
"isFullScreen?":
|
|
14091
|
+
chartId: types.string(),
|
|
14092
|
+
"isFullScreen?": types.boolean()
|
|
13918
14093
|
});
|
|
13919
14094
|
canvas = (0, _odoo_owl.signal)(null);
|
|
13920
14095
|
animationStore;
|
|
@@ -14186,200 +14361,23 @@ set(value) {
|
|
|
14186
14361
|
};
|
|
14187
14362
|
}
|
|
14188
14363
|
|
|
14189
|
-
//#endregion
|
|
14190
|
-
//#region src/components/props_validation.ts
|
|
14191
|
-
/**
|
|
14192
|
-
* Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
|
|
14193
|
-
*/
|
|
14194
|
-
function validateNumber() {
|
|
14195
|
-
return _odoo_owl.types.number();
|
|
14196
|
-
}
|
|
14197
|
-
/**
|
|
14198
|
-
* Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
|
|
14199
|
-
*/
|
|
14200
|
-
function validateString() {
|
|
14201
|
-
return _odoo_owl.types.string();
|
|
14202
|
-
}
|
|
14203
|
-
/**
|
|
14204
|
-
* Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
|
|
14205
|
-
*/
|
|
14206
|
-
function validateObject() {
|
|
14207
|
-
return _odoo_owl.types.object();
|
|
14208
|
-
}
|
|
14209
|
-
/**
|
|
14210
|
-
* Validate that a prop is an array, but with a more specific element type than `any[]`.
|
|
14211
|
-
*/
|
|
14212
|
-
function validateArrayOf() {
|
|
14213
|
-
return _odoo_owl.types.array();
|
|
14214
|
-
}
|
|
14215
|
-
/**
|
|
14216
|
-
* Validate that a prop is a record (string-keyed dictionary), but with a more
|
|
14217
|
-
* specific value type than `any`.
|
|
14218
|
-
*/
|
|
14219
|
-
function validateRecordOf() {
|
|
14220
|
-
return _odoo_owl.types.record();
|
|
14221
|
-
}
|
|
14222
|
-
/**
|
|
14223
|
-
* Validate that a prop is a `Set`, typed with a specific element type.
|
|
14224
|
-
*/
|
|
14225
|
-
function validateSetOf() {
|
|
14226
|
-
return _odoo_owl.types.instanceOf(Set);
|
|
14227
|
-
}
|
|
14228
|
-
function validateRect() {
|
|
14229
|
-
return _odoo_owl.types.object({
|
|
14230
|
-
x: _odoo_owl.types.number(),
|
|
14231
|
-
y: _odoo_owl.types.number(),
|
|
14232
|
-
width: _odoo_owl.types.number(),
|
|
14233
|
-
height: _odoo_owl.types.number()
|
|
14234
|
-
});
|
|
14235
|
-
}
|
|
14236
|
-
function validateBorderPosition() {
|
|
14237
|
-
return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
|
|
14238
|
-
}
|
|
14239
|
-
function validateBorderStyle() {
|
|
14240
|
-
return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
|
|
14241
|
-
}
|
|
14242
|
-
function validateDOMCoordinates() {
|
|
14243
|
-
return _odoo_owl.types.object({
|
|
14244
|
-
x: _odoo_owl.types.number(),
|
|
14245
|
-
y: _odoo_owl.types.number()
|
|
14246
|
-
});
|
|
14247
|
-
}
|
|
14248
|
-
function validateDOMDimension() {
|
|
14249
|
-
return _odoo_owl.types.object({
|
|
14250
|
-
width: _odoo_owl.types.number(),
|
|
14251
|
-
height: _odoo_owl.types.number()
|
|
14252
|
-
});
|
|
14253
|
-
}
|
|
14254
|
-
function validateSortDirection() {
|
|
14255
|
-
return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
|
|
14256
|
-
}
|
|
14257
|
-
function validateResizeDirection() {
|
|
14258
|
-
return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
|
|
14259
|
-
-1,
|
|
14260
|
-
0,
|
|
14261
|
-
1
|
|
14262
|
-
].includes(direction));
|
|
14263
|
-
}
|
|
14264
|
-
function validateComposerFocusType() {
|
|
14265
|
-
return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
|
|
14266
|
-
}
|
|
14267
|
-
function validateDimension() {
|
|
14268
|
-
return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
|
|
14269
|
-
}
|
|
14270
|
-
function validateContextMenuType() {
|
|
14271
|
-
return _odoo_owl.types.customValidator(validateString(), (value) => [
|
|
14272
|
-
"ROW",
|
|
14273
|
-
"COL",
|
|
14274
|
-
"CELL",
|
|
14275
|
-
"FILTER",
|
|
14276
|
-
"GROUP_HEADERS",
|
|
14277
|
-
"UNGROUP_HEADERS"
|
|
14278
|
-
].includes(value));
|
|
14279
|
-
}
|
|
14280
|
-
/**
|
|
14281
|
-
* Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
|
|
14282
|
-
* match what `useStore(...)` returns at the call site.
|
|
14283
|
-
*/
|
|
14284
|
-
function validateStore() {
|
|
14285
|
-
return _odoo_owl.types.object();
|
|
14286
|
-
}
|
|
14287
|
-
const types$6 = {
|
|
14288
|
-
..._odoo_owl.types,
|
|
14289
|
-
ArrayOf: validateArrayOf,
|
|
14290
|
-
RecordOf: validateRecordOf,
|
|
14291
|
-
SetOf: validateSetOf,
|
|
14292
|
-
GenericCriterionType: validateString,
|
|
14293
|
-
UID: validateString,
|
|
14294
|
-
CriterionFilter: validateObject,
|
|
14295
|
-
CSSProperties: validateObject,
|
|
14296
|
-
ResizeDirection: validateResizeDirection,
|
|
14297
|
-
FigureUI: validateObject,
|
|
14298
|
-
Token: validateObject,
|
|
14299
|
-
CellPosition: validateObject,
|
|
14300
|
-
AutoCompleteProviderDefinition: validateObject,
|
|
14301
|
-
AutoCompleteProposal: validateObject,
|
|
14302
|
-
FunctionDescription: validateObject,
|
|
14303
|
-
Rect: validateRect,
|
|
14304
|
-
Pixel: validateNumber,
|
|
14305
|
-
HeaderIndex: validateNumber,
|
|
14306
|
-
BorderPosition: validateBorderPosition,
|
|
14307
|
-
BorderStyle: validateBorderStyle,
|
|
14308
|
-
Color: validateString,
|
|
14309
|
-
ActionSpec: validateObject,
|
|
14310
|
-
DOMCoordinates: validateDOMCoordinates,
|
|
14311
|
-
DOMDimension: validateDOMDimension,
|
|
14312
|
-
ComposerFocusType: validateComposerFocusType,
|
|
14313
|
-
SortDirection: validateSortDirection,
|
|
14314
|
-
Store: validateStore,
|
|
14315
|
-
Position: validateObject,
|
|
14316
|
-
PivotCoreDefinition: validateObject,
|
|
14317
|
-
PivotField: validateObject,
|
|
14318
|
-
PivotDimension: validateObject,
|
|
14319
|
-
PivotMeasure: validateObject,
|
|
14320
|
-
PivotCoreMeasure: validateObject,
|
|
14321
|
-
PivotCustomGroupedField: validateObject,
|
|
14322
|
-
PivotRuntimeDefinition: validateObject,
|
|
14323
|
-
PivotFilter: validateObject,
|
|
14324
|
-
DataFilterValue: validateObject,
|
|
14325
|
-
SpreadsheetPivotCoreDefinition: validateObject,
|
|
14326
|
-
ComposerSelection: validateObject,
|
|
14327
|
-
Action: validateObject,
|
|
14328
|
-
MenuItemOrSeparator: validateObject,
|
|
14329
|
-
Model: validateObject,
|
|
14330
|
-
DispatchResult: validateObject,
|
|
14331
|
-
Zone: validateObject,
|
|
14332
|
-
Range: validateObject,
|
|
14333
|
-
HeaderGroup: validateObject,
|
|
14334
|
-
GridClickModifiers: validateObject,
|
|
14335
|
-
ZoomedMouseEvent: validateObject,
|
|
14336
|
-
ConditionalFormat: validateObject,
|
|
14337
|
-
ColorScaleThreshold: validateObject,
|
|
14338
|
-
Table: validateObject,
|
|
14339
|
-
CoreTable: validateObject,
|
|
14340
|
-
TableConfig: validateObject,
|
|
14341
|
-
TableStyle: validateObject,
|
|
14342
|
-
TitleDesign: validateObject,
|
|
14343
|
-
ChartDefinition: validateObject,
|
|
14344
|
-
ChartDefinitionWithDataSource: validateObject,
|
|
14345
|
-
ChartWithAxisDefinition: validateObject,
|
|
14346
|
-
ChartStyle: validateObject,
|
|
14347
|
-
ChartColorScale: validateObject,
|
|
14348
|
-
ChartRangeDataSource: validateObject,
|
|
14349
|
-
DataSetStyle: validateObject,
|
|
14350
|
-
GeoChartDefinition: validateObject,
|
|
14351
|
-
FunnelChartDefinition: validateObject,
|
|
14352
|
-
TreeMapChartDefinition: validateObject,
|
|
14353
|
-
TreeMapCategoryColorOptions: validateObject,
|
|
14354
|
-
TreeMapColorScaleOptions: validateObject,
|
|
14355
|
-
NamedRange: validateObject,
|
|
14356
|
-
DataValidationRule: validateObject,
|
|
14357
|
-
InformationNotification: validateObject,
|
|
14358
|
-
NotificationStoreMethods: validateObject,
|
|
14359
|
-
SidePanelContent: validateObject,
|
|
14360
|
-
SidePanelComponentProps: validateObject,
|
|
14361
|
-
DataValidationCriterionType: validateString,
|
|
14362
|
-
Dimension: validateDimension,
|
|
14363
|
-
ContextMenuType: validateContextMenuType
|
|
14364
|
-
};
|
|
14365
|
-
|
|
14366
14364
|
//#endregion
|
|
14367
14365
|
//#region src/components/menu/menu.ts
|
|
14368
14366
|
var Menu = class extends Component {
|
|
14369
14367
|
static template = "o-spreadsheet-Menu";
|
|
14370
14368
|
static components = {};
|
|
14371
14369
|
props = (0, _odoo_owl.props)({
|
|
14372
|
-
menuItems: types
|
|
14373
|
-
onClose: types
|
|
14374
|
-
"onClickMenu?": types
|
|
14375
|
-
"onMouseEnter?": types
|
|
14376
|
-
"onMouseLeave?": types
|
|
14377
|
-
"width?": types
|
|
14378
|
-
"hoveredMenuId?": types
|
|
14379
|
-
"isHoveredMenuFocused?": types
|
|
14380
|
-
"onScroll?": types
|
|
14381
|
-
"onKeyDown?": types
|
|
14382
|
-
"disableKeyboardNavigation?": types
|
|
14370
|
+
menuItems: types.ArrayOf(),
|
|
14371
|
+
onClose: types.function(),
|
|
14372
|
+
"onClickMenu?": types.function(),
|
|
14373
|
+
"onMouseEnter?": types.function(),
|
|
14374
|
+
"onMouseLeave?": types.function(),
|
|
14375
|
+
"width?": types.number(),
|
|
14376
|
+
"hoveredMenuId?": types.string(),
|
|
14377
|
+
"isHoveredMenuFocused?": types.boolean(),
|
|
14378
|
+
"onScroll?": types.function(),
|
|
14379
|
+
"onKeyDown?": types.function(),
|
|
14380
|
+
"disableKeyboardNavigation?": types.boolean()
|
|
14383
14381
|
});
|
|
14384
14382
|
menuRef = (0, _odoo_owl.signal)(null);
|
|
14385
14383
|
setup() {
|
|
@@ -14519,17 +14517,17 @@ set(value) {
|
|
|
14519
14517
|
var Popover = class extends Component {
|
|
14520
14518
|
static template = "o-spreadsheet-Popover";
|
|
14521
14519
|
props = (0, _odoo_owl.props)({
|
|
14522
|
-
anchorRect: types
|
|
14523
|
-
"containerRect?": types
|
|
14524
|
-
"positioning?": types
|
|
14525
|
-
"maxWidth?": types
|
|
14526
|
-
"maxHeight?": types
|
|
14527
|
-
"verticalOffset?": types
|
|
14528
|
-
"onMouseWheel?": types
|
|
14529
|
-
"onPopoverHidden?": types
|
|
14530
|
-
"onPopoverMoved?": types
|
|
14531
|
-
"zIndex?": types
|
|
14532
|
-
"class?": types
|
|
14520
|
+
anchorRect: types.Rect(),
|
|
14521
|
+
"containerRect?": types.object({}),
|
|
14522
|
+
"positioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
|
|
14523
|
+
"maxWidth?": types.Pixel(),
|
|
14524
|
+
"maxHeight?": types.Pixel(),
|
|
14525
|
+
"verticalOffset?": types.number(),
|
|
14526
|
+
"onMouseWheel?": types.function(),
|
|
14527
|
+
"onPopoverHidden?": types.function(),
|
|
14528
|
+
"onPopoverMoved?": types.function(),
|
|
14529
|
+
"zIndex?": types.number(),
|
|
14530
|
+
"class?": types.string()
|
|
14533
14531
|
}, {
|
|
14534
14532
|
positioning: "bottom-left",
|
|
14535
14533
|
verticalOffset: 0,
|
|
@@ -14704,19 +14702,19 @@ set(value) {
|
|
|
14704
14702
|
Popover
|
|
14705
14703
|
};
|
|
14706
14704
|
props = (0, _odoo_owl.props)({
|
|
14707
|
-
anchorRect: types
|
|
14708
|
-
"popoverPositioning?": types
|
|
14709
|
-
menuItems: types
|
|
14710
|
-
"depth?": types
|
|
14711
|
-
"maxHeight?": types
|
|
14712
|
-
onClose: types
|
|
14713
|
-
"onMenuClicked?": types
|
|
14714
|
-
"menuId?": types
|
|
14715
|
-
"onMouseOver?": types
|
|
14716
|
-
"width?": types
|
|
14717
|
-
"autoSelectFirstItem?": types
|
|
14718
|
-
"disableKeyboardNavigation?": types
|
|
14719
|
-
"onKeyboardNavigation?": types
|
|
14705
|
+
anchorRect: types.Rect(),
|
|
14706
|
+
"popoverPositioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
|
|
14707
|
+
menuItems: types.ArrayOf(),
|
|
14708
|
+
"depth?": types.number(),
|
|
14709
|
+
"maxHeight?": types.Pixel(),
|
|
14710
|
+
onClose: types.function(),
|
|
14711
|
+
"onMenuClicked?": types.function(),
|
|
14712
|
+
"menuId?": types.UID(),
|
|
14713
|
+
"onMouseOver?": types.function(),
|
|
14714
|
+
"width?": types.number(),
|
|
14715
|
+
"autoSelectFirstItem?": types.boolean(),
|
|
14716
|
+
"disableKeyboardNavigation?": types.boolean(),
|
|
14717
|
+
"onKeyboardNavigation?": types.function()
|
|
14720
14718
|
}, {
|
|
14721
14719
|
depth: 0,
|
|
14722
14720
|
popoverPositioning: "top-right"
|
|
@@ -14962,13 +14960,13 @@ set(value) {
|
|
|
14962
14960
|
static template = "o-spreadsheet-Select";
|
|
14963
14961
|
static components = { Popover };
|
|
14964
14962
|
props = (0, _odoo_owl.props)({
|
|
14965
|
-
onChange: types
|
|
14966
|
-
values: types
|
|
14967
|
-
"selectedValue?": types
|
|
14968
|
-
"class?": types
|
|
14969
|
-
"popoverClass?": types
|
|
14970
|
-
"name?": types
|
|
14971
|
-
"title?": types
|
|
14963
|
+
onChange: types.function(),
|
|
14964
|
+
values: types.array(),
|
|
14965
|
+
"selectedValue?": types.string(),
|
|
14966
|
+
"class?": types.string(),
|
|
14967
|
+
"popoverClass?": types.string(),
|
|
14968
|
+
"name?": types.string(),
|
|
14969
|
+
"title?": types.string()
|
|
14972
14970
|
});
|
|
14973
14971
|
selectRef = (0, _odoo_owl.signal)(null);
|
|
14974
14972
|
dropdownRef = (0, _odoo_owl.signal)(null);
|
|
@@ -15076,8 +15074,8 @@ set(value) {
|
|
|
15076
15074
|
Select
|
|
15077
15075
|
};
|
|
15078
15076
|
props = (0, _odoo_owl.props)({
|
|
15079
|
-
chartId: types
|
|
15080
|
-
"hasFullScreenButton?": types
|
|
15077
|
+
chartId: types.UID(),
|
|
15078
|
+
"hasFullScreenButton?": types.boolean()
|
|
15081
15079
|
}, { hasFullScreenButton: true });
|
|
15082
15080
|
fullScreenFigureStore;
|
|
15083
15081
|
menuState = (0, _odoo_owl.proxy)({
|
|
@@ -15146,10 +15144,10 @@ set(value) {
|
|
|
15146
15144
|
MenuPopover
|
|
15147
15145
|
};
|
|
15148
15146
|
props = (0, _odoo_owl.props)({
|
|
15149
|
-
figureUI: types
|
|
15150
|
-
"editFigureStyle?": types
|
|
15151
|
-
"isFullScreen?": types
|
|
15152
|
-
"openContextMenu?": types
|
|
15147
|
+
figureUI: types.FigureUI(),
|
|
15148
|
+
"editFigureStyle?": types.function(),
|
|
15149
|
+
"isFullScreen?": types.boolean(),
|
|
15150
|
+
"openContextMenu?": types.function()
|
|
15153
15151
|
});
|
|
15154
15152
|
carouselTabsRef = (0, _odoo_owl.signal)(null);
|
|
15155
15153
|
carouselTabsDropdownRef = (0, _odoo_owl.signal)(null);
|
|
@@ -15188,6 +15186,12 @@ set(value) {
|
|
|
15188
15186
|
this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
|
|
15189
15187
|
this.env.openSidePanel("CarouselPanel", { figureId: this.props.figureUI.id });
|
|
15190
15188
|
}
|
|
15189
|
+
onCarouselChartDoubleClick() {
|
|
15190
|
+
if (this.selectedCarouselItem?.type !== "chart") return;
|
|
15191
|
+
const chartId = this.selectedCarouselItem.chartId;
|
|
15192
|
+
this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
|
|
15193
|
+
this.env.openSidePanel("ChartPanel", { chartId });
|
|
15194
|
+
}
|
|
15191
15195
|
isItemSelected(item) {
|
|
15192
15196
|
const selectedItem = this.selectedCarouselItem;
|
|
15193
15197
|
return deepEquals(selectedItem, item);
|
|
@@ -15287,10 +15291,10 @@ set(value) {
|
|
|
15287
15291
|
static template = "o-spreadsheet-ChartFigure";
|
|
15288
15292
|
static components = { ChartDashboardMenu };
|
|
15289
15293
|
props = (0, _odoo_owl.props)({
|
|
15290
|
-
figureUI: types
|
|
15291
|
-
"editFigureStyle?": types
|
|
15292
|
-
"isFullScreen?": types
|
|
15293
|
-
"openContextMenu?": types
|
|
15294
|
+
figureUI: types.FigureUI(),
|
|
15295
|
+
"editFigureStyle?": types.function(),
|
|
15296
|
+
"isFullScreen?": types.boolean(),
|
|
15297
|
+
"openContextMenu?": types.function()
|
|
15294
15298
|
});
|
|
15295
15299
|
onDoubleClick() {
|
|
15296
15300
|
this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
|
|
@@ -15318,9 +15322,9 @@ set(value) {
|
|
|
15318
15322
|
static template = "o-spreadsheet-ImageFigure";
|
|
15319
15323
|
static components = {};
|
|
15320
15324
|
props = (0, _odoo_owl.props)({
|
|
15321
|
-
figureUI: types
|
|
15322
|
-
"editFigureStyle?": types
|
|
15323
|
-
"openContextMenu?": types
|
|
15325
|
+
figureUI: types.FigureUI(),
|
|
15326
|
+
"editFigureStyle?": types.function(),
|
|
15327
|
+
"openContextMenu?": types.function()
|
|
15324
15328
|
});
|
|
15325
15329
|
get figureId() {
|
|
15326
15330
|
return this.props.figureUI.id;
|
|
@@ -15359,15 +15363,11 @@ set(value) {
|
|
|
15359
15363
|
static template = "o-spreadsheet-FigureComponent";
|
|
15360
15364
|
static components = { MenuPopover };
|
|
15361
15365
|
props = (0, _odoo_owl.props)({
|
|
15362
|
-
figureUI: types
|
|
15363
|
-
style: types
|
|
15364
|
-
class: types
|
|
15365
|
-
"onMouseDown?": types
|
|
15366
|
-
"onClickAnchor?": types
|
|
15367
|
-
types$6.ResizeDirection(),
|
|
15368
|
-
types$6.ResizeDirection(),
|
|
15369
|
-
types$6.instanceOf(MouseEvent)
|
|
15370
|
-
])
|
|
15366
|
+
figureUI: types.FigureUI(),
|
|
15367
|
+
style: types.string(),
|
|
15368
|
+
class: types.string(),
|
|
15369
|
+
"onMouseDown?": types.function(),
|
|
15370
|
+
"onClickAnchor?": types.function()
|
|
15371
15371
|
}, {
|
|
15372
15372
|
onMouseDown: () => {},
|
|
15373
15373
|
onClickAnchor: () => {}
|
|
@@ -15431,7 +15431,7 @@ set(value) {
|
|
|
15431
15431
|
* correctly (and render?) before focusing the element.
|
|
15432
15432
|
*/
|
|
15433
15433
|
el?.focus({ preventScroll: true });
|
|
15434
|
-
});
|
|
15434
|
+
}, () => [this.env.model.getters.getSelectedFigureIds(), this.props.figureUI.id]);
|
|
15435
15435
|
}
|
|
15436
15436
|
clickAnchor(dirX, dirY, ev) {
|
|
15437
15437
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -24487,18 +24487,18 @@ set(value) {
|
|
|
24487
24487
|
//#endregion
|
|
24488
24488
|
//#region src/components/generic_input/generic_input.ts
|
|
24489
24489
|
const genericInputPropsDefinition = {
|
|
24490
|
-
value: types
|
|
24491
|
-
onChange: types
|
|
24492
|
-
"onFocused?": types
|
|
24493
|
-
"onBlur?": types
|
|
24494
|
-
"onInput?": types
|
|
24495
|
-
"class?": types
|
|
24496
|
-
"id?": types
|
|
24497
|
-
"placeholder?": types
|
|
24498
|
-
"autofocus?": types
|
|
24499
|
-
"alwaysShowBorder?": types
|
|
24500
|
-
"selectContentOnFocus?": types
|
|
24501
|
-
"resetOnBlur?": types
|
|
24490
|
+
value: types.or([types.number(), types.string()]),
|
|
24491
|
+
onChange: types.function(),
|
|
24492
|
+
"onFocused?": types.function(),
|
|
24493
|
+
"onBlur?": types.function(),
|
|
24494
|
+
"onInput?": types.function(),
|
|
24495
|
+
"class?": types.string(),
|
|
24496
|
+
"id?": types.string(),
|
|
24497
|
+
"placeholder?": types.string(),
|
|
24498
|
+
"autofocus?": types.boolean(),
|
|
24499
|
+
"alwaysShowBorder?": types.boolean(),
|
|
24500
|
+
"selectContentOnFocus?": types.boolean(),
|
|
24501
|
+
"resetOnBlur?": types.boolean()
|
|
24502
24502
|
};
|
|
24503
24503
|
var GenericInput = class extends Component {
|
|
24504
24504
|
props = (0, _odoo_owl.props)(genericInputPropsDefinition);
|
|
@@ -24586,8 +24586,8 @@ set(value) {
|
|
|
24586
24586
|
static components = {};
|
|
24587
24587
|
props = (0, _odoo_owl.props)({
|
|
24588
24588
|
...genericInputPropsDefinition,
|
|
24589
|
-
value: types
|
|
24590
|
-
"errorMessage?": types
|
|
24589
|
+
value: types.string(),
|
|
24590
|
+
"errorMessage?": types.string()
|
|
24591
24591
|
});
|
|
24592
24592
|
get inputClass() {
|
|
24593
24593
|
return [
|
|
@@ -24604,11 +24604,11 @@ set(value) {
|
|
|
24604
24604
|
var ActionButton = class extends Component {
|
|
24605
24605
|
static template = "o-spreadsheet-ActionButton";
|
|
24606
24606
|
props = (0, _odoo_owl.props)({
|
|
24607
|
-
action: types
|
|
24608
|
-
"hasTriangleDownIcon?": types
|
|
24609
|
-
"selectedColor?": types
|
|
24610
|
-
"class?": types
|
|
24611
|
-
"onClick?": types
|
|
24607
|
+
action: types.ActionSpec(),
|
|
24608
|
+
"hasTriangleDownIcon?": types.boolean(),
|
|
24609
|
+
"selectedColor?": types.string(),
|
|
24610
|
+
"class?": types.string(),
|
|
24611
|
+
"onClick?": types.function()
|
|
24612
24612
|
});
|
|
24613
24613
|
actionButton = createAction(this.props.action);
|
|
24614
24614
|
setup() {
|
|
@@ -24663,11 +24663,11 @@ set(value) {
|
|
|
24663
24663
|
static template = "o-spreadsheet-ColorPicker";
|
|
24664
24664
|
static components = { Popover };
|
|
24665
24665
|
props = (0, _odoo_owl.props)({
|
|
24666
|
-
onColorPicked: types
|
|
24667
|
-
"currentColor?": types
|
|
24668
|
-
"maxHeight?": types
|
|
24669
|
-
anchorRect: types
|
|
24670
|
-
"disableNoColor?": types
|
|
24666
|
+
onColorPicked: types.function(),
|
|
24667
|
+
"currentColor?": types.string(),
|
|
24668
|
+
"maxHeight?": types.Pixel(),
|
|
24669
|
+
anchorRect: types.Rect(),
|
|
24670
|
+
"disableNoColor?": types.boolean()
|
|
24671
24671
|
}, { currentColor: "" });
|
|
24672
24672
|
COLORS = COLOR_PICKER_DEFAULTS;
|
|
24673
24673
|
state = (0, _odoo_owl.proxy)({
|
|
@@ -24826,15 +24826,15 @@ set(value) {
|
|
|
24826
24826
|
static template = "o-spreadsheet-ColorPickerWidget";
|
|
24827
24827
|
static components = { ColorPicker };
|
|
24828
24828
|
props = (0, _odoo_owl.props)({
|
|
24829
|
-
"currentColor?": types
|
|
24830
|
-
toggleColorPicker: types
|
|
24831
|
-
showColorPicker: types
|
|
24832
|
-
onColorPicked: types
|
|
24833
|
-
icon: types
|
|
24834
|
-
"title?": types
|
|
24835
|
-
"disabled?": types
|
|
24836
|
-
"dropdownMaxHeight?": types
|
|
24837
|
-
"class?": types
|
|
24829
|
+
"currentColor?": types.string(),
|
|
24830
|
+
toggleColorPicker: types.function(),
|
|
24831
|
+
showColorPicker: types.boolean(),
|
|
24832
|
+
onColorPicked: types.function(),
|
|
24833
|
+
icon: types.string(),
|
|
24834
|
+
"title?": types.string(),
|
|
24835
|
+
"disabled?": types.boolean(),
|
|
24836
|
+
"dropdownMaxHeight?": types.Pixel(),
|
|
24837
|
+
"class?": types.string()
|
|
24838
24838
|
});
|
|
24839
24839
|
colorPickerButtonRef = (0, _odoo_owl.signal)(null);
|
|
24840
24840
|
get iconStyle() {
|
|
@@ -24851,16 +24851,16 @@ set(value) {
|
|
|
24851
24851
|
static template = "o-spreadsheet-NumberEditor";
|
|
24852
24852
|
static components = { Popover };
|
|
24853
24853
|
props = (0, _odoo_owl.props)({
|
|
24854
|
-
currentValue: types
|
|
24855
|
-
onValueChange: types
|
|
24856
|
-
"onToggle?": types
|
|
24857
|
-
"onFocusInput?": types
|
|
24858
|
-
class: types
|
|
24859
|
-
"valueIcon?": types
|
|
24860
|
-
min: types
|
|
24861
|
-
max: types
|
|
24862
|
-
title: types
|
|
24863
|
-
valueList: types
|
|
24854
|
+
currentValue: types.number(),
|
|
24855
|
+
onValueChange: types.function(),
|
|
24856
|
+
"onToggle?": types.function(),
|
|
24857
|
+
"onFocusInput?": types.function(),
|
|
24858
|
+
class: types.string(),
|
|
24859
|
+
"valueIcon?": types.string(),
|
|
24860
|
+
min: types.number(),
|
|
24861
|
+
max: types.number(),
|
|
24862
|
+
title: types.string(),
|
|
24863
|
+
valueList: types.array(types.number())
|
|
24864
24864
|
}, { onFocusInput: () => {} });
|
|
24865
24865
|
dropdown = (0, _odoo_owl.proxy)({ isOpen: false });
|
|
24866
24866
|
inputRef = (0, _odoo_owl.signal)(null);
|
|
@@ -24941,11 +24941,11 @@ set(value) {
|
|
|
24941
24941
|
static template = "o-spreadsheet-FontSizeEditor";
|
|
24942
24942
|
static components = { NumberEditor };
|
|
24943
24943
|
props = (0, _odoo_owl.props)({
|
|
24944
|
-
currentFontSize: types
|
|
24945
|
-
onFontSizeChanged: types
|
|
24946
|
-
"onToggle?": types
|
|
24947
|
-
"onFocusInput?": types
|
|
24948
|
-
class: types
|
|
24944
|
+
currentFontSize: types.number(),
|
|
24945
|
+
onFontSizeChanged: types.function(),
|
|
24946
|
+
"onToggle?": types.function(),
|
|
24947
|
+
"onFocusInput?": types.function(),
|
|
24948
|
+
class: types.string()
|
|
24949
24949
|
}, { onFocusInput: () => {} });
|
|
24950
24950
|
fontSizes = FONT_SIZES;
|
|
24951
24951
|
};
|
|
@@ -24960,13 +24960,13 @@ set(value) {
|
|
|
24960
24960
|
FontSizeEditor
|
|
24961
24961
|
};
|
|
24962
24962
|
props = (0, _odoo_owl.props)({
|
|
24963
|
-
style: types
|
|
24964
|
-
updateStyle: types
|
|
24965
|
-
"defaultStyle?": types
|
|
24966
|
-
"hasVerticalAlign?": types
|
|
24967
|
-
"hasHorizontalAlign?": types
|
|
24968
|
-
"hasBackgroundColor?": types
|
|
24969
|
-
"class?": types
|
|
24963
|
+
style: types.ChartStyle(),
|
|
24964
|
+
updateStyle: types.function(),
|
|
24965
|
+
"defaultStyle?": types.object({}),
|
|
24966
|
+
"hasVerticalAlign?": types.boolean(),
|
|
24967
|
+
"hasHorizontalAlign?": types.boolean(),
|
|
24968
|
+
"hasBackgroundColor?": types.boolean(),
|
|
24969
|
+
"class?": types.string()
|
|
24970
24970
|
});
|
|
24971
24971
|
openedEl = null;
|
|
24972
24972
|
setup() {
|
|
@@ -25149,7 +25149,7 @@ set(value) {
|
|
|
25149
25149
|
var CogWheelMenu = class extends Component {
|
|
25150
25150
|
static template = "o-spreadsheet-CogWheelMenu";
|
|
25151
25151
|
static components = { MenuPopover };
|
|
25152
|
-
props = (0, _odoo_owl.props)({ items: types
|
|
25152
|
+
props = (0, _odoo_owl.props)({ items: types.array(types.ActionSpec()) });
|
|
25153
25153
|
buttonRef = (0, _odoo_owl.signal)(null);
|
|
25154
25154
|
menuState = (0, _odoo_owl.proxy)({
|
|
25155
25155
|
isOpen: false,
|
|
@@ -25170,9 +25170,9 @@ set(value) {
|
|
|
25170
25170
|
var Section = class extends Component {
|
|
25171
25171
|
static template = "o_spreadsheet.Section";
|
|
25172
25172
|
props = (0, _odoo_owl.props)({
|
|
25173
|
-
"class?": types
|
|
25174
|
-
"title?": types
|
|
25175
|
-
slots: types
|
|
25173
|
+
"class?": types.string(),
|
|
25174
|
+
"title?": types.string(),
|
|
25175
|
+
slots: types.object()
|
|
25176
25176
|
});
|
|
25177
25177
|
};
|
|
25178
25178
|
|
|
@@ -25187,8 +25187,8 @@ set(value) {
|
|
|
25187
25187
|
CogWheelMenu
|
|
25188
25188
|
};
|
|
25189
25189
|
props = (0, _odoo_owl.props)({
|
|
25190
|
-
onCloseSidePanel: types
|
|
25191
|
-
figureId: types
|
|
25190
|
+
onCloseSidePanel: types.function(),
|
|
25191
|
+
figureId: types.UID()
|
|
25192
25192
|
});
|
|
25193
25193
|
DEFAULT_CAROUSEL_TITLE_STYLE = DEFAULT_CAROUSEL_TITLE_STYLE;
|
|
25194
25194
|
dragAndDrop = useDragAndDropListItems();
|
|
@@ -25397,13 +25397,13 @@ set(value) {
|
|
|
25397
25397
|
var Checkbox = class extends Component {
|
|
25398
25398
|
static template = "o-spreadsheet.Checkbox";
|
|
25399
25399
|
props = (0, _odoo_owl.props)({
|
|
25400
|
-
"label?": types
|
|
25401
|
-
"value?": types
|
|
25402
|
-
"className?": types
|
|
25403
|
-
"name?": types
|
|
25404
|
-
"title?": types
|
|
25405
|
-
"disabled?": types
|
|
25406
|
-
onChange: types
|
|
25400
|
+
"label?": types.string(),
|
|
25401
|
+
"value?": types.boolean(),
|
|
25402
|
+
"className?": types.string(),
|
|
25403
|
+
"name?": types.string(),
|
|
25404
|
+
"title?": types.string(),
|
|
25405
|
+
"disabled?": types.boolean(),
|
|
25406
|
+
onChange: types.function()
|
|
25407
25407
|
}, { value: false });
|
|
25408
25408
|
onChange(ev) {
|
|
25409
25409
|
const value = ev.target.checked;
|
|
@@ -25414,10 +25414,10 @@ set(value) {
|
|
|
25414
25414
|
//#endregion
|
|
25415
25415
|
//#region src/components/side_panel/chart/common.ts
|
|
25416
25416
|
const chartSidePanelPropsDefinition = {
|
|
25417
|
-
chartId: types
|
|
25418
|
-
definition: types
|
|
25419
|
-
canUpdateChart: types
|
|
25420
|
-
updateChart: types
|
|
25417
|
+
chartId: types.UID(),
|
|
25418
|
+
definition: types.object({}),
|
|
25419
|
+
canUpdateChart: types.function(),
|
|
25420
|
+
updateChart: types.function()
|
|
25421
25421
|
};
|
|
25422
25422
|
|
|
25423
25423
|
//#endregion
|
|
@@ -25906,20 +25906,20 @@ set(value) {
|
|
|
25906
25906
|
var SelectionInput = class extends Component {
|
|
25907
25907
|
static template = "o-spreadsheet-SelectionInput";
|
|
25908
25908
|
props = (0, _odoo_owl.props)({
|
|
25909
|
-
ranges: types
|
|
25910
|
-
"hasSingleRange?": types
|
|
25911
|
-
"required?": types
|
|
25912
|
-
"autofocus?": types
|
|
25913
|
-
"isInvalid?": types
|
|
25914
|
-
"class?": types
|
|
25915
|
-
"onSelectionChanged?": types
|
|
25916
|
-
"onSelectionConfirmed?": types
|
|
25917
|
-
"onSelectionReordered?": types
|
|
25918
|
-
"onSelectionRemoved?": types
|
|
25919
|
-
"onInputFocused?": types
|
|
25920
|
-
"colors?": types
|
|
25921
|
-
"disabledRanges?": types
|
|
25922
|
-
"disabledRangeTitle?": types
|
|
25909
|
+
ranges: types.array(types.string()),
|
|
25910
|
+
"hasSingleRange?": types.boolean(),
|
|
25911
|
+
"required?": types.boolean(),
|
|
25912
|
+
"autofocus?": types.boolean(),
|
|
25913
|
+
"isInvalid?": types.boolean(),
|
|
25914
|
+
"class?": types.string(),
|
|
25915
|
+
"onSelectionChanged?": types.function(),
|
|
25916
|
+
"onSelectionConfirmed?": types.function(),
|
|
25917
|
+
"onSelectionReordered?": types.function(),
|
|
25918
|
+
"onSelectionRemoved?": types.function(),
|
|
25919
|
+
"onInputFocused?": types.function(),
|
|
25920
|
+
"colors?": types.ArrayOf(),
|
|
25921
|
+
"disabledRanges?": types.array(types.boolean()),
|
|
25922
|
+
"disabledRangeTitle?": types.string()
|
|
25923
25923
|
}, {
|
|
25924
25924
|
colors: [],
|
|
25925
25925
|
disabledRanges: []
|
|
@@ -26088,18 +26088,18 @@ set(value) {
|
|
|
26088
26088
|
Section
|
|
26089
26089
|
};
|
|
26090
26090
|
props = (0, _odoo_owl.props)({
|
|
26091
|
-
ranges: types
|
|
26092
|
-
"dataSetStyles?": types
|
|
26093
|
-
"hasSingleRange?": types
|
|
26094
|
-
onSelectionChanged: types
|
|
26095
|
-
"onSelectionReordered?": types
|
|
26096
|
-
"onSelectionRemoved?": types
|
|
26097
|
-
onSelectionConfirmed: types
|
|
26098
|
-
"maxNumberOfUsedRanges?": types
|
|
26099
|
-
"title?": types
|
|
26100
|
-
"datasetOrientation?": types
|
|
26101
|
-
"canChangeDatasetOrientation?": types
|
|
26102
|
-
"onFlipAxis?": types
|
|
26091
|
+
ranges: types.ArrayOf(),
|
|
26092
|
+
"dataSetStyles?": types.DataSetStyle(),
|
|
26093
|
+
"hasSingleRange?": types.boolean(),
|
|
26094
|
+
onSelectionChanged: types.function(),
|
|
26095
|
+
"onSelectionReordered?": types.function(),
|
|
26096
|
+
"onSelectionRemoved?": types.function(),
|
|
26097
|
+
onSelectionConfirmed: types.function(),
|
|
26098
|
+
"maxNumberOfUsedRanges?": types.number(),
|
|
26099
|
+
"title?": types.string(),
|
|
26100
|
+
"datasetOrientation?": types.or([types.literal("rows"), types.literal("columns")]),
|
|
26101
|
+
"canChangeDatasetOrientation?": types.boolean(),
|
|
26102
|
+
"onFlipAxis?": types.function()
|
|
26103
26103
|
});
|
|
26104
26104
|
get ranges() {
|
|
26105
26105
|
return this.props.ranges.map((r) => r.dataRange);
|
|
@@ -26129,13 +26129,13 @@ set(value) {
|
|
|
26129
26129
|
Section
|
|
26130
26130
|
};
|
|
26131
26131
|
props = (0, _odoo_owl.props)({
|
|
26132
|
-
"title?": types
|
|
26133
|
-
range: types
|
|
26134
|
-
"class?": types
|
|
26135
|
-
isInvalid: types
|
|
26136
|
-
onSelectionChanged: types
|
|
26137
|
-
onSelectionConfirmed: types
|
|
26138
|
-
"options?": types
|
|
26132
|
+
"title?": types.string(),
|
|
26133
|
+
range: types.string(),
|
|
26134
|
+
"class?": types.string(),
|
|
26135
|
+
isInvalid: types.boolean(),
|
|
26136
|
+
onSelectionChanged: types.function(),
|
|
26137
|
+
onSelectionConfirmed: types.function(),
|
|
26138
|
+
"options?": types.ArrayOf()
|
|
26139
26139
|
}, {
|
|
26140
26140
|
title: _t("Categories / Labels"),
|
|
26141
26141
|
options: []
|
|
@@ -26154,14 +26154,13 @@ set(value) {
|
|
|
26154
26154
|
ChartLabelRange
|
|
26155
26155
|
};
|
|
26156
26156
|
props = (0, _odoo_owl.props)({
|
|
26157
|
-
chartId: types
|
|
26158
|
-
definition: types
|
|
26159
|
-
updateChart: types
|
|
26160
|
-
canUpdateChart: types
|
|
26161
|
-
"
|
|
26162
|
-
"
|
|
26163
|
-
"
|
|
26164
|
-
"getLabelRangeOptions?": types$6.function([])
|
|
26157
|
+
chartId: types.UID(),
|
|
26158
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
26159
|
+
updateChart: types.function(),
|
|
26160
|
+
canUpdateChart: types.function(),
|
|
26161
|
+
"dataSeriesTitle?": types.string(),
|
|
26162
|
+
"labelRangeTitle?": types.string(),
|
|
26163
|
+
"getLabelRangeOptions?": types.function
|
|
26165
26164
|
});
|
|
26166
26165
|
get DataSourceComponent() {
|
|
26167
26166
|
const dataSourceType = this.props.definition.dataSource.type;
|
|
@@ -26174,13 +26173,13 @@ set(value) {
|
|
|
26174
26173
|
var ValidationMessages = class extends Component {
|
|
26175
26174
|
static template = "o-spreadsheet-ValidationMessages";
|
|
26176
26175
|
props = (0, _odoo_owl.props)({
|
|
26177
|
-
messages: types
|
|
26178
|
-
msgType: types
|
|
26179
|
-
types
|
|
26180
|
-
types
|
|
26181
|
-
types
|
|
26176
|
+
messages: types.array(types.string()),
|
|
26177
|
+
msgType: types.or([
|
|
26178
|
+
types.literal("warning"),
|
|
26179
|
+
types.literal("error"),
|
|
26180
|
+
types.literal("info")
|
|
26182
26181
|
]),
|
|
26183
|
-
"singleBox?": types
|
|
26182
|
+
"singleBox?": types.boolean()
|
|
26184
26183
|
});
|
|
26185
26184
|
get divClasses() {
|
|
26186
26185
|
if (this.props.msgType === "warning") return "o-validation-warning";
|
|
@@ -26200,7 +26199,7 @@ set(value) {
|
|
|
26200
26199
|
Section,
|
|
26201
26200
|
ValidationMessages
|
|
26202
26201
|
};
|
|
26203
|
-
props = (0, _odoo_owl.props)({ messages: types
|
|
26202
|
+
props = (0, _odoo_owl.props)({ messages: types.array(types.string()) });
|
|
26204
26203
|
};
|
|
26205
26204
|
|
|
26206
26205
|
//#endregion
|
|
@@ -26260,7 +26259,7 @@ set(value) {
|
|
|
26260
26259
|
//#region src/components/side_panel/components/collapse/collapse.ts
|
|
26261
26260
|
var Collapse = class extends Component {
|
|
26262
26261
|
static template = "o-spreadsheet-Collapse";
|
|
26263
|
-
props = (0, _odoo_owl.props)({ isCollapsed: types
|
|
26262
|
+
props = (0, _odoo_owl.props)({ isCollapsed: types.boolean() });
|
|
26264
26263
|
contentRef = (0, _odoo_owl.signal)(null);
|
|
26265
26264
|
setup() {
|
|
26266
26265
|
(0, _odoo_owl.onMounted)(() => {
|
|
@@ -26294,9 +26293,9 @@ set(value) {
|
|
|
26294
26293
|
static template = "o-spreadsheet-SidePanelCollapsible";
|
|
26295
26294
|
static components = { Collapse };
|
|
26296
26295
|
props = (0, _odoo_owl.props)({
|
|
26297
|
-
"title?": types
|
|
26298
|
-
"isInitiallyCollapsed?": types
|
|
26299
|
-
"class?": types
|
|
26296
|
+
"title?": types.string(),
|
|
26297
|
+
"isInitiallyCollapsed?": types.boolean(),
|
|
26298
|
+
"class?": types.string()
|
|
26300
26299
|
});
|
|
26301
26300
|
state = (0, _odoo_owl.proxy)({ isCollapsed: !!this.props.isInitiallyCollapsed });
|
|
26302
26301
|
toggle() {
|
|
@@ -26311,8 +26310,8 @@ set(value) {
|
|
|
26311
26310
|
static components = {};
|
|
26312
26311
|
props = (0, _odoo_owl.props)({
|
|
26313
26312
|
...genericInputPropsDefinition,
|
|
26314
|
-
"min?": types
|
|
26315
|
-
"max?": types
|
|
26313
|
+
"min?": types.number(),
|
|
26314
|
+
"max?": types.number()
|
|
26316
26315
|
});
|
|
26317
26316
|
debouncedOnChange = debounce(this.props.onChange.bind(this), 100, true);
|
|
26318
26317
|
save() {
|
|
@@ -26335,9 +26334,9 @@ set(value) {
|
|
|
26335
26334
|
var BadgeSelection = class extends Component {
|
|
26336
26335
|
static template = "o-spreadsheet.BadgeSelection";
|
|
26337
26336
|
props = (0, _odoo_owl.props)({
|
|
26338
|
-
choices: types
|
|
26339
|
-
onChange: types
|
|
26340
|
-
selectedValue: types
|
|
26337
|
+
choices: types.ArrayOf(),
|
|
26338
|
+
onChange: types.function(),
|
|
26339
|
+
selectedValue: types.string()
|
|
26341
26340
|
});
|
|
26342
26341
|
};
|
|
26343
26342
|
|
|
@@ -26351,13 +26350,13 @@ set(value) {
|
|
|
26351
26350
|
TextInput
|
|
26352
26351
|
};
|
|
26353
26352
|
props = (0, _odoo_owl.props)({
|
|
26354
|
-
"title?": types
|
|
26355
|
-
"placeholder?": types
|
|
26356
|
-
updateTitle: types
|
|
26357
|
-
"name?": types
|
|
26358
|
-
style: types
|
|
26359
|
-
"defaultStyle?": types
|
|
26360
|
-
updateStyle: types
|
|
26353
|
+
"title?": types.string(),
|
|
26354
|
+
"placeholder?": types.string(),
|
|
26355
|
+
updateTitle: types.function(),
|
|
26356
|
+
"name?": types.string(),
|
|
26357
|
+
style: types.TitleDesign(),
|
|
26358
|
+
"defaultStyle?": types.object({}),
|
|
26359
|
+
updateStyle: types.function()
|
|
26361
26360
|
}, {
|
|
26362
26361
|
title: "",
|
|
26363
26362
|
placeholder: ""
|
|
@@ -26380,10 +26379,10 @@ set(value) {
|
|
|
26380
26379
|
DateInput
|
|
26381
26380
|
};
|
|
26382
26381
|
props = (0, _odoo_owl.props)({
|
|
26383
|
-
chartId: types
|
|
26384
|
-
definition: types
|
|
26385
|
-
updateChart: types
|
|
26386
|
-
axesList: types
|
|
26382
|
+
chartId: types.UID(),
|
|
26383
|
+
definition: types.ChartWithAxisDefinition(),
|
|
26384
|
+
updateChart: types.function(),
|
|
26385
|
+
axesList: types.ArrayOf()
|
|
26387
26386
|
});
|
|
26388
26387
|
state = (0, _odoo_owl.proxy)({ currentAxis: "x" });
|
|
26389
26388
|
defaultFontSize = 12;
|
|
@@ -26555,11 +26554,11 @@ set(value) {
|
|
|
26555
26554
|
var RadioSelection = class extends Component {
|
|
26556
26555
|
static template = "o-spreadsheet.RadioSelection";
|
|
26557
26556
|
props = (0, _odoo_owl.props)({
|
|
26558
|
-
choices: types
|
|
26559
|
-
onChange: types
|
|
26560
|
-
selectedValue: types
|
|
26561
|
-
name: types
|
|
26562
|
-
"direction?": types
|
|
26557
|
+
choices: types.ArrayOf(),
|
|
26558
|
+
onChange: types.function(),
|
|
26559
|
+
selectedValue: types.string(),
|
|
26560
|
+
name: types.string(),
|
|
26561
|
+
"direction?": types.or([types.literal("horizontal"), types.literal("vertical")])
|
|
26563
26562
|
}, { direction: "horizontal" });
|
|
26564
26563
|
};
|
|
26565
26564
|
|
|
@@ -26572,10 +26571,10 @@ set(value) {
|
|
|
26572
26571
|
ColorPicker
|
|
26573
26572
|
};
|
|
26574
26573
|
props = (0, _odoo_owl.props)({
|
|
26575
|
-
"currentColor?": types
|
|
26576
|
-
"title?": types
|
|
26577
|
-
onColorPicked: types
|
|
26578
|
-
"disableNoColor?": types
|
|
26574
|
+
"currentColor?": types.string(),
|
|
26575
|
+
"title?": types.string(),
|
|
26576
|
+
onColorPicked: types.function(),
|
|
26577
|
+
"disableNoColor?": types.boolean()
|
|
26579
26578
|
});
|
|
26580
26579
|
colorPickerButtonRef = (0, _odoo_owl.signal)(null);
|
|
26581
26580
|
state;
|
|
@@ -26613,11 +26612,11 @@ set(value) {
|
|
|
26613
26612
|
RadioSelection
|
|
26614
26613
|
};
|
|
26615
26614
|
props = (0, _odoo_owl.props)({
|
|
26616
|
-
chartId: types
|
|
26617
|
-
definition: types
|
|
26618
|
-
canUpdateChart: types
|
|
26619
|
-
updateChart: types
|
|
26620
|
-
"defaultChartTitleFontSize?": types
|
|
26615
|
+
chartId: types.UID(),
|
|
26616
|
+
definition: types.ChartDefinition(),
|
|
26617
|
+
canUpdateChart: types.function(),
|
|
26618
|
+
updateChart: types.function(),
|
|
26619
|
+
"defaultChartTitleFontSize?": types.number()
|
|
26621
26620
|
}, { defaultChartTitleFontSize: 16 });
|
|
26622
26621
|
state;
|
|
26623
26622
|
setup() {
|
|
@@ -26674,11 +26673,11 @@ set(value) {
|
|
|
26674
26673
|
Select
|
|
26675
26674
|
};
|
|
26676
26675
|
props = (0, _odoo_owl.props)({
|
|
26677
|
-
chartId: types
|
|
26678
|
-
definition: types
|
|
26679
|
-
canUpdateChart: types
|
|
26680
|
-
updateChart: types
|
|
26681
|
-
"isDisabled?": types
|
|
26676
|
+
chartId: types.string(),
|
|
26677
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
26678
|
+
canUpdateChart: types.function(),
|
|
26679
|
+
updateChart: types.function(),
|
|
26680
|
+
"isDisabled?": types.boolean()
|
|
26682
26681
|
}, { isDisabled: false });
|
|
26683
26682
|
updateLegendPosition(value) {
|
|
26684
26683
|
this.props.updateChart(this.props.chartId, { legendPosition: value });
|
|
@@ -26720,10 +26719,10 @@ set(value) {
|
|
|
26720
26719
|
Select
|
|
26721
26720
|
};
|
|
26722
26721
|
props = (0, _odoo_owl.props)({
|
|
26723
|
-
chartId: types
|
|
26724
|
-
definition: types
|
|
26725
|
-
|
|
26726
|
-
|
|
26722
|
+
chartId: types.UID(),
|
|
26723
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
26724
|
+
updateChart: types.function(),
|
|
26725
|
+
canUpdateChart: types.function()
|
|
26727
26726
|
});
|
|
26728
26727
|
state = (0, _odoo_owl.proxy)({ dataSetId: this.getDataSeries()[0]?.dataSetId || "" });
|
|
26729
26728
|
getRuntime() {
|
|
@@ -26785,10 +26784,10 @@ set(value) {
|
|
|
26785
26784
|
Select
|
|
26786
26785
|
};
|
|
26787
26786
|
props = (0, _odoo_owl.props)({
|
|
26788
|
-
chartId: types
|
|
26789
|
-
definition: types
|
|
26790
|
-
|
|
26791
|
-
|
|
26787
|
+
chartId: types.UID(),
|
|
26788
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
26789
|
+
updateChart: types.function(),
|
|
26790
|
+
canUpdateChart: types.function()
|
|
26792
26791
|
});
|
|
26793
26792
|
axisChoices = CHART_AXIS_CHOICES;
|
|
26794
26793
|
updateDataSeriesAxis(dataSetId, axis) {
|
|
@@ -26925,11 +26924,11 @@ set(value) {
|
|
|
26925
26924
|
static template = "o-spreadsheet-ChartShowValues";
|
|
26926
26925
|
static components = { Checkbox };
|
|
26927
26926
|
props = (0, _odoo_owl.props)({
|
|
26928
|
-
chartId: types
|
|
26929
|
-
definition: types
|
|
26930
|
-
canUpdateChart: types
|
|
26931
|
-
updateChart: types
|
|
26932
|
-
"defaultValue?": types
|
|
26927
|
+
chartId: types.UID(),
|
|
26928
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
26929
|
+
canUpdateChart: types.function(),
|
|
26930
|
+
updateChart: types.function(),
|
|
26931
|
+
"defaultValue?": types.boolean()
|
|
26933
26932
|
});
|
|
26934
26933
|
};
|
|
26935
26934
|
|
|
@@ -29563,15 +29562,15 @@ set(value) {
|
|
|
29563
29562
|
ChartLabelRange
|
|
29564
29563
|
};
|
|
29565
29564
|
props = (0, _odoo_owl.props)({
|
|
29566
|
-
chartId: types
|
|
29567
|
-
definition: types
|
|
29568
|
-
dataSource: types
|
|
29569
|
-
updateChart: types
|
|
29570
|
-
canUpdateChart: types
|
|
29571
|
-
"onErrorMessagesChanged?": types
|
|
29572
|
-
"dataSeriesTitle?": types
|
|
29573
|
-
"labelRangeTitle?": types
|
|
29574
|
-
"getLabelRangeOptions?": types
|
|
29565
|
+
chartId: types.UID(),
|
|
29566
|
+
definition: types.ChartDefinitionWithDataSource(),
|
|
29567
|
+
dataSource: types.ChartRangeDataSource(),
|
|
29568
|
+
updateChart: types.function(),
|
|
29569
|
+
canUpdateChart: types.function(),
|
|
29570
|
+
"onErrorMessagesChanged?": types.function(),
|
|
29571
|
+
"dataSeriesTitle?": types.string(),
|
|
29572
|
+
"labelRangeTitle?": types.string(),
|
|
29573
|
+
"getLabelRangeOptions?": types.function
|
|
29575
29574
|
});
|
|
29576
29575
|
state = (0, _odoo_owl.proxy)({
|
|
29577
29576
|
datasetDispatchResult: void 0,
|
|
@@ -30423,8 +30422,8 @@ set(value) {
|
|
|
30423
30422
|
Popover
|
|
30424
30423
|
};
|
|
30425
30424
|
props = (0, _odoo_owl.props)({
|
|
30426
|
-
definition: types
|
|
30427
|
-
onUpdateColorScale: types
|
|
30425
|
+
definition: types.object({ "colorScale?": types.ChartColorScale() }),
|
|
30426
|
+
onUpdateColorScale: types.function()
|
|
30428
30427
|
});
|
|
30429
30428
|
colorScales = COLORSCALES.map((colorScale) => ({
|
|
30430
30429
|
value: colorScale,
|
|
@@ -30626,7 +30625,7 @@ set(value) {
|
|
|
30626
30625
|
};
|
|
30627
30626
|
props = (0, _odoo_owl.props)({
|
|
30628
30627
|
...chartSidePanelPropsDefinition,
|
|
30629
|
-
definition: types
|
|
30628
|
+
definition: types.FunnelChartDefinition()
|
|
30630
30629
|
});
|
|
30631
30630
|
getFunnelColorItems() {
|
|
30632
30631
|
const labels = this.env.model.getters.getChartRuntime(this.props.chartId).chartJsConfig.data.labels || [];
|
|
@@ -30676,10 +30675,10 @@ set(value) {
|
|
|
30676
30675
|
var TextValueProvider = class extends Component {
|
|
30677
30676
|
static template = "o-spreadsheet-TextValueProvider";
|
|
30678
30677
|
props = (0, _odoo_owl.props)({
|
|
30679
|
-
proposals: types
|
|
30680
|
-
"selectedIndex?": types
|
|
30681
|
-
onValueSelected: types
|
|
30682
|
-
onValueHovered: types
|
|
30678
|
+
proposals: types.array(types.AutoCompleteProposal()),
|
|
30679
|
+
"selectedIndex?": types.number(),
|
|
30680
|
+
onValueSelected: types.function(),
|
|
30681
|
+
onValueHovered: types.function()
|
|
30683
30682
|
});
|
|
30684
30683
|
autoCompleteListRef = (0, _odoo_owl.signal)(null);
|
|
30685
30684
|
setup() {
|
|
@@ -30899,9 +30898,9 @@ set(value) {
|
|
|
30899
30898
|
static template = "o-spreadsheet-FunctionDescriptionProvider";
|
|
30900
30899
|
static components = { Collapse };
|
|
30901
30900
|
props = (0, _odoo_owl.props)({
|
|
30902
|
-
functionDescription: types
|
|
30903
|
-
argsToFocus: types
|
|
30904
|
-
"repeatingArgGroupIndex?": types
|
|
30901
|
+
functionDescription: types.FunctionDescription(),
|
|
30902
|
+
argsToFocus: types.array(types.number()),
|
|
30903
|
+
"repeatingArgGroupIndex?": types.number()
|
|
30905
30904
|
});
|
|
30906
30905
|
state = (0, _odoo_owl.proxy)({ isCollapsed: true });
|
|
30907
30906
|
toggle() {
|
|
@@ -30968,8 +30967,8 @@ set(value) {
|
|
|
30968
30967
|
static template = "o-spreadsheet-SpeechBubble";
|
|
30969
30968
|
static components = {};
|
|
30970
30969
|
props = (0, _odoo_owl.props)({
|
|
30971
|
-
content: types
|
|
30972
|
-
anchorRect: types
|
|
30970
|
+
content: types.string(),
|
|
30971
|
+
anchorRect: types.Rect()
|
|
30973
30972
|
});
|
|
30974
30973
|
spreadsheetRect = useSpreadsheetRect();
|
|
30975
30974
|
bubbleRef = (0, _odoo_owl.signal)(null);
|
|
@@ -31003,18 +31002,18 @@ set(value) {
|
|
|
31003
31002
|
SpeechBubble
|
|
31004
31003
|
};
|
|
31005
31004
|
props = (0, _odoo_owl.props)({
|
|
31006
|
-
focus: types
|
|
31007
|
-
"inputStyle?": types
|
|
31008
|
-
"rect?": types
|
|
31009
|
-
"delimitation?": types
|
|
31010
|
-
"onComposerCellFocused?": types
|
|
31011
|
-
onComposerContentFocused: types
|
|
31012
|
-
"isDefaultFocus?": types
|
|
31013
|
-
"onInputContextMenu?": types
|
|
31014
|
-
composerStore: types
|
|
31015
|
-
"placeholder?": types
|
|
31016
|
-
"inputMode?": types
|
|
31017
|
-
"showAssistant?": types
|
|
31005
|
+
focus: types.ComposerFocusType(),
|
|
31006
|
+
"inputStyle?": types.string(),
|
|
31007
|
+
"rect?": types.Rect(),
|
|
31008
|
+
"delimitation?": types.DOMDimension(),
|
|
31009
|
+
"onComposerCellFocused?": types.function(),
|
|
31010
|
+
onComposerContentFocused: types.function(),
|
|
31011
|
+
"isDefaultFocus?": types.boolean(),
|
|
31012
|
+
"onInputContextMenu?": types.function(),
|
|
31013
|
+
composerStore: types.Store(),
|
|
31014
|
+
"placeholder?": types.string(),
|
|
31015
|
+
"inputMode?": types.string(),
|
|
31016
|
+
"showAssistant?": types.boolean()
|
|
31018
31017
|
}, {
|
|
31019
31018
|
inputStyle: "",
|
|
31020
31019
|
isDefaultFocus: false,
|
|
@@ -32587,17 +32586,17 @@ set(value) {
|
|
|
32587
32586
|
static template = "o-spreadsheet-StandaloneComposer";
|
|
32588
32587
|
static components = { Composer };
|
|
32589
32588
|
props = (0, _odoo_owl.props)({
|
|
32590
|
-
onConfirm: types
|
|
32591
|
-
"composerContent?": types
|
|
32592
|
-
defaultRangeSheetId: types
|
|
32593
|
-
"defaultStatic?": types
|
|
32594
|
-
"contextualAutocomplete?": types
|
|
32595
|
-
"placeholder?": types
|
|
32596
|
-
"title?": types
|
|
32597
|
-
"class?": types
|
|
32598
|
-
"invalid?": types
|
|
32599
|
-
"autofocus?": types
|
|
32600
|
-
"getContextualColoredSymbolToken?": types
|
|
32589
|
+
onConfirm: types.function(),
|
|
32590
|
+
"composerContent?": types.string(),
|
|
32591
|
+
defaultRangeSheetId: types.UID(),
|
|
32592
|
+
"defaultStatic?": types.boolean(),
|
|
32593
|
+
"contextualAutocomplete?": types.AutoCompleteProviderDefinition(),
|
|
32594
|
+
"placeholder?": types.string(),
|
|
32595
|
+
"title?": types.string(),
|
|
32596
|
+
"class?": types.string(),
|
|
32597
|
+
"invalid?": types.boolean(),
|
|
32598
|
+
"autofocus?": types.boolean(),
|
|
32599
|
+
"getContextualColoredSymbolToken?": types.function()
|
|
32601
32600
|
}, {
|
|
32602
32601
|
composerContent: "",
|
|
32603
32602
|
defaultStatic: false
|
|
@@ -32797,9 +32796,9 @@ set(value) {
|
|
|
32797
32796
|
Select
|
|
32798
32797
|
};
|
|
32799
32798
|
props = (0, _odoo_owl.props)({
|
|
32800
|
-
chartId: types
|
|
32801
|
-
definition: types
|
|
32802
|
-
updateChart: types
|
|
32799
|
+
chartId: types.UID(),
|
|
32800
|
+
definition: types.GeoChartDefinition(),
|
|
32801
|
+
updateChart: types.function()
|
|
32803
32802
|
});
|
|
32804
32803
|
updateSelectedRegion(value) {
|
|
32805
32804
|
this.props.updateChart(this.props.chartId, { region: value });
|
|
@@ -32951,8 +32950,8 @@ set(value) {
|
|
|
32951
32950
|
NumberInput
|
|
32952
32951
|
};
|
|
32953
32952
|
props = (0, _odoo_owl.props)({
|
|
32954
|
-
onValueChange: types
|
|
32955
|
-
value: types
|
|
32953
|
+
onValueChange: types.function(),
|
|
32954
|
+
value: types.number()
|
|
32956
32955
|
});
|
|
32957
32956
|
onChange(value) {
|
|
32958
32957
|
if (!isNaN(Number(value))) this.props.onValueChange(clip(Number(value), 0, 95));
|
|
@@ -33274,9 +33273,9 @@ set(value) {
|
|
|
33274
33273
|
RoundColorPicker
|
|
33275
33274
|
};
|
|
33276
33275
|
props = (0, _odoo_owl.props)({
|
|
33277
|
-
chartId: types
|
|
33278
|
-
definition: types
|
|
33279
|
-
onColorChanged: types
|
|
33276
|
+
chartId: types.UID(),
|
|
33277
|
+
definition: types.TreeMapChartDefinition(),
|
|
33278
|
+
onColorChanged: types.function()
|
|
33280
33279
|
});
|
|
33281
33280
|
get coloringOptions() {
|
|
33282
33281
|
const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
|
|
@@ -33306,9 +33305,9 @@ set(value) {
|
|
|
33306
33305
|
static template = "o-spreadsheet-TreeMapColorScale";
|
|
33307
33306
|
static components = { RoundColorPicker };
|
|
33308
33307
|
props = (0, _odoo_owl.props)({
|
|
33309
|
-
chartId: types
|
|
33310
|
-
definition: types
|
|
33311
|
-
onColorChanged: types
|
|
33308
|
+
chartId: types.UID(),
|
|
33309
|
+
definition: types.TreeMapChartDefinition(),
|
|
33310
|
+
onColorChanged: types.function()
|
|
33312
33311
|
});
|
|
33313
33312
|
get coloringOptions() {
|
|
33314
33313
|
const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
|
|
@@ -33523,8 +33522,8 @@ set(value) {
|
|
|
33523
33522
|
Popover
|
|
33524
33523
|
};
|
|
33525
33524
|
props = (0, _odoo_owl.props)({
|
|
33526
|
-
chartId: types
|
|
33527
|
-
chartPanelStore: types
|
|
33525
|
+
chartId: types.UID(),
|
|
33526
|
+
chartPanelStore: types.Store()
|
|
33528
33527
|
});
|
|
33529
33528
|
categories = chartCategories;
|
|
33530
33529
|
chartTypeByCategories = {};
|
|
@@ -33701,8 +33700,8 @@ set(value) {
|
|
|
33701
33700
|
ChartTypePicker
|
|
33702
33701
|
};
|
|
33703
33702
|
props = (0, _odoo_owl.props)({
|
|
33704
|
-
onCloseSidePanel: types
|
|
33705
|
-
chartId: types
|
|
33703
|
+
onCloseSidePanel: types.function(),
|
|
33704
|
+
chartId: types.UID()
|
|
33706
33705
|
});
|
|
33707
33706
|
store;
|
|
33708
33707
|
get chartId() {
|
|
@@ -34100,7 +34099,7 @@ set(value) {
|
|
|
34100
34099
|
BadgeSelection,
|
|
34101
34100
|
Section
|
|
34102
34101
|
};
|
|
34103
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
34102
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
34104
34103
|
state = (0, _odoo_owl.proxy)({
|
|
34105
34104
|
currentChart: "count",
|
|
34106
34105
|
currentFrequencyOrder: "descending",
|
|
@@ -34343,7 +34342,7 @@ set(value) {
|
|
|
34343
34342
|
ColorPickerWidget,
|
|
34344
34343
|
Select
|
|
34345
34344
|
};
|
|
34346
|
-
props = (0, _odoo_owl.props)({ store: types
|
|
34345
|
+
props = (0, _odoo_owl.props)({ store: types.Store() });
|
|
34347
34346
|
getTextDecoration = getTextDecoration;
|
|
34348
34347
|
get rule() {
|
|
34349
34348
|
return this.props.store.state.rules.cellIs;
|
|
@@ -34354,10 +34353,10 @@ set(value) {
|
|
|
34354
34353
|
//#region src/components/side_panel/criterion_form/criterion_form.ts
|
|
34355
34354
|
var CriterionForm = class extends Component {
|
|
34356
34355
|
props = (0, _odoo_owl.props)({
|
|
34357
|
-
criterion: types
|
|
34358
|
-
onCriterionChanged: types
|
|
34359
|
-
"disableFormulas?": types
|
|
34360
|
-
"autofocus?": types
|
|
34356
|
+
criterion: types.object({}),
|
|
34357
|
+
onCriterionChanged: types.function(),
|
|
34358
|
+
"disableFormulas?": types.boolean(),
|
|
34359
|
+
"autofocus?": types.boolean()
|
|
34361
34360
|
});
|
|
34362
34361
|
setup() {
|
|
34363
34362
|
const composerFocusStore = useStore(ComposerFocusStore);
|
|
@@ -34941,14 +34940,14 @@ set(value) {
|
|
|
34941
34940
|
static template = "o-spreadsheet-CriterionInput";
|
|
34942
34941
|
static components = { StandaloneComposer };
|
|
34943
34942
|
props = (0, _odoo_owl.props)({
|
|
34944
|
-
"value?": types
|
|
34945
|
-
criterionType: types
|
|
34946
|
-
onValueChanged: types
|
|
34947
|
-
"onKeyDown?": types
|
|
34948
|
-
"focused?": types
|
|
34949
|
-
"onBlur?": types
|
|
34950
|
-
"onFocus?": types
|
|
34951
|
-
"disableFormulas?": types
|
|
34943
|
+
"value?": types.string(),
|
|
34944
|
+
criterionType: types.DataValidationCriterionType(),
|
|
34945
|
+
onValueChanged: types.function(),
|
|
34946
|
+
"onKeyDown?": types.function(),
|
|
34947
|
+
"focused?": types.boolean(),
|
|
34948
|
+
"onBlur?": types.function(),
|
|
34949
|
+
"onFocus?": types.function(),
|
|
34950
|
+
"disableFormulas?": types.boolean()
|
|
34952
34951
|
}, {
|
|
34953
34952
|
value: "",
|
|
34954
34953
|
onKeyDown: () => {},
|
|
@@ -35782,11 +35781,11 @@ set(value) {
|
|
|
35782
35781
|
Select
|
|
35783
35782
|
};
|
|
35784
35783
|
props = (0, _odoo_owl.props)({
|
|
35785
|
-
store: types
|
|
35786
|
-
thresholdType: types
|
|
35787
|
-
types
|
|
35788
|
-
types
|
|
35789
|
-
types
|
|
35784
|
+
store: types.Store(),
|
|
35785
|
+
thresholdType: types.or([
|
|
35786
|
+
types.literal("minimum"),
|
|
35787
|
+
types.literal("midpoint"),
|
|
35788
|
+
types.literal("maximum")
|
|
35790
35789
|
])
|
|
35791
35790
|
});
|
|
35792
35791
|
get rule() {
|
|
@@ -35859,7 +35858,7 @@ set(value) {
|
|
|
35859
35858
|
var ColorScaleRuleEditor = class extends Component {
|
|
35860
35859
|
static template = "o-spreadsheet-ColorScaleRuleEditor";
|
|
35861
35860
|
static components = { ColorScaleRuleEditorThreshold };
|
|
35862
|
-
props = (0, _odoo_owl.props)({ store: types
|
|
35861
|
+
props = (0, _odoo_owl.props)({ store: types.Store() });
|
|
35863
35862
|
};
|
|
35864
35863
|
|
|
35865
35864
|
//#endregion
|
|
@@ -35870,7 +35869,7 @@ set(value) {
|
|
|
35870
35869
|
SelectionInput,
|
|
35871
35870
|
RoundColorPicker
|
|
35872
35871
|
};
|
|
35873
|
-
props = (0, _odoo_owl.props)({ store: types
|
|
35872
|
+
props = (0, _odoo_owl.props)({ store: types.Store() });
|
|
35874
35873
|
get rule() {
|
|
35875
35874
|
return this.props.store.state.rules.dataBar;
|
|
35876
35875
|
}
|
|
@@ -35881,7 +35880,7 @@ set(value) {
|
|
|
35881
35880
|
//#region src/components/icon_picker/icon_picker.ts
|
|
35882
35881
|
var IconPicker = class extends Component {
|
|
35883
35882
|
static template = "o-spreadsheet-IconPicker";
|
|
35884
|
-
props = (0, _odoo_owl.props)({ onIconPicked: types
|
|
35883
|
+
props = (0, _odoo_owl.props)({ onIconPicked: types.function() });
|
|
35885
35884
|
onIconClick(icon) {
|
|
35886
35885
|
if (icon) this.props.onIconPicked(icon);
|
|
35887
35886
|
}
|
|
@@ -35902,7 +35901,7 @@ set(value) {
|
|
|
35902
35901
|
StandaloneComposer,
|
|
35903
35902
|
Select
|
|
35904
35903
|
};
|
|
35905
|
-
props = (0, _odoo_owl.props)({ store: types
|
|
35904
|
+
props = (0, _odoo_owl.props)({ store: types.Store() });
|
|
35906
35905
|
get rule() {
|
|
35907
35906
|
return this.props.store.state.rules.iconSet;
|
|
35908
35907
|
}
|
|
@@ -35982,9 +35981,9 @@ set(value) {
|
|
|
35982
35981
|
DataBarRuleEditor
|
|
35983
35982
|
};
|
|
35984
35983
|
props = (0, _odoo_owl.props)({
|
|
35985
|
-
cf: types
|
|
35986
|
-
isNewCf: types
|
|
35987
|
-
onCloseSidePanel: types
|
|
35984
|
+
cf: types.ConditionalFormat(),
|
|
35985
|
+
isNewCf: types.boolean(),
|
|
35986
|
+
onCloseSidePanel: types.function()
|
|
35988
35987
|
});
|
|
35989
35988
|
activeSheetId;
|
|
35990
35989
|
store;
|
|
@@ -36042,9 +36041,9 @@ set(value) {
|
|
|
36042
36041
|
var ConditionalFormatPreview = class extends Component {
|
|
36043
36042
|
static template = "o-spreadsheet-ConditionalFormatPreview";
|
|
36044
36043
|
props = (0, _odoo_owl.props)({
|
|
36045
|
-
conditionalFormat: types
|
|
36046
|
-
onMouseDown: types
|
|
36047
|
-
class: types
|
|
36044
|
+
conditionalFormat: types.ConditionalFormat(),
|
|
36045
|
+
onMouseDown: types.function(),
|
|
36046
|
+
class: types.string()
|
|
36048
36047
|
});
|
|
36049
36048
|
icons = ICONS;
|
|
36050
36049
|
cfPreviewRef = (0, _odoo_owl.signal)(null);
|
|
@@ -36102,7 +36101,7 @@ set(value) {
|
|
|
36102
36101
|
var ConditionalFormatPreviewList = class extends Component {
|
|
36103
36102
|
static template = "o-spreadsheet-ConditionalFormatPreviewList";
|
|
36104
36103
|
static components = { ConditionalFormatPreview };
|
|
36105
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
36104
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
36106
36105
|
dragAndDrop = useDragAndDropListItems();
|
|
36107
36106
|
cfListRef = (0, _odoo_owl.signal)(null);
|
|
36108
36107
|
get conditionalFormats() {
|
|
@@ -36171,7 +36170,7 @@ set(value) {
|
|
|
36171
36170
|
//#region src/components/side_panel/data_validation/dv_preview/dv_preview.ts
|
|
36172
36171
|
var DataValidationPreview = class extends Component {
|
|
36173
36172
|
static template = "o-spreadsheet-DataValidationPreview";
|
|
36174
|
-
props = (0, _odoo_owl.props)({ rule: types
|
|
36173
|
+
props = (0, _odoo_owl.props)({ rule: types.DataValidationRule() });
|
|
36175
36174
|
dvPreviewRef = (0, _odoo_owl.signal)(null);
|
|
36176
36175
|
setup() {
|
|
36177
36176
|
useHighlightsOnHover(this.dvPreviewRef, this);
|
|
@@ -36207,7 +36206,7 @@ set(value) {
|
|
|
36207
36206
|
var DataValidationPanel = class extends Component {
|
|
36208
36207
|
static template = "o-spreadsheet-DataValidationPanel";
|
|
36209
36208
|
static components = { DataValidationPreview };
|
|
36210
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
36209
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
36211
36210
|
addDataValidationRule() {
|
|
36212
36211
|
this.env.replaceSidePanel("DataValidationEditor", "DataValidation", { ruleId: UuidGenerator.smallUuid() });
|
|
36213
36212
|
}
|
|
@@ -36262,9 +36261,9 @@ set(value) {
|
|
|
36262
36261
|
ValidationMessages
|
|
36263
36262
|
};
|
|
36264
36263
|
props = (0, _odoo_owl.props)({
|
|
36265
|
-
ruleId: types
|
|
36266
|
-
"onCancel?": types
|
|
36267
|
-
onCloseSidePanel: types
|
|
36264
|
+
ruleId: types.UID(),
|
|
36265
|
+
"onCancel?": types.function(),
|
|
36266
|
+
onCloseSidePanel: types.function()
|
|
36268
36267
|
});
|
|
36269
36268
|
state = (0, _odoo_owl.proxy)({
|
|
36270
36269
|
rule: this.defaultDataValidationRule,
|
|
@@ -36712,7 +36711,7 @@ set(value) {
|
|
|
36712
36711
|
ValidationMessages,
|
|
36713
36712
|
Select
|
|
36714
36713
|
};
|
|
36715
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
36714
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
36716
36715
|
searchInputRef = (0, _odoo_owl.signal)(null);
|
|
36717
36716
|
store;
|
|
36718
36717
|
state;
|
|
@@ -37546,11 +37545,11 @@ set(value) {
|
|
|
37546
37545
|
Select
|
|
37547
37546
|
};
|
|
37548
37547
|
props = (0, _odoo_owl.props)({
|
|
37549
|
-
onCloseSidePanel: types
|
|
37550
|
-
"category?": types
|
|
37551
|
-
types
|
|
37552
|
-
types
|
|
37553
|
-
types
|
|
37548
|
+
onCloseSidePanel: types.function(),
|
|
37549
|
+
"category?": types.or([
|
|
37550
|
+
types.literal("number"),
|
|
37551
|
+
types.literal("date"),
|
|
37552
|
+
types.literal("currency")
|
|
37554
37553
|
])
|
|
37555
37554
|
});
|
|
37556
37555
|
store;
|
|
@@ -37612,7 +37611,7 @@ set(value) {
|
|
|
37612
37611
|
SelectionInput,
|
|
37613
37612
|
TextInput
|
|
37614
37613
|
};
|
|
37615
|
-
props = (0, _odoo_owl.props)({ namedRange: types
|
|
37614
|
+
props = (0, _odoo_owl.props)({ namedRange: types.NamedRange() });
|
|
37616
37615
|
state = (0, _odoo_owl.proxy)({});
|
|
37617
37616
|
namedRangePreviewRef = (0, _odoo_owl.signal)(null);
|
|
37618
37617
|
setup() {
|
|
@@ -37669,7 +37668,7 @@ set(value) {
|
|
|
37669
37668
|
SelectionInput,
|
|
37670
37669
|
TextInput
|
|
37671
37670
|
};
|
|
37672
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
37671
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
37673
37672
|
get namedRanges() {
|
|
37674
37673
|
return this.env.model.getters.getNamedRanges();
|
|
37675
37674
|
}
|
|
@@ -37690,7 +37689,7 @@ set(value) {
|
|
|
37690
37689
|
var PerfProfilePanel = class extends Component {
|
|
37691
37690
|
static template = "o-spreadsheet-PerfProfilePanel";
|
|
37692
37691
|
static components = { Section };
|
|
37693
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
37692
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
37694
37693
|
state = (0, _odoo_owl.proxy)({
|
|
37695
37694
|
selectedIndex: void 0,
|
|
37696
37695
|
lastProfiledTime: 0
|
|
@@ -37907,9 +37906,9 @@ set(value) {
|
|
|
37907
37906
|
var PivotMeasureDisplayPanel = class extends Component {
|
|
37908
37907
|
static template = "o-spreadsheet-PivotMeasureDisplayPanel";
|
|
37909
37908
|
props = (0, _odoo_owl.props)({
|
|
37910
|
-
onCloseSidePanel: types
|
|
37911
|
-
pivotId: types
|
|
37912
|
-
measure: types
|
|
37909
|
+
onCloseSidePanel: types.function(),
|
|
37910
|
+
pivotId: types.UID(),
|
|
37911
|
+
measure: types.PivotCoreMeasure()
|
|
37913
37912
|
});
|
|
37914
37913
|
static components = {
|
|
37915
37914
|
Section,
|
|
@@ -37973,11 +37972,11 @@ set(value) {
|
|
|
37973
37972
|
var PivotDeferUpdate = class extends Component {
|
|
37974
37973
|
static template = "o-spreadsheet-PivotDeferUpdate";
|
|
37975
37974
|
props = (0, _odoo_owl.props)({
|
|
37976
|
-
deferUpdate: types
|
|
37977
|
-
isDirty: types
|
|
37978
|
-
toggleDeferUpdate: types
|
|
37979
|
-
discard: types
|
|
37980
|
-
apply: types
|
|
37975
|
+
deferUpdate: types.boolean(),
|
|
37976
|
+
isDirty: types.boolean(),
|
|
37977
|
+
toggleDeferUpdate: types.function(),
|
|
37978
|
+
discard: types.function(),
|
|
37979
|
+
apply: types.function()
|
|
37981
37980
|
});
|
|
37982
37981
|
static components = {
|
|
37983
37982
|
Section,
|
|
@@ -38202,9 +38201,9 @@ set(value) {
|
|
|
38202
38201
|
static template = "o-spreadsheet-FilterMenuCriterion";
|
|
38203
38202
|
static components = { Select };
|
|
38204
38203
|
props = (0, _odoo_owl.props)({
|
|
38205
|
-
criterion: types
|
|
38206
|
-
criterionOperators: types
|
|
38207
|
-
onCriterionChanged: types
|
|
38204
|
+
criterion: types.CriterionFilter(),
|
|
38205
|
+
criterionOperators: types.array(types.GenericCriterionType()),
|
|
38206
|
+
onCriterionChanged: types.function()
|
|
38208
38207
|
});
|
|
38209
38208
|
state;
|
|
38210
38209
|
setup() {
|
|
@@ -38239,12 +38238,12 @@ set(value) {
|
|
|
38239
38238
|
static template = "o-spreadsheet-FilterMenuValueItem";
|
|
38240
38239
|
static components = { Checkbox };
|
|
38241
38240
|
props = (0, _odoo_owl.props)({
|
|
38242
|
-
value:
|
|
38243
|
-
isChecked:
|
|
38244
|
-
isSelected:
|
|
38245
|
-
onMouseMove:
|
|
38246
|
-
onClick:
|
|
38247
|
-
"scrolledTo?":
|
|
38241
|
+
value: types.string(),
|
|
38242
|
+
isChecked: types.boolean(),
|
|
38243
|
+
isSelected: types.boolean(),
|
|
38244
|
+
onMouseMove: types.function(),
|
|
38245
|
+
onClick: types.function(),
|
|
38246
|
+
"scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
|
|
38248
38247
|
});
|
|
38249
38248
|
itemRef = (0, _odoo_owl.signal)(null);
|
|
38250
38249
|
setup() {
|
|
@@ -38265,12 +38264,12 @@ set(value) {
|
|
|
38265
38264
|
static template = "o-spreadsheet-FilterMenuValueList";
|
|
38266
38265
|
static components = { FilterMenuValueItem };
|
|
38267
38266
|
props = (0, _odoo_owl.props)({
|
|
38268
|
-
values: types
|
|
38269
|
-
checked: types
|
|
38270
|
-
string: types
|
|
38271
|
-
"scrolledTo?": types
|
|
38267
|
+
values: types.array(types.object({
|
|
38268
|
+
checked: types.boolean(),
|
|
38269
|
+
string: types.string(),
|
|
38270
|
+
"scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
|
|
38272
38271
|
})),
|
|
38273
|
-
onUpdateHiddenValues: types
|
|
38272
|
+
onUpdateHiddenValues: types.function()
|
|
38274
38273
|
});
|
|
38275
38274
|
state = (0, _odoo_owl.proxy)({
|
|
38276
38275
|
displayedValues: [],
|
|
@@ -38380,16 +38379,16 @@ set(value) {
|
|
|
38380
38379
|
criterionCategory = "char";
|
|
38381
38380
|
updatedCriterionValue;
|
|
38382
38381
|
props = (0, _odoo_owl.props)({
|
|
38383
|
-
pivotId: types
|
|
38384
|
-
definition: types
|
|
38385
|
-
filter: types
|
|
38386
|
-
values: types
|
|
38387
|
-
checked: types
|
|
38388
|
-
string: types
|
|
38389
|
-
"scrolledTo?": types
|
|
38382
|
+
pivotId: types.UID(),
|
|
38383
|
+
definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
|
|
38384
|
+
filter: types.PivotFilter(),
|
|
38385
|
+
values: types.array(types.object({
|
|
38386
|
+
checked: types.boolean(),
|
|
38387
|
+
string: types.string(),
|
|
38388
|
+
"scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
|
|
38390
38389
|
})),
|
|
38391
|
-
"onClosed?": types
|
|
38392
|
-
onConfirmed: types
|
|
38390
|
+
"onClosed?": types.function(),
|
|
38391
|
+
onConfirmed: types.function()
|
|
38393
38392
|
});
|
|
38394
38393
|
setup() {
|
|
38395
38394
|
(0, _odoo_owl.onWillUpdateProps)((nextProps) => {
|
|
@@ -38443,26 +38442,18 @@ set(value) {
|
|
|
38443
38442
|
var PivotDimension = class extends Component {
|
|
38444
38443
|
static template = "o-spreadsheet-PivotDimension";
|
|
38445
38444
|
props = (0, _odoo_owl.props)({
|
|
38446
|
-
dimension: types
|
|
38447
|
-
types
|
|
38448
|
-
types
|
|
38449
|
-
types
|
|
38445
|
+
dimension: types.or([
|
|
38446
|
+
types.PivotDimension(),
|
|
38447
|
+
types.PivotMeasure(),
|
|
38448
|
+
types.PivotFilter()
|
|
38450
38449
|
]),
|
|
38451
|
-
"onRemoved?": types
|
|
38452
|
-
|
|
38453
|
-
|
|
38454
|
-
types
|
|
38455
|
-
|
|
38456
|
-
|
|
38457
|
-
types
|
|
38458
|
-
types$6.PivotMeasure(),
|
|
38459
|
-
types$6.PivotFilter()
|
|
38460
|
-
]), types$6.string()]),
|
|
38461
|
-
"type?": types$6.or([
|
|
38462
|
-
types$6.literal("row"),
|
|
38463
|
-
types$6.literal("col"),
|
|
38464
|
-
types$6.literal("measure"),
|
|
38465
|
-
types$6.literal("filter")
|
|
38450
|
+
"onRemoved?": types.function(),
|
|
38451
|
+
"onNameUpdated?": types.function(),
|
|
38452
|
+
"type?": types.or([
|
|
38453
|
+
types.literal("row"),
|
|
38454
|
+
types.literal("col"),
|
|
38455
|
+
types.literal("measure"),
|
|
38456
|
+
types.literal("filter")
|
|
38466
38457
|
])
|
|
38467
38458
|
});
|
|
38468
38459
|
static components = {
|
|
@@ -38488,10 +38479,10 @@ set(value) {
|
|
|
38488
38479
|
PivotFilterMenu
|
|
38489
38480
|
};
|
|
38490
38481
|
props = (0, _odoo_owl.props)({
|
|
38491
|
-
pivotId: types
|
|
38492
|
-
definition: types
|
|
38493
|
-
filter: types
|
|
38494
|
-
onFiltersUpdated: types
|
|
38482
|
+
pivotId: types.UID(),
|
|
38483
|
+
definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
|
|
38484
|
+
filter: types.PivotFilter(),
|
|
38485
|
+
onFiltersUpdated: types.function()
|
|
38495
38486
|
});
|
|
38496
38487
|
state;
|
|
38497
38488
|
buttonFilter = (0, _odoo_owl.signal)(null);
|
|
@@ -38620,8 +38611,8 @@ set(value) {
|
|
|
38620
38611
|
TextValueProvider
|
|
38621
38612
|
};
|
|
38622
38613
|
props = (0, _odoo_owl.props)({
|
|
38623
|
-
onFieldPicked: types
|
|
38624
|
-
fields: types
|
|
38614
|
+
onFieldPicked: types.function(),
|
|
38615
|
+
fields: types.array()
|
|
38625
38616
|
});
|
|
38626
38617
|
buttonRef = (0, _odoo_owl.signal)(null);
|
|
38627
38618
|
popover = (0, _odoo_owl.proxy)({ isOpen: false });
|
|
@@ -38715,9 +38706,9 @@ set(value) {
|
|
|
38715
38706
|
var PivotCustomGroupsCollapsible = class extends Component {
|
|
38716
38707
|
static template = "o-spreadsheet-PivotCustomGroupsCollapsible";
|
|
38717
38708
|
props = (0, _odoo_owl.props)({
|
|
38718
|
-
pivotId: types
|
|
38719
|
-
customField: types
|
|
38720
|
-
onCustomFieldUpdated: types
|
|
38709
|
+
pivotId: types.UID(),
|
|
38710
|
+
customField: types.PivotCustomGroupedField(),
|
|
38711
|
+
onCustomFieldUpdated: types.function()
|
|
38721
38712
|
});
|
|
38722
38713
|
static components = {
|
|
38723
38714
|
SidePanelCollapsible,
|
|
@@ -38779,10 +38770,10 @@ set(value) {
|
|
|
38779
38770
|
var PivotDimensionGranularity = class extends Component {
|
|
38780
38771
|
static template = "o-spreadsheet-PivotDimensionGranularity";
|
|
38781
38772
|
props = (0, _odoo_owl.props)({
|
|
38782
|
-
dimension: types
|
|
38783
|
-
onUpdated: types
|
|
38784
|
-
availableGranularities: types
|
|
38785
|
-
allGranularities: types
|
|
38773
|
+
dimension: types.PivotDimension(),
|
|
38774
|
+
onUpdated: types.function(),
|
|
38775
|
+
availableGranularities: types.SetOf(),
|
|
38776
|
+
allGranularities: types.array()
|
|
38786
38777
|
});
|
|
38787
38778
|
static components = { Select };
|
|
38788
38779
|
periods = ALL_PERIODS;
|
|
@@ -38800,9 +38791,9 @@ set(value) {
|
|
|
38800
38791
|
var PivotDimensionOrder = class extends Component {
|
|
38801
38792
|
static template = "o-spreadsheet-PivotDimensionOrder";
|
|
38802
38793
|
props = (0, _odoo_owl.props)({
|
|
38803
|
-
dimension: types
|
|
38804
|
-
onUpdated: types
|
|
38805
|
-
"isMeasureSorted?": types
|
|
38794
|
+
dimension: types.PivotDimension(),
|
|
38795
|
+
onUpdated: types.function(),
|
|
38796
|
+
"isMeasureSorted?": types.boolean()
|
|
38806
38797
|
});
|
|
38807
38798
|
static components = { Select };
|
|
38808
38799
|
get orderSelectOptions() {
|
|
@@ -38882,13 +38873,13 @@ set(value) {
|
|
|
38882
38873
|
Select
|
|
38883
38874
|
};
|
|
38884
38875
|
props = (0, _odoo_owl.props)({
|
|
38885
|
-
pivotId: types
|
|
38886
|
-
definition: types
|
|
38887
|
-
measure: types
|
|
38888
|
-
onMeasureUpdated: types
|
|
38889
|
-
onRemoved: types
|
|
38890
|
-
generateMeasureId: types
|
|
38891
|
-
aggregators: types
|
|
38876
|
+
pivotId: types.string(),
|
|
38877
|
+
definition: types.PivotRuntimeDefinition(),
|
|
38878
|
+
measure: types.PivotMeasure(),
|
|
38879
|
+
onMeasureUpdated: types.function(),
|
|
38880
|
+
onRemoved: types.function(),
|
|
38881
|
+
generateMeasureId: types.function(),
|
|
38882
|
+
aggregators: types.object({})
|
|
38892
38883
|
});
|
|
38893
38884
|
getMeasureAutocomplete() {
|
|
38894
38885
|
return createMeasureAutoComplete(this.props.definition, this.props.measure);
|
|
@@ -38970,8 +38961,8 @@ set(value) {
|
|
|
38970
38961
|
static template = "o-spreadsheet-PivotSortSection";
|
|
38971
38962
|
static components = { Section };
|
|
38972
38963
|
props = (0, _odoo_owl.props)({
|
|
38973
|
-
definition: types
|
|
38974
|
-
pivotId: types
|
|
38964
|
+
definition: types.PivotRuntimeDefinition(),
|
|
38965
|
+
pivotId: types.UID()
|
|
38975
38966
|
});
|
|
38976
38967
|
get hasValidSort() {
|
|
38977
38968
|
const pivot = this.env.model.getters.getPivot(this.props.pivotId);
|
|
@@ -39025,16 +39016,16 @@ set(value) {
|
|
|
39025
39016
|
SidePanelCollapsible
|
|
39026
39017
|
};
|
|
39027
39018
|
props = (0, _odoo_owl.props)({
|
|
39028
|
-
definition: types
|
|
39029
|
-
onDimensionsUpdated: types
|
|
39030
|
-
onFiltersUpdated: types
|
|
39031
|
-
unusedGroupableFields: types
|
|
39032
|
-
measureFields: types
|
|
39033
|
-
unusedGranularities: types
|
|
39034
|
-
dateGranularities: types
|
|
39035
|
-
datetimeGranularities: types
|
|
39036
|
-
"getScrollableContainerEl?": types
|
|
39037
|
-
pivotId: types
|
|
39019
|
+
definition: types.instanceOf(PivotRuntimeDefinition),
|
|
39020
|
+
onDimensionsUpdated: types.function(),
|
|
39021
|
+
onFiltersUpdated: types.function(),
|
|
39022
|
+
unusedGroupableFields: types.array(types.PivotField()),
|
|
39023
|
+
measureFields: types.array(types.PivotField()),
|
|
39024
|
+
unusedGranularities: types.RecordOf(),
|
|
39025
|
+
dateGranularities: types.array(types.string()),
|
|
39026
|
+
datetimeGranularities: types.array(types.string()),
|
|
39027
|
+
"getScrollableContainerEl?": types.function(),
|
|
39028
|
+
pivotId: types.UID()
|
|
39038
39029
|
});
|
|
39039
39030
|
dimensionsRef = (0, _odoo_owl.signal)(null);
|
|
39040
39031
|
dragAndDrop = useDragAndDropListItems();
|
|
@@ -39255,8 +39246,8 @@ set(value) {
|
|
|
39255
39246
|
TextInput
|
|
39256
39247
|
};
|
|
39257
39248
|
props = (0, _odoo_owl.props)({
|
|
39258
|
-
pivotId: types
|
|
39259
|
-
flipAxis: types
|
|
39249
|
+
pivotId: types.UID(),
|
|
39250
|
+
flipAxis: types.function()
|
|
39260
39251
|
});
|
|
39261
39252
|
get cogWheelMenuItems() {
|
|
39262
39253
|
return [
|
|
@@ -40885,8 +40876,8 @@ set(value) {
|
|
|
40885
40876
|
PivotFilterEditor
|
|
40886
40877
|
};
|
|
40887
40878
|
props = (0, _odoo_owl.props)({
|
|
40888
|
-
pivotId: types
|
|
40889
|
-
onCloseSidePanel: types
|
|
40879
|
+
pivotId: types.UID(),
|
|
40880
|
+
onCloseSidePanel: types.function()
|
|
40890
40881
|
});
|
|
40891
40882
|
store;
|
|
40892
40883
|
state;
|
|
@@ -42123,12 +42114,12 @@ set(value) {
|
|
|
42123
42114
|
static template = "o-spreadsheet-TableStylePreview";
|
|
42124
42115
|
static components = { MenuPopover };
|
|
42125
42116
|
props = (0, _odoo_owl.props)({
|
|
42126
|
-
tableConfig: types
|
|
42127
|
-
tableStyle: types
|
|
42128
|
-
type: types
|
|
42129
|
-
"styleId?": types
|
|
42130
|
-
"selected?": types
|
|
42131
|
-
"onClick?": types
|
|
42117
|
+
tableConfig: types.TableConfig(),
|
|
42118
|
+
tableStyle: types.TableStyle(),
|
|
42119
|
+
type: types.or([types.literal("table"), types.literal("pivot")]),
|
|
42120
|
+
"styleId?": types.string(),
|
|
42121
|
+
"selected?": types.boolean(),
|
|
42122
|
+
"onClick?": types.function()
|
|
42132
42123
|
});
|
|
42133
42124
|
canvasRef = (0, _odoo_owl.signal)(null);
|
|
42134
42125
|
menu = (0, _odoo_owl.proxy)({
|
|
@@ -42216,13 +42207,13 @@ set(value) {
|
|
|
42216
42207
|
TableStylePreview
|
|
42217
42208
|
};
|
|
42218
42209
|
props = (0, _odoo_owl.props)({
|
|
42219
|
-
tableConfig: types
|
|
42220
|
-
"popoverProps?": types
|
|
42221
|
-
closePopover: types
|
|
42222
|
-
onStylePicked: types
|
|
42223
|
-
"selectedStyleId?": types
|
|
42224
|
-
tableStyles: types
|
|
42225
|
-
type: types
|
|
42210
|
+
tableConfig: types.object({}),
|
|
42211
|
+
"popoverProps?": types.object({}),
|
|
42212
|
+
closePopover: types.function(),
|
|
42213
|
+
onStylePicked: types.function(),
|
|
42214
|
+
"selectedStyleId?": types.string(),
|
|
42215
|
+
tableStyles: types.RecordOf(),
|
|
42216
|
+
type: types.or([types.literal("table"), types.literal("pivot")])
|
|
42226
42217
|
});
|
|
42227
42218
|
tableStyleListRef = (0, _odoo_owl.signal)(null);
|
|
42228
42219
|
state = (0, _odoo_owl.proxy)({ selectedCategory: this.initialSelectedCategory });
|
|
@@ -42264,10 +42255,10 @@ set(value) {
|
|
|
42264
42255
|
TableStylePreview
|
|
42265
42256
|
};
|
|
42266
42257
|
props = (0, _odoo_owl.props)({
|
|
42267
|
-
tableConfig: types
|
|
42268
|
-
onStylePicked: types
|
|
42269
|
-
tableStyles: types
|
|
42270
|
-
type: types
|
|
42258
|
+
tableConfig: types.TableConfig(),
|
|
42259
|
+
onStylePicked: types.function(),
|
|
42260
|
+
tableStyles: types.RecordOf(),
|
|
42261
|
+
type: types.or([types.literal("table"), types.literal("pivot")])
|
|
42271
42262
|
});
|
|
42272
42263
|
state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
|
|
42273
42264
|
getDisplayedTableStyles() {
|
|
@@ -42315,7 +42306,7 @@ set(value) {
|
|
|
42315
42306
|
NumberInput,
|
|
42316
42307
|
TableStylePicker
|
|
42317
42308
|
};
|
|
42318
|
-
props = (0, _odoo_owl.props)({ pivotId: types
|
|
42309
|
+
props = (0, _odoo_owl.props)({ pivotId: types.UID() });
|
|
42319
42310
|
store;
|
|
42320
42311
|
setup() {
|
|
42321
42312
|
this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId, "neverDefer");
|
|
@@ -42370,9 +42361,9 @@ set(value) {
|
|
|
42370
42361
|
PivotDesignPanel
|
|
42371
42362
|
};
|
|
42372
42363
|
props = (0, _odoo_owl.props)({
|
|
42373
|
-
pivotId: types
|
|
42374
|
-
onCloseSidePanel: types
|
|
42375
|
-
"openTab?": types
|
|
42364
|
+
pivotId: types.UID(),
|
|
42365
|
+
onCloseSidePanel: types.function(),
|
|
42366
|
+
"openTab?": types.or([types.literal("configuration"), types.literal("design")])
|
|
42376
42367
|
}, { openTab: "configuration" });
|
|
42377
42368
|
state = (0, _odoo_owl.proxy)({ panel: this.props.openTab || "configuration" });
|
|
42378
42369
|
setup() {
|
|
@@ -42403,7 +42394,7 @@ set(value) {
|
|
|
42403
42394
|
Section,
|
|
42404
42395
|
Checkbox
|
|
42405
42396
|
};
|
|
42406
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
42397
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
42407
42398
|
state = (0, _odoo_owl.proxy)({
|
|
42408
42399
|
hasHeader: false,
|
|
42409
42400
|
columns: {}
|
|
@@ -42487,7 +42478,7 @@ set(value) {
|
|
|
42487
42478
|
BadgeSelection,
|
|
42488
42479
|
Select
|
|
42489
42480
|
};
|
|
42490
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
42481
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
42491
42482
|
loadedLocales = [];
|
|
42492
42483
|
setup() {
|
|
42493
42484
|
(0, _odoo_owl.onWillStart)(() => this.loadLocales());
|
|
@@ -42605,7 +42596,7 @@ set(value) {
|
|
|
42605
42596
|
Checkbox,
|
|
42606
42597
|
Select
|
|
42607
42598
|
};
|
|
42608
|
-
props = (0, _odoo_owl.props)({ onCloseSidePanel: types
|
|
42599
|
+
props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
|
|
42609
42600
|
state = (0, _odoo_owl.proxy)({
|
|
42610
42601
|
separatorValue: "auto",
|
|
42611
42602
|
addNewColumns: false,
|
|
@@ -42682,8 +42673,8 @@ set(value) {
|
|
|
42682
42673
|
NumberInput
|
|
42683
42674
|
};
|
|
42684
42675
|
props = (0, _odoo_owl.props)({
|
|
42685
|
-
onCloseSidePanel: types
|
|
42686
|
-
table: types
|
|
42676
|
+
onCloseSidePanel: types.function(),
|
|
42677
|
+
table: types.CoreTable()
|
|
42687
42678
|
});
|
|
42688
42679
|
state;
|
|
42689
42680
|
setup() {
|
|
@@ -42842,9 +42833,9 @@ set(value) {
|
|
|
42842
42833
|
TableStylePreview
|
|
42843
42834
|
};
|
|
42844
42835
|
props = (0, _odoo_owl.props)({
|
|
42845
|
-
onCloseSidePanel: types
|
|
42846
|
-
"onStylePicked?": types
|
|
42847
|
-
"styleId?": types
|
|
42836
|
+
onCloseSidePanel: types.function(),
|
|
42837
|
+
"onStylePicked?": types.function(),
|
|
42838
|
+
"styleId?": types.string()
|
|
42848
42839
|
});
|
|
42849
42840
|
state = (0, _odoo_owl.proxy)(this.getInitialState());
|
|
42850
42841
|
setup() {
|
|
@@ -45176,8 +45167,8 @@ set(value) {
|
|
|
45176
45167
|
var Autofill = class extends Component {
|
|
45177
45168
|
static template = "o-spreadsheet-Autofill";
|
|
45178
45169
|
props = (0, _odoo_owl.props)({
|
|
45179
|
-
position: types
|
|
45180
|
-
isVisible: types
|
|
45170
|
+
position: types.DOMCoordinates(),
|
|
45171
|
+
isVisible: types.boolean()
|
|
45181
45172
|
});
|
|
45182
45173
|
state = (0, _odoo_owl.proxy)({
|
|
45183
45174
|
position: {
|
|
@@ -45253,7 +45244,7 @@ set(value) {
|
|
|
45253
45244
|
}
|
|
45254
45245
|
};
|
|
45255
45246
|
var TooltipComponent = class extends Component {
|
|
45256
|
-
props = (0, _odoo_owl.props)({ content: types
|
|
45247
|
+
props = (0, _odoo_owl.props)({ content: types.string() });
|
|
45257
45248
|
static template = _odoo_owl.xml`
|
|
45258
45249
|
<div t-out="this.props.content"/>
|
|
45259
45250
|
`;
|
|
@@ -45264,11 +45255,11 @@ set(value) {
|
|
|
45264
45255
|
var ClientTag = class extends Component {
|
|
45265
45256
|
static template = "o-spreadsheet-ClientTag";
|
|
45266
45257
|
props = (0, _odoo_owl.props)({
|
|
45267
|
-
active: types
|
|
45268
|
-
name: types
|
|
45269
|
-
color: types
|
|
45270
|
-
col: types
|
|
45271
|
-
row: types
|
|
45258
|
+
active: types.boolean(),
|
|
45259
|
+
name: types.string(),
|
|
45260
|
+
color: types.Color(),
|
|
45261
|
+
col: types.HeaderIndex(),
|
|
45262
|
+
row: types.HeaderIndex()
|
|
45272
45263
|
});
|
|
45273
45264
|
get tagStyle() {
|
|
45274
45265
|
const { col, row, color } = this.props;
|
|
@@ -45845,8 +45836,8 @@ set(value) {
|
|
|
45845
45836
|
static template = "o-spreadsheet-GridComposer";
|
|
45846
45837
|
static components = { Composer };
|
|
45847
45838
|
props = (0, _odoo_owl.props)({
|
|
45848
|
-
gridDims: types
|
|
45849
|
-
onInputContextMenu: types
|
|
45839
|
+
gridDims: types.DOMDimension(),
|
|
45840
|
+
onInputContextMenu: types.function()
|
|
45850
45841
|
});
|
|
45851
45842
|
rect = this.defaultRect;
|
|
45852
45843
|
isEditing = false;
|
|
@@ -46969,21 +46960,11 @@ set(value) {
|
|
|
46969
46960
|
GridAddRowsFooter
|
|
46970
46961
|
};
|
|
46971
46962
|
props = (0, _odoo_owl.props)({
|
|
46972
|
-
"onCellDoubleClicked?": types
|
|
46973
|
-
"onCellClicked?": types
|
|
46974
|
-
|
|
46975
|
-
|
|
46976
|
-
|
|
46977
|
-
types$6.ZoomedMouseEvent()
|
|
46978
|
-
]),
|
|
46979
|
-
"onCellRightClicked?": types$6.function([
|
|
46980
|
-
types$6.HeaderIndex(),
|
|
46981
|
-
types$6.HeaderIndex(),
|
|
46982
|
-
types$6.DOMCoordinates()
|
|
46983
|
-
]),
|
|
46984
|
-
"onGridResized?": types$6.function([]),
|
|
46985
|
-
onGridMoved: types$6.function([types$6.Pixel(), types$6.Pixel()]),
|
|
46986
|
-
gridOverlayDimensions: types$6.string()
|
|
46963
|
+
"onCellDoubleClicked?": types.function(),
|
|
46964
|
+
"onCellClicked?": types.function(),
|
|
46965
|
+
"onCellRightClicked?": types.function(),
|
|
46966
|
+
"onGridResized?": types.function(),
|
|
46967
|
+
gridOverlayDimensions: types.string()
|
|
46987
46968
|
}, {
|
|
46988
46969
|
onCellDoubleClicked: () => {},
|
|
46989
46970
|
onCellClicked: () => {},
|
|
@@ -47101,9 +47082,9 @@ set(value) {
|
|
|
47101
47082
|
static template = "o-spreadsheet-GridPopover";
|
|
47102
47083
|
static components = { Popover };
|
|
47103
47084
|
props = (0, _odoo_owl.props)({
|
|
47104
|
-
onClosePopover: types
|
|
47105
|
-
onMouseWheel: types
|
|
47106
|
-
gridRect: types
|
|
47085
|
+
onClosePopover: types.function(),
|
|
47086
|
+
onMouseWheel: types.function(),
|
|
47087
|
+
gridRect: types.Rect()
|
|
47107
47088
|
});
|
|
47108
47089
|
cellPopovers;
|
|
47109
47090
|
setup() {
|
|
@@ -47129,12 +47110,12 @@ set(value) {
|
|
|
47129
47110
|
var UnhideRowHeaders = class extends Component {
|
|
47130
47111
|
static template = "o-spreadsheet-UnhideRowHeaders";
|
|
47131
47112
|
props = (0, _odoo_owl.props)({
|
|
47132
|
-
headersGroups: types
|
|
47133
|
-
headerRange: types
|
|
47134
|
-
start: types
|
|
47135
|
-
end: types
|
|
47113
|
+
headersGroups: types.array(),
|
|
47114
|
+
headerRange: types.object({
|
|
47115
|
+
start: types.HeaderIndex(),
|
|
47116
|
+
end: types.HeaderIndex()
|
|
47136
47117
|
}),
|
|
47137
|
-
"offset?": types
|
|
47118
|
+
"offset?": types.number()
|
|
47138
47119
|
}, { offset: 0 });
|
|
47139
47120
|
get sheetId() {
|
|
47140
47121
|
return this.env.model.getters.getActiveSheetId();
|
|
@@ -47172,12 +47153,12 @@ set(value) {
|
|
|
47172
47153
|
var UnhideColumnHeaders = class extends Component {
|
|
47173
47154
|
static template = "o-spreadsheet-UnhideColumnHeaders";
|
|
47174
47155
|
props = (0, _odoo_owl.props)({
|
|
47175
|
-
headersGroups: types
|
|
47176
|
-
headerRange: types
|
|
47177
|
-
start: types
|
|
47178
|
-
end: types
|
|
47156
|
+
headersGroups: types.array(),
|
|
47157
|
+
headerRange: types.object({
|
|
47158
|
+
start: types.HeaderIndex(),
|
|
47159
|
+
end: types.HeaderIndex()
|
|
47179
47160
|
}),
|
|
47180
|
-
"offset?": types
|
|
47161
|
+
"offset?": types.number()
|
|
47181
47162
|
}, { offset: 0 });
|
|
47182
47163
|
get sheetId() {
|
|
47183
47164
|
return this.env.model.getters.getActiveSheetId();
|
|
@@ -47209,11 +47190,7 @@ set(value) {
|
|
|
47209
47190
|
|
|
47210
47191
|
//#endregion
|
|
47211
47192
|
//#region src/components/headers_overlay/headers_overlay.ts
|
|
47212
|
-
const resizerPropsDefinition = { onOpenContextMenu: types
|
|
47213
|
-
types$6.ContextMenuType(),
|
|
47214
|
-
types$6.Pixel(),
|
|
47215
|
-
types$6.Pixel()
|
|
47216
|
-
]) };
|
|
47193
|
+
const resizerPropsDefinition = { onOpenContextMenu: types.function() };
|
|
47217
47194
|
var AbstractResizer = class extends Component {
|
|
47218
47195
|
props = (0, _odoo_owl.props)(resizerPropsDefinition);
|
|
47219
47196
|
composerFocusStore;
|
|
@@ -48667,15 +48644,15 @@ set(value) {
|
|
|
48667
48644
|
var Border = class extends Component {
|
|
48668
48645
|
static template = "o-spreadsheet-Border";
|
|
48669
48646
|
props = (0, _odoo_owl.props)({
|
|
48670
|
-
zone: types
|
|
48671
|
-
orientation: types
|
|
48672
|
-
types
|
|
48673
|
-
types
|
|
48674
|
-
types
|
|
48675
|
-
types
|
|
48647
|
+
zone: types.Zone(),
|
|
48648
|
+
orientation: types.or([
|
|
48649
|
+
types.literal("n"),
|
|
48650
|
+
types.literal("s"),
|
|
48651
|
+
types.literal("w"),
|
|
48652
|
+
types.literal("e")
|
|
48676
48653
|
]),
|
|
48677
|
-
isMoving: types
|
|
48678
|
-
onMoveHighlight: types
|
|
48654
|
+
isMoving: types.boolean(),
|
|
48655
|
+
onMoveHighlight: types.function()
|
|
48679
48656
|
});
|
|
48680
48657
|
get style() {
|
|
48681
48658
|
const isTop = [
|
|
@@ -48720,24 +48697,20 @@ set(value) {
|
|
|
48720
48697
|
var Corner = class extends Component {
|
|
48721
48698
|
static template = "o-spreadsheet-Corner";
|
|
48722
48699
|
props = (0, _odoo_owl.props)({
|
|
48723
|
-
zone: types
|
|
48724
|
-
color: types
|
|
48725
|
-
orientation: types
|
|
48726
|
-
types
|
|
48727
|
-
types
|
|
48728
|
-
types
|
|
48729
|
-
types
|
|
48730
|
-
types
|
|
48731
|
-
types
|
|
48732
|
-
types
|
|
48733
|
-
types
|
|
48700
|
+
zone: types.Zone(),
|
|
48701
|
+
color: types.Color(),
|
|
48702
|
+
orientation: types.or([
|
|
48703
|
+
types.literal("nw"),
|
|
48704
|
+
types.literal("ne"),
|
|
48705
|
+
types.literal("sw"),
|
|
48706
|
+
types.literal("se"),
|
|
48707
|
+
types.literal("n"),
|
|
48708
|
+
types.literal("s"),
|
|
48709
|
+
types.literal("e"),
|
|
48710
|
+
types.literal("w")
|
|
48734
48711
|
]),
|
|
48735
|
-
isResizing: types
|
|
48736
|
-
onResizeHighlight: types
|
|
48737
|
-
types$6.instanceOf(PointerEvent),
|
|
48738
|
-
types$6.ResizeDirection(),
|
|
48739
|
-
types$6.ResizeDirection()
|
|
48740
|
-
])
|
|
48712
|
+
isResizing: types.boolean(),
|
|
48713
|
+
onResizeHighlight: types.function()
|
|
48741
48714
|
});
|
|
48742
48715
|
dirX;
|
|
48743
48716
|
dirY;
|
|
@@ -48798,8 +48771,8 @@ set(value) {
|
|
|
48798
48771
|
Border
|
|
48799
48772
|
};
|
|
48800
48773
|
props = (0, _odoo_owl.props)({
|
|
48801
|
-
range: types
|
|
48802
|
-
color: types
|
|
48774
|
+
range: types.Range(),
|
|
48775
|
+
color: types.Color()
|
|
48803
48776
|
});
|
|
48804
48777
|
highlightState = (0, _odoo_owl.proxy)({ shiftingMode: "none" });
|
|
48805
48778
|
dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
|
|
@@ -48942,12 +48915,12 @@ set(value) {
|
|
|
48942
48915
|
</div>
|
|
48943
48916
|
`;
|
|
48944
48917
|
props = (0, _odoo_owl.props)({
|
|
48945
|
-
"width?": types
|
|
48946
|
-
"height?": types
|
|
48947
|
-
direction: types
|
|
48948
|
-
position: types
|
|
48949
|
-
offset: types
|
|
48950
|
-
onScroll: types
|
|
48918
|
+
"width?": types.Pixel(),
|
|
48919
|
+
"height?": types.Pixel(),
|
|
48920
|
+
direction: types.customValidator(types.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
|
|
48921
|
+
position: types.CSSProperties(),
|
|
48922
|
+
offset: types.Pixel(),
|
|
48923
|
+
onScroll: types.function()
|
|
48951
48924
|
}, {
|
|
48952
48925
|
width: 1,
|
|
48953
48926
|
height: 1
|
|
@@ -48990,7 +48963,7 @@ set(value) {
|
|
|
48990
48963
|
direction="'horizontal'"
|
|
48991
48964
|
onScroll.bind="this.onScroll"
|
|
48992
48965
|
/>`;
|
|
48993
|
-
props = (0, _odoo_owl.props)({ "leftOffset?": types
|
|
48966
|
+
props = (0, _odoo_owl.props)({ "leftOffset?": types.number() }, { leftOffset: 0 });
|
|
48994
48967
|
get offset() {
|
|
48995
48968
|
return this.env.model.getters.getActiveSheetScrollInfo().scrollX;
|
|
48996
48969
|
}
|
|
@@ -49008,7 +48981,7 @@ set(value) {
|
|
|
49008
48981
|
left: `${this.props.leftOffset + x}px`,
|
|
49009
48982
|
bottom: "0px",
|
|
49010
48983
|
height: `${scrollbarWidth}px`,
|
|
49011
|
-
right:
|
|
48984
|
+
right: `${scrollbarWidth}px`
|
|
49012
48985
|
};
|
|
49013
48986
|
}
|
|
49014
48987
|
onScroll(offset) {
|
|
@@ -49033,7 +49006,7 @@ set(value) {
|
|
|
49033
49006
|
direction="'vertical'"
|
|
49034
49007
|
onScroll.bind="(offset) => this.onScroll(offset)"
|
|
49035
49008
|
/>`;
|
|
49036
|
-
props = (0, _odoo_owl.props)({ "topOffset?": types
|
|
49009
|
+
props = (0, _odoo_owl.props)({ "topOffset?": types.number() }, { topOffset: 0 });
|
|
49037
49010
|
get offset() {
|
|
49038
49011
|
return this.env.model.getters.getActiveSheetScrollInfo().scrollY;
|
|
49039
49012
|
}
|
|
@@ -49051,7 +49024,7 @@ set(value) {
|
|
|
49051
49024
|
top: `${this.props.topOffset + y}px`,
|
|
49052
49025
|
right: "0px",
|
|
49053
49026
|
width: `${scrollbarWidth}px`,
|
|
49054
|
-
bottom:
|
|
49027
|
+
bottom: `${scrollbarWidth}px`
|
|
49055
49028
|
};
|
|
49056
49029
|
}
|
|
49057
49030
|
onScroll(offset) {
|
|
@@ -49084,7 +49057,7 @@ set(value) {
|
|
|
49084
49057
|
const COLOR = "#777";
|
|
49085
49058
|
var TableResizer = class extends Component {
|
|
49086
49059
|
static template = "o-spreadsheet-TableResizer";
|
|
49087
|
-
props = (0, _odoo_owl.props)({ table: types
|
|
49060
|
+
props = (0, _odoo_owl.props)({ table: types.Table() });
|
|
49088
49061
|
state = (0, _odoo_owl.proxy)({ highlightZone: void 0 });
|
|
49089
49062
|
dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
|
|
49090
49063
|
setup() {
|
|
@@ -49173,8 +49146,8 @@ set(value) {
|
|
|
49173
49146
|
Selection
|
|
49174
49147
|
};
|
|
49175
49148
|
props = (0, _odoo_owl.props)({
|
|
49176
|
-
exposeFocus: types
|
|
49177
|
-
getGridSize: types
|
|
49149
|
+
exposeFocus: types.function(),
|
|
49150
|
+
getGridSize: types.function()
|
|
49178
49151
|
});
|
|
49179
49152
|
HEADER_HEIGHT = 26;
|
|
49180
49153
|
HEADER_WIDTH = 48;
|
|
@@ -49816,8 +49789,8 @@ set(value) {
|
|
|
49816
49789
|
var ClickableCellSortIcon = class extends Component {
|
|
49817
49790
|
static template = "o-spreadsheet-ClickableCellSortIcon";
|
|
49818
49791
|
props = (0, _odoo_owl.props)({
|
|
49819
|
-
position: types
|
|
49820
|
-
sortDirection: types
|
|
49792
|
+
position: types.CellPosition(),
|
|
49793
|
+
sortDirection: types.or([types.SortDirection, types.literal("none")])
|
|
49821
49794
|
});
|
|
49822
49795
|
hoveredTableStore;
|
|
49823
49796
|
setup() {
|
|
@@ -49891,8 +49864,8 @@ set(value) {
|
|
|
49891
49864
|
static template = "o_spreadsheet.PivotHTMLRenderer";
|
|
49892
49865
|
static components = { Checkbox };
|
|
49893
49866
|
props = (0, _odoo_owl.props)({
|
|
49894
|
-
pivotId: types
|
|
49895
|
-
onCellClicked: types
|
|
49867
|
+
pivotId: types.UID(),
|
|
49868
|
+
onCellClicked: types.function()
|
|
49896
49869
|
});
|
|
49897
49870
|
pivot = this.env.model.getters.getPivot(this.props.pivotId);
|
|
49898
49871
|
data = {
|
|
@@ -67593,20 +67566,20 @@ set(value) {
|
|
|
67593
67566
|
var RippleEffect = class extends Component {
|
|
67594
67567
|
static template = "o-spreadsheet-RippleEffect";
|
|
67595
67568
|
props = (0, _odoo_owl.props)({
|
|
67596
|
-
x:
|
|
67597
|
-
y:
|
|
67598
|
-
color:
|
|
67599
|
-
opacity:
|
|
67600
|
-
duration:
|
|
67569
|
+
x: types.string(),
|
|
67570
|
+
y: types.string(),
|
|
67571
|
+
color: types.string(),
|
|
67572
|
+
opacity: types.number(),
|
|
67573
|
+
duration: types.number(),
|
|
67601
67574
|
/** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
|
|
67602
|
-
width:
|
|
67575
|
+
width: types.number(),
|
|
67603
67576
|
/** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
|
|
67604
|
-
height:
|
|
67605
|
-
offsetY:
|
|
67606
|
-
offsetX:
|
|
67607
|
-
allowOverflow:
|
|
67608
|
-
onAnimationEnd:
|
|
67609
|
-
style:
|
|
67577
|
+
height: types.number(),
|
|
67578
|
+
offsetY: types.number(),
|
|
67579
|
+
offsetX: types.number(),
|
|
67580
|
+
allowOverflow: types.boolean(),
|
|
67581
|
+
onAnimationEnd: types.function(),
|
|
67582
|
+
style: types.string()
|
|
67610
67583
|
});
|
|
67611
67584
|
rippleRef = (0, _odoo_owl.signal)(null);
|
|
67612
67585
|
setup() {
|
|
@@ -67646,21 +67619,21 @@ set(value) {
|
|
|
67646
67619
|
static template = "o-spreadsheet-Ripple";
|
|
67647
67620
|
static components = { RippleEffect };
|
|
67648
67621
|
props = (0, _odoo_owl.props)({
|
|
67649
|
-
"color?":
|
|
67650
|
-
"opacity?":
|
|
67651
|
-
"duration?":
|
|
67622
|
+
"color?": types.string(),
|
|
67623
|
+
"opacity?": types.number(),
|
|
67624
|
+
"duration?": types.number(),
|
|
67652
67625
|
/** If true, the ripple will play from the element center instead of the position of the click */
|
|
67653
|
-
"ignoreClickPosition?":
|
|
67626
|
+
"ignoreClickPosition?": types.boolean(),
|
|
67654
67627
|
/** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
|
|
67655
|
-
"width?":
|
|
67628
|
+
"width?": types.number(),
|
|
67656
67629
|
/** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
|
|
67657
|
-
"height?":
|
|
67658
|
-
"offsetY?":
|
|
67659
|
-
"offsetX?":
|
|
67660
|
-
"allowOverflow?":
|
|
67661
|
-
"enabled?":
|
|
67662
|
-
"onAnimationEnd?":
|
|
67663
|
-
"class?":
|
|
67630
|
+
"height?": types.number(),
|
|
67631
|
+
"offsetY?": types.number(),
|
|
67632
|
+
"offsetX?": types.number(),
|
|
67633
|
+
"allowOverflow?": types.boolean(),
|
|
67634
|
+
"enabled?": types.boolean(),
|
|
67635
|
+
"onAnimationEnd?": types.function(),
|
|
67636
|
+
"class?": types.string()
|
|
67664
67637
|
}, {
|
|
67665
67638
|
color: "#aaaaaa",
|
|
67666
67639
|
opacity: .4,
|
|
@@ -67921,10 +67894,10 @@ set(value) {
|
|
|
67921
67894
|
ColorPicker
|
|
67922
67895
|
};
|
|
67923
67896
|
props = (0, _odoo_owl.props)({
|
|
67924
|
-
sheetId:
|
|
67925
|
-
openContextMenu:
|
|
67926
|
-
"style?":
|
|
67927
|
-
"onMouseDown?":
|
|
67897
|
+
sheetId: types.string(),
|
|
67898
|
+
openContextMenu: types.function(),
|
|
67899
|
+
"style?": types.string(),
|
|
67900
|
+
"onMouseDown?": types.function()
|
|
67928
67901
|
}, {
|
|
67929
67902
|
onMouseDown: () => {},
|
|
67930
67903
|
style: ""
|
|
@@ -68191,12 +68164,8 @@ set(value) {
|
|
|
68191
68164
|
static template = "o-spreadsheet-BottomBarStatistic";
|
|
68192
68165
|
static components = { Ripple };
|
|
68193
68166
|
props = (0, _odoo_owl.props)({
|
|
68194
|
-
openContextMenu:
|
|
68195
|
-
|
|
68196
|
-
_odoo_owl.types.number(),
|
|
68197
|
-
_odoo_owl.types.instanceOf(MenuItemRegistry)
|
|
68198
|
-
]),
|
|
68199
|
-
closeContextMenu: _odoo_owl.types.function([])
|
|
68167
|
+
openContextMenu: types.function(),
|
|
68168
|
+
closeContextMenu: types.function()
|
|
68200
68169
|
});
|
|
68201
68170
|
state = (0, _odoo_owl.proxy)({ selectedStatisticFn: "" });
|
|
68202
68171
|
store;
|
|
@@ -68240,7 +68209,7 @@ set(value) {
|
|
|
68240
68209
|
const MENU_MAX_HEIGHT = 250;
|
|
68241
68210
|
var BottomBar = class extends Component {
|
|
68242
68211
|
static template = "o-spreadsheet-BottomBar";
|
|
68243
|
-
props = (0, _odoo_owl.props)({ onClick:
|
|
68212
|
+
props = (0, _odoo_owl.props)({ onClick: types.function() });
|
|
68244
68213
|
static components = {
|
|
68245
68214
|
MenuPopover,
|
|
68246
68215
|
Ripple,
|
|
@@ -68523,7 +68492,7 @@ set(value) {
|
|
|
68523
68492
|
VerticalScrollBar,
|
|
68524
68493
|
HorizontalScrollBar
|
|
68525
68494
|
};
|
|
68526
|
-
props = (0, _odoo_owl.props)({ getGridSize: types
|
|
68495
|
+
props = (0, _odoo_owl.props)({ getGridSize: types.function() });
|
|
68527
68496
|
cellPopovers;
|
|
68528
68497
|
onMouseWheel;
|
|
68529
68498
|
canvasPosition;
|
|
@@ -68637,9 +68606,9 @@ set(value) {
|
|
|
68637
68606
|
var AbstractHeaderGroup = class extends Component {
|
|
68638
68607
|
static template = "o-spreadsheet-HeaderGroup";
|
|
68639
68608
|
props = (0, _odoo_owl.props)({
|
|
68640
|
-
group: types
|
|
68641
|
-
layerOffset: types
|
|
68642
|
-
openContextMenu: types
|
|
68609
|
+
group: types.HeaderGroup(),
|
|
68610
|
+
layerOffset: types.number(),
|
|
68611
|
+
openContextMenu: types.function()
|
|
68643
68612
|
});
|
|
68644
68613
|
toggleGroup() {
|
|
68645
68614
|
const sheetId = this.env.model.getters.getActiveSheetId();
|
|
@@ -68791,8 +68760,8 @@ set(value) {
|
|
|
68791
68760
|
MenuPopover
|
|
68792
68761
|
};
|
|
68793
68762
|
props = (0, _odoo_owl.props)({
|
|
68794
|
-
dimension: types
|
|
68795
|
-
layers: types
|
|
68763
|
+
dimension: types.Dimension(),
|
|
68764
|
+
layers: types.array()
|
|
68796
68765
|
});
|
|
68797
68766
|
menu = (0, _odoo_owl.proxy)({
|
|
68798
68767
|
isOpen: false,
|
|
@@ -68867,15 +68836,15 @@ set(value) {
|
|
|
68867
68836
|
var SidePanel = class extends Component {
|
|
68868
68837
|
static template = "o-spreadsheet-SidePanel";
|
|
68869
68838
|
props = (0, _odoo_owl.props)({
|
|
68870
|
-
panelContent: types
|
|
68871
|
-
panelProps: types
|
|
68872
|
-
onCloseSidePanel: types
|
|
68873
|
-
onStartHandleDrag: types
|
|
68874
|
-
onResetPanelSize: types
|
|
68875
|
-
"isPinned?": types
|
|
68876
|
-
"onTogglePinPanel?": types
|
|
68877
|
-
"onToggleCollapsePanel?": types
|
|
68878
|
-
"isCollapsed?": types
|
|
68839
|
+
panelContent: types.SidePanelContent(),
|
|
68840
|
+
panelProps: types.SidePanelComponentProps(),
|
|
68841
|
+
onCloseSidePanel: types.function(),
|
|
68842
|
+
onStartHandleDrag: types.function(),
|
|
68843
|
+
onResetPanelSize: types.function(),
|
|
68844
|
+
"isPinned?": types.boolean(),
|
|
68845
|
+
"onTogglePinPanel?": types.function(),
|
|
68846
|
+
"onToggleCollapsePanel?": types.function(),
|
|
68847
|
+
"isCollapsed?": types.boolean()
|
|
68879
68848
|
});
|
|
68880
68849
|
spreadsheetRect = useSpreadsheetRect();
|
|
68881
68850
|
getTitle() {
|
|
@@ -68960,7 +68929,7 @@ set(value) {
|
|
|
68960
68929
|
var RibbonMenu = class extends Component {
|
|
68961
68930
|
static template = "o-spreadsheet-RibbonMenu";
|
|
68962
68931
|
static components = { Menu };
|
|
68963
|
-
props = (0, _odoo_owl.props)({ onClose: types
|
|
68932
|
+
props = (0, _odoo_owl.props)({ onClose: types.function() });
|
|
68964
68933
|
rootItems = topbarMenuRegistry.getMenuItems();
|
|
68965
68934
|
menuRef = (0, _odoo_owl.signal)(null);
|
|
68966
68935
|
containerRef = (0, _odoo_owl.signal)(null);
|
|
@@ -69031,7 +69000,7 @@ set(value) {
|
|
|
69031
69000
|
RibbonMenu
|
|
69032
69001
|
};
|
|
69033
69002
|
static template = "o-spreadsheet-SmallBottomBar";
|
|
69034
|
-
props = (0, _odoo_owl.props)({ onClick: types
|
|
69003
|
+
props = (0, _odoo_owl.props)({ onClick: types.function() });
|
|
69035
69004
|
composerFocusStore;
|
|
69036
69005
|
composerStore;
|
|
69037
69006
|
composerInterface;
|
|
@@ -69233,9 +69202,9 @@ set(value) {
|
|
|
69233
69202
|
var StandaloneGridCanvas = class extends Component {
|
|
69234
69203
|
static template = "o-spreadsheet-StandaloneGridCanvas";
|
|
69235
69204
|
props = (0, _odoo_owl.props)({
|
|
69236
|
-
sheetId: types
|
|
69237
|
-
zone: types
|
|
69238
|
-
renderingCtx: types
|
|
69205
|
+
sheetId: types.UID(),
|
|
69206
|
+
zone: types.Zone(),
|
|
69207
|
+
renderingCtx: types.object({})
|
|
69239
69208
|
});
|
|
69240
69209
|
canvasRef = (0, _odoo_owl.signal)(null);
|
|
69241
69210
|
rendererStore;
|
|
@@ -69557,7 +69526,7 @@ set(value) {
|
|
|
69557
69526
|
//#region src/components/spreadsheet_print/spreadsheet_print.ts
|
|
69558
69527
|
var SpreadsheetPrint = class extends Component {
|
|
69559
69528
|
static template = "o-spreadsheet-SpreadsheetPrint";
|
|
69560
|
-
props = (0, _odoo_owl.props)({ onExitPrintMode: types
|
|
69529
|
+
props = (0, _odoo_owl.props)({ onExitPrintMode: types.function() });
|
|
69561
69530
|
static components = {
|
|
69562
69531
|
StandaloneGridCanvas,
|
|
69563
69532
|
Section,
|
|
@@ -69890,15 +69859,15 @@ set(value) {
|
|
|
69890
69859
|
Popover
|
|
69891
69860
|
};
|
|
69892
69861
|
props = (0, _odoo_owl.props)({
|
|
69893
|
-
"class?": types
|
|
69894
|
-
currentBorderColor: types
|
|
69895
|
-
currentBorderStyle: types
|
|
69896
|
-
"currentBorderPosition?": types
|
|
69897
|
-
onBorderColorPicked: types
|
|
69898
|
-
onBorderStylePicked: types
|
|
69899
|
-
onBorderPositionPicked: types
|
|
69900
|
-
"maxHeight?": types
|
|
69901
|
-
anchorRect: types
|
|
69862
|
+
"class?": types.string(),
|
|
69863
|
+
currentBorderColor: types.Color(),
|
|
69864
|
+
currentBorderStyle: types.BorderStyle(),
|
|
69865
|
+
"currentBorderPosition?": types.BorderPosition(),
|
|
69866
|
+
onBorderColorPicked: types.function(),
|
|
69867
|
+
onBorderStylePicked: types.function(),
|
|
69868
|
+
onBorderPositionPicked: types.function(),
|
|
69869
|
+
"maxHeight?": types.Pixel(),
|
|
69870
|
+
anchorRect: types.Rect()
|
|
69902
69871
|
});
|
|
69903
69872
|
BORDER_POSITIONS = BORDER_POSITIONS;
|
|
69904
69873
|
lineStyleButtonRef = (0, _odoo_owl.signal)(null);
|
|
@@ -69962,9 +69931,9 @@ set(value) {
|
|
|
69962
69931
|
static template = "o-spreadsheet-BorderEditorWidget";
|
|
69963
69932
|
static components = { BorderEditor };
|
|
69964
69933
|
props = (0, _odoo_owl.props)({
|
|
69965
|
-
"disabled?": types
|
|
69966
|
-
"dropdownMaxHeight?": types
|
|
69967
|
-
"class?": types
|
|
69934
|
+
"disabled?": types.boolean(),
|
|
69935
|
+
"dropdownMaxHeight?": types.Pixel(),
|
|
69936
|
+
"class?": types.string()
|
|
69968
69937
|
});
|
|
69969
69938
|
topBarToolStore;
|
|
69970
69939
|
borderEditorButtonRef = (0, _odoo_owl.signal)(null);
|
|
@@ -70022,7 +69991,7 @@ set(value) {
|
|
|
70022
69991
|
//#region src/components/paint_format_button/paint_format_button.ts
|
|
70023
69992
|
var PaintFormatButton = class extends Component {
|
|
70024
69993
|
static template = "o-spreadsheet-PaintFormatButton";
|
|
70025
|
-
props = (0, _odoo_owl.props)({ "class?": types
|
|
69994
|
+
props = (0, _odoo_owl.props)({ "class?": types.string() });
|
|
70026
69995
|
paintFormatStore;
|
|
70027
69996
|
setup() {
|
|
70028
69997
|
this.paintFormatStore = useStore(PaintFormatStore);
|
|
@@ -70047,7 +70016,7 @@ set(value) {
|
|
|
70047
70016
|
TableStylesPopover,
|
|
70048
70017
|
ActionButton
|
|
70049
70018
|
};
|
|
70050
|
-
props = (0, _odoo_owl.props)({ "class?": types
|
|
70019
|
+
props = (0, _odoo_owl.props)({ "class?": types.string() });
|
|
70051
70020
|
topBarToolStore;
|
|
70052
70021
|
state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
|
|
70053
70022
|
setup() {
|
|
@@ -70138,10 +70107,10 @@ set(value) {
|
|
|
70138
70107
|
static components = { ColorPickerWidget };
|
|
70139
70108
|
static template = "o-spreadsheet-ColorEditor";
|
|
70140
70109
|
props = (0, _odoo_owl.props)({
|
|
70141
|
-
class: types
|
|
70142
|
-
style: types
|
|
70143
|
-
icon: types
|
|
70144
|
-
title: types
|
|
70110
|
+
class: types.string(),
|
|
70111
|
+
style: types.or([types.literal("textColor"), types.literal("fillColor")]),
|
|
70112
|
+
icon: types.string(),
|
|
70113
|
+
title: types.string()
|
|
70145
70114
|
});
|
|
70146
70115
|
topBarToolStore;
|
|
70147
70116
|
state = (0, _odoo_owl.proxy)({ isOpen: false });
|
|
@@ -70173,10 +70142,10 @@ set(value) {
|
|
|
70173
70142
|
Popover
|
|
70174
70143
|
};
|
|
70175
70144
|
props = (0, _odoo_owl.props)({
|
|
70176
|
-
parentAction: types
|
|
70177
|
-
childActions: types
|
|
70178
|
-
class: types
|
|
70179
|
-
childClass: types
|
|
70145
|
+
parentAction: types.ActionSpec(),
|
|
70146
|
+
childActions: types.array(types.ActionSpec()),
|
|
70147
|
+
class: types.string(),
|
|
70148
|
+
childClass: types.string()
|
|
70180
70149
|
});
|
|
70181
70150
|
topBarToolStore;
|
|
70182
70151
|
actionRef = (0, _odoo_owl.signal)(null);
|
|
@@ -70205,7 +70174,7 @@ set(value) {
|
|
|
70205
70174
|
var TopBarFontSizeEditor = class extends Component {
|
|
70206
70175
|
static components = { FontSizeEditor };
|
|
70207
70176
|
static template = "o-spreadsheet-TopBarFontSizeEditor";
|
|
70208
|
-
props = (0, _odoo_owl.props)({ class:
|
|
70177
|
+
props = (0, _odoo_owl.props)({ class: types.string() });
|
|
70209
70178
|
topBarToolStore;
|
|
70210
70179
|
setup() {
|
|
70211
70180
|
this.topBarToolStore = useToolBarDropdownStore();
|
|
@@ -70239,7 +70208,7 @@ set(value) {
|
|
|
70239
70208
|
MenuPopover,
|
|
70240
70209
|
ActionButton
|
|
70241
70210
|
};
|
|
70242
|
-
props = (0, _odoo_owl.props)({ class: types
|
|
70211
|
+
props = (0, _odoo_owl.props)({ class: types.string() });
|
|
70243
70212
|
formatNumberMenuItemSpec = formatNumberMenuItemSpec;
|
|
70244
70213
|
topBarToolStore;
|
|
70245
70214
|
buttonRef = (0, _odoo_owl.signal)(null);
|
|
@@ -70274,7 +70243,7 @@ set(value) {
|
|
|
70274
70243
|
var ToolBarZoom = class extends Component {
|
|
70275
70244
|
static template = "o-spreadsheet-TopBarZoom";
|
|
70276
70245
|
static components = { NumberEditor };
|
|
70277
|
-
props = (0, _odoo_owl.props)({ class: types
|
|
70246
|
+
props = (0, _odoo_owl.props)({ class: types.string() });
|
|
70278
70247
|
topBarToolStore;
|
|
70279
70248
|
valueList = ZOOM_VALUES;
|
|
70280
70249
|
setup() {
|
|
@@ -70501,8 +70470,8 @@ set(value) {
|
|
|
70501
70470
|
var TopBar = class extends Component {
|
|
70502
70471
|
static template = "o-spreadsheet-TopBar";
|
|
70503
70472
|
props = (0, _odoo_owl.props)({
|
|
70504
|
-
onClick: types
|
|
70505
|
-
dropdownMaxHeight: types
|
|
70473
|
+
onClick: types.function(),
|
|
70474
|
+
dropdownMaxHeight: types.Pixel()
|
|
70506
70475
|
});
|
|
70507
70476
|
static components = {
|
|
70508
70477
|
MenuPopover,
|
|
@@ -70779,14 +70748,10 @@ set(value) {
|
|
|
70779
70748
|
var Spreadsheet = class extends Component {
|
|
70780
70749
|
static template = "o-spreadsheet-Spreadsheet";
|
|
70781
70750
|
props = (0, _odoo_owl.props)({
|
|
70782
|
-
model: types
|
|
70783
|
-
"notifyUser?": types
|
|
70784
|
-
"raiseError?": types
|
|
70785
|
-
"askConfirmation?": types
|
|
70786
|
-
types$6.string(),
|
|
70787
|
-
types$6.function([]),
|
|
70788
|
-
types$6.function([])
|
|
70789
|
-
])
|
|
70751
|
+
model: types.Model(),
|
|
70752
|
+
"notifyUser?": types.function(),
|
|
70753
|
+
"raiseError?": types.function(),
|
|
70754
|
+
"askConfirmation?": types.function()
|
|
70790
70755
|
});
|
|
70791
70756
|
static components = {
|
|
70792
70757
|
TopBar,
|
|
@@ -76365,8 +76330,8 @@ set(value) {
|
|
|
76365
76330
|
static maxSize = { maxHeight: ERROR_TOOLTIP_MAX_HEIGHT };
|
|
76366
76331
|
static template = "o-spreadsheet-ErrorToolTip";
|
|
76367
76332
|
props = (0, _odoo_owl.props)({
|
|
76368
|
-
cellPosition: types
|
|
76369
|
-
"onClosed?": types
|
|
76333
|
+
cellPosition: types.CellPosition(),
|
|
76334
|
+
"onClosed?": types.function()
|
|
76370
76335
|
});
|
|
76371
76336
|
get dataValidationErrorMessage() {
|
|
76372
76337
|
return this.env.model.getters.getInvalidDataValidationMessage(this.props.cellPosition);
|
|
@@ -76449,8 +76414,8 @@ set(value) {
|
|
|
76449
76414
|
FilterMenuCriterion
|
|
76450
76415
|
};
|
|
76451
76416
|
props = (0, _odoo_owl.props)({
|
|
76452
|
-
filterPosition: types
|
|
76453
|
-
"onClosed?": types
|
|
76417
|
+
filterPosition: types.Position(),
|
|
76418
|
+
"onClosed?": types.function()
|
|
76454
76419
|
});
|
|
76455
76420
|
state;
|
|
76456
76421
|
criterionCategory = "text";
|
|
@@ -76629,8 +76594,8 @@ set(value) {
|
|
|
76629
76594
|
var LinkDisplay = class extends Component {
|
|
76630
76595
|
static template = "o-spreadsheet-LinkDisplay";
|
|
76631
76596
|
props = (0, _odoo_owl.props)({
|
|
76632
|
-
cellPosition: types
|
|
76633
|
-
"onClosed?": types
|
|
76597
|
+
cellPosition: types.CellPosition(),
|
|
76598
|
+
"onClosed?": types.function()
|
|
76634
76599
|
});
|
|
76635
76600
|
cellPopovers;
|
|
76636
76601
|
setup() {
|
|
@@ -76703,8 +76668,8 @@ set(value) {
|
|
|
76703
76668
|
static template = "o-spreadsheet-LinkEditor";
|
|
76704
76669
|
static components = { MenuPopover };
|
|
76705
76670
|
props = (0, _odoo_owl.props)({
|
|
76706
|
-
cellPosition: types
|
|
76707
|
-
"onClosed?": types
|
|
76671
|
+
cellPosition: types.CellPosition(),
|
|
76672
|
+
"onClosed?": types.function()
|
|
76708
76673
|
});
|
|
76709
76674
|
static size = { maxHeight: 500 };
|
|
76710
76675
|
urlInput = (0, _odoo_owl.signal)(null);
|
|
@@ -86394,8 +86359,8 @@ exports.stores = stores;
|
|
|
86394
86359
|
exports.tokenColors = tokenColors;
|
|
86395
86360
|
exports.tokenize = tokenize;
|
|
86396
86361
|
|
|
86397
|
-
__info__.version = "19.4.0-alpha.
|
|
86398
|
-
__info__.date = "2026-06-
|
|
86399
|
-
__info__.hash = "
|
|
86362
|
+
__info__.version = "19.4.0-alpha.14";
|
|
86363
|
+
__info__.date = "2026-06-12T09:49:11.281Z";
|
|
86364
|
+
__info__.hash = "f92f5e0";
|
|
86400
86365
|
|
|
86401
86366
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|