@prolibu-suite/cobalt-core 0.11.6 → 0.11.8
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 +25 -8
- 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 +6 -5
- package/dist/cjs/co-lightbox.cjs.entry.js +74 -9
- 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 +5 -4
- 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 +36 -6
- 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/popoverApi-D1ChCCdO.js +27 -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-2832ab99.entry.js +1 -0
- package/dist/cobalt/p-299c2425.entry.js +1 -0
- 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-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-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-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-Dp1JT0dm.js +1 -0
- 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-f69804a6.entry.js → p-b402665a.entry.js} +1 -1
- package/dist/cobalt/p-b723aa47.entry.js +1 -0
- 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-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-eab59be5.entry.js +1 -0
- 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-f562bd96.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 +18 -1
- 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 +11 -9
- 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 +4 -3
- 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 +36 -6
- 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 +5 -4
- 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/popoverApi.js +23 -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-B70R6xWE.js +1 -0
- package/dist/components/{p-BW10Sgiy.js → p-BGNXvnDr.js} +1 -1
- package/dist/components/p-BMyWdiVO.js +1 -0
- package/dist/components/p-BRIf9NGv.js +1 -0
- package/dist/components/p-BSt2t5Fy.js +1 -0
- package/dist/components/p-Bd6H9_5D.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-BI_VaFsx.js → p-BkyYV32T.js} +1 -1
- package/dist/components/p-BzxEh7sq.js +1 -0
- package/dist/components/p-CDiRdG6I.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-Bw_b_czs.js → p-CXi0fhTi.js} +1 -1
- package/dist/components/p-CaAdnjC6.js +1 -0
- package/dist/components/p-CjB5Vqpy.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-DHIa14ep.js +1 -0
- package/dist/components/{p-Dnz99Ox_.js → p-DMW9TJ7Z.js} +1 -1
- package/dist/components/p-DRL-a5hO.js +1 -0
- package/dist/components/p-DTWqwwXO.js +1 -0
- package/dist/components/{p-8XzG8pzY.js → p-DldA2IL3.js} +1 -1
- package/dist/components/p-Dp1JT0dm.js +1 -0
- package/dist/components/p-LnW75kr5.js +1 -0
- package/dist/components/p-R1W48hzW.js +1 -0
- 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-COozgrEk.js → p-w3AQrtBx.js} +1 -1
- package/dist/components/p-xA7AfoIW.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 +25 -8
- 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 +6 -5
- package/dist/esm/co-lightbox.entry.js +74 -9
- 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 +5 -4
- 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 +36 -6
- 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/popoverApi-Dp1JT0dm.js +25 -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/popoverApi.d.ts +12 -0
- package/dist/types/utils/richTextI18n.d.ts +4 -0
- package/package.json +5 -5
- 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-38eb2615.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-868d1a18.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-V7HYy0VO.js +0 -1
- package/dist/components/p-dnaee7fS.js +0 -1
- package/dist/components/p-wUXcJGdy.js +0 -1
- package/dist/esm/fieldChip-B2ctp2m6.js +0 -5
|
@@ -259,11 +259,14 @@
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
/* ---- Integrated action button (Botón variant) ---- */
|
|
262
|
+
/* Padding SIMÉTRICO, el mismo escalón que `co-button` square s (8/12) y que el lateral del
|
|
263
|
+
campo: con 8px del lado del ícono y 12 del otro, el ícono quedaba pegado al borde y el
|
|
264
|
+
botón se leía descentrado (2026-09-30). El lateral sigue a la talla del input (abajo). */
|
|
262
265
|
.co-input__action {
|
|
263
266
|
display: flex;
|
|
264
267
|
align-items: center;
|
|
265
268
|
gap: var(--co-spacing-sm);
|
|
266
|
-
padding: var(--co-spacing-sm2) var(--co-spacing-md)
|
|
269
|
+
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
267
270
|
background: var(--co-semantic-surface-primary);
|
|
268
271
|
color: var(--co-semantic-on-primary);
|
|
269
272
|
border: none;
|
|
@@ -300,6 +303,19 @@
|
|
|
300
303
|
align-items: center;
|
|
301
304
|
}
|
|
302
305
|
|
|
306
|
+
/* Lateral proporcional a la talla (el alto ya lo da la fila, que estira el botón al campo). */
|
|
307
|
+
.co-input--s .co-input__action {
|
|
308
|
+
padding-inline: var(--co-spacing-sm2);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.co-input--sm .co-input__action {
|
|
312
|
+
padding-inline: var(--co-spacing-sm2);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.co-input--lg .co-input__action {
|
|
316
|
+
padding-inline: var(--co-spacing-lg);
|
|
317
|
+
}
|
|
318
|
+
|
|
303
319
|
/* ---- Helper text ---- */
|
|
304
320
|
.co-input__helper {
|
|
305
321
|
display: flex;
|
|
@@ -369,24 +385,29 @@
|
|
|
369
385
|
align-items: center;
|
|
370
386
|
}
|
|
371
387
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
.co-input--
|
|
375
|
-
.co-input--
|
|
388
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
389
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
390
|
+
.co-input--success .co-input__status-icon { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
|
|
391
|
+
.co-input--error .co-input__status-icon { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
|
|
392
|
+
.co-input--warning .co-input__status-icon { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
|
|
393
|
+
.co-input--info .co-input__status-icon { color: var(--co-semantic-text-info, var(--co-semantic-status-info)); }
|
|
376
394
|
|
|
377
395
|
/* Error */
|
|
396
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
397
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico); el
|
|
398
|
+
halo sale de color-mix 12% (= el rgba(170, 46, 27, .12) de antes). Fallback: la primitiva de hoy. */
|
|
378
399
|
.co-input--error .co-input__field {
|
|
379
|
-
border-color: var(--co-semantic-status-error);
|
|
400
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
380
401
|
}
|
|
381
402
|
|
|
382
403
|
.co-input--error.co-input--focused .co-input__field {
|
|
383
|
-
border-color: var(--co-semantic-status-error);
|
|
384
|
-
box-shadow: 0 0 0 2px
|
|
404
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
405
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-semantic-border-error, var(--co-semantic-status-error)) 12%, transparent);
|
|
385
406
|
}
|
|
386
407
|
|
|
387
408
|
.co-input__helper--error .co-input__helper-icon,
|
|
388
409
|
.co-input__helper--error .co-input__helper-text {
|
|
389
|
-
color: var(--co-semantic-status-error);
|
|
410
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
390
411
|
}
|
|
391
412
|
|
|
392
413
|
/* Shake de validación (receta tdev): keyframe multi-segmento con easing POR STOP.
|
|
@@ -434,7 +455,7 @@
|
|
|
434
455
|
|
|
435
456
|
.co-input__helper--success .co-input__helper-icon,
|
|
436
457
|
.co-input__helper--success .co-input__helper-text {
|
|
437
|
-
color: var(--co-semantic-status-success);
|
|
458
|
+
color: var(--co-semantic-text-success, var(--co-semantic-status-success));
|
|
438
459
|
}
|
|
439
460
|
|
|
440
461
|
/* Warning — Figma uses estatus/en-revisión/in-review (#85571f) */
|
|
@@ -449,7 +470,7 @@
|
|
|
449
470
|
|
|
450
471
|
.co-input__helper--warning .co-input__helper-icon,
|
|
451
472
|
.co-input__helper--warning .co-input__helper-text {
|
|
452
|
-
color: var(--co-color-status-review);
|
|
473
|
+
color: var(--co-semantic-text-warning, var(--co-color-status-review));
|
|
453
474
|
}
|
|
454
475
|
|
|
455
476
|
/* Info */
|
|
@@ -464,12 +485,13 @@
|
|
|
464
485
|
|
|
465
486
|
.co-input__helper--info .co-input__helper-icon,
|
|
466
487
|
.co-input__helper--info .co-input__helper-text {
|
|
467
|
-
color: var(--co-semantic-status-info);
|
|
488
|
+
color: var(--co-semantic-text-info, var(--co-semantic-status-info));
|
|
468
489
|
}
|
|
469
490
|
|
|
491
|
+
/* Asterisco de requerido: tinta --co-semantic-text-error (gira con el tema). */
|
|
470
492
|
.co-field-required {
|
|
471
493
|
margin-left: 2px;
|
|
472
|
-
color: var(--co-color-status-error);
|
|
494
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
473
495
|
}
|
|
474
496
|
|
|
475
497
|
.co-field-required__caption {
|
|
@@ -497,7 +519,9 @@
|
|
|
497
519
|
============================================================ */
|
|
498
520
|
|
|
499
521
|
.co-input--fill .co-input__field {
|
|
500
|
-
|
|
522
|
+
/* surface-control = gray-100 en claro; gira en oscuro (con la primitiva el texto, en
|
|
523
|
+
text-default, quedaba blanco sobre la píldora clara). */
|
|
524
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
501
525
|
border: none;
|
|
502
526
|
box-shadow: none;
|
|
503
527
|
border-radius: 10px;
|
|
@@ -521,22 +545,24 @@
|
|
|
521
545
|
letter-spacing: var(--co-font-letter-spacing-body);
|
|
522
546
|
}
|
|
523
547
|
|
|
548
|
+
/* Placeholder, lupa y X en text-muted: gray-400 (= text-disabled) daba 2,6 sobre la píldora y no
|
|
549
|
+
son controles deshabilitados (auditoría 2026-09-27, §5). */
|
|
524
550
|
.co-input--fill .co-input__native::placeholder {
|
|
525
|
-
color: var(--co-
|
|
551
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
526
552
|
}
|
|
527
553
|
|
|
528
|
-
/* Search glyph
|
|
554
|
+
/* Search glyph */
|
|
529
555
|
.co-input--fill .co-input__icon {
|
|
530
|
-
color: var(--co-
|
|
556
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
531
557
|
}
|
|
532
558
|
|
|
533
|
-
/* Plain-x clear —
|
|
559
|
+
/* Plain-x clear — darkens on hover (text-secondary = gray-600 en claro; gira en oscuro) */
|
|
534
560
|
.co-input--fill .co-input__clear {
|
|
535
|
-
color: var(--co-
|
|
561
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
536
562
|
}
|
|
537
563
|
|
|
538
564
|
.co-input--fill .co-input__clear:hover {
|
|
539
|
-
color: var(--co-
|
|
565
|
+
color: var(--co-semantic-text-secondary, #585858);
|
|
540
566
|
}
|
|
541
567
|
|
|
542
568
|
/* No focus ring in pill mode — the design is a flat gray pill */
|
|
@@ -627,11 +653,12 @@
|
|
|
627
653
|
color: var(--co-semantic-text-muted);
|
|
628
654
|
}
|
|
629
655
|
|
|
630
|
-
/* xs: el prefijo hereda 12px/400 gray-600 (Figma)
|
|
656
|
+
/* xs: el prefijo hereda 12px/400 gray-600 (Figma) — por text-secondary, que es gray-600 en claro y
|
|
657
|
+
gira en oscuro. */
|
|
631
658
|
.co-input--xs .co-input__input-wrapper ::slotted([slot="prefix"]) {
|
|
632
659
|
font-size: var(--co-font-size-12);
|
|
633
660
|
font-weight: 400;
|
|
634
|
-
color: var(--co-
|
|
661
|
+
color: var(--co-semantic-text-secondary, #585858);
|
|
635
662
|
}
|
|
636
663
|
|
|
637
664
|
/* ---- --co-input-suffix-color: color configurable del slot suffix ----
|
|
@@ -36,9 +36,11 @@
|
|
|
36
36
|
cursor: default;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
40
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
39
41
|
.co-field-required {
|
|
40
42
|
margin-left: 2px;
|
|
41
|
-
color: var(--co-color-status-error);
|
|
43
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.co-field-required__caption {
|
|
@@ -146,20 +148,23 @@
|
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
/* ---- Invalid / error (internal JSON parse OR external status) ---- */
|
|
151
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
152
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico); el
|
|
153
|
+
halo sale de color-mix 12% (= el rgba(170, 46, 27, .12) de antes). Fallback: la primitiva de hoy. */
|
|
149
154
|
.co-json-field--invalid .co-json-field__field,
|
|
150
155
|
.co-json-field--error .co-json-field__field {
|
|
151
|
-
border-color: var(--co-semantic-status-error);
|
|
156
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
152
157
|
}
|
|
153
158
|
|
|
154
159
|
.co-json-field--invalid.co-json-field--focused .co-json-field__field,
|
|
155
160
|
.co-json-field--error.co-json-field--focused .co-json-field__field {
|
|
156
|
-
border-color: var(--co-semantic-status-error);
|
|
157
|
-
box-shadow: 0 0 0 2px
|
|
161
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
162
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-semantic-border-error, var(--co-semantic-status-error)) 12%, transparent);
|
|
158
163
|
}
|
|
159
164
|
|
|
160
165
|
.co-json-field__helper--error .co-json-field__helper-icon,
|
|
161
166
|
.co-json-field__helper--error .co-json-field__helper-text {
|
|
162
|
-
color: var(--co-semantic-status-error);
|
|
167
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
@@ -104,17 +104,17 @@ export class CoJsonField {
|
|
|
104
104
|
render() {
|
|
105
105
|
const helper = this.internalInvalid ? this.invalidMessage : this.helperText;
|
|
106
106
|
const statusClass = this.status !== 'default' ? `co-json-field--${this.status}` : '';
|
|
107
|
-
return (h("div", { key: '
|
|
107
|
+
return (h("div", { key: '3488016fe7b45678a0925275fd240b29107733e4', class: {
|
|
108
108
|
'co-json-field': true,
|
|
109
109
|
'co-json-field--disabled': this.disabled,
|
|
110
110
|
'co-json-field--focused': this.hasFocus,
|
|
111
111
|
'co-json-field--invalid': this.isInvalid,
|
|
112
112
|
[`co-json-field--${this.size}`]: true,
|
|
113
113
|
[statusClass]: !!statusClass,
|
|
114
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
114
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '46cac96bd27c532528d00ed9178dcd52c76b1fce', class: "co-json-field__labels" }, h("label", { key: '7ea63ec78e2c9637c5be2c9737f62e612473d567', class: "co-json-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'e0a6da86cfde978e7e1ae6bfd1a834967b6bb829', required: this.required })))), h("div", { key: '78e11d6f221bfe35bab6299be7c1f7c97bc3a05a', class: "co-json-field__field", part: "field" }, h("textarea", { key: '70eda7639839b0f83c85db5a6d40da2a0eb07ebf', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && h("input", { key: '6f0517a5284ac3eea2c6788cb0c64c630e6527d3', type: "hidden", name: this.name, value: this.draft }), helper && (h("div", { key: 'ff13e6ce9172d5c45230e0bc1d3231a232db1214', class: {
|
|
115
115
|
'co-json-field__helper': true,
|
|
116
116
|
'co-json-field__helper--error': this.isInvalid,
|
|
117
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
117
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '2db231d921b67b6c6ff7fd058e6903f6ffd99977', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), h("span", { key: 'af3dc5badb989c19bfaf960a09a63efff2f59308', class: "co-json-field__helper-text" }, helper)))));
|
|
118
118
|
}
|
|
119
119
|
static get is() { return "co-json-field"; }
|
|
120
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -153,7 +153,7 @@ export class CoKbd {
|
|
|
153
153
|
keyNodes.push(h("kbd", { class: "co-kbd__key", part: "key", key: `key-${index}` }, renderToken(token, iconSize)));
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
return (h("span", { key: '
|
|
156
|
+
return (h("span", { key: '539eee42201f514049f1a879f1cab901af375b79', class: {
|
|
157
157
|
'co-kbd': true,
|
|
158
158
|
[`co-kbd--${this.size}`]: true,
|
|
159
159
|
[`co-kbd--${this.surface}`]: true,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { langFromLocale } from "../../utils/dateI18n";
|
|
3
3
|
import { getLightboxStrings } from "../../utils/lightboxI18n";
|
|
4
|
+
import { openMediaInTab } from "./openInTab";
|
|
5
|
+
import { isPopoverOpen } from "../../utils/popoverApi";
|
|
4
6
|
const MIN_SCALE = 1;
|
|
5
7
|
const MAX_SCALE = 8;
|
|
6
8
|
const WHEEL_FACTOR = 1.15;
|
|
@@ -59,12 +61,12 @@ export class CoLightbox {
|
|
|
59
61
|
if (this.open) {
|
|
60
62
|
clearTimeout(this.demoteTimer);
|
|
61
63
|
try {
|
|
62
|
-
if (!root
|
|
64
|
+
if (!isPopoverOpen(root))
|
|
63
65
|
root.showPopover();
|
|
64
66
|
}
|
|
65
67
|
catch ( /* not connected yet — the ref call retries */_a) { /* not connected yet — the ref call retries */ }
|
|
66
68
|
}
|
|
67
|
-
else if (root
|
|
69
|
+
else if (isPopoverOpen(root)) {
|
|
68
70
|
// Let the opacity fade-out run before display:none kicks in.
|
|
69
71
|
clearTimeout(this.demoteTimer);
|
|
70
72
|
this.demoteTimer = setTimeout(() => {
|
|
@@ -189,10 +191,10 @@ export class CoLightbox {
|
|
|
189
191
|
this.dragging = false;
|
|
190
192
|
(_a = this.imgEl) === null || _a === void 0 ? void 0 : _a.releasePointerCapture(e.pointerId);
|
|
191
193
|
};
|
|
194
|
+
/** Pestaña con el medio pintado en un <img>/<video> propio: navegar a la URL
|
|
195
|
+
* descargaba el archivo cuando el servidor no lo sirve como imagen. */
|
|
192
196
|
this.openOriginal = () => {
|
|
193
|
-
|
|
194
|
-
if (img === null || img === void 0 ? void 0 : img.src)
|
|
195
|
-
window.open(img.src, '_blank', 'noopener');
|
|
197
|
+
openMediaInTab(this.parsedImages[this.index]);
|
|
196
198
|
};
|
|
197
199
|
this.stop = (e) => e.stopPropagation();
|
|
198
200
|
}
|
|
@@ -496,7 +498,7 @@ export class CoLightbox {
|
|
|
496
498
|
const counter = s.counter
|
|
497
499
|
.replace('{i}', String(this.index + 1))
|
|
498
500
|
.replace('{n}', String(imgs.length));
|
|
499
|
-
return (h("div", { key: '
|
|
501
|
+
return (h("div", { key: '0e6491fbe0eb9515df66d167abb555ee00d68a07', class: { 'co-lightbox': true, 'co-lightbox--open': this.open }, part: "overlay", role: "dialog", "aria-modal": "true", "aria-label": img === null || img === void 0 ? void 0 : img.alt, popover: "manual", ref: this.syncTopLayer, onClick: this.requestClose }, img && (h("div", { key: '799faaab6bb3504d723732d47618d2489ff9eae4', class: "co-lightbox__toolbar", part: "toolbar", onClick: this.stop }, h("span", { key: 'a9fe7f715cb0b76c4c411514ab872f45022be9ed', class: "co-lightbox__caption", title: img.alt }, img.alt), !video && (h("div", { key: '9e0df923dd41bfaa5ed3ba28538e170529a19823', class: "co-lightbox__zoom" }, h("button", { key: 'c56a015724fe92be890e6d2681e552c303c02b0a', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomOut, title: s.zoomOut, onClick: () => this.zoomAt(this.scale / WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: '6b84a1dac161507d4084fba067aa1d2b4bfea5ea', name: "minus", size: 16 })), h("button", { key: '0e4747500888c3bb7a35dbe490d936de053f1a0c', class: "co-lightbox__btn co-lightbox__zoom-value", type: "button", "aria-label": s.zoomReset, title: s.zoomReset, onClick: () => this.resetView() }, Math.round(this.scale * 100), "%"), h("button", { key: '52d89aa312e2eacf96072dd1f4b14f04a5966e81', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomIn, title: s.zoomIn, onClick: () => this.zoomAt(this.scale * WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: 'a32b55340d8027b57595c097d992de88b5cd8799', name: "plus", size: 16 })))), h("button", { key: 'f138d46223ac0db43b3ce037f323bb5f226260a9', class: "co-lightbox__btn", type: "button", "aria-label": s.openOriginal, title: s.openOriginal, onClick: this.openOriginal }, h("co-icon", { key: 'e39089e43b1178eb20bce0647c7b3f19e0c58110', name: "arrow-square-out", size: 16 })), h("button", { key: 'c52ebe7347d11c0c1416978002cc2b67ffc94a25', class: "co-lightbox__btn", part: "close", type: "button", "aria-label": s.close, title: s.close, ref: (el) => (this.closeBtnEl = el), onClick: this.requestClose }, h("co-icon", { key: 'bb3e0aac0dfa10c8b5de5cb54bd7601a8ae66dec', name: "x", size: 16 })))), img && (h("div", { key: '3597bd31e1b65efbb2c02cb55dbacf0ec43d7639', class: "co-lightbox__stage", ref: (el) => (this.stageEl = el), onWheel: video ? undefined : this.handleWheel }, video ? (h("co-video", { class: "co-lightbox__video", part: "video",
|
|
500
502
|
/* Keyed per slide: a fresh player is the only way to be sure
|
|
501
503
|
poster, error state and playback all start clean. */
|
|
502
504
|
key: `video-${this.index}`, ref: this.mountPlayer, src: img.src, poster: img.poster || '', aspectRatio: "auto", rounded: "none",
|
|
@@ -506,13 +508,13 @@ export class CoLightbox {
|
|
|
506
508
|
'co-lightbox__img': true,
|
|
507
509
|
'co-lightbox__img--zoomed': this.scale > MIN_SCALE,
|
|
508
510
|
'co-lightbox__img--dragging': this.dragging,
|
|
509
|
-
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp })))), img && multi && (h("button", { key: '
|
|
511
|
+
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp })))), img && multi && (h("button", { key: '5185685a016df10825bd2ddd4479c074ab88b9e4', class: "co-lightbox__nav co-lightbox__nav--prev", part: "prev", type: "button", "aria-label": s.prevImage, title: s.prevImage, onClick: (e) => {
|
|
510
512
|
e.stopPropagation();
|
|
511
513
|
this.goTo(-1);
|
|
512
|
-
} }, h("co-icon", { key: '
|
|
514
|
+
} }, h("co-icon", { key: 'ff3d9a5e57dc9e74ef29c9ee8696040f46a295f2', name: "caret-left", size: 24 }))), img && multi && (h("button", { key: '33eaec6709a4f22490ff56c93a32de332c6adc65', class: "co-lightbox__nav co-lightbox__nav--next", part: "next", type: "button", "aria-label": s.nextImage, title: s.nextImage, onClick: (e) => {
|
|
513
515
|
e.stopPropagation();
|
|
514
516
|
this.goTo(1);
|
|
515
|
-
} }, h("co-icon", { key: '
|
|
517
|
+
} }, h("co-icon", { key: '1631e46b4d05c2f1495842adb2a6e524dc67b47d', name: "caret-right", size: 24 }))), img && multi && (h("div", { key: 'cf751691f9dffb1325c9a5183b1cca2c01bd28c4', class: "co-lightbox__counter", part: "counter", onClick: this.stop }, counter))));
|
|
516
518
|
}
|
|
517
519
|
static get is() { return "co-lightbox"; }
|
|
518
520
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* «Abrir original» del visor: abre una pestaña y MUESTRA el medio dentro de un
|
|
3
|
+
* `<img>`/`<video>` propio, en vez de navegar a la URL del archivo.
|
|
4
|
+
*
|
|
5
|
+
* Navegar directo dependía de cómo el servidor sirve el archivo: guardado sin
|
|
6
|
+
* tipo (`application/octet-stream`, típico de un nombre sin extensión) o con
|
|
7
|
+
* `Content-Disposition: attachment`, el navegador lo DESCARGA en vez de
|
|
8
|
+
* mostrarlo — «a veces abre, a veces descarga». Un `<img>` detecta el tipo por
|
|
9
|
+
* el contenido e ignora la disposición, así que siempre se ve.
|
|
10
|
+
*
|
|
11
|
+
* `original` (el archivo guardado) gana sobre `src` (a veces solo la miniatura);
|
|
12
|
+
* si el original no es decodificable como imagen (un PDF con miniatura), cae a
|
|
13
|
+
* `src` una vez. La pestaña nace en `about:blank` (mismo origen, por eso se
|
|
14
|
+
* puede escribir) y se le corta `opener` enseguida: el contenido se arma con
|
|
15
|
+
* APIs del DOM, nunca con un string de HTML.
|
|
16
|
+
*
|
|
17
|
+
* @returns false si no hay qué abrir o el navegador bloqueó la pestaña.
|
|
18
|
+
*/
|
|
19
|
+
export function openMediaInTab(item, open = defaultOpen) {
|
|
20
|
+
const primary = (item === null || item === void 0 ? void 0 : item.original) || (item === null || item === void 0 ? void 0 : item.src);
|
|
21
|
+
if (!item || !primary)
|
|
22
|
+
return false;
|
|
23
|
+
const win = open('', '_blank');
|
|
24
|
+
if (!win)
|
|
25
|
+
return false;
|
|
26
|
+
try {
|
|
27
|
+
win.opener = null;
|
|
28
|
+
}
|
|
29
|
+
catch (_a) {
|
|
30
|
+
/* opener de solo lectura en algún navegador: seguimos, el contenido es nuestro */
|
|
31
|
+
}
|
|
32
|
+
renderViewer(win.document, item, primary);
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function renderViewer(doc, item, primary) {
|
|
36
|
+
var _a;
|
|
37
|
+
doc.title = item.alt || '';
|
|
38
|
+
if (!doc.body)
|
|
39
|
+
return;
|
|
40
|
+
// Sin hojas de estilo en about:blank: colores de SISTEMA (Canvas) con esquema
|
|
41
|
+
// oscuro, no hex — el fondo neutro de un visor de imagen.
|
|
42
|
+
doc.body.style.cssText =
|
|
43
|
+
'margin:0;min-height:100vh;display:grid;place-items:center;color-scheme:dark;background:Canvas;color:CanvasText';
|
|
44
|
+
const video = item.kind === 'video';
|
|
45
|
+
const media = doc.createElement(video ? 'video' : 'img');
|
|
46
|
+
media.style.cssText = 'max-width:100vw;max-height:100vh;object-fit:contain';
|
|
47
|
+
media.setAttribute('src', primary);
|
|
48
|
+
if (video) {
|
|
49
|
+
media.setAttribute('controls', '');
|
|
50
|
+
if (item.poster)
|
|
51
|
+
media.setAttribute('poster', item.poster);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
media.setAttribute('alt', item.alt || '');
|
|
55
|
+
if (item.src && item.src !== primary) {
|
|
56
|
+
(_a = media.addEventListener) === null || _a === void 0 ? void 0 : _a.call(media, 'error', () => media.setAttribute('src', item.src), { once: true });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
doc.body.appendChild(media);
|
|
60
|
+
}
|
|
61
|
+
function defaultOpen(url, target) {
|
|
62
|
+
return window.open(url, target);
|
|
63
|
+
}
|
|
@@ -20,7 +20,7 @@ export class CoListFooter {
|
|
|
20
20
|
this.handleSecondary = () => this.coSecondary.emit();
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'f227ef139bd7ed9b2c7eefebe9a7194c75694596', class: "co-list-footer", part: "footer" }, this.secondaryLabel && (h("button", { key: '459553f0b7c9d20b3536c7f28c6b655f09f7d448', class: "co-list-footer__btn co-list-footer__btn--secondary", type: "button", onClick: this.handleSecondary }, this.secondaryIcon && h("co-icon", { key: '40905e01acf2347e07940e5ec893974d159139a0', name: this.secondaryIcon, size: 16 }), h("span", { key: '5caa7cbd563e8c38ecbf3242a124d83f6e5b3829' }, this.secondaryLabel))), this.primaryLabel && (h("button", { key: '09e2b1a1e6a6adbbdbdbf0b7c6779f32e20d8dcf', class: "co-list-footer__btn co-list-footer__btn--primary", type: "button", onClick: this.handlePrimary }, this.primaryIcon && h("co-icon", { key: '328b81742184a712e160c2fb5c4e3bf9e0f7761b', name: this.primaryIcon, size: 16 }), h("span", { key: '8c77b5bfa44685fe9dfd845a71c0f9184c7eec65' }, this.primaryLabel))), h("slot", { key: 'c314355a70087a7135b2d70f3fa3c3e1c5e70545' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "co-list-footer"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,21 +73,21 @@ export class CoListItem {
|
|
|
73
73
|
requestAnimationFrame(this.measureTruncation);
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: 'a6c32a19bfad00a58ee718c6b11b7ea6e6222ffb', class: {
|
|
77
77
|
'co-list-item': true,
|
|
78
78
|
'co-list-item--selected': this.selected,
|
|
79
79
|
'co-list-item--disabled': this.disabled,
|
|
80
80
|
'co-list-item--dense': this.dense,
|
|
81
81
|
'co-list-item--has-description': !!this.description,
|
|
82
|
-
}, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '
|
|
82
|
+
}, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '35148e2d084823aae32c843d2e208abeba6a5663', class: "co-list-item__prefix" }, this.icon && h("co-icon", { key: 'e23961cd6206752f13d4330f993f4bf529f479fc', name: this.icon, size: 18 }), h("slot", { key: 'e8ade00ebb148ac3d78a78de713fdbdc58158ecd', name: "prefix" })), h("div", { key: 'b8a49675857105a7680a074eb33f0b620f2d4e44', class: "co-list-item__content" }, this.label && (h("co-tooltip", { key: 'fbe492a5506bea83b43c79cf556379dd0c6b73ea', block: true, class: "co-list-item__tip", content: this.label, placement: "top", disabled: !this.labelTruncated }, h("span", { key: 'c1d5ba3dec85c410881044124bdd3668ded0c564', class: "co-list-item__label", ref: (el) => {
|
|
83
83
|
this.labelEl = el;
|
|
84
84
|
if (el && this.ro)
|
|
85
85
|
this.ro.observe(el);
|
|
86
|
-
} }, this.label))), this.description && (h("co-tooltip", { key: '
|
|
86
|
+
} }, this.label))), this.description && (h("co-tooltip", { key: '08d220de3fe6bcd4b6d550ca0b61ab049a263957', block: true, class: "co-list-item__tip", content: this.description, placement: "top", disabled: !this.descTruncated }, h("span", { key: '8e83073268550e77f38011fabc2a1bd716f8bd15', class: "co-list-item__description", ref: (el) => {
|
|
87
87
|
this.descEl = el;
|
|
88
88
|
if (el && this.ro)
|
|
89
89
|
this.ro.observe(el);
|
|
90
|
-
} }, this.description))), h("slot", { key: '
|
|
90
|
+
} }, this.description))), h("slot", { key: '1dfafc14b3fbf0853968b768c6c26f830c5ec124' })), h("span", { key: '6805f9644de89d654d26036a40e4b407292c6ea6', class: "co-list-item__suffix" }, h("slot", { key: '7da172a7a0dda9707b8d08fdc522aef2e79ddbc0', name: "suffix" }))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "co-list-item"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,13 +30,13 @@ export class CoMediaThumb {
|
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
32
|
var _a;
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '9700fd32e12db56cf8f0fc7cb81cc56a5aa6d65d', class: {
|
|
34
34
|
'co-media-thumb': true,
|
|
35
35
|
'co-media-thumb--video': this.video,
|
|
36
36
|
}, part: "thumb", style: {
|
|
37
37
|
height: this.toCss(this.height),
|
|
38
38
|
borderRadius: `${this.radius}px`,
|
|
39
|
-
} }, this.src ? (h("img", { class: "co-media-thumb__img", src: this.src, alt: (_a = this.alt) !== null && _a !== void 0 ? _a : '', part: "img" })) : (h("slot", null)), this.video && (h("div", { key: '
|
|
39
|
+
} }, this.src ? (h("img", { class: "co-media-thumb__img", src: this.src, alt: (_a = this.alt) !== null && _a !== void 0 ? _a : '', part: "img" })) : (h("slot", null)), this.video && (h("div", { key: 'ad75fbbb3f3086655e6e4eea20d61088c075c892', class: "co-media-thumb__scrim", part: "scrim" }, h("div", { key: '7d5d63d5228b2c724ec2fd59680256f24fc68a00', class: "co-media-thumb__play", part: "play" }, h("svg", { key: '5b669727dc75fc95c63444e0875928a6197c40ec', class: "co-media-thumb__play-icon", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", "aria-hidden": "true" }, h("path", { key: 'f17ffe84152c1af2277832b0977f21dacc1f1bc7', d: "M2 2l12 7-12 7z", fill: "var(--co-color-base-negro, #1f1c1b)" })))))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "co-media-thumb"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,6 +86,13 @@
|
|
|
86
86
|
--co-menu-item-color: var(--co-semantic-text-inverse);
|
|
87
87
|
--co-menu-item-hover-bg: var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));
|
|
88
88
|
--co-menu-item-selected-bg: transparent;
|
|
89
|
+
/* Submenú: su panel vive en el shadow del ítem disparador y sus filas son
|
|
90
|
+
hijas de ese ítem, así que heredan el texto claro de arriba. El panel
|
|
91
|
+
también tiene que ser oscuro (si no: texto blanco sobre panel blanco, el
|
|
92
|
+
submenú se ve vacío), y sus separadores con el mismo color que los del
|
|
93
|
+
panel raíz. */
|
|
94
|
+
--co-menu-submenu-bg: var(--co-semantic-surface-primary);
|
|
95
|
+
--co-menu-divider-color: var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
:host([surface='dark']) ::slotted(co-menu-divider) {
|
|
@@ -163,14 +163,14 @@ export class CoMenu {
|
|
|
163
163
|
(_b = (_a = items[next]) === null || _a === void 0 ? void 0 : _a.focusItem) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
|
-
return (h("co-popover", { key: '
|
|
166
|
+
return (h("co-popover", { key: '41f0d2432b04182a1d0021510b27ee8ed902fe7a', placement: this.placement, offset: this.offset, open: this.open, anchor: this.anchor, shift: this.shift,
|
|
167
167
|
// `co-menu` SIEMPRE pinta su propio chrome (`.co-menu`: fondo +
|
|
168
168
|
// shadow-lg + anillo, o el panel sólido de `surface="dark"`) — el
|
|
169
169
|
// `co-popover` interno tiene que ir SIEMPRE bare, sin condición, para
|
|
170
170
|
// no sumarle un fondo/borde/sombra propios detrás (antes de esto el
|
|
171
171
|
// panel del menú tenía doble
|
|
172
172
|
// chrome SIEMPRE, no solo en un caso opcional).
|
|
173
|
-
bare: true, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose, onCoPlacement: this.handlePlacement }, h("slot", { key: '
|
|
173
|
+
bare: true, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose, onCoPlacement: this.handlePlacement }, h("slot", { key: 'a45e0b41289cfecd6bdb47eb31620136e3e037c7', name: "trigger", slot: "trigger" }), h("div", { key: 'c085991353c461adbed052de7d657f2082da5432', class: "co-menu", role: "menu", style: this.width ? { width: this.width, minWidth: this.width } : undefined }, h("slot", { key: 'c839a7ac6c8ea39336a552e4f5165aab5a8d5682' }))));
|
|
174
174
|
}
|
|
175
175
|
static get is() { return "co-menu"; }
|
|
176
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { h } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class CoMenuDivider {
|
|
8
8
|
render() {
|
|
9
|
-
return h("hr", { key: '
|
|
9
|
+
return h("hr", { key: 'dda726a648ff2ee1158dcdd11cc0b27048fb2350', class: "co-menu-divider", role: "separator" });
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "co-menu-divider"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,9 @@
|
|
|
71
71
|
quedan ACÁ, antes de `--danger:hover` (misma especificidad que
|
|
72
72
|
`.co-menu-item:hover`): el hover rojo de danger gana por orden (fix C-1). */
|
|
73
73
|
.co-menu-item--selected {
|
|
74
|
-
|
|
74
|
+
/* Fallback surface-control (= gray-100 en claro): la primitiva no giraba y en oscuro la
|
|
75
|
+
fila seleccionada quedaba casi blanca bajo texto blanco (D6). */
|
|
76
|
+
background: var(--co-menu-item-selected-bg, var(--co-semantic-surface-control, #f6f6f6));
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.co-menu-item:hover,
|
|
@@ -90,11 +92,17 @@
|
|
|
90
92
|
pointer-events: none;
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
96
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
93
97
|
.co-menu-item--danger {
|
|
94
|
-
color: var(--co-color-status-error, #aa2e1b);
|
|
98
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error, #aa2e1b));
|
|
95
99
|
}
|
|
96
100
|
.co-menu-item--danger:hover {
|
|
97
|
-
|
|
101
|
+
/* Superficie de estado que gira con el tema (D4): en claro = status-bg-error (el pastel de
|
|
102
|
+
siempre) con tinta status-error; en oscuro, tinte rojo oscuro con tinta rosa clara. El
|
|
103
|
+
pastel fijo era una caja rosa clara dentro del menú oscuro. */
|
|
104
|
+
background: var(--co-semantic-surface-error, var(--co-color-status-bg-error, #ffefef));
|
|
105
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error, #aa2e1b));
|
|
98
106
|
}
|
|
99
107
|
|
|
100
108
|
.co-menu-item__icon {
|
|
@@ -170,13 +178,17 @@
|
|
|
170
178
|
}
|
|
171
179
|
|
|
172
180
|
.co-menu-item__submenu {
|
|
173
|
-
/* surface-secondary = base-blanco. NOT surface-primary (that's base-negro).
|
|
174
|
-
|
|
181
|
+
/* surface-secondary = base-blanco. NOT surface-primary (that's base-negro).
|
|
182
|
+
`--co-menu-submenu-bg`: hook que publica `co-menu surface="dark"` (ver
|
|
183
|
+
co-menu.css) para que el submenú sea oscuro como su panel raíz. Sin
|
|
184
|
+
ancestro oscuro, el panel claro de siempre. */
|
|
185
|
+
background: var(--co-menu-submenu-bg, var(--co-semantic-surface-secondary, #fff));
|
|
175
186
|
border-radius: var(--co-border-radius-sm, 12px);
|
|
176
|
-
/* Match the co-menu panel: shadow-lg + 1px inset hairline ring.
|
|
187
|
+
/* Match the co-menu panel: shadow-lg + 1px inset hairline ring. El anillo va por
|
|
188
|
+
border-subtle (= opacity-negro-8 en claro); la primitiva no se veía en oscuro. */
|
|
177
189
|
box-shadow:
|
|
178
190
|
var(--co-shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04)),
|
|
179
|
-
inset 0 0 0 1px var(--co-
|
|
191
|
+
inset 0 0 0 1px var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
180
192
|
padding: var(--co-menu-padding, var(--co-spacing-xs, 4px));
|
|
181
193
|
min-width: 180px;
|
|
182
194
|
display: flex;
|
|
@@ -114,6 +114,9 @@
|
|
|
114
114
|
display: flex;
|
|
115
115
|
flex-direction: column;
|
|
116
116
|
background: var(--co-semantic-surface-secondary);
|
|
117
|
+
/* Tinta pareja con el fondo: el panel vive dentro del scrim de co-overlay
|
|
118
|
+
(top layer) y lo que no declara color propio no debe heredar el contexto. */
|
|
119
|
+
color: var(--co-semantic-text-default);
|
|
117
120
|
/* Squircle + sombra: .co-sq-clip y .co-sq-elevation en ESTE elemento
|
|
118
121
|
(partial). No redeclarar border-radius / overflow / mask / box-shadow acá.
|
|
119
122
|
Radius knob: --co-modal-r. */
|
|
@@ -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
|
import { clampDragOffset, dragOffsetOf, isInteractiveDragTarget, } from "../../utils/dragMove";
|
|
5
6
|
/**
|
|
@@ -236,9 +237,12 @@ export class CoModal {
|
|
|
236
237
|
return this.backdrop !== 'none' && !this.inline;
|
|
237
238
|
}
|
|
238
239
|
handleKeydown(e) {
|
|
239
|
-
|
|
240
|
+
// Solo la capa de ARRIBA atiende Escape (escapeLayers): un modal sobre otro modal cierra
|
|
241
|
+
// solo el de encima. Sin `closeOnEscape` el modal igual es capa: la tecla no cae al
|
|
242
|
+
// drawer de abajo.
|
|
243
|
+
if (!this.open || !this.closeOnEscape || e.key !== 'Escape')
|
|
240
244
|
return;
|
|
241
|
-
if (
|
|
245
|
+
if (isTopEscapeLayer(this))
|
|
242
246
|
this.coClose.emit();
|
|
243
247
|
}
|
|
244
248
|
/**
|
|
@@ -251,6 +255,9 @@ export class CoModal {
|
|
|
251
255
|
*/
|
|
252
256
|
async bringToFront() {
|
|
253
257
|
var _a, _b, _c;
|
|
258
|
+
// Arriba en pantalla = arriba también para Escape.
|
|
259
|
+
if (this.open)
|
|
260
|
+
pushEscapeLayer(this);
|
|
254
261
|
await ((_c = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('co-overlay')) === null || _b === void 0 ? void 0 : _b.bringToFront) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
255
262
|
}
|
|
256
263
|
/**
|
|
@@ -260,6 +267,16 @@ export class CoModal {
|
|
|
260
267
|
* animación de salida (un consumidor que lo deja montado y solo apaga
|
|
261
268
|
* `open` lo veía saltar).
|
|
262
269
|
*/
|
|
270
|
+
trackEscapeLayer(open) {
|
|
271
|
+
if (open)
|
|
272
|
+
pushEscapeLayer(this);
|
|
273
|
+
else
|
|
274
|
+
removeEscapeLayer(this);
|
|
275
|
+
}
|
|
276
|
+
connectedCallback() {
|
|
277
|
+
if (this.open)
|
|
278
|
+
pushEscapeLayer(this);
|
|
279
|
+
}
|
|
263
280
|
resetPositionOnOpen(open) {
|
|
264
281
|
this.endDrag();
|
|
265
282
|
if (!open)
|
|
@@ -268,6 +285,7 @@ export class CoModal {
|
|
|
268
285
|
this.writeOffset({ x: 0, y: 0 });
|
|
269
286
|
}
|
|
270
287
|
disconnectedCallback() {
|
|
288
|
+
removeEscapeLayer(this);
|
|
271
289
|
// Desmontarse en pleno gesto no debe dejar el listener colgado.
|
|
272
290
|
window.removeEventListener('blur', this.handleWindowBlur);
|
|
273
291
|
}
|
|
@@ -743,6 +761,9 @@ export class CoModal {
|
|
|
743
761
|
static get elementRef() { return "el"; }
|
|
744
762
|
static get watchers() {
|
|
745
763
|
return [{
|
|
764
|
+
"propName": "open",
|
|
765
|
+
"methodName": "trackEscapeLayer"
|
|
766
|
+
}, {
|
|
746
767
|
"propName": "open",
|
|
747
768
|
"methodName": "resetPositionOnOpen"
|
|
748
769
|
}];
|