@odoo/o-spreadsheet 19.4.0-alpha.12 → 19.4.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 19.4.0-alpha.12
6
- * @date 2026-06-06T06:24:48.209Z
7
- * @hash a71f829
5
+ * @version 19.4.0-alpha.13
6
+ * @date 2026-06-06T09:34:53.140Z
7
+ * @hash af3c199
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -10558,7 +10558,7 @@ function getFunnelChartScales(definition, args) {
10558
10558
  };
10559
10559
  }
10560
10560
  function getGeoChartProjection(projection) {
10561
- if (projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10561
+ if (globalThis.ChartGeo && projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10562
10562
  return projection;
10563
10563
  }
10564
10564
  function getChartAxisTitleRuntime(design) {
@@ -24805,6 +24805,18 @@ var ColorPicker = class extends Component {
24805
24805
  isSameColor(color1, color2) {
24806
24806
  return isSameColor(color1, color2);
24807
24807
  }
24808
+ get canUseEyeDropper() {
24809
+ return !!globalThis.EyeDropper && !this.env.model.getters.isDarkMode();
24810
+ }
24811
+ async activateEyedropper() {
24812
+ if (!globalThis.EyeDropper) return;
24813
+ try {
24814
+ const result = await new globalThis.EyeDropper().open();
24815
+ if (result && result.sRGBHex) this.props.onColorPicked(toHex(result.sRGBHex));
24816
+ } catch (error) {
24817
+ if (error.name !== "AbortError") throw error;
24818
+ }
24819
+ }
24808
24820
  };
24809
24821
 
24810
24822
  //#endregion
@@ -62567,6 +62579,7 @@ var GeoFeaturePlugin = class extends UIPlugin {
62567
62579
  convertToGeoJson(json) {
62568
62580
  if (!json) return null;
62569
62581
  if (json.type === "Topology") {
62582
+ if (!globalThis.ChartGeo) return null;
62570
62583
  const features = globalThis.ChartGeo.topojson.feature(json, Object.values(json.objects)[0]);
62571
62584
  return features.type === "FeatureCollection" ? features.features : [features];
62572
62585
  } else if (json.type === "FeatureCollection") return json.features;
@@ -86564,6 +86577,6 @@ exports.stores = stores;
86564
86577
  exports.tokenColors = tokenColors;
86565
86578
  exports.tokenize = tokenize;
86566
86579
 
86567
- __info__.version = "19.4.0-alpha.12";
86568
- __info__.date = "2026-06-06T06:24:48.209Z";
86569
- __info__.hash = "a71f829";
86580
+ __info__.version = "19.4.0-alpha.13";
86581
+ __info__.date = "2026-06-06T09:34:53.140Z";
86582
+ __info__.hash = "af3c199";
@@ -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:50.084Z
7
- * @hash a71f829
5
+ * @version 19.4.0-alpha.13
6
+ * @date 2026-06-06T09:34:54.989Z
7
+ * @hash af3c199
8
8
  */
9
9
  :root {
10
10
  --os-gray-100: light-dark(#f9fafb, #1b1d26);
@@ -3173,9 +3173,12 @@
3173
3173
  }
3174
3174
  }
3175
3175
  }
3176
+
3177
+ --color-picker-item-size: calc(var(--os-item-edge-length) + (2 * var(--os-item-border-width)));
3178
+
3176
3179
  .o-color-picker-line-item {
3177
- width: calc(var(--os-item-edge-length) + (2 * var(--os-item-border-width)));
3178
- height: calc(var(--os-item-edge-length) + (2 * var(--os-item-border-width)));
3180
+ width: var(--color-picker-item-size);
3181
+ height: var(--color-picker-item-size);
3179
3182
  margin: 0px;
3180
3183
  border-radius: 50px;
3181
3184
  border: var(--os-item-border-width) solid light-dark(var(--os-gray-600), #c0c0c0);
@@ -3187,6 +3190,18 @@
3187
3190
  cursor: pointer;
3188
3191
  }
3189
3192
  }
3193
+ .eyedropper {
3194
+ width: var(--color-picker-item-size);
3195
+ height: var(--color-picker-item-size);
3196
+ &:hover {
3197
+ background-color: var(--os-hovered-menu-item-color);
3198
+ color: var(--os-button-active-text-color);
3199
+ cursor: pointer;
3200
+ }
3201
+ .fa {
3202
+ font-size: 13px;
3203
+ }
3204
+ }
3190
3205
  .o-buttons {
3191
3206
  padding: var(--os-picker-padding);
3192
3207
  display: flex;
@@ -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.13
6
+ * @date 2026-06-06T09:34:53.140Z
7
+ * @hash af3c199
8
8
  */
9
9
 
10
10
  import { App, Component, EnvPlugin, Plugin, __ODOO_COMPATIBILITY_LAYER_ADDED__, blockDom, config, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, plugin, props, providePlugins, proxy, signal, status, toRaw, types, useChildEnv, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useLayoutEffect, useListener, useScope, useSubEnv, whenReady, xml } from "@odoo/owl";
@@ -10557,7 +10557,7 @@ function getFunnelChartScales(definition, args) {
10557
10557
  };
10558
10558
  }
10559
10559
  function getGeoChartProjection(projection) {
10560
- if (projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10560
+ if (globalThis.ChartGeo && projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10561
10561
  return projection;
10562
10562
  }
10563
10563
  function getChartAxisTitleRuntime(design) {
@@ -24804,6 +24804,18 @@ var ColorPicker = class extends Component$1 {
24804
24804
  isSameColor(color1, color2) {
24805
24805
  return isSameColor(color1, color2);
24806
24806
  }
24807
+ get canUseEyeDropper() {
24808
+ return !!globalThis.EyeDropper && !this.env.model.getters.isDarkMode();
24809
+ }
24810
+ async activateEyedropper() {
24811
+ if (!globalThis.EyeDropper) return;
24812
+ try {
24813
+ const result = await new globalThis.EyeDropper().open();
24814
+ if (result && result.sRGBHex) this.props.onColorPicked(toHex(result.sRGBHex));
24815
+ } catch (error) {
24816
+ if (error.name !== "AbortError") throw error;
24817
+ }
24818
+ }
24807
24819
  };
24808
24820
 
24809
24821
  //#endregion
@@ -62382,6 +62394,7 @@ var GeoFeaturePlugin = class extends UIPlugin {
62382
62394
  convertToGeoJson(json) {
62383
62395
  if (!json) return null;
62384
62396
  if (json.type === "Topology") {
62397
+ if (!globalThis.ChartGeo) return null;
62385
62398
  const features = globalThis.ChartGeo.topojson.feature(json, Object.values(json.objects)[0]);
62386
62399
  return features.type === "FeatureCollection" ? features.features : [features];
62387
62400
  } else if (json.type === "FeatureCollection") return json.features;
@@ -86285,6 +86298,6 @@ const chartHelpers = {
86285
86298
  //#endregion
86286
86299
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, BadExpressionError, CHART_TYPES, CellErrorType, CellValueType, CircularDependencyError, ClientDisconnectedError, ClipboardMIMEType, CommandResult, CompiledFormula, CorePlugin, CoreViewPlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DEFAULT_LOCALE_DIGIT_GROUPING, DIRECTION, DispatchResult, DivisionByZeroError, EvaluationError, InvalidReferenceError, LocalTransportService, Model, NEXT_VALUE, NotAvailableError, NumberTooLargeError, OrderedLayers, PREVIOUS_VALUE, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, SplillBlockedError, Spreadsheet, SpreadsheetPivotTable, UIPlugin, UnknownFunctionError, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderPositions, borderStyles, canExecuteInReadonly, categories, chartHelpers, compatibility, components, composerFocusTypes, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, errorTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidSubtotalFormulasCommands, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, lockedSheetAllowedCommands, parse, parseTokens, readonlyAllowedCommands, registries, schemeToColorScale, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
86287
86300
 
86288
- __info__.version = "19.4.0-alpha.12";
86289
- __info__.date = "2026-06-06T06:24:48.209Z";
86290
- __info__.hash = "a71f829";
86301
+ __info__.version = "19.4.0-alpha.13";
86302
+ __info__.date = "2026-06-06T09:34:53.140Z";
86303
+ __info__.hash = "af3c199";
@@ -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.13
6
+ * @date 2026-06-06T09:34:53.140Z
7
+ * @hash af3c199
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -10559,7 +10559,7 @@ set(value) {
10559
10559
  };
10560
10560
  }
10561
10561
  function getGeoChartProjection(projection) {
10562
- if (projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10562
+ if (globalThis.ChartGeo && projection === "conicConformal") return globalThis.ChartGeo.geoConicConformal().rotate([100, 0]);
10563
10563
  return projection;
10564
10564
  }
10565
10565
  function getChartAxisTitleRuntime(design) {
@@ -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
@@ -62384,6 +62396,7 @@ set(value) {
62384
62396
  convertToGeoJson(json) {
62385
62397
  if (!json) return null;
62386
62398
  if (json.type === "Topology") {
62399
+ if (!globalThis.ChartGeo) return null;
62387
62400
  const features = globalThis.ChartGeo.topojson.feature(json, Object.values(json.objects)[0]);
62388
62401
  return features.type === "FeatureCollection" ? features.features : [features];
62389
62402
  } else if (json.type === "FeatureCollection") return json.features;
@@ -86381,8 +86394,8 @@ exports.stores = stores;
86381
86394
  exports.tokenColors = tokenColors;
86382
86395
  exports.tokenize = tokenize;
86383
86396
 
86384
- __info__.version = "19.4.0-alpha.12";
86385
- __info__.date = "2026-06-06T06:24:48.209Z";
86386
- __info__.hash = "a71f829";
86397
+ __info__.version = "19.4.0-alpha.13";
86398
+ __info__.date = "2026-06-06T09:34:53.140Z";
86399
+ __info__.hash = "af3c199";
86387
86400
 
86388
86401
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);