@prolibu-suite/cobalt-core 0.11.6 → 0.11.7
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/custom-elements.json +160 -46
- package/dist/cjs/co-action-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +6 -3
- package/dist/cjs/co-button.cjs.entry.js +14 -6
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +9 -5
- package/dist/cjs/co-calendar_3.cjs.entry.js +23 -7
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/co-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/co-color-picker.cjs.entry.js +24 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +7 -5
- package/dist/cjs/co-command-search.cjs.entry.js +1 -1
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +1 -1
- package/dist/cjs/co-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/co-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/co-date-range.cjs.entry.js +1 -1
- package/dist/cjs/co-date-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-document-editor.cjs.entry.js +108 -7
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
- package/dist/cjs/co-emoji-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
- package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +87 -16
- package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
- package/dist/cjs/co-gradient-bar.cjs.entry.js +4 -4
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/co-icon.cjs.entry.js +2 -2
- package/dist/cjs/co-input.cjs.entry.js +1 -1
- package/dist/cjs/co-json-field.cjs.entry.js +4 -4
- package/dist/cjs/co-kbd_2.cjs.entry.js +3 -3
- package/dist/cjs/co-lightbox.cjs.entry.js +71 -7
- package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
- package/dist/cjs/co-list-item.cjs.entry.js +4 -4
- package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +23 -3
- package/dist/cjs/co-navbar.cjs.entry.js +2 -2
- package/dist/cjs/co-number-field.cjs.entry.js +9 -5
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +1 -1
- package/dist/cjs/co-phone-field.cjs.entry.js +52 -2
- package/dist/cjs/co-popover.cjs.entry.js +33 -4
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
- package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +3 -3
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +15 -8
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +80 -23
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +105 -2
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +2 -2
- package/dist/cjs/co-row.cjs.entry.js +2 -2
- package/dist/cjs/co-select.cjs.entry.js +10 -8
- package/dist/cjs/co-separator.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +11 -9
- package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-swatch-grid.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +4 -4
- package/dist/cjs/co-tab-group.cjs.entry.js +110 -12
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +7 -7
- package/dist/cjs/co-textarea.cjs.entry.js +5 -5
- package/dist/cjs/co-tile.cjs.entry.js +1 -1
- package/dist/cjs/co-time-field.cjs.entry.js +1 -1
- package/dist/cjs/co-toast.cjs.entry.js +1 -1
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +6 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +5 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/co-video.cjs.entry.js +2 -2
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/{color-DQVrQGi0.js → color-DlKNWtdc.js} +38 -2
- package/dist/cjs/escapeLayers-DlCir9Sr.js +22 -0
- package/dist/cjs/fieldChip-DbYMfylq.js +7 -0
- package/dist/cjs/{gradientStops-CMpH4fB_.js → gradientStops-xZbv7bi6.js} +1 -1
- package/dist/cjs/{index-BbSD1Eyw.js → index-CJhgaDE1.js} +1 -1
- package/dist/cjs/index-bHoidDwv.js +14 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pagination-S2sSAgdl.js → pagination-BPA1UGs-.js} +30 -0
- package/dist/cjs/{richTextI18n-DXGIv5w1.js → richTextI18n-B8qb5JKb.js} +12 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-01b54d81.entry.js +1 -0
- package/dist/cobalt/{p-02ff847e.entry.js → p-02133c95.entry.js} +1 -1
- package/dist/cobalt/{p-73313cbe.entry.js → p-0bbaaf4f.entry.js} +1 -1
- package/dist/cobalt/p-0f3a3232.entry.js +1 -0
- package/dist/cobalt/p-12fc5119.entry.js +1 -0
- package/dist/cobalt/p-19f0f534.entry.js +1 -0
- package/dist/cobalt/p-1c9253a2.entry.js +1 -0
- package/dist/cobalt/{p-63908a8d.entry.js → p-256ca457.entry.js} +1 -1
- package/dist/cobalt/{p-71fe35c4.entry.js → p-2ff8f591.entry.js} +1 -1
- package/dist/cobalt/p-33840969.entry.js +1 -0
- package/dist/cobalt/p-353ff9ed.entry.js +1 -0
- package/dist/cobalt/p-37f9ec35.entry.js +1 -0
- package/dist/cobalt/p-3878f174.entry.js +1 -0
- package/dist/cobalt/{p-a4eb298c.entry.js → p-3890d22f.entry.js} +1 -1
- package/dist/cobalt/{p-7fabd8ba.entry.js → p-3b7e90c8.entry.js} +1 -1
- package/dist/cobalt/p-3bff827a.entry.js +1 -0
- package/dist/cobalt/{p-65c191aa.entry.js → p-3e532a11.entry.js} +1 -1
- package/dist/cobalt/{p-4d743628.entry.js → p-3e864e7d.entry.js} +1 -1
- package/dist/cobalt/p-454dd8ab.entry.js +1 -0
- package/dist/cobalt/{p-cfaaa684.entry.js → p-4ae6fe0e.entry.js} +1 -1
- package/dist/cobalt/p-4cdfcd9c.entry.js +1 -0
- package/dist/cobalt/p-50ab6b9b.entry.js +1 -0
- package/dist/cobalt/{p-713637f2.entry.js → p-59a71695.entry.js} +1 -1
- package/dist/cobalt/{p-06689166.entry.js → p-5d41b58b.entry.js} +1 -1
- package/dist/cobalt/{p-95f2ebb1.entry.js → p-5e14f676.entry.js} +1 -1
- package/dist/cobalt/p-5e39cf70.entry.js +1 -0
- package/dist/cobalt/{p-df529110.entry.js → p-600d0cab.entry.js} +1 -1
- package/dist/cobalt/{p-38eb2615.entry.js → p-60ea3d33.entry.js} +1 -1
- package/dist/cobalt/{p-d5d8fa8b.entry.js → p-63f888a1.entry.js} +1 -1
- package/dist/cobalt/{p-d00c3894.entry.js → p-6eca1c7c.entry.js} +1 -1
- package/dist/cobalt/p-74804c79.entry.js +1 -0
- package/dist/cobalt/{p-f2fa2ac0.entry.js → p-76ea3f34.entry.js} +1 -1
- package/dist/cobalt/p-7737354e.entry.js +1 -0
- package/dist/cobalt/p-7e444408.entry.js +1 -0
- package/dist/cobalt/p-7e72720a.entry.js +1 -0
- package/dist/cobalt/p-82bcd062.entry.js +1 -0
- package/dist/cobalt/{p-56176aa0.entry.js → p-83691cfb.entry.js} +1 -1
- package/dist/cobalt/p-84256bde.entry.js +1 -0
- package/dist/cobalt/p-84ad0227.entry.js +1 -0
- package/dist/cobalt/{p-b2457431.entry.js → p-89328cd8.entry.js} +1 -1
- package/dist/cobalt/p-8a26f3cc.entry.js +1 -0
- package/dist/cobalt/p-8c22bf4b.entry.js +1 -0
- package/dist/cobalt/p-8e7ad2fe.entry.js +1 -0
- package/dist/cobalt/p-947b8e35.entry.js +1 -0
- package/dist/cobalt/p-94b871fb.entry.js +1 -0
- package/dist/cobalt/p-99781b0b.entry.js +1 -0
- package/dist/cobalt/{p-71dc8e4a.entry.js → p-9af26af0.entry.js} +1 -1
- package/dist/cobalt/p-9ce57385.entry.js +1 -0
- package/dist/cobalt/p-BzxEh7sq.js +1 -0
- package/dist/cobalt/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
- package/dist/cobalt/p-CSLjZ3WO.js +1 -0
- package/dist/cobalt/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
- package/dist/cobalt/p-EtYK1iGx.js +1 -0
- package/dist/cobalt/p-LnW75kr5.js +1 -0
- package/dist/cobalt/{p-cf5b91be.entry.js → p-a18c01eb.entry.js} +1 -1
- package/dist/cobalt/{p-65d44da2.entry.js → p-a33a277a.entry.js} +1 -1
- package/dist/cobalt/p-a4154bcf.entry.js +1 -0
- package/dist/cobalt/{p-aed832d5.entry.js → p-a4264bde.entry.js} +1 -1
- package/dist/cobalt/p-a6c9a0c5.entry.js +1 -0
- package/dist/cobalt/{p-868d1a18.entry.js → p-b2c49664.entry.js} +1 -1
- package/dist/cobalt/{p-f69804a6.entry.js → p-b402665a.entry.js} +1 -1
- package/dist/cobalt/{p-903237f9.entry.js → p-bbf3d859.entry.js} +1 -1
- package/dist/cobalt/p-bee52042.entry.js +1 -0
- package/dist/cobalt/{p-a7cd61ce.entry.js → p-c004fde5.entry.js} +1 -1
- package/dist/cobalt/p-c026968c.entry.js +1 -0
- package/dist/cobalt/{p-8a2a2b6c.entry.js → p-c23630ab.entry.js} +1 -1
- package/dist/cobalt/p-c31b9b51.entry.js +1 -0
- package/dist/cobalt/{p-0e4c2234.entry.js → p-c93be2d5.entry.js} +1 -1
- package/dist/cobalt/p-cb1013e6.entry.js +1 -0
- package/dist/cobalt/p-cd43d372.entry.js +1 -0
- package/dist/cobalt/{p-26cbdc33.entry.js → p-cea21e08.entry.js} +1 -1
- package/dist/cobalt/p-cf675968.entry.js +1 -0
- package/dist/cobalt/{p-ba39a965.entry.js → p-d1595580.entry.js} +1 -1
- package/dist/cobalt/{p-99df434b.entry.js → p-d26dc681.entry.js} +1 -1
- package/dist/cobalt/{p-8680559b.entry.js → p-d375c84e.entry.js} +1 -1
- package/dist/cobalt/{p-bee30373.entry.js → p-d7775109.entry.js} +1 -1
- package/dist/cobalt/p-d9b4594b.entry.js +1 -0
- package/dist/cobalt/{p-b67fb616.entry.js → p-e4646a0e.entry.js} +1 -1
- package/dist/cobalt/{p-7beface1.entry.js → p-e5350eeb.entry.js} +1 -1
- package/dist/cobalt/{p-e5f0d560.entry.js → p-f1da1df1.entry.js} +1 -1
- package/dist/cobalt/p-f23f52ed.entry.js +1 -0
- package/dist/cobalt/{p-13e5b724.entry.js → p-f6f273f7.entry.js} +1 -1
- package/dist/cobalt/{p-71ae1551.entry.js → p-fb6671e0.entry.js} +1 -1
- package/dist/cobalt/p-fb731600.entry.js +1 -0
- package/dist/cobalt/{p-7d1718ed.entry.js → p-feec49a4.entry.js} +1 -1
- package/dist/cobalt/p-ff218d09.entry.js +1 -0
- package/dist/cobalt/p-hXbDUT3I.js +1 -0
- package/dist/collection/components/co-action-bar/co-action-bar.css +6 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +6 -5
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +12 -6
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -1
- package/dist/collection/components/co-avatar/co-avatar.js +5 -2
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-button/co-button.css +38 -7
- package/dist/collection/components/co-button/co-button.js +34 -6
- package/dist/collection/components/co-calendar/co-calendar.css +4 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +3 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +3 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +5 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +10 -5
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.css +17 -12
- package/dist/collection/components/co-color-area/co-color-area.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +19 -7
- package/dist/collection/components/co-color-picker/co-color-picker.js +42 -3
- package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
- package/dist/collection/components/co-column-picker/co-column-picker.css +10 -5
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +8 -5
- package/dist/collection/components/co-combobox/co-combobox.js +7 -5
- package/dist/collection/components/co-command-search/co-command-search.css +5 -2
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.css +13 -10
- package/dist/collection/components/co-data-table/co-data-table.js +1 -1
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +15 -13
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +11 -5
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-picker/co-date-picker.css +5 -2
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +9 -3
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +11 -5
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
- package/dist/collection/components/co-document-editor/co-document-editor.css +112 -1
- package/dist/collection/components/co-document-editor/co-document-editor.js +91 -10
- package/dist/collection/components/co-document-editor/signature-bar.js +26 -0
- package/dist/collection/components/co-drawer/co-drawer.css +12 -4
- package/dist/collection/components/co-drawer/co-drawer.js +16 -0
- package/dist/collection/components/co-drive-card/co-drive-card.css +18 -12
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
- package/dist/collection/components/co-empty-state/co-empty-state.css +10 -6
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
- package/dist/collection/components/co-fab/co-fab.css +5 -3
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +11 -6
- package/dist/collection/components/co-file-field/co-file-field.js +30 -16
- package/dist/collection/components/co-file-field/co-file-field.utils.js +57 -0
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.css +6 -4
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +5 -3
- package/dist/collection/components/co-icon-button/co-icon-button.js +2 -2
- package/dist/collection/components/co-input/co-input.css +49 -22
- package/dist/collection/components/co-json-field/co-json-field.css +10 -5
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.js +1 -1
- package/dist/collection/components/co-lightbox/co-lightbox.js +8 -7
- package/dist/collection/components/co-lightbox/openInTab.js +63 -0
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.css +7 -0
- package/dist/collection/components/co-menu/co-menu.js +2 -2
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +19 -7
- package/dist/collection/components/co-modal/co-modal.css +3 -0
- package/dist/collection/components/co-modal/co-modal.js +23 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +12 -6
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +7 -4
- package/dist/collection/components/co-option-list/co-option-list.js +2 -2
- package/dist/collection/components/co-overlay/co-overlay.css +3 -0
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-overlay/escapeLayers.js +20 -0
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +8 -3
- package/dist/collection/components/co-phone-field/co-phone-field.js +36 -1
- package/dist/collection/components/co-popover/co-popover.css +4 -0
- package/dist/collection/components/co-popover/co-popover.js +33 -4
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +6 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +10 -5
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-rating/co-rating.css +6 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +43 -8
- package/dist/collection/components/co-ref-field/co-ref-field.js +17 -10
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +26 -4
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +77 -20
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +3 -1
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +40 -0
- package/dist/collection/components/co-rich-text-toolbar/panelFit.js +63 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +2 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.css +22 -12
- package/dist/collection/components/co-select/co-select.js +10 -8
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +56 -19
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +11 -9
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +6 -4
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +1 -1
- package/dist/collection/components/co-switch/co-switch.css +16 -7
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +33 -29
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.css +26 -6
- package/dist/collection/components/co-tab-group/co-tab-group.js +78 -11
- package/dist/collection/components/co-tab-group/trackScroll.js +31 -0
- package/dist/collection/components/co-tags-field/co-tags-field.css +10 -5
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +12 -7
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-tile/co-tile.js +1 -1
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.css +36 -25
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +47 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +7 -5
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +12 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +10 -8
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +15 -8
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/amountText.js +5 -1
- package/dist/collection/utils/color.js +36 -2
- package/dist/collection/utils/eventColor.js +7 -3
- package/dist/collection/utils/fieldChip.js +1 -1
- package/dist/collection/utils/phoneI18n.js +34 -0
- package/dist/collection/utils/richTextI18n.js +12 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-date-time-picker.js +1 -1
- package/dist/components/co-document-editor.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-emoji-picker.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-event-popover.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- package/dist/components/co-gradient-bar.js +1 -1
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-kbd.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-swatch-grid.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-tile.js +1 -1
- package/dist/components/co-time-field.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-tree-item.js +1 -1
- package/dist/components/co-video.js +1 -1
- package/dist/components/{p-CxWo3qDo.js → p-4Y3YkFf1.js} +1 -1
- package/dist/components/{p-V7HYy0VO.js → p-B5F93Ujt.js} +1 -1
- package/dist/components/p-B70R6xWE.js +1 -0
- package/dist/components/p-BSt2t5Fy.js +1 -0
- package/dist/components/p-BfDYq7JS.js +1 -0
- package/dist/components/{p-C4sZjIDj.js → p-BhmVj5-9.js} +1 -1
- package/dist/components/p-BzxEh7sq.js +1 -0
- package/dist/components/p-CDiRdG6I.js +1 -0
- package/dist/components/p-CMMv2RcH.js +1 -0
- package/dist/components/{p-Dn2wblrA.js → p-CO12CK0t.js} +1 -1
- package/dist/components/{p-DymSqdlK.js → p-COCcx0DN.js} +1 -1
- package/dist/components/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
- package/dist/components/{p-wUXcJGdy.js → p-CX0bNXK3.js} +1 -1
- package/dist/components/{p-Bw_b_czs.js → p-CXi0fhTi.js} +1 -1
- package/dist/components/p-CaAdnjC6.js +1 -0
- package/dist/components/p-CaFwCFgg.js +1 -0
- package/dist/components/p-CjB5Vqpy.js +1 -0
- package/dist/components/p-Co0eKIiO.js +1 -0
- package/dist/components/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
- package/dist/components/{p-BRZci8B3.js → p-CwRoHnzq.js} +1 -1
- package/dist/components/{p-Dnz99Ox_.js → p-DMW9TJ7Z.js} +1 -1
- package/dist/components/p-DTWqwwXO.js +1 -0
- package/dist/components/{p-8XzG8pzY.js → p-DldA2IL3.js} +1 -1
- package/dist/components/p-LnW75kr5.js +1 -0
- package/dist/components/p-R1W48hzW.js +1 -0
- package/dist/components/{p-BW10Sgiy.js → p-_S5htX1i.js} +1 -1
- package/dist/components/p-hXbDUT3I.js +1 -0
- package/dist/components/p-o5wUtH9g.js +1 -0
- package/dist/components/{p-KK2vAKs-.js → p-qMNHMnvI.js} +1 -1
- package/dist/components/{p-C6WHpL5X.js → p-rfvTj6cP.js} +1 -1
- package/dist/components/{p-BI_VaFsx.js → p-upZqhFKo.js} +1 -1
- package/dist/components/{p-COozgrEk.js → p-w3AQrtBx.js} +1 -1
- package/dist/components/p-xtGT3YeI.js +1 -0
- package/dist/esm/co-action-bar.entry.js +1 -1
- package/dist/esm/co-app-shell.entry.js +1 -1
- package/dist/esm/co-autocomplete.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +6 -3
- package/dist/esm/co-button.entry.js +14 -6
- package/dist/esm/co-calendar-month_2.entry.js +9 -5
- package/dist/esm/co-calendar_3.entry.js +23 -7
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +1 -1
- package/dist/esm/co-chip_2.entry.js +4 -4
- package/dist/esm/co-color-picker.entry.js +24 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +7 -5
- package/dist/esm/co-command-search.entry.js +1 -1
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +1 -1
- package/dist/esm/co-date-picker.entry.js +1 -1
- package/dist/esm/co-date-range-picker.entry.js +1 -1
- package/dist/esm/co-date-range.entry.js +1 -1
- package/dist/esm/co-date-time-picker.entry.js +3 -3
- package/dist/esm/co-document-editor.entry.js +108 -7
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +1 -1
- package/dist/esm/co-emoji-picker.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +2 -2
- package/dist/esm/co-event-popover.entry.js +1 -1
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +87 -16
- package/dist/esm/co-file-type-tile.entry.js +2 -2
- package/dist/esm/co-gradient-bar.entry.js +4 -4
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +3 -3
- package/dist/esm/co-icon.entry.js +2 -2
- package/dist/esm/co-input.entry.js +1 -1
- package/dist/esm/co-json-field.entry.js +4 -4
- package/dist/esm/co-kbd_2.entry.js +3 -3
- package/dist/esm/co-lightbox.entry.js +71 -7
- package/dist/esm/co-list-footer.entry.js +1 -1
- package/dist/esm/co-list-item.entry.js +4 -4
- package/dist/esm/co-media-thumb.entry.js +2 -2
- package/dist/esm/co-menu-divider.entry.js +1 -1
- package/dist/esm/co-menu-item.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +23 -3
- package/dist/esm/co-navbar.entry.js +2 -2
- package/dist/esm/co-number-field.entry.js +9 -5
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +1 -1
- package/dist/esm/co-phone-field.entry.js +52 -2
- package/dist/esm/co-popover.entry.js +33 -4
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +2 -2
- package/dist/esm/co-provider-logo_2.entry.js +1 -1
- package/dist/esm/co-radio-group.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +3 -3
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +15 -8
- package/dist/esm/co-rich-text-editor.entry.js +80 -23
- package/dist/esm/co-rich-text-toolbar.entry.js +105 -2
- package/dist/esm/co-rich-text-viewer.entry.js +2 -2
- package/dist/esm/co-row.entry.js +2 -2
- package/dist/esm/co-select.entry.js +10 -8
- package/dist/esm/co-separator.entry.js +1 -1
- package/dist/esm/co-sidebar-nav.entry.js +11 -9
- package/dist/esm/co-sidebar.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-swatch-grid.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +4 -4
- package/dist/esm/co-tab-group.entry.js +110 -12
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +7 -7
- package/dist/esm/co-textarea.entry.js +5 -5
- package/dist/esm/co-tile.entry.js +1 -1
- package/dist/esm/co-time-field.entry.js +1 -1
- package/dist/esm/co-toast.entry.js +1 -1
- package/dist/esm/co-toggle-button-group.entry.js +6 -4
- package/dist/esm/co-toggle-button.entry.js +5 -3
- package/dist/esm/co-transfer-list.entry.js +1 -1
- package/dist/esm/co-video.entry.js +2 -2
- package/dist/esm/cobalt.js +1 -1
- package/dist/esm/{color-BVGGRfNG.js → color-BzxEh7sq.js} +37 -3
- package/dist/esm/escapeLayers-hXbDUT3I.js +18 -0
- package/dist/esm/fieldChip-B0N8z5W-.js +5 -0
- package/dist/esm/{gradientStops-DDK0y8ra.js → gradientStops-W-_rTTl_.js} +1 -1
- package/dist/esm/{index-CgyOJePd.js → index-BNt7Zg14.js} +1 -1
- package/dist/esm/index-DJkaRtbb.js +14 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pagination-BzrIQtrk.js → pagination-BXztNUE3.js} +30 -0
- package/dist/esm/{richTextI18n-xnrKkNWQ.js → richTextI18n-EtYK1iGx.js} +12 -0
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +7 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +24 -1
- package/dist/types/components/co-document-editor/signature-bar.d.ts +26 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +2 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +26 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +5 -0
- package/dist/types/components/co-lightbox/openInTab.d.ts +46 -0
- package/dist/types/components/co-modal/co-modal.d.ts +2 -0
- package/dist/types/components/co-overlay/escapeLayers.d.ts +18 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +11 -0
- package/dist/types/components/co-popover/co-popover.d.ts +7 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +3 -2
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +14 -1
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +10 -0
- package/dist/types/components/co-rich-text-toolbar/panelFit.d.ts +38 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +21 -3
- package/dist/types/components/co-tab-group/trackScroll.d.ts +19 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +3 -1
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +6 -4
- package/dist/types/components.d.ts +50 -25
- package/dist/types/utils/color.d.ts +28 -1
- package/dist/types/utils/eventColor.d.ts +3 -1
- package/dist/types/utils/fieldChip.d.ts +6 -0
- package/dist/types/utils/phoneI18n.d.ts +18 -0
- package/dist/types/utils/richTextI18n.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cjs/fieldChip-C7MxxBVO.js +0 -7
- package/dist/cobalt/p-0d046d98.entry.js +0 -1
- package/dist/cobalt/p-12914c0a.entry.js +0 -1
- package/dist/cobalt/p-1348d5ca.entry.js +0 -1
- package/dist/cobalt/p-2231bacc.entry.js +0 -1
- package/dist/cobalt/p-28cf05f3.entry.js +0 -1
- package/dist/cobalt/p-3d1a48e5.entry.js +0 -1
- package/dist/cobalt/p-4bcdd422.entry.js +0 -1
- package/dist/cobalt/p-58ebb303.entry.js +0 -1
- package/dist/cobalt/p-5e678e88.entry.js +0 -1
- package/dist/cobalt/p-60f948c4.entry.js +0 -1
- package/dist/cobalt/p-6974df59.entry.js +0 -1
- package/dist/cobalt/p-69ecc933.entry.js +0 -1
- package/dist/cobalt/p-6c1992c9.entry.js +0 -1
- package/dist/cobalt/p-6c7e423c.entry.js +0 -1
- package/dist/cobalt/p-6d4a660c.entry.js +0 -1
- package/dist/cobalt/p-763698b3.entry.js +0 -1
- package/dist/cobalt/p-77e0d401.entry.js +0 -1
- package/dist/cobalt/p-78412feb.entry.js +0 -1
- package/dist/cobalt/p-7c20207b.entry.js +0 -1
- package/dist/cobalt/p-7df18a52.entry.js +0 -1
- package/dist/cobalt/p-848f5ca4.entry.js +0 -1
- package/dist/cobalt/p-87de5469.entry.js +0 -1
- package/dist/cobalt/p-93063876.entry.js +0 -1
- package/dist/cobalt/p-9adbab95.entry.js +0 -1
- package/dist/cobalt/p-9b114836.entry.js +0 -1
- package/dist/cobalt/p-9dc01092.entry.js +0 -1
- package/dist/cobalt/p-BVGGRfNG.js +0 -1
- package/dist/cobalt/p-DGLDAl09.js +0 -1
- package/dist/cobalt/p-DgJovDdy.js +0 -1
- package/dist/cobalt/p-a56bd4a8.entry.js +0 -1
- package/dist/cobalt/p-a5eabecb.entry.js +0 -1
- package/dist/cobalt/p-a5ee1fc2.entry.js +0 -1
- package/dist/cobalt/p-ad752791.entry.js +0 -1
- package/dist/cobalt/p-b39a4999.entry.js +0 -1
- package/dist/cobalt/p-b5dabdc3.entry.js +0 -1
- package/dist/cobalt/p-b9b73dcb.entry.js +0 -1
- package/dist/cobalt/p-bb7bbe70.entry.js +0 -1
- package/dist/cobalt/p-c5464a98.entry.js +0 -1
- package/dist/cobalt/p-c567533e.entry.js +0 -1
- package/dist/cobalt/p-d6215d80.entry.js +0 -1
- package/dist/cobalt/p-ea24eea8.entry.js +0 -1
- package/dist/cobalt/p-f0898e21.entry.js +0 -1
- package/dist/cobalt/p-f403eeec.entry.js +0 -1
- package/dist/cobalt/p-xnrKkNWQ.js +0 -1
- package/dist/components/p-B3Egz082.js +0 -1
- package/dist/components/p-B9wdMd_0.js +0 -1
- package/dist/components/p-BVGGRfNG.js +0 -1
- package/dist/components/p-BdmzslA5.js +0 -1
- package/dist/components/p-BzNBPHen.js +0 -1
- package/dist/components/p-C4U2tbRp.js +0 -1
- package/dist/components/p-C_6szR7t.js +0 -1
- package/dist/components/p-CiYPJW0B.js +0 -1
- package/dist/components/p-D4XP17VP.js +0 -1
- package/dist/components/p-DB8DGMc-.js +0 -1
- package/dist/components/p-DGLDAl09.js +0 -1
- package/dist/components/p-DhPxNA2f.js +0 -1
- package/dist/components/p-DsuFNmTI.js +0 -1
- package/dist/components/p-TGRbLkLz.js +0 -1
- package/dist/components/p-dnaee7fS.js +0 -1
- package/dist/esm/fieldChip-B2ctp2m6.js +0 -5
|
@@ -8,6 +8,7 @@ import { scopePageStyles } from "./page-styles";
|
|
|
8
8
|
import { anchorCorrection, clampScale, fitScale, paperPoint, pinchScale, ZOOM_GUTTER_PX } from "./zoom";
|
|
9
9
|
import { HEADER_TOOL_BOX_PX, HEADER_TOOL_ICON_PX } from "./header-tools";
|
|
10
10
|
import { defaultImageWidth, IMAGE_MODE_ICON_PX, IMAGE_MODE_ICONS, imageBarPosition, layoutLeft } from "./image-bar";
|
|
11
|
+
import { SIGNATURE_BAR_SIZE, signerStepRange } from "./signature-bar";
|
|
11
12
|
let instanceSeq = 0;
|
|
12
13
|
/**
|
|
13
14
|
* Editor de documentos paginado: hoja fija, encabezado en banda, campos y
|
|
@@ -58,6 +59,8 @@ export class CoDocumentEditor {
|
|
|
58
59
|
this.draftShowPageNumber = false;
|
|
59
60
|
/** Barra de diseño de la imagen seleccionada en el cuerpo (null = no hay). Posición en px del papel. */
|
|
60
61
|
this.imageBar = null;
|
|
62
|
+
/** Barra de la firma seleccionada: su firmante N, el rango del ‹ › y la posición en px del papel. */
|
|
63
|
+
this.signatureBar = null;
|
|
61
64
|
/** Encabezado vigente (confirmado). La Task 16 lo cambia al confirmar la banda. */
|
|
62
65
|
this.currentHeaderHtml = '';
|
|
63
66
|
this.currentShowPageNumber = false;
|
|
@@ -99,6 +102,42 @@ export class CoDocumentEditor {
|
|
|
99
102
|
if (!cur || cur.mode !== mode || cur.top !== pos.top || cur.left !== pos.left)
|
|
100
103
|
this.imageBar = { mode, top: pos.top, left: pos.left };
|
|
101
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Barra bajo la firma seleccionada (corre en cada transacción del cuerpo, como la de
|
|
107
|
+
* imagen). El recorrido del documento para el rango del ‹ › solo ocurre con una firma
|
|
108
|
+
* seleccionada como nodo: al tipear la selección es de texto y sale en el primer `if`.
|
|
109
|
+
*/
|
|
110
|
+
this.updateSignatureBar = () => {
|
|
111
|
+
const ed = this.editor;
|
|
112
|
+
const sel = ed === null || ed === void 0 ? void 0 : ed.state.selection;
|
|
113
|
+
const node = sel === null || sel === void 0 ? void 0 : sel.node;
|
|
114
|
+
if (!ed || this.readonly || !node || node.type.name !== 'signatureSlot') {
|
|
115
|
+
if (this.signatureBar)
|
|
116
|
+
this.signatureBar = null;
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const dom = ed.view.nodeDOM(sel.from);
|
|
120
|
+
const sheet = this.el.querySelector('.co-doc-editor__sheet');
|
|
121
|
+
if (!dom || !sheet) {
|
|
122
|
+
if (this.signatureBar)
|
|
123
|
+
this.signatureBar = null;
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const others = [];
|
|
127
|
+
ed.state.doc.descendants((n, pos) => {
|
|
128
|
+
if (n.type.name === 'signatureSlot' && pos !== sel.from)
|
|
129
|
+
others.push(n.attrs.slot);
|
|
130
|
+
});
|
|
131
|
+
const { min, max } = signerStepRange(others);
|
|
132
|
+
// px de layout (no los altera el zoom: la barra vive dentro del escenario escalado).
|
|
133
|
+
const box = RichText.layoutBox(dom, sheet);
|
|
134
|
+
const pos = imageBarPosition({ top: box.top, height: box.height, left: layoutLeft(dom, sheet), width: dom.offsetWidth }, { width: sheet.offsetWidth, height: sheet.offsetHeight }, SIGNATURE_BAR_SIZE);
|
|
135
|
+
const slot = node.attrs.slot;
|
|
136
|
+
const cur = this.signatureBar;
|
|
137
|
+
if (!cur || cur.slot !== slot || cur.min !== min || cur.max !== max || cur.top !== pos.top || cur.left !== pos.left) {
|
|
138
|
+
this.signatureBar = { slot, min, max, top: pos.top, left: pos.left };
|
|
139
|
+
}
|
|
140
|
+
};
|
|
102
141
|
/** Una imagen insertada sin ancho nace acotada a la columna (V1 la abriría a 800 px). */
|
|
103
142
|
this.onBodyImageLoad = (e) => {
|
|
104
143
|
const img = e.target;
|
|
@@ -378,6 +417,7 @@ export class CoDocumentEditor {
|
|
|
378
417
|
this.headerEditing = false;
|
|
379
418
|
this.draftShowPageNumber = false;
|
|
380
419
|
this.imageBar = null;
|
|
420
|
+
this.signatureBar = null;
|
|
381
421
|
}
|
|
382
422
|
componentDidLoad() {
|
|
383
423
|
var _a, _b, _c;
|
|
@@ -439,12 +479,14 @@ export class CoDocumentEditor {
|
|
|
439
479
|
this.editor.off('transaction', this.onTransaction);
|
|
440
480
|
this.editor.off('blur', this.onEditorBlur);
|
|
441
481
|
this.editor.off('transaction', this.updateImageBar);
|
|
482
|
+
this.editor.off('transaction', this.updateSignatureBar);
|
|
442
483
|
this.editor.view.dom.removeEventListener('load', this.onBodyImageLoad, true);
|
|
443
484
|
this.editor.destroy();
|
|
444
485
|
}
|
|
445
486
|
this.editor = undefined;
|
|
446
487
|
this.pendingImageSrcs.clear();
|
|
447
488
|
this.imageBar = null;
|
|
489
|
+
this.signatureBar = null;
|
|
448
490
|
}
|
|
449
491
|
onValueChange(next) {
|
|
450
492
|
if (next === this.lastAppliedValue)
|
|
@@ -463,6 +505,7 @@ export class CoDocumentEditor {
|
|
|
463
505
|
if (this.readonly && this.headerEditing)
|
|
464
506
|
this.cancelHeader();
|
|
465
507
|
this.updateImageBar();
|
|
508
|
+
this.updateSignatureBar();
|
|
466
509
|
}
|
|
467
510
|
onPageGeometryChange() {
|
|
468
511
|
this.refreshPagination();
|
|
@@ -576,6 +619,7 @@ export class CoDocumentEditor {
|
|
|
576
619
|
dom.setAttribute('aria-multiline', 'true');
|
|
577
620
|
editor.on('transaction', this.onTransaction);
|
|
578
621
|
editor.on('transaction', this.updateImageBar);
|
|
622
|
+
editor.on('transaction', this.updateSignatureBar);
|
|
579
623
|
editor.on('blur', this.onEditorBlur);
|
|
580
624
|
// `load` no burbujea: se escucha en captura.
|
|
581
625
|
dom.addEventListener('load', this.onBodyImageLoad, true);
|
|
@@ -594,6 +638,27 @@ export class CoDocumentEditor {
|
|
|
594
638
|
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setImageLayoutMode(mode);
|
|
595
639
|
this.updateImageBar();
|
|
596
640
|
}
|
|
641
|
+
/**
|
|
642
|
+
* Sin `.focus()`, como `setImageMode`: con el mouse la barra no le quita el foco al editor y
|
|
643
|
+
* con el teclado el foco se queda en el botón. Los comandos dejan la firma seleccionada
|
|
644
|
+
* (la copia, al duplicar), así la barra sigue.
|
|
645
|
+
*/
|
|
646
|
+
duplicateSignature() {
|
|
647
|
+
var _a;
|
|
648
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.duplicateSignatureSlot();
|
|
649
|
+
this.updateSignatureBar();
|
|
650
|
+
}
|
|
651
|
+
stepSigner(delta) {
|
|
652
|
+
var _a;
|
|
653
|
+
const bar = this.signatureBar;
|
|
654
|
+
if (!bar)
|
|
655
|
+
return;
|
|
656
|
+
const next = bar.slot + delta;
|
|
657
|
+
if (next < bar.min || next > bar.max)
|
|
658
|
+
return;
|
|
659
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setSignatureSlot(next);
|
|
660
|
+
this.updateSignatureBar();
|
|
661
|
+
}
|
|
597
662
|
/** Imágenes que entran por una transacción del usuario sin `width` (barra, pegar, soltar, subida). */
|
|
598
663
|
trackInsertedImages(transaction) {
|
|
599
664
|
var _a, _b, _c;
|
|
@@ -819,10 +884,25 @@ export class CoDocumentEditor {
|
|
|
819
884
|
this.draftShowPageNumber = !!e.detail;
|
|
820
885
|
} }), h("co-tooltip", { content: s.confirmHeader }, h("co-icon-button", { icon: "check", variant: "ghost", size: "xs", boxSize: HEADER_TOOL_BOX_PX, iconSize: HEADER_TOOL_ICON_PX, label: s.confirmHeader, onClick: () => this.commitHeader(true) }))))) : (h("div", { key: "header-static", class: "co-doc-editor__header-static" }, h("div", { class: "co-doc-editor__header-html", innerHTML: this.sanitizedHeaderHtml }), this.currentShowPageNumber && h("span", { class: "co-doc-editor__page-number" }, `${s.page} 1 / ${this.pageCount}`)))));
|
|
821
886
|
}
|
|
822
|
-
/** Controles flotantes sobre la hoja: la barra de
|
|
887
|
+
/** Controles flotantes sobre la hoja: la barra de la imagen o de la firma seleccionada. */
|
|
823
888
|
renderOverlays() {
|
|
889
|
+
if (this.readonly || this.headerEditing)
|
|
890
|
+
return null;
|
|
891
|
+
return [this.renderImageBar(), this.renderSignatureBar()];
|
|
892
|
+
}
|
|
893
|
+
renderSignatureBar() {
|
|
894
|
+
const bar = this.signatureBar;
|
|
895
|
+
if (!bar)
|
|
896
|
+
return null;
|
|
897
|
+
const s = this.s;
|
|
898
|
+
// <button> nativos (no co-icon-button): mismo marco que la barra de imagen, y el
|
|
899
|
+
// aria-label tiene que llegar al botón real (ningún co-* reenvía los aria-* del host).
|
|
900
|
+
const step = (dir, label, icon, delta, disabled) => (h("co-tooltip", { key: dir, content: label }, h("button", { type: "button", class: "co-doc-editor__sig-step", "data-dir": dir, "aria-label": label, disabled: disabled, onClick: () => this.stepSigner(delta) }, h("co-icon", { name: icon, size: IMAGE_MODE_ICON_PX, "aria-hidden": "true" }))));
|
|
901
|
+
return (h("div", { key: "signature-bar", class: "co-doc-editor__sig-bar", role: "toolbar", "aria-label": s.signatureToolsLabel, style: { top: `${bar.top}px`, left: `${bar.left}px` }, onMouseDown: (e) => e.preventDefault() }, h("button", { key: "duplicate", type: "button", class: "co-doc-editor__sig-duplicate", onClick: () => this.duplicateSignature() }, h("co-icon", { name: "copy", size: IMAGE_MODE_ICON_PX, "aria-hidden": "true" }), h("span", { class: "co-doc-editor__sig-duplicate-text" }, s.signatureDuplicate)), h("span", { key: "sep", class: "co-doc-editor__sig-sep", "aria-hidden": "true" }), step('prev', s.signaturePrevSigner, 'caret-left', -1, bar.slot <= bar.min), h("span", { key: "label", class: "co-doc-editor__sig-label", "aria-live": "polite" }, `${s.signature} ${bar.slot}`), step('next', s.signatureNextSigner, 'caret-right', 1, bar.slot >= bar.max)));
|
|
902
|
+
}
|
|
903
|
+
renderImageBar() {
|
|
824
904
|
const bar = this.imageBar;
|
|
825
|
-
if (!bar
|
|
905
|
+
if (!bar)
|
|
826
906
|
return null;
|
|
827
907
|
return (h("div", { key: "image-bar", class: "co-doc-editor__image-bar", role: "toolbar", "aria-label": this.s.imageLayoutLabel, style: { top: `${bar.top}px`, left: `${bar.left}px` }, onMouseDown: (e) => e.preventDefault() }, RichText.IMAGE_LAYOUT_MODES.map((mode) => {
|
|
828
908
|
const label = this.imageModeLabel(mode);
|
|
@@ -851,8 +931,8 @@ export class CoDocumentEditor {
|
|
|
851
931
|
width: `${page.width * this.scale}px`,
|
|
852
932
|
height: this.stageHeight ? `${this.stageHeight * this.scale}px` : 'auto',
|
|
853
933
|
};
|
|
854
|
-
const zoomButton = (mode, label) => (h("button", { key: '
|
|
855
|
-
return (h(Host, { key: '
|
|
934
|
+
const zoomButton = (mode, label) => (h("button", { key: '3364440e585cbfdfdc33580aa28001f7563f6fa6', type: "button", class: { 'co-doc-editor__zoom-btn': true, 'co-doc-editor__zoom-btn--active': this.zoomMode === mode }, "aria-pressed": String(this.zoomMode === mode), onClick: () => this.setZoom(mode) }, label));
|
|
935
|
+
return (h(Host, { key: '2cc578822013cc07eeeebd0949cbbd2bb09acbc1' }, h("div", { key: '5aebe4e657d01b03c5fdf719b87c1c4a08f121a6', class: { 'co-doc-editor': true, 'co-doc-editor--readonly': this.readonly, 'co-doc-editor--loading': !this.ready }, part: "wrapper" }, h("div", { key: '93f7d60fffd9e9e902ac25d9fa8a971e96b39ec5', class: "co-doc-editor__bar", part: "bar" }, !this.readonly && (h("co-rich-text-toolbar", { key: 'df82ee73a50e8283244afb38532803a13b4d6db9', class: "co-doc-editor__toolbar", part: "toolbar", variant: "document", position: "top", disabled: false, locale: this.locale, attachmentsEnabled: false, documentHeaderEnabled: this.documentHeaderEnabled, extraItems: this.parsedExtraItems, onCoAction: this.handleToolbarAction, ref: (el) => (this.toolbarEl = el) })), h("div", { key: 'a49cc3a01fc203b3bcf3e158ce186fefd607577e', class: "co-doc-editor__zoom", role: "group", "aria-label": s.zoom }, this.zoomMode === 'custom' && h("span", { key: '47f0c8d5c6bd3c0e51d75ad70103644def66b333', class: "co-doc-editor__zoom-level" }, `${Math.round(this.scale * 100)} %`), zoomButton('fit', s.zoomFit), zoomButton('actual', s.zoomActual))), h("div", { key: 'd28e02e78c8171b0366f7b3ec74e60cfd9f3d21b', class: "co-doc-editor__body" }, h("div", { key: '450bbf0712838a9213a08288148f5365a1d6766b', class: "co-doc-editor__canvas", part: "canvas", ref: (el) => (this.canvasEl = el) }, h("div", { key: '3585da3d1f7b0311cb036246f20340b2eb34e45d', class: "co-doc-editor__zoom-frame", style: frameStyle }, h("div", { key: 'ce70286c7205f29115d4e9049c3d43775657abfb', class: "co-doc-editor__stage", style: { transform: `scale(${this.scale})` }, ref: (el) => (this.stageEl = el) }, h("div", { key: '81c7e68d4d8593b21be0f14045965b1e7230657e', class: "co-doc-editor__sheet", part: "sheet", "data-co-doc": this.instanceId, style: sheetVars }, h("style", { key: "page-styles", "data-co-doc-page-styles": "", ref: (el) => (this.styleEl = el) }), h("div", { key: "paper", class: "co-doc-editor__paper", "data-theme": "light" }, this.renderHeaderBand(), h("div", { key: "content", class: "co-doc-editor__content", ref: (el) => (this.contentEl = el) }), this.renderOverlays()))))), h("slot", { key: '3808aa0d8bae35da687e9757ca39ffced996a795', name: "aside" })))));
|
|
856
936
|
}
|
|
857
937
|
static get is() { return "co-document-editor"; }
|
|
858
938
|
static get originalStyleUrls() {
|
|
@@ -936,7 +1016,7 @@ export class CoDocumentEditor {
|
|
|
936
1016
|
"references": {
|
|
937
1017
|
"DocumentPageSize": {
|
|
938
1018
|
"location": "local",
|
|
939
|
-
"path": "/Users/agox/
|
|
1019
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
940
1020
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentPageSize"
|
|
941
1021
|
}
|
|
942
1022
|
}
|
|
@@ -962,7 +1042,7 @@ export class CoDocumentEditor {
|
|
|
962
1042
|
"references": {
|
|
963
1043
|
"DocumentMargins": {
|
|
964
1044
|
"location": "local",
|
|
965
|
-
"path": "/Users/agox/
|
|
1045
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
966
1046
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentMargins"
|
|
967
1047
|
}
|
|
968
1048
|
}
|
|
@@ -1027,7 +1107,7 @@ export class CoDocumentEditor {
|
|
|
1027
1107
|
"references": {
|
|
1028
1108
|
"DocumentFeatures": {
|
|
1029
1109
|
"location": "local",
|
|
1030
|
-
"path": "/Users/agox/
|
|
1110
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1031
1111
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentFeatures"
|
|
1032
1112
|
}
|
|
1033
1113
|
}
|
|
@@ -1163,7 +1243,8 @@ export class CoDocumentEditor {
|
|
|
1163
1243
|
"stageHeight": {},
|
|
1164
1244
|
"headerEditing": {},
|
|
1165
1245
|
"draftShowPageNumber": {},
|
|
1166
|
-
"imageBar": {}
|
|
1246
|
+
"imageBar": {},
|
|
1247
|
+
"signatureBar": {}
|
|
1167
1248
|
};
|
|
1168
1249
|
}
|
|
1169
1250
|
static get events() {
|
|
@@ -1220,7 +1301,7 @@ export class CoDocumentEditor {
|
|
|
1220
1301
|
"references": {
|
|
1221
1302
|
"DocumentHeaderDetail": {
|
|
1222
1303
|
"location": "local",
|
|
1223
|
-
"path": "/Users/agox/
|
|
1304
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1224
1305
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentHeaderDetail"
|
|
1225
1306
|
}
|
|
1226
1307
|
}
|
|
@@ -1256,7 +1337,7 @@ export class CoDocumentEditor {
|
|
|
1256
1337
|
"references": {
|
|
1257
1338
|
"DocumentActionDetail": {
|
|
1258
1339
|
"location": "local",
|
|
1259
|
-
"path": "/Users/agox/
|
|
1340
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1260
1341
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentActionDetail"
|
|
1261
1342
|
}
|
|
1262
1343
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barra de la firma seleccionada (2026-10-01): «Duplicar» (otra posición del MISMO
|
|
3
|
+
* firmante) y ‹ Firma N › (a qué firmante va). Como la barra de imagen, se posiciona
|
|
4
|
+
* ANTES de existir con `imageBarPosition`: sus medidas son fijas en el CSS
|
|
5
|
+
* (`.co-doc-editor__sig-*`) y la prueba las ata a estas constantes.
|
|
6
|
+
*/
|
|
7
|
+
/** «Duplicar» con icono y texto (cabe «Duplicate», el más largo de es/en/pt). */
|
|
8
|
+
export const SIGNATURE_DUPLICATE_PX = 96;
|
|
9
|
+
/** Botón ‹ / › (ancho = alto). */
|
|
10
|
+
export const SIGNATURE_STEP_PX = 28;
|
|
11
|
+
/** Etiqueta «Firma N» (cabe «Assinatura 12»; más largo recorta con elipsis). */
|
|
12
|
+
export const SIGNATURE_LABEL_PX = 88;
|
|
13
|
+
/** duplicar 96 + separador 1 + ‹ 28 + etiqueta 88 + › 28 + 4 separaciones de 2 + relleno 2 × 2 + borde 1 × 2. */
|
|
14
|
+
export const SIGNATURE_BAR_SIZE = { width: 255, height: 34 };
|
|
15
|
+
/**
|
|
16
|
+
* Rango del ‹ ›: de 1 a una más que la mayor de las OTRAS firmas del documento. El N de
|
|
17
|
+
* un marcador es el N-ésimo firmante, así que saltar a «Firma 7» sin 2..6 pediría firmantes
|
|
18
|
+
* que no tienen posición; un hueco que igual quede lo avisa el envío (posiciones faltantes).
|
|
19
|
+
*/
|
|
20
|
+
export function signerStepRange(otherSlots) {
|
|
21
|
+
let top = 0;
|
|
22
|
+
for (const n of otherSlots)
|
|
23
|
+
if (n > top)
|
|
24
|
+
top = n;
|
|
25
|
+
return { min: 1, max: top + 1 };
|
|
26
|
+
}
|
|
@@ -97,6 +97,9 @@
|
|
|
97
97
|
display: flex;
|
|
98
98
|
flex-direction: column;
|
|
99
99
|
font-family: var(--co-font-family-primary);
|
|
100
|
+
/* El aside modeless es [popover]: la UA le pone `color: CanvasText` (#000
|
|
101
|
+
también en oscuro). Contenedor de paso — la card fija su propia tinta. */
|
|
102
|
+
color: inherit;
|
|
100
103
|
transition: transform var(--co-motion-duration-slow) var(--co-motion-ease-in-out);
|
|
101
104
|
will-change: transform; /* se conserva (E2): capa compuesta propia para el slide */
|
|
102
105
|
z-index: 1;
|
|
@@ -179,6 +182,9 @@
|
|
|
179
182
|
display: flex;
|
|
180
183
|
flex-direction: column;
|
|
181
184
|
background: var(--co-semantic-surface-page);
|
|
185
|
+
/* Tinta pareja con el fondo: lo que no declara color propio no hereda el
|
|
186
|
+
del contexto (ni el CanvasText del top layer). */
|
|
187
|
+
color: var(--co-semantic-text-default);
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
/* ─── Header ──────────────────────────────────────────────── */
|
|
@@ -278,8 +284,10 @@
|
|
|
278
284
|
scrollbar-color: transparent transparent;
|
|
279
285
|
}
|
|
280
286
|
|
|
287
|
+
/* Pulgar por semánticos de borde (mismo valor en claro): opacity-negro fijo
|
|
288
|
+
era un pulgar invisible sobre la card oscura. */
|
|
281
289
|
.co-drawer__body:hover {
|
|
282
|
-
scrollbar-color: var(--co-
|
|
290
|
+
scrollbar-color: var(--co-semantic-border-default) transparent;
|
|
283
291
|
}
|
|
284
292
|
|
|
285
293
|
.co-drawer__body::-webkit-scrollbar {
|
|
@@ -296,15 +304,15 @@
|
|
|
296
304
|
}
|
|
297
305
|
|
|
298
306
|
.co-drawer__body:hover::-webkit-scrollbar-thumb {
|
|
299
|
-
background: var(--co-
|
|
307
|
+
background: var(--co-semantic-border-default);
|
|
300
308
|
}
|
|
301
309
|
|
|
302
310
|
.co-drawer__body:hover::-webkit-scrollbar-thumb:hover {
|
|
303
|
-
background: var(--co-
|
|
311
|
+
background: var(--co-semantic-border-field);
|
|
304
312
|
}
|
|
305
313
|
|
|
306
314
|
.co-drawer__body:hover::-webkit-scrollbar-thumb:active {
|
|
307
|
-
background: var(--co-
|
|
315
|
+
background: var(--co-semantic-border-strong);
|
|
308
316
|
}
|
|
309
317
|
|
|
310
318
|
/* ─── Footer ──────────────────────────────────────────────── */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { afterEventFor } from "../co-overlay/overlayAfterClose";
|
|
3
|
+
import { isTopEscapeLayer, pushEscapeLayer, removeEscapeLayer } from "../co-overlay/escapeLayers";
|
|
3
4
|
import { slotHasContent } from "../../utils/slotContent";
|
|
4
5
|
/**
|
|
5
6
|
* Panel lateral (derecha, izquierda o abajo) sobre un scrim, con header, pestañas,
|
|
@@ -128,9 +129,20 @@ export class CoDrawer {
|
|
|
128
129
|
return this.heading ? 'co-drawer-heading' : undefined;
|
|
129
130
|
}
|
|
130
131
|
onOpenChange(next, prev) {
|
|
132
|
+
if (next)
|
|
133
|
+
pushEscapeLayer(this);
|
|
134
|
+
else
|
|
135
|
+
removeEscapeLayer(this);
|
|
131
136
|
if (next && !prev)
|
|
132
137
|
this.coOpen.emit();
|
|
133
138
|
}
|
|
139
|
+
connectedCallback() {
|
|
140
|
+
if (this.open)
|
|
141
|
+
pushEscapeLayer(this);
|
|
142
|
+
}
|
|
143
|
+
disconnectedCallback() {
|
|
144
|
+
removeEscapeLayer(this);
|
|
145
|
+
}
|
|
134
146
|
handleKey(e) {
|
|
135
147
|
if (!this.open || !this.closeOnEscape || e.key !== 'Escape')
|
|
136
148
|
return;
|
|
@@ -139,6 +151,10 @@ export class CoDrawer {
|
|
|
139
151
|
// Hosts are light-DOM with reflected props, so a document query works.
|
|
140
152
|
if (this.modeless && document.querySelector('co-drawer[open]:not([modeless]), co-modal[open]'))
|
|
141
153
|
return;
|
|
154
|
+
// Escape en cascada: solo la capa de ARRIBA (la última abierta: otro drawer, un co-modal)
|
|
155
|
+
// atiende la tecla — el drawer de abajo no se cierra llevándose el modal con él.
|
|
156
|
+
if (!isTopEscapeLayer(this))
|
|
157
|
+
return;
|
|
142
158
|
this.coClose.emit();
|
|
143
159
|
}
|
|
144
160
|
componentDidLoad() {
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/* ─── Shared surface ─────────────────────────────────────────── */
|
|
6
|
+
/* Superficie, tinta y anillos por semánticos de MISMO valor en claro (base-blanco→surface-page,
|
|
7
|
+
negro-8/25→border-subtle/field, base-negro→text-default, gray-100→surface-control,
|
|
8
|
+
gray-400→text-disabled): la tarjeta era solo clara y cambiar únicamente los anillos a border-*
|
|
9
|
+
(blancos en oscuro) los borraba sobre el blanco. Quedan fijos el chip de selección y la estrella
|
|
10
|
+
superpuesta: flotan sobre la miniatura (imagen), no sobre la superficie. */
|
|
6
11
|
.co-drive-card {
|
|
7
12
|
--dc-accent: var(--co-color-primary-azul, #2563eb);
|
|
8
13
|
position: relative;
|
|
@@ -12,8 +17,8 @@
|
|
|
12
17
|
cursor: pointer;
|
|
13
18
|
outline: none;
|
|
14
19
|
font-family: var(--co-font-family-primary);
|
|
15
|
-
background: var(--co-
|
|
16
|
-
box-shadow: inset 0 0 0 1px var(--co-
|
|
20
|
+
background: var(--co-semantic-surface-page, #fff);
|
|
21
|
+
box-shadow: inset 0 0 0 1px var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
.co-drive-card:focus-visible {
|
|
@@ -38,11 +43,12 @@
|
|
|
38
43
|
|
|
39
44
|
.co-drive-card--folder:hover:not(.co-drive-card--selected) {
|
|
40
45
|
box-shadow: var(--co-shadow-sm, 0 1px 2px 0 rgba(26, 26, 26, 0.04)),
|
|
41
|
-
inset 0 0 0 1px var(--co-
|
|
46
|
+
inset 0 0 0 1px var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.co-drive-card--folder.co-drive-card--selected {
|
|
45
|
-
|
|
50
|
+
/* El tinte se mezcla con la superficie (blanco en claro), no con blanco fijo. */
|
|
51
|
+
background: color-mix(in srgb, var(--dc-accent) 7%, var(--co-semantic-surface-page, white));
|
|
46
52
|
box-shadow: inset 0 0 0 1.5px var(--dc-accent);
|
|
47
53
|
}
|
|
48
54
|
|
|
@@ -53,7 +59,7 @@
|
|
|
53
59
|
align-items: center;
|
|
54
60
|
justify-content: center;
|
|
55
61
|
border-radius: 11px;
|
|
56
|
-
background: color-mix(in srgb, var(--dc-accent) 12%, white);
|
|
62
|
+
background: color-mix(in srgb, var(--dc-accent) 12%, var(--co-semantic-surface-page, white));
|
|
57
63
|
color: var(--dc-accent);
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
font-size: 14px;
|
|
81
87
|
font-weight: 500;
|
|
82
88
|
line-height: 1.3;
|
|
83
|
-
color: var(--co-
|
|
89
|
+
color: var(--co-semantic-text-default, #1f1c1b);
|
|
84
90
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
85
91
|
white-space: nowrap;
|
|
86
92
|
overflow: hidden;
|
|
@@ -90,7 +96,7 @@
|
|
|
90
96
|
.co-drive-card__meta {
|
|
91
97
|
font-family: var(--co-font-family-primary);
|
|
92
98
|
font-size: 12px;
|
|
93
|
-
color: var(--co-
|
|
99
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
94
100
|
margin-top: 2px;
|
|
95
101
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
96
102
|
white-space: nowrap;
|
|
@@ -129,11 +135,11 @@
|
|
|
129
135
|
|
|
130
136
|
.co-drive-card--file:hover:not(.co-drive-card--selected):not(.co-drive-card--active) {
|
|
131
137
|
box-shadow: var(--co-shadow-sm, 0 1px 2px 0 rgba(26, 26, 26, 0.04)),
|
|
132
|
-
inset 0 0 0 1px var(--co-
|
|
138
|
+
inset 0 0 0 1px var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
.co-drive-card--file.co-drive-card--active:not(.co-drive-card--selected) {
|
|
136
|
-
box-shadow: inset 0 0 0 1.5px var(--co-
|
|
142
|
+
box-shadow: inset 0 0 0 1.5px var(--co-semantic-border-field, rgba(31, 28, 27, 0.25));
|
|
137
143
|
}
|
|
138
144
|
|
|
139
145
|
.co-drive-card--file.co-drive-card--selected {
|
|
@@ -145,7 +151,7 @@
|
|
|
145
151
|
display: block;
|
|
146
152
|
border-radius: 10px;
|
|
147
153
|
overflow: hidden;
|
|
148
|
-
background: var(--co-
|
|
154
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
.co-drive-card--comfy .co-drive-card__thumb {
|
|
@@ -174,7 +180,7 @@
|
|
|
174
180
|
.co-drive-card__sub {
|
|
175
181
|
font-family: var(--co-font-family-primary);
|
|
176
182
|
font-size: 11.5px;
|
|
177
|
-
color: var(--co-
|
|
183
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
178
184
|
margin-top: 1px;
|
|
179
185
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
180
186
|
white-space: nowrap;
|
|
@@ -207,7 +213,7 @@
|
|
|
207
213
|
flex-shrink: 0;
|
|
208
214
|
display: inline-flex;
|
|
209
215
|
align-items: center;
|
|
210
|
-
color: var(--co-
|
|
216
|
+
color: var(--co-semantic-text-disabled, #a0a0a0);
|
|
211
217
|
opacity: 0;
|
|
212
218
|
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
213
219
|
}
|
|
@@ -87,7 +87,7 @@ export class CoDriveCard {
|
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
89
|
const isFile = this.variant === 'file';
|
|
90
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '18b61cf2abfaa8772eccfdd6eef97b02031ecf03', class: {
|
|
91
91
|
'co-drive-card': true,
|
|
92
92
|
[`co-drive-card--${this.variant}`]: true,
|
|
93
93
|
[`co-drive-card--${this.density}`]: true,
|
|
@@ -63,7 +63,7 @@ export class CoDropZone {
|
|
|
63
63
|
this.coDragStateChange.emit(next);
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '67d960d753b29ed1c365312dc7295df325a8a722', class: { 'co-drop-zone': true, 'co-drop-zone--active': this.active }, part: "host", style: { '--co-drop-zone-accent': this.accent }, onDragEnter: this.handleDragEnter, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("slot", { key: 'da400ae3fd805ab0e12e832445f7921a2cf9a378' }), this.active && (h("div", { key: 'a10b22b0b965668b62100f3736bd0b1f373536bf', class: "co-drop-zone__overlay", part: "overlay" }, h("div", { key: 'ea8e3f27d9c8b9717d8bd7867e756782e863eeff', class: "co-drop-zone__badge", part: "badge" }, h("co-icon", { key: '9fe0f6d884b9adab786cb641b799da67cc3551f7', name: this.icon, size: 34 })), h("span", { key: 'b413d86783086497f90afb0fbd24c10f1f7a9e7d', class: "co-drop-zone__label", part: "label" }, this.label)))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "co-drop-zone"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -392,14 +392,14 @@ export class CoEmojiPicker {
|
|
|
392
392
|
const stripCategories = hasRecent
|
|
393
393
|
? [RECENT_CATEGORY, ...EMOJI_CATEGORIES]
|
|
394
394
|
: [...EMOJI_CATEGORIES];
|
|
395
|
-
return (h("div", { key: '
|
|
395
|
+
return (h("div", { key: '002e48d3ddf42599235dcbb899db1402b082623b', class: "co-emoji-picker", part: "panel", role: "group", "aria-label": this.label || s.pickerLabel, style: { '--co-emoji-picker-columns': String(Math.max(1, this.columns)) }, onKeyDown: this.handleKeyDown }, this.searchable && (h("div", { key: '80b5ac6d85764a8634fad32f37b57a08c9b660ce', class: "co-emoji-picker__search", part: "search" }, h("co-icon", { key: '176b1fc29d0706ac53f0b3c6dc80baf83da8a5b3', name: "magnifying-glass", size: 16 }), h("input", { key: '80c64915e50e4f32a0fa696de34b02552a695e43', class: "co-emoji-picker__input", part: "input", type: "text", value: this.term, placeholder: this.searchPlaceholder || s.searchPlaceholder, onInput: this.handleInput, ref: (el) => (this.inputEl = el), role: "combobox", "aria-expanded": "true", "aria-autocomplete": "list", "aria-controls": CoEmojiPicker.GRID_ID, "aria-activedescendant": activeCellId }), this.renderTones())), this.showCategories && (h("div", { key: '185790638cf64b8744b22dbacc290849841c14d7', class: "co-emoji-picker__categories", part: "categories", "aria-label": s.categoriesLabel }, !this.searchable && this.renderTones(), stripCategories.map((category) => {
|
|
396
396
|
var _a, _b;
|
|
397
397
|
const name = (_a = s.categories[category]) !== null && _a !== void 0 ? _a : category;
|
|
398
398
|
return (h("button", { type: "button", key: category, class: {
|
|
399
399
|
'co-emoji-picker__category': true,
|
|
400
400
|
'co-emoji-picker__category--active': category === activeCategory,
|
|
401
401
|
}, "aria-label": name, "aria-current": category === activeCategory ? 'true' : undefined, title: name, onClick: () => this.jumpToCategory(category) }, h("co-icon", { name: (_b = EMOJI_CATEGORY_ICONS[category]) !== null && _b !== void 0 ? _b : 'circle', size: 16 })));
|
|
402
|
-
}))), h("div", { key: '
|
|
402
|
+
}))), h("div", { key: 'f630309a995d22234dc5f7acdc723586f6181499', class: "co-emoji-picker__scroll", part: "grid", id: CoEmojiPicker.GRID_ID, role: "listbox", "aria-label": s.gridLabel, ref: (el) => (this.scrollEl = el), onScroll: this.handleScroll }, isEmpty ? (h("div", { class: "co-emoji-picker__empty" }, h("co-icon", { name: "magnifying-glass", size: 20 }), h("span", null, this.emptyMessage || s.emptyMessage))) : (this.renderRows(rows)))));
|
|
403
403
|
}
|
|
404
404
|
static get is() { return "co-emoji-picker"; }
|
|
405
405
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
width: 72px;
|
|
21
21
|
height: 72px;
|
|
22
22
|
border-radius: 50%;
|
|
23
|
-
|
|
23
|
+
/* Semánticos de MISMO valor en claro (gray-100 = surface-control): la
|
|
24
|
+
primitiva no gira y dejaba un disco claro sobre la página oscura. */
|
|
25
|
+
background: var(--co-semantic-surface-control);
|
|
24
26
|
color: var(--co-semantic-text-muted);
|
|
25
27
|
margin-bottom: var(--co-spacing-xl);
|
|
26
28
|
}
|
|
@@ -52,15 +54,17 @@
|
|
|
52
54
|
.co-empty-state--card {
|
|
53
55
|
gap: var(--co-spacing-3xl, 32px);
|
|
54
56
|
padding: var(--co-spacing-5xl, 48px) var(--co-spacing-3xl, 32px);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
/* base-blanco / opacity-negro-8 no giran: en oscuro era una tarjeta blanca
|
|
58
|
+
con el título en text-default (blanco). Mismo valor en claro. */
|
|
59
|
+
background: var(--co-semantic-surface-page);
|
|
60
|
+
box-shadow: inset 0 0 0 1px var(--co-semantic-border-subtle);
|
|
57
61
|
border-radius: var(--co-border-radius-lg, 16px);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.co-empty-state--card .co-empty-state__icon {
|
|
61
65
|
margin-bottom: 0;
|
|
62
|
-
background: var(--co-
|
|
63
|
-
color: var(--co-
|
|
66
|
+
background: var(--co-semantic-surface-control);
|
|
67
|
+
color: var(--co-semantic-text-secondary);
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
.co-empty-state--card .co-empty-state__heading {
|
|
@@ -70,7 +74,7 @@
|
|
|
70
74
|
.co-empty-state--card .co-empty-state__description {
|
|
71
75
|
margin-bottom: 0;
|
|
72
76
|
line-height: 1.35;
|
|
73
|
-
color: var(--co-
|
|
77
|
+
color: var(--co-semantic-text-secondary);
|
|
74
78
|
max-width: 366px;
|
|
75
79
|
}
|
|
76
80
|
|
|
@@ -15,11 +15,11 @@ export class CoEmptyState {
|
|
|
15
15
|
render() {
|
|
16
16
|
var _a;
|
|
17
17
|
const iconWeight = (_a = this.iconWeight) !== null && _a !== void 0 ? _a : (this.variant === 'card' ? 'regular' : 'light');
|
|
18
|
-
return (h("div", { key: '
|
|
18
|
+
return (h("div", { key: '19132f82995eef467098bfddbc78dc65b98a9290', class: {
|
|
19
19
|
'co-empty-state': true,
|
|
20
20
|
[`co-empty-state--${this.variant}`]: true,
|
|
21
21
|
[`co-empty-state--${this.size}`]: true,
|
|
22
|
-
}, part: "empty-state" }, this.icon && (h("div", { key: '
|
|
22
|
+
}, part: "empty-state" }, this.icon && (h("div", { key: 'e2e91d957055eeec9b884e089b43a351acb693c6', class: "co-empty-state__icon" }, h("co-icon", { key: '8269c9b54de522ffe7eb4ae00a9c89b003654531', name: this.icon, size: 40, weight: iconWeight }))), this.heading && (h("div", { key: '8ee14a4ef7136581050dc0530f3024b0c3d33b97', class: "co-empty-state__heading" }, this.heading)), this.description && (h("div", { key: '115f78cabbd7b6842f16e6c6e10725d5405a45dc', class: "co-empty-state__description" }, this.description)), h("div", { key: '7439b17467b5470671e96515161838382d6764ea', class: "co-empty-state__actions" }, h("slot", { key: 'c34c498840f451ebec7e1bb062afa499a6299cff' }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "co-empty-state"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -235,10 +235,10 @@ export class CoEventCalendar {
|
|
|
235
235
|
const t = getDateStrings(this.locale);
|
|
236
236
|
const views = this.viewsList;
|
|
237
237
|
const a = parseISO(this.anchor);
|
|
238
|
-
return (h("div", { key: '
|
|
238
|
+
return (h("div", { key: '832acb515b3f21d70ce662838a6e6e3698b56217', class: "cal" }, h("div", { key: 'c083f584a806fe73c967669674cd150db68d44b9', class: "cal__toolbar", part: "toolbar" }, h("button", { key: '4d9643c42858f77d10e3ae2fd6b94e3127acf1bc', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: '1ef58de1d94cde443ba40fd30d3145f527a7ec4d', class: "cal__title-group" }, h("button", { key: 'ad9df38e0f8e69d44b60aa21ce3ba1606d499b24', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: 'c6277c1173b4b11240844c85dd83169f2b3b3061', name: "caret-left", size: 16 })), h("h2", { key: '4ad13c5721eacc1102d9c192f82f545158dbc44d', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '225374ba888f99f3d70c4db5a5a7fd96e367df44', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: '72bb0f7e8eb4e53b071656eb2ea4e4b7dc73adf2', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
|
|
239
239
|
var _a;
|
|
240
240
|
return (h("button", { type: "button", role: "tab", "aria-selected": this.view === v ? 'true' : 'false', class: { 'cal__view-btn': true, 'cal__view-btn--active': this.view === v }, onClick: () => this.switchView(v) }, (_a = t[v]) !== null && _a !== void 0 ? _a : v));
|
|
241
|
-
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '
|
|
241
|
+
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: 'a11f0e302ec7a4f8e5c0e6958bb3de75acec43cf', class: "cal__body", part: "body" }, this.view === 'month' ? (h("co-calendar-month", { loading: this.loading, events: this.normalized, year: a.year, month: a.month, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, timeZone: this.tz, minDate: this.minDate, maxDate: this.maxDate, editable: this.editable, selectable: this.selectable, maxLanes: this.dayMaxEvents, onCoDaySelect: this.handleDaySelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, onCoMoreClick: this.handleMoreClick })) : this.view === 'week' || this.view === 'day' ? (h("co-calendar-timegrid", { loading: this.loading, events: this.normalized, dates: this.visibleDates, locale: this.locale, timeZone: this.tz, editable: this.editable, selectable: this.selectable, minDate: this.minDate, maxDate: this.maxDate, onCoRangeSelect: this.handleRangeSelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, defaultDurationMinutes: this.defaultDurationMinutes, allDaySlot: this.allDaySlot, minTime: this.minTime, maxTime: this.maxTime, slotMinutes: this.slotMinutes, snapMinutes: this.snapMinutes, scrollTime: this.scrollTime, nowIndicator: this.nowIndicator })) : (h("div", { class: "cal__placeholder" }, h("co-icon", { name: "calendar-dots", size: 32 }), h("p", null, `${this.view} view — coming soon`))))));
|
|
242
242
|
}
|
|
243
243
|
static get is() { return "co-event-calendar"; }
|
|
244
244
|
static get encapsulation() { return "shadow"; }
|
|
@@ -130,7 +130,7 @@ export class CoEventPopover {
|
|
|
130
130
|
this.coClose.emit();
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '5bd2501cd2a3b7163ddb91cac5b4397ea9394d6c' }, h("div", { key: '1aa203d59b6705638bdd5aa412fbb88ead2bd9f2', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: '3d740784adb2378dc83d8dbd1374d55ad3596ef7', class: "pop__actions", part: "actions" }, h("slot", { key: '4a79c8011bbcb610d1b650ee36b4c6875600a3fa', name: "actions" })), h("div", { key: 'b34f414b6a77c733189364037949360813e617eb', class: "pop__head" }, this.dot && h("span", { key: '498557c45c87c3e14ef838740ce76c449e94c607', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: 'ca746458cfc81afd00ae5814ca196b71cad75449', class: "pop__body", part: "body" }, h("slot", { key: '4a851b8f4ddfd9321b2d882544adedff4dab7ade' }))))));
|
|
134
134
|
}
|
|
135
135
|
static get is() { return "co-event-popover"; }
|
|
136
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -117,9 +117,11 @@
|
|
|
117
117
|
|
|
118
118
|
/* ── Variants ───────────────────────────────────────────────── */
|
|
119
119
|
.co-fab--primary {
|
|
120
|
-
/*
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
/* Sólido (pedido design 2026-07-22 — antes Negro 80% + blur, se veía gris sobre
|
|
121
|
+
fondos claros): la superficie INVERSA, negra en claro. En oscuro gira a blanco junto
|
|
122
|
+
con el icono (on-primary); con base-negro fijo el icono negro desaparecía (2026-09-27).
|
|
123
|
+
--co-fab-bg sigue disponible como override. */
|
|
124
|
+
background: var(--co-fab-bg, var(--co-semantic-surface-primary));
|
|
123
125
|
color: var(--co-semantic-on-primary);
|
|
124
126
|
}
|
|
125
127
|
|