@odoo/o-spreadsheet 17.1.8 → 17.1.10
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.
- package/dist/o-spreadsheet.cjs.js +138 -69
- package/dist/o-spreadsheet.d.ts +3 -1
- package/dist/o-spreadsheet.esm.js +138 -69
- package/dist/o-spreadsheet.iife.js +138 -69
- package/dist/o-spreadsheet.iife.min.js +279 -283
- package/dist/o_spreadsheet.xml +65 -59
- package/package.json +3 -3
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -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.1.
|
|
5
|
-
@date 2024-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.1.10
|
|
5
|
+
@date 2024-04-05T14:00:40.320Z
|
|
6
|
+
@hash edc821c
|
|
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 ? '
|
|
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"/>
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
}">
|
|
509
509
|
<t t-set="context" t-value="getContext()"/>
|
|
510
510
|
<div
|
|
511
|
-
class="o-formula-assistant
|
|
511
|
+
class="o-formula-assistant"
|
|
512
512
|
t-if="context.functionName"
|
|
513
513
|
t-on-mousemove="onMouseMove"
|
|
514
514
|
t-att-class="{'opacity-25': assistantState.allowCellSelectionBehind}">
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
<span t-esc="context.functionName"/>
|
|
517
517
|
(
|
|
518
518
|
<t t-foreach="context.functionDescription.args" t-as="arg" t-key="arg.name">
|
|
519
|
-
<span t-if="arg_index > '0'"
|
|
519
|
+
<span t-if="arg_index > '0'" t-esc="formulaArgSeparator"/>
|
|
520
520
|
<span t-att-class="{ 'o-formula-assistant-focus': context.argToFocus === arg_index }">
|
|
521
521
|
<span>
|
|
522
522
|
<span t-if="arg.optional || arg.repeating || arg.default">[</span>
|
|
@@ -1015,7 +1015,12 @@
|
|
|
1015
1015
|
class="o-grid-add-rows mt-2 ms-2 w-100 d-flex position-relative align-items-center"
|
|
1016
1016
|
t-att-style="addRowsPosition"
|
|
1017
1017
|
t-on-mousedown.stop.prevent="">
|
|
1018
|
-
<button
|
|
1018
|
+
<button
|
|
1019
|
+
t-on-click="onConfirm"
|
|
1020
|
+
t-att-disabled="state.errorFlag"
|
|
1021
|
+
class="o-button o-button-grey">
|
|
1022
|
+
Add
|
|
1023
|
+
</button>
|
|
1019
1024
|
<input
|
|
1020
1025
|
type="text"
|
|
1021
1026
|
class="o-grid-add-rows-input o-input mt-0 me-2"
|
|
@@ -1211,25 +1216,22 @@
|
|
|
1211
1216
|
t-as="hiddenItem"
|
|
1212
1217
|
t-key="hiddenItem_index">
|
|
1213
1218
|
<div
|
|
1214
|
-
class="
|
|
1219
|
+
class="position-absolute end-0 translate-middle-y"
|
|
1215
1220
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1216
|
-
<
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
t-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
<t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
|
|
1231
|
-
</div>
|
|
1232
|
-
</t>
|
|
1221
|
+
<div
|
|
1222
|
+
class="o-unhide rounded mb-1"
|
|
1223
|
+
t-att-class="{'invisible': hiddenItem.includes(0)}"
|
|
1224
|
+
t-att-data-index="hiddenItem_index"
|
|
1225
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1226
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_UP"/>
|
|
1227
|
+
</div>
|
|
1228
|
+
<div
|
|
1229
|
+
class="o-unhide rounded"
|
|
1230
|
+
t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberRows(env.model.getters.getActiveSheetId())-1)}"
|
|
1231
|
+
t-att-data-index="hiddenItem_index"
|
|
1232
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1233
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
|
|
1234
|
+
</div>
|
|
1233
1235
|
</div>
|
|
1234
1236
|
</t>
|
|
1235
1237
|
</div>
|
|
@@ -1270,25 +1272,22 @@
|
|
|
1270
1272
|
t-as="hiddenItem"
|
|
1271
1273
|
t-key="hiddenItem_index">
|
|
1272
1274
|
<div
|
|
1273
|
-
class="
|
|
1275
|
+
class="position-absolute h-100 d-flex align-items-center translate-middle-x gap-2"
|
|
1274
1276
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1275
|
-
<
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
t-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
<t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
|
|
1290
|
-
</div>
|
|
1291
|
-
</t>
|
|
1277
|
+
<div
|
|
1278
|
+
class="o-unhide rounded"
|
|
1279
|
+
t-att-class="{'invisible': hiddenItem.includes(0)}"
|
|
1280
|
+
t-att-data-index="hiddenItem_index"
|
|
1281
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1282
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_LEFT"/>
|
|
1283
|
+
</div>
|
|
1284
|
+
<div
|
|
1285
|
+
class="o-unhide rounded"
|
|
1286
|
+
t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberCols(env.model.getters.getActiveSheetId())-1)}"
|
|
1287
|
+
t-att-data-index="hiddenItem_index"
|
|
1288
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1289
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
|
|
1290
|
+
</div>
|
|
1292
1291
|
</div>
|
|
1293
1292
|
</t>
|
|
1294
1293
|
</div>
|
|
@@ -2392,8 +2391,8 @@ https://fontawesome.com/license -->
|
|
|
2392
2391
|
onClose="() => this.menu.isOpen=false"
|
|
2393
2392
|
/>
|
|
2394
2393
|
<div class="o-buttons">
|
|
2395
|
-
<button t-on-click="cancel" class="o-button o-cancel">Cancel</button>
|
|
2396
|
-
<button t-on-click="save" class="o-button o-save" t-att-disabled="!link.url">
|
|
2394
|
+
<button t-on-click="cancel" class="o-button o-button-grey o-cancel">Cancel</button>
|
|
2395
|
+
<button t-on-click="save" class="o-button o-button-grey o-save" t-att-disabled="!link.url">
|
|
2397
2396
|
Confirm
|
|
2398
2397
|
</button>
|
|
2399
2398
|
</div>
|
|
@@ -2423,7 +2422,7 @@ https://fontawesome.com/license -->
|
|
|
2423
2422
|
t-att-class="{ 'o-menu-root': isMenuRoot, 'disabled': !isMenuEnabled, 'o-menu-item-active': isParentMenu(subMenu, menuItem)}"
|
|
2424
2423
|
t-att-style="getColor(menuItem)">
|
|
2425
2424
|
<div class="d-flex w-100">
|
|
2426
|
-
<div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle">
|
|
2425
|
+
<div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle flex-shrink-0">
|
|
2427
2426
|
<t t-if="getIconName(menuItem)" t-call="{{getIconName(menuItem)}}"/>
|
|
2428
2427
|
</div>
|
|
2429
2428
|
<div class="o-menu-item-name align-middle text-truncate" t-esc="getName(menuItem)"/>
|
|
@@ -3108,7 +3107,7 @@ https://fontawesome.com/license -->
|
|
|
3108
3107
|
</t>
|
|
3109
3108
|
|
|
3110
3109
|
<t t-name="o-spreadsheet.Checkbox">
|
|
3111
|
-
<label class="o-checkbox">
|
|
3110
|
+
<label class="o-checkbox" t-attf-class="{{props.className}}">
|
|
3112
3111
|
<input
|
|
3113
3112
|
type="checkbox"
|
|
3114
3113
|
t-att-name="props.name"
|
|
@@ -3302,8 +3301,12 @@ https://fontawesome.com/license -->
|
|
|
3302
3301
|
<t t-set="rule" t-value="state.rules.iconSet"/>
|
|
3303
3302
|
</t>
|
|
3304
3303
|
<div class="o-sidePanelButtons">
|
|
3305
|
-
<button t-on-click="props.onExitEdition" class="o-button o-cf-cancel">
|
|
3306
|
-
|
|
3304
|
+
<button t-on-click="props.onExitEdition" class="o-button o-button-grey o-cf-cancel">
|
|
3305
|
+
Cancel
|
|
3306
|
+
</button>
|
|
3307
|
+
<button
|
|
3308
|
+
t-on-click="saveConditionalFormat"
|
|
3309
|
+
class="o-button o-button-grey primary o-cf-save">
|
|
3307
3310
|
Save
|
|
3308
3311
|
</button>
|
|
3309
3312
|
</div>
|
|
@@ -3637,7 +3640,7 @@ https://fontawesome.com/license -->
|
|
|
3637
3640
|
</Section>
|
|
3638
3641
|
<div class="o-sidePanelButtons">
|
|
3639
3642
|
<button
|
|
3640
|
-
class="o-button"
|
|
3643
|
+
class="o-button o-button-grey"
|
|
3641
3644
|
t-on-click="() => this.apply()"
|
|
3642
3645
|
t-att-disabled="!formatProposals.length || isSameFormat">
|
|
3643
3646
|
Apply
|
|
@@ -3756,7 +3759,7 @@ https://fontawesome.com/license -->
|
|
|
3756
3759
|
</div>
|
|
3757
3760
|
<div class="mb-2"/>
|
|
3758
3761
|
</t>
|
|
3759
|
-
<button class="o-dv-list-add-value o-button mb-3" t-on-click="onAddAnotherValue">
|
|
3762
|
+
<button class="o-dv-list-add-value o-button o-button-grey mb-3" t-on-click="onAddAnotherValue">
|
|
3760
3763
|
Add another item
|
|
3761
3764
|
</button>
|
|
3762
3765
|
|
|
@@ -3823,10 +3826,10 @@ https://fontawesome.com/license -->
|
|
|
3823
3826
|
</Section>
|
|
3824
3827
|
|
|
3825
3828
|
<div class="o-sidePanelButtons">
|
|
3826
|
-
<button t-on-click="props.onExit" class="o-dv-cancel o-button">Cancel</button>
|
|
3829
|
+
<button t-on-click="props.onExit" class="o-dv-cancel o-button o-button-grey">Cancel</button>
|
|
3827
3830
|
<button
|
|
3828
3831
|
t-on-click="onSave"
|
|
3829
|
-
class="o-dv-save o-button primary"
|
|
3832
|
+
class="o-dv-save o-button o-button-grey primary"
|
|
3830
3833
|
t-att-class="{'o-disabled': !canSave }">
|
|
3831
3834
|
Save
|
|
3832
3835
|
</button>
|
|
@@ -3923,10 +3926,13 @@ https://fontawesome.com/license -->
|
|
|
3923
3926
|
<button
|
|
3924
3927
|
t-att-disabled="!hasSearchResult"
|
|
3925
3928
|
t-on-click="onSelectPreviousCell"
|
|
3926
|
-
class="o-button">
|
|
3929
|
+
class="o-button o-button-grey">
|
|
3927
3930
|
Previous
|
|
3928
3931
|
</button>
|
|
3929
|
-
<button
|
|
3932
|
+
<button
|
|
3933
|
+
t-att-disabled="!hasSearchResult"
|
|
3934
|
+
t-on-click="onSelectNextCell"
|
|
3935
|
+
class="o-button o-button-grey">
|
|
3930
3936
|
Next
|
|
3931
3937
|
</button>
|
|
3932
3938
|
</div>
|
|
@@ -3946,13 +3952,13 @@ https://fontawesome.com/license -->
|
|
|
3946
3952
|
<button
|
|
3947
3953
|
t-att-disabled="env.model.getters.getCurrentSelectedMatchIndex() === null"
|
|
3948
3954
|
t-on-click="replace"
|
|
3949
|
-
class="o-button">
|
|
3955
|
+
class="o-button o-button-grey">
|
|
3950
3956
|
Replace
|
|
3951
3957
|
</button>
|
|
3952
3958
|
<button
|
|
3953
3959
|
t-att-disabled="env.model.getters.getCurrentSelectedMatchIndex() === null"
|
|
3954
3960
|
t-on-click="replaceAll"
|
|
3955
|
-
class="o-button">
|
|
3961
|
+
class="o-button o-button-grey">
|
|
3956
3962
|
Replace all
|
|
3957
3963
|
</button>
|
|
3958
3964
|
</div>
|
|
@@ -4010,7 +4016,7 @@ https://fontawesome.com/license -->
|
|
|
4010
4016
|
|
|
4011
4017
|
<div class="o-sidePanelButtons">
|
|
4012
4018
|
<button
|
|
4013
|
-
class="o-button"
|
|
4019
|
+
class="o-button o-button-grey"
|
|
4014
4020
|
t-att-class="{'o-disabled': !canConfirm}"
|
|
4015
4021
|
t-on-click="onRemoveDuplicates">
|
|
4016
4022
|
Remove duplicates
|
|
@@ -4128,7 +4134,7 @@ https://fontawesome.com/license -->
|
|
|
4128
4134
|
|
|
4129
4135
|
<div class="o-sidePanelButtons">
|
|
4130
4136
|
<button
|
|
4131
|
-
class="o-button"
|
|
4137
|
+
class="o-button o-button-grey"
|
|
4132
4138
|
t-att-class="{'o-disabled': isConfirmDisabled}"
|
|
4133
4139
|
t-on-click="confirm">
|
|
4134
4140
|
Confirm
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.10",
|
|
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.
|
|
103
|
+
"@odoo/owl": "2.2.10",
|
|
104
104
|
"bootstrap": "^5.1.3",
|
|
105
105
|
"rbush": "^3.0.1"
|
|
106
106
|
},
|
|
@@ -139,6 +139,6 @@
|
|
|
139
139
|
"*": "prettier --write"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": {
|
|
142
|
-
"tag": "
|
|
142
|
+
"tag": "17-1"
|
|
143
143
|
}
|
|
144
144
|
}
|