@odoo/o-spreadsheet 18.5.0-alpha.10 → 18.5.0-alpha.11

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.
@@ -1,9 +1,9 @@
1
1
  <!--
2
2
  This file is generated by o-spreadsheet build tools. Do not edit it.
3
3
  @see https://github.com/odoo/o-spreadsheet
4
- @version 18.5.0-alpha.10
5
- @date 2025-08-21T06:43:00.829Z
6
- @hash 5800d1b
4
+ @version 18.5.0-alpha.11
5
+ @date 2025-08-26T10:14:56.034Z
6
+ @hash b913e49
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -4408,7 +4408,10 @@
4408
4408
  t-att-style="getIconColor(menuItem)">
4409
4409
  <t t-if="getIconName(menuItem)" t-call="{{getIconName(menuItem)}}"/>
4410
4410
  </div>
4411
- <div class="o-menu-item-name align-middle text-truncate" t-esc="getName(menuItem)"/>
4411
+ <div
4412
+ class="o-menu-item-name align-middle text-truncate align-items-center d-flex"
4413
+ t-esc="getName(menuItem)"
4414
+ />
4412
4415
  <t t-set="description" t-value="menuItem.description(env)"/>
4413
4416
  <div
4414
4417
  t-if="description"
@@ -4418,12 +4421,12 @@
4418
4421
  <t t-set="secondaryIcon" t-value="menuItem.secondaryIcon(env)"/>
4419
4422
  <div
4420
4423
  t-if="isMenuRoot"
4421
- class="o-menu-item-root align-middle ms-auto"
4424
+ class="o-menu-item-root ms-auto align-items-center d-flex"
4422
4425
  t-call="o-spreadsheet-Icon.CARET_RIGHT"
4423
4426
  />
4424
4427
  <div
4425
4428
  t-elif="secondaryIcon"
4426
- class="o-menu-item-root align-middle ms-auto"
4429
+ class="o-menu-item-root ms-auto align-items-center d-flex"
4427
4430
  t-call="{{secondaryIcon}}"
4428
4431
  />
4429
4432
  </div>
@@ -6037,13 +6040,13 @@
6037
6040
  t-if="chartId"
6038
6041
  t-on-click="exitFullScreen">
6039
6042
  <button
6040
- class="o-exit top-0 end-0 position-absolute o-button primary m-1"
6043
+ class="o-exit top-0 end-0 position-absolute o-button primary m-1 shadow"
6041
6044
  t-on-click="exitFullScreen">
6042
6045
  Exit fullscreen
6043
6046
  </button>
6044
6047
  <div class="flex-fill">
6045
6048
  <div
6046
- class="o-fullscreen-chart o-figure position-relative"
6049
+ class="o-fullscreen-chart o-figure position-relative border rounded shadow"
6047
6050
  tabindex="1"
6048
6051
  t-ref="fullScreenChart"
6049
6052
  t-on-click.stop=""
@@ -6350,7 +6353,7 @@
6350
6353
  />
6351
6354
  <div class="o-figure-menu position-absolute m-2" t-if="!env.isDashboard()">
6352
6355
  <div
6353
- class="o-figure-menu-item"
6356
+ class="o-figure-menu-item d-flex-align-items-center"
6354
6357
  t-if="!env.model.getters.isReadonly() and props.figureUI.tag !== 'carousel'"
6355
6358
  t-on-click="showMenu"
6356
6359
  t-ref="menuButton"
@@ -6442,18 +6445,19 @@
6442
6445
 
6443
6446
  <t t-name="o-spreadsheet-ChartDashboardMenu">
6444
6447
  <div class="o-dashboard-chart-select position-absolute top-0 end-0" t-on-click.stop="">
6445
- <div class="d-flex flex-row px-1" t-att-style="backgroundColor">
6448
+ <div class="d-flex align-items-center gap-1 p-1 rounded" t-att-style="backgroundColor">
6446
6449
  <t t-foreach="getMenuItems()" t-as="item" t-key="item.id">
6447
- <button
6448
- t-attf-class=" {{item.iconClass}} {{item.isSelected ? 'active' : ''}}"
6449
- class="o-chart-dashboard-item btn mt-1 me-1 p-1 "
6450
+ <div
6451
+ t-attf-class=" {{item.class}}"
6452
+ class="o-chart-dashboard-item btn border-0 lh-1 p-1 d-flex align-items-center justify-content-center"
6450
6453
  t-att-title="item.label"
6451
6454
  t-on-click="item.onClick"
6452
- t-att-data-id="item.id"
6453
- />
6455
+ t-att-data-id="item.id">
6456
+ <t t-if="item.preview" t-call="{{item.preview}}"/>
6457
+ </div>
6454
6458
  </t>
6455
6459
  <button
6456
- class="o-chart-dashboard-item btn mt-1 p-1 fa fa-ellipsis-v"
6460
+ class="o-chart-dashboard-item btn text-muted lh-1 p-1 fa fa-ellipsis-v"
6457
6461
  t-on-click="openContextMenu"
6458
6462
  />
6459
6463
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.5.0-alpha.10",
3
+ "version": "18.5.0-alpha.11",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",