@odoo/o-spreadsheet 17.3.0-alpha.0 → 17.3.0-alpha.1

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.3.0-alpha.0
5
- @date 2024-03-20T13:43:11.141Z
6
- @hash 073e154
4
+ @version 17.3.0-alpha.1
5
+ @date 2024-03-25T09:44:13.802Z
6
+ @hash 4095c41
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -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}">
@@ -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"
@@ -2158,7 +2163,7 @@ https://fontawesome.com/license -->
2158
2163
  <svg class="o-icon" viewBox="0 0 24 24">
2159
2164
  <path
2160
2165
  fill="currentColor"
2161
- d="M18.707 7.293a1 1 0 0 1 0 1.414L11.414 16a2 2 0 0 1-2.828 0l-3.293-3.293a1 1 0 1 1 1.414-1.414L10 14.586l7.293-7.293a1 1 0 0 1 1.414 0z"
2166
+ d="M18.707 7.293a1 1 0 0 1 0 1.414L11.414 16a1.8 2 0 0 1-2.828 0l-3.293-3.293a1 1 0 1 1 1.414-1.414L10 14.586l7.293-7.293a1 1 0 0 1 1.414 0z"
2162
2167
  />
2163
2168
  </svg>
2164
2169
  </t>
@@ -2312,6 +2317,14 @@ https://fontawesome.com/license -->
2312
2317
  />
2313
2318
  </svg>
2314
2319
  </t>
2320
+ <t t-name="o-spreadsheet-Icon.CIRCLE_INFO">
2321
+ <svg class="o-icon" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
2322
+ <path
2323
+ fill="currentColor"
2324
+ d="M9 .55a8.4 8.4 0 1 0 8.4 8.4A8.4 8.4 0 0 0 9 .55M7.6 4.155a1.4 1.4 0 1 1 1.4 1.4 1.4 1.4 0 0 1-1.4-1.4m4.9 8.995a.7.7 0 0 1-.7.7H6.9a.7.7 0 1 1 0-1.4h1.4v-4.2h-.7a.7.7 0 0 1 0-1.4h2.8v5.6h1.4a.7.7 0 0 1 .7.7"
2325
+ />
2326
+ </svg>
2327
+ </t>
2315
2328
 
2316
2329
  <t t-name="o-spreadsheet-LinkDisplay">
2317
2330
  <div class="o-link-tool d-flex align-items-center">
@@ -2394,8 +2407,8 @@ https://fontawesome.com/license -->
2394
2407
  onClose="() => this.menu.isOpen=false"
2395
2408
  />
2396
2409
  <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">
2410
+ <button t-on-click="cancel" class="o-button o-button-grey o-cancel">Cancel</button>
2411
+ <button t-on-click="save" class="o-button o-button-grey o-save" t-att-disabled="!link.url">
2399
2412
  Confirm
2400
2413
  </button>
2401
2414
  </div>
@@ -3340,8 +3353,12 @@ https://fontawesome.com/license -->
3340
3353
  <t t-set="rule" t-value="state.rules.iconSet"/>
3341
3354
  </t>
3342
3355
  <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">
3356
+ <button t-on-click="props.onExitEdition" class="o-button o-button-grey o-cf-cancel">
3357
+ Cancel
3358
+ </button>
3359
+ <button
3360
+ t-on-click="saveConditionalFormat"
3361
+ class="o-button o-button-grey primary o-cf-save">
3345
3362
  Save
3346
3363
  </button>
3347
3364
  </div>
@@ -3685,7 +3702,7 @@ https://fontawesome.com/license -->
3685
3702
  </Section>
3686
3703
  <div class="o-sidePanelButtons">
3687
3704
  <button
3688
- class="o-button"
3705
+ class="o-button o-button-grey"
3689
3706
  t-on-click="() => this.apply()"
3690
3707
  t-att-disabled="!formatProposals.length || isSameFormat">
3691
3708
  Apply
@@ -3804,7 +3821,7 @@ https://fontawesome.com/license -->
3804
3821
  </div>
3805
3822
  <div class="mb-2"/>
3806
3823
  </t>
3807
- <button class="o-dv-list-add-value o-button mb-3" t-on-click="onAddAnotherValue">
3824
+ <button class="o-dv-list-add-value o-button o-button-grey mb-3" t-on-click="onAddAnotherValue">
3808
3825
  Add another item
3809
3826
  </button>
3810
3827
 
@@ -3871,10 +3888,10 @@ https://fontawesome.com/license -->
3871
3888
  </Section>
3872
3889
 
3873
3890
  <div class="o-sidePanelButtons">
3874
- <button t-on-click="props.onExit" class="o-dv-cancel o-button">Cancel</button>
3891
+ <button t-on-click="props.onExit" class="o-dv-cancel o-button o-button-grey">Cancel</button>
3875
3892
  <button
3876
3893
  t-on-click="onSave"
3877
- class="o-dv-save o-button primary"
3894
+ class="o-dv-save o-button o-button-grey primary"
3878
3895
  t-att-class="{'o-disabled': !canSave }">
3879
3896
  Save
3880
3897
  </button>
@@ -3973,13 +3990,13 @@ https://fontawesome.com/license -->
3973
3990
  <button
3974
3991
  t-att-disabled="!hasSearchResult"
3975
3992
  t-on-click="() => store.selectPreviousMatch()"
3976
- class="o-button">
3993
+ class="o-button o-button-grey">
3977
3994
  Previous
3978
3995
  </button>
3979
3996
  <button
3980
3997
  t-att-disabled="!hasSearchResult"
3981
3998
  t-on-click="() => store.selectNextMatch()"
3982
- class="o-button">
3999
+ class="o-button o-button-grey">
3983
4000
  Next
3984
4001
  </button>
3985
4002
  </div>
@@ -3999,13 +4016,13 @@ https://fontawesome.com/license -->
3999
4016
  <button
4000
4017
  t-att-disabled="store.selectedMatchIndex === null"
4001
4018
  t-on-click="() => store.replace()"
4002
- class="o-button">
4019
+ class="o-button o-button-grey">
4003
4020
  Replace
4004
4021
  </button>
4005
4022
  <button
4006
4023
  t-att-disabled="store.selectedMatchIndex === null"
4007
4024
  t-on-click="() => store.replaceAll()"
4008
- class="o-button">
4025
+ class="o-button o-button-grey">
4009
4026
  Replace all
4010
4027
  </button>
4011
4028
  </div>
@@ -4063,7 +4080,7 @@ https://fontawesome.com/license -->
4063
4080
 
4064
4081
  <div class="o-sidePanelButtons">
4065
4082
  <button
4066
- class="o-button"
4083
+ class="o-button o-button-grey"
4067
4084
  t-att-class="{'o-disabled': !canConfirm}"
4068
4085
  t-on-click="onRemoveDuplicates">
4069
4086
  Remove duplicates
@@ -4181,7 +4198,7 @@ https://fontawesome.com/license -->
4181
4198
 
4182
4199
  <div class="o-sidePanelButtons">
4183
4200
  <button
4184
- class="o-button"
4201
+ class="o-button o-button-grey"
4185
4202
  t-att-class="{'o-disabled': isConfirmDisabled}"
4186
4203
  t-on-click="confirm">
4187
4204
  Confirm
@@ -4264,7 +4281,7 @@ https://fontawesome.com/license -->
4264
4281
  <Section>
4265
4282
  <t t-set-slot="title">Data range</t>
4266
4283
  <SelectionInput
4267
- t-key="props.table.id"
4284
+ t-key="props.table.type"
4268
4285
  ranges="[this.state.tableXc]"
4269
4286
  hasSingleRange="true"
4270
4287
  onSelectionChanged="(ranges) => this.onRangeChanged(ranges)"
@@ -4277,6 +4294,20 @@ https://fontawesome.com/license -->
4277
4294
  value="tableConfig.automaticAutofill"
4278
4295
  onChange="(val) => this.updateTableConfig('automaticAutofill', val)"
4279
4296
  />
4297
+ <div class="d-flex flex-row align-items-center">
4298
+ <Checkbox
4299
+ label="getCheckboxLabel('isDynamic')"
4300
+ name="'isDynamic'"
4301
+ value="props.table.type === 'dynamic'"
4302
+ onChange.bind="this.updateTableIsDynamic"
4303
+ disabled="!this.canBeDynamic"
4304
+ />
4305
+ <div
4306
+ class="o-info-icon d-flex flex-row align-items-center text-muted ps-1"
4307
+ t-att-title="dynamicTableTooltip">
4308
+ <t t-call="o-spreadsheet-Icon.CIRCLE_INFO"/>
4309
+ </div>
4310
+ </div>
4280
4311
  </Section>
4281
4312
  <div class="o-sidePanelButtons">
4282
4313
  <button t-on-click="deleteTable" class="o-table-delete o-button">Delete table</button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.3.0-alpha.0",
3
+ "version": "17.3.0-alpha.1",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",