@odoo/o-spreadsheet 19.4.0-alpha.12 → 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 (34) hide show
  1. package/dist/o_spreadsheet.cjs +818 -840
  2. package/dist/o_spreadsheet.css +29 -6
  3. package/dist/o_spreadsheet.esm.js +426 -448
  4. package/dist/o_spreadsheet.iife.js +818 -840
  5. package/dist/o_spreadsheet.min.iife.js +78 -78
  6. package/dist/o_spreadsheet.xml +19 -12
  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/color_picker/color_picker.d.ts +2 -0
  12. package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +2 -1
  13. package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -1
  14. package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -1
  15. package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +2 -2
  16. package/dist/types/components/grid_overlay/grid_overlay.d.ts +2 -3
  17. package/dist/types/components/helpers/dom_helpers.d.ts +0 -4
  18. package/dist/types/components/menu/menu.d.ts +1 -1
  19. package/dist/types/components/menu_popover/menu_popover.d.ts +1 -1
  20. package/dist/types/components/props_validation.d.ts +2 -6
  21. package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +5 -6
  22. package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +5 -4
  23. package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +7 -7
  24. package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +3 -2
  25. package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +3 -2
  26. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +5 -5
  27. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +3 -3
  28. package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +7 -4
  29. package/dist/types/components/side_panel/chart/common.d.ts +3 -2
  30. package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +4 -4
  31. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +2 -2
  32. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +1 -1
  33. package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +1 -1
  34. 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.12
6
- * @date 2026-06-06T06:24:48.209Z
7
- * @hash a71f829
5
+ * @version 19.4.0-alpha.14
6
+ * @date 2026-06-12T09:49:11.281Z
7
+ * @hash f92f5e0
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -333,12 +333,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
333
333
  a.click();
334
334
  document.body.removeChild(a);
335
335
  }
336
- /**
337
- * Detects if the current browser is Firefox
338
- */
339
- function isBrowserFirefox() {
340
- return /Firefox/i.test(navigator.userAgent);
341
- }
342
336
  function maxTouchPoints() {
343
337
  return navigator.maxTouchPoints || 1;
344
338
  }
@@ -3010,6 +3004,187 @@ set(value) {
3010
3004
  return container;
3011
3005
  }
3012
3006
 
3007
+ //#endregion
3008
+ //#region src/components/props_validation.ts
3009
+ /**
3010
+ * Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
3011
+ */
3012
+ function validateNumber() {
3013
+ return _odoo_owl.types.number();
3014
+ }
3015
+ /**
3016
+ * Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
3017
+ */
3018
+ function validateString() {
3019
+ return _odoo_owl.types.string();
3020
+ }
3021
+ /**
3022
+ * Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
3023
+ */
3024
+ function validateObject() {
3025
+ return _odoo_owl.types.object();
3026
+ }
3027
+ /**
3028
+ * Validate that a prop is an array, but with a more specific element type than `any[]`.
3029
+ */
3030
+ function validateArrayOf() {
3031
+ return _odoo_owl.types.array();
3032
+ }
3033
+ /**
3034
+ * Validate that a prop is a record (string-keyed dictionary), but with a more
3035
+ * specific value type than `any`.
3036
+ */
3037
+ function validateRecordOf() {
3038
+ return _odoo_owl.types.record();
3039
+ }
3040
+ /**
3041
+ * Validate that a prop is a `Set`, typed with a specific element type.
3042
+ */
3043
+ function validateSetOf() {
3044
+ return _odoo_owl.types.instanceOf(Set);
3045
+ }
3046
+ function validateRect() {
3047
+ return _odoo_owl.types.object({
3048
+ x: _odoo_owl.types.number(),
3049
+ y: _odoo_owl.types.number(),
3050
+ width: _odoo_owl.types.number(),
3051
+ height: _odoo_owl.types.number()
3052
+ });
3053
+ }
3054
+ function validateBorderPosition() {
3055
+ return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
3056
+ }
3057
+ function validateBorderStyle() {
3058
+ return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
3059
+ }
3060
+ function validateDOMCoordinates() {
3061
+ return _odoo_owl.types.object({
3062
+ x: _odoo_owl.types.number(),
3063
+ y: _odoo_owl.types.number()
3064
+ });
3065
+ }
3066
+ function validateDOMDimension() {
3067
+ return _odoo_owl.types.object({
3068
+ width: _odoo_owl.types.number(),
3069
+ height: _odoo_owl.types.number()
3070
+ });
3071
+ }
3072
+ function validateSortDirection() {
3073
+ return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
3074
+ }
3075
+ function validateResizeDirection() {
3076
+ return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
3077
+ -1,
3078
+ 0,
3079
+ 1
3080
+ ].includes(direction));
3081
+ }
3082
+ function validateComposerFocusType() {
3083
+ return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
3084
+ }
3085
+ function validateDimension() {
3086
+ return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
3087
+ }
3088
+ function validateContextMenuType() {
3089
+ return _odoo_owl.types.customValidator(validateString(), (value) => [
3090
+ "ROW",
3091
+ "COL",
3092
+ "CELL",
3093
+ "FILTER",
3094
+ "GROUP_HEADERS",
3095
+ "UNGROUP_HEADERS"
3096
+ ].includes(value));
3097
+ }
3098
+ /**
3099
+ * Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
3100
+ * match what `useStore(...)` returns at the call site.
3101
+ */
3102
+ function validateStore() {
3103
+ return _odoo_owl.types.object();
3104
+ }
3105
+ function validateFunction() {
3106
+ return _odoo_owl.types.function();
3107
+ }
3108
+ const types = {
3109
+ ..._odoo_owl.types,
3110
+ function: validateFunction,
3111
+ ArrayOf: validateArrayOf,
3112
+ RecordOf: validateRecordOf,
3113
+ SetOf: validateSetOf,
3114
+ GenericCriterionType: validateString,
3115
+ UID: validateString,
3116
+ CriterionFilter: validateObject,
3117
+ CSSProperties: validateObject,
3118
+ ResizeDirection: validateResizeDirection,
3119
+ FigureUI: validateObject,
3120
+ Token: validateObject,
3121
+ CellPosition: validateObject,
3122
+ AutoCompleteProviderDefinition: validateObject,
3123
+ AutoCompleteProposal: validateObject,
3124
+ FunctionDescription: validateObject,
3125
+ Rect: validateRect,
3126
+ Pixel: validateNumber,
3127
+ HeaderIndex: validateNumber,
3128
+ BorderPosition: validateBorderPosition,
3129
+ BorderStyle: validateBorderStyle,
3130
+ Color: validateString,
3131
+ ActionSpec: validateObject,
3132
+ DOMCoordinates: validateDOMCoordinates,
3133
+ DOMDimension: validateDOMDimension,
3134
+ ComposerFocusType: validateComposerFocusType,
3135
+ SortDirection: validateSortDirection,
3136
+ Store: validateStore,
3137
+ Position: validateObject,
3138
+ PivotCoreDefinition: validateObject,
3139
+ PivotField: validateObject,
3140
+ PivotDimension: validateObject,
3141
+ PivotMeasure: validateObject,
3142
+ PivotCoreMeasure: validateObject,
3143
+ PivotCustomGroupedField: validateObject,
3144
+ PivotRuntimeDefinition: validateObject,
3145
+ PivotFilter: validateObject,
3146
+ DataFilterValue: validateObject,
3147
+ SpreadsheetPivotCoreDefinition: validateObject,
3148
+ ComposerSelection: validateObject,
3149
+ Action: validateObject,
3150
+ MenuItemOrSeparator: validateObject,
3151
+ Model: validateObject,
3152
+ DispatchResult: validateObject,
3153
+ Zone: validateObject,
3154
+ Range: validateObject,
3155
+ HeaderGroup: validateObject,
3156
+ GridClickModifiers: validateObject,
3157
+ ZoomedMouseEvent: validateObject,
3158
+ ConditionalFormat: validateObject,
3159
+ ColorScaleThreshold: validateObject,
3160
+ Table: validateObject,
3161
+ CoreTable: validateObject,
3162
+ TableConfig: validateObject,
3163
+ TableStyle: validateObject,
3164
+ TitleDesign: validateObject,
3165
+ ChartDefinition: validateObject,
3166
+ ChartDefinitionWithDataSource: validateObject,
3167
+ ChartWithAxisDefinition: validateObject,
3168
+ ChartStyle: validateObject,
3169
+ ChartColorScale: validateObject,
3170
+ ChartRangeDataSource: validateObject,
3171
+ DataSetStyle: validateObject,
3172
+ GeoChartDefinition: validateObject,
3173
+ FunnelChartDefinition: validateObject,
3174
+ TreeMapChartDefinition: validateObject,
3175
+ TreeMapCategoryColorOptions: validateObject,
3176
+ TreeMapColorScaleOptions: validateObject,
3177
+ NamedRange: validateObject,
3178
+ DataValidationRule: validateObject,
3179
+ InformationNotification: validateObject,
3180
+ NotificationStoreMethods: validateObject,
3181
+ SidePanelContent: validateObject,
3182
+ SidePanelComponentProps: validateObject,
3183
+ DataValidationCriterionType: validateString,
3184
+ Dimension: validateDimension,
3185
+ ContextMenuType: validateContextMenuType
3186
+ };
3187
+
3013
3188
  //#endregion
3014
3189
  //#region src/components/figures/chart/chartJs/chartjs_animation_store.ts
3015
3190
  var ChartAnimationStore = class extends SpreadsheetStore {
@@ -10559,7 +10734,7 @@ set(value) {
10559
10734
  };
10560
10735
  }
10561
10736
  function getGeoChartProjection(projection) {
10562
- if (projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10737
+ if (globalThis.ChartGeo && projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10563
10738
  return projection;
10564
10739
  }
10565
10740
  function getChartAxisTitleRuntime(design) {
@@ -11525,8 +11700,8 @@ set(value) {
11525
11700
  var ChartJsComponent = class extends Component {
11526
11701
  static template = "o-spreadsheet-ChartJsComponent";
11527
11702
  props = (0, _odoo_owl.props)({
11528
- chartId: _odoo_owl.types.string(),
11529
- "isFullScreen?": _odoo_owl.types.boolean()
11703
+ chartId: types.string(),
11704
+ "isFullScreen?": types.boolean()
11530
11705
  });
11531
11706
  canvas = (0, _odoo_owl.signal)(null);
11532
11707
  chart;
@@ -12224,8 +12399,8 @@ set(value) {
12224
12399
  var ScorecardChart = class extends Component {
12225
12400
  static template = "o-spreadsheet-ScorecardChart";
12226
12401
  props = (0, _odoo_owl.props)({
12227
- chartId: _odoo_owl.types.string(),
12228
- "isFullScreen?": _odoo_owl.types.boolean()
12402
+ chartId: types.string(),
12403
+ "isFullScreen?": types.boolean()
12229
12404
  });
12230
12405
  canvas = (0, _odoo_owl.signal)(null);
12231
12406
  get runtime() {
@@ -13913,8 +14088,8 @@ set(value) {
13913
14088
  var GaugeChartComponent = class extends Component {
13914
14089
  static template = "o-spreadsheet-GaugeChartComponent";
13915
14090
  props = (0, _odoo_owl.props)({
13916
- chartId: _odoo_owl.types.string(),
13917
- "isFullScreen?": _odoo_owl.types.boolean()
14091
+ chartId: types.string(),
14092
+ "isFullScreen?": types.boolean()
13918
14093
  });
13919
14094
  canvas = (0, _odoo_owl.signal)(null);
13920
14095
  animationStore;
@@ -14186,200 +14361,23 @@ set(value) {
14186
14361
  };
14187
14362
  }
14188
14363
 
14189
- //#endregion
14190
- //#region src/components/props_validation.ts
14191
- /**
14192
- * Validate that a prop is a number, but with a more specific type than just `number` (e.g. `Pixel`).
14193
- */
14194
- function validateNumber() {
14195
- return _odoo_owl.types.number();
14196
- }
14197
- /**
14198
- * Validate that a prop is a string, but with a more specific type than just `string` (e.g. `Color`).
14199
- */
14200
- function validateString() {
14201
- return _odoo_owl.types.string();
14202
- }
14203
- /**
14204
- * Validate that a prop is an object, but with a more specific type than just `object` (e.g. `ActionSpec`).
14205
- */
14206
- function validateObject() {
14207
- return _odoo_owl.types.object();
14208
- }
14209
- /**
14210
- * Validate that a prop is an array, but with a more specific element type than `any[]`.
14211
- */
14212
- function validateArrayOf() {
14213
- return _odoo_owl.types.array();
14214
- }
14215
- /**
14216
- * Validate that a prop is a record (string-keyed dictionary), but with a more
14217
- * specific value type than `any`.
14218
- */
14219
- function validateRecordOf() {
14220
- return _odoo_owl.types.record();
14221
- }
14222
- /**
14223
- * Validate that a prop is a `Set`, typed with a specific element type.
14224
- */
14225
- function validateSetOf() {
14226
- return _odoo_owl.types.instanceOf(Set);
14227
- }
14228
- function validateRect() {
14229
- return _odoo_owl.types.object({
14230
- x: _odoo_owl.types.number(),
14231
- y: _odoo_owl.types.number(),
14232
- width: _odoo_owl.types.number(),
14233
- height: _odoo_owl.types.number()
14234
- });
14235
- }
14236
- function validateBorderPosition() {
14237
- return _odoo_owl.types.customValidator(validateString(), (position) => borderPositions.includes(position));
14238
- }
14239
- function validateBorderStyle() {
14240
- return _odoo_owl.types.customValidator(validateString(), (style) => borderStyles.includes(style));
14241
- }
14242
- function validateDOMCoordinates() {
14243
- return _odoo_owl.types.object({
14244
- x: _odoo_owl.types.number(),
14245
- y: _odoo_owl.types.number()
14246
- });
14247
- }
14248
- function validateDOMDimension() {
14249
- return _odoo_owl.types.object({
14250
- width: _odoo_owl.types.number(),
14251
- height: _odoo_owl.types.number()
14252
- });
14253
- }
14254
- function validateSortDirection() {
14255
- return _odoo_owl.types.customValidator(validateString(), (direction) => ["asc", "desc"].includes(direction));
14256
- }
14257
- function validateResizeDirection() {
14258
- return _odoo_owl.types.customValidator(validateNumber(), (direction) => [
14259
- -1,
14260
- 0,
14261
- 1
14262
- ].includes(direction));
14263
- }
14264
- function validateComposerFocusType() {
14265
- return _odoo_owl.types.customValidator(validateString(), (value) => composerFocusTypes.includes(value));
14266
- }
14267
- function validateDimension() {
14268
- return _odoo_owl.types.customValidator(validateString(), (value) => ["COL", "ROW"].includes(value));
14269
- }
14270
- function validateContextMenuType() {
14271
- return _odoo_owl.types.customValidator(validateString(), (value) => [
14272
- "ROW",
14273
- "COL",
14274
- "CELL",
14275
- "FILTER",
14276
- "GROUP_HEADERS",
14277
- "UNGROUP_HEADERS"
14278
- ].includes(value));
14279
- }
14280
- /**
14281
- * Validate that a prop is a store. Typed as the CQS-wrapped `Store<T>` to
14282
- * match what `useStore(...)` returns at the call site.
14283
- */
14284
- function validateStore() {
14285
- return _odoo_owl.types.object();
14286
- }
14287
- const types$6 = {
14288
- ..._odoo_owl.types,
14289
- ArrayOf: validateArrayOf,
14290
- RecordOf: validateRecordOf,
14291
- SetOf: validateSetOf,
14292
- GenericCriterionType: validateString,
14293
- UID: validateString,
14294
- CriterionFilter: validateObject,
14295
- CSSProperties: validateObject,
14296
- ResizeDirection: validateResizeDirection,
14297
- FigureUI: validateObject,
14298
- Token: validateObject,
14299
- CellPosition: validateObject,
14300
- AutoCompleteProviderDefinition: validateObject,
14301
- AutoCompleteProposal: validateObject,
14302
- FunctionDescription: validateObject,
14303
- Rect: validateRect,
14304
- Pixel: validateNumber,
14305
- HeaderIndex: validateNumber,
14306
- BorderPosition: validateBorderPosition,
14307
- BorderStyle: validateBorderStyle,
14308
- Color: validateString,
14309
- ActionSpec: validateObject,
14310
- DOMCoordinates: validateDOMCoordinates,
14311
- DOMDimension: validateDOMDimension,
14312
- ComposerFocusType: validateComposerFocusType,
14313
- SortDirection: validateSortDirection,
14314
- Store: validateStore,
14315
- Position: validateObject,
14316
- PivotCoreDefinition: validateObject,
14317
- PivotField: validateObject,
14318
- PivotDimension: validateObject,
14319
- PivotMeasure: validateObject,
14320
- PivotCoreMeasure: validateObject,
14321
- PivotCustomGroupedField: validateObject,
14322
- PivotRuntimeDefinition: validateObject,
14323
- PivotFilter: validateObject,
14324
- DataFilterValue: validateObject,
14325
- SpreadsheetPivotCoreDefinition: validateObject,
14326
- ComposerSelection: validateObject,
14327
- Action: validateObject,
14328
- MenuItemOrSeparator: validateObject,
14329
- Model: validateObject,
14330
- DispatchResult: validateObject,
14331
- Zone: validateObject,
14332
- Range: validateObject,
14333
- HeaderGroup: validateObject,
14334
- GridClickModifiers: validateObject,
14335
- ZoomedMouseEvent: validateObject,
14336
- ConditionalFormat: validateObject,
14337
- ColorScaleThreshold: validateObject,
14338
- Table: validateObject,
14339
- CoreTable: validateObject,
14340
- TableConfig: validateObject,
14341
- TableStyle: validateObject,
14342
- TitleDesign: validateObject,
14343
- ChartDefinition: validateObject,
14344
- ChartDefinitionWithDataSource: validateObject,
14345
- ChartWithAxisDefinition: validateObject,
14346
- ChartStyle: validateObject,
14347
- ChartColorScale: validateObject,
14348
- ChartRangeDataSource: validateObject,
14349
- DataSetStyle: validateObject,
14350
- GeoChartDefinition: validateObject,
14351
- FunnelChartDefinition: validateObject,
14352
- TreeMapChartDefinition: validateObject,
14353
- TreeMapCategoryColorOptions: validateObject,
14354
- TreeMapColorScaleOptions: validateObject,
14355
- NamedRange: validateObject,
14356
- DataValidationRule: validateObject,
14357
- InformationNotification: validateObject,
14358
- NotificationStoreMethods: validateObject,
14359
- SidePanelContent: validateObject,
14360
- SidePanelComponentProps: validateObject,
14361
- DataValidationCriterionType: validateString,
14362
- Dimension: validateDimension,
14363
- ContextMenuType: validateContextMenuType
14364
- };
14365
-
14366
14364
  //#endregion
14367
14365
  //#region src/components/menu/menu.ts
14368
14366
  var Menu = class extends Component {
14369
14367
  static template = "o-spreadsheet-Menu";
14370
14368
  static components = {};
14371
14369
  props = (0, _odoo_owl.props)({
14372
- menuItems: types$6.ArrayOf(),
14373
- onClose: types$6.function([]),
14374
- "onClickMenu?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14375
- "onMouseEnter?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14376
- "onMouseLeave?": types$6.function([types$6.Action(), types$6.instanceOf(PointerEvent)]),
14377
- "width?": types$6.number(),
14378
- "hoveredMenuId?": types$6.string(),
14379
- "isHoveredMenuFocused?": types$6.boolean(),
14380
- "onScroll?": types$6.function([types$6.instanceOf(CustomEvent)]),
14381
- "onKeyDown?": types$6.function([types$6.instanceOf(KeyboardEvent)]),
14382
- "disableKeyboardNavigation?": types$6.boolean()
14370
+ menuItems: types.ArrayOf(),
14371
+ onClose: types.function(),
14372
+ "onClickMenu?": types.function(),
14373
+ "onMouseEnter?": types.function(),
14374
+ "onMouseLeave?": types.function(),
14375
+ "width?": types.number(),
14376
+ "hoveredMenuId?": types.string(),
14377
+ "isHoveredMenuFocused?": types.boolean(),
14378
+ "onScroll?": types.function(),
14379
+ "onKeyDown?": types.function(),
14380
+ "disableKeyboardNavigation?": types.boolean()
14383
14381
  });
14384
14382
  menuRef = (0, _odoo_owl.signal)(null);
14385
14383
  setup() {
@@ -14519,17 +14517,17 @@ set(value) {
14519
14517
  var Popover = class extends Component {
14520
14518
  static template = "o-spreadsheet-Popover";
14521
14519
  props = (0, _odoo_owl.props)({
14522
- anchorRect: types$6.Rect(),
14523
- "containerRect?": types$6.object({}),
14524
- "positioning?": types$6.or([types$6.literal("top-right"), types$6.literal("bottom-left")]),
14525
- "maxWidth?": types$6.Pixel(),
14526
- "maxHeight?": types$6.Pixel(),
14527
- "verticalOffset?": types$6.number(),
14528
- "onMouseWheel?": types$6.function([]),
14529
- "onPopoverHidden?": types$6.function([]),
14530
- "onPopoverMoved?": types$6.function([]),
14531
- "zIndex?": types$6.number(),
14532
- "class?": types$6.string()
14520
+ anchorRect: types.Rect(),
14521
+ "containerRect?": types.object({}),
14522
+ "positioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
14523
+ "maxWidth?": types.Pixel(),
14524
+ "maxHeight?": types.Pixel(),
14525
+ "verticalOffset?": types.number(),
14526
+ "onMouseWheel?": types.function(),
14527
+ "onPopoverHidden?": types.function(),
14528
+ "onPopoverMoved?": types.function(),
14529
+ "zIndex?": types.number(),
14530
+ "class?": types.string()
14533
14531
  }, {
14534
14532
  positioning: "bottom-left",
14535
14533
  verticalOffset: 0,
@@ -14704,19 +14702,19 @@ set(value) {
14704
14702
  Popover
14705
14703
  };
14706
14704
  props = (0, _odoo_owl.props)({
14707
- anchorRect: types$6.Rect(),
14708
- "popoverPositioning?": types$6.or([types$6.literal("top-right"), types$6.literal("bottom-left")]),
14709
- menuItems: types$6.ArrayOf(),
14710
- "depth?": types$6.number(),
14711
- "maxHeight?": types$6.Pixel(),
14712
- onClose: types$6.function([]),
14713
- "onMenuClicked?": types$6.function([types$6.instanceOf(CustomEvent)]),
14714
- "menuId?": types$6.UID(),
14715
- "onMouseOver?": types$6.function([]),
14716
- "width?": types$6.number(),
14717
- "autoSelectFirstItem?": types$6.boolean(),
14718
- "disableKeyboardNavigation?": types$6.boolean(),
14719
- "onKeyboardNavigation?": types$6.function([types$6.instanceOf(KeyboardEvent)])
14705
+ anchorRect: types.Rect(),
14706
+ "popoverPositioning?": types.or([types.literal("top-right"), types.literal("bottom-left")]),
14707
+ menuItems: types.ArrayOf(),
14708
+ "depth?": types.number(),
14709
+ "maxHeight?": types.Pixel(),
14710
+ onClose: types.function(),
14711
+ "onMenuClicked?": types.function(),
14712
+ "menuId?": types.UID(),
14713
+ "onMouseOver?": types.function(),
14714
+ "width?": types.number(),
14715
+ "autoSelectFirstItem?": types.boolean(),
14716
+ "disableKeyboardNavigation?": types.boolean(),
14717
+ "onKeyboardNavigation?": types.function()
14720
14718
  }, {
14721
14719
  depth: 0,
14722
14720
  popoverPositioning: "top-right"
@@ -14962,13 +14960,13 @@ set(value) {
14962
14960
  static template = "o-spreadsheet-Select";
14963
14961
  static components = { Popover };
14964
14962
  props = (0, _odoo_owl.props)({
14965
- onChange: types$6.function([types$6.string()]),
14966
- values: types$6.array(),
14967
- "selectedValue?": types$6.string(),
14968
- "class?": types$6.string(),
14969
- "popoverClass?": types$6.string(),
14970
- "name?": types$6.string(),
14971
- "title?": types$6.string()
14963
+ onChange: types.function(),
14964
+ values: types.array(),
14965
+ "selectedValue?": types.string(),
14966
+ "class?": types.string(),
14967
+ "popoverClass?": types.string(),
14968
+ "name?": types.string(),
14969
+ "title?": types.string()
14972
14970
  });
14973
14971
  selectRef = (0, _odoo_owl.signal)(null);
14974
14972
  dropdownRef = (0, _odoo_owl.signal)(null);
@@ -15076,8 +15074,8 @@ set(value) {
15076
15074
  Select
15077
15075
  };
15078
15076
  props = (0, _odoo_owl.props)({
15079
- chartId: types$6.UID(),
15080
- "hasFullScreenButton?": types$6.boolean()
15077
+ chartId: types.UID(),
15078
+ "hasFullScreenButton?": types.boolean()
15081
15079
  }, { hasFullScreenButton: true });
15082
15080
  fullScreenFigureStore;
15083
15081
  menuState = (0, _odoo_owl.proxy)({
@@ -15146,10 +15144,10 @@ set(value) {
15146
15144
  MenuPopover
15147
15145
  };
15148
15146
  props = (0, _odoo_owl.props)({
15149
- figureUI: types$6.FigureUI(),
15150
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15151
- "isFullScreen?": types$6.boolean(),
15152
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15147
+ figureUI: types.FigureUI(),
15148
+ "editFigureStyle?": types.function(),
15149
+ "isFullScreen?": types.boolean(),
15150
+ "openContextMenu?": types.function()
15153
15151
  });
15154
15152
  carouselTabsRef = (0, _odoo_owl.signal)(null);
15155
15153
  carouselTabsDropdownRef = (0, _odoo_owl.signal)(null);
@@ -15188,6 +15186,12 @@ set(value) {
15188
15186
  this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
15189
15187
  this.env.openSidePanel("CarouselPanel", { figureId: this.props.figureUI.id });
15190
15188
  }
15189
+ onCarouselChartDoubleClick() {
15190
+ if (this.selectedCarouselItem?.type !== "chart") return;
15191
+ const chartId = this.selectedCarouselItem.chartId;
15192
+ this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
15193
+ this.env.openSidePanel("ChartPanel", { chartId });
15194
+ }
15191
15195
  isItemSelected(item) {
15192
15196
  const selectedItem = this.selectedCarouselItem;
15193
15197
  return deepEquals(selectedItem, item);
@@ -15287,10 +15291,10 @@ set(value) {
15287
15291
  static template = "o-spreadsheet-ChartFigure";
15288
15292
  static components = { ChartDashboardMenu };
15289
15293
  props = (0, _odoo_owl.props)({
15290
- figureUI: types$6.FigureUI(),
15291
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15292
- "isFullScreen?": types$6.boolean(),
15293
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15294
+ figureUI: types.FigureUI(),
15295
+ "editFigureStyle?": types.function(),
15296
+ "isFullScreen?": types.boolean(),
15297
+ "openContextMenu?": types.function()
15294
15298
  });
15295
15299
  onDoubleClick() {
15296
15300
  this.env.model.dispatch("SELECT_FIGURE", { figureId: this.props.figureUI.id });
@@ -15318,9 +15322,9 @@ set(value) {
15318
15322
  static template = "o-spreadsheet-ImageFigure";
15319
15323
  static components = {};
15320
15324
  props = (0, _odoo_owl.props)({
15321
- figureUI: types$6.FigureUI(),
15322
- "editFigureStyle?": types$6.function([types$6.CSSProperties()]),
15323
- "openContextMenu?": types$6.function([types$6.Rect(), types$6.function([])])
15325
+ figureUI: types.FigureUI(),
15326
+ "editFigureStyle?": types.function(),
15327
+ "openContextMenu?": types.function()
15324
15328
  });
15325
15329
  get figureId() {
15326
15330
  return this.props.figureUI.id;
@@ -15359,15 +15363,11 @@ set(value) {
15359
15363
  static template = "o-spreadsheet-FigureComponent";
15360
15364
  static components = { MenuPopover };
15361
15365
  props = (0, _odoo_owl.props)({
15362
- figureUI: types$6.FigureUI(),
15363
- style: types$6.string(),
15364
- class: types$6.string(),
15365
- "onMouseDown?": types$6.function([types$6.instanceOf(MouseEvent)]),
15366
- "onClickAnchor?": types$6.function([
15367
- types$6.ResizeDirection(),
15368
- types$6.ResizeDirection(),
15369
- types$6.instanceOf(MouseEvent)
15370
- ])
15366
+ figureUI: types.FigureUI(),
15367
+ style: types.string(),
15368
+ class: types.string(),
15369
+ "onMouseDown?": types.function(),
15370
+ "onClickAnchor?": types.function()
15371
15371
  }, {
15372
15372
  onMouseDown: () => {},
15373
15373
  onClickAnchor: () => {}
@@ -15431,7 +15431,7 @@ set(value) {
15431
15431
  * correctly (and render?) before focusing the element.
15432
15432
  */
15433
15433
  el?.focus({ preventScroll: true });
15434
- });
15434
+ }, () => [this.env.model.getters.getSelectedFigureIds(), this.props.figureUI.id]);
15435
15435
  }
15436
15436
  clickAnchor(dirX, dirY, ev) {
15437
15437
  this.props.onClickAnchor(dirX, dirY, ev);
@@ -24487,18 +24487,18 @@ set(value) {
24487
24487
  //#endregion
24488
24488
  //#region src/components/generic_input/generic_input.ts
24489
24489
  const genericInputPropsDefinition = {
24490
- value: types$6.or([types$6.number(), types$6.string()]),
24491
- onChange: types$6.function([types$6.string()]),
24492
- "onFocused?": types$6.function([]),
24493
- "onBlur?": types$6.function([]),
24494
- "onInput?": types$6.function([types$6.string()]),
24495
- "class?": types$6.string(),
24496
- "id?": types$6.string(),
24497
- "placeholder?": types$6.string(),
24498
- "autofocus?": types$6.boolean(),
24499
- "alwaysShowBorder?": types$6.boolean(),
24500
- "selectContentOnFocus?": types$6.boolean(),
24501
- "resetOnBlur?": types$6.boolean()
24490
+ value: types.or([types.number(), types.string()]),
24491
+ onChange: types.function(),
24492
+ "onFocused?": types.function(),
24493
+ "onBlur?": types.function(),
24494
+ "onInput?": types.function(),
24495
+ "class?": types.string(),
24496
+ "id?": types.string(),
24497
+ "placeholder?": types.string(),
24498
+ "autofocus?": types.boolean(),
24499
+ "alwaysShowBorder?": types.boolean(),
24500
+ "selectContentOnFocus?": types.boolean(),
24501
+ "resetOnBlur?": types.boolean()
24502
24502
  };
24503
24503
  var GenericInput = class extends Component {
24504
24504
  props = (0, _odoo_owl.props)(genericInputPropsDefinition);
@@ -24586,8 +24586,8 @@ set(value) {
24586
24586
  static components = {};
24587
24587
  props = (0, _odoo_owl.props)({
24588
24588
  ...genericInputPropsDefinition,
24589
- value: types$6.string(),
24590
- "errorMessage?": types$6.string()
24589
+ value: types.string(),
24590
+ "errorMessage?": types.string()
24591
24591
  });
24592
24592
  get inputClass() {
24593
24593
  return [
@@ -24604,11 +24604,11 @@ set(value) {
24604
24604
  var ActionButton = class extends Component {
24605
24605
  static template = "o-spreadsheet-ActionButton";
24606
24606
  props = (0, _odoo_owl.props)({
24607
- action: types$6.ActionSpec(),
24608
- "hasTriangleDownIcon?": types$6.boolean(),
24609
- "selectedColor?": types$6.string(),
24610
- "class?": types$6.string(),
24611
- "onClick?": types$6.function()
24607
+ action: types.ActionSpec(),
24608
+ "hasTriangleDownIcon?": types.boolean(),
24609
+ "selectedColor?": types.string(),
24610
+ "class?": types.string(),
24611
+ "onClick?": types.function()
24612
24612
  });
24613
24613
  actionButton = createAction(this.props.action);
24614
24614
  setup() {
@@ -24663,11 +24663,11 @@ set(value) {
24663
24663
  static template = "o-spreadsheet-ColorPicker";
24664
24664
  static components = { Popover };
24665
24665
  props = (0, _odoo_owl.props)({
24666
- onColorPicked: types$6.function([types$6.string()]),
24667
- "currentColor?": types$6.string(),
24668
- "maxHeight?": types$6.Pixel(),
24669
- anchorRect: types$6.Rect(),
24670
- "disableNoColor?": types$6.boolean()
24666
+ onColorPicked: types.function(),
24667
+ "currentColor?": types.string(),
24668
+ "maxHeight?": types.Pixel(),
24669
+ anchorRect: types.Rect(),
24670
+ "disableNoColor?": types.boolean()
24671
24671
  }, { currentColor: "" });
24672
24672
  COLORS = COLOR_PICKER_DEFAULTS;
24673
24673
  state = (0, _odoo_owl.proxy)({
@@ -24806,6 +24806,18 @@ set(value) {
24806
24806
  isSameColor(color1, color2) {
24807
24807
  return isSameColor(color1, color2);
24808
24808
  }
24809
+ get canUseEyeDropper() {
24810
+ return !!globalThis.EyeDropper && !this.env.model.getters.isDarkMode();
24811
+ }
24812
+ async activateEyedropper() {
24813
+ if (!globalThis.EyeDropper) return;
24814
+ try {
24815
+ const result = await new globalThis.EyeDropper().open();
24816
+ if (result && result.sRGBHex) this.props.onColorPicked(toHex(result.sRGBHex));
24817
+ } catch (error) {
24818
+ if (error.name !== "AbortError") throw error;
24819
+ }
24820
+ }
24809
24821
  };
24810
24822
 
24811
24823
  //#endregion
@@ -24814,15 +24826,15 @@ set(value) {
24814
24826
  static template = "o-spreadsheet-ColorPickerWidget";
24815
24827
  static components = { ColorPicker };
24816
24828
  props = (0, _odoo_owl.props)({
24817
- "currentColor?": types$6.string(),
24818
- toggleColorPicker: types$6.function([]),
24819
- showColorPicker: types$6.boolean(),
24820
- onColorPicked: types$6.function([types$6.string()]),
24821
- icon: types$6.string(),
24822
- "title?": types$6.string(),
24823
- "disabled?": types$6.boolean(),
24824
- "dropdownMaxHeight?": types$6.Pixel(),
24825
- "class?": types$6.string()
24829
+ "currentColor?": types.string(),
24830
+ toggleColorPicker: types.function(),
24831
+ showColorPicker: types.boolean(),
24832
+ onColorPicked: types.function(),
24833
+ icon: types.string(),
24834
+ "title?": types.string(),
24835
+ "disabled?": types.boolean(),
24836
+ "dropdownMaxHeight?": types.Pixel(),
24837
+ "class?": types.string()
24826
24838
  });
24827
24839
  colorPickerButtonRef = (0, _odoo_owl.signal)(null);
24828
24840
  get iconStyle() {
@@ -24839,16 +24851,16 @@ set(value) {
24839
24851
  static template = "o-spreadsheet-NumberEditor";
24840
24852
  static components = { Popover };
24841
24853
  props = (0, _odoo_owl.props)({
24842
- currentValue: types$6.number(),
24843
- onValueChange: types$6.function([types$6.number()]),
24844
- "onToggle?": types$6.function([]),
24845
- "onFocusInput?": types$6.function([]),
24846
- class: types$6.string(),
24847
- "valueIcon?": types$6.string(),
24848
- min: types$6.number(),
24849
- max: types$6.number(),
24850
- title: types$6.string(),
24851
- valueList: types$6.array(types$6.number())
24854
+ currentValue: types.number(),
24855
+ onValueChange: types.function(),
24856
+ "onToggle?": types.function(),
24857
+ "onFocusInput?": types.function(),
24858
+ class: types.string(),
24859
+ "valueIcon?": types.string(),
24860
+ min: types.number(),
24861
+ max: types.number(),
24862
+ title: types.string(),
24863
+ valueList: types.array(types.number())
24852
24864
  }, { onFocusInput: () => {} });
24853
24865
  dropdown = (0, _odoo_owl.proxy)({ isOpen: false });
24854
24866
  inputRef = (0, _odoo_owl.signal)(null);
@@ -24929,11 +24941,11 @@ set(value) {
24929
24941
  static template = "o-spreadsheet-FontSizeEditor";
24930
24942
  static components = { NumberEditor };
24931
24943
  props = (0, _odoo_owl.props)({
24932
- currentFontSize: types$6.number(),
24933
- onFontSizeChanged: types$6.function([types$6.number()]),
24934
- "onToggle?": types$6.function([]),
24935
- "onFocusInput?": types$6.function([]),
24936
- class: types$6.string()
24944
+ currentFontSize: types.number(),
24945
+ onFontSizeChanged: types.function(),
24946
+ "onToggle?": types.function(),
24947
+ "onFocusInput?": types.function(),
24948
+ class: types.string()
24937
24949
  }, { onFocusInput: () => {} });
24938
24950
  fontSizes = FONT_SIZES;
24939
24951
  };
@@ -24948,13 +24960,13 @@ set(value) {
24948
24960
  FontSizeEditor
24949
24961
  };
24950
24962
  props = (0, _odoo_owl.props)({
24951
- style: types$6.ChartStyle(),
24952
- updateStyle: types$6.function([types$6.ChartStyle()]),
24953
- "defaultStyle?": types$6.object({}),
24954
- "hasVerticalAlign?": types$6.boolean(),
24955
- "hasHorizontalAlign?": types$6.boolean(),
24956
- "hasBackgroundColor?": types$6.boolean(),
24957
- "class?": types$6.string()
24963
+ style: types.ChartStyle(),
24964
+ updateStyle: types.function(),
24965
+ "defaultStyle?": types.object({}),
24966
+ "hasVerticalAlign?": types.boolean(),
24967
+ "hasHorizontalAlign?": types.boolean(),
24968
+ "hasBackgroundColor?": types.boolean(),
24969
+ "class?": types.string()
24958
24970
  });
24959
24971
  openedEl = null;
24960
24972
  setup() {
@@ -25137,7 +25149,7 @@ set(value) {
25137
25149
  var CogWheelMenu = class extends Component {
25138
25150
  static template = "o-spreadsheet-CogWheelMenu";
25139
25151
  static components = { MenuPopover };
25140
- props = (0, _odoo_owl.props)({ items: types$6.array(types$6.ActionSpec()) });
25152
+ props = (0, _odoo_owl.props)({ items: types.array(types.ActionSpec()) });
25141
25153
  buttonRef = (0, _odoo_owl.signal)(null);
25142
25154
  menuState = (0, _odoo_owl.proxy)({
25143
25155
  isOpen: false,
@@ -25158,9 +25170,9 @@ set(value) {
25158
25170
  var Section = class extends Component {
25159
25171
  static template = "o_spreadsheet.Section";
25160
25172
  props = (0, _odoo_owl.props)({
25161
- "class?": types$6.string(),
25162
- "title?": types$6.string(),
25163
- slots: types$6.object()
25173
+ "class?": types.string(),
25174
+ "title?": types.string(),
25175
+ slots: types.object()
25164
25176
  });
25165
25177
  };
25166
25178
 
@@ -25175,8 +25187,8 @@ set(value) {
25175
25187
  CogWheelMenu
25176
25188
  };
25177
25189
  props = (0, _odoo_owl.props)({
25178
- onCloseSidePanel: types$6.function([]),
25179
- figureId: types$6.UID()
25190
+ onCloseSidePanel: types.function(),
25191
+ figureId: types.UID()
25180
25192
  });
25181
25193
  DEFAULT_CAROUSEL_TITLE_STYLE = DEFAULT_CAROUSEL_TITLE_STYLE;
25182
25194
  dragAndDrop = useDragAndDropListItems();
@@ -25385,13 +25397,13 @@ set(value) {
25385
25397
  var Checkbox = class extends Component {
25386
25398
  static template = "o-spreadsheet.Checkbox";
25387
25399
  props = (0, _odoo_owl.props)({
25388
- "label?": types$6.string(),
25389
- "value?": types$6.boolean(),
25390
- "className?": types$6.string(),
25391
- "name?": types$6.string(),
25392
- "title?": types$6.string(),
25393
- "disabled?": types$6.boolean(),
25394
- onChange: types$6.function([types$6.boolean()])
25400
+ "label?": types.string(),
25401
+ "value?": types.boolean(),
25402
+ "className?": types.string(),
25403
+ "name?": types.string(),
25404
+ "title?": types.string(),
25405
+ "disabled?": types.boolean(),
25406
+ onChange: types.function()
25395
25407
  }, { value: false });
25396
25408
  onChange(ev) {
25397
25409
  const value = ev.target.checked;
@@ -25402,10 +25414,10 @@ set(value) {
25402
25414
  //#endregion
25403
25415
  //#region src/components/side_panel/chart/common.ts
25404
25416
  const chartSidePanelPropsDefinition = {
25405
- chartId: types$6.UID(),
25406
- definition: types$6.object({}),
25407
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
25408
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
25417
+ chartId: types.UID(),
25418
+ definition: types.object({}),
25419
+ canUpdateChart: types.function(),
25420
+ updateChart: types.function()
25409
25421
  };
25410
25422
 
25411
25423
  //#endregion
@@ -25894,20 +25906,20 @@ set(value) {
25894
25906
  var SelectionInput = class extends Component {
25895
25907
  static template = "o-spreadsheet-SelectionInput";
25896
25908
  props = (0, _odoo_owl.props)({
25897
- ranges: types$6.array(types$6.string()),
25898
- "hasSingleRange?": types$6.boolean(),
25899
- "required?": types$6.boolean(),
25900
- "autofocus?": types$6.boolean(),
25901
- "isInvalid?": types$6.boolean(),
25902
- "class?": types$6.string(),
25903
- "onSelectionChanged?": types$6.function([types$6.array(types$6.string())]),
25904
- "onSelectionConfirmed?": types$6.function([]),
25905
- "onSelectionReordered?": types$6.function([types$6.array(types$6.number())]),
25906
- "onSelectionRemoved?": types$6.function([types$6.number()]),
25907
- "onInputFocused?": types$6.function([]),
25908
- "colors?": types$6.ArrayOf(),
25909
- "disabledRanges?": types$6.array(types$6.boolean()),
25910
- "disabledRangeTitle?": types$6.string()
25909
+ ranges: types.array(types.string()),
25910
+ "hasSingleRange?": types.boolean(),
25911
+ "required?": types.boolean(),
25912
+ "autofocus?": types.boolean(),
25913
+ "isInvalid?": types.boolean(),
25914
+ "class?": types.string(),
25915
+ "onSelectionChanged?": types.function(),
25916
+ "onSelectionConfirmed?": types.function(),
25917
+ "onSelectionReordered?": types.function(),
25918
+ "onSelectionRemoved?": types.function(),
25919
+ "onInputFocused?": types.function(),
25920
+ "colors?": types.ArrayOf(),
25921
+ "disabledRanges?": types.array(types.boolean()),
25922
+ "disabledRangeTitle?": types.string()
25911
25923
  }, {
25912
25924
  colors: [],
25913
25925
  disabledRanges: []
@@ -26076,18 +26088,18 @@ set(value) {
26076
26088
  Section
26077
26089
  };
26078
26090
  props = (0, _odoo_owl.props)({
26079
- ranges: types$6.ArrayOf(),
26080
- "dataSetStyles?": types$6.DataSetStyle(),
26081
- "hasSingleRange?": types$6.boolean(),
26082
- onSelectionChanged: types$6.function([types$6.array(types$6.string())]),
26083
- "onSelectionReordered?": types$6.function([types$6.array(types$6.number())]),
26084
- "onSelectionRemoved?": types$6.function([types$6.number()]),
26085
- onSelectionConfirmed: types$6.function([]),
26086
- "maxNumberOfUsedRanges?": types$6.number(),
26087
- "title?": types$6.string(),
26088
- "datasetOrientation?": types$6.or([types$6.literal("rows"), types$6.literal("columns")]),
26089
- "canChangeDatasetOrientation?": types$6.boolean(),
26090
- "onFlipAxis?": types$6.function([types$6.string()])
26091
+ ranges: types.ArrayOf(),
26092
+ "dataSetStyles?": types.DataSetStyle(),
26093
+ "hasSingleRange?": types.boolean(),
26094
+ onSelectionChanged: types.function(),
26095
+ "onSelectionReordered?": types.function(),
26096
+ "onSelectionRemoved?": types.function(),
26097
+ onSelectionConfirmed: types.function(),
26098
+ "maxNumberOfUsedRanges?": types.number(),
26099
+ "title?": types.string(),
26100
+ "datasetOrientation?": types.or([types.literal("rows"), types.literal("columns")]),
26101
+ "canChangeDatasetOrientation?": types.boolean(),
26102
+ "onFlipAxis?": types.function()
26091
26103
  });
26092
26104
  get ranges() {
26093
26105
  return this.props.ranges.map((r) => r.dataRange);
@@ -26117,13 +26129,13 @@ set(value) {
26117
26129
  Section
26118
26130
  };
26119
26131
  props = (0, _odoo_owl.props)({
26120
- "title?": types$6.string(),
26121
- range: types$6.string(),
26122
- "class?": types$6.string(),
26123
- isInvalid: types$6.boolean(),
26124
- onSelectionChanged: types$6.function([types$6.string()]),
26125
- onSelectionConfirmed: types$6.function([]),
26126
- "options?": types$6.ArrayOf()
26132
+ "title?": types.string(),
26133
+ range: types.string(),
26134
+ "class?": types.string(),
26135
+ isInvalid: types.boolean(),
26136
+ onSelectionChanged: types.function(),
26137
+ onSelectionConfirmed: types.function(),
26138
+ "options?": types.ArrayOf()
26127
26139
  }, {
26128
26140
  title: _t("Categories / Labels"),
26129
26141
  options: []
@@ -26142,14 +26154,13 @@ set(value) {
26142
26154
  ChartLabelRange
26143
26155
  };
26144
26156
  props = (0, _odoo_owl.props)({
26145
- chartId: types$6.UID(),
26146
- definition: types$6.ChartDefinitionWithDataSource(),
26147
- updateChart: types$6.function([]),
26148
- canUpdateChart: types$6.function([]),
26149
- "onErrorMessagesChanged?": types$6.function([types$6.array(types$6.string())]),
26150
- "dataSeriesTitle?": types$6.string(),
26151
- "labelRangeTitle?": types$6.string(),
26152
- "getLabelRangeOptions?": types$6.function([])
26157
+ chartId: types.UID(),
26158
+ definition: types.ChartDefinitionWithDataSource(),
26159
+ updateChart: types.function(),
26160
+ canUpdateChart: types.function(),
26161
+ "dataSeriesTitle?": types.string(),
26162
+ "labelRangeTitle?": types.string(),
26163
+ "getLabelRangeOptions?": types.function
26153
26164
  });
26154
26165
  get DataSourceComponent() {
26155
26166
  const dataSourceType = this.props.definition.dataSource.type;
@@ -26162,13 +26173,13 @@ set(value) {
26162
26173
  var ValidationMessages = class extends Component {
26163
26174
  static template = "o-spreadsheet-ValidationMessages";
26164
26175
  props = (0, _odoo_owl.props)({
26165
- messages: types$6.array(types$6.string()),
26166
- msgType: types$6.or([
26167
- types$6.literal("warning"),
26168
- types$6.literal("error"),
26169
- types$6.literal("info")
26176
+ messages: types.array(types.string()),
26177
+ msgType: types.or([
26178
+ types.literal("warning"),
26179
+ types.literal("error"),
26180
+ types.literal("info")
26170
26181
  ]),
26171
- "singleBox?": types$6.boolean()
26182
+ "singleBox?": types.boolean()
26172
26183
  });
26173
26184
  get divClasses() {
26174
26185
  if (this.props.msgType === "warning") return "o-validation-warning";
@@ -26188,7 +26199,7 @@ set(value) {
26188
26199
  Section,
26189
26200
  ValidationMessages
26190
26201
  };
26191
- props = (0, _odoo_owl.props)({ messages: types$6.array(types$6.string()) });
26202
+ props = (0, _odoo_owl.props)({ messages: types.array(types.string()) });
26192
26203
  };
26193
26204
 
26194
26205
  //#endregion
@@ -26248,7 +26259,7 @@ set(value) {
26248
26259
  //#region src/components/side_panel/components/collapse/collapse.ts
26249
26260
  var Collapse = class extends Component {
26250
26261
  static template = "o-spreadsheet-Collapse";
26251
- props = (0, _odoo_owl.props)({ isCollapsed: types$6.boolean() });
26262
+ props = (0, _odoo_owl.props)({ isCollapsed: types.boolean() });
26252
26263
  contentRef = (0, _odoo_owl.signal)(null);
26253
26264
  setup() {
26254
26265
  (0, _odoo_owl.onMounted)(() => {
@@ -26282,9 +26293,9 @@ set(value) {
26282
26293
  static template = "o-spreadsheet-SidePanelCollapsible";
26283
26294
  static components = { Collapse };
26284
26295
  props = (0, _odoo_owl.props)({
26285
- "title?": types$6.string(),
26286
- "isInitiallyCollapsed?": types$6.boolean(),
26287
- "class?": types$6.string()
26296
+ "title?": types.string(),
26297
+ "isInitiallyCollapsed?": types.boolean(),
26298
+ "class?": types.string()
26288
26299
  });
26289
26300
  state = (0, _odoo_owl.proxy)({ isCollapsed: !!this.props.isInitiallyCollapsed });
26290
26301
  toggle() {
@@ -26299,8 +26310,8 @@ set(value) {
26299
26310
  static components = {};
26300
26311
  props = (0, _odoo_owl.props)({
26301
26312
  ...genericInputPropsDefinition,
26302
- "min?": types$6.number(),
26303
- "max?": types$6.number()
26313
+ "min?": types.number(),
26314
+ "max?": types.number()
26304
26315
  });
26305
26316
  debouncedOnChange = debounce(this.props.onChange.bind(this), 100, true);
26306
26317
  save() {
@@ -26323,9 +26334,9 @@ set(value) {
26323
26334
  var BadgeSelection = class extends Component {
26324
26335
  static template = "o-spreadsheet.BadgeSelection";
26325
26336
  props = (0, _odoo_owl.props)({
26326
- choices: types$6.ArrayOf(),
26327
- onChange: types$6.function([types$6.string()]),
26328
- selectedValue: types$6.string()
26337
+ choices: types.ArrayOf(),
26338
+ onChange: types.function(),
26339
+ selectedValue: types.string()
26329
26340
  });
26330
26341
  };
26331
26342
 
@@ -26339,13 +26350,13 @@ set(value) {
26339
26350
  TextInput
26340
26351
  };
26341
26352
  props = (0, _odoo_owl.props)({
26342
- "title?": types$6.string(),
26343
- "placeholder?": types$6.string(),
26344
- updateTitle: types$6.function([types$6.string()]),
26345
- "name?": types$6.string(),
26346
- style: types$6.TitleDesign(),
26347
- "defaultStyle?": types$6.object({}),
26348
- updateStyle: types$6.function([types$6.object({})])
26353
+ "title?": types.string(),
26354
+ "placeholder?": types.string(),
26355
+ updateTitle: types.function(),
26356
+ "name?": types.string(),
26357
+ style: types.TitleDesign(),
26358
+ "defaultStyle?": types.object({}),
26359
+ updateStyle: types.function()
26349
26360
  }, {
26350
26361
  title: "",
26351
26362
  placeholder: ""
@@ -26368,10 +26379,10 @@ set(value) {
26368
26379
  DateInput
26369
26380
  };
26370
26381
  props = (0, _odoo_owl.props)({
26371
- chartId: types$6.UID(),
26372
- definition: types$6.ChartWithAxisDefinition(),
26373
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26374
- axesList: types$6.ArrayOf()
26382
+ chartId: types.UID(),
26383
+ definition: types.ChartWithAxisDefinition(),
26384
+ updateChart: types.function(),
26385
+ axesList: types.ArrayOf()
26375
26386
  });
26376
26387
  state = (0, _odoo_owl.proxy)({ currentAxis: "x" });
26377
26388
  defaultFontSize = 12;
@@ -26543,11 +26554,11 @@ set(value) {
26543
26554
  var RadioSelection = class extends Component {
26544
26555
  static template = "o-spreadsheet.RadioSelection";
26545
26556
  props = (0, _odoo_owl.props)({
26546
- choices: types$6.ArrayOf(),
26547
- onChange: types$6.function([types$6.any()]),
26548
- selectedValue: types$6.string(),
26549
- name: types$6.string(),
26550
- "direction?": types$6.or([types$6.literal("horizontal"), types$6.literal("vertical")])
26557
+ choices: types.ArrayOf(),
26558
+ onChange: types.function(),
26559
+ selectedValue: types.string(),
26560
+ name: types.string(),
26561
+ "direction?": types.or([types.literal("horizontal"), types.literal("vertical")])
26551
26562
  }, { direction: "horizontal" });
26552
26563
  };
26553
26564
 
@@ -26560,10 +26571,10 @@ set(value) {
26560
26571
  ColorPicker
26561
26572
  };
26562
26573
  props = (0, _odoo_owl.props)({
26563
- "currentColor?": types$6.string(),
26564
- "title?": types$6.string(),
26565
- onColorPicked: types$6.function([types$6.string()]),
26566
- "disableNoColor?": types$6.boolean()
26574
+ "currentColor?": types.string(),
26575
+ "title?": types.string(),
26576
+ onColorPicked: types.function(),
26577
+ "disableNoColor?": types.boolean()
26567
26578
  });
26568
26579
  colorPickerButtonRef = (0, _odoo_owl.signal)(null);
26569
26580
  state;
@@ -26601,11 +26612,11 @@ set(value) {
26601
26612
  RadioSelection
26602
26613
  };
26603
26614
  props = (0, _odoo_owl.props)({
26604
- chartId: types$6.UID(),
26605
- definition: types$6.ChartDefinition(),
26606
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26607
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26608
- "defaultChartTitleFontSize?": types$6.number()
26615
+ chartId: types.UID(),
26616
+ definition: types.ChartDefinition(),
26617
+ canUpdateChart: types.function(),
26618
+ updateChart: types.function(),
26619
+ "defaultChartTitleFontSize?": types.number()
26609
26620
  }, { defaultChartTitleFontSize: 16 });
26610
26621
  state;
26611
26622
  setup() {
@@ -26662,11 +26673,11 @@ set(value) {
26662
26673
  Select
26663
26674
  };
26664
26675
  props = (0, _odoo_owl.props)({
26665
- chartId: types$6.string(),
26666
- definition: types$6.ChartDefinitionWithDataSource(),
26667
- canUpdateChart: types$6.function(),
26668
- updateChart: types$6.function(),
26669
- "isDisabled?": types$6.boolean()
26676
+ chartId: types.string(),
26677
+ definition: types.ChartDefinitionWithDataSource(),
26678
+ canUpdateChart: types.function(),
26679
+ updateChart: types.function(),
26680
+ "isDisabled?": types.boolean()
26670
26681
  }, { isDisabled: false });
26671
26682
  updateLegendPosition(value) {
26672
26683
  this.props.updateChart(this.props.chartId, { legendPosition: value });
@@ -26708,10 +26719,10 @@ set(value) {
26708
26719
  Select
26709
26720
  };
26710
26721
  props = (0, _odoo_owl.props)({
26711
- chartId: types$6.UID(),
26712
- definition: types$6.ChartDefinitionWithDataSource(),
26713
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26714
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
26722
+ chartId: types.UID(),
26723
+ definition: types.ChartDefinitionWithDataSource(),
26724
+ updateChart: types.function(),
26725
+ canUpdateChart: types.function()
26715
26726
  });
26716
26727
  state = (0, _odoo_owl.proxy)({ dataSetId: this.getDataSeries()[0]?.dataSetId || "" });
26717
26728
  getRuntime() {
@@ -26773,10 +26784,10 @@ set(value) {
26773
26784
  Select
26774
26785
  };
26775
26786
  props = (0, _odoo_owl.props)({
26776
- chartId: types$6.UID(),
26777
- definition: types$6.ChartDefinitionWithDataSource(),
26778
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
26779
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
26787
+ chartId: types.UID(),
26788
+ definition: types.ChartDefinitionWithDataSource(),
26789
+ updateChart: types.function(),
26790
+ canUpdateChart: types.function()
26780
26791
  });
26781
26792
  axisChoices = CHART_AXIS_CHOICES;
26782
26793
  updateDataSeriesAxis(dataSetId, axis) {
@@ -26913,11 +26924,11 @@ set(value) {
26913
26924
  static template = "o-spreadsheet-ChartShowValues";
26914
26925
  static components = { Checkbox };
26915
26926
  props = (0, _odoo_owl.props)({
26916
- chartId: types$6.UID(),
26917
- definition: types$6.ChartDefinitionWithDataSource(),
26918
- canUpdateChart: types$6.function([]),
26919
- updateChart: types$6.function([]),
26920
- "defaultValue?": types$6.boolean()
26927
+ chartId: types.UID(),
26928
+ definition: types.ChartDefinitionWithDataSource(),
26929
+ canUpdateChart: types.function(),
26930
+ updateChart: types.function(),
26931
+ "defaultValue?": types.boolean()
26921
26932
  });
26922
26933
  };
26923
26934
 
@@ -29551,15 +29562,15 @@ set(value) {
29551
29562
  ChartLabelRange
29552
29563
  };
29553
29564
  props = (0, _odoo_owl.props)({
29554
- chartId: types$6.UID(),
29555
- definition: types$6.ChartDefinitionWithDataSource(),
29556
- dataSource: types$6.ChartRangeDataSource(),
29557
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
29558
- canUpdateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult()),
29559
- "onErrorMessagesChanged?": types$6.function([types$6.array(types$6.string())]),
29560
- "dataSeriesTitle?": types$6.string(),
29561
- "labelRangeTitle?": types$6.string(),
29562
- "getLabelRangeOptions?": types$6.function([])
29565
+ chartId: types.UID(),
29566
+ definition: types.ChartDefinitionWithDataSource(),
29567
+ dataSource: types.ChartRangeDataSource(),
29568
+ updateChart: types.function(),
29569
+ canUpdateChart: types.function(),
29570
+ "onErrorMessagesChanged?": types.function(),
29571
+ "dataSeriesTitle?": types.string(),
29572
+ "labelRangeTitle?": types.string(),
29573
+ "getLabelRangeOptions?": types.function
29563
29574
  });
29564
29575
  state = (0, _odoo_owl.proxy)({
29565
29576
  datasetDispatchResult: void 0,
@@ -30411,8 +30422,8 @@ set(value) {
30411
30422
  Popover
30412
30423
  };
30413
30424
  props = (0, _odoo_owl.props)({
30414
- definition: types$6.object({ "colorScale?": types$6.ChartColorScale() }),
30415
- onUpdateColorScale: types$6.function([types$6.ChartColorScale()])
30425
+ definition: types.object({ "colorScale?": types.ChartColorScale() }),
30426
+ onUpdateColorScale: types.function()
30416
30427
  });
30417
30428
  colorScales = COLORSCALES.map((colorScale) => ({
30418
30429
  value: colorScale,
@@ -30614,7 +30625,7 @@ set(value) {
30614
30625
  };
30615
30626
  props = (0, _odoo_owl.props)({
30616
30627
  ...chartSidePanelPropsDefinition,
30617
- definition: types$6.FunnelChartDefinition()
30628
+ definition: types.FunnelChartDefinition()
30618
30629
  });
30619
30630
  getFunnelColorItems() {
30620
30631
  const labels = this.env.model.getters.getChartRuntime(this.props.chartId).chartJsConfig.data.labels || [];
@@ -30664,10 +30675,10 @@ set(value) {
30664
30675
  var TextValueProvider = class extends Component {
30665
30676
  static template = "o-spreadsheet-TextValueProvider";
30666
30677
  props = (0, _odoo_owl.props)({
30667
- proposals: types$6.array(types$6.AutoCompleteProposal()),
30668
- "selectedIndex?": types$6.number(),
30669
- onValueSelected: types$6.function([types$6.AutoCompleteProposal()]),
30670
- onValueHovered: types$6.function([types$6.string()])
30678
+ proposals: types.array(types.AutoCompleteProposal()),
30679
+ "selectedIndex?": types.number(),
30680
+ onValueSelected: types.function(),
30681
+ onValueHovered: types.function()
30671
30682
  });
30672
30683
  autoCompleteListRef = (0, _odoo_owl.signal)(null);
30673
30684
  setup() {
@@ -30887,9 +30898,9 @@ set(value) {
30887
30898
  static template = "o-spreadsheet-FunctionDescriptionProvider";
30888
30899
  static components = { Collapse };
30889
30900
  props = (0, _odoo_owl.props)({
30890
- functionDescription: types$6.FunctionDescription(),
30891
- argsToFocus: types$6.array(types$6.number()),
30892
- "repeatingArgGroupIndex?": types$6.number()
30901
+ functionDescription: types.FunctionDescription(),
30902
+ argsToFocus: types.array(types.number()),
30903
+ "repeatingArgGroupIndex?": types.number()
30893
30904
  });
30894
30905
  state = (0, _odoo_owl.proxy)({ isCollapsed: true });
30895
30906
  toggle() {
@@ -30956,8 +30967,8 @@ set(value) {
30956
30967
  static template = "o-spreadsheet-SpeechBubble";
30957
30968
  static components = {};
30958
30969
  props = (0, _odoo_owl.props)({
30959
- content: types$6.string(),
30960
- anchorRect: types$6.Rect()
30970
+ content: types.string(),
30971
+ anchorRect: types.Rect()
30961
30972
  });
30962
30973
  spreadsheetRect = useSpreadsheetRect();
30963
30974
  bubbleRef = (0, _odoo_owl.signal)(null);
@@ -30991,18 +31002,18 @@ set(value) {
30991
31002
  SpeechBubble
30992
31003
  };
30993
31004
  props = (0, _odoo_owl.props)({
30994
- focus: types$6.ComposerFocusType(),
30995
- "inputStyle?": types$6.string(),
30996
- "rect?": types$6.Rect(),
30997
- "delimitation?": types$6.DOMDimension(),
30998
- "onComposerCellFocused?": types$6.function([types$6.string()]),
30999
- onComposerContentFocused: types$6.function([types$6.ComposerSelection()]),
31000
- "isDefaultFocus?": types$6.boolean(),
31001
- "onInputContextMenu?": types$6.function([types$6.instanceOf(MouseEvent)]),
31002
- composerStore: types$6.Store(),
31003
- "placeholder?": types$6.string(),
31004
- "inputMode?": types$6.string(),
31005
- "showAssistant?": types$6.boolean()
31005
+ focus: types.ComposerFocusType(),
31006
+ "inputStyle?": types.string(),
31007
+ "rect?": types.Rect(),
31008
+ "delimitation?": types.DOMDimension(),
31009
+ "onComposerCellFocused?": types.function(),
31010
+ onComposerContentFocused: types.function(),
31011
+ "isDefaultFocus?": types.boolean(),
31012
+ "onInputContextMenu?": types.function(),
31013
+ composerStore: types.Store(),
31014
+ "placeholder?": types.string(),
31015
+ "inputMode?": types.string(),
31016
+ "showAssistant?": types.boolean()
31006
31017
  }, {
31007
31018
  inputStyle: "",
31008
31019
  isDefaultFocus: false,
@@ -32575,17 +32586,17 @@ set(value) {
32575
32586
  static template = "o-spreadsheet-StandaloneComposer";
32576
32587
  static components = { Composer };
32577
32588
  props = (0, _odoo_owl.props)({
32578
- onConfirm: types$6.function([types$6.string()]),
32579
- "composerContent?": types$6.string(),
32580
- defaultRangeSheetId: types$6.UID(),
32581
- "defaultStatic?": types$6.boolean(),
32582
- "contextualAutocomplete?": types$6.AutoCompleteProviderDefinition(),
32583
- "placeholder?": types$6.string(),
32584
- "title?": types$6.string(),
32585
- "class?": types$6.string(),
32586
- "invalid?": types$6.boolean(),
32587
- "autofocus?": types$6.boolean(),
32588
- "getContextualColoredSymbolToken?": types$6.function([types$6.Token()], types$6.Color())
32589
+ onConfirm: types.function(),
32590
+ "composerContent?": types.string(),
32591
+ defaultRangeSheetId: types.UID(),
32592
+ "defaultStatic?": types.boolean(),
32593
+ "contextualAutocomplete?": types.AutoCompleteProviderDefinition(),
32594
+ "placeholder?": types.string(),
32595
+ "title?": types.string(),
32596
+ "class?": types.string(),
32597
+ "invalid?": types.boolean(),
32598
+ "autofocus?": types.boolean(),
32599
+ "getContextualColoredSymbolToken?": types.function()
32589
32600
  }, {
32590
32601
  composerContent: "",
32591
32602
  defaultStatic: false
@@ -32785,9 +32796,9 @@ set(value) {
32785
32796
  Select
32786
32797
  };
32787
32798
  props = (0, _odoo_owl.props)({
32788
- chartId: types$6.UID(),
32789
- definition: types$6.GeoChartDefinition(),
32790
- updateChart: types$6.function([types$6.UID(), types$6.object({})], types$6.DispatchResult())
32799
+ chartId: types.UID(),
32800
+ definition: types.GeoChartDefinition(),
32801
+ updateChart: types.function()
32791
32802
  });
32792
32803
  updateSelectedRegion(value) {
32793
32804
  this.props.updateChart(this.props.chartId, { region: value });
@@ -32939,8 +32950,8 @@ set(value) {
32939
32950
  NumberInput
32940
32951
  };
32941
32952
  props = (0, _odoo_owl.props)({
32942
- onValueChange: types$6.function([types$6.number()]),
32943
- value: types$6.number()
32953
+ onValueChange: types.function(),
32954
+ value: types.number()
32944
32955
  });
32945
32956
  onChange(value) {
32946
32957
  if (!isNaN(Number(value))) this.props.onValueChange(clip(Number(value), 0, 95));
@@ -33262,9 +33273,9 @@ set(value) {
33262
33273
  RoundColorPicker
33263
33274
  };
33264
33275
  props = (0, _odoo_owl.props)({
33265
- chartId: types$6.UID(),
33266
- definition: types$6.TreeMapChartDefinition(),
33267
- onColorChanged: types$6.function([types$6.TreeMapCategoryColorOptions()], types$6.DispatchResult())
33276
+ chartId: types.UID(),
33277
+ definition: types.TreeMapChartDefinition(),
33278
+ onColorChanged: types.function()
33268
33279
  });
33269
33280
  get coloringOptions() {
33270
33281
  const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
@@ -33294,9 +33305,9 @@ set(value) {
33294
33305
  static template = "o-spreadsheet-TreeMapColorScale";
33295
33306
  static components = { RoundColorPicker };
33296
33307
  props = (0, _odoo_owl.props)({
33297
- chartId: types$6.UID(),
33298
- definition: types$6.TreeMapChartDefinition(),
33299
- onColorChanged: types$6.function([types$6.TreeMapColorScaleOptions()], types$6.DispatchResult())
33308
+ chartId: types.UID(),
33309
+ definition: types.TreeMapChartDefinition(),
33310
+ onColorChanged: types.function()
33300
33311
  });
33301
33312
  get coloringOptions() {
33302
33313
  const coloringOptions = this.props.definition.coloringOptions ?? TreeMapChartDefaults.coloringOptions;
@@ -33511,8 +33522,8 @@ set(value) {
33511
33522
  Popover
33512
33523
  };
33513
33524
  props = (0, _odoo_owl.props)({
33514
- chartId: types$6.UID(),
33515
- chartPanelStore: types$6.Store()
33525
+ chartId: types.UID(),
33526
+ chartPanelStore: types.Store()
33516
33527
  });
33517
33528
  categories = chartCategories;
33518
33529
  chartTypeByCategories = {};
@@ -33689,8 +33700,8 @@ set(value) {
33689
33700
  ChartTypePicker
33690
33701
  };
33691
33702
  props = (0, _odoo_owl.props)({
33692
- onCloseSidePanel: types$6.function([]),
33693
- chartId: types$6.UID()
33703
+ onCloseSidePanel: types.function(),
33704
+ chartId: types.UID()
33694
33705
  });
33695
33706
  store;
33696
33707
  get chartId() {
@@ -34088,7 +34099,7 @@ set(value) {
34088
34099
  BadgeSelection,
34089
34100
  Section
34090
34101
  };
34091
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
34102
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
34092
34103
  state = (0, _odoo_owl.proxy)({
34093
34104
  currentChart: "count",
34094
34105
  currentFrequencyOrder: "descending",
@@ -34331,7 +34342,7 @@ set(value) {
34331
34342
  ColorPickerWidget,
34332
34343
  Select
34333
34344
  };
34334
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
34345
+ props = (0, _odoo_owl.props)({ store: types.Store() });
34335
34346
  getTextDecoration = getTextDecoration;
34336
34347
  get rule() {
34337
34348
  return this.props.store.state.rules.cellIs;
@@ -34342,10 +34353,10 @@ set(value) {
34342
34353
  //#region src/components/side_panel/criterion_form/criterion_form.ts
34343
34354
  var CriterionForm = class extends Component {
34344
34355
  props = (0, _odoo_owl.props)({
34345
- criterion: types$6.object({}),
34346
- onCriterionChanged: types$6.function([types$6.object({})]),
34347
- "disableFormulas?": types$6.boolean(),
34348
- "autofocus?": types$6.boolean()
34356
+ criterion: types.object({}),
34357
+ onCriterionChanged: types.function(),
34358
+ "disableFormulas?": types.boolean(),
34359
+ "autofocus?": types.boolean()
34349
34360
  });
34350
34361
  setup() {
34351
34362
  const composerFocusStore = useStore(ComposerFocusStore);
@@ -34929,14 +34940,14 @@ set(value) {
34929
34940
  static template = "o-spreadsheet-CriterionInput";
34930
34941
  static components = { StandaloneComposer };
34931
34942
  props = (0, _odoo_owl.props)({
34932
- "value?": types$6.string(),
34933
- criterionType: types$6.DataValidationCriterionType(),
34934
- onValueChanged: types$6.function([types$6.string()]),
34935
- "onKeyDown?": types$6.function([types$6.instanceOf(KeyboardEvent)]),
34936
- "focused?": types$6.boolean(),
34937
- "onBlur?": types$6.function([]),
34938
- "onFocus?": types$6.function([]),
34939
- "disableFormulas?": types$6.boolean()
34943
+ "value?": types.string(),
34944
+ criterionType: types.DataValidationCriterionType(),
34945
+ onValueChanged: types.function(),
34946
+ "onKeyDown?": types.function(),
34947
+ "focused?": types.boolean(),
34948
+ "onBlur?": types.function(),
34949
+ "onFocus?": types.function(),
34950
+ "disableFormulas?": types.boolean()
34940
34951
  }, {
34941
34952
  value: "",
34942
34953
  onKeyDown: () => {},
@@ -35770,11 +35781,11 @@ set(value) {
35770
35781
  Select
35771
35782
  };
35772
35783
  props = (0, _odoo_owl.props)({
35773
- store: types$6.Store(),
35774
- thresholdType: types$6.or([
35775
- types$6.literal("minimum"),
35776
- types$6.literal("midpoint"),
35777
- types$6.literal("maximum")
35784
+ store: types.Store(),
35785
+ thresholdType: types.or([
35786
+ types.literal("minimum"),
35787
+ types.literal("midpoint"),
35788
+ types.literal("maximum")
35778
35789
  ])
35779
35790
  });
35780
35791
  get rule() {
@@ -35847,7 +35858,7 @@ set(value) {
35847
35858
  var ColorScaleRuleEditor = class extends Component {
35848
35859
  static template = "o-spreadsheet-ColorScaleRuleEditor";
35849
35860
  static components = { ColorScaleRuleEditorThreshold };
35850
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35861
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35851
35862
  };
35852
35863
 
35853
35864
  //#endregion
@@ -35858,7 +35869,7 @@ set(value) {
35858
35869
  SelectionInput,
35859
35870
  RoundColorPicker
35860
35871
  };
35861
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35872
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35862
35873
  get rule() {
35863
35874
  return this.props.store.state.rules.dataBar;
35864
35875
  }
@@ -35869,7 +35880,7 @@ set(value) {
35869
35880
  //#region src/components/icon_picker/icon_picker.ts
35870
35881
  var IconPicker = class extends Component {
35871
35882
  static template = "o-spreadsheet-IconPicker";
35872
- props = (0, _odoo_owl.props)({ onIconPicked: types$6.function([types$6.string()]) });
35883
+ props = (0, _odoo_owl.props)({ onIconPicked: types.function() });
35873
35884
  onIconClick(icon) {
35874
35885
  if (icon) this.props.onIconPicked(icon);
35875
35886
  }
@@ -35890,7 +35901,7 @@ set(value) {
35890
35901
  StandaloneComposer,
35891
35902
  Select
35892
35903
  };
35893
- props = (0, _odoo_owl.props)({ store: types$6.Store() });
35904
+ props = (0, _odoo_owl.props)({ store: types.Store() });
35894
35905
  get rule() {
35895
35906
  return this.props.store.state.rules.iconSet;
35896
35907
  }
@@ -35970,9 +35981,9 @@ set(value) {
35970
35981
  DataBarRuleEditor
35971
35982
  };
35972
35983
  props = (0, _odoo_owl.props)({
35973
- cf: types$6.ConditionalFormat(),
35974
- isNewCf: types$6.boolean(),
35975
- onCloseSidePanel: types$6.function([])
35984
+ cf: types.ConditionalFormat(),
35985
+ isNewCf: types.boolean(),
35986
+ onCloseSidePanel: types.function()
35976
35987
  });
35977
35988
  activeSheetId;
35978
35989
  store;
@@ -36030,9 +36041,9 @@ set(value) {
36030
36041
  var ConditionalFormatPreview = class extends Component {
36031
36042
  static template = "o-spreadsheet-ConditionalFormatPreview";
36032
36043
  props = (0, _odoo_owl.props)({
36033
- conditionalFormat: types$6.ConditionalFormat(),
36034
- onMouseDown: types$6.function([types$6.instanceOf(MouseEvent)]),
36035
- class: types$6.string()
36044
+ conditionalFormat: types.ConditionalFormat(),
36045
+ onMouseDown: types.function(),
36046
+ class: types.string()
36036
36047
  });
36037
36048
  icons = ICONS;
36038
36049
  cfPreviewRef = (0, _odoo_owl.signal)(null);
@@ -36090,7 +36101,7 @@ set(value) {
36090
36101
  var ConditionalFormatPreviewList = class extends Component {
36091
36102
  static template = "o-spreadsheet-ConditionalFormatPreviewList";
36092
36103
  static components = { ConditionalFormatPreview };
36093
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36104
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36094
36105
  dragAndDrop = useDragAndDropListItems();
36095
36106
  cfListRef = (0, _odoo_owl.signal)(null);
36096
36107
  get conditionalFormats() {
@@ -36159,7 +36170,7 @@ set(value) {
36159
36170
  //#region src/components/side_panel/data_validation/dv_preview/dv_preview.ts
36160
36171
  var DataValidationPreview = class extends Component {
36161
36172
  static template = "o-spreadsheet-DataValidationPreview";
36162
- props = (0, _odoo_owl.props)({ rule: types$6.DataValidationRule() });
36173
+ props = (0, _odoo_owl.props)({ rule: types.DataValidationRule() });
36163
36174
  dvPreviewRef = (0, _odoo_owl.signal)(null);
36164
36175
  setup() {
36165
36176
  useHighlightsOnHover(this.dvPreviewRef, this);
@@ -36195,7 +36206,7 @@ set(value) {
36195
36206
  var DataValidationPanel = class extends Component {
36196
36207
  static template = "o-spreadsheet-DataValidationPanel";
36197
36208
  static components = { DataValidationPreview };
36198
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36209
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36199
36210
  addDataValidationRule() {
36200
36211
  this.env.replaceSidePanel("DataValidationEditor", "DataValidation", { ruleId: UuidGenerator.smallUuid() });
36201
36212
  }
@@ -36250,9 +36261,9 @@ set(value) {
36250
36261
  ValidationMessages
36251
36262
  };
36252
36263
  props = (0, _odoo_owl.props)({
36253
- ruleId: types$6.UID(),
36254
- "onCancel?": types$6.function([]),
36255
- onCloseSidePanel: types$6.function([])
36264
+ ruleId: types.UID(),
36265
+ "onCancel?": types.function(),
36266
+ onCloseSidePanel: types.function()
36256
36267
  });
36257
36268
  state = (0, _odoo_owl.proxy)({
36258
36269
  rule: this.defaultDataValidationRule,
@@ -36700,7 +36711,7 @@ set(value) {
36700
36711
  ValidationMessages,
36701
36712
  Select
36702
36713
  };
36703
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
36714
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
36704
36715
  searchInputRef = (0, _odoo_owl.signal)(null);
36705
36716
  store;
36706
36717
  state;
@@ -37534,11 +37545,11 @@ set(value) {
37534
37545
  Select
37535
37546
  };
37536
37547
  props = (0, _odoo_owl.props)({
37537
- onCloseSidePanel: types$6.function([]),
37538
- "category?": types$6.or([
37539
- types$6.literal("number"),
37540
- types$6.literal("date"),
37541
- types$6.literal("currency")
37548
+ onCloseSidePanel: types.function(),
37549
+ "category?": types.or([
37550
+ types.literal("number"),
37551
+ types.literal("date"),
37552
+ types.literal("currency")
37542
37553
  ])
37543
37554
  });
37544
37555
  store;
@@ -37600,7 +37611,7 @@ set(value) {
37600
37611
  SelectionInput,
37601
37612
  TextInput
37602
37613
  };
37603
- props = (0, _odoo_owl.props)({ namedRange: types$6.NamedRange() });
37614
+ props = (0, _odoo_owl.props)({ namedRange: types.NamedRange() });
37604
37615
  state = (0, _odoo_owl.proxy)({});
37605
37616
  namedRangePreviewRef = (0, _odoo_owl.signal)(null);
37606
37617
  setup() {
@@ -37657,7 +37668,7 @@ set(value) {
37657
37668
  SelectionInput,
37658
37669
  TextInput
37659
37670
  };
37660
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
37671
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
37661
37672
  get namedRanges() {
37662
37673
  return this.env.model.getters.getNamedRanges();
37663
37674
  }
@@ -37678,7 +37689,7 @@ set(value) {
37678
37689
  var PerfProfilePanel = class extends Component {
37679
37690
  static template = "o-spreadsheet-PerfProfilePanel";
37680
37691
  static components = { Section };
37681
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
37692
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
37682
37693
  state = (0, _odoo_owl.proxy)({
37683
37694
  selectedIndex: void 0,
37684
37695
  lastProfiledTime: 0
@@ -37895,9 +37906,9 @@ set(value) {
37895
37906
  var PivotMeasureDisplayPanel = class extends Component {
37896
37907
  static template = "o-spreadsheet-PivotMeasureDisplayPanel";
37897
37908
  props = (0, _odoo_owl.props)({
37898
- onCloseSidePanel: types$6.function([]),
37899
- pivotId: types$6.UID(),
37900
- measure: types$6.PivotCoreMeasure()
37909
+ onCloseSidePanel: types.function(),
37910
+ pivotId: types.UID(),
37911
+ measure: types.PivotCoreMeasure()
37901
37912
  });
37902
37913
  static components = {
37903
37914
  Section,
@@ -37961,11 +37972,11 @@ set(value) {
37961
37972
  var PivotDeferUpdate = class extends Component {
37962
37973
  static template = "o-spreadsheet-PivotDeferUpdate";
37963
37974
  props = (0, _odoo_owl.props)({
37964
- deferUpdate: types$6.boolean(),
37965
- isDirty: types$6.boolean(),
37966
- toggleDeferUpdate: types$6.function([types$6.boolean()]),
37967
- discard: types$6.function([]),
37968
- apply: types$6.function([])
37975
+ deferUpdate: types.boolean(),
37976
+ isDirty: types.boolean(),
37977
+ toggleDeferUpdate: types.function(),
37978
+ discard: types.function(),
37979
+ apply: types.function()
37969
37980
  });
37970
37981
  static components = {
37971
37982
  Section,
@@ -38190,9 +38201,9 @@ set(value) {
38190
38201
  static template = "o-spreadsheet-FilterMenuCriterion";
38191
38202
  static components = { Select };
38192
38203
  props = (0, _odoo_owl.props)({
38193
- criterion: types$6.CriterionFilter(),
38194
- criterionOperators: types$6.array(types$6.GenericCriterionType()),
38195
- onCriterionChanged: types$6.function([types$6.CriterionFilter()])
38204
+ criterion: types.CriterionFilter(),
38205
+ criterionOperators: types.array(types.GenericCriterionType()),
38206
+ onCriterionChanged: types.function()
38196
38207
  });
38197
38208
  state;
38198
38209
  setup() {
@@ -38227,12 +38238,12 @@ set(value) {
38227
38238
  static template = "o-spreadsheet-FilterMenuValueItem";
38228
38239
  static components = { Checkbox };
38229
38240
  props = (0, _odoo_owl.props)({
38230
- value: _odoo_owl.types.string(),
38231
- isChecked: _odoo_owl.types.boolean(),
38232
- isSelected: _odoo_owl.types.boolean(),
38233
- onMouseMove: _odoo_owl.types.function([]),
38234
- onClick: _odoo_owl.types.function([]),
38235
- "scrolledTo?": _odoo_owl.types.or([_odoo_owl.types.literal("top"), _odoo_owl.types.literal("bottom")])
38241
+ value: types.string(),
38242
+ isChecked: types.boolean(),
38243
+ isSelected: types.boolean(),
38244
+ onMouseMove: types.function(),
38245
+ onClick: types.function(),
38246
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38236
38247
  });
38237
38248
  itemRef = (0, _odoo_owl.signal)(null);
38238
38249
  setup() {
@@ -38253,12 +38264,12 @@ set(value) {
38253
38264
  static template = "o-spreadsheet-FilterMenuValueList";
38254
38265
  static components = { FilterMenuValueItem };
38255
38266
  props = (0, _odoo_owl.props)({
38256
- values: types$6.array(types$6.object({
38257
- checked: types$6.boolean(),
38258
- string: types$6.string(),
38259
- "scrolledTo?": types$6.or([types$6.literal("top"), types$6.literal("bottom")])
38267
+ values: types.array(types.object({
38268
+ checked: types.boolean(),
38269
+ string: types.string(),
38270
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38260
38271
  })),
38261
- onUpdateHiddenValues: types$6.function([types$6.array(types$6.string())])
38272
+ onUpdateHiddenValues: types.function()
38262
38273
  });
38263
38274
  state = (0, _odoo_owl.proxy)({
38264
38275
  displayedValues: [],
@@ -38368,16 +38379,16 @@ set(value) {
38368
38379
  criterionCategory = "char";
38369
38380
  updatedCriterionValue;
38370
38381
  props = (0, _odoo_owl.props)({
38371
- pivotId: types$6.UID(),
38372
- definition: types$6.instanceOf(SpreadsheetPivotRuntimeDefinition),
38373
- filter: types$6.PivotFilter(),
38374
- values: types$6.array(types$6.object({
38375
- checked: types$6.boolean(),
38376
- string: types$6.string(),
38377
- "scrolledTo?": types$6.or([types$6.literal("top"), types$6.literal("bottom")])
38382
+ pivotId: types.UID(),
38383
+ definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
38384
+ filter: types.PivotFilter(),
38385
+ values: types.array(types.object({
38386
+ checked: types.boolean(),
38387
+ string: types.string(),
38388
+ "scrolledTo?": types.or([types.literal("top"), types.literal("bottom")])
38378
38389
  })),
38379
- "onClosed?": types$6.function([]),
38380
- onConfirmed: types$6.function([types$6.DataFilterValue()])
38390
+ "onClosed?": types.function(),
38391
+ onConfirmed: types.function()
38381
38392
  });
38382
38393
  setup() {
38383
38394
  (0, _odoo_owl.onWillUpdateProps)((nextProps) => {
@@ -38431,26 +38442,18 @@ set(value) {
38431
38442
  var PivotDimension = class extends Component {
38432
38443
  static template = "o-spreadsheet-PivotDimension";
38433
38444
  props = (0, _odoo_owl.props)({
38434
- dimension: types$6.or([
38435
- types$6.PivotDimension(),
38436
- types$6.PivotMeasure(),
38437
- types$6.PivotFilter()
38445
+ dimension: types.or([
38446
+ types.PivotDimension(),
38447
+ types.PivotMeasure(),
38448
+ types.PivotFilter()
38438
38449
  ]),
38439
- "onRemoved?": types$6.function([types$6.or([
38440
- types$6.PivotDimension(),
38441
- types$6.PivotMeasure(),
38442
- types$6.PivotFilter()
38443
- ])]),
38444
- "onNameUpdated?": types$6.function([types$6.or([
38445
- types$6.PivotDimension(),
38446
- types$6.PivotMeasure(),
38447
- types$6.PivotFilter()
38448
- ]), types$6.string()]),
38449
- "type?": types$6.or([
38450
- types$6.literal("row"),
38451
- types$6.literal("col"),
38452
- types$6.literal("measure"),
38453
- types$6.literal("filter")
38450
+ "onRemoved?": types.function(),
38451
+ "onNameUpdated?": types.function(),
38452
+ "type?": types.or([
38453
+ types.literal("row"),
38454
+ types.literal("col"),
38455
+ types.literal("measure"),
38456
+ types.literal("filter")
38454
38457
  ])
38455
38458
  });
38456
38459
  static components = {
@@ -38476,10 +38479,10 @@ set(value) {
38476
38479
  PivotFilterMenu
38477
38480
  };
38478
38481
  props = (0, _odoo_owl.props)({
38479
- pivotId: types$6.UID(),
38480
- definition: types$6.instanceOf(SpreadsheetPivotRuntimeDefinition),
38481
- filter: types$6.PivotFilter(),
38482
- onFiltersUpdated: types$6.function([types$6.SpreadsheetPivotCoreDefinition()])
38482
+ pivotId: types.UID(),
38483
+ definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
38484
+ filter: types.PivotFilter(),
38485
+ onFiltersUpdated: types.function()
38483
38486
  });
38484
38487
  state;
38485
38488
  buttonFilter = (0, _odoo_owl.signal)(null);
@@ -38608,8 +38611,8 @@ set(value) {
38608
38611
  TextValueProvider
38609
38612
  };
38610
38613
  props = (0, _odoo_owl.props)({
38611
- onFieldPicked: types$6.function([types$6.string()]),
38612
- fields: types$6.array()
38614
+ onFieldPicked: types.function(),
38615
+ fields: types.array()
38613
38616
  });
38614
38617
  buttonRef = (0, _odoo_owl.signal)(null);
38615
38618
  popover = (0, _odoo_owl.proxy)({ isOpen: false });
@@ -38703,9 +38706,9 @@ set(value) {
38703
38706
  var PivotCustomGroupsCollapsible = class extends Component {
38704
38707
  static template = "o-spreadsheet-PivotCustomGroupsCollapsible";
38705
38708
  props = (0, _odoo_owl.props)({
38706
- pivotId: types$6.UID(),
38707
- customField: types$6.PivotCustomGroupedField(),
38708
- onCustomFieldUpdated: types$6.function([types$6.object({})])
38709
+ pivotId: types.UID(),
38710
+ customField: types.PivotCustomGroupedField(),
38711
+ onCustomFieldUpdated: types.function()
38709
38712
  });
38710
38713
  static components = {
38711
38714
  SidePanelCollapsible,
@@ -38767,10 +38770,10 @@ set(value) {
38767
38770
  var PivotDimensionGranularity = class extends Component {
38768
38771
  static template = "o-spreadsheet-PivotDimensionGranularity";
38769
38772
  props = (0, _odoo_owl.props)({
38770
- dimension: types$6.PivotDimension(),
38771
- onUpdated: types$6.function([types$6.PivotDimension(), types$6.instanceOf(InputEvent)]),
38772
- availableGranularities: types$6.SetOf(),
38773
- allGranularities: types$6.array()
38773
+ dimension: types.PivotDimension(),
38774
+ onUpdated: types.function(),
38775
+ availableGranularities: types.SetOf(),
38776
+ allGranularities: types.array()
38774
38777
  });
38775
38778
  static components = { Select };
38776
38779
  periods = ALL_PERIODS;
@@ -38788,9 +38791,9 @@ set(value) {
38788
38791
  var PivotDimensionOrder = class extends Component {
38789
38792
  static template = "o-spreadsheet-PivotDimensionOrder";
38790
38793
  props = (0, _odoo_owl.props)({
38791
- dimension: types$6.PivotDimension(),
38792
- onUpdated: types$6.function([types$6.PivotDimension(), types$6.instanceOf(InputEvent)]),
38793
- "isMeasureSorted?": types$6.boolean()
38794
+ dimension: types.PivotDimension(),
38795
+ onUpdated: types.function(),
38796
+ "isMeasureSorted?": types.boolean()
38794
38797
  });
38795
38798
  static components = { Select };
38796
38799
  get orderSelectOptions() {
@@ -38870,13 +38873,13 @@ set(value) {
38870
38873
  Select
38871
38874
  };
38872
38875
  props = (0, _odoo_owl.props)({
38873
- pivotId: types$6.string(),
38874
- definition: types$6.PivotRuntimeDefinition(),
38875
- measure: types$6.PivotMeasure(),
38876
- onMeasureUpdated: types$6.function([types$6.PivotMeasure()]),
38877
- onRemoved: types$6.function([]),
38878
- generateMeasureId: types$6.function([types$6.string(), types$6.string()], types$6.string()),
38879
- aggregators: types$6.object({})
38876
+ pivotId: types.string(),
38877
+ definition: types.PivotRuntimeDefinition(),
38878
+ measure: types.PivotMeasure(),
38879
+ onMeasureUpdated: types.function(),
38880
+ onRemoved: types.function(),
38881
+ generateMeasureId: types.function(),
38882
+ aggregators: types.object({})
38880
38883
  });
38881
38884
  getMeasureAutocomplete() {
38882
38885
  return createMeasureAutoComplete(this.props.definition, this.props.measure);
@@ -38958,8 +38961,8 @@ set(value) {
38958
38961
  static template = "o-spreadsheet-PivotSortSection";
38959
38962
  static components = { Section };
38960
38963
  props = (0, _odoo_owl.props)({
38961
- definition: types$6.PivotRuntimeDefinition(),
38962
- pivotId: types$6.UID()
38964
+ definition: types.PivotRuntimeDefinition(),
38965
+ pivotId: types.UID()
38963
38966
  });
38964
38967
  get hasValidSort() {
38965
38968
  const pivot = this.env.model.getters.getPivot(this.props.pivotId);
@@ -39013,16 +39016,16 @@ set(value) {
39013
39016
  SidePanelCollapsible
39014
39017
  };
39015
39018
  props = (0, _odoo_owl.props)({
39016
- definition: types$6.instanceOf(PivotRuntimeDefinition),
39017
- onDimensionsUpdated: types$6.function([types$6.PivotCoreDefinition()]),
39018
- onFiltersUpdated: types$6.function([types$6.PivotCoreDefinition()]),
39019
- unusedGroupableFields: types$6.array(types$6.PivotField()),
39020
- measureFields: types$6.array(types$6.PivotField()),
39021
- unusedGranularities: types$6.RecordOf(),
39022
- dateGranularities: types$6.array(types$6.string()),
39023
- datetimeGranularities: types$6.array(types$6.string()),
39024
- "getScrollableContainerEl?": types$6.function([], types$6.instanceOf(HTMLElement)),
39025
- pivotId: types$6.UID()
39019
+ definition: types.instanceOf(PivotRuntimeDefinition),
39020
+ onDimensionsUpdated: types.function(),
39021
+ onFiltersUpdated: types.function(),
39022
+ unusedGroupableFields: types.array(types.PivotField()),
39023
+ measureFields: types.array(types.PivotField()),
39024
+ unusedGranularities: types.RecordOf(),
39025
+ dateGranularities: types.array(types.string()),
39026
+ datetimeGranularities: types.array(types.string()),
39027
+ "getScrollableContainerEl?": types.function(),
39028
+ pivotId: types.UID()
39026
39029
  });
39027
39030
  dimensionsRef = (0, _odoo_owl.signal)(null);
39028
39031
  dragAndDrop = useDragAndDropListItems();
@@ -39243,8 +39246,8 @@ set(value) {
39243
39246
  TextInput
39244
39247
  };
39245
39248
  props = (0, _odoo_owl.props)({
39246
- pivotId: types$6.UID(),
39247
- flipAxis: types$6.function([])
39249
+ pivotId: types.UID(),
39250
+ flipAxis: types.function()
39248
39251
  });
39249
39252
  get cogWheelMenuItems() {
39250
39253
  return [
@@ -40873,8 +40876,8 @@ set(value) {
40873
40876
  PivotFilterEditor
40874
40877
  };
40875
40878
  props = (0, _odoo_owl.props)({
40876
- pivotId: types$6.UID(),
40877
- onCloseSidePanel: types$6.function([])
40879
+ pivotId: types.UID(),
40880
+ onCloseSidePanel: types.function()
40878
40881
  });
40879
40882
  store;
40880
40883
  state;
@@ -42111,12 +42114,12 @@ set(value) {
42111
42114
  static template = "o-spreadsheet-TableStylePreview";
42112
42115
  static components = { MenuPopover };
42113
42116
  props = (0, _odoo_owl.props)({
42114
- tableConfig: types$6.TableConfig(),
42115
- tableStyle: types$6.TableStyle(),
42116
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")]),
42117
- "styleId?": types$6.string(),
42118
- "selected?": types$6.boolean(),
42119
- "onClick?": types$6.function([])
42117
+ tableConfig: types.TableConfig(),
42118
+ tableStyle: types.TableStyle(),
42119
+ type: types.or([types.literal("table"), types.literal("pivot")]),
42120
+ "styleId?": types.string(),
42121
+ "selected?": types.boolean(),
42122
+ "onClick?": types.function()
42120
42123
  });
42121
42124
  canvasRef = (0, _odoo_owl.signal)(null);
42122
42125
  menu = (0, _odoo_owl.proxy)({
@@ -42204,13 +42207,13 @@ set(value) {
42204
42207
  TableStylePreview
42205
42208
  };
42206
42209
  props = (0, _odoo_owl.props)({
42207
- tableConfig: types$6.object({}),
42208
- "popoverProps?": types$6.object({}),
42209
- closePopover: types$6.function([]),
42210
- onStylePicked: types$6.function([types$6.string()]),
42211
- "selectedStyleId?": types$6.string(),
42212
- tableStyles: types$6.RecordOf(),
42213
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")])
42210
+ tableConfig: types.object({}),
42211
+ "popoverProps?": types.object({}),
42212
+ closePopover: types.function(),
42213
+ onStylePicked: types.function(),
42214
+ "selectedStyleId?": types.string(),
42215
+ tableStyles: types.RecordOf(),
42216
+ type: types.or([types.literal("table"), types.literal("pivot")])
42214
42217
  });
42215
42218
  tableStyleListRef = (0, _odoo_owl.signal)(null);
42216
42219
  state = (0, _odoo_owl.proxy)({ selectedCategory: this.initialSelectedCategory });
@@ -42252,10 +42255,10 @@ set(value) {
42252
42255
  TableStylePreview
42253
42256
  };
42254
42257
  props = (0, _odoo_owl.props)({
42255
- tableConfig: types$6.TableConfig(),
42256
- onStylePicked: types$6.function([types$6.string()]),
42257
- tableStyles: types$6.RecordOf(),
42258
- type: types$6.or([types$6.literal("table"), types$6.literal("pivot")])
42258
+ tableConfig: types.TableConfig(),
42259
+ onStylePicked: types.function(),
42260
+ tableStyles: types.RecordOf(),
42261
+ type: types.or([types.literal("table"), types.literal("pivot")])
42259
42262
  });
42260
42263
  state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
42261
42264
  getDisplayedTableStyles() {
@@ -42303,7 +42306,7 @@ set(value) {
42303
42306
  NumberInput,
42304
42307
  TableStylePicker
42305
42308
  };
42306
- props = (0, _odoo_owl.props)({ pivotId: types$6.UID() });
42309
+ props = (0, _odoo_owl.props)({ pivotId: types.UID() });
42307
42310
  store;
42308
42311
  setup() {
42309
42312
  this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId, "neverDefer");
@@ -42358,9 +42361,9 @@ set(value) {
42358
42361
  PivotDesignPanel
42359
42362
  };
42360
42363
  props = (0, _odoo_owl.props)({
42361
- pivotId: types$6.UID(),
42362
- onCloseSidePanel: types$6.function([]),
42363
- "openTab?": types$6.or([types$6.literal("configuration"), types$6.literal("design")])
42364
+ pivotId: types.UID(),
42365
+ onCloseSidePanel: types.function(),
42366
+ "openTab?": types.or([types.literal("configuration"), types.literal("design")])
42364
42367
  }, { openTab: "configuration" });
42365
42368
  state = (0, _odoo_owl.proxy)({ panel: this.props.openTab || "configuration" });
42366
42369
  setup() {
@@ -42391,7 +42394,7 @@ set(value) {
42391
42394
  Section,
42392
42395
  Checkbox
42393
42396
  };
42394
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42397
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42395
42398
  state = (0, _odoo_owl.proxy)({
42396
42399
  hasHeader: false,
42397
42400
  columns: {}
@@ -42475,7 +42478,7 @@ set(value) {
42475
42478
  BadgeSelection,
42476
42479
  Select
42477
42480
  };
42478
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42481
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42479
42482
  loadedLocales = [];
42480
42483
  setup() {
42481
42484
  (0, _odoo_owl.onWillStart)(() => this.loadLocales());
@@ -42593,7 +42596,7 @@ set(value) {
42593
42596
  Checkbox,
42594
42597
  Select
42595
42598
  };
42596
- props = (0, _odoo_owl.props)({ onCloseSidePanel: types$6.function([]) });
42599
+ props = (0, _odoo_owl.props)({ onCloseSidePanel: types.function() });
42597
42600
  state = (0, _odoo_owl.proxy)({
42598
42601
  separatorValue: "auto",
42599
42602
  addNewColumns: false,
@@ -42670,8 +42673,8 @@ set(value) {
42670
42673
  NumberInput
42671
42674
  };
42672
42675
  props = (0, _odoo_owl.props)({
42673
- onCloseSidePanel: types$6.function([]),
42674
- table: types$6.CoreTable()
42676
+ onCloseSidePanel: types.function(),
42677
+ table: types.CoreTable()
42675
42678
  });
42676
42679
  state;
42677
42680
  setup() {
@@ -42830,9 +42833,9 @@ set(value) {
42830
42833
  TableStylePreview
42831
42834
  };
42832
42835
  props = (0, _odoo_owl.props)({
42833
- onCloseSidePanel: types$6.function([]),
42834
- "onStylePicked?": types$6.function([types$6.string()]),
42835
- "styleId?": types$6.string()
42836
+ onCloseSidePanel: types.function(),
42837
+ "onStylePicked?": types.function(),
42838
+ "styleId?": types.string()
42836
42839
  });
42837
42840
  state = (0, _odoo_owl.proxy)(this.getInitialState());
42838
42841
  setup() {
@@ -45164,8 +45167,8 @@ set(value) {
45164
45167
  var Autofill = class extends Component {
45165
45168
  static template = "o-spreadsheet-Autofill";
45166
45169
  props = (0, _odoo_owl.props)({
45167
- position: types$6.DOMCoordinates(),
45168
- isVisible: types$6.boolean()
45170
+ position: types.DOMCoordinates(),
45171
+ isVisible: types.boolean()
45169
45172
  });
45170
45173
  state = (0, _odoo_owl.proxy)({
45171
45174
  position: {
@@ -45241,7 +45244,7 @@ set(value) {
45241
45244
  }
45242
45245
  };
45243
45246
  var TooltipComponent = class extends Component {
45244
- props = (0, _odoo_owl.props)({ content: types$6.string() });
45247
+ props = (0, _odoo_owl.props)({ content: types.string() });
45245
45248
  static template = _odoo_owl.xml`
45246
45249
  <div t-out="this.props.content"/>
45247
45250
  `;
@@ -45252,11 +45255,11 @@ set(value) {
45252
45255
  var ClientTag = class extends Component {
45253
45256
  static template = "o-spreadsheet-ClientTag";
45254
45257
  props = (0, _odoo_owl.props)({
45255
- active: types$6.boolean(),
45256
- name: types$6.string(),
45257
- color: types$6.Color(),
45258
- col: types$6.HeaderIndex(),
45259
- row: types$6.HeaderIndex()
45258
+ active: types.boolean(),
45259
+ name: types.string(),
45260
+ color: types.Color(),
45261
+ col: types.HeaderIndex(),
45262
+ row: types.HeaderIndex()
45260
45263
  });
45261
45264
  get tagStyle() {
45262
45265
  const { col, row, color } = this.props;
@@ -45833,8 +45836,8 @@ set(value) {
45833
45836
  static template = "o-spreadsheet-GridComposer";
45834
45837
  static components = { Composer };
45835
45838
  props = (0, _odoo_owl.props)({
45836
- gridDims: types$6.DOMDimension(),
45837
- onInputContextMenu: types$6.function([types$6.instanceOf(MouseEvent)])
45839
+ gridDims: types.DOMDimension(),
45840
+ onInputContextMenu: types.function()
45838
45841
  });
45839
45842
  rect = this.defaultRect;
45840
45843
  isEditing = false;
@@ -46957,21 +46960,11 @@ set(value) {
46957
46960
  GridAddRowsFooter
46958
46961
  };
46959
46962
  props = (0, _odoo_owl.props)({
46960
- "onCellDoubleClicked?": types$6.function([types$6.HeaderIndex(), types$6.HeaderIndex()]),
46961
- "onCellClicked?": types$6.function([
46962
- types$6.HeaderIndex(),
46963
- types$6.HeaderIndex(),
46964
- types$6.GridClickModifiers(),
46965
- types$6.ZoomedMouseEvent()
46966
- ]),
46967
- "onCellRightClicked?": types$6.function([
46968
- types$6.HeaderIndex(),
46969
- types$6.HeaderIndex(),
46970
- types$6.DOMCoordinates()
46971
- ]),
46972
- "onGridResized?": types$6.function([]),
46973
- onGridMoved: types$6.function([types$6.Pixel(), types$6.Pixel()]),
46974
- gridOverlayDimensions: types$6.string()
46963
+ "onCellDoubleClicked?": types.function(),
46964
+ "onCellClicked?": types.function(),
46965
+ "onCellRightClicked?": types.function(),
46966
+ "onGridResized?": types.function(),
46967
+ gridOverlayDimensions: types.string()
46975
46968
  }, {
46976
46969
  onCellDoubleClicked: () => {},
46977
46970
  onCellClicked: () => {},
@@ -47089,9 +47082,9 @@ set(value) {
47089
47082
  static template = "o-spreadsheet-GridPopover";
47090
47083
  static components = { Popover };
47091
47084
  props = (0, _odoo_owl.props)({
47092
- onClosePopover: types$6.function([]),
47093
- onMouseWheel: types$6.function([types$6.instanceOf(WheelEvent)]),
47094
- gridRect: types$6.Rect()
47085
+ onClosePopover: types.function(),
47086
+ onMouseWheel: types.function(),
47087
+ gridRect: types.Rect()
47095
47088
  });
47096
47089
  cellPopovers;
47097
47090
  setup() {
@@ -47117,12 +47110,12 @@ set(value) {
47117
47110
  var UnhideRowHeaders = class extends Component {
47118
47111
  static template = "o-spreadsheet-UnhideRowHeaders";
47119
47112
  props = (0, _odoo_owl.props)({
47120
- headersGroups: types$6.array(),
47121
- headerRange: types$6.object({
47122
- start: types$6.HeaderIndex(),
47123
- end: types$6.HeaderIndex()
47113
+ headersGroups: types.array(),
47114
+ headerRange: types.object({
47115
+ start: types.HeaderIndex(),
47116
+ end: types.HeaderIndex()
47124
47117
  }),
47125
- "offset?": types$6.number()
47118
+ "offset?": types.number()
47126
47119
  }, { offset: 0 });
47127
47120
  get sheetId() {
47128
47121
  return this.env.model.getters.getActiveSheetId();
@@ -47160,12 +47153,12 @@ set(value) {
47160
47153
  var UnhideColumnHeaders = class extends Component {
47161
47154
  static template = "o-spreadsheet-UnhideColumnHeaders";
47162
47155
  props = (0, _odoo_owl.props)({
47163
- headersGroups: types$6.array(),
47164
- headerRange: types$6.object({
47165
- start: types$6.HeaderIndex(),
47166
- end: types$6.HeaderIndex()
47156
+ headersGroups: types.array(),
47157
+ headerRange: types.object({
47158
+ start: types.HeaderIndex(),
47159
+ end: types.HeaderIndex()
47167
47160
  }),
47168
- "offset?": types$6.number()
47161
+ "offset?": types.number()
47169
47162
  }, { offset: 0 });
47170
47163
  get sheetId() {
47171
47164
  return this.env.model.getters.getActiveSheetId();
@@ -47197,11 +47190,7 @@ set(value) {
47197
47190
 
47198
47191
  //#endregion
47199
47192
  //#region src/components/headers_overlay/headers_overlay.ts
47200
- const resizerPropsDefinition = { onOpenContextMenu: types$6.function([
47201
- types$6.ContextMenuType(),
47202
- types$6.Pixel(),
47203
- types$6.Pixel()
47204
- ]) };
47193
+ const resizerPropsDefinition = { onOpenContextMenu: types.function() };
47205
47194
  var AbstractResizer = class extends Component {
47206
47195
  props = (0, _odoo_owl.props)(resizerPropsDefinition);
47207
47196
  composerFocusStore;
@@ -48655,15 +48644,15 @@ set(value) {
48655
48644
  var Border = class extends Component {
48656
48645
  static template = "o-spreadsheet-Border";
48657
48646
  props = (0, _odoo_owl.props)({
48658
- zone: types$6.Zone(),
48659
- orientation: types$6.or([
48660
- types$6.literal("n"),
48661
- types$6.literal("s"),
48662
- types$6.literal("w"),
48663
- types$6.literal("e")
48647
+ zone: types.Zone(),
48648
+ orientation: types.or([
48649
+ types.literal("n"),
48650
+ types.literal("s"),
48651
+ types.literal("w"),
48652
+ types.literal("e")
48664
48653
  ]),
48665
- isMoving: types$6.boolean(),
48666
- onMoveHighlight: types$6.function([types$6.instanceOf(PointerEvent)])
48654
+ isMoving: types.boolean(),
48655
+ onMoveHighlight: types.function()
48667
48656
  });
48668
48657
  get style() {
48669
48658
  const isTop = [
@@ -48708,24 +48697,20 @@ set(value) {
48708
48697
  var Corner = class extends Component {
48709
48698
  static template = "o-spreadsheet-Corner";
48710
48699
  props = (0, _odoo_owl.props)({
48711
- zone: types$6.Zone(),
48712
- color: types$6.Color(),
48713
- orientation: types$6.or([
48714
- types$6.literal("nw"),
48715
- types$6.literal("ne"),
48716
- types$6.literal("sw"),
48717
- types$6.literal("se"),
48718
- types$6.literal("n"),
48719
- types$6.literal("s"),
48720
- types$6.literal("e"),
48721
- types$6.literal("w")
48700
+ zone: types.Zone(),
48701
+ color: types.Color(),
48702
+ orientation: types.or([
48703
+ types.literal("nw"),
48704
+ types.literal("ne"),
48705
+ types.literal("sw"),
48706
+ types.literal("se"),
48707
+ types.literal("n"),
48708
+ types.literal("s"),
48709
+ types.literal("e"),
48710
+ types.literal("w")
48722
48711
  ]),
48723
- isResizing: types$6.boolean(),
48724
- onResizeHighlight: types$6.function([
48725
- types$6.instanceOf(PointerEvent),
48726
- types$6.ResizeDirection(),
48727
- types$6.ResizeDirection()
48728
- ])
48712
+ isResizing: types.boolean(),
48713
+ onResizeHighlight: types.function()
48729
48714
  });
48730
48715
  dirX;
48731
48716
  dirY;
@@ -48786,8 +48771,8 @@ set(value) {
48786
48771
  Border
48787
48772
  };
48788
48773
  props = (0, _odoo_owl.props)({
48789
- range: types$6.Range(),
48790
- color: types$6.Color()
48774
+ range: types.Range(),
48775
+ color: types.Color()
48791
48776
  });
48792
48777
  highlightState = (0, _odoo_owl.proxy)({ shiftingMode: "none" });
48793
48778
  dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
@@ -48930,12 +48915,12 @@ set(value) {
48930
48915
  </div>
48931
48916
  `;
48932
48917
  props = (0, _odoo_owl.props)({
48933
- "width?": types$6.Pixel(),
48934
- "height?": types$6.Pixel(),
48935
- direction: types$6.customValidator(types$6.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
48936
- position: types$6.CSSProperties(),
48937
- offset: types$6.Pixel(),
48938
- onScroll: types$6.function([types$6.Pixel()])
48918
+ "width?": types.Pixel(),
48919
+ "height?": types.Pixel(),
48920
+ direction: types.customValidator(types.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
48921
+ position: types.CSSProperties(),
48922
+ offset: types.Pixel(),
48923
+ onScroll: types.function()
48939
48924
  }, {
48940
48925
  width: 1,
48941
48926
  height: 1
@@ -48978,7 +48963,7 @@ set(value) {
48978
48963
  direction="'horizontal'"
48979
48964
  onScroll.bind="this.onScroll"
48980
48965
  />`;
48981
- props = (0, _odoo_owl.props)({ "leftOffset?": types$6.number() }, { leftOffset: 0 });
48966
+ props = (0, _odoo_owl.props)({ "leftOffset?": types.number() }, { leftOffset: 0 });
48982
48967
  get offset() {
48983
48968
  return this.env.model.getters.getActiveSheetScrollInfo().scrollX;
48984
48969
  }
@@ -48996,7 +48981,7 @@ set(value) {
48996
48981
  left: `${this.props.leftOffset + x}px`,
48997
48982
  bottom: "0px",
48998
48983
  height: `${scrollbarWidth}px`,
48999
- right: isBrowserFirefox() ? `${scrollbarWidth}px` : "0"
48984
+ right: `${scrollbarWidth}px`
49000
48985
  };
49001
48986
  }
49002
48987
  onScroll(offset) {
@@ -49021,7 +49006,7 @@ set(value) {
49021
49006
  direction="'vertical'"
49022
49007
  onScroll.bind="(offset) => this.onScroll(offset)"
49023
49008
  />`;
49024
- props = (0, _odoo_owl.props)({ "topOffset?": types$6.number() }, { topOffset: 0 });
49009
+ props = (0, _odoo_owl.props)({ "topOffset?": types.number() }, { topOffset: 0 });
49025
49010
  get offset() {
49026
49011
  return this.env.model.getters.getActiveSheetScrollInfo().scrollY;
49027
49012
  }
@@ -49039,7 +49024,7 @@ set(value) {
49039
49024
  top: `${this.props.topOffset + y}px`,
49040
49025
  right: "0px",
49041
49026
  width: `${scrollbarWidth}px`,
49042
- bottom: isBrowserFirefox() ? `${scrollbarWidth}px` : "0"
49027
+ bottom: `${scrollbarWidth}px`
49043
49028
  };
49044
49029
  }
49045
49030
  onScroll(offset) {
@@ -49072,7 +49057,7 @@ set(value) {
49072
49057
  const COLOR = "#777";
49073
49058
  var TableResizer = class extends Component {
49074
49059
  static template = "o-spreadsheet-TableResizer";
49075
- props = (0, _odoo_owl.props)({ table: types$6.Table() });
49060
+ props = (0, _odoo_owl.props)({ table: types.Table() });
49076
49061
  state = (0, _odoo_owl.proxy)({ highlightZone: void 0 });
49077
49062
  dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
49078
49063
  setup() {
@@ -49161,8 +49146,8 @@ set(value) {
49161
49146
  Selection
49162
49147
  };
49163
49148
  props = (0, _odoo_owl.props)({
49164
- exposeFocus: types$6.function([types$6.function([])]),
49165
- getGridSize: types$6.function([], types$6.DOMDimension())
49149
+ exposeFocus: types.function(),
49150
+ getGridSize: types.function()
49166
49151
  });
49167
49152
  HEADER_HEIGHT = 26;
49168
49153
  HEADER_WIDTH = 48;
@@ -49804,8 +49789,8 @@ set(value) {
49804
49789
  var ClickableCellSortIcon = class extends Component {
49805
49790
  static template = "o-spreadsheet-ClickableCellSortIcon";
49806
49791
  props = (0, _odoo_owl.props)({
49807
- position: types$6.CellPosition(),
49808
- sortDirection: types$6.or([types$6.SortDirection, types$6.literal("none")])
49792
+ position: types.CellPosition(),
49793
+ sortDirection: types.or([types.SortDirection, types.literal("none")])
49809
49794
  });
49810
49795
  hoveredTableStore;
49811
49796
  setup() {
@@ -49879,8 +49864,8 @@ set(value) {
49879
49864
  static template = "o_spreadsheet.PivotHTMLRenderer";
49880
49865
  static components = { Checkbox };
49881
49866
  props = (0, _odoo_owl.props)({
49882
- pivotId: types$6.UID(),
49883
- onCellClicked: types$6.function([types$6.string()])
49867
+ pivotId: types.UID(),
49868
+ onCellClicked: types.function()
49884
49869
  });
49885
49870
  pivot = this.env.model.getters.getPivot(this.props.pivotId);
49886
49871
  data = {
@@ -62384,6 +62369,7 @@ set(value) {
62384
62369
  convertToGeoJson(json) {
62385
62370
  if (!json) return null;
62386
62371
  if (json.type === "Topology") {
62372
+ if (!globalThis.ChartGeo) return null;
62387
62373
  const features = globalThis.ChartGeo.topojson.feature(json, Object.values(json.objects)[0]);
62388
62374
  return features.type === "FeatureCollection" ? features.features : [features];
62389
62375
  } else if (json.type === "FeatureCollection") return json.features;
@@ -67580,20 +67566,20 @@ set(value) {
67580
67566
  var RippleEffect = class extends Component {
67581
67567
  static template = "o-spreadsheet-RippleEffect";
67582
67568
  props = (0, _odoo_owl.props)({
67583
- x: _odoo_owl.types.string(),
67584
- y: _odoo_owl.types.string(),
67585
- color: _odoo_owl.types.string(),
67586
- opacity: _odoo_owl.types.number(),
67587
- duration: _odoo_owl.types.number(),
67569
+ x: types.string(),
67570
+ y: types.string(),
67571
+ color: types.string(),
67572
+ opacity: types.number(),
67573
+ duration: types.number(),
67588
67574
  /** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
67589
- width: _odoo_owl.types.number(),
67575
+ width: types.number(),
67590
67576
  /** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
67591
- height: _odoo_owl.types.number(),
67592
- offsetY: _odoo_owl.types.number(),
67593
- offsetX: _odoo_owl.types.number(),
67594
- allowOverflow: _odoo_owl.types.boolean(),
67595
- onAnimationEnd: _odoo_owl.types.function(),
67596
- style: _odoo_owl.types.string()
67577
+ height: types.number(),
67578
+ offsetY: types.number(),
67579
+ offsetX: types.number(),
67580
+ allowOverflow: types.boolean(),
67581
+ onAnimationEnd: types.function(),
67582
+ style: types.string()
67597
67583
  });
67598
67584
  rippleRef = (0, _odoo_owl.signal)(null);
67599
67585
  setup() {
@@ -67633,21 +67619,21 @@ set(value) {
67633
67619
  static template = "o-spreadsheet-Ripple";
67634
67620
  static components = { RippleEffect };
67635
67621
  props = (0, _odoo_owl.props)({
67636
- "color?": _odoo_owl.types.string(),
67637
- "opacity?": _odoo_owl.types.number(),
67638
- "duration?": _odoo_owl.types.number(),
67622
+ "color?": types.string(),
67623
+ "opacity?": types.number(),
67624
+ "duration?": types.number(),
67639
67625
  /** If true, the ripple will play from the element center instead of the position of the click */
67640
- "ignoreClickPosition?": _odoo_owl.types.boolean(),
67626
+ "ignoreClickPosition?": types.boolean(),
67641
67627
  /** Width of the ripple. Defaults to the width of the element the ripple is on (without margins). */
67642
- "width?": _odoo_owl.types.number(),
67628
+ "width?": types.number(),
67643
67629
  /** Height of the ripple. Defaults to the height of the element the ripple is on (without margins). */
67644
- "height?": _odoo_owl.types.number(),
67645
- "offsetY?": _odoo_owl.types.number(),
67646
- "offsetX?": _odoo_owl.types.number(),
67647
- "allowOverflow?": _odoo_owl.types.boolean(),
67648
- "enabled?": _odoo_owl.types.boolean(),
67649
- "onAnimationEnd?": _odoo_owl.types.function(),
67650
- "class?": _odoo_owl.types.string()
67630
+ "height?": types.number(),
67631
+ "offsetY?": types.number(),
67632
+ "offsetX?": types.number(),
67633
+ "allowOverflow?": types.boolean(),
67634
+ "enabled?": types.boolean(),
67635
+ "onAnimationEnd?": types.function(),
67636
+ "class?": types.string()
67651
67637
  }, {
67652
67638
  color: "#aaaaaa",
67653
67639
  opacity: .4,
@@ -67908,10 +67894,10 @@ set(value) {
67908
67894
  ColorPicker
67909
67895
  };
67910
67896
  props = (0, _odoo_owl.props)({
67911
- sheetId: _odoo_owl.types.string(),
67912
- openContextMenu: _odoo_owl.types.function([_odoo_owl.types.instanceOf(MenuItemRegistry), _odoo_owl.types.instanceOf(MouseEvent)]),
67913
- "style?": _odoo_owl.types.string(),
67914
- "onMouseDown?": _odoo_owl.types.function([_odoo_owl.types.instanceOf(PointerEvent)])
67897
+ sheetId: types.string(),
67898
+ openContextMenu: types.function(),
67899
+ "style?": types.string(),
67900
+ "onMouseDown?": types.function()
67915
67901
  }, {
67916
67902
  onMouseDown: () => {},
67917
67903
  style: ""
@@ -68178,12 +68164,8 @@ set(value) {
68178
68164
  static template = "o-spreadsheet-BottomBarStatistic";
68179
68165
  static components = { Ripple };
68180
68166
  props = (0, _odoo_owl.props)({
68181
- openContextMenu: _odoo_owl.types.function([
68182
- _odoo_owl.types.number(),
68183
- _odoo_owl.types.number(),
68184
- _odoo_owl.types.instanceOf(MenuItemRegistry)
68185
- ]),
68186
- closeContextMenu: _odoo_owl.types.function([])
68167
+ openContextMenu: types.function(),
68168
+ closeContextMenu: types.function()
68187
68169
  });
68188
68170
  state = (0, _odoo_owl.proxy)({ selectedStatisticFn: "" });
68189
68171
  store;
@@ -68227,7 +68209,7 @@ set(value) {
68227
68209
  const MENU_MAX_HEIGHT = 250;
68228
68210
  var BottomBar = class extends Component {
68229
68211
  static template = "o-spreadsheet-BottomBar";
68230
- props = (0, _odoo_owl.props)({ onClick: _odoo_owl.types.function([]) });
68212
+ props = (0, _odoo_owl.props)({ onClick: types.function() });
68231
68213
  static components = {
68232
68214
  MenuPopover,
68233
68215
  Ripple,
@@ -68510,7 +68492,7 @@ set(value) {
68510
68492
  VerticalScrollBar,
68511
68493
  HorizontalScrollBar
68512
68494
  };
68513
- props = (0, _odoo_owl.props)({ getGridSize: types$6.function([], types$6.DOMDimension()) });
68495
+ props = (0, _odoo_owl.props)({ getGridSize: types.function() });
68514
68496
  cellPopovers;
68515
68497
  onMouseWheel;
68516
68498
  canvasPosition;
@@ -68624,9 +68606,9 @@ set(value) {
68624
68606
  var AbstractHeaderGroup = class extends Component {
68625
68607
  static template = "o-spreadsheet-HeaderGroup";
68626
68608
  props = (0, _odoo_owl.props)({
68627
- group: types$6.HeaderGroup(),
68628
- layerOffset: types$6.number(),
68629
- openContextMenu: types$6.function([types$6.DOMCoordinates(), types$6.ArrayOf()])
68609
+ group: types.HeaderGroup(),
68610
+ layerOffset: types.number(),
68611
+ openContextMenu: types.function()
68630
68612
  });
68631
68613
  toggleGroup() {
68632
68614
  const sheetId = this.env.model.getters.getActiveSheetId();
@@ -68778,8 +68760,8 @@ set(value) {
68778
68760
  MenuPopover
68779
68761
  };
68780
68762
  props = (0, _odoo_owl.props)({
68781
- dimension: types$6.Dimension(),
68782
- layers: types$6.array()
68763
+ dimension: types.Dimension(),
68764
+ layers: types.array()
68783
68765
  });
68784
68766
  menu = (0, _odoo_owl.proxy)({
68785
68767
  isOpen: false,
@@ -68854,15 +68836,15 @@ set(value) {
68854
68836
  var SidePanel = class extends Component {
68855
68837
  static template = "o-spreadsheet-SidePanel";
68856
68838
  props = (0, _odoo_owl.props)({
68857
- panelContent: types$6.SidePanelContent(),
68858
- panelProps: types$6.SidePanelComponentProps(),
68859
- onCloseSidePanel: types$6.function([]),
68860
- onStartHandleDrag: types$6.function([types$6.instanceOf(MouseEvent)]),
68861
- onResetPanelSize: types$6.function([]),
68862
- "isPinned?": types$6.boolean(),
68863
- "onTogglePinPanel?": types$6.function([]),
68864
- "onToggleCollapsePanel?": types$6.function([]),
68865
- "isCollapsed?": types$6.boolean()
68839
+ panelContent: types.SidePanelContent(),
68840
+ panelProps: types.SidePanelComponentProps(),
68841
+ onCloseSidePanel: types.function(),
68842
+ onStartHandleDrag: types.function(),
68843
+ onResetPanelSize: types.function(),
68844
+ "isPinned?": types.boolean(),
68845
+ "onTogglePinPanel?": types.function(),
68846
+ "onToggleCollapsePanel?": types.function(),
68847
+ "isCollapsed?": types.boolean()
68866
68848
  });
68867
68849
  spreadsheetRect = useSpreadsheetRect();
68868
68850
  getTitle() {
@@ -68947,7 +68929,7 @@ set(value) {
68947
68929
  var RibbonMenu = class extends Component {
68948
68930
  static template = "o-spreadsheet-RibbonMenu";
68949
68931
  static components = { Menu };
68950
- props = (0, _odoo_owl.props)({ onClose: types$6.function([]) });
68932
+ props = (0, _odoo_owl.props)({ onClose: types.function() });
68951
68933
  rootItems = topbarMenuRegistry.getMenuItems();
68952
68934
  menuRef = (0, _odoo_owl.signal)(null);
68953
68935
  containerRef = (0, _odoo_owl.signal)(null);
@@ -69018,7 +69000,7 @@ set(value) {
69018
69000
  RibbonMenu
69019
69001
  };
69020
69002
  static template = "o-spreadsheet-SmallBottomBar";
69021
- props = (0, _odoo_owl.props)({ onClick: types$6.function([]) });
69003
+ props = (0, _odoo_owl.props)({ onClick: types.function() });
69022
69004
  composerFocusStore;
69023
69005
  composerStore;
69024
69006
  composerInterface;
@@ -69220,9 +69202,9 @@ set(value) {
69220
69202
  var StandaloneGridCanvas = class extends Component {
69221
69203
  static template = "o-spreadsheet-StandaloneGridCanvas";
69222
69204
  props = (0, _odoo_owl.props)({
69223
- sheetId: types$6.UID(),
69224
- zone: types$6.Zone(),
69225
- renderingCtx: types$6.object({})
69205
+ sheetId: types.UID(),
69206
+ zone: types.Zone(),
69207
+ renderingCtx: types.object({})
69226
69208
  });
69227
69209
  canvasRef = (0, _odoo_owl.signal)(null);
69228
69210
  rendererStore;
@@ -69544,7 +69526,7 @@ set(value) {
69544
69526
  //#region src/components/spreadsheet_print/spreadsheet_print.ts
69545
69527
  var SpreadsheetPrint = class extends Component {
69546
69528
  static template = "o-spreadsheet-SpreadsheetPrint";
69547
- props = (0, _odoo_owl.props)({ onExitPrintMode: types$6.function([]) });
69529
+ props = (0, _odoo_owl.props)({ onExitPrintMode: types.function() });
69548
69530
  static components = {
69549
69531
  StandaloneGridCanvas,
69550
69532
  Section,
@@ -69877,15 +69859,15 @@ set(value) {
69877
69859
  Popover
69878
69860
  };
69879
69861
  props = (0, _odoo_owl.props)({
69880
- "class?": types$6.string(),
69881
- currentBorderColor: types$6.Color(),
69882
- currentBorderStyle: types$6.BorderStyle(),
69883
- "currentBorderPosition?": types$6.BorderPosition(),
69884
- onBorderColorPicked: types$6.function([types$6.Color()]),
69885
- onBorderStylePicked: types$6.function([types$6.BorderStyle()]),
69886
- onBorderPositionPicked: types$6.function([types$6.BorderPosition()]),
69887
- "maxHeight?": types$6.Pixel(),
69888
- anchorRect: types$6.Rect()
69862
+ "class?": types.string(),
69863
+ currentBorderColor: types.Color(),
69864
+ currentBorderStyle: types.BorderStyle(),
69865
+ "currentBorderPosition?": types.BorderPosition(),
69866
+ onBorderColorPicked: types.function(),
69867
+ onBorderStylePicked: types.function(),
69868
+ onBorderPositionPicked: types.function(),
69869
+ "maxHeight?": types.Pixel(),
69870
+ anchorRect: types.Rect()
69889
69871
  });
69890
69872
  BORDER_POSITIONS = BORDER_POSITIONS;
69891
69873
  lineStyleButtonRef = (0, _odoo_owl.signal)(null);
@@ -69949,9 +69931,9 @@ set(value) {
69949
69931
  static template = "o-spreadsheet-BorderEditorWidget";
69950
69932
  static components = { BorderEditor };
69951
69933
  props = (0, _odoo_owl.props)({
69952
- "disabled?": types$6.boolean(),
69953
- "dropdownMaxHeight?": types$6.Pixel(),
69954
- "class?": types$6.string()
69934
+ "disabled?": types.boolean(),
69935
+ "dropdownMaxHeight?": types.Pixel(),
69936
+ "class?": types.string()
69955
69937
  });
69956
69938
  topBarToolStore;
69957
69939
  borderEditorButtonRef = (0, _odoo_owl.signal)(null);
@@ -70009,7 +69991,7 @@ set(value) {
70009
69991
  //#region src/components/paint_format_button/paint_format_button.ts
70010
69992
  var PaintFormatButton = class extends Component {
70011
69993
  static template = "o-spreadsheet-PaintFormatButton";
70012
- props = (0, _odoo_owl.props)({ "class?": types$6.string() });
69994
+ props = (0, _odoo_owl.props)({ "class?": types.string() });
70013
69995
  paintFormatStore;
70014
69996
  setup() {
70015
69997
  this.paintFormatStore = useStore(PaintFormatStore);
@@ -70034,7 +70016,7 @@ set(value) {
70034
70016
  TableStylesPopover,
70035
70017
  ActionButton
70036
70018
  };
70037
- props = (0, _odoo_owl.props)({ "class?": types$6.string() });
70019
+ props = (0, _odoo_owl.props)({ "class?": types.string() });
70038
70020
  topBarToolStore;
70039
70021
  state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
70040
70022
  setup() {
@@ -70125,10 +70107,10 @@ set(value) {
70125
70107
  static components = { ColorPickerWidget };
70126
70108
  static template = "o-spreadsheet-ColorEditor";
70127
70109
  props = (0, _odoo_owl.props)({
70128
- class: types$6.string(),
70129
- style: types$6.or([types$6.literal("textColor"), types$6.literal("fillColor")]),
70130
- icon: types$6.string(),
70131
- title: types$6.string()
70110
+ class: types.string(),
70111
+ style: types.or([types.literal("textColor"), types.literal("fillColor")]),
70112
+ icon: types.string(),
70113
+ title: types.string()
70132
70114
  });
70133
70115
  topBarToolStore;
70134
70116
  state = (0, _odoo_owl.proxy)({ isOpen: false });
@@ -70160,10 +70142,10 @@ set(value) {
70160
70142
  Popover
70161
70143
  };
70162
70144
  props = (0, _odoo_owl.props)({
70163
- parentAction: types$6.ActionSpec(),
70164
- childActions: types$6.array(types$6.ActionSpec()),
70165
- class: types$6.string(),
70166
- childClass: types$6.string()
70145
+ parentAction: types.ActionSpec(),
70146
+ childActions: types.array(types.ActionSpec()),
70147
+ class: types.string(),
70148
+ childClass: types.string()
70167
70149
  });
70168
70150
  topBarToolStore;
70169
70151
  actionRef = (0, _odoo_owl.signal)(null);
@@ -70192,7 +70174,7 @@ set(value) {
70192
70174
  var TopBarFontSizeEditor = class extends Component {
70193
70175
  static components = { FontSizeEditor };
70194
70176
  static template = "o-spreadsheet-TopBarFontSizeEditor";
70195
- props = (0, _odoo_owl.props)({ class: _odoo_owl.types.string() });
70177
+ props = (0, _odoo_owl.props)({ class: types.string() });
70196
70178
  topBarToolStore;
70197
70179
  setup() {
70198
70180
  this.topBarToolStore = useToolBarDropdownStore();
@@ -70226,7 +70208,7 @@ set(value) {
70226
70208
  MenuPopover,
70227
70209
  ActionButton
70228
70210
  };
70229
- props = (0, _odoo_owl.props)({ class: types$6.string() });
70211
+ props = (0, _odoo_owl.props)({ class: types.string() });
70230
70212
  formatNumberMenuItemSpec = formatNumberMenuItemSpec;
70231
70213
  topBarToolStore;
70232
70214
  buttonRef = (0, _odoo_owl.signal)(null);
@@ -70261,7 +70243,7 @@ set(value) {
70261
70243
  var ToolBarZoom = class extends Component {
70262
70244
  static template = "o-spreadsheet-TopBarZoom";
70263
70245
  static components = { NumberEditor };
70264
- props = (0, _odoo_owl.props)({ class: types$6.string() });
70246
+ props = (0, _odoo_owl.props)({ class: types.string() });
70265
70247
  topBarToolStore;
70266
70248
  valueList = ZOOM_VALUES;
70267
70249
  setup() {
@@ -70488,8 +70470,8 @@ set(value) {
70488
70470
  var TopBar = class extends Component {
70489
70471
  static template = "o-spreadsheet-TopBar";
70490
70472
  props = (0, _odoo_owl.props)({
70491
- onClick: types$6.function([]),
70492
- dropdownMaxHeight: types$6.Pixel()
70473
+ onClick: types.function(),
70474
+ dropdownMaxHeight: types.Pixel()
70493
70475
  });
70494
70476
  static components = {
70495
70477
  MenuPopover,
@@ -70766,14 +70748,10 @@ set(value) {
70766
70748
  var Spreadsheet = class extends Component {
70767
70749
  static template = "o-spreadsheet-Spreadsheet";
70768
70750
  props = (0, _odoo_owl.props)({
70769
- model: types$6.Model(),
70770
- "notifyUser?": types$6.function([types$6.InformationNotification()]),
70771
- "raiseError?": types$6.function([types$6.string(), types$6.function([])]),
70772
- "askConfirmation?": types$6.function([
70773
- types$6.string(),
70774
- types$6.function([]),
70775
- types$6.function([])
70776
- ])
70751
+ model: types.Model(),
70752
+ "notifyUser?": types.function(),
70753
+ "raiseError?": types.function(),
70754
+ "askConfirmation?": types.function()
70777
70755
  });
70778
70756
  static components = {
70779
70757
  TopBar,
@@ -76352,8 +76330,8 @@ set(value) {
76352
76330
  static maxSize = { maxHeight: ERROR_TOOLTIP_MAX_HEIGHT };
76353
76331
  static template = "o-spreadsheet-ErrorToolTip";
76354
76332
  props = (0, _odoo_owl.props)({
76355
- cellPosition: types$6.CellPosition(),
76356
- "onClosed?": types$6.function([])
76333
+ cellPosition: types.CellPosition(),
76334
+ "onClosed?": types.function()
76357
76335
  });
76358
76336
  get dataValidationErrorMessage() {
76359
76337
  return this.env.model.getters.getInvalidDataValidationMessage(this.props.cellPosition);
@@ -76436,8 +76414,8 @@ set(value) {
76436
76414
  FilterMenuCriterion
76437
76415
  };
76438
76416
  props = (0, _odoo_owl.props)({
76439
- filterPosition: types$6.Position(),
76440
- "onClosed?": types$6.function([])
76417
+ filterPosition: types.Position(),
76418
+ "onClosed?": types.function()
76441
76419
  });
76442
76420
  state;
76443
76421
  criterionCategory = "text";
@@ -76616,8 +76594,8 @@ set(value) {
76616
76594
  var LinkDisplay = class extends Component {
76617
76595
  static template = "o-spreadsheet-LinkDisplay";
76618
76596
  props = (0, _odoo_owl.props)({
76619
- cellPosition: types$6.CellPosition(),
76620
- "onClosed?": types$6.function([])
76597
+ cellPosition: types.CellPosition(),
76598
+ "onClosed?": types.function()
76621
76599
  });
76622
76600
  cellPopovers;
76623
76601
  setup() {
@@ -76690,8 +76668,8 @@ set(value) {
76690
76668
  static template = "o-spreadsheet-LinkEditor";
76691
76669
  static components = { MenuPopover };
76692
76670
  props = (0, _odoo_owl.props)({
76693
- cellPosition: types$6.CellPosition(),
76694
- "onClosed?": types$6.function([])
76671
+ cellPosition: types.CellPosition(),
76672
+ "onClosed?": types.function()
76695
76673
  });
76696
76674
  static size = { maxHeight: 500 };
76697
76675
  urlInput = (0, _odoo_owl.signal)(null);
@@ -86381,8 +86359,8 @@ exports.stores = stores;
86381
86359
  exports.tokenColors = tokenColors;
86382
86360
  exports.tokenize = tokenize;
86383
86361
 
86384
- __info__.version = "19.4.0-alpha.12";
86385
- __info__.date = "2026-06-06T06:24:48.209Z";
86386
- __info__.hash = "a71f829";
86362
+ __info__.version = "19.4.0-alpha.14";
86363
+ __info__.date = "2026-06-12T09:49:11.281Z";
86364
+ __info__.hash = "f92f5e0";
86387
86365
 
86388
86366
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);