@odoo/o-spreadsheet 17.2.0 → 17.2.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 17.2.0
5
- @date 2024-03-20T08:13:23.283Z
6
- @hash 1869c24
4
+ @version 17.2.2
5
+ @date 2024-04-05T14:01:58.370Z
6
+ @hash c15836d
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -276,7 +276,7 @@
276
276
  t-on-dblclick="() => this.onDblClick()"
277
277
  t-on-focusout="() => this.onFocusOut()"
278
278
  t-on-keydown="(ev) => this.onKeyDown(ev)"
279
- t-att-contenteditable="state.isEditing ? 'plaintext-only': 'false'"
279
+ t-att-contenteditable="state.isEditing ? 'true': 'false'"
280
280
  />
281
281
  <span class="o-sheet-icon ms-1" t-on-click.stop="(ev) => this.onIconClick(ev)">
282
282
  <t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
@@ -507,7 +507,7 @@
507
507
  }">
508
508
  <t t-set="context" t-value="getContext()"/>
509
509
  <div
510
- class="o-formula-assistant bg-white"
510
+ class="o-formula-assistant"
511
511
  t-if="context.functionName"
512
512
  t-on-pointermove="onMouseMove"
513
513
  t-att-class="{'opacity-25': assistantState.allowCellSelectionBehind}">
@@ -515,7 +515,7 @@
515
515
  <span t-esc="context.functionName"/>
516
516
  (
517
517
  <t t-foreach="context.functionDescription.args" t-as="arg" t-key="arg.name">
518
- <span t-if="arg_index > '0'">,&#xA0;</span>
518
+ <span t-if="arg_index > '0'" t-esc="formulaArgSeparator"/>
519
519
  <span t-att-class="{ 'o-formula-assistant-focus': context.argToFocus === arg_index }">
520
520
  <span>
521
521
  <span t-if="arg.optional || arg.repeating || arg.default">[</span>
@@ -1008,7 +1008,12 @@
1008
1008
  class="o-grid-add-rows mt-2 ms-2 w-100 d-flex position-relative align-items-center"
1009
1009
  t-att-style="addRowsPosition"
1010
1010
  t-on-pointerdown.stop.prevent="">
1011
- <button t-on-click="onConfirm" t-att-disabled="state.errorFlag" class="o-button">Add</button>
1011
+ <button
1012
+ t-on-click="onConfirm"
1013
+ t-att-disabled="state.errorFlag"
1014
+ class="o-button o-button-grey">
1015
+ Add
1016
+ </button>
1012
1017
  <input
1013
1018
  type="text"
1014
1019
  class="o-grid-add-rows-input o-input mt-0 me-2"
@@ -1204,25 +1209,22 @@
1204
1209
  t-as="hiddenItem"
1205
1210
  t-key="hiddenItem_index">
1206
1211
  <div
1207
- class="o-unhide-buttons position-relative float-end"
1212
+ class="position-absolute end-0 translate-middle-y"
1208
1213
  t-att-style="getUnhideButtonStyle(hiddenItem[0])">
1209
- <t t-if="!hiddenItem.includes(0)">
1210
- <div
1211
- class="o-unhide rounded mb-1"
1212
- t-att-data-index="hiddenItem_index"
1213
- t-on-click="() => this.unhide(hiddenItem)">
1214
- <t t-call="o-spreadsheet-Icon.TRIANGLE_UP"/>
1215
- </div>
1216
- </t>
1217
- <t
1218
- t-if="!hiddenItem.includes(env.model.getters.getNumberRows(env.model.getters.getActiveSheetId())-1)">
1219
- <div
1220
- class="o-unhide rounded"
1221
- t-att-data-index="hiddenItem_index"
1222
- t-on-click="() => this.unhide(hiddenItem)">
1223
- <t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
1224
- </div>
1225
- </t>
1214
+ <div
1215
+ class="o-unhide rounded mb-1"
1216
+ t-att-class="{'invisible': hiddenItem.includes(0)}"
1217
+ t-att-data-index="hiddenItem_index"
1218
+ t-on-click="() => this.unhide(hiddenItem)">
1219
+ <t t-call="o-spreadsheet-Icon.TRIANGLE_UP"/>
1220
+ </div>
1221
+ <div
1222
+ class="o-unhide rounded"
1223
+ t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberRows(env.model.getters.getActiveSheetId())-1)}"
1224
+ t-att-data-index="hiddenItem_index"
1225
+ t-on-click="() => this.unhide(hiddenItem)">
1226
+ <t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
1227
+ </div>
1226
1228
  </div>
1227
1229
  </t>
1228
1230
  </div>
@@ -1263,25 +1265,22 @@
1263
1265
  t-as="hiddenItem"
1264
1266
  t-key="hiddenItem_index">
1265
1267
  <div
1266
- class="o-unhide-buttons position-relative h-100 d-flex align-items-center"
1268
+ class="position-absolute h-100 d-flex align-items-center translate-middle-x gap-2"
1267
1269
  t-att-style="getUnhideButtonStyle(hiddenItem[0])">
1268
- <t t-if="!hiddenItem.includes(0)">
1269
- <div
1270
- class="o-unhide rounded"
1271
- t-att-data-index="hiddenItem_index"
1272
- t-on-click="() => this.unhide(hiddenItem)">
1273
- <t t-call="o-spreadsheet-Icon.TRIANGLE_LEFT"/>
1274
- </div>
1275
- </t>
1276
- <t
1277
- t-if="!hiddenItem.includes(env.model.getters.getNumberCols(env.model.getters.getActiveSheetId())-1)">
1278
- <div
1279
- class="o-unhide rounded"
1280
- t-att-data-index="hiddenItem_index"
1281
- t-on-click="() => this.unhide(hiddenItem)">
1282
- <t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
1283
- </div>
1284
- </t>
1270
+ <div
1271
+ class="o-unhide rounded"
1272
+ t-att-class="{'invisible': hiddenItem.includes(0)}"
1273
+ t-att-data-index="hiddenItem_index"
1274
+ t-on-click="() => this.unhide(hiddenItem)">
1275
+ <t t-call="o-spreadsheet-Icon.TRIANGLE_LEFT"/>
1276
+ </div>
1277
+ <div
1278
+ class="o-unhide rounded"
1279
+ t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberCols(env.model.getters.getActiveSheetId())-1)}"
1280
+ t-att-data-index="hiddenItem_index"
1281
+ t-on-click="() => this.unhide(hiddenItem)">
1282
+ <t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
1283
+ </div>
1285
1284
  </div>
1286
1285
  </t>
1287
1286
  </div>
@@ -2394,8 +2393,8 @@ https://fontawesome.com/license -->
2394
2393
  onClose="() => this.menu.isOpen=false"
2395
2394
  />
2396
2395
  <div class="o-buttons">
2397
- <button t-on-click="cancel" class="o-button o-cancel">Cancel</button>
2398
- <button t-on-click="save" class="o-button o-save" t-att-disabled="!link.url">
2396
+ <button t-on-click="cancel" class="o-button o-button-grey o-cancel">Cancel</button>
2397
+ <button t-on-click="save" class="o-button o-button-grey o-save" t-att-disabled="!link.url">
2399
2398
  Confirm
2400
2399
  </button>
2401
2400
  </div>
@@ -2428,7 +2427,7 @@ https://fontawesome.com/license -->
2428
2427
  t-att-class="{'disabled': !isMenuEnabled, 'o-menu-item-active': isActive(menuItem)}"
2429
2428
  t-att-style="getColor(menuItem)">
2430
2429
  <div class="d-flex w-100">
2431
- <div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle">
2430
+ <div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle flex-shrink-0">
2432
2431
  <t t-if="getIconName(menuItem)" t-call="{{getIconName(menuItem)}}"/>
2433
2432
  </div>
2434
2433
  <div class="o-menu-item-name align-middle text-truncate" t-esc="getName(menuItem)"/>
@@ -3145,7 +3144,8 @@ https://fontawesome.com/license -->
3145
3144
  <label
3146
3145
  class="o-checkbox"
3147
3146
  t-att-title="props.title"
3148
- t-att-class="{'text-muted': props.disabled }">
3147
+ t-att-class="{'text-muted': props.disabled }"
3148
+ t-attf-class="{{props.className}}">
3149
3149
  <input
3150
3150
  type="checkbox"
3151
3151
  t-att-disabled="props.disabled"
@@ -3340,8 +3340,12 @@ https://fontawesome.com/license -->
3340
3340
  <t t-set="rule" t-value="state.rules.iconSet"/>
3341
3341
  </t>
3342
3342
  <div class="o-sidePanelButtons">
3343
- <button t-on-click="props.onExitEdition" class="o-button o-cf-cancel">Cancel</button>
3344
- <button t-on-click="saveConditionalFormat" class="o-button primary o-cf-save">
3343
+ <button t-on-click="props.onExitEdition" class="o-button o-button-grey o-cf-cancel">
3344
+ Cancel
3345
+ </button>
3346
+ <button
3347
+ t-on-click="saveConditionalFormat"
3348
+ class="o-button o-button-grey primary o-cf-save">
3345
3349
  Save
3346
3350
  </button>
3347
3351
  </div>
@@ -3685,7 +3689,7 @@ https://fontawesome.com/license -->
3685
3689
  </Section>
3686
3690
  <div class="o-sidePanelButtons">
3687
3691
  <button
3688
- class="o-button"
3692
+ class="o-button o-button-grey"
3689
3693
  t-on-click="() => this.apply()"
3690
3694
  t-att-disabled="!formatProposals.length || isSameFormat">
3691
3695
  Apply
@@ -3804,7 +3808,7 @@ https://fontawesome.com/license -->
3804
3808
  </div>
3805
3809
  <div class="mb-2"/>
3806
3810
  </t>
3807
- <button class="o-dv-list-add-value o-button mb-3" t-on-click="onAddAnotherValue">
3811
+ <button class="o-dv-list-add-value o-button o-button-grey mb-3" t-on-click="onAddAnotherValue">
3808
3812
  Add another item
3809
3813
  </button>
3810
3814
 
@@ -3871,10 +3875,10 @@ https://fontawesome.com/license -->
3871
3875
  </Section>
3872
3876
 
3873
3877
  <div class="o-sidePanelButtons">
3874
- <button t-on-click="props.onExit" class="o-dv-cancel o-button">Cancel</button>
3878
+ <button t-on-click="props.onExit" class="o-dv-cancel o-button o-button-grey">Cancel</button>
3875
3879
  <button
3876
3880
  t-on-click="onSave"
3877
- class="o-dv-save o-button primary"
3881
+ class="o-dv-save o-button o-button-grey primary"
3878
3882
  t-att-class="{'o-disabled': !canSave }">
3879
3883
  Save
3880
3884
  </button>
@@ -3973,13 +3977,13 @@ https://fontawesome.com/license -->
3973
3977
  <button
3974
3978
  t-att-disabled="!hasSearchResult"
3975
3979
  t-on-click="() => store.selectPreviousMatch()"
3976
- class="o-button">
3980
+ class="o-button o-button-grey">
3977
3981
  Previous
3978
3982
  </button>
3979
3983
  <button
3980
3984
  t-att-disabled="!hasSearchResult"
3981
3985
  t-on-click="() => store.selectNextMatch()"
3982
- class="o-button">
3986
+ class="o-button o-button-grey">
3983
3987
  Next
3984
3988
  </button>
3985
3989
  </div>
@@ -3999,13 +4003,13 @@ https://fontawesome.com/license -->
3999
4003
  <button
4000
4004
  t-att-disabled="store.selectedMatchIndex === null"
4001
4005
  t-on-click="() => store.replace()"
4002
- class="o-button">
4006
+ class="o-button o-button-grey">
4003
4007
  Replace
4004
4008
  </button>
4005
4009
  <button
4006
4010
  t-att-disabled="store.selectedMatchIndex === null"
4007
4011
  t-on-click="() => store.replaceAll()"
4008
- class="o-button">
4012
+ class="o-button o-button-grey">
4009
4013
  Replace all
4010
4014
  </button>
4011
4015
  </div>
@@ -4063,7 +4067,7 @@ https://fontawesome.com/license -->
4063
4067
 
4064
4068
  <div class="o-sidePanelButtons">
4065
4069
  <button
4066
- class="o-button"
4070
+ class="o-button o-button-grey"
4067
4071
  t-att-class="{'o-disabled': !canConfirm}"
4068
4072
  t-on-click="onRemoveDuplicates">
4069
4073
  Remove duplicates
@@ -4181,7 +4185,7 @@ https://fontawesome.com/license -->
4181
4185
 
4182
4186
  <div class="o-sidePanelButtons">
4183
4187
  <button
4184
- class="o-button"
4188
+ class="o-button o-button-grey"
4185
4189
  t-att-class="{'o-disabled': isConfirmDisabled}"
4186
4190
  t-on-click="confirm">
4187
4191
  Confirm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.2.0",
3
+ "version": "17.2.2",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -100,7 +100,7 @@
100
100
  "xmlSelfClosingSpace": false
101
101
  },
102
102
  "dependencies": {
103
- "@odoo/owl": "2.2.7",
103
+ "@odoo/owl": "2.2.10",
104
104
  "bootstrap": "^5.1.3",
105
105
  "rbush": "^3.0.1"
106
106
  },