@odoo/o-spreadsheet 19.1.36 → 19.1.37

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.36
5
- @date 2026-09-18T05:25:26.597Z
6
- @hash 5661311
4
+ @version 19.1.37
5
+ @date 2026-10-01T07:46:04.054Z
6
+ @hash fe8ce23
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -405,7 +405,7 @@
405
405
  </div>
406
406
  </div>
407
407
  <SidePanels/>
408
- <div class="o-spreadsheet-bottombar-wrapper o-two-columns overflow-hidden">
408
+ <div class="o-spreadsheet-bottombar-wrapper o-two-columns overflow-hidden border-top">
409
409
  <SmallBottomBar t-if="env.isSmall" onClick="() => this.focusGrid()"/>
410
410
  <BottomBar t-else="" onClick="() => this.focusGrid()"/>
411
411
  </div>
@@ -977,64 +977,71 @@
977
977
  </t>
978
978
 
979
979
  <t t-name="o-spreadsheet-PivotDesignPanel">
980
- <Section class="'o-pivot-design h-100 overflow-y-auto'" title.translate="Display options">
981
- <div>
982
- <div class="container-fluid p-0 pt-2">
983
- <div class="row mb-2 align-items-center">
984
- <div class="col-6">Max rows:</div>
985
- <div class="col-6 d-flex align-items-center">
986
- <NumberInput
987
- value="pivotStyle.numberOfRows ?? ''"
988
- class="'o-pivot-n-of-rows'"
989
- placeholder.translate="e.g. 10"
990
- onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfRows')"
991
- />
992
- </div>
993
- </div>
994
- <div class="row mb-2 align-items-center">
995
- <div class="col-6">Max columns:</div>
996
- <div class="col-6 d-flex align-items-center">
997
- <NumberInput
998
- value="pivotStyle.numberOfColumns ?? ''"
999
- class="'o-pivot-n-of-columns'"
1000
- placeholder.translate="e.g. 5"
1001
- onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfColumns')"
1002
- />
1003
- </div>
1004
- </div>
1005
- <div class="row mb-2 align-items-center">
1006
- <div class="col-6">Show totals:</div>
1007
- <div class="col-6 d-flex align-items-center">
1008
- <Checkbox
1009
- name="'displayTotals'"
1010
- value="pivotStyle.displayTotals ?? defaultStyle.displayTotals"
1011
- onChange="(val) => this.updatePivotStyleProperty('displayTotals', val)"
1012
- />
1013
- </div>
1014
- </div>
1015
- <div class="row mb-2 align-items-center">
1016
- <div class="col-6">Show column titles:</div>
1017
- <div class="col-6 d-flex align-items-center">
1018
- <Checkbox
1019
- name="'displayColumnHeaders'"
1020
- value="pivotStyle.displayColumnHeaders ?? defaultStyle.displayColumnHeaders"
1021
- onChange="(val) => this.updatePivotStyleProperty('displayColumnHeaders', val)"
1022
- />
1023
- </div>
1024
- </div>
1025
- <div class="row mb-2 align-items-center">
1026
- <div class="col-6">Show measure titles:</div>
1027
- <div class="col-6 d-flex align-items-center">
1028
- <Checkbox
1029
- name="'displayMeasuresRow'"
1030
- value="pivotStyle.displayMeasuresRow ?? defaultStyle.displayMeasuresRow"
1031
- onChange="(val) => this.updatePivotStyleProperty('displayMeasuresRow', val)"
1032
- />
980
+ <t t-set="isReadonly" t-value="env.model.getters.isReadonly()"/>
981
+ <div class="h-100 overflow-y-auto">
982
+ <div
983
+ t-att="isReadonly ? ['inert', 1] : []"
984
+ t-att-class="{ 'pe-none opacity-50': isReadonly }">
985
+ <Section class="'o-pivot-design'" title.translate="Display options">
986
+ <div>
987
+ <div class="container-fluid p-0 pt-2">
988
+ <div class="row mb-2 align-items-center">
989
+ <div class="col-6">Max rows:</div>
990
+ <div class="col-6 d-flex align-items-center">
991
+ <NumberInput
992
+ value="pivotStyle.numberOfRows ?? ''"
993
+ class="'o-pivot-n-of-rows'"
994
+ placeholder.translate="e.g. 10"
995
+ onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfRows')"
996
+ />
997
+ </div>
998
+ </div>
999
+ <div class="row mb-2 align-items-center">
1000
+ <div class="col-6">Max columns:</div>
1001
+ <div class="col-6 d-flex align-items-center">
1002
+ <NumberInput
1003
+ value="pivotStyle.numberOfColumns ?? ''"
1004
+ class="'o-pivot-n-of-columns'"
1005
+ placeholder.translate="e.g. 5"
1006
+ onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfColumns')"
1007
+ />
1008
+ </div>
1009
+ </div>
1010
+ <div class="row mb-2 align-items-center">
1011
+ <div class="col-6">Show totals:</div>
1012
+ <div class="col-6 d-flex align-items-center">
1013
+ <Checkbox
1014
+ name="'displayTotals'"
1015
+ value="pivotStyle.displayTotals ?? defaultStyle.displayTotals"
1016
+ onChange="(val) => this.updatePivotStyleProperty('displayTotals', val)"
1017
+ />
1018
+ </div>
1019
+ </div>
1020
+ <div class="row mb-2 align-items-center">
1021
+ <div class="col-6">Show column titles:</div>
1022
+ <div class="col-6 d-flex align-items-center">
1023
+ <Checkbox
1024
+ name="'displayColumnHeaders'"
1025
+ value="pivotStyle.displayColumnHeaders ?? defaultStyle.displayColumnHeaders"
1026
+ onChange="(val) => this.updatePivotStyleProperty('displayColumnHeaders', val)"
1027
+ />
1028
+ </div>
1029
+ </div>
1030
+ <div class="row mb-2 align-items-center">
1031
+ <div class="col-6">Show measure titles:</div>
1032
+ <div class="col-6 d-flex align-items-center">
1033
+ <Checkbox
1034
+ name="'displayMeasuresRow'"
1035
+ value="pivotStyle.displayMeasuresRow ?? defaultStyle.displayMeasuresRow"
1036
+ onChange="(val) => this.updatePivotStyleProperty('displayMeasuresRow', val)"
1037
+ />
1038
+ </div>
1039
+ </div>
1033
1040
  </div>
1034
1041
  </div>
1035
- </div>
1042
+ </Section>
1036
1043
  </div>
1037
- </Section>
1044
+ </div>
1038
1045
  </t>
1039
1046
 
1040
1047
  <t t-name="o-spreadsheet-PivotMeasureDisplayPanel">
@@ -7539,7 +7546,7 @@
7539
7546
 
7540
7547
  <t t-name="o-spreadsheet-BottomBar">
7541
7548
  <div
7542
- class="o-spreadsheet-bottom-bar o-two-columns d-flex flex-fill align-items-center overflow-hidden border-top"
7549
+ class="o-spreadsheet-bottom-bar o-two-columns d-flex flex-fill align-items-center overflow-hidden"
7543
7550
  t-on-click="props.onClick"
7544
7551
  t-ref="bottomBar"
7545
7552
  t-on-contextmenu.prevent="">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.1.36",
3
+ "version": "19.1.37",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",