|
20 | 20 | </div> |
21 | 21 | </div> |
22 | 22 | </t> |
| 23 | +<<<<<<< 7ed20c4cf11c264476cf597a313c82d45ef3e64a |
| 24 | +||||||| 60a66b6807132b8b1498059652eb156ce9d66854 |
| 25 | + |
| 26 | + <t t-name="o-spreadsheet-ConditionalFormattingPanelPreview"> |
| 27 | + <div |
| 28 | + class="o-cf-preview d-flex position-relative" |
| 29 | + t-att-class="{ 'o-cf-dragging': dragAndDrop.draggedItemId === cf.id }" |
| 30 | + t-att-style="getPreviewDivStyle(cf)" |
| 31 | + t-att-data-id="cf.id" |
| 32 | + t-on-click="(ev) => props.onPreviewClick(cf)" |
| 33 | + t-on-mousedown="(ev) => this.onMouseDown(cf, ev)"> |
| 34 | + <div class="position-relative h-100 w-100 d-flex align-items-center"> |
| 35 | + <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted"> |
| 36 | + <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/> |
| 37 | + </div> |
| 38 | + <t t-if="cf.rule.type==='IconSetRule'"> |
| 39 | + <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2"> |
| 40 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/> |
| 41 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/> |
| 42 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/> |
| 43 | + </div> |
| 44 | + </t> |
| 45 | + <t t-else=""> |
| 46 | + <div |
| 47 | + t-att-style="getPreviewImageStyle(cf.rule)" |
| 48 | + class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2"> |
| 49 | + 123 |
| 50 | + </div> |
| 51 | + </t> |
| 52 | + <div class="o-cf-preview-description"> |
| 53 | + <div class="o-cf-preview-ruletype"> |
| 54 | + <div class="o-cf-preview-description-rule text-truncate"> |
| 55 | + <t t-esc="getDescription(cf)"/> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/> |
| 59 | + </div> |
| 60 | + <div class="o-cf-delete"> |
| 61 | + <div |
| 62 | + class="o-cf-delete-button text-muted" |
| 63 | + t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)" |
| 64 | + title="Remove rule"> |
| 65 | + <t t-call="o-spreadsheet-Icon.TRASH"/> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </t> |
| 71 | +======= |
| 72 | + |
| 73 | + <t t-name="o-spreadsheet-ConditionalFormattingPanelPreview"> |
| 74 | + <div |
| 75 | + class="o-cf-preview d-flex position-relative align-items-center" |
| 76 | + t-att-class="{ 'o-cf-dragging': dragAndDrop.draggedItemId === cf.id }" |
| 77 | + t-att-style="getPreviewDivStyle(cf)" |
| 78 | + t-att-data-id="cf.id" |
| 79 | + t-on-click="(ev) => props.onPreviewClick(cf)" |
| 80 | + t-on-mousedown="(ev) => this.onMouseDown(cf, ev)"> |
| 81 | + <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted"> |
| 82 | + <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/> |
| 83 | + </div> |
| 84 | + <t t-if="cf.rule.type==='IconSetRule'"> |
| 85 | + <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3"> |
| 86 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/> |
| 87 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/> |
| 88 | + <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/> |
| 89 | + </div> |
| 90 | + </t> |
| 91 | + <t t-else=""> |
| 92 | + <div |
| 93 | + t-att-style="getPreviewImageStyle(cf.rule)" |
| 94 | + class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0"> |
| 95 | + 123 |
| 96 | + </div> |
| 97 | + </t> |
| 98 | + <div class="o-cf-preview-description me-3 overflow-auto"> |
| 99 | + <div class="o-cf-preview-ruletype"> |
| 100 | + <div class="o-cf-preview-description-rule text-truncate"> |
| 101 | + <t t-esc="getDescription(cf)"/> |
| 102 | + </div> |
| 103 | + </div> |
| 104 | + <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/> |
| 105 | + </div> |
| 106 | + <div class="o-cf-delete ms-auto"> |
| 107 | + <div |
| 108 | + class="o-cf-delete-button text-muted" |
| 109 | + t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)" |
| 110 | + title="Remove rule"> |
| 111 | + <t t-call="o-spreadsheet-Icon.TRASH"/> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + </t> |
| 116 | +>>>>>>> 8879ca80b4a87feee971293b478ea51fed01fa35 |
23 | 117 | </templates> |
0 commit comments