@odoo/o-spreadsheet 19.2.30 → 19.2.31

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.2.30
5
- @date 2026-09-18T05:25:54.700Z
6
- @hash 3e0951a
4
+ @version 19.2.31
5
+ @date 2026-10-01T07:52:55.093Z
6
+ @hash a784cea
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -415,7 +415,7 @@
415
415
  </div>
416
416
  </div>
417
417
  <SidePanels/>
418
- <div class="o-spreadsheet-bottombar-wrapper o-two-columns overflow-hidden">
418
+ <div class="o-spreadsheet-bottombar-wrapper o-two-columns overflow-hidden border-top">
419
419
  <SmallBottomBar t-if="env.isSmall" onClick="() => this.focusGrid()"/>
420
420
  <BottomBar t-else="" onClick="() => this.focusGrid()"/>
421
421
  </div>
@@ -965,106 +965,111 @@
965
965
  </t>
966
966
 
967
967
  <t t-name="o-spreadsheet-PivotDesignPanel">
968
+ <t t-set="isReadonly" t-value="env.model.getters.isReadonly()"/>
968
969
  <div class="h-100 overflow-y-auto">
969
- <Section class="'o-pivot-design'" title.translate="Display options">
970
- <div>
971
- <div class="container-fluid p-0 pt-2">
972
- <div class="row mb-2 align-items-center">
973
- <div class="col-6">Max rows:</div>
974
- <div class="col-6 d-flex align-items-center">
975
- <NumberInput
976
- value="pivotStyle.numberOfRows ?? ''"
977
- class="'o-pivot-n-of-rows'"
978
- placeholder.translate="e.g. 10"
979
- onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfRows')"
980
- />
970
+ <div
971
+ t-att="isReadonly ? ['inert', 1] : []"
972
+ t-att-class="{ 'pe-none opacity-50': isReadonly }">
973
+ <Section class="'o-pivot-design'" title.translate="Display options">
974
+ <div>
975
+ <div class="container-fluid p-0 pt-2">
976
+ <div class="row mb-2 align-items-center">
977
+ <div class="col-6">Max rows:</div>
978
+ <div class="col-6 d-flex align-items-center">
979
+ <NumberInput
980
+ value="pivotStyle.numberOfRows ?? ''"
981
+ class="'o-pivot-n-of-rows'"
982
+ placeholder.translate="e.g. 10"
983
+ onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfRows')"
984
+ />
985
+ </div>
981
986
  </div>
982
- </div>
983
- <div class="row mb-2 align-items-center">
984
- <div class="col-6">Max columns:</div>
985
- <div class="col-6 d-flex align-items-center">
986
- <NumberInput
987
- value="pivotStyle.numberOfColumns ?? ''"
988
- class="'o-pivot-n-of-columns'"
989
- placeholder.translate="e.g. 5"
990
- onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfColumns')"
991
- />
987
+ <div class="row mb-2 align-items-center">
988
+ <div class="col-6">Max columns:</div>
989
+ <div class="col-6 d-flex align-items-center">
990
+ <NumberInput
991
+ value="pivotStyle.numberOfColumns ?? ''"
992
+ class="'o-pivot-n-of-columns'"
993
+ placeholder.translate="e.g. 5"
994
+ onChange="(value) => this.updatePivotStyleNumberProperty(value, 'numberOfColumns')"
995
+ />
996
+ </div>
992
997
  </div>
993
- </div>
994
- <div class="row mb-2 align-items-center">
995
- <div class="col-6">Show totals:</div>
996
- <div class="col-6 d-flex align-items-center">
997
- <Checkbox
998
- name="'displayTotals'"
999
- value="pivotStyle.displayTotals ?? defaultStyle.displayTotals"
1000
- onChange="(val) => this.updatePivotStyleProperty('displayTotals', val)"
1001
- />
998
+ <div class="row mb-2 align-items-center">
999
+ <div class="col-6">Show totals:</div>
1000
+ <div class="col-6 d-flex align-items-center">
1001
+ <Checkbox
1002
+ name="'displayTotals'"
1003
+ value="pivotStyle.displayTotals ?? defaultStyle.displayTotals"
1004
+ onChange="(val) => this.updatePivotStyleProperty('displayTotals', val)"
1005
+ />
1006
+ </div>
1002
1007
  </div>
1003
- </div>
1004
- <div class="row mb-2 align-items-center">
1005
- <div class="col-6">Show column titles:</div>
1006
- <div class="col-6 d-flex align-items-center">
1007
- <Checkbox
1008
- name="'displayColumnHeaders'"
1009
- value="pivotStyle.displayColumnHeaders ?? defaultStyle.displayColumnHeaders"
1010
- onChange="(val) => this.updatePivotStyleProperty('displayColumnHeaders', val)"
1011
- />
1008
+ <div class="row mb-2 align-items-center">
1009
+ <div class="col-6">Show column titles:</div>
1010
+ <div class="col-6 d-flex align-items-center">
1011
+ <Checkbox
1012
+ name="'displayColumnHeaders'"
1013
+ value="pivotStyle.displayColumnHeaders ?? defaultStyle.displayColumnHeaders"
1014
+ onChange="(val) => this.updatePivotStyleProperty('displayColumnHeaders', val)"
1015
+ />
1016
+ </div>
1012
1017
  </div>
1013
- </div>
1014
- <div class="row mb-2 align-items-center">
1015
- <div class="col-6">Show measure titles:</div>
1016
- <div class="col-6 d-flex align-items-center">
1017
- <Checkbox
1018
- name="'displayMeasuresRow'"
1019
- value="pivotStyle.displayMeasuresRow ?? defaultStyle.displayMeasuresRow"
1020
- onChange="(val) => this.updatePivotStyleProperty('displayMeasuresRow', val)"
1021
- />
1018
+ <div class="row mb-2 align-items-center">
1019
+ <div class="col-6">Show measure titles:</div>
1020
+ <div class="col-6 d-flex align-items-center">
1021
+ <Checkbox
1022
+ name="'displayMeasuresRow'"
1023
+ value="pivotStyle.displayMeasuresRow ?? defaultStyle.displayMeasuresRow"
1024
+ onChange="(val) => this.updatePivotStyleProperty('displayMeasuresRow', val)"
1025
+ />
1026
+ </div>
1022
1027
  </div>
1023
1028
  </div>
1024
1029
  </div>
1025
- </div>
1026
- </Section>
1030
+ </Section>
1027
1031
 
1028
- <Section class="'o-pivot-table-style'" title.translate="Pivot table style">
1029
- <div class="row mb-2 align-items-center pt-2">
1030
- <div class="col-6">Banded rows:</div>
1031
- <div class="col-6 d-flex align-items-center">
1032
- <Checkbox
1033
- name="'bandedRows'"
1034
- value="pivotStyle.bandedRows ?? defaultStyle.bandedRows"
1035
- onChange="(val) => this.updatePivotStyleProperty('bandedRows', val)"
1036
- />
1032
+ <Section class="'o-pivot-table-style'" title.translate="Pivot table style">
1033
+ <div class="row mb-2 align-items-center pt-2">
1034
+ <div class="col-6">Banded rows:</div>
1035
+ <div class="col-6 d-flex align-items-center">
1036
+ <Checkbox
1037
+ name="'bandedRows'"
1038
+ value="pivotStyle.bandedRows ?? defaultStyle.bandedRows"
1039
+ onChange="(val) => this.updatePivotStyleProperty('bandedRows', val)"
1040
+ />
1041
+ </div>
1037
1042
  </div>
1038
- </div>
1039
- <div class="row mb-2 align-items-center">
1040
- <div class="col-6">Banded columns</div>
1041
- <div class="col-6 d-flex align-items-center">
1042
- <Checkbox
1043
- name="'bandedColumns'"
1044
- value="pivotStyle.bandedColumns ?? defaultStyle.bandedColumns"
1045
- onChange="(val) => this.updatePivotStyleProperty('bandedColumns', val)"
1046
- />
1043
+ <div class="row mb-2 align-items-center">
1044
+ <div class="col-6">Banded columns</div>
1045
+ <div class="col-6 d-flex align-items-center">
1046
+ <Checkbox
1047
+ name="'bandedColumns'"
1048
+ value="pivotStyle.bandedColumns ?? defaultStyle.bandedColumns"
1049
+ onChange="(val) => this.updatePivotStyleProperty('bandedColumns', val)"
1050
+ />
1051
+ </div>
1047
1052
  </div>
1048
- </div>
1049
- <div class="row mb-2 align-items-center">
1050
- <div class="col-6">Filter button</div>
1051
- <div class="col-6 d-flex align-items-center">
1052
- <Checkbox
1053
- name="'hasFilters'"
1054
- value="pivotStyle.hasFilters ?? defaultStyle.hasFilters"
1055
- onChange="(val) => this.updatePivotStyleProperty('hasFilters', val)"
1053
+ <div class="row mb-2 align-items-center">
1054
+ <div class="col-6">Filter button</div>
1055
+ <div class="col-6 d-flex align-items-center">
1056
+ <Checkbox
1057
+ name="'hasFilters'"
1058
+ value="pivotStyle.hasFilters ?? defaultStyle.hasFilters"
1059
+ onChange="(val) => this.updatePivotStyleProperty('hasFilters', val)"
1060
+ />
1061
+ </div>
1062
+ </div>
1063
+ <div class="mt-4">
1064
+ <TableStylePicker
1065
+ tableConfig="tableConfig"
1066
+ onStylePicked.bind="onStylePicked"
1067
+ tableStyles="tableStyles"
1068
+ type="'pivot'"
1056
1069
  />
1057
1070
  </div>
1058
- </div>
1059
- <div class="mt-4">
1060
- <TableStylePicker
1061
- tableConfig="tableConfig"
1062
- onStylePicked.bind="onStylePicked"
1063
- tableStyles="tableStyles"
1064
- type="'pivot'"
1065
- />
1066
- </div>
1067
- </Section>
1071
+ </Section>
1072
+ </div>
1068
1073
  </div>
1069
1074
  </t>
1070
1075
 
@@ -7498,7 +7503,7 @@
7498
7503
 
7499
7504
  <t t-name="o-spreadsheet-BottomBar">
7500
7505
  <div
7501
- class="o-spreadsheet-bottom-bar o-two-columns d-flex flex-fill align-items-center overflow-hidden border-top"
7506
+ class="o-spreadsheet-bottom-bar o-two-columns d-flex flex-fill align-items-center overflow-hidden"
7502
7507
  t-on-click="props.onClick"
7503
7508
  t-ref="bottomBar"
7504
7509
  t-on-contextmenu.prevent="">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.2.30",
3
+ "version": "19.2.31",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",