@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.
Files changed (33) hide show
  1. package/dist/o_spreadsheet.cjs +804 -839
  2. package/dist/o_spreadsheet.css +12 -4
  3. package/dist/o_spreadsheet.esm.js +412 -447
  4. package/dist/o_spreadsheet.iife.js +804 -839
  5. package/dist/o_spreadsheet.min.iife.js +78 -78
  6. package/dist/o_spreadsheet.xml +8 -7
  7. package/dist/types/components/action_button/action_button.d.ts +1 -1
  8. package/dist/types/components/animation/ripple.d.ts +3 -3
  9. package/dist/types/components/border_editor/border_editor.d.ts +2 -2
  10. package/dist/types/components/bottom_bar/bottom_bar.d.ts +1 -1
  11. package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +2 -1
  12. package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -1
  13. package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -1
  14. package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +2 -2
  15. package/dist/types/components/grid_overlay/grid_overlay.d.ts +2 -3
  16. package/dist/types/components/helpers/dom_helpers.d.ts +0 -4
  17. package/dist/types/components/menu/menu.d.ts +1 -1
  18. package/dist/types/components/menu_popover/menu_popover.d.ts +1 -1
  19. package/dist/types/components/props_validation.d.ts +2 -6
  20. package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +5 -6
  21. package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +5 -4
  22. package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +7 -7
  23. package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +3 -2
  24. package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +3 -2
  25. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +5 -5
  26. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +3 -3
  27. package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +7 -4
  28. package/dist/types/components/side_panel/chart/common.d.ts +3 -2
  29. package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +4 -4
  30. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +2 -2
  31. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +1 -1
  32. package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +1 -1
  33. 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.13
6
- * @date 2026-06-06T09:34:53.140Z
7
- * @hash af3c199
5
+ * @version 19.4.0-alpha.14
6
+ * @date 2026-06-12T09:49:11.281Z
7
+ * @hash f92f5e0
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -332,12 +332,6 @@ function downloadFile(dataUrl, fileName) {
332
332
  a.click();
333
333
  document.body.removeChild(a);
334
334
  }
335
- /**
336
- * Detects if the current browser is Firefox
337
- */
338
- function isBrowserFirefox() {
339
- return /Firefox/i.test(navigator.userAgent);
340
- }
341
335
  function maxTouchPoints() {
342
336
  return navigator.maxTouchPoints || 1;
343
337
  }
@@ -3009,6 +3003,187 @@ function getDependencyContainer(env) {
3009
3003
  return container;
3010
3004
  }
3011
3005
 
3006
+ //#endregion
3007
+ //#region src/components/props_validation.ts
3008
+ /**
3009
+ * Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
3010
+ */
3011
+ function validateNumber() {
3012
+ return _odoo_owl.types.number();
3013
+ }
3014
+ /**
3015
+ * Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
3016
+ */
3017
+ function validateString() {
3018
+ return _odoo_owl.types.string();
3019
+ }
3020
+ /**
3021
+ * Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
3022
+ */
3023
+ function validateObject() {
3024
+ return _odoo_owl.types.object();
3025
+ }
3026
+ /**
3027
+ * Validate that a prop is an array, but with a more specific element type than `any[]`.
3028
+ */
3029
+ function validateArrayOf() {
3030
+ return _odoo_owl.types.array();
3031
+ }
3032
+ /**
3033
+ * Validate that a prop is a record (string-keyed dictionary), but with a more
3034
+ * specific value type than `any`.
3035
+ */
3036
+ function validateRecordOf() {
3037
+ return _odoo_owl.types.record();
3038
+ }
3039
+ /**
3040
+ * Validate that a prop is a `Set`, typed with a specific element type.
3041
+ */
3042
+ function validateSetOf() {
3043
+ return _odoo_owl.types.instanceOf(Set);
3044
+ }
3045
+ function validateRect() {
3046
+ return _odoo_owl.types.object({
3047
+ x: _odoo_owl.types.number(),
3048
+ y: _odoo_owl.types.number(),
3049
+ width: _odoo_owl.types.number(),
3050
+ height: _odoo_owl.types.number()
3051
+ });
3052
+ }
3053
+ function validateBorderPosition() {
3054
+ return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
3055
+ }
3056
+ function validateBorderStyle() {
3057
+ return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
3058
+ }
3059
+ function validateDOMCoordinates() {
3060
+ return _odoo_owl.types.object({
3061
+ x: _odoo_owl.types.number(),
3062
+ y: _odoo_owl.types.number()
3063
+ });
3064
+ }
3065
+ function validateDOMDimension() {
3066
+ return _odoo_owl.types.object({
3067
+ width: _odoo_owl.types.number(),
3068
+ height: _odoo_owl.types.number()
3069
+ });
3070
+ }
3071
+ function validateSortDirection() {
3072
+ return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
3073
+ }
3074
+ function validateResizeDirection() {
3075
+ return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
3076
+ -1,
3077
+ 0,
3078
+ 1
3079
+ ].includes(direction));
3080
+ }
3081
+ function validateComposerFocusType() {
3082
+ return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
3083
+ }
3084
+ function validateDimension() {
3085
+ return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
3086
+ }
3087
+ function validateContextMenuType() {
3088
+ return _odoo_owl.types.customValidator(validateString(), (value) => [
3089
+ "ROW",
3090
+ "COL",
3091
+ "CELL",
3092
+ "FILTER",
3093
+ "GROUP_HEADERS",
3094
+ "UNGROUP_HEADERS"
3095
+ ].includes(value));
3096
+ }
3097
+ /**
3098
+ * Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
3099
+ * match what `useStore(...)` returns at the call site.
3100
+ */
3101
+ function validateStore() {
3102
+ return _odoo_owl.types.object();
3103
+ }
3104
+ function validateFunction() {
3105
+ return _odoo_owl.types.function();
3106
+ }
3107
+ const types = {
3108
+ ..._odoo_owl.types,
3109
+ function: validateFunction,
3110
+ ArrayOf: validateArrayOf,
3111
+ RecordOf: validateRecordOf,
3112
+ SetOf: validateSetOf,
3113
+ GenericCriterionType: validateString,
3114
+ UID: validateString,
3115
+ CriterionFilter: validateObject,
3116
+ CSSProperties: validateObject,
3117
+ ResizeDirection: validateResizeDirection,
3118
+ FigureUI: validateObject,
3119
+ Token: validateObject,
3120
+ CellPosition: validateObject,
3121
+ AutoCompleteProviderDefinition: validateObject,
3122
+ AutoCompleteProposal: validateObject,
3123
+ FunctionDescription: validateObject,
3124
+ Rect: validateRect,
3125
+ Pixel: validateNumber,
3126
+ HeaderIndex: validateNumber,
3127
+ BorderPosition: validateBorderPosition,
3128
+ BorderStyle: validateBorderStyle,
3129
+ Color: validateString,
3130
+ ActionSpec: validateObject,
3131
+ DOMCoordinates: validateDOMCoordinates,
3132
+ DOMDimension: validateDOMDimension,
3133
+ ComposerFocusType: validateComposerFocusType,
3134
+ SortDirection: validateSortDirection,
3135
+ Store: validateStore,
3136
+ Position: validateObject,
3137
+ PivotCoreDefinition: validateObject,
3138
+ PivotField: validateObject,
3139
+ PivotDimension: validateObject,
3140
+ PivotMeasure: validateObject,
3141
+ PivotCoreMeasure: validateObject,
3142
+ PivotCustomGroupedField: validateObject,
3143
+ PivotRuntimeDefinition: validateObject,
3144
+ PivotFilter: validateObject,
3145
+ DataFilterValue: validateObject,
3146
+ SpreadsheetPivotCoreDefinition: validateObject,
3147
+ ComposerSelection: validateObject,
3148
+ Action: validateObject,
3149
+ MenuItemOrSeparator: validateObject,
3150
+ Model: validateObject,
3151
+ DispatchResult: validateObject,
3152
+ Zone: validateObject,
3153
+ Range: validateObject,
3154
+ HeaderGroup: validateObject,
3155
+ GridClickModifiers: validateObject,
3156
+ ZoomedMouseEvent: validateObject,
3157
+ ConditionalFormat: validateObject,
3158
+ ColorScaleThreshold: validateObject,
3159
+ Table: validateObject,
3160
+ CoreTable: validateObject,
3161
+ TableConfig: validateObject,
3162
+ TableStyle: validateObject,
3163
+ TitleDesign: validateObject,
3164
+ ChartDefinition: validateObject,
3165
+ ChartDefinitionWithDataSource: validateObject,
3166
+ ChartWithAxisDefinition: validateObject,
3167
+ ChartStyle: validateObject,
3168
+ ChartColorScale: validateObject,
3169
+ ChartRangeDataSource: validateObject,
3170
+ DataSetStyle: validateObject,
3171
+ GeoChartDefinition: validateObject,
3172
+ FunnelChartDefinition: validateObject,
3173
+ TreeMapChartDefinition: validateObject,
3174
+ TreeMapCategoryColorOptions: validateObject,
3175
+ TreeMapColorScaleOptions: validateObject,
3176
+ NamedRange: validateObject,
3177
+ DataValidationRule: validateObject,
3178
+ InformationNotification: validateObject,
3179
+ NotificationStoreMethods: validateObject,
3180
+ SidePanelContent: validateObject,
3181
+ SidePanelComponentProps: validateObject,
3182
+ DataValidationCriterionType: validateString,
3183
+ Dimension: validateDimension,
3184
+ ContextMenuType: validateContextMenuType
3185
+ };
3186
+
3012
3187
  //#endregion
3013
3188
  //#region src/components/figures/chart/chartJs/chartjs_animation_store.ts
3014
3189
  var ChartAnimationStore = class extends SpreadsheetStore {
@@ -11524,8 +11699,8 @@ chartJsExtensionRegistry.add("chartBackgroundPlugin", {
11524
11699
  var ChartJsComponent = class extends Component {
11525
11700
  static template = "o-spreadsheet-ChartJsComponent";
11526
11701
  props = (0, _odoo_owl.props)({
11527
- chartId: _odoo_owl.types.string(),
11528
- "isFullScreen?": _odoo_owl.types.boolean()
11702
+ chartId: types.string(),
11703
+ "isFullScreen?": types.boolean()
11529
11704
  });
11530
11705
  canvas = (0, _odoo_owl.signal)(null);
11531
11706
  chart;
@@ -12223,8 +12398,8 @@ function getZoomTargetPosition(ev, zoom) {
12223
12398
  var ScorecardChart = class extends Component {
12224
12399
  static template = "o-spreadsheet-ScorecardChart";
12225
12400
  props = (0, _odoo_owl.props)({
12226
- chartId: _odoo_owl.types.string(),
12227
- "isFullScreen?": _odoo_owl.types.boolean()
12401
+ chartId: types.string(),
12402
+ "isFullScreen?": types.boolean()
12228
12403
  });
12229
12404
  canvas = (0, _odoo_owl.signal)(null);
12230
12405
  get runtime() {
@@ -13912,8 +14087,8 @@ const ANIMATION_DURATION = 1e3;
13912
14087
  var GaugeChartComponent = class extends Component {
13913
14088
  static template = "o-spreadsheet-GaugeChartComponent";
13914
14089
  props = (0, _odoo_owl.props)({
13915
- chartId: _odoo_owl.types.string(),
13916
- "isFullScreen?": _odoo_owl.types.boolean()
14090
+ chartId: types.string(),
14091
+ "isFullScreen?": types.boolean()
13917
14092
  });
13918
14093
  canvas = (0, _odoo_owl.signal)(null);
13919
14094
  animationStore;
@@ -14185,200 +14360,23 @@ function useTimeOut() {
14185
14360
  };
14186
14361
  }
14187
14362
 
14188
- //#endregion
14189
- //#region src/components/props_validation.ts
14190
- /**
14191
- * Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
14192
- */
14193
- function validateNumber() {
14194
- return _odoo_owl.types.number();
14195
- }
14196
- /**
14197
- * Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
14198
- */
14199
- function validateString() {
14200
- return _odoo_owl.types.string();
14201
- }
14202
- /**
14203
- * Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
14204
- */
14205
- function validateObject() {
14206
- return _odoo_owl.types.object();
14207
- }
14208
- /**
14209
- * Validate that a prop is an array, but with a more specific element type than `any[]`.
14210
- */
14211
- function validateArrayOf() {
14212
- return _odoo_owl.types.array();
14213
- }
14214
- /**
14215
- * Validate that a prop is a record (string-keyed dictionary), but with a more
14216
- * specific value type than `any`.
14217
- */
14218
- function validateRecordOf() {
14219
- return _odoo_owl.types.record();
14220
- }
14221
- /**
14222
- * Validate that a prop is a `Set`, typed with a specific element type.
14223
- */
14224
- function validateSetOf() {
14225
- return _odoo_owl.types.instanceOf(Set);
14226
- }
14227
- function validateRect() {
14228
- return _odoo_owl.types.object({
14229
- x: _odoo_owl.types.number(),
14230
- y: _odoo_owl.types.number(),
14231
- width: _odoo_owl.types.number(),
14232
- height: _odoo_owl.types.number()
14233
- });
14234
- }
14235
- function validateBorderPosition() {
14236
- return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
14237
- }
14238
- function validateBorderStyle() {
14239
- return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
14240
- }
14241
- function validateDOMCoordinates() {
14242
- return _odoo_owl.types.object({
14243
- x: _odoo_owl.types.number(),
14244
- y: _odoo_owl.types.number()
14245
- });
14246
- }
14247
- function validateDOMDimension() {
14248
- return _odoo_owl.types.object({
14249
- width: _odoo_owl.types.number(),
14250
- height: _odoo_owl.types.number()
14251
- });
14252
- }
14253
- function validateSortDirection() {
14254
- return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
14255
- }
14256
- function validateResizeDirection() {
14257
- return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
14258
- -1,
14259
- 0,
14260
- 1
14261
- ].includes(direction));
14262
- }
14263
- function validateComposerFocusType() {
14264
- return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
14265
- }
14266
- function validateDimension() {
14267
- return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
14268
- }
14269
- function validateContextMenuType() {
14270
- return _odoo_owl.types.customValidator(validateString(), (value) => [
14271
- "ROW",
14272
- "COL",
14273
- "CELL",
14274
- "FILTER",
14275
- "GROUP_HEADERS",
14276
- "UNGROUP_HEADERS"
14277
- ].includes(value));
14278
- }
14279
- /**
14280
- * Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
14281
- * match what `useStore(...)` returns at the call site.
14282
- */
14283
- function validateStore() {
14284
- return _odoo_owl.types.object();
14285
- }
14286
- const types$6 = {
14287
- ..._odoo_owl.types,
14288
- ArrayOf: validateArrayOf,
14289
- RecordOf: validateRecordOf,
14290
- SetOf: validateSetOf,
14291
- GenericCriterionType: validateString,
14292
- UID: validateString,
14293
- CriterionFilter: validateObject,
14294
- CSSProperties: validateObject,
14295
- ResizeDirection: validateResizeDirection,
14296
- FigureUI: validateObject,
14297
- Token: validateObject,
14298
- CellPosition: validateObject,
14299
- AutoCompleteProviderDefinition: validateObject,
14300
- AutoCompleteProposal: validateObject,
14301
- FunctionDescription: validateObject,
14302
- Rect: validateRect,
14303
- Pixel: validateNumber,
14304
- HeaderIndex: validateNumber,
14305
- BorderPosition: validateBorderPosition,
14306
- BorderStyle: validateBorderStyle,
14307
- Color: validateString,
14308
- ActionSpec: validateObject,
14309
- DOMCoordinates: validateDOMCoordinates,
14310
- DOMDimension: validateDOMDimension,
14311
- ComposerFocusType: validateComposerFocusType,
14312
- SortDirection: validateSortDirection,
14313
- Store: validateStore,
14314
- Position: validateObject,
14315
- PivotCoreDefinition: validateObject,
14316
- PivotField: validateObject,
14317
- PivotDimension: validateObject,
14318
- PivotMeasure: validateObject,
14319
- PivotCoreMeasure: validateObject,
14320
- PivotCustomGroupedField: validateObject,
14321
- PivotRuntimeDefinition: validateObject,
14322
- PivotFilter: validateObject,
14323
- DataFilterValue: validateObject,
14324
- SpreadsheetPivotCoreDefinition: validateObject,
14325
- ComposerSelection: validateObject,
14326
- Action: validateObject,
14327
- MenuItemOrSeparator: validateObject,
14328
- Model: validateObject,
14329
- DispatchResult: validateObject,
14330
- Zone: validateObject,
14331
- Range: validateObject,
14332
- HeaderGroup: validateObject,
14333
- GridClickModifiers: validateObject,
14334
- ZoomedMouseEvent: validateObject,
14335
- ConditionalFormat: validateObject,
14336
- ColorScaleThreshold: validateObject,
14337
- Table: validateObject,
14338
- CoreTable: validateObject,
14339
- TableConfig: validateObject,
14340
- TableStyle: validateObject,
14341
- TitleDesign: validateObject,
14342
- ChartDefinition: validateObject,
14343
- ChartDefinitionWithDataSource: validateObject,
14344
- ChartWithAxisDefinition: validateObject,
14345
- ChartStyle: validateObject,
14346
- ChartColorScale: validateObject,
14347
- ChartRangeDataSource: validateObject,
14348
- DataSetStyle: validateObject,
14349
- GeoChartDefinition: validateObject,
14350
- FunnelChartDefinition: validateObject,
14351
- TreeMapChartDefinition: validateObject,
14352
- TreeMapCategoryColorOptions: validateObject,
14353
- TreeMapColorScaleOptions: validateObject,
14354
- NamedRange: validateObject,
14355
- DataValidationRule: validateObject,
14356
- InformationNotification: validateObject,
14357
- NotificationStoreMethods: validateObject,
14358
- SidePanelContent: validateObject,
14359
- SidePanelComponentProps: validateObject,
14360
- DataValidationCriterionType: validateString,
14361
- Dimension: validateDimension,
14362
- ContextMenuType: validateContextMenuType
14363
- };
14364
-
14365
14363
  //#endregion
14366
14364
  //#region src/components/menu/menu.ts
14367
14365
  var Menu = class extends Component {
14368
14366
  static template = "o-spreadsheet-Menu";
14369
14367
  static components = {};
14370
14368
  props = (0, _odoo_owl.props)({
14371
- menuItems: types$6.ArrayOf(),
14372
- onClose: types$6.function([]),
14373
- "onClickMenu?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14374
- "onMouseEnter?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14375
- "onMouseLeave?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14376
- "width?": types$6.number(),
14377
- "hoveredMenuId?": types$6.string(),
14378
- "isHoveredMenuFocused?": types$6.boolean(),
14379
- "onScroll?": types$6.function([types$6.instanceOf(CustomEvent)]),
14380
- "onKeyDown?": types$6.function([types$6.instanceOf(KeyboardEvent)]),
14381
- "disableKeyboardNavigation?": types$6.boolean()
14369
+ menuItems: types.ArrayOf(),
14370
+ onClose: types.function(),
14371
+ "onClickMenu?": types.function(),
14372
+ "onMouseEnter?": types.function(),
14373
+ "onMouseLeave?": types.function(),
14374
+ "width?": types.number(),
14375
+ "hoveredMenuId?": types.string(),
14376
+ "isHoveredMenuFocused?": types.boolean(),
14377
+ "onScroll?": types.function(),
14378
+ "onKeyDown?": types.function(),
14379
+ "disableKeyboardNavigation?": types.boolean()
14382
14380
  });
14383
14381
  menuRef = (0, _odoo_owl.signal)(null);
14384
14382
  setup() {
@@ -14518,17 +14516,17 @@ function usePopoverContainer() {
14518
14516
  var Popover = class extends Component {
14519
14517
  static template = "o-spreadsheet-Popover";
14520
14518
  props = (0, _odoo_owl.props)({
14521
- anchorRect: types$6.Rect(),
14522
- "containerRect?": types$6.object({}),
14523
- "positioning?": types$6.or([types$6.literal("top-right"), types$6.literal("bottom-left")]),
14524
- "maxWidth?": types$6.Pixel(),
14525
- "maxHeight?": types$6.Pixel(),
14526
- "verticalOffset?": types$6.number(),
14527
- "onMouseWheel?": types$6.function([]),
14528
- "onPopoverHidden?": types$6.function([]),
14529
- "onPopoverMoved?": types$6.function([]),
14530
- "zIndex?": types$6.number(),
14531
- "class?": types$6.string()
14519
+ anchorRect: types.Rect(),
14520
+ "containerRect?": types.object({}),
14521
+ "positioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
14522
+ "maxWidth?": types.Pixel(),
14523
+ "maxHeight?": types.Pixel(),
14524
+ "verticalOffset?": types.number(),
14525
+ "onMouseWheel?": types.function(),
14526
+ "onPopoverHidden?": types.function(),
14527
+ "onPopoverMoved?": types.function(),
14528
+ "zIndex?": types.number(),
14529
+ "class?": types.string()
14532
14530
  }, {
14533
14531
  positioning: "bottom-left",
14534
14532
  verticalOffset: 0,
@@ -14703,19 +14701,19 @@ var MenuPopover = class MenuPopover extends Component {
14703
14701
  Popover
14704
14702
  };
14705
14703
  props = (0, _odoo_owl.props)({
14706
- anchorRect: types$6.Rect(),
14707
- "popoverPositioning?": types$6.or([types$6.literal("top-right"), types$6.literal("bottom-left")]),
14708
- menuItems: types$6.ArrayOf(),
14709
- "depth?": types$6.number(),
14710
- "maxHeight?": types$6.Pixel(),
14711
- onClose: types$6.function([]),
14712
- "onMenuClicked?": types$6.function([types$6.instanceOf(CustomEvent)]),
14713
- "menuId?": types$6.UID(),
14714
- "onMouseOver?": types$6.function([]),
14715
- "width?": types$6.number(),
14716
- "autoSelectFirstItem?": types$6.boolean(),
14717
- "disableKeyboardNavigation?": types$6.boolean(),
14718
- "onKeyboardNavigation?": types$6.function([types$6.instanceOf(KeyboardEvent)])
14704
+ anchorRect: types.Rect(),
14705
+ "popoverPositioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
14706
+ menuItems: types.ArrayOf(),
14707
+ "depth?": types.number(),
14708
+ "maxHeight?": types.Pixel(),
14709
+ onClose: types.function(),
14710
+ "onMenuClicked?": types.function(),
14711
+ "menuId?": types.UID(),
14712
+ "onMouseOver?": types.function(),
14713
+ "width?": types.number(),
14714
+ "autoSelectFirstItem?": types.boolean(),
14715
+ "disableKeyboardNavigation?": types.boolean(),
14716
+ "onKeyboardNavigation?": types.function()
14719
14717
  }, {
14720
14718
  depth: 0,
14721
14719
  popoverPositioning: "top-right"
@@ -14961,13 +14959,13 @@ var Select = class extends Component {
14961
14959
  static template = "o-spreadsheet-Select";
14962
14960
  static components = { Popover };
14963
14961
  props = (0, _odoo_owl.props)({
14964
- onChange: types$6.function([types$6.string()]),
14965
- values: types$6.array(),
14966
- "selectedValue?": types$6.string(),
14967
- "class?": types$6.string(),
14968
- "popoverClass?": types$6.string(),
14969
- "name?": types$6.string(),
14970
- "title?": types$6.string()
14962
+ onChange: types.function(),
14963
+ values: types.array(),
14964
+ "selectedValue?": types.string(),
14965
+ "class?": types.string(),
14966
+ "popoverClass?": types.string(),
14967
+ "name?": types.string(),
14968
+ "title?": types.string()
14971
14969
  });
14972
14970
  selectRef = (0, _odoo_owl.signal)(null);
14973
14971
  dropdownRef = (0, _odoo_owl.signal)(null);
@@ -15075,8 +15073,8 @@ var ChartDashboardMenu = class extends Component {
15075
15073
  Select
15076
15074
  };
15077
15075
  props = (0, _odoo_owl.props)({
15078
- chartId: types$6.UID(),
15079
- "hasFullScreenButton?": types$6.boolean()
15076
+ chartId: types.UID(),
15077
+ "hasFullScreenButton?": types.boolean()
15080
15078
  }, { hasFullScreenButton: true });
15081
15079
  fullScreenFigureStore;
15082
15080
  menuState = (0, _odoo_owl.proxy)({
@@ -15145,10 +15143,10 @@ var CarouselFigure = class extends Component {
15145
15143
  MenuPopover
15146
15144
  };
15147
15145
  props = (0, _odoo_owl.props)({
15148
- figureUI: types$6.FigureUI(),
15149
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15150
- "isFullScreen?": types$6.boolean(),
15151
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15146
+ figureUI: types.FigureUI(),
15147
+ "editFigureStyle?": types.function(),
15148
+ "isFullScreen?": types.boolean(),
15149
+ "openContextMenu?": types.function()
15152
15150
  });
15153
15151
  carouselTabsRef = (0, _odoo_owl.signal)(null);
15154
15152
  carouselTabsDropdownRef = (0, _odoo_owl.signal)(null);
@@ -15187,6 +15185,12 @@ var CarouselFigure = class extends Component {
15187
15185
  this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
15188
15186
  this.env.openSidePanel("CarouselPanel", { figureId: this.props.figureUI.id });
15189
15187
  }
15188
+ onCarouselChartDoubleClick() {
15189
+ if (this.selectedCarouselItem?.type !== "chart") return;
15190
+ const chartId = this.selectedCarouselItem.chartId;
15191
+ this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
15192
+ this.env.openSidePanel("ChartPanel", { chartId });
15193
+ }
15190
15194
  isItemSelected(item) {
15191
15195
  const selectedItem = this.selectedCarouselItem;
15192
15196
  return deepEquals(selectedItem, item);
@@ -15286,10 +15290,10 @@ var ChartFigure = class extends Component {
15286
15290
  static template = "o-spreadsheet-ChartFigure";
15287
15291
  static components = { ChartDashboardMenu };
15288
15292
  props = (0, _odoo_owl.props)({
15289
- figureUI: types$6.FigureUI(),
15290
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15291
- "isFullScreen?": types$6.boolean(),
15292
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15293
+ figureUI: types.FigureUI(),
15294
+ "editFigureStyle?": types.function(),
15295
+ "isFullScreen?": types.boolean(),
15296
+ "openContextMenu?": types.function()
15293
15297
  });
15294
15298
  onDoubleClick() {
15295
15299
  this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
@@ -15317,9 +15321,9 @@ var ImageFigure = class extends Component {
15317
15321
  static template = "o-spreadsheet-ImageFigure";
15318
15322
  static components = {};
15319
15323
  props = (0, _odoo_owl.props)({
15320
- figureUI: types$6.FigureUI(),
15321
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15322
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15324
+ figureUI: types.FigureUI(),
15325
+ "editFigureStyle?": types.function(),
15326
+ "openContextMenu?": types.function()
15323
15327
  });
15324
15328
  get figureId() {
15325
15329
  return this.props.figureUI.id;
@@ -15358,15 +15362,11 @@ var FigureComponent = class extends Component {
15358
15362
  static template = "o-spreadsheet-FigureComponent";
15359
15363
  static components = { MenuPopover };
15360
15364
  props = (0, _odoo_owl.props)({
15361
- figureUI: types$6.FigureUI(),
15362
- style: types$6.string(),
15363
- class: types$6.string(),
15364
- "onMouseDown?": types$6.function([types$6.instanceOf(MouseEvent)]),
15365
- "onClickAnchor?": types$6.function([
15366
- types$6.ResizeDirection(),
15367
- types$6.ResizeDirection(),
15368
- types$6.instanceOf(MouseEvent)
15369
- ])
15365
+ figureUI: types.FigureUI(),
15366
+ style: types.string(),
15367
+ class: types.string(),
15368
+ "onMouseDown?": types.function(),
15369
+ "onClickAnchor?": types.function()
15370
15370
  }, {
15371
15371
  onMouseDown: () => {},
15372
15372
  onClickAnchor: () => {}
@@ -15430,7 +15430,7 @@ var FigureComponent = class extends Component {
15430
15430
  * correctly (and render?) before focusing the element.
15431
15431
  */
15432
15432
  el?.focus({ preventScroll: true });
15433
- });
15433
+ }, () => [this.env.model.getters.getSelectedFigureIds(), this.props.figureUI.id]);
15434
15434
  }
15435
15435
  clickAnchor(dirX, dirY, ev) {
15436
15436
  this.props.onClickAnchor(dirX, dirY, ev);
@@ -24486,18 +24486,18 @@ function useAutofocus(ref) {
24486
24486
  //#endregion
24487
24487
  //#region src/components/generic_input/generic_input.ts
24488
24488
  const genericInputPropsDefinition = {
24489
- value: types$6.or([types$6.number(), types$6.string()]),
24490
- onChange: types$6.function([types$6.string()]),
24491
- "onFocused?": types$6.function([]),
24492
- "onBlur?": types$6.function([]),
24493
- "onInput?": types$6.function([types$6.string()]),
24494
- "class?": types$6.string(),
24495
- "id?": types$6.string(),
24496
- "placeholder?": types$6.string(),
24497
- "autofocus?": types$6.boolean(),
24498
- "alwaysShowBorder?": types$6.boolean(),
24499
- "selectContentOnFocus?": types$6.boolean(),
24500
- "resetOnBlur?": types$6.boolean()
24489
+ value: types.or([types.number(), types.string()]),
24490
+ onChange: types.function(),
24491
+ "onFocused?": types.function(),
24492
+ "onBlur?": types.function(),
24493
+ "onInput?": types.function(),
24494
+ "class?": types.string(),
24495
+ "id?": types.string(),
24496
+ "placeholder?": types.string(),
24497
+ "autofocus?": types.boolean(),
24498
+ "alwaysShowBorder?": types.boolean(),
24499
+ "selectContentOnFocus?": types.boolean(),
24500
+ "resetOnBlur?": types.boolean()
24501
24501
  };
24502
24502
  var GenericInput = class extends Component {
24503
24503
  props = (0, _odoo_owl.props)(genericInputPropsDefinition);
@@ -24585,8 +24585,8 @@ var TextInput = class extends GenericInput {
24585
24585
  static components = {};
24586
24586
  props = (0, _odoo_owl.props)({
24587
24587
  ...genericInputPropsDefinition,
24588
- value: types$6.string(),
24589
- "errorMessage?": types$6.string()
24588
+ value: types.string(),
24589
+ "errorMessage?": types.string()
24590
24590
  });
24591
24591
  get inputClass() {
24592
24592
  return [
@@ -24603,11 +24603,11 @@ var TextInput = class extends GenericInput {
24603
24603
  var ActionButton = class extends Component {
24604
24604
  static template = "o-spreadsheet-ActionButton";
24605
24605
  props = (0, _odoo_owl.props)({
24606
- action: types$6.ActionSpec(),
24607
- "hasTriangleDownIcon?": types$6.boolean(),
24608
- "selectedColor?": types$6.string(),
24609
- "class?": types$6.string(),
24610
- "onClick?": types$6.function()
24606
+ action: types.ActionSpec(),
24607
+ "hasTriangleDownIcon?": types.boolean(),
24608
+ "selectedColor?": types.string(),
24609
+ "class?": types.string(),
24610
+ "onClick?": types.function()
24611
24611
  });
24612
24612
  actionButton = createAction(this.props.action);
24613
24613
  setup() {
@@ -24662,11 +24662,11 @@ var ColorPicker = class extends Component {
24662
24662
  static template = "o-spreadsheet-ColorPicker";
24663
24663
  static components = { Popover };
24664
24664
  props = (0, _odoo_owl.props)({
24665
- onColorPicked: types$6.function([types$6.string()]),
24666
- "currentColor?": types$6.string(),
24667
- "maxHeight?": types$6.Pixel(),
24668
- anchorRect: types$6.Rect(),
24669
- "disableNoColor?": types$6.boolean()
24665
+ onColorPicked: types.function(),
24666
+ "currentColor?": types.string(),
24667
+ "maxHeight?": types.Pixel(),
24668
+ anchorRect: types.Rect(),
24669
+ "disableNoColor?": types.boolean()
24670
24670
  }, { currentColor: "" });
24671
24671
  COLORS = COLOR_PICKER_DEFAULTS;
24672
24672
  state = (0, _odoo_owl.proxy)({
@@ -24825,15 +24825,15 @@ var ColorPickerWidget = class extends Component {
24825
24825
  static template = "o-spreadsheet-ColorPickerWidget";
24826
24826
  static components = { ColorPicker };
24827
24827
  props = (0, _odoo_owl.props)({
24828
- "currentColor?": types$6.string(),
24829
- toggleColorPicker: types$6.function([]),
24830
- showColorPicker: types$6.boolean(),
24831
- onColorPicked: types$6.function([types$6.string()]),
24832
- icon: types$6.string(),
24833
- "title?": types$6.string(),
24834
- "disabled?": types$6.boolean(),
24835
- "dropdownMaxHeight?": types$6.Pixel(),
24836
- "class?": types$6.string()
24828
+ "currentColor?": types.string(),
24829
+ toggleColorPicker: types.function(),
24830
+ showColorPicker: types.boolean(),
24831
+ onColorPicked: types.function(),
24832
+ icon: types.string(),
24833
+ "title?": types.string(),
24834
+ "disabled?": types.boolean(),
24835
+ "dropdownMaxHeight?": types.Pixel(),
24836
+ "class?": types.string()
24837
24837
  });
24838
24838
  colorPickerButtonRef = (0, _odoo_owl.signal)(null);
24839
24839
  get iconStyle() {
@@ -24850,16 +24850,16 @@ var NumberEditor = class extends Component {
24850
24850
  static template = "o-spreadsheet-NumberEditor";
24851
24851
  static components = { Popover };
24852
24852
  props = (0, _odoo_owl.props)({
24853
- currentValue: types$6.number(),
24854
- onValueChange: types$6.function([types$6.number()]),
24855
- "onToggle?": types$6.function([]),
24856
- "onFocusInput?": types$6.function([]),
24857
- class: types$6.string(),
24858
- "valueIcon?": types$6.string(),
24859
- min: types$6.number(),
24860
- max: types$6.number(),
24861
- title: types$6.string(),
24862
- valueList: types$6.array(types$6.number())
24853
+ currentValue: types.number(),
24854
+ onValueChange: types.function(),
24855
+ "onToggle?": types.function(),
24856
+ "onFocusInput?": types.function(),
24857
+ class: types.string(),
24858
+ "valueIcon?": types.string(),
24859
+ min: types.number(),
24860
+ max: types.number(),
24861
+ title: types.string(),
24862
+ valueList: types.array(types.number())
24863
24863
  }, { onFocusInput: () => {} });
24864
24864
  dropdown = (0, _odoo_owl.proxy)({ isOpen: false });
24865
24865
  inputRef = (0, _odoo_owl.signal)(null);
@@ -24940,11 +24940,11 @@ var FontSizeEditor = class extends Component {
24940
24940
  static template = "o-spreadsheet-FontSizeEditor";
24941
24941
  static components = { NumberEditor };
24942
24942
  props = (0, _odoo_owl.props)({
24943
- currentFontSize: types$6.number(),
24944
- onFontSizeChanged: types$6.function([types$6.number()]),
24945
- "onToggle?": types$6.function([]),
24946
- "onFocusInput?": types$6.function([]),
24947
- class: types$6.string()
24943
+ currentFontSize: types.number(),
24944
+ onFontSizeChanged: types.function(),
24945
+ "onToggle?": types.function(),
24946
+ "onFocusInput?": types.function(),
24947
+ class: types.string()
24948
24948
  }, { onFocusInput: () => {} });
24949
24949
  fontSizes = FONT_SIZES;
24950
24950
  };
@@ -24959,13 +24959,13 @@ var TextStyler = class extends Component {
24959
24959
  FontSizeEditor
24960
24960
  };
24961
24961
  props = (0, _odoo_owl.props)({
24962
- style: types$6.ChartStyle(),
24963
- updateStyle: types$6.function([types$6.ChartStyle()]),
24964
- "defaultStyle?": types$6.object({}),
24965
- "hasVerticalAlign?": types$6.boolean(),
24966
- "hasHorizontalAlign?": types$6.boolean(),
24967
- "hasBackgroundColor?": types$6.boolean(),
24968
- "class?": types$6.string()
24962
+ style: types.ChartStyle(),
24963
+ updateStyle: types.function(),
24964
+ "defaultStyle?": types.object({}),
24965
+ "hasVerticalAlign?": types.boolean(),
24966
+ "hasHorizontalAlign?": types.boolean(),
24967
+ "hasBackgroundColor?": types.boolean(),
24968
+ "class?": types.string()
24969
24969
  });
24970
24970
  openedEl = null;
24971
24971
  setup() {
@@ -25148,7 +25148,7 @@ var TextStyler = class extends Component {
25148
25148
  var CogWheelMenu = class extends Component {
25149
25149
  static template = "o-spreadsheet-CogWheelMenu";
25150
25150
  static components = { MenuPopover };
25151
- props = (0, _odoo_owl.props)({ items: types$6.array(types$6.ActionSpec()) });
25151
+ props = (0, _odoo_owl.props)({ items: types.array(types.ActionSpec()) });
25152
25152
  buttonRef = (0, _odoo_owl.signal)(null);
25153
25153
  menuState = (0, _odoo_owl.proxy)({
25154
25154
  isOpen: false,
@@ -25169,9 +25169,9 @@ var CogWheelMenu = class extends Component {
25169
25169
  var Section = class extends Component {
25170
25170
  static template = "o_spreadsheet.Section";
25171
25171
  props = (0, _odoo_owl.props)({
25172
- "class?": types$6.string(),
25173
- "title?": types$6.string(),
25174
- slots: types$6.object()
25172
+ "class?": types.string(),
25173
+ "title?": types.string(),
25174
+ slots: types.object()
25175
25175
  });
25176
25176
  };
25177
25177
 
@@ -25186,8 +25186,8 @@ var CarouselPanel = class extends Component {
25186
25186
  CogWheelMenu
25187
25187
  };
25188
25188
  props = (0, _odoo_owl.props)({
25189
- onCloseSidePanel: types$6.function([]),
25190
- figureId: types$6.UID()
25189
+ onCloseSidePanel: types.function(),
25190
+ figureId: types.UID()
25191
25191
  });
25192
25192
  DEFAULT_CAROUSEL_TITLE_STYLE = DEFAULT_CAROUSEL_TITLE_STYLE;
25193
25193
  dragAndDrop = useDragAndDropListItems();
@@ -25396,13 +25396,13 @@ const chartDataSourceSidePanelComponentRegistry = new Registry();
25396
25396
  var Checkbox = class extends Component {
25397
25397
  static template = "o-spreadsheet.Checkbox";
25398
25398
  props = (0, _odoo_owl.props)({
25399
- "label?": types$6.string(),
25400
- "value?": types$6.boolean(),
25401
- "className?": types$6.string(),
25402
- "name?": types$6.string(),
25403
- "title?": types$6.string(),
25404
- "disabled?": types$6.boolean(),
25405
- onChange: types$6.function([types$6.boolean()])
25399
+ "label?": types.string(),
25400
+ "value?": types.boolean(),
25401
+ "className?": types.string(),
25402
+ "name?": types.string(),
25403
+ "title?": types.string(),
25404
+ "disabled?": types.boolean(),
25405
+ onChange: types.function()
25406
25406
  }, { value: false });
25407
25407
  onChange(ev) {
25408
25408
  const value = ev.target.checked;
@@ -25413,10 +25413,10 @@ var Checkbox = class extends Component {
25413
25413
  //#endregion
25414
25414
  //#region src/components/side_panel/chart/common.ts
25415
25415
  const chartSidePanelPropsDefinition = {
25416
- chartId: types$6.UID(),
25417
- definition: types$6.object({}),
25418
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
25419
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
25416
+ chartId: types.UID(),
25417
+ definition: types.object({}),
25418
+ canUpdateChart: types.function(),
25419
+ updateChart: types.function()
25420
25420
  };
25421
25421
 
25422
25422
  //#endregion
@@ -25905,20 +25905,20 @@ var SelectionInputStore = class extends SpreadsheetStore {
25905
25905
  var SelectionInput = class extends Component {
25906
25906
  static template = "o-spreadsheet-SelectionInput";
25907
25907
  props = (0, _odoo_owl.props)({
25908
- ranges: types$6.array(types$6.string()),
25909
- "hasSingleRange?": types$6.boolean(),
25910
- "required?": types$6.boolean(),
25911
- "autofocus?": types$6.boolean(),
25912
- "isInvalid?": types$6.boolean(),
25913
- "class?": types$6.string(),
25914
- "onSelectionChanged?": types$6.function([types$6.array(types$6.string())]),
25915
- "onSelectionConfirmed?": types$6.function([]),
25916
- "onSelectionReordered?": types$6.function([types$6.array(types$6.number())]),
25917
- "onSelectionRemoved?": types$6.function([types$6.number()]),
25918
- "onInputFocused?": types$6.function([]),
25919
- "colors?": types$6.ArrayOf(),
25920
- "disabledRanges?": types$6.array(types$6.boolean()),
25921
- "disabledRangeTitle?": types$6.string()
25908
+ ranges: types.array(types.string()),
25909
+ "hasSingleRange?": types.boolean(),
25910
+ "required?": types.boolean(),
25911
+ "autofocus?": types.boolean(),
25912
+ "isInvalid?": types.boolean(),
25913
+ "class?": types.string(),
25914
+ "onSelectionChanged?": types.function(),
25915
+ "onSelectionConfirmed?": types.function(),
25916
+ "onSelectionReordered?": types.function(),
25917
+ "onSelectionRemoved?": types.function(),
25918
+ "onInputFocused?": types.function(),
25919
+ "colors?": types.ArrayOf(),
25920
+ "disabledRanges?": types.array(types.boolean()),
25921
+ "disabledRangeTitle?": types.string()
25922
25922
  }, {
25923
25923
  colors: [],
25924
25924
  disabledRanges: []
@@ -26087,18 +26087,18 @@ var ChartDataSeries = class extends Component {
26087
26087
  Section
26088
26088
  };
26089
26089
  props = (0, _odoo_owl.props)({
26090
- ranges: types$6.ArrayOf(),
26091
- "dataSetStyles?": types$6.DataSetStyle(),
26092
- "hasSingleRange?": types$6.boolean(),
26093
- onSelectionChanged: types$6.function([types$6.array(types$6.string())]),
26094
- "onSelectionReordered?": types$6.function([types$6.array(types$6.number())]),
26095
- "onSelectionRemoved?": types$6.function([types$6.number()]),
26096
- onSelectionConfirmed: types$6.function([]),
26097
- "maxNumberOfUsedRanges?": types$6.number(),
26098
- "title?": types$6.string(),
26099
- "datasetOrientation?": types$6.or([types$6.literal("rows"), types$6.literal("columns")]),
26100
- "canChangeDatasetOrientation?": types$6.boolean(),
26101
- "onFlipAxis?": types$6.function([types$6.string()])
26090
+ ranges: types.ArrayOf(),
26091
+ "dataSetStyles?": types.DataSetStyle(),
26092
+ "hasSingleRange?": types.boolean(),
26093
+ onSelectionChanged: types.function(),
26094
+ "onSelectionReordered?": types.function(),
26095
+ "onSelectionRemoved?": types.function(),
26096
+ onSelectionConfirmed: types.function(),
26097
+ "maxNumberOfUsedRanges?": types.number(),
26098
+ "title?": types.string(),
26099
+ "datasetOrientation?": types.or([types.literal("rows"), types.literal("columns")]),
26100
+ "canChangeDatasetOrientation?": types.boolean(),
26101
+ "onFlipAxis?": types.function()
26102
26102
  });
26103
26103
  get ranges() {
26104
26104
  return this.props.ranges.map((r) => r.dataRange);
@@ -26128,13 +26128,13 @@ var ChartLabelRange = class extends Component {
26128
26128
  Section
26129
26129
  };
26130
26130
  props = (0, _odoo_owl.props)({
26131
- "title?": types$6.string(),
26132
- range: types$6.string(),
26133
- "class?": types$6.string(),
26134
- isInvalid: types$6.boolean(),
26135
- onSelectionChanged: types$6.function([types$6.string()]),
26136
- onSelectionConfirmed: types$6.function([]),
26137
- "options?": types$6.ArrayOf()
26131
+ "title?": types.string(),
26132
+ range: types.string(),
26133
+ "class?": types.string(),
26134
+ isInvalid: types.boolean(),
26135
+ onSelectionChanged: types.function(),
26136
+ onSelectionConfirmed: types.function(),
26137
+ "options?": types.ArrayOf()
26138
26138
  }, {
26139
26139
  title: _t("Categories / Labels"),
26140
26140
  options: []
@@ -26153,14 +26153,13 @@ var ChartDataSourceComponent = class extends Component {
26153
26153
  ChartLabelRange
26154
26154
  };
26155
26155
  props = (0, _odoo_owl.props)({
26156
- chartId: types$6.UID(),
26157
- definition: types$6.ChartDefinitionWithDataSource(),
26158
- updateChart: types$6.function([]),
26159
- canUpdateChart: types$6.function([]),
26160
- "onErrorMessagesChanged?": types$6.function([types$6.array(types$6.string())]),
26161
- "dataSeriesTitle?": types$6.string(),
26162
- "labelRangeTitle?": types$6.string(),
26163
- "getLabelRangeOptions?": types$6.function([])
26156
+ chartId: types.UID(),
26157
+ definition: types.ChartDefinitionWithDataSource(),
26158
+ updateChart: types.function(),
26159
+ canUpdateChart: types.function(),
26160
+ "dataSeriesTitle?": types.string(),
26161
+ "labelRangeTitle?": types.string(),
26162
+ "getLabelRangeOptions?": types.function
26164
26163
  });
26165
26164
  get DataSourceComponent() {
26166
26165
  const dataSourceType = this.props.definition.dataSource.type;
@@ -26173,13 +26172,13 @@ var ChartDataSourceComponent = class extends Component {
26173
26172
  var ValidationMessages = class extends Component {
26174
26173
  static template = "o-spreadsheet-ValidationMessages";
26175
26174
  props = (0, _odoo_owl.props)({
26176
- messages: types$6.array(types$6.string()),
26177
- msgType: types$6.or([
26178
- types$6.literal("warning"),
26179
- types$6.literal("error"),
26180
- types$6.literal("info")
26175
+ messages: types.array(types.string()),
26176
+ msgType: types.or([
26177
+ types.literal("warning"),
26178
+ types.literal("error"),
26179
+ types.literal("info")
26181
26180
  ]),
26182
- "singleBox?": types$6.boolean()
26181
+ "singleBox?": types.boolean()
26183
26182
  });
26184
26183
  get divClasses() {
26185
26184
  if (this.props.msgType === "warning") return "o-validation-warning";
@@ -26199,7 +26198,7 @@ var ChartErrorSection = class extends Component {
26199
26198
  Section,
26200
26199
  ValidationMessages
26201
26200
  };
26202
- props = (0, _odoo_owl.props)({ messages: types$6.array(types$6.string()) });
26201
+ props = (0, _odoo_owl.props)({ messages: types.array(types.string()) });
26203
26202
  };
26204
26203
 
26205
26204
  //#endregion
@@ -26259,7 +26258,7 @@ var BarConfigPanel = class extends GenericChartConfigPanel {
26259
26258
  //#region src/components/side_panel/components/collapse/collapse.ts
26260
26259
  var Collapse = class extends Component {
26261
26260
  static template = "o-spreadsheet-Collapse";
26262
- props = (0, _odoo_owl.props)({ isCollapsed: types$6.boolean() });
26261
+ props = (0, _odoo_owl.props)({ isCollapsed: types.boolean() });
26263
26262
  contentRef = (0, _odoo_owl.signal)(null);
26264
26263
  setup() {
26265
26264
  (0, _odoo_owl.onMounted)(() => {
@@ -26293,9 +26292,9 @@ var SidePanelCollapsible = class extends Component {
26293
26292
  static template = "o-spreadsheet-SidePanelCollapsible";
26294
26293
  static components = { Collapse };
26295
26294
  props = (0, _odoo_owl.props)({
26296
- "title?": types$6.string(),
26297
- "isInitiallyCollapsed?": types$6.boolean(),
26298
- "class?": types$6.string()
26295
+ "title?": types.string(),
26296
+ "isInitiallyCollapsed?": types.boolean(),
26297
+ "class?": types.string()
26299
26298
  });
26300
26299
  state = (0, _odoo_owl.proxy)({ isCollapsed: !!this.props.isInitiallyCollapsed });
26301
26300
  toggle() {
@@ -26310,8 +26309,8 @@ var NumberInput = class extends GenericInput {
26310
26309
  static components = {};
26311
26310
  props = (0, _odoo_owl.props)({
26312
26311
  ...genericInputPropsDefinition,
26313
- "min?": types$6.number(),
26314
- "max?": types$6.number()
26312
+ "min?": types.number(),
26313
+ "max?": types.number()
26315
26314
  });
26316
26315
  debouncedOnChange = debounce(this.props.onChange.bind(this), 100, true);
26317
26316
  save() {
@@ -26334,9 +26333,9 @@ var DateInput = class extends NumberInput {
26334
26333
  var BadgeSelection = class extends Component {
26335
26334
  static template = "o-spreadsheet.BadgeSelection";
26336
26335
  props = (0, _odoo_owl.props)({
26337
- choices: types$6.ArrayOf(),
26338
- onChange: types$6.function([types$6.string()]),
26339
- selectedValue: types$6.string()
26336
+ choices: types.ArrayOf(),
26337
+ onChange: types.function(),
26338
+ selectedValue: types.string()
26340
26339
  });
26341
26340
  };
26342
26341
 
@@ -26350,13 +26349,13 @@ var ChartTitle = class extends Component {
26350
26349
  TextInput
26351
26350
  };
26352
26351
  props = (0, _odoo_owl.props)({
26353
- "title?": types$6.string(),
26354
- "placeholder?": types$6.string(),
26355
- updateTitle: types$6.function([types$6.string()]),
26356
- "name?": types$6.string(),
26357
- style: types$6.TitleDesign(),
26358
- "defaultStyle?": types$6.object({}),
26359
- updateStyle: types$6.function([types$6.object({})])
26352
+ "title?": types.string(),
26353
+ "placeholder?": types.string(),
26354
+ updateTitle: types.function(),
26355
+ "name?": types.string(),
26356
+ style: types.TitleDesign(),
26357
+ "defaultStyle?": types.object({}),
26358
+ updateStyle: types.function()
26360
26359
  }, {
26361
26360
  title: "",
26362
26361
  placeholder: ""
@@ -26379,10 +26378,10 @@ var AxisDesignEditor = class extends Component {
26379
26378
  DateInput
26380
26379
  };
26381
26380
  props = (0, _odoo_owl.props)({
26382
- chartId: types$6.UID(),
26383
- definition: types$6.ChartWithAxisDefinition(),
26384
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26385
- axesList: types$6.ArrayOf()
26381
+ chartId: types.UID(),
26382
+ definition: types.ChartWithAxisDefinition(),
26383
+ updateChart: types.function(),
26384
+ axesList: types.ArrayOf()
26386
26385
  });
26387
26386
  state = (0, _odoo_owl.proxy)({ currentAxis: "x" });
26388
26387
  defaultFontSize = 12;
@@ -26554,11 +26553,11 @@ var AxisDesignEditor = class extends Component {
26554
26553
  var RadioSelection = class extends Component {
26555
26554
  static template = "o-spreadsheet.RadioSelection";
26556
26555
  props = (0, _odoo_owl.props)({
26557
- choices: types$6.ArrayOf(),
26558
- onChange: types$6.function([types$6.any()]),
26559
- selectedValue: types$6.string(),
26560
- name: types$6.string(),
26561
- "direction?": types$6.or([types$6.literal("horizontal"), types$6.literal("vertical")])
26556
+ choices: types.ArrayOf(),
26557
+ onChange: types.function(),
26558
+ selectedValue: types.string(),
26559
+ name: types.string(),
26560
+ "direction?": types.or([types.literal("horizontal"), types.literal("vertical")])
26562
26561
  }, { direction: "horizontal" });
26563
26562
  };
26564
26563
 
@@ -26571,10 +26570,10 @@ var RoundColorPicker = class extends Component {
26571
26570
  ColorPicker
26572
26571
  };
26573
26572
  props = (0, _odoo_owl.props)({
26574
- "currentColor?": types$6.string(),
26575
- "title?": types$6.string(),
26576
- onColorPicked: types$6.function([types$6.string()]),
26577
- "disableNoColor?": types$6.boolean()
26573
+ "currentColor?": types.string(),
26574
+ "title?": types.string(),
26575
+ onColorPicked: types.function(),
26576
+ "disableNoColor?": types.boolean()
26578
26577
  });
26579
26578
  colorPickerButtonRef = (0, _odoo_owl.signal)(null);
26580
26579
  state;
@@ -26612,11 +26611,11 @@ var GeneralDesignEditor = class extends Component {
26612
26611
  RadioSelection
26613
26612
  };
26614
26613
  props = (0, _odoo_owl.props)({
26615
- chartId: types$6.UID(),
26616
- definition: types$6.ChartDefinition(),
26617
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26618
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26619
- "defaultChartTitleFontSize?": types$6.number()
26614
+ chartId: types.UID(),
26615
+ definition: types.ChartDefinition(),
26616
+ canUpdateChart: types.function(),
26617
+ updateChart: types.function(),
26618
+ "defaultChartTitleFontSize?": types.number()
26620
26619
  }, { defaultChartTitleFontSize: 16 });
26621
26620
  state;
26622
26621
  setup() {
@@ -26673,11 +26672,11 @@ var ChartLegend = class extends Component {
26673
26672
  Select
26674
26673
  };
26675
26674
  props = (0, _odoo_owl.props)({
26676
- chartId: types$6.string(),
26677
- definition: types$6.ChartDefinitionWithDataSource(),
26678
- canUpdateChart: types$6.function(),
26679
- updateChart: types$6.function(),
26680
- "isDisabled?": types$6.boolean()
26675
+ chartId: types.string(),
26676
+ definition: types.ChartDefinitionWithDataSource(),
26677
+ canUpdateChart: types.function(),
26678
+ updateChart: types.function(),
26679
+ "isDisabled?": types.boolean()
26681
26680
  }, { isDisabled: false });
26682
26681
  updateLegendPosition(value) {
26683
26682
  this.props.updateChart(this.props.chartId, { legendPosition: value });
@@ -26719,10 +26718,10 @@ var SeriesDesignEditor = class extends Component {
26719
26718
  Select
26720
26719
  };
26721
26720
  props = (0, _odoo_owl.props)({
26722
- chartId: types$6.UID(),
26723
- definition: types$6.ChartDefinitionWithDataSource(),
26724
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26725
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
26721
+ chartId: types.UID(),
26722
+ definition: types.ChartDefinitionWithDataSource(),
26723
+ updateChart: types.function(),
26724
+ canUpdateChart: types.function()
26726
26725
  });
26727
26726
  state = (0, _odoo_owl.proxy)({ dataSetId: this.getDataSeries()[0]?.dataSetId || "" });
26728
26727
  getRuntime() {
@@ -26784,10 +26783,10 @@ var SeriesWithAxisDesignEditor = class extends Component {
26784
26783
  Select
26785
26784
  };
26786
26785
  props = (0, _odoo_owl.props)({
26787
- chartId: types$6.UID(),
26788
- definition: types$6.ChartDefinitionWithDataSource(),
26789
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26790
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
26786
+ chartId: types.UID(),
26787
+ definition: types.ChartDefinitionWithDataSource(),
26788
+ updateChart: types.function(),
26789
+ canUpdateChart: types.function()
26791
26790
  });
26792
26791
  axisChoices = CHART_AXIS_CHOICES;
26793
26792
  updateDataSeriesAxis(dataSetId, axis) {
@@ -26924,11 +26923,11 @@ var ChartShowValues = class extends Component {
26924
26923
  static template = "o-spreadsheet-ChartShowValues";
26925
26924
  static components = { Checkbox };
26926
26925
  props = (0, _odoo_owl.props)({
26927
- chartId: types$6.UID(),
26928
- definition: types$6.ChartDefinitionWithDataSource(),
26929
- canUpdateChart: types$6.function([]),
26930
- updateChart: types$6.function([]),
26931
- "defaultValue?": types$6.boolean()
26926
+ chartId: types.UID(),
26927
+ definition: types.ChartDefinitionWithDataSource(),
26928
+ canUpdateChart: types.function(),
26929
+ updateChart: types.function(),
26930
+ "defaultValue?": types.boolean()
26932
26931
  });
26933
26932
  };
26934
26933
 
@@ -29562,15 +29561,15 @@ var ChartRangeDataSourceComponent = class extends Component {
29562
29561
  ChartLabelRange
29563
29562
  };
29564
29563
  props = (0, _odoo_owl.props)({
29565
- chartId: types$6.UID(),
29566
- definition: types$6.ChartDefinitionWithDataSource(),
29567
- dataSource: types$6.ChartRangeDataSource(),
29568
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
29569
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
29570
- "onErrorMessagesChanged?": types$6.function([types$6.array(types$6.string())]),
29571
- "dataSeriesTitle?": types$6.string(),
29572
- "labelRangeTitle?": types$6.string(),
29573
- "getLabelRangeOptions?": types$6.function([])
29564
+ chartId: types.UID(),
29565
+ definition: types.ChartDefinitionWithDataSource(),
29566
+ dataSource: types.ChartRangeDataSource(),
29567
+ updateChart: types.function(),
29568
+ canUpdateChart: types.function(),
29569
+ "onErrorMessagesChanged?": types.function(),
29570
+ "dataSeriesTitle?": types.string(),
29571
+ "labelRangeTitle?": types.string(),
29572
+ "getLabelRangeOptions?": types.function
29574
29573
  });
29575
29574
  state = (0, _odoo_owl.proxy)({
29576
29575
  datasetDispatchResult: void 0,
@@ -30422,8 +30421,8 @@ var ColorScalePicker = class extends Component {
30422
30421
  Popover
30423
30422
  };
30424
30423
  props = (0, _odoo_owl.props)({
30425
- definition: types$6.object({ "colorScale?": types$6.ChartColorScale() }),
30426
- onUpdateColorScale: types$6.function([types$6.ChartColorScale()])
30424
+ definition: types.object({ "colorScale?": types.ChartColorScale() }),
30425
+ onUpdateColorScale: types.function()
30427
30426
  });
30428
30427
  colorScales = COLORSCALES.map((colorScale) => ({
30429
30428
  value: colorScale,
@@ -30625,7 +30624,7 @@ var FunnelChartDesignPanel = class extends Component {
30625
30624
  };
30626
30625
  props = (0, _odoo_owl.props)({
30627
30626
  ...chartSidePanelPropsDefinition,
30628
- definition: types$6.FunnelChartDefinition()
30627
+ definition: types.FunnelChartDefinition()
30629
30628
  });
30630
30629
  getFunnelColorItems() {
30631
30630
  const labels = this.env.model.getters.getChartRuntime(this.props.chartId).chartJsConfig.data.labels || [];
@@ -30675,10 +30674,10 @@ var GaugeChartConfigPanel = class extends Component {
30675
30674
  var TextValueProvider = class extends Component {
30676
30675
  static template = "o-spreadsheet-TextValueProvider";
30677
30676
  props = (0, _odoo_owl.props)({
30678
- proposals: types$6.array(types$6.AutoCompleteProposal()),
30679
- "selectedIndex?": types$6.number(),
30680
- onValueSelected: types$6.function([types$6.AutoCompleteProposal()]),
30681
- onValueHovered: types$6.function([types$6.string()])
30677
+ proposals: types.array(types.AutoCompleteProposal()),
30678
+ "selectedIndex?": types.number(),
30679
+ onValueSelected: types.function(),
30680
+ onValueHovered: types.function()
30682
30681
  });
30683
30682
  autoCompleteListRef = (0, _odoo_owl.signal)(null);
30684
30683
  setup() {
@@ -30898,9 +30897,9 @@ var FunctionDescriptionProvider = class extends Component {
30898
30897
  static template = "o-spreadsheet-FunctionDescriptionProvider";
30899
30898
  static components = { Collapse };
30900
30899
  props = (0, _odoo_owl.props)({
30901
- functionDescription: types$6.FunctionDescription(),
30902
- argsToFocus: types$6.array(types$6.number()),
30903
- "repeatingArgGroupIndex?": types$6.number()
30900
+ functionDescription: types.FunctionDescription(),
30901
+ argsToFocus: types.array(types.number()),
30902
+ "repeatingArgGroupIndex?": types.number()
30904
30903
  });
30905
30904
  state = (0, _odoo_owl.proxy)({ isCollapsed: true });
30906
30905
  toggle() {
@@ -30967,8 +30966,8 @@ var SpeechBubble = class extends Component {
30967
30966
  static template = "o-spreadsheet-SpeechBubble";
30968
30967
  static components = {};
30969
30968
  props = (0, _odoo_owl.props)({
30970
- content: types$6.string(),
30971
- anchorRect: types$6.Rect()
30969
+ content: types.string(),
30970
+ anchorRect: types.Rect()
30972
30971
  });
30973
30972
  spreadsheetRect = useSpreadsheetRect();
30974
30973
  bubbleRef = (0, _odoo_owl.signal)(null);
@@ -31002,18 +31001,18 @@ var Composer = class extends Component {
31002
31001
  SpeechBubble
31003
31002
  };
31004
31003
  props = (0, _odoo_owl.props)({
31005
- focus: types$6.ComposerFocusType(),
31006
- "inputStyle?": types$6.string(),
31007
- "rect?": types$6.Rect(),
31008
- "delimitation?": types$6.DOMDimension(),
31009
- "onComposerCellFocused?": types$6.function([types$6.string()]),
31010
- onComposerContentFocused: types$6.function([types$6.ComposerSelection()]),
31011
- "isDefaultFocus?": types$6.boolean(),
31012
- "onInputContextMenu?": types$6.function([types$6.instanceOf(MouseEvent)]),
31013
- composerStore: types$6.Store(),
31014
- "placeholder?": types$6.string(),
31015
- "inputMode?": types$6.string(),
31016
- "showAssistant?": types$6.boolean()
31004
+ focus: types.ComposerFocusType(),
31005
+ "inputStyle?": types.string(),
31006
+ "rect?": types.Rect(),
31007
+ "delimitation?": types.DOMDimension(),
31008
+ "onComposerCellFocused?": types.function(),
31009
+ onComposerContentFocused: types.function(),
31010
+ "isDefaultFocus?": types.boolean(),
31011
+ "onInputContextMenu?": types.function(),
31012
+ composerStore: types.Store(),
31013
+ "placeholder?": types.string(),
31014
+ "inputMode?": types.string(),
31015
+ "showAssistant?": types.boolean()
31017
31016
  }, {
31018
31017
  inputStyle: "",
31019
31018
  isDefaultFocus: false,
@@ -32586,17 +32585,17 @@ var StandaloneComposer = class extends Component {
32586
32585
  static template = "o-spreadsheet-StandaloneComposer";
32587
32586
  static components = { Composer };
32588
32587
  props = (0, _odoo_owl.props)({
32589
- onConfirm: types$6.function([types$6.string()]),
32590
- "composerContent?": types$6.string(),
32591
- defaultRangeSheetId: types$6.UID(),
32592
- "defaultStatic?": types$6.boolean(),
32593
- "contextualAutocomplete?": types$6.AutoCompleteProviderDefinition(),
32594
- "placeholder?": types$6.string(),
32595
- "title?": types$6.string(),
32596
- "class?": types$6.string(),
32597
- "invalid?": types$6.boolean(),
32598
- "autofocus?": types$6.boolean(),
32599
- "getContextualColoredSymbolToken?": types$6.function([types$6.Token()], types$6.Color())
32588
+ onConfirm: types.function(),
32589
+ "composerContent?": types.string(),
32590
+ defaultRangeSheetId: types.UID(),
32591
+ "defaultStatic?": types.boolean(),
32592
+ "contextualAutocomplete?": types.AutoCompleteProviderDefinition(),
32593
+ "placeholder?": types.string(),
32594
+ "title?": types.string(),
32595
+ "class?": types.string(),
32596
+ "invalid?": types.boolean(),
32597
+ "autofocus?": types.boolean(),
32598
+ "getContextualColoredSymbolToken?": types.function()
32600
32599
  }, {
32601
32600
  composerContent: "",
32602
32601
  defaultStatic: false
@@ -32796,9 +32795,9 @@ var GeoChartRegionSelectSection = class extends Component {
32796
32795
  Select
32797
32796
  };
32798
32797
  props = (0, _odoo_owl.props)({
32799
- chartId: types$6.UID(),
32800
- definition: types$6.GeoChartDefinition(),
32801
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
32798
+ chartId: types.UID(),
32799
+ definition: types.GeoChartDefinition(),
32800
+ updateChart: types.function()
32802
32801
  });
32803
32802
  updateSelectedRegion(value) {
32804
32803
  this.props.updateChart(this.props.chartId, { region: value });
@@ -32950,8 +32949,8 @@ var PieHoleSize = class extends Component {
32950
32949
  NumberInput
32951
32950
  };
32952
32951
  props = (0, _odoo_owl.props)({
32953
- onValueChange: types$6.function([types$6.number()]),
32954
- value: types$6.number()
32952
+ onValueChange: types.function(),
32953
+ value: types.number()
32955
32954
  });
32956
32955
  onChange(value) {
32957
32956
  if (!isNaN(Number(value))) this.props.onValueChange(clip(Number(value), 0, 95));
@@ -33273,9 +33272,9 @@ var TreeMapCategoryColors = class extends Component {
33273
33272
  RoundColorPicker
33274
33273
  };
33275
33274
  props = (0, _odoo_owl.props)({
33276
- chartId: types$6.UID(),
33277
- definition: types$6.TreeMapChartDefinition(),
33278
- onColorChanged: types$6.function([types$6.TreeMapCategoryColorOptions()], types$6.DispatchResult())
33275
+ chartId: types.UID(),
33276
+ definition: types.TreeMapChartDefinition(),
33277
+ onColorChanged: types.function()
33279
33278
  });
33280
33279
  get coloringOptions() {
33281
33280
  const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
@@ -33305,9 +33304,9 @@ var TreeMapColorScale = class extends Component {
33305
33304
  static template = "o-spreadsheet-TreeMapColorScale";
33306
33305
  static components = { RoundColorPicker };
33307
33306
  props = (0, _odoo_owl.props)({
33308
- chartId: types$6.UID(),
33309
- definition: types$6.TreeMapChartDefinition(),
33310
- onColorChanged: types$6.function([types$6.TreeMapColorScaleOptions()], types$6.DispatchResult())
33307
+ chartId: types.UID(),
33308
+ definition: types.TreeMapChartDefinition(),
33309
+ onColorChanged: types.function()
33311
33310
  });
33312
33311
  get coloringOptions() {
33313
33312
  const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
@@ -33522,8 +33521,8 @@ var ChartTypePicker = class extends Component {
33522
33521
  Popover
33523
33522
  };
33524
33523
  props = (0, _odoo_owl.props)({
33525
- chartId: types$6.UID(),
33526
- chartPanelStore: types$6.Store()
33524
+ chartId: types.UID(),
33525
+ chartPanelStore: types.Store()
33527
33526
  });
33528
33527
  categories = chartCategories;
33529
33528
  chartTypeByCategories = {};
@@ -33700,8 +33699,8 @@ var ChartPanel = class extends Component {
33700
33699
  ChartTypePicker
33701
33700
  };
33702
33701
  props = (0, _odoo_owl.props)({
33703
- onCloseSidePanel: types$6.function([]),
33704
- chartId: types$6.UID()
33702
+ onCloseSidePanel: types.function(),
33703
+ chartId: types.UID()
33705
33704
  });
33706
33705
  store;
33707
33706
  get chartId() {
@@ -34099,7 +34098,7 @@ var ColumnStatsPanel = class extends Component {
34099
34098
  BadgeSelection,
34100
34099
  Section
34101
34100
  };
34102
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
34101
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
34103
34102
  state = (0, _odoo_owl.proxy)({
34104
34103
  currentChart: "count",
34105
34104
  currentFrequencyOrder: "descending",
@@ -34342,7 +34341,7 @@ var CellIsRuleEditor = class extends Component {
34342
34341
  ColorPickerWidget,
34343
34342
  Select
34344
34343
  };
34345
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
34344
+ props = (0, _odoo_owl.props)({ store: types.Store() });
34346
34345
  getTextDecoration = getTextDecoration;
34347
34346
  get rule() {
34348
34347
  return this.props.store.state.rules.cellIs;
@@ -34353,10 +34352,10 @@ var CellIsRuleEditor = class extends Component {
34353
34352
  //#region src/components/side_panel/criterion_form/criterion_form.ts
34354
34353
  var CriterionForm = class extends Component {
34355
34354
  props = (0, _odoo_owl.props)({
34356
- criterion: types$6.object({}),
34357
- onCriterionChanged: types$6.function([types$6.object({})]),
34358
- "disableFormulas?": types$6.boolean(),
34359
- "autofocus?": types$6.boolean()
34355
+ criterion: types.object({}),
34356
+ onCriterionChanged: types.function(),
34357
+ "disableFormulas?": types.boolean(),
34358
+ "autofocus?": types.boolean()
34360
34359
  });
34361
34360
  setup() {
34362
34361
  const composerFocusStore = useStore(ComposerFocusStore);
@@ -34940,14 +34939,14 @@ var CriterionInput = class extends Component {
34940
34939
  static template = "o-spreadsheet-CriterionInput";
34941
34940
  static components = { StandaloneComposer };
34942
34941
  props = (0, _odoo_owl.props)({
34943
- "value?": types$6.string(),
34944
- criterionType: types$6.DataValidationCriterionType(),
34945
- onValueChanged: types$6.function([types$6.string()]),
34946
- "onKeyDown?": types$6.function([types$6.instanceOf(KeyboardEvent)]),
34947
- "focused?": types$6.boolean(),
34948
- "onBlur?": types$6.function([]),
34949
- "onFocus?": types$6.function([]),
34950
- "disableFormulas?": types$6.boolean()
34942
+ "value?": types.string(),
34943
+ criterionType: types.DataValidationCriterionType(),
34944
+ onValueChanged: types.function(),
34945
+ "onKeyDown?": types.function(),
34946
+ "focused?": types.boolean(),
34947
+ "onBlur?": types.function(),
34948
+ "onFocus?": types.function(),
34949
+ "disableFormulas?": types.boolean()
34951
34950
  }, {
34952
34951
  value: "",
34953
34952
  onKeyDown: () => {},
@@ -35781,11 +35780,11 @@ var ColorScaleRuleEditorThreshold = class extends Component {
35781
35780
  Select
35782
35781
  };
35783
35782
  props = (0, _odoo_owl.props)({
35784
- store: types$6.Store(),
35785
- thresholdType: types$6.or([
35786
- types$6.literal("minimum"),
35787
- types$6.literal("midpoint"),
35788
- types$6.literal("maximum")
35783
+ store: types.Store(),
35784
+ thresholdType: types.or([
35785
+ types.literal("minimum"),
35786
+ types.literal("midpoint"),
35787
+ types.literal("maximum")
35789
35788
  ])
35790
35789
  });
35791
35790
  get rule() {
@@ -35858,7 +35857,7 @@ var ColorScaleRuleEditorThreshold = class extends Component {
35858
35857
  var ColorScaleRuleEditor = class extends Component {
35859
35858
  static template = "o-spreadsheet-ColorScaleRuleEditor";
35860
35859
  static components = { ColorScaleRuleEditorThreshold };
35861
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35860
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35862
35861
  };
35863
35862
 
35864
35863
  //#endregion
@@ -35869,7 +35868,7 @@ var DataBarRuleEditor = class extends Component {
35869
35868
  SelectionInput,
35870
35869
  RoundColorPicker
35871
35870
  };
35872
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35871
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35873
35872
  get rule() {
35874
35873
  return this.props.store.state.rules.dataBar;
35875
35874
  }
@@ -35880,7 +35879,7 @@ var DataBarRuleEditor = class extends Component {
35880
35879
  //#region src/components/icon_picker/icon_picker.ts
35881
35880
  var IconPicker = class extends Component {
35882
35881
  static template = "o-spreadsheet-IconPicker";
35883
- props = (0, _odoo_owl.props)({ onIconPicked: types$6.function([types$6.string()]) });
35882
+ props = (0, _odoo_owl.props)({ onIconPicked: types.function() });
35884
35883
  onIconClick(icon) {
35885
35884
  if (icon) this.props.onIconPicked(icon);
35886
35885
  }
@@ -35901,7 +35900,7 @@ var IconSetRuleEditor = class extends Component {
35901
35900
  StandaloneComposer,
35902
35901
  Select
35903
35902
  };
35904
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35903
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35905
35904
  get rule() {
35906
35905
  return this.props.store.state.rules.iconSet;
35907
35906
  }
@@ -35981,9 +35980,9 @@ var ConditionalFormattingEditor = class extends Component {
35981
35980
  DataBarRuleEditor
35982
35981
  };
35983
35982
  props = (0, _odoo_owl.props)({
35984
- cf: types$6.ConditionalFormat(),
35985
- isNewCf: types$6.boolean(),
35986
- onCloseSidePanel: types$6.function([])
35983
+ cf: types.ConditionalFormat(),
35984
+ isNewCf: types.boolean(),
35985
+ onCloseSidePanel: types.function()
35987
35986
  });
35988
35987
  activeSheetId;
35989
35988
  store;
@@ -36041,9 +36040,9 @@ var ConditionalFormattingEditor = class extends Component {
36041
36040
  var ConditionalFormatPreview = class extends Component {
36042
36041
  static template = "o-spreadsheet-ConditionalFormatPreview";
36043
36042
  props = (0, _odoo_owl.props)({
36044
- conditionalFormat: types$6.ConditionalFormat(),
36045
- onMouseDown: types$6.function([types$6.instanceOf(MouseEvent)]),
36046
- class: types$6.string()
36043
+ conditionalFormat: types.ConditionalFormat(),
36044
+ onMouseDown: types.function(),
36045
+ class: types.string()
36047
36046
  });
36048
36047
  icons = ICONS;
36049
36048
  cfPreviewRef = (0, _odoo_owl.signal)(null);
@@ -36101,7 +36100,7 @@ var ConditionalFormatPreview = class extends Component {
36101
36100
  var ConditionalFormatPreviewList = class extends Component {
36102
36101
  static template = "o-spreadsheet-ConditionalFormatPreviewList";
36103
36102
  static components = { ConditionalFormatPreview };
36104
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36103
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36105
36104
  dragAndDrop = useDragAndDropListItems();
36106
36105
  cfListRef = (0, _odoo_owl.signal)(null);
36107
36106
  get conditionalFormats() {
@@ -36170,7 +36169,7 @@ var ConditionalFormatPreviewList = class extends Component {
36170
36169
  //#region src/components/side_panel/data_validation/dv_preview/dv_preview.ts
36171
36170
  var DataValidationPreview = class extends Component {
36172
36171
  static template = "o-spreadsheet-DataValidationPreview";
36173
- props = (0, _odoo_owl.props)({ rule: types$6.DataValidationRule() });
36172
+ props = (0, _odoo_owl.props)({ rule: types.DataValidationRule() });
36174
36173
  dvPreviewRef = (0, _odoo_owl.signal)(null);
36175
36174
  setup() {
36176
36175
  useHighlightsOnHover(this.dvPreviewRef, this);
@@ -36206,7 +36205,7 @@ var DataValidationPreview = class extends Component {
36206
36205
  var DataValidationPanel = class extends Component {
36207
36206
  static template = "o-spreadsheet-DataValidationPanel";
36208
36207
  static components = { DataValidationPreview };
36209
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36208
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36210
36209
  addDataValidationRule() {
36211
36210
  this.env.replaceSidePanel("DataValidationEditor", "DataValidation", { ruleId: UuidGenerator.smallUuid() });
36212
36211
  }
@@ -36261,9 +36260,9 @@ var DataValidationEditor = class extends Component {
36261
36260
  ValidationMessages
36262
36261
  };
36263
36262
  props = (0, _odoo_owl.props)({
36264
- ruleId: types$6.UID(),
36265
- "onCancel?": types$6.function([]),
36266
- onCloseSidePanel: types$6.function([])
36263
+ ruleId: types.UID(),
36264
+ "onCancel?": types.function(),
36265
+ onCloseSidePanel: types.function()
36267
36266
  });
36268
36267
  state = (0, _odoo_owl.proxy)({
36269
36268
  rule: this.defaultDataValidationRule,
@@ -36711,7 +36710,7 @@ var FindAndReplacePanel = class extends Component {
36711
36710
  ValidationMessages,
36712
36711
  Select
36713
36712
  };
36714
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36713
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36715
36714
  searchInputRef = (0, _odoo_owl.signal)(null);
36716
36715
  store;
36717
36716
  state;
@@ -37545,11 +37544,11 @@ var MoreFormatsPanel = class extends Component {
37545
37544
  Select
37546
37545
  };
37547
37546
  props = (0, _odoo_owl.props)({
37548
- onCloseSidePanel: types$6.function([]),
37549
- "category?": types$6.or([
37550
- types$6.literal("number"),
37551
- types$6.literal("date"),
37552
- types$6.literal("currency")
37547
+ onCloseSidePanel: types.function(),
37548
+ "category?": types.or([
37549
+ types.literal("number"),
37550
+ types.literal("date"),
37551
+ types.literal("currency")
37553
37552
  ])
37554
37553
  });
37555
37554
  store;
@@ -37611,7 +37610,7 @@ var NamedRangePreview = class extends Component {
37611
37610
  SelectionInput,
37612
37611
  TextInput
37613
37612
  };
37614
- props = (0, _odoo_owl.props)({ namedRange: types$6.NamedRange() });
37613
+ props = (0, _odoo_owl.props)({ namedRange: types.NamedRange() });
37615
37614
  state = (0, _odoo_owl.proxy)({});
37616
37615
  namedRangePreviewRef = (0, _odoo_owl.signal)(null);
37617
37616
  setup() {
@@ -37668,7 +37667,7 @@ var NamedRangesPanel = class extends Component {
37668
37667
  SelectionInput,
37669
37668
  TextInput
37670
37669
  };
37671
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
37670
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
37672
37671
  get namedRanges() {
37673
37672
  return this.env.model.getters.getNamedRanges();
37674
37673
  }
@@ -37689,7 +37688,7 @@ const HIGHLIGHT_COLOR = "#e28f08";
37689
37688
  var PerfProfilePanel = class extends Component {
37690
37689
  static template = "o-spreadsheet-PerfProfilePanel";
37691
37690
  static components = { Section };
37692
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
37691
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
37693
37692
  state = (0, _odoo_owl.proxy)({
37694
37693
  selectedIndex: void 0,
37695
37694
  lastProfiledTime: 0
@@ -37906,9 +37905,9 @@ var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
37906
37905
  var PivotMeasureDisplayPanel = class extends Component {
37907
37906
  static template = "o-spreadsheet-PivotMeasureDisplayPanel";
37908
37907
  props = (0, _odoo_owl.props)({
37909
- onCloseSidePanel: types$6.function([]),
37910
- pivotId: types$6.UID(),
37911
- measure: types$6.PivotCoreMeasure()
37908
+ onCloseSidePanel: types.function(),
37909
+ pivotId: types.UID(),
37910
+ measure: types.PivotCoreMeasure()
37912
37911
  });
37913
37912
  static components = {
37914
37913
  Section,
@@ -37972,11 +37971,11 @@ function getVisiblePivotCellPositions(getters, pivotId) {
37972
37971
  var PivotDeferUpdate = class extends Component {
37973
37972
  static template = "o-spreadsheet-PivotDeferUpdate";
37974
37973
  props = (0, _odoo_owl.props)({
37975
- deferUpdate: types$6.boolean(),
37976
- isDirty: types$6.boolean(),
37977
- toggleDeferUpdate: types$6.function([types$6.boolean()]),
37978
- discard: types$6.function([]),
37979
- apply: types$6.function([])
37974
+ deferUpdate: types.boolean(),
37975
+ isDirty: types.boolean(),
37976
+ toggleDeferUpdate: types.function(),
37977
+ discard: types.function(),
37978
+ apply: types.function()
37980
37979
  });
37981
37980
  static components = {
37982
37981
  Section,
@@ -38201,9 +38200,9 @@ var FilterMenuCriterion = class extends Component {
38201
38200
  static template = "o-spreadsheet-FilterMenuCriterion";
38202
38201
  static components = { Select };
38203
38202
  props = (0, _odoo_owl.props)({
38204
- criterion: types$6.CriterionFilter(),
38205
- criterionOperators: types$6.array(types$6.GenericCriterionType()),
38206
- onCriterionChanged: types$6.function([types$6.CriterionFilter()])
38203
+ criterion: types.CriterionFilter(),
38204
+ criterionOperators: types.array(types.GenericCriterionType()),
38205
+ onCriterionChanged: types.function()
38207
38206
  });
38208
38207
  state;
38209
38208
  setup() {
@@ -38238,12 +38237,12 @@ var FilterMenuValueItem = class extends Component {
38238
38237
  static template = "o-spreadsheet-FilterMenuValueItem";
38239
38238
  static components = { Checkbox };
38240
38239
  props = (0, _odoo_owl.props)({
38241
- value: _odoo_owl.types.string(),
38242
- isChecked: _odoo_owl.types.boolean(),
38243
- isSelected: _odoo_owl.types.boolean(),
38244
- onMouseMove: _odoo_owl.types.function([]),
38245
- onClick: _odoo_owl.types.function([]),
38246
- "scrolledTo?": _odoo_owl.types.or([_odoo_owl.types.literal("top"), _odoo_owl.types.literal("bottom")])
38240
+ value: types.string(),
38241
+ isChecked: types.boolean(),
38242
+ isSelected: types.boolean(),
38243
+ onMouseMove: types.function(),
38244
+ onClick: types.function(),
38245
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38247
38246
  });
38248
38247
  itemRef = (0, _odoo_owl.signal)(null);
38249
38248
  setup() {
@@ -38264,12 +38263,12 @@ var FilterMenuValueList = class extends Component {
38264
38263
  static template = "o-spreadsheet-FilterMenuValueList";
38265
38264
  static components = { FilterMenuValueItem };
38266
38265
  props = (0, _odoo_owl.props)({
38267
- values: types$6.array(types$6.object({
38268
- checked: types$6.boolean(),
38269
- string: types$6.string(),
38270
- "scrolledTo?": types$6.or([types$6.literal("top"), types$6.literal("bottom")])
38266
+ values: types.array(types.object({
38267
+ checked: types.boolean(),
38268
+ string: types.string(),
38269
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38271
38270
  })),
38272
- onUpdateHiddenValues: types$6.function([types$6.array(types$6.string())])
38271
+ onUpdateHiddenValues: types.function()
38273
38272
  });
38274
38273
  state = (0, _odoo_owl.proxy)({
38275
38274
  displayedValues: [],
@@ -38379,16 +38378,16 @@ var PivotFilterMenu = class extends Component {
38379
38378
  criterionCategory = "char";
38380
38379
  updatedCriterionValue;
38381
38380
  props = (0, _odoo_owl.props)({
38382
- pivotId: types$6.UID(),
38383
- definition: types$6.instanceOf(SpreadsheetPivotRuntimeDefinition),
38384
- filter: types$6.PivotFilter(),
38385
- values: types$6.array(types$6.object({
38386
- checked: types$6.boolean(),
38387
- string: types$6.string(),
38388
- "scrolledTo?": types$6.or([types$6.literal("top"), types$6.literal("bottom")])
38381
+ pivotId: types.UID(),
38382
+ definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
38383
+ filter: types.PivotFilter(),
38384
+ values: types.array(types.object({
38385
+ checked: types.boolean(),
38386
+ string: types.string(),
38387
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38389
38388
  })),
38390
- "onClosed?": types$6.function([]),
38391
- onConfirmed: types$6.function([types$6.DataFilterValue()])
38389
+ "onClosed?": types.function(),
38390
+ onConfirmed: types.function()
38392
38391
  });
38393
38392
  setup() {
38394
38393
  (0, _odoo_owl.onWillUpdateProps)((nextProps) => {
@@ -38442,26 +38441,18 @@ var PivotFilterMenu = class extends Component {
38442
38441
  var PivotDimension = class extends Component {
38443
38442
  static template = "o-spreadsheet-PivotDimension";
38444
38443
  props = (0, _odoo_owl.props)({
38445
- dimension: types$6.or([
38446
- types$6.PivotDimension(),
38447
- types$6.PivotMeasure(),
38448
- types$6.PivotFilter()
38444
+ dimension: types.or([
38445
+ types.PivotDimension(),
38446
+ types.PivotMeasure(),
38447
+ types.PivotFilter()
38449
38448
  ]),
38450
- "onRemoved?": types$6.function([types$6.or([
38451
- types$6.PivotDimension(),
38452
- types$6.PivotMeasure(),
38453
- types$6.PivotFilter()
38454
- ])]),
38455
- "onNameUpdated?": types$6.function([types$6.or([
38456
- types$6.PivotDimension(),
38457
- types$6.PivotMeasure(),
38458
- types$6.PivotFilter()
38459
- ]), types$6.string()]),
38460
- "type?": types$6.or([
38461
- types$6.literal("row"),
38462
- types$6.literal("col"),
38463
- types$6.literal("measure"),
38464
- types$6.literal("filter")
38449
+ "onRemoved?": types.function(),
38450
+ "onNameUpdated?": types.function(),
38451
+ "type?": types.or([
38452
+ types.literal("row"),
38453
+ types.literal("col"),
38454
+ types.literal("measure"),
38455
+ types.literal("filter")
38465
38456
  ])
38466
38457
  });
38467
38458
  static components = {
@@ -38487,10 +38478,10 @@ var PivotFilterEditor = class extends Component {
38487
38478
  PivotFilterMenu
38488
38479
  };
38489
38480
  props = (0, _odoo_owl.props)({
38490
- pivotId: types$6.UID(),
38491
- definition: types$6.instanceOf(SpreadsheetPivotRuntimeDefinition),
38492
- filter: types$6.PivotFilter(),
38493
- onFiltersUpdated: types$6.function([types$6.SpreadsheetPivotCoreDefinition()])
38481
+ pivotId: types.UID(),
38482
+ definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
38483
+ filter: types.PivotFilter(),
38484
+ onFiltersUpdated: types.function()
38494
38485
  });
38495
38486
  state;
38496
38487
  buttonFilter = (0, _odoo_owl.signal)(null);
@@ -38619,8 +38610,8 @@ var AddDimensionButton = class extends Component {
38619
38610
  TextValueProvider
38620
38611
  };
38621
38612
  props = (0, _odoo_owl.props)({
38622
- onFieldPicked: types$6.function([types$6.string()]),
38623
- fields: types$6.array()
38613
+ onFieldPicked: types.function(),
38614
+ fields: types.array()
38624
38615
  });
38625
38616
  buttonRef = (0, _odoo_owl.signal)(null);
38626
38617
  popover = (0, _odoo_owl.proxy)({ isOpen: false });
@@ -38714,9 +38705,9 @@ var AddDimensionButton = class extends Component {
38714
38705
  var PivotCustomGroupsCollapsible = class extends Component {
38715
38706
  static template = "o-spreadsheet-PivotCustomGroupsCollapsible";
38716
38707
  props = (0, _odoo_owl.props)({
38717
- pivotId: types$6.UID(),
38718
- customField: types$6.PivotCustomGroupedField(),
38719
- onCustomFieldUpdated: types$6.function([types$6.object({})])
38708
+ pivotId: types.UID(),
38709
+ customField: types.PivotCustomGroupedField(),
38710
+ onCustomFieldUpdated: types.function()
38720
38711
  });
38721
38712
  static components = {
38722
38713
  SidePanelCollapsible,
@@ -38778,10 +38769,10 @@ var PivotCustomGroupsCollapsible = class extends Component {
38778
38769
  var PivotDimensionGranularity = class extends Component {
38779
38770
  static template = "o-spreadsheet-PivotDimensionGranularity";
38780
38771
  props = (0, _odoo_owl.props)({
38781
- dimension: types$6.PivotDimension(),
38782
- onUpdated: types$6.function([types$6.PivotDimension(), types$6.instanceOf(InputEvent)]),
38783
- availableGranularities: types$6.SetOf(),
38784
- allGranularities: types$6.array()
38772
+ dimension: types.PivotDimension(),
38773
+ onUpdated: types.function(),
38774
+ availableGranularities: types.SetOf(),
38775
+ allGranularities: types.array()
38785
38776
  });
38786
38777
  static components = { Select };
38787
38778
  periods = ALL_PERIODS;
@@ -38799,9 +38790,9 @@ var PivotDimensionGranularity = class extends Component {
38799
38790
  var PivotDimensionOrder = class extends Component {
38800
38791
  static template = "o-spreadsheet-PivotDimensionOrder";
38801
38792
  props = (0, _odoo_owl.props)({
38802
- dimension: types$6.PivotDimension(),
38803
- onUpdated: types$6.function([types$6.PivotDimension(), types$6.instanceOf(InputEvent)]),
38804
- "isMeasureSorted?": types$6.boolean()
38793
+ dimension: types.PivotDimension(),
38794
+ onUpdated: types.function(),
38795
+ "isMeasureSorted?": types.boolean()
38805
38796
  });
38806
38797
  static components = { Select };
38807
38798
  get orderSelectOptions() {
@@ -38881,13 +38872,13 @@ var PivotMeasureEditor = class extends Component {
38881
38872
  Select
38882
38873
  };
38883
38874
  props = (0, _odoo_owl.props)({
38884
- pivotId: types$6.string(),
38885
- definition: types$6.PivotRuntimeDefinition(),
38886
- measure: types$6.PivotMeasure(),
38887
- onMeasureUpdated: types$6.function([types$6.PivotMeasure()]),
38888
- onRemoved: types$6.function([]),
38889
- generateMeasureId: types$6.function([types$6.string(), types$6.string()], types$6.string()),
38890
- aggregators: types$6.object({})
38875
+ pivotId: types.string(),
38876
+ definition: types.PivotRuntimeDefinition(),
38877
+ measure: types.PivotMeasure(),
38878
+ onMeasureUpdated: types.function(),
38879
+ onRemoved: types.function(),
38880
+ generateMeasureId: types.function(),
38881
+ aggregators: types.object({})
38891
38882
  });
38892
38883
  getMeasureAutocomplete() {
38893
38884
  return createMeasureAutoComplete(this.props.definition, this.props.measure);
@@ -38969,8 +38960,8 @@ var PivotSortSection = class extends Component {
38969
38960
  static template = "o-spreadsheet-PivotSortSection";
38970
38961
  static components = { Section };
38971
38962
  props = (0, _odoo_owl.props)({
38972
- definition: types$6.PivotRuntimeDefinition(),
38973
- pivotId: types$6.UID()
38963
+ definition: types.PivotRuntimeDefinition(),
38964
+ pivotId: types.UID()
38974
38965
  });
38975
38966
  get hasValidSort() {
38976
38967
  const pivot = this.env.model.getters.getPivot(this.props.pivotId);
@@ -39024,16 +39015,16 @@ var PivotLayoutConfigurator = class extends Component {
39024
39015
  SidePanelCollapsible
39025
39016
  };
39026
39017
  props = (0, _odoo_owl.props)({
39027
- definition: types$6.instanceOf(PivotRuntimeDefinition),
39028
- onDimensionsUpdated: types$6.function([types$6.PivotCoreDefinition()]),
39029
- onFiltersUpdated: types$6.function([types$6.PivotCoreDefinition()]),
39030
- unusedGroupableFields: types$6.array(types$6.PivotField()),
39031
- measureFields: types$6.array(types$6.PivotField()),
39032
- unusedGranularities: types$6.RecordOf(),
39033
- dateGranularities: types$6.array(types$6.string()),
39034
- datetimeGranularities: types$6.array(types$6.string()),
39035
- "getScrollableContainerEl?": types$6.function([], types$6.instanceOf(HTMLElement)),
39036
- pivotId: types$6.UID()
39018
+ definition: types.instanceOf(PivotRuntimeDefinition),
39019
+ onDimensionsUpdated: types.function(),
39020
+ onFiltersUpdated: types.function(),
39021
+ unusedGroupableFields: types.array(types.PivotField()),
39022
+ measureFields: types.array(types.PivotField()),
39023
+ unusedGranularities: types.RecordOf(),
39024
+ dateGranularities: types.array(types.string()),
39025
+ datetimeGranularities: types.array(types.string()),
39026
+ "getScrollableContainerEl?": types.function(),
39027
+ pivotId: types.UID()
39037
39028
  });
39038
39029
  dimensionsRef = (0, _odoo_owl.signal)(null);
39039
39030
  dragAndDrop = useDragAndDropListItems();
@@ -39254,8 +39245,8 @@ var PivotTitleSection = class extends Component {
39254
39245
  TextInput
39255
39246
  };
39256
39247
  props = (0, _odoo_owl.props)({
39257
- pivotId: types$6.UID(),
39258
- flipAxis: types$6.function([])
39248
+ pivotId: types.UID(),
39249
+ flipAxis: types.function()
39259
39250
  });
39260
39251
  get cogWheelMenuItems() {
39261
39252
  return [
@@ -40884,8 +40875,8 @@ var PivotSpreadsheetSidePanel = class extends Component {
40884
40875
  PivotFilterEditor
40885
40876
  };
40886
40877
  props = (0, _odoo_owl.props)({
40887
- pivotId: types$6.UID(),
40888
- onCloseSidePanel: types$6.function([])
40878
+ pivotId: types.UID(),
40879
+ onCloseSidePanel: types.function()
40889
40880
  });
40890
40881
  store;
40891
40882
  state;
@@ -42122,12 +42113,12 @@ var TableStylePreview = class extends Component {
42122
42113
  static template = "o-spreadsheet-TableStylePreview";
42123
42114
  static components = { MenuPopover };
42124
42115
  props = (0, _odoo_owl.props)({
42125
- tableConfig: types$6.TableConfig(),
42126
- tableStyle: types$6.TableStyle(),
42127
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")]),
42128
- "styleId?": types$6.string(),
42129
- "selected?": types$6.boolean(),
42130
- "onClick?": types$6.function([])
42116
+ tableConfig: types.TableConfig(),
42117
+ tableStyle: types.TableStyle(),
42118
+ type: types.or([types.literal("table"), types.literal("pivot")]),
42119
+ "styleId?": types.string(),
42120
+ "selected?": types.boolean(),
42121
+ "onClick?": types.function()
42131
42122
  });
42132
42123
  canvasRef = (0, _odoo_owl.signal)(null);
42133
42124
  menu = (0, _odoo_owl.proxy)({
@@ -42215,13 +42206,13 @@ var TableStylesPopover = class extends Component {
42215
42206
  TableStylePreview
42216
42207
  };
42217
42208
  props = (0, _odoo_owl.props)({
42218
- tableConfig: types$6.object({}),
42219
- "popoverProps?": types$6.object({}),
42220
- closePopover: types$6.function([]),
42221
- onStylePicked: types$6.function([types$6.string()]),
42222
- "selectedStyleId?": types$6.string(),
42223
- tableStyles: types$6.RecordOf(),
42224
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")])
42209
+ tableConfig: types.object({}),
42210
+ "popoverProps?": types.object({}),
42211
+ closePopover: types.function(),
42212
+ onStylePicked: types.function(),
42213
+ "selectedStyleId?": types.string(),
42214
+ tableStyles: types.RecordOf(),
42215
+ type: types.or([types.literal("table"), types.literal("pivot")])
42225
42216
  });
42226
42217
  tableStyleListRef = (0, _odoo_owl.signal)(null);
42227
42218
  state = (0, _odoo_owl.proxy)({ selectedCategory: this.initialSelectedCategory });
@@ -42263,10 +42254,10 @@ var TableStylePicker = class extends Component {
42263
42254
  TableStylePreview
42264
42255
  };
42265
42256
  props = (0, _odoo_owl.props)({
42266
- tableConfig: types$6.TableConfig(),
42267
- onStylePicked: types$6.function([types$6.string()]),
42268
- tableStyles: types$6.RecordOf(),
42269
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")])
42257
+ tableConfig: types.TableConfig(),
42258
+ onStylePicked: types.function(),
42259
+ tableStyles: types.RecordOf(),
42260
+ type: types.or([types.literal("table"), types.literal("pivot")])
42270
42261
  });
42271
42262
  state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
42272
42263
  getDisplayedTableStyles() {
@@ -42314,7 +42305,7 @@ var PivotDesignPanel = class extends Component {
42314
42305
  NumberInput,
42315
42306
  TableStylePicker
42316
42307
  };
42317
- props = (0, _odoo_owl.props)({ pivotId: types$6.UID() });
42308
+ props = (0, _odoo_owl.props)({ pivotId: types.UID() });
42318
42309
  store;
42319
42310
  setup() {
42320
42311
  this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId, "neverDefer");
@@ -42369,9 +42360,9 @@ var PivotSidePanel = class extends Component {
42369
42360
  PivotDesignPanel
42370
42361
  };
42371
42362
  props = (0, _odoo_owl.props)({
42372
- pivotId: types$6.UID(),
42373
- onCloseSidePanel: types$6.function([]),
42374
- "openTab?": types$6.or([types$6.literal("configuration"), types$6.literal("design")])
42363
+ pivotId: types.UID(),
42364
+ onCloseSidePanel: types.function(),
42365
+ "openTab?": types.or([types.literal("configuration"), types.literal("design")])
42375
42366
  }, { openTab: "configuration" });
42376
42367
  state = (0, _odoo_owl.proxy)({ panel: this.props.openTab || "configuration" });
42377
42368
  setup() {
@@ -42402,7 +42393,7 @@ var RemoveDuplicatesPanel = class extends Component {
42402
42393
  Section,
42403
42394
  Checkbox
42404
42395
  };
42405
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42396
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42406
42397
  state = (0, _odoo_owl.proxy)({
42407
42398
  hasHeader: false,
42408
42399
  columns: {}
@@ -42486,7 +42477,7 @@ var SettingsPanel = class extends Component {
42486
42477
  BadgeSelection,
42487
42478
  Select
42488
42479
  };
42489
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42480
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42490
42481
  loadedLocales = [];
42491
42482
  setup() {
42492
42483
  (0, _odoo_owl.onWillStart)(() => this.loadLocales());
@@ -42604,7 +42595,7 @@ var SplitIntoColumnsPanel = class extends Component {
42604
42595
  Checkbox,
42605
42596
  Select
42606
42597
  };
42607
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42598
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42608
42599
  state = (0, _odoo_owl.proxy)({
42609
42600
  separatorValue: "auto",
42610
42601
  addNewColumns: false,
@@ -42681,8 +42672,8 @@ var TablePanel = class extends Component {
42681
42672
  NumberInput
42682
42673
  };
42683
42674
  props = (0, _odoo_owl.props)({
42684
- onCloseSidePanel: types$6.function([]),
42685
- table: types$6.CoreTable()
42675
+ onCloseSidePanel: types.function(),
42676
+ table: types.CoreTable()
42686
42677
  });
42687
42678
  state;
42688
42679
  setup() {
@@ -42841,9 +42832,9 @@ var TableStyleEditorPanel = class extends Component {
42841
42832
  TableStylePreview
42842
42833
  };
42843
42834
  props = (0, _odoo_owl.props)({
42844
- onCloseSidePanel: types$6.function([]),
42845
- "onStylePicked?": types$6.function([types$6.string()]),
42846
- "styleId?": types$6.string()
42835
+ onCloseSidePanel: types.function(),
42836
+ "onStylePicked?": types.function(),
42837
+ "styleId?": types.string()
42847
42838
  });
42848
42839
  state = (0, _odoo_owl.proxy)(this.getInitialState());
42849
42840
  setup() {
@@ -45175,8 +45166,8 @@ function adjustIndexWithinBounds(index, position, max) {
45175
45166
  var Autofill = class extends Component {
45176
45167
  static template = "o-spreadsheet-Autofill";
45177
45168
  props = (0, _odoo_owl.props)({
45178
- position: types$6.DOMCoordinates(),
45179
- isVisible: types$6.boolean()
45169
+ position: types.DOMCoordinates(),
45170
+ isVisible: types.boolean()
45180
45171
  });
45181
45172
  state = (0, _odoo_owl.proxy)({
45182
45173
  position: {
@@ -45252,7 +45243,7 @@ var Autofill = class extends Component {
45252
45243
  }
45253
45244
  };
45254
45245
  var TooltipComponent = class extends Component {
45255
- props = (0, _odoo_owl.props)({ content: types$6.string() });
45246
+ props = (0, _odoo_owl.props)({ content: types.string() });
45256
45247
  static template = _odoo_owl.xml`
45257
45248
  <div t-out="this.props.content"/>
45258
45249
  `;
@@ -45263,11 +45254,11 @@ var TooltipComponent = class extends Component {
45263
45254
  var ClientTag = class extends Component {
45264
45255
  static template = "o-spreadsheet-ClientTag";
45265
45256
  props = (0, _odoo_owl.props)({
45266
- active: types$6.boolean(),
45267
- name: types$6.string(),
45268
- color: types$6.Color(),
45269
- col: types$6.HeaderIndex(),
45270
- row: types$6.HeaderIndex()
45257
+ active: types.boolean(),
45258
+ name: types.string(),
45259
+ color: types.Color(),
45260
+ col: types.HeaderIndex(),
45261
+ row: types.HeaderIndex()
45271
45262
  });
45272
45263
  get tagStyle() {
45273
45264
  const { col, row, color } = this.props;
@@ -45844,8 +45835,8 @@ var GridComposer = class extends Component {
45844
45835
  static template = "o-spreadsheet-GridComposer";
45845
45836
  static components = { Composer };
45846
45837
  props = (0, _odoo_owl.props)({
45847
- gridDims: types$6.DOMDimension(),
45848
- onInputContextMenu: types$6.function([types$6.instanceOf(MouseEvent)])
45838
+ gridDims: types.DOMDimension(),
45839
+ onInputContextMenu: types.function()
45849
45840
  });
45850
45841
  rect = this.defaultRect;
45851
45842
  isEditing = false;
@@ -46968,21 +46959,11 @@ var GridOverlay = class extends Component {
46968
46959
  GridAddRowsFooter
46969
46960
  };
46970
46961
  props = (0, _odoo_owl.props)({
46971
- "onCellDoubleClicked?": types$6.function([types$6.HeaderIndex(), types$6.HeaderIndex()]),
46972
- "onCellClicked?": types$6.function([
46973
- types$6.HeaderIndex(),
46974
- types$6.HeaderIndex(),
46975
- types$6.GridClickModifiers(),
46976
- types$6.ZoomedMouseEvent()
46977
- ]),
46978
- "onCellRightClicked?": types$6.function([
46979
- types$6.HeaderIndex(),
46980
- types$6.HeaderIndex(),
46981
- types$6.DOMCoordinates()
46982
- ]),
46983
- "onGridResized?": types$6.function([]),
46984
- onGridMoved: types$6.function([types$6.Pixel(), types$6.Pixel()]),
46985
- gridOverlayDimensions: types$6.string()
46962
+ "onCellDoubleClicked?": types.function(),
46963
+ "onCellClicked?": types.function(),
46964
+ "onCellRightClicked?": types.function(),
46965
+ "onGridResized?": types.function(),
46966
+ gridOverlayDimensions: types.string()
46986
46967
  }, {
46987
46968
  onCellDoubleClicked: () => {},
46988
46969
  onCellClicked: () => {},
@@ -47100,9 +47081,9 @@ var GridPopover = class extends Component {
47100
47081
  static template = "o-spreadsheet-GridPopover";
47101
47082
  static components = { Popover };
47102
47083
  props = (0, _odoo_owl.props)({
47103
- onClosePopover: types$6.function([]),
47104
- onMouseWheel: types$6.function([types$6.instanceOf(WheelEvent)]),
47105
- gridRect: types$6.Rect()
47084
+ onClosePopover: types.function(),
47085
+ onMouseWheel: types.function(),
47086
+ gridRect: types.Rect()
47106
47087
  });
47107
47088
  cellPopovers;
47108
47089
  setup() {
@@ -47128,12 +47109,12 @@ var GridPopover = class extends Component {
47128
47109
  var UnhideRowHeaders = class extends Component {
47129
47110
  static template = "o-spreadsheet-UnhideRowHeaders";
47130
47111
  props = (0, _odoo_owl.props)({
47131
- headersGroups: types$6.array(),
47132
- headerRange: types$6.object({
47133
- start: types$6.HeaderIndex(),
47134
- end: types$6.HeaderIndex()
47112
+ headersGroups: types.array(),
47113
+ headerRange: types.object({
47114
+ start: types.HeaderIndex(),
47115
+ end: types.HeaderIndex()
47135
47116
  }),
47136
- "offset?": types$6.number()
47117
+ "offset?": types.number()
47137
47118
  }, { offset: 0 });
47138
47119
  get sheetId() {
47139
47120
  return this.env.model.getters.getActiveSheetId();
@@ -47171,12 +47152,12 @@ var UnhideRowHeaders = class extends Component {
47171
47152
  var UnhideColumnHeaders = class extends Component {
47172
47153
  static template = "o-spreadsheet-UnhideColumnHeaders";
47173
47154
  props = (0, _odoo_owl.props)({
47174
- headersGroups: types$6.array(),
47175
- headerRange: types$6.object({
47176
- start: types$6.HeaderIndex(),
47177
- end: types$6.HeaderIndex()
47155
+ headersGroups: types.array(),
47156
+ headerRange: types.object({
47157
+ start: types.HeaderIndex(),
47158
+ end: types.HeaderIndex()
47178
47159
  }),
47179
- "offset?": types$6.number()
47160
+ "offset?": types.number()
47180
47161
  }, { offset: 0 });
47181
47162
  get sheetId() {
47182
47163
  return this.env.model.getters.getActiveSheetId();
@@ -47208,11 +47189,7 @@ var UnhideColumnHeaders = class extends Component {
47208
47189
 
47209
47190
  //#endregion
47210
47191
  //#region src/components/headers_overlay/headers_overlay.ts
47211
- const resizerPropsDefinition = { onOpenContextMenu: types$6.function([
47212
- types$6.ContextMenuType(),
47213
- types$6.Pixel(),
47214
- types$6.Pixel()
47215
- ]) };
47192
+ const resizerPropsDefinition = { onOpenContextMenu: types.function() };
47216
47193
  var AbstractResizer = class extends Component {
47217
47194
  props = (0, _odoo_owl.props)(resizerPropsDefinition);
47218
47195
  composerFocusStore;
@@ -48666,15 +48643,15 @@ function useWheelHandler(handler) {
48666
48643
  var Border = class extends Component {
48667
48644
  static template = "o-spreadsheet-Border";
48668
48645
  props = (0, _odoo_owl.props)({
48669
- zone: types$6.Zone(),
48670
- orientation: types$6.or([
48671
- types$6.literal("n"),
48672
- types$6.literal("s"),
48673
- types$6.literal("w"),
48674
- types$6.literal("e")
48646
+ zone: types.Zone(),
48647
+ orientation: types.or([
48648
+ types.literal("n"),
48649
+ types.literal("s"),
48650
+ types.literal("w"),
48651
+ types.literal("e")
48675
48652
  ]),
48676
- isMoving: types$6.boolean(),
48677
- onMoveHighlight: types$6.function([types$6.instanceOf(PointerEvent)])
48653
+ isMoving: types.boolean(),
48654
+ onMoveHighlight: types.function()
48678
48655
  });
48679
48656
  get style() {
48680
48657
  const isTop = [
@@ -48719,24 +48696,20 @@ const MOBILE_HANDLER_WIDTH = 40;
48719
48696
  var Corner = class extends Component {
48720
48697
  static template = "o-spreadsheet-Corner";
48721
48698
  props = (0, _odoo_owl.props)({
48722
- zone: types$6.Zone(),
48723
- color: types$6.Color(),
48724
- orientation: types$6.or([
48725
- types$6.literal("nw"),
48726
- types$6.literal("ne"),
48727
- types$6.literal("sw"),
48728
- types$6.literal("se"),
48729
- types$6.literal("n"),
48730
- types$6.literal("s"),
48731
- types$6.literal("e"),
48732
- types$6.literal("w")
48699
+ zone: types.Zone(),
48700
+ color: types.Color(),
48701
+ orientation: types.or([
48702
+ types.literal("nw"),
48703
+ types.literal("ne"),
48704
+ types.literal("sw"),
48705
+ types.literal("se"),
48706
+ types.literal("n"),
48707
+ types.literal("s"),
48708
+ types.literal("e"),
48709
+ types.literal("w")
48733
48710
  ]),
48734
- isResizing: types$6.boolean(),
48735
- onResizeHighlight: types$6.function([
48736
- types$6.instanceOf(PointerEvent),
48737
- types$6.ResizeDirection(),
48738
- types$6.ResizeDirection()
48739
- ])
48711
+ isResizing: types.boolean(),
48712
+ onResizeHighlight: types.function()
48740
48713
  });
48741
48714
  dirX;
48742
48715
  dirY;
@@ -48797,8 +48770,8 @@ var Highlight = class extends Component {
48797
48770
  Border
48798
48771
  };
48799
48772
  props = (0, _odoo_owl.props)({
48800
- range: types$6.Range(),
48801
- color: types$6.Color()
48773
+ range: types.Range(),
48774
+ color: types.Color()
48802
48775
  });
48803
48776
  highlightState = (0, _odoo_owl.proxy)({ shiftingMode: "none" });
48804
48777
  dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
@@ -48941,12 +48914,12 @@ var ScrollBar = class extends Component {
48941
48914
  </div>
48942
48915
  `;
48943
48916
  props = (0, _odoo_owl.props)({
48944
- "width?": types$6.Pixel(),
48945
- "height?": types$6.Pixel(),
48946
- direction: types$6.customValidator(types$6.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
48947
- position: types$6.CSSProperties(),
48948
- offset: types$6.Pixel(),
48949
- onScroll: types$6.function([types$6.Pixel()])
48917
+ "width?": types.Pixel(),
48918
+ "height?": types.Pixel(),
48919
+ direction: types.customValidator(types.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
48920
+ position: types.CSSProperties(),
48921
+ offset: types.Pixel(),
48922
+ onScroll: types.function()
48950
48923
  }, {
48951
48924
  width: 1,
48952
48925
  height: 1
@@ -48989,7 +48962,7 @@ var HorizontalScrollBar = class extends Component {
48989
48962
  direction="'horizontal'"
48990
48963
  onScroll.bind="this.onScroll"
48991
48964
  />`;
48992
- props = (0, _odoo_owl.props)({ "leftOffset?": types$6.number() }, { leftOffset: 0 });
48965
+ props = (0, _odoo_owl.props)({ "leftOffset?": types.number() }, { leftOffset: 0 });
48993
48966
  get offset() {
48994
48967
  return this.env.model.getters.getActiveSheetScrollInfo().scrollX;
48995
48968
  }
@@ -49007,7 +48980,7 @@ var HorizontalScrollBar = class extends Component {
49007
48980
  left: `${this.props.leftOffset + x}px`,
49008
48981
  bottom: "0px",
49009
48982
  height: `${scrollbarWidth}px`,
49010
- right: isBrowserFirefox() ? `${scrollbarWidth}px` : "0"
48983
+ right: `${scrollbarWidth}px`
49011
48984
  };
49012
48985
  }
49013
48986
  onScroll(offset) {
@@ -49032,7 +49005,7 @@ var VerticalScrollBar = class extends Component {
49032
49005
  direction="'vertical'"
49033
49006
  onScroll.bind="(offset) => this.onScroll(offset)"
49034
49007
  />`;
49035
- props = (0, _odoo_owl.props)({ "topOffset?": types$6.number() }, { topOffset: 0 });
49008
+ props = (0, _odoo_owl.props)({ "topOffset?": types.number() }, { topOffset: 0 });
49036
49009
  get offset() {
49037
49010
  return this.env.model.getters.getActiveSheetScrollInfo().scrollY;
49038
49011
  }
@@ -49050,7 +49023,7 @@ var VerticalScrollBar = class extends Component {
49050
49023
  top: `${this.props.topOffset + y}px`,
49051
49024
  right: "0px",
49052
49025
  width: `${scrollbarWidth}px`,
49053
- bottom: isBrowserFirefox() ? `${scrollbarWidth}px` : "0"
49026
+ bottom: `${scrollbarWidth}px`
49054
49027
  };
49055
49028
  }
49056
49029
  onScroll(offset) {
@@ -49083,7 +49056,7 @@ const SIZE = 3;
49083
49056
  const COLOR = "#777";
49084
49057
  var TableResizer = class extends Component {
49085
49058
  static template = "o-spreadsheet-TableResizer";
49086
- props = (0, _odoo_owl.props)({ table: types$6.Table() });
49059
+ props = (0, _odoo_owl.props)({ table: types.Table() });
49087
49060
  state = (0, _odoo_owl.proxy)({ highlightZone: void 0 });
49088
49061
  dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
49089
49062
  setup() {
@@ -49172,8 +49145,8 @@ var Grid = class extends Component {
49172
49145
  Selection
49173
49146
  };
49174
49147
  props = (0, _odoo_owl.props)({
49175
- exposeFocus: types$6.function([types$6.function([])]),
49176
- getGridSize: types$6.function([], types$6.DOMDimension())
49148
+ exposeFocus: types.function(),
49149
+ getGridSize: types.function()
49177
49150
  });
49178
49151
  HEADER_HEIGHT = 26;
49179
49152
  HEADER_WIDTH = 48;
@@ -49815,8 +49788,8 @@ supportedPivotPositionalFormulaRegistry.add("SPREADSHEET", false);
49815
49788
  var ClickableCellSortIcon = class extends Component {
49816
49789
  static template = "o-spreadsheet-ClickableCellSortIcon";
49817
49790
  props = (0, _odoo_owl.props)({
49818
- position: types$6.CellPosition(),
49819
- sortDirection: types$6.or([types$6.SortDirection, types$6.literal("none")])
49791
+ position: types.CellPosition(),
49792
+ sortDirection: types.or([types.SortDirection, types.literal("none")])
49820
49793
  });
49821
49794
  hoveredTableStore;
49822
49795
  setup() {
@@ -49890,8 +49863,8 @@ var PivotHTMLRenderer = class extends Component {
49890
49863
  static template = "o_spreadsheet.PivotHTMLRenderer";
49891
49864
  static components = { Checkbox };
49892
49865
  props = (0, _odoo_owl.props)({
49893
- pivotId: types$6.UID(),
49894
- onCellClicked: types$6.function([types$6.string()])
49866
+ pivotId: types.UID(),
49867
+ onCellClicked: types.function()
49895
49868
  });
49896
49869
  pivot = this.env.model.getters.getPivot(this.props.pivotId);
49897
49870
  data = {
@@ -67776,20 +67749,20 @@ const RIPPLE_KEY_FRAMES = [
67776
67749
  var RippleEffect = class extends Component {
67777
67750
  static template = "o-spreadsheet-RippleEffect";
67778
67751
  props = (0, _odoo_owl.props)({
67779
- x: _odoo_owl.types.string(),
67780
- y: _odoo_owl.types.string(),
67781
- color: _odoo_owl.types.string(),
67782
- opacity: _odoo_owl.types.number(),
67783
- duration: _odoo_owl.types.number(),
67752
+ x: types.string(),
67753
+ y: types.string(),
67754
+ color: types.string(),
67755
+ opacity: types.number(),
67756
+ duration: types.number(),
67784
67757
  /** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
67785
- width: _odoo_owl.types.number(),
67758
+ width: types.number(),
67786
67759
  /** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
67787
- height: _odoo_owl.types.number(),
67788
- offsetY: _odoo_owl.types.number(),
67789
- offsetX: _odoo_owl.types.number(),
67790
- allowOverflow: _odoo_owl.types.boolean(),
67791
- onAnimationEnd: _odoo_owl.types.function(),
67792
- style: _odoo_owl.types.string()
67760
+ height: types.number(),
67761
+ offsetY: types.number(),
67762
+ offsetX: types.number(),
67763
+ allowOverflow: types.boolean(),
67764
+ onAnimationEnd: types.function(),
67765
+ style: types.string()
67793
67766
  });
67794
67767
  rippleRef = (0, _odoo_owl.signal)(null);
67795
67768
  setup() {
@@ -67829,21 +67802,21 @@ var Ripple = class extends Component {
67829
67802
  static template = "o-spreadsheet-Ripple";
67830
67803
  static components = { RippleEffect };
67831
67804
  props = (0, _odoo_owl.props)({
67832
- "color?": _odoo_owl.types.string(),
67833
- "opacity?": _odoo_owl.types.number(),
67834
- "duration?": _odoo_owl.types.number(),
67805
+ "color?": types.string(),
67806
+ "opacity?": types.number(),
67807
+ "duration?": types.number(),
67835
67808
  /** If true, the ripple will play from the element center instead of the position of the click */
67836
- "ignoreClickPosition?": _odoo_owl.types.boolean(),
67809
+ "ignoreClickPosition?": types.boolean(),
67837
67810
  /** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
67838
- "width?": _odoo_owl.types.number(),
67811
+ "width?": types.number(),
67839
67812
  /** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
67840
- "height?": _odoo_owl.types.number(),
67841
- "offsetY?": _odoo_owl.types.number(),
67842
- "offsetX?": _odoo_owl.types.number(),
67843
- "allowOverflow?": _odoo_owl.types.boolean(),
67844
- "enabled?": _odoo_owl.types.boolean(),
67845
- "onAnimationEnd?": _odoo_owl.types.function(),
67846
- "class?": _odoo_owl.types.string()
67813
+ "height?": types.number(),
67814
+ "offsetY?": types.number(),
67815
+ "offsetX?": types.number(),
67816
+ "allowOverflow?": types.boolean(),
67817
+ "enabled?": types.boolean(),
67818
+ "onAnimationEnd?": types.function(),
67819
+ "class?": types.string()
67847
67820
  }, {
67848
67821
  color: "#aaaaaa",
67849
67822
  opacity: .4,
@@ -68104,10 +68077,10 @@ var BottomBarSheet = class extends Component {
68104
68077
  ColorPicker
68105
68078
  };
68106
68079
  props = (0, _odoo_owl.props)({
68107
- sheetId: _odoo_owl.types.string(),
68108
- openContextMenu: _odoo_owl.types.function([_odoo_owl.types.instanceOf(MenuItemRegistry), _odoo_owl.types.instanceOf(MouseEvent)]),
68109
- "style?": _odoo_owl.types.string(),
68110
- "onMouseDown?": _odoo_owl.types.function([_odoo_owl.types.instanceOf(PointerEvent)])
68080
+ sheetId: types.string(),
68081
+ openContextMenu: types.function(),
68082
+ "style?": types.string(),
68083
+ "onMouseDown?": types.function()
68111
68084
  }, {
68112
68085
  onMouseDown: () => {},
68113
68086
  style: ""
@@ -68374,12 +68347,8 @@ var BottomBarStatistic = class extends Component {
68374
68347
  static template = "o-spreadsheet-BottomBarStatistic";
68375
68348
  static components = { Ripple };
68376
68349
  props = (0, _odoo_owl.props)({
68377
- openContextMenu: _odoo_owl.types.function([
68378
- _odoo_owl.types.number(),
68379
- _odoo_owl.types.number(),
68380
- _odoo_owl.types.instanceOf(MenuItemRegistry)
68381
- ]),
68382
- closeContextMenu: _odoo_owl.types.function([])
68350
+ openContextMenu: types.function(),
68351
+ closeContextMenu: types.function()
68383
68352
  });
68384
68353
  state = (0, _odoo_owl.proxy)({ selectedStatisticFn: "" });
68385
68354
  store;
@@ -68423,7 +68392,7 @@ var BottomBarStatistic = class extends Component {
68423
68392
  const MENU_MAX_HEIGHT = 250;
68424
68393
  var BottomBar = class extends Component {
68425
68394
  static template = "o-spreadsheet-BottomBar";
68426
- props = (0, _odoo_owl.props)({ onClick: _odoo_owl.types.function([]) });
68395
+ props = (0, _odoo_owl.props)({ onClick: types.function() });
68427
68396
  static components = {
68428
68397
  MenuPopover,
68429
68398
  Ripple,
@@ -68706,7 +68675,7 @@ var SpreadsheetDashboard = class extends Component {
68706
68675
  VerticalScrollBar,
68707
68676
  HorizontalScrollBar
68708
68677
  };
68709
- props = (0, _odoo_owl.props)({ getGridSize: types$6.function([], types$6.DOMDimension()) });
68678
+ props = (0, _odoo_owl.props)({ getGridSize: types.function() });
68710
68679
  cellPopovers;
68711
68680
  onMouseWheel;
68712
68681
  canvasPosition;
@@ -68820,9 +68789,9 @@ var SpreadsheetDashboard = class extends Component {
68820
68789
  var AbstractHeaderGroup = class extends Component {
68821
68790
  static template = "o-spreadsheet-HeaderGroup";
68822
68791
  props = (0, _odoo_owl.props)({
68823
- group: types$6.HeaderGroup(),
68824
- layerOffset: types$6.number(),
68825
- openContextMenu: types$6.function([types$6.DOMCoordinates(), types$6.ArrayOf()])
68792
+ group: types.HeaderGroup(),
68793
+ layerOffset: types.number(),
68794
+ openContextMenu: types.function()
68826
68795
  });
68827
68796
  toggleGroup() {
68828
68797
  const sheetId = this.env.model.getters.getActiveSheetId();
@@ -68974,8 +68943,8 @@ var HeaderGroupContainer = class extends Component {
68974
68943
  MenuPopover
68975
68944
  };
68976
68945
  props = (0, _odoo_owl.props)({
68977
- dimension: types$6.Dimension(),
68978
- layers: types$6.array()
68946
+ dimension: types.Dimension(),
68947
+ layers: types.array()
68979
68948
  });
68980
68949
  menu = (0, _odoo_owl.proxy)({
68981
68950
  isOpen: false,
@@ -69050,15 +69019,15 @@ function useScreenWidth() {
69050
69019
  var SidePanel = class extends Component {
69051
69020
  static template = "o-spreadsheet-SidePanel";
69052
69021
  props = (0, _odoo_owl.props)({
69053
- panelContent: types$6.SidePanelContent(),
69054
- panelProps: types$6.SidePanelComponentProps(),
69055
- onCloseSidePanel: types$6.function([]),
69056
- onStartHandleDrag: types$6.function([types$6.instanceOf(MouseEvent)]),
69057
- onResetPanelSize: types$6.function([]),
69058
- "isPinned?": types$6.boolean(),
69059
- "onTogglePinPanel?": types$6.function([]),
69060
- "onToggleCollapsePanel?": types$6.function([]),
69061
- "isCollapsed?": types$6.boolean()
69022
+ panelContent: types.SidePanelContent(),
69023
+ panelProps: types.SidePanelComponentProps(),
69024
+ onCloseSidePanel: types.function(),
69025
+ onStartHandleDrag: types.function(),
69026
+ onResetPanelSize: types.function(),
69027
+ "isPinned?": types.boolean(),
69028
+ "onTogglePinPanel?": types.function(),
69029
+ "onToggleCollapsePanel?": types.function(),
69030
+ "isCollapsed?": types.boolean()
69062
69031
  });
69063
69032
  spreadsheetRect = useSpreadsheetRect();
69064
69033
  getTitle() {
@@ -69143,7 +69112,7 @@ var SidePanels = class extends Component {
69143
69112
  var RibbonMenu = class extends Component {
69144
69113
  static template = "o-spreadsheet-RibbonMenu";
69145
69114
  static components = { Menu };
69146
- props = (0, _odoo_owl.props)({ onClose: types$6.function([]) });
69115
+ props = (0, _odoo_owl.props)({ onClose: types.function() });
69147
69116
  rootItems = topbarMenuRegistry.getMenuItems();
69148
69117
  menuRef = (0, _odoo_owl.signal)(null);
69149
69118
  containerRef = (0, _odoo_owl.signal)(null);
@@ -69214,7 +69183,7 @@ var SmallBottomBar = class extends Component {
69214
69183
  RibbonMenu
69215
69184
  };
69216
69185
  static template = "o-spreadsheet-SmallBottomBar";
69217
- props = (0, _odoo_owl.props)({ onClick: types$6.function([]) });
69186
+ props = (0, _odoo_owl.props)({ onClick: types.function() });
69218
69187
  composerFocusStore;
69219
69188
  composerStore;
69220
69189
  composerInterface;
@@ -69416,9 +69385,9 @@ var FigureRendererStore = class extends DisposableStore {
69416
69385
  var StandaloneGridCanvas = class extends Component {
69417
69386
  static template = "o-spreadsheet-StandaloneGridCanvas";
69418
69387
  props = (0, _odoo_owl.props)({
69419
- sheetId: types$6.UID(),
69420
- zone: types$6.Zone(),
69421
- renderingCtx: types$6.object({})
69388
+ sheetId: types.UID(),
69389
+ zone: types.Zone(),
69390
+ renderingCtx: types.object({})
69422
69391
  });
69423
69392
  canvasRef = (0, _odoo_owl.signal)(null);
69424
69393
  rendererStore;
@@ -69740,7 +69709,7 @@ var SpreadsheetPrintStore = class extends SpreadsheetStore {
69740
69709
  //#region src/components/spreadsheet_print/spreadsheet_print.ts
69741
69710
  var SpreadsheetPrint = class extends Component {
69742
69711
  static template = "o-spreadsheet-SpreadsheetPrint";
69743
- props = (0, _odoo_owl.props)({ onExitPrintMode: types$6.function([]) });
69712
+ props = (0, _odoo_owl.props)({ onExitPrintMode: types.function() });
69744
69713
  static components = {
69745
69714
  StandaloneGridCanvas,
69746
69715
  Section,
@@ -70073,15 +70042,15 @@ var BorderEditor = class extends Component {
70073
70042
  Popover
70074
70043
  };
70075
70044
  props = (0, _odoo_owl.props)({
70076
- "class?": types$6.string(),
70077
- currentBorderColor: types$6.Color(),
70078
- currentBorderStyle: types$6.BorderStyle(),
70079
- "currentBorderPosition?": types$6.BorderPosition(),
70080
- onBorderColorPicked: types$6.function([types$6.Color()]),
70081
- onBorderStylePicked: types$6.function([types$6.BorderStyle()]),
70082
- onBorderPositionPicked: types$6.function([types$6.BorderPosition()]),
70083
- "maxHeight?": types$6.Pixel(),
70084
- anchorRect: types$6.Rect()
70045
+ "class?": types.string(),
70046
+ currentBorderColor: types.Color(),
70047
+ currentBorderStyle: types.BorderStyle(),
70048
+ "currentBorderPosition?": types.BorderPosition(),
70049
+ onBorderColorPicked: types.function(),
70050
+ onBorderStylePicked: types.function(),
70051
+ onBorderPositionPicked: types.function(),
70052
+ "maxHeight?": types.Pixel(),
70053
+ anchorRect: types.Rect()
70085
70054
  });
70086
70055
  BORDER_POSITIONS = BORDER_POSITIONS;
70087
70056
  lineStyleButtonRef = (0, _odoo_owl.signal)(null);
@@ -70145,9 +70114,9 @@ var BorderEditorWidget = class extends Component {
70145
70114
  static template = "o-spreadsheet-BorderEditorWidget";
70146
70115
  static components = { BorderEditor };
70147
70116
  props = (0, _odoo_owl.props)({
70148
- "disabled?": types$6.boolean(),
70149
- "dropdownMaxHeight?": types$6.Pixel(),
70150
- "class?": types$6.string()
70117
+ "disabled?": types.boolean(),
70118
+ "dropdownMaxHeight?": types.Pixel(),
70119
+ "class?": types.string()
70151
70120
  });
70152
70121
  topBarToolStore;
70153
70122
  borderEditorButtonRef = (0, _odoo_owl.signal)(null);
@@ -70205,7 +70174,7 @@ var BorderEditorWidget = class extends Component {
70205
70174
  //#region src/components/paint_format_button/paint_format_button.ts
70206
70175
  var PaintFormatButton = class extends Component {
70207
70176
  static template = "o-spreadsheet-PaintFormatButton";
70208
- props = (0, _odoo_owl.props)({ "class?": types$6.string() });
70177
+ props = (0, _odoo_owl.props)({ "class?": types.string() });
70209
70178
  paintFormatStore;
70210
70179
  setup() {
70211
70180
  this.paintFormatStore = useStore(PaintFormatStore);
@@ -70230,7 +70199,7 @@ var TableDropdownButton = class extends Component {
70230
70199
  TableStylesPopover,
70231
70200
  ActionButton
70232
70201
  };
70233
- props = (0, _odoo_owl.props)({ "class?": types$6.string() });
70202
+ props = (0, _odoo_owl.props)({ "class?": types.string() });
70234
70203
  topBarToolStore;
70235
70204
  state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
70236
70205
  setup() {
@@ -70321,10 +70290,10 @@ var TopBarColorEditor = class extends Component {
70321
70290
  static components = { ColorPickerWidget };
70322
70291
  static template = "o-spreadsheet-ColorEditor";
70323
70292
  props = (0, _odoo_owl.props)({
70324
- class: types$6.string(),
70325
- style: types$6.or([types$6.literal("textColor"), types$6.literal("fillColor")]),
70326
- icon: types$6.string(),
70327
- title: types$6.string()
70293
+ class: types.string(),
70294
+ style: types.or([types.literal("textColor"), types.literal("fillColor")]),
70295
+ icon: types.string(),
70296
+ title: types.string()
70328
70297
  });
70329
70298
  topBarToolStore;
70330
70299
  state = (0, _odoo_owl.proxy)({ isOpen: false });
@@ -70356,10 +70325,10 @@ var DropdownAction = class extends Component {
70356
70325
  Popover
70357
70326
  };
70358
70327
  props = (0, _odoo_owl.props)({
70359
- parentAction: types$6.ActionSpec(),
70360
- childActions: types$6.array(types$6.ActionSpec()),
70361
- class: types$6.string(),
70362
- childClass: types$6.string()
70328
+ parentAction: types.ActionSpec(),
70329
+ childActions: types.array(types.ActionSpec()),
70330
+ class: types.string(),
70331
+ childClass: types.string()
70363
70332
  });
70364
70333
  topBarToolStore;
70365
70334
  actionRef = (0, _odoo_owl.signal)(null);
@@ -70388,7 +70357,7 @@ var DropdownAction = class extends Component {
70388
70357
  var TopBarFontSizeEditor = class extends Component {
70389
70358
  static components = { FontSizeEditor };
70390
70359
  static template = "o-spreadsheet-TopBarFontSizeEditor";
70391
- props = (0, _odoo_owl.props)({ class: _odoo_owl.types.string() });
70360
+ props = (0, _odoo_owl.props)({ class: types.string() });
70392
70361
  topBarToolStore;
70393
70362
  setup() {
70394
70363
  this.topBarToolStore = useToolBarDropdownStore();
@@ -70422,7 +70391,7 @@ var NumberFormatsTool = class extends Component {
70422
70391
  MenuPopover,
70423
70392
  ActionButton
70424
70393
  };
70425
- props = (0, _odoo_owl.props)({ class: types$6.string() });
70394
+ props = (0, _odoo_owl.props)({ class: types.string() });
70426
70395
  formatNumberMenuItemSpec = formatNumberMenuItemSpec;
70427
70396
  topBarToolStore;
70428
70397
  buttonRef = (0, _odoo_owl.signal)(null);
@@ -70457,7 +70426,7 @@ var NumberFormatsTool = class extends Component {
70457
70426
  var ToolBarZoom = class extends Component {
70458
70427
  static template = "o-spreadsheet-TopBarZoom";
70459
70428
  static components = { NumberEditor };
70460
- props = (0, _odoo_owl.props)({ class: types$6.string() });
70429
+ props = (0, _odoo_owl.props)({ class: types.string() });
70461
70430
  topBarToolStore;
70462
70431
  valueList = ZOOM_VALUES;
70463
70432
  setup() {
@@ -70684,8 +70653,8 @@ topBarToolBarRegistry.add("edit").addChild("edit", {
70684
70653
  var TopBar = class extends Component {
70685
70654
  static template = "o-spreadsheet-TopBar";
70686
70655
  props = (0, _odoo_owl.props)({
70687
- onClick: types$6.function([]),
70688
- dropdownMaxHeight: types$6.Pixel()
70656
+ onClick: types.function(),
70657
+ dropdownMaxHeight: types.Pixel()
70689
70658
  });
70690
70659
  static components = {
70691
70660
  MenuPopover,
@@ -70962,14 +70931,10 @@ var WebClipboardWrapper = class {
70962
70931
  var Spreadsheet = class extends Component {
70963
70932
  static template = "o-spreadsheet-Spreadsheet";
70964
70933
  props = (0, _odoo_owl.props)({
70965
- model: types$6.Model(),
70966
- "notifyUser?": types$6.function([types$6.InformationNotification()]),
70967
- "raiseError?": types$6.function([types$6.string(), types$6.function([])]),
70968
- "askConfirmation?": types$6.function([
70969
- types$6.string(),
70970
- types$6.function([]),
70971
- types$6.function([])
70972
- ])
70934
+ model: types.Model(),
70935
+ "notifyUser?": types.function(),
70936
+ "raiseError?": types.function(),
70937
+ "askConfirmation?": types.function()
70973
70938
  });
70974
70939
  static components = {
70975
70940
  TopBar,
@@ -76548,8 +76513,8 @@ var ErrorToolTip = class extends Component {
76548
76513
  static maxSize = { maxHeight: ERROR_TOOLTIP_MAX_HEIGHT };
76549
76514
  static template = "o-spreadsheet-ErrorToolTip";
76550
76515
  props = (0, _odoo_owl.props)({
76551
- cellPosition: types$6.CellPosition(),
76552
- "onClosed?": types$6.function([])
76516
+ cellPosition: types.CellPosition(),
76517
+ "onClosed?": types.function()
76553
76518
  });
76554
76519
  get dataValidationErrorMessage() {
76555
76520
  return this.env.model.getters.getInvalidDataValidationMessage(this.props.cellPosition);
@@ -76632,8 +76597,8 @@ var FilterMenu = class extends Component {
76632
76597
  FilterMenuCriterion
76633
76598
  };
76634
76599
  props = (0, _odoo_owl.props)({
76635
- filterPosition: types$6.Position(),
76636
- "onClosed?": types$6.function([])
76600
+ filterPosition: types.Position(),
76601
+ "onClosed?": types.function()
76637
76602
  });
76638
76603
  state;
76639
76604
  criterionCategory = "text";
@@ -76812,8 +76777,8 @@ const FilterMenuPopoverBuilder = { onOpen: (position, getters) => {
76812
76777
  var LinkDisplay = class extends Component {
76813
76778
  static template = "o-spreadsheet-LinkDisplay";
76814
76779
  props = (0, _odoo_owl.props)({
76815
- cellPosition: types$6.CellPosition(),
76816
- "onClosed?": types$6.function([])
76780
+ cellPosition: types.CellPosition(),
76781
+ "onClosed?": types.function()
76817
76782
  });
76818
76783
  cellPopovers;
76819
76784
  setup() {
@@ -76886,8 +76851,8 @@ var LinkEditor = class extends Component {
76886
76851
  static template = "o-spreadsheet-LinkEditor";
76887
76852
  static components = { MenuPopover };
76888
76853
  props = (0, _odoo_owl.props)({
76889
- cellPosition: types$6.CellPosition(),
76890
- "onClosed?": types$6.function([])
76854
+ cellPosition: types.CellPosition(),
76855
+ "onClosed?": types.function()
76891
76856
  });
76892
76857
  static size = { maxHeight: 500 };
76893
76858
  urlInput = (0, _odoo_owl.signal)(null);
@@ -86577,6 +86542,6 @@ exports.stores = stores;
86577
86542
  exports.tokenColors = tokenColors;
86578
86543
  exports.tokenize = tokenize;
86579
86544
 
86580
- __info__.version = "19.4.0-alpha.13";
86581
- __info__.date = "2026-06-06T09:34:53.140Z";
86582
- __info__.hash = "af3c199";
86545
+ __info__.version = "19.4.0-alpha.14";
86546
+ __info__.date = "2026-06-12T09:49:11.281Z";
86547
+ __info__.hash = "f92f5e0";