@odoo/o-spreadsheet 19.1.0-alpha.0 → 19.1.0-alpha.2

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 19.1.0-alpha.0
5
- @date 2025-09-11T07:50:38.945Z
6
- @hash 587c928
4
+ @version 19.1.0-alpha.2
5
+ @date 2025-09-19T07:27:40.524Z
6
+ @hash 8cc543d
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1150,6 +1150,12 @@
1150
1150
  t-att-selected="agg === measure.aggregator"
1151
1151
  t-esc="props.aggregators[measure.type][agg]"
1152
1152
  />
1153
+ <option
1154
+ t-if="measure.computedBy"
1155
+ t-att-value="''"
1156
+ t-att-selected="'' === measure.aggregator">
1157
+ Compute from totals
1158
+ </option>
1153
1159
  </select>
1154
1160
  </div>
1155
1161
  </div>
@@ -4262,7 +4268,6 @@
4262
4268
  t-att-class="props.class"
4263
4269
  t-ref="popover"
4264
4270
  t-on-wheel="props.onMouseWheel"
4265
- t-att-style="popoverStyle"
4266
4271
  t-on-click.stop="">
4267
4272
  <div class="o-popover-content" t-ref="popoverContent">
4268
4273
  <t t-slot="default"/>
@@ -5327,7 +5332,7 @@
5327
5332
  </svg>
5328
5333
  </t>
5329
5334
  <t t-name="o-spreadsheet-Icon.COG">
5330
- <svg fill="currentColor" viewBox="0 0 16 16">
5335
+ <svg class="o-icon" fill="currentColor" viewBox="0 0 16 16">
5331
5336
  <path
5332
5337
  d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"
5333
5338
  />
@@ -5420,7 +5425,7 @@
5420
5425
  </svg>
5421
5426
  </t>
5422
5427
  <t t-name="o-spreadsheet-Icon.EDIT_TABLE">
5423
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5428
+ <svg class="o-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5424
5429
  <path
5425
5430
  fill="currentColor"
5426
5431
  d="M2.5 1A1.5 1.5 0 0 0 1 2.5v11A1.5 1.5 0 0 0 2.5 15H7l1.5-1.5H7v-2.75h3.5v.75l2.25-2.25H12v-2.5h3.5v.75c.1-.2.45-.05.5.02l1 1V2.5A1.5 1.5 0 0 0 15.5 1m-13 1.5h13v2.75h-13m0 1.5h3v2.5h-3M7 6.75h3.5v2.5H7m-4.5 1.5h3v2.75h-3 M8.2 15.7v1.8h1.8l5.4-5.4-1.8-1.8-5.4 5.4Zm8.8-5.2a.5.5 0 0 0 0-.7l-1.1-1.1a.5.5 0 0 0-.7 0l-.9.9 1.8 1.8.9-.9Z"
@@ -5428,7 +5433,7 @@
5428
5433
  </svg>
5429
5434
  </t>
5430
5435
  <t t-name="o-spreadsheet-Icon.DELETE_TABLE">
5431
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5436
+ <svg class="o-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5432
5437
  <path
5433
5438
  fill="currentColor"
5434
5439
  d="M2.5 1A1.5 1.5 0 0 0 1 2.5v11A1.5 1.5 0 0 0 2.5 15H7l1.5-1.5H7V6.75h3.5v.75L12 9V6.75h3.5l1.5 1.5V2.5A1.5 1.5 0 0 0 15.5 1m-13 1.5h13v2.75h-13m0 1.5h3v2.5h-3m0 1.5h3v2.75h-3m10-2.25 3-3 1.5 1.5-3 3 3 3-1.5 1.5-3-3-3 3-1.5-1.5 3-3-3-3 1.5-1.5"
@@ -5436,7 +5441,7 @@
5436
5441
  </svg>
5437
5442
  </t>
5438
5443
  <t t-name="o-spreadsheet-Icon.PAINT_TABLE">
5439
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5444
+ <svg class="o-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
5440
5445
  <path
5441
5446
  fill="currentColor"
5442
5447
  d="M2.5 1A1.5 1.5 0 0 0 1 2.5v11A1.5 1.5 0 0 0 2.5 15h5c0-.5 0-1 .5-1.5H7v-2.75h3.5v.75l2.25-2.25H12v-2.5h3.5v.75c1-.7 1.5-.4 1.5-.4V2.5A1.5 1.5 0 0 0 15.5 1m-13 1.5h13v2.75h-13m0 1.5h3v2.5h-3M7 6.75h3.5v2.5H7m-4.5 1.5h3v2.75h-3m7.5-.3c.7-.3 1.5-.1 2.1.6.6.7.8 1.4.5 1.9-.6 1.4-3.7 1.6-4 1.7l-.6.1.3-.5s.5-.8.5-2.1c0-.7.5-1.4 1.1-1.7Zm6.7-5.1a.9.9 0 0 1 1 1c-.1 1.3-2.5 3.7-4.3 5.3a3.9 3.9 0 0 0-.6-1.1c-.4-.4-.8-.7-1.3-.8 1.5-1.7 4-4.3 5.4-4.4"
@@ -5898,7 +5903,7 @@
5898
5903
  anchorRect="cellPopover.anchorRect"
5899
5904
  containerRect="env.getPopoverContainerRect()"
5900
5905
  onMouseWheel="props.onMouseWheel"
5901
- zIndex="zIndex">
5906
+ class="'o-popover-grid-index'">
5902
5907
  <t
5903
5908
  t-component="cellPopover.Component"
5904
5909
  t-props="{...cellPopover.props, onClosed : () => props.onClosePopover()}"
@@ -6290,8 +6295,13 @@
6290
6295
  'o-carousel-header-floating': !env.isDashboard() and selectedItem?.type === 'carouselDataView',
6291
6296
  }"
6292
6297
  t-att-style="headerStyle">
6293
- <div class="o-carousel-title text-truncate" t-esc="title" t-att-style="titleStyle"/>
6294
- <div class="ms-auto d-flex">
6298
+ <div
6299
+ class="o-carousel-title text-truncate flex-shrink-0 pe-2"
6300
+ t-esc="title"
6301
+ t-att-title="title"
6302
+ t-att-style="titleStyle"
6303
+ />
6304
+ <div class="o-carousel-tabs d-flex flex-fill justify-content-end" t-ref="carouselTabs">
6295
6305
  <t t-foreach="carousel.items" t-as="item" t-key="item_index">
6296
6306
  <div
6297
6307
  class="o-carousel-tab text-truncate px-2 mt-1 flex-shrink-0"
@@ -6301,6 +6311,21 @@
6301
6311
  />
6302
6312
  </t>
6303
6313
  </div>
6314
+ <div
6315
+ class="o-carousel-tabs-dropdown flex-shrink-0 rounded"
6316
+ t-att-class="{'active': menuState.isOpen}"
6317
+ t-ref="carouselTabsDropdown"
6318
+ t-on-click="toggleMenu">
6319
+ <div class="fa fa-angle-down"/>
6320
+ <MenuPopover
6321
+ t-if="menuState.isOpen"
6322
+ menuId="menuId"
6323
+ anchorRect="menuState.anchorRect"
6324
+ menuItems="menuState.menuItems"
6325
+ onClose="() => this.menuState.isOpen=false"
6326
+ popoverPositioning="'bottom-left'"
6327
+ />
6328
+ </div>
6304
6329
  </div>
6305
6330
  <div
6306
6331
  t-if="!selectedItem"
@@ -6327,7 +6352,11 @@
6327
6352
  </t>
6328
6353
 
6329
6354
  <t t-name="o-spreadsheet-FigureComponent">
6330
- <div class="o-figure-wrapper" t-att-style="wrapperStyle" t-ref="figureWrapper">
6355
+ <div
6356
+ class="o-figure-wrapper"
6357
+ t-att-class="{'o-figure-selected': isSelected}"
6358
+ t-att-style="wrapperStyle"
6359
+ t-ref="figureWrapper">
6331
6360
  <div
6332
6361
  class="o-figure w-100 h-100"
6333
6362
  t-att-class="props.class"
@@ -6553,9 +6582,12 @@
6553
6582
  </t>
6554
6583
 
6555
6584
  <t t-name="o-spreadsheet-ClickableCellSortIcon">
6556
- <div class="w-100 h-100 d-flex flex-column align-items-end justify-content-end">
6557
- <span class="o-icon h-100 sorting-icon pb-1" t-att-style="style">
6558
- <i class="fa fa-small" t-att-class="icon"/>
6585
+ <div class="w-100 h-100 d-flex flex-column align-items-end" t-att-class="verticalJustifyClass">
6586
+ <span
6587
+ t-if="props.sortDirection === 'none'"
6588
+ class="o-icon sorting-icon pb-1"
6589
+ t-att-style="style">
6590
+ <i class="fa fa-small fa-sort"/>
6559
6591
  </span>
6560
6592
  </div>
6561
6593
  </t>
@@ -6566,9 +6598,10 @@
6566
6598
  class="o-topbar-composer position-relative bg-white user-select-text d-flex"
6567
6599
  t-att-class="{
6568
6600
  'o-topbar-composer-readonly': env.model.getters.isReadonly(),
6601
+ 'o-topbar-composer-active': focus !== 'inactive',
6602
+ 'o-topbar-composer-inactive': focus === 'inactive',
6569
6603
  }"
6570
- t-on-click.stop=""
6571
- t-att-style="containerStyle">
6604
+ t-on-click.stop="">
6572
6605
  <Composer
6573
6606
  focus="focus"
6574
6607
  inputStyle="composerStyle"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.1.0-alpha.0",
3
+ "version": "19.1.0-alpha.2",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -61,7 +61,8 @@
61
61
  "@prettier/plugin-xml": "^2.2.0",
62
62
  "@rollup/plugin-node-resolve": "^15.2.0",
63
63
  "@rollup/plugin-terser": "^0.4.3",
64
- "@swc/jest": "^0.2.36",
64
+ "@swc/jest": "0.2.36",
65
+ "@swc/core": "1.6.7",
65
66
  "@types/jest": "^27.0.1",
66
67
  "@types/node": "^20.17.24",
67
68
  "@types/rbush": "^3.0.3",
@@ -100,6 +101,18 @@
100
101
  "typescript-eslint": "^8.30.1",
101
102
  "xml-formatter": "^2.4.0"
102
103
  },
104
+ "optionalDependencies": {
105
+ "@swc/core-darwin-arm64": "1.6.7",
106
+ "@swc/core-darwin-x64": "1.6.7",
107
+ "@swc/core-linux-arm-gnueabihf": "1.6.7",
108
+ "@swc/core-linux-arm64-gnu": "1.6.7",
109
+ "@swc/core-linux-arm64-musl": "1.6.7",
110
+ "@swc/core-linux-x64-gnu": "1.6.7",
111
+ "@swc/core-linux-x64-musl": "1.6.7",
112
+ "@swc/core-win32-arm64-msvc": "1.6.7",
113
+ "@swc/core-win32-ia32-msvc": "1.6.7",
114
+ "@swc/core-win32-x64-msvc": "1.6.7"
115
+ },
103
116
  "prettier": {
104
117
  "printWidth": 100,
105
118
  "xmlWhitespaceSensitivity": "ignore",