@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
|
@@ -27,9 +27,11 @@
|
|
|
27
27
|
padding: 0 var(--co-spacing-xs);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
31
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
30
32
|
.co-field-required {
|
|
31
33
|
margin-left: 2px;
|
|
32
|
-
color: var(--co-color-status-error);
|
|
34
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.co-field-required__caption {
|
|
@@ -79,8 +81,11 @@
|
|
|
79
81
|
font-size: var(--co-font-size-16);
|
|
80
82
|
}
|
|
81
83
|
|
|
84
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
85
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
86
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
82
87
|
.co-phone-field--error .co-phone-field__container {
|
|
83
|
-
border-color: var(--co-color-status-error);
|
|
88
|
+
border-color: var(--co-semantic-border-error, var(--co-color-status-error));
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
.co-phone-field__container:focus-within {
|
|
@@ -259,7 +264,7 @@
|
|
|
259
264
|
}
|
|
260
265
|
|
|
261
266
|
.co-phone-field--error .co-phone-field__helper {
|
|
262
|
-
color: var(--co-semantic-status-error);
|
|
267
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
263
268
|
}
|
|
264
269
|
|
|
265
270
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { RequiredMark } from "../../utils/requiredMark";
|
|
3
3
|
import { DIAL_CODES, DIAL_CODE_MAP } from "./dial-codes";
|
|
4
4
|
import { highlightSegments, rankByMatch } from "../../utils/normalizeText";
|
|
5
|
+
import { getPhoneStrings } from "../../utils/phoneI18n";
|
|
5
6
|
/**
|
|
6
7
|
* Phone input with country code indicator. Composes a country selector
|
|
7
8
|
* (flag + dial code) alongside a free-form phone number input.
|
|
@@ -33,6 +34,18 @@ export class CoPhoneField {
|
|
|
33
34
|
this.numberPart = '';
|
|
34
35
|
this.isOpen = false;
|
|
35
36
|
this.searchQuery = '';
|
|
37
|
+
/**
|
|
38
|
+
* A flag that 404s (or that flagcdn throttles) used to render Chrome's torn-image
|
|
39
|
+
* icon in every row. The box is kept — hiding it instead of removing it stops the
|
|
40
|
+
* list from reflowing — and the country name and dial code carry the meaning, so
|
|
41
|
+
* nothing is lost. Mutating the node directly is deliberate: a `@State` set would
|
|
42
|
+
* re-render the whole 198-row list once per failed image.
|
|
43
|
+
*/
|
|
44
|
+
this.hideBrokenFlag = (ev) => {
|
|
45
|
+
const img = ev.target;
|
|
46
|
+
if (img)
|
|
47
|
+
img.style.visibility = 'hidden';
|
|
48
|
+
};
|
|
36
49
|
this.handleOutsideClick = (e) => {
|
|
37
50
|
if (!this.isOpen)
|
|
38
51
|
return;
|
|
@@ -99,6 +112,9 @@ export class CoPhoneField {
|
|
|
99
112
|
get hasCountry() {
|
|
100
113
|
return !!this.selectedIso2 && !!this.selectedEntry;
|
|
101
114
|
}
|
|
115
|
+
get strings() {
|
|
116
|
+
return getPhoneStrings(this.locale);
|
|
117
|
+
}
|
|
102
118
|
get statusIcon() {
|
|
103
119
|
const map = {
|
|
104
120
|
error: 'warning-circle',
|
|
@@ -159,7 +175,7 @@ export class CoPhoneField {
|
|
|
159
175
|
render() {
|
|
160
176
|
const entry = this.selectedEntry;
|
|
161
177
|
const statusClass = this.status !== 'default' ? `co-phone-field--${this.status}` : '';
|
|
162
|
-
return (h("div", { key: '
|
|
178
|
+
return (h("div", { key: '8c960a1db186c84921d1062f3a81dac55d36be90', class: `co-phone-field co-phone-field--${this.size} ${statusClass} ${this.disabled ? 'co-phone-field--disabled' : ''}` }, this.label && (h("label", { key: 'c19628c6057b6314a7dca1aeac5c8e201d2c20c0', class: "co-phone-field__label" }, this.label, h(RequiredMark, { key: 'e070c5a69e9064d61ca6fb6fd1d5fca6944f8a36', required: this.required }))), h("div", { key: '69e52a3489ddc693271a2eff7b63e7a3f6ffee9b', class: "co-phone-field__container" }, h("button", { key: '1b0998e28fb0f0aa0ab64443adceea96355483e5', type: "button", class: "co-phone-field__selector", disabled: this.disabled, onClick: () => this.handleToggleDropdown(), "aria-expanded": String(this.isOpen), "aria-haspopup": "listbox", "aria-label": entry ? `${this.strings.selectCountry}: ${entry.name} ${entry.dialCode}` : this.strings.selectCountry }, entry ? (h("img", { class: "co-phone-field__flag", src: `https://flagcdn.com/w40/${entry.iso2.toLowerCase()}.png`, alt: "", decoding: "async", onError: this.hideBrokenFlag })) : (h("co-icon", { name: "phone", size: 16 })), h("span", { key: '5f2f173697b6e659b729547eb44372efbdebf0de', class: "co-phone-field__dial-code" }, entry ? entry.dialCode : ''), h("span", { key: 'd0ad9d09fd06c9ab4385b6b10fd335429d2b2782', class: "co-phone-field__chevron" }, h("co-icon", { key: '6ef136322e4fcada10e924d25beff2ff3699a0d9', name: "caret-down", size: 14 }))), h("input", { key: 'b5d77691bbd9638a3868e82a243c1106e3167384', class: "co-phone-field__input", type: "tel", placeholder: this.placeholder, value: this.numberPart, disabled: this.disabled, onInput: (e) => this.handleNumberInput(e) })), this.isOpen && (h("div", { key: 'c9310ebc76fb76f4ad7b3f460199131e89238129', class: "co-phone-field__dropdown", role: "listbox" }, h("div", { key: '2b103381c88331f86dd0cd941b5d7dc102d60cfa', class: "co-phone-field__search" }, h("input", { key: '3152d3842b4db1f2f75b36c8c16933a115af75b5', class: "co-phone-field__search-input", type: "text", placeholder: this.strings.searchPlaceholder, value: this.searchQuery, onInput: (e) => this.handleSearchInput(e), autoFocus: true })), h("div", { key: '0b5fdd035243c03563e956b7c6e8b189e3fac976', class: "co-phone-field__options" }, this.filteredCountries.map((d) => (h("button", { type: "button", key: d.iso2, class: `co-phone-field__option ${d.iso2 === this.selectedIso2 ? 'co-phone-field__option--selected' : ''}`, role: "option", "aria-selected": d.iso2 === this.selectedIso2 ? 'true' : 'false', onClick: () => this.handleCountrySelect(d) }, h("img", { class: "co-phone-field__option-flag", src: `https://flagcdn.com/w40/${d.iso2.toLowerCase()}.png`, alt: "", loading: "lazy", decoding: "async", onError: this.hideBrokenFlag }), h("span", { class: "co-phone-field__option-name" }, this.renderName(d.name)), h("span", { class: "co-phone-field__option-code" }, d.dialCode))))))), this.helperText && (h("div", { key: '49841fcec083d7d619c699cdc5a236dcdf5cb214', class: "co-phone-field__helper" }, this.statusIcon && (h("co-icon", { key: 'c0e2d6641adcd3bea675e1b78a6d982f75ef56df', name: this.statusIcon, size: 14, weight: "fill", class: "co-phone-field__helper-icon" })), h("span", { key: '305562aeba6e0169b0f1b23f504c5f686413cb79', class: "co-phone-field__helper-text" }, this.helperText)))));
|
|
163
179
|
}
|
|
164
180
|
static get is() { return "co-phone-field"; }
|
|
165
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -372,6 +388,25 @@ export class CoPhoneField {
|
|
|
372
388
|
"reflect": false,
|
|
373
389
|
"attribute": "default-country",
|
|
374
390
|
"defaultValue": "''"
|
|
391
|
+
},
|
|
392
|
+
"locale": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string | undefined",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": true,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "BCP-47 locale for the built-in UI strings (es/en/pt)."
|
|
405
|
+
},
|
|
406
|
+
"getter": false,
|
|
407
|
+
"setter": false,
|
|
408
|
+
"reflect": false,
|
|
409
|
+
"attribute": "locale"
|
|
375
410
|
}
|
|
376
411
|
};
|
|
377
412
|
}
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
opacity: 0;
|
|
51
51
|
transform: scale(0.97);
|
|
52
52
|
background: var(--co-semantic-surface-page, #fff);
|
|
53
|
+
/* Tinta pareja con SU fondo: la UA de [popover] pone `color: CanvasText`
|
|
54
|
+
(#000 también en oscuro), y heredar del disparador fallaría dentro de un
|
|
55
|
+
contexto inverso (navbar oscuro: blanco sobre el panel blanco). */
|
|
56
|
+
color: var(--co-semantic-text-default);
|
|
53
57
|
/* Variables con el default de siempre como
|
|
54
58
|
fallback — sin --co-popover-border-color/--co-popover-shadow, cero
|
|
55
59
|
cambio visual. */
|
|
@@ -60,6 +60,7 @@ export class CoPopover {
|
|
|
60
60
|
this.closing = false;
|
|
61
61
|
/** El trigger se vio al menos una vez desde que abrió (ver `updatePosition`). */
|
|
62
62
|
this.anchorSeenVisible = false;
|
|
63
|
+
this.keepSide = false;
|
|
63
64
|
this.scrollParents = [];
|
|
64
65
|
// Cached offset ancestor + a flag to distinguish "not computed yet" from
|
|
65
66
|
// "computed and there is none". Avoids re-walking the DOM + calling
|
|
@@ -169,13 +170,20 @@ export class CoPopover {
|
|
|
169
170
|
// computePosition cae a `triggerRect` — mismo resultado que hoy.
|
|
170
171
|
const anchorEl = this.resolveAnchor();
|
|
171
172
|
const anchorRect = anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.getBoundingClientRect();
|
|
173
|
+
// Re-cálculo por tamaño: parte del lado donde YA está. Si cabe se queda (filtrar la
|
|
174
|
+
// búsqueda no hace saltar el panel de arriba a abajo); si no, computePosition voltea o
|
|
175
|
+
// lo sube hasta que entre, igual que al abrir.
|
|
176
|
+
const placement = this.keepSide && this.lastPlacement ? this.lastPlacement : this.placement;
|
|
177
|
+
this.keepSide = false;
|
|
178
|
+
this.observePanel();
|
|
172
179
|
const { top, left, actualPlacement } = computePosition(triggerRect, panelRect, {
|
|
173
|
-
placement
|
|
180
|
+
placement,
|
|
174
181
|
offset: this.offset,
|
|
175
182
|
flip: this.flip,
|
|
176
183
|
anchorRect,
|
|
177
184
|
shift: this.shift,
|
|
178
185
|
});
|
|
186
|
+
this.lastPlacement = actualPlacement;
|
|
179
187
|
let finalTop = top;
|
|
180
188
|
let finalLeft = left;
|
|
181
189
|
// When the panel is promoted to the top layer (Popover API), `position:fixed`
|
|
@@ -220,6 +228,12 @@ export class CoPopover {
|
|
|
220
228
|
this.panelEl.classList.add('co-popover__panel--positioned');
|
|
221
229
|
}
|
|
222
230
|
};
|
|
231
|
+
this.handlePanelResize = () => {
|
|
232
|
+
if (!this.open)
|
|
233
|
+
return;
|
|
234
|
+
this.keepSide = true;
|
|
235
|
+
this.scheduleUpdate();
|
|
236
|
+
};
|
|
223
237
|
this.scheduleUpdate = () => {
|
|
224
238
|
if (this.rafId)
|
|
225
239
|
cancelAnimationFrame(this.rafId);
|
|
@@ -360,6 +374,16 @@ export class CoPopover {
|
|
|
360
374
|
the same frame) — safe to ignore; falls back to in-place positioning */
|
|
361
375
|
}
|
|
362
376
|
}
|
|
377
|
+
observePanel() {
|
|
378
|
+
var _a;
|
|
379
|
+
if (typeof ResizeObserver === 'undefined' || !this.panelEl || this.observedPanel === this.panelEl)
|
|
380
|
+
return;
|
|
381
|
+
(_a = this.resizeObserver) !== null && _a !== void 0 ? _a : (this.resizeObserver = new ResizeObserver(this.handlePanelResize));
|
|
382
|
+
if (this.observedPanel)
|
|
383
|
+
this.resizeObserver.unobserve(this.observedPanel);
|
|
384
|
+
this.observedPanel = this.panelEl;
|
|
385
|
+
this.resizeObserver.observe(this.panelEl);
|
|
386
|
+
}
|
|
363
387
|
// ── Scroll/resize listeners ────────────────────────────────
|
|
364
388
|
// Listen to window resize/scroll and to every ancestor that ACTUALLY scrolls
|
|
365
389
|
// (co-drawer/co-modal body, datatable body…).
|
|
@@ -382,6 +406,11 @@ export class CoPopover {
|
|
|
382
406
|
}
|
|
383
407
|
}
|
|
384
408
|
cleanupListeners() {
|
|
409
|
+
var _a;
|
|
410
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
411
|
+
this.observedPanel = undefined;
|
|
412
|
+
this.lastPlacement = undefined;
|
|
413
|
+
this.keepSide = false;
|
|
385
414
|
if (this.rafId) {
|
|
386
415
|
cancelAnimationFrame(this.rafId);
|
|
387
416
|
this.rafId = undefined;
|
|
@@ -395,13 +424,13 @@ export class CoPopover {
|
|
|
395
424
|
}
|
|
396
425
|
// ── Render ─────────────────────────────────────────────────
|
|
397
426
|
render() {
|
|
398
|
-
return (h("div", { key: '
|
|
427
|
+
return (h("div", { key: 'a85df32be71c08c86bd19a31224b51b899d1f468', class: "co-popover" }, h("div", { key: 'accafae8513bad7bfbf32b7e98f0dc6ec0968efa', class: "co-popover__trigger", ref: (el) => (this.triggerEl = el), onClick: this.handleTriggerClick }, h("slot", { key: 'f12247af31066f6d4cbdd45671146b3ea5c996bc', name: "trigger" })), (this.open || this.closing) && (h("div", { key: '64dbc77cae4a913bbe3ec4174f6b18c4982520ae', class: { 'co-popover__panel': true, 'co-popover__panel--closing': this.closing }, part: "panel", popover: "manual", onTransitionEnd: this.handlePanelTransitionEnd, ref: (el) => {
|
|
399
428
|
if (el && el !== this.panelEl) {
|
|
400
429
|
this.panelEl = el;
|
|
401
430
|
this.promotePanel();
|
|
402
431
|
this.scheduleUpdate();
|
|
403
432
|
}
|
|
404
|
-
} }, h("slot", { key: '
|
|
433
|
+
} }, h("slot", { key: '858df49b45b1bd72f215f5e408e835227633d41f' })))));
|
|
405
434
|
}
|
|
406
435
|
static get is() { return "co-popover"; }
|
|
407
436
|
static get encapsulation() { return "shadow"; }
|
|
@@ -446,7 +475,7 @@ export class CoPopover {
|
|
|
446
475
|
"references": {
|
|
447
476
|
"PopoverPlacement": {
|
|
448
477
|
"location": "local",
|
|
449
|
-
"path": "/Users/agox/
|
|
478
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-popover/co-popover.tsx",
|
|
450
479
|
"id": "src/components/co-popover/co-popover.tsx::PopoverPlacement"
|
|
451
480
|
}
|
|
452
481
|
}
|
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @prop --co-progress-bar-track: Color de la pista (default: --co-semantic-border-subtle).
|
|
8
|
+
* @prop --co-progress-bar-fill: Relleno de la variante solid con status default (default: --co-semantic-status-info).
|
|
9
|
+
*/
|
|
6
10
|
.co-progress-bar {
|
|
7
11
|
width: 100%;
|
|
8
12
|
border-radius: 9999px;
|
|
9
13
|
overflow: hidden;
|
|
10
|
-
background: var(--co-semantic-border-subtle);
|
|
14
|
+
background: var(--co-progress-bar-track, var(--co-semantic-border-subtle));
|
|
11
15
|
position: relative;
|
|
12
16
|
}
|
|
13
17
|
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
|
|
20
24
|
/* ─── Solid variant ──────────────────────────────────────── */
|
|
21
25
|
.co-progress-bar--solid .co-progress-bar__fill {
|
|
22
|
-
background: var(--co-semantic-status-info);
|
|
26
|
+
background: var(--co-progress-bar-fill, var(--co-semantic-status-info));
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
.co-progress-bar--solid.co-progress-bar--success .co-progress-bar__fill {
|
|
@@ -21,12 +21,12 @@ export class CoProgressBar {
|
|
|
21
21
|
render() {
|
|
22
22
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
23
23
|
const indeterminate = this.indeterminate;
|
|
24
|
-
return (h("div", { key: '
|
|
24
|
+
return (h("div", { key: '11e44e13ee324094bd7992d79cc6dc835c9de2f3', class: {
|
|
25
25
|
'co-progress-bar': true,
|
|
26
26
|
[`co-progress-bar--${this.status}`]: true,
|
|
27
27
|
[`co-progress-bar--${this.variant}`]: true,
|
|
28
28
|
'co-progress-bar--indeterminate': indeterminate,
|
|
29
|
-
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: '
|
|
29
|
+
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: 'e0448637058e041aa2ff6a49f1be5464114c0d15', class: "co-progress-bar__fill", style: indeterminate ? undefined : { width: `${clamped}%` } })));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "co-progress-bar"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,7 +22,7 @@ export class CoProgressCircle {
|
|
|
22
22
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
23
23
|
const angle = (clamped / 100) * 360;
|
|
24
24
|
const safeStroke = Math.min(this.strokeWidth, this.size / 2);
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '7659875cfd5d239ce132e216ebb013d867ef2d22', class: {
|
|
26
26
|
'co-progress-circle': true,
|
|
27
27
|
[`co-progress-circle--${this.status}`]: true,
|
|
28
28
|
}, role: "progressbar", "aria-valuenow": clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "circle", style: {
|
|
@@ -30,7 +30,7 @@ export class CoProgressCircle {
|
|
|
30
30
|
height: `${this.size}px`,
|
|
31
31
|
'--co-pc-angle': `${angle}deg`,
|
|
32
32
|
'--co-pc-stroke': `${safeStroke}px`,
|
|
33
|
-
} }, h("div", { key: '
|
|
33
|
+
} }, h("div", { key: '832ee366fc48659f1e7731f57d0d9624348b15c0', class: "co-progress-circle__track" }), this.showLabel && (h("span", { key: '02d74ff3dcad11b608bab449db396073fcdf0b64', class: "co-progress-circle__label" }, clamped, "%"))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "co-progress-circle"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,15 +25,15 @@ export class CoRadio {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: 'daeb8835509b680044c4bb85e3b290d8315c509d', class: {
|
|
29
29
|
'co-radio-row': true,
|
|
30
30
|
'co-radio-row--disabled': this.disabled,
|
|
31
|
-
}, onClick: this.handleClick }, h("button", { key: '
|
|
31
|
+
}, onClick: this.handleClick }, h("button", { key: 'e1f8d09f867cb18404315048951e4bf05a68307c', role: "radio", "aria-checked": String(this.checked), "aria-label": this.label || '', class: {
|
|
32
32
|
'co-radio': true,
|
|
33
33
|
[`co-radio--${this.size}`]: true,
|
|
34
34
|
'co-radio--checked': this.checked,
|
|
35
35
|
'co-radio--disabled': this.disabled,
|
|
36
|
-
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '
|
|
36
|
+
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '59360a6bd719d62872fb33de176eb43a0507d756', class: "co-radio__label", part: "label" }, this.label))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "co-radio"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -149,8 +149,11 @@
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/* ── Error state — circle border ────────────────────────────── */
|
|
152
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
153
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
154
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
152
155
|
.co-radio-group--error .co-radio-group__circle {
|
|
153
|
-
border-color: var(--co-semantic-status-error);
|
|
156
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
/* ── Helper text ────────────────────────────────────────────── */
|
|
@@ -175,24 +178,26 @@
|
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
/* status colors */
|
|
181
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
182
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
178
183
|
.co-radio-group__helper--error .co-radio-group__helper-icon,
|
|
179
184
|
.co-radio-group__helper--error .co-radio-group__helper-text {
|
|
180
|
-
color: var(--co-semantic-status-error);
|
|
185
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
.co-radio-group__helper--success .co-radio-group__helper-icon,
|
|
184
189
|
.co-radio-group__helper--success .co-radio-group__helper-text {
|
|
185
|
-
color: var(--co-semantic-status-success);
|
|
190
|
+
color: var(--co-semantic-text-success, var(--co-semantic-status-success));
|
|
186
191
|
}
|
|
187
192
|
|
|
188
193
|
.co-radio-group__helper--warning .co-radio-group__helper-icon,
|
|
189
194
|
.co-radio-group__helper--warning .co-radio-group__helper-text {
|
|
190
|
-
color: var(--co-color-status-review);
|
|
195
|
+
color: var(--co-semantic-text-warning, var(--co-color-status-review));
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
.co-radio-group__helper--info .co-radio-group__helper-icon,
|
|
194
199
|
.co-radio-group__helper--info .co-radio-group__helper-text {
|
|
195
|
-
color: var(--co-semantic-status-info);
|
|
200
|
+
color: var(--co-semantic-text-info, var(--co-semantic-status-info));
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
@@ -224,7 +224,7 @@ export class CoRadioGroup {
|
|
|
224
224
|
"references": {
|
|
225
225
|
"RadioOption": {
|
|
226
226
|
"location": "local",
|
|
227
|
-
"path": "/Users/agox/
|
|
227
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-radio-group/co-radio-group.tsx",
|
|
228
228
|
"id": "src/components/co-radio-group/co-radio-group.tsx::RadioOption"
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -85,14 +85,16 @@
|
|
|
85
85
|
line-height: 1;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
89
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
88
90
|
.co-rating__helper--error .co-rating__helper-icon,
|
|
89
|
-
.co-rating__helper--error .co-rating__helper-text { color: var(--co-semantic-status-error); }
|
|
91
|
+
.co-rating__helper--error .co-rating__helper-text { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
|
|
90
92
|
|
|
91
93
|
.co-rating__helper--success .co-rating__helper-icon,
|
|
92
|
-
.co-rating__helper--success .co-rating__helper-text { color: var(--co-semantic-status-success); }
|
|
94
|
+
.co-rating__helper--success .co-rating__helper-text { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
|
|
93
95
|
|
|
94
96
|
.co-rating__helper--warning .co-rating__helper-icon,
|
|
95
|
-
.co-rating__helper--warning .co-rating__helper-text { color: var(--co-color-status-review); }
|
|
97
|
+
.co-rating__helper--warning .co-rating__helper-text { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
|
|
96
98
|
|
|
97
99
|
.co-rating__helper--info .co-rating__helper-icon,
|
|
98
|
-
.co-rating__helper--info .co-rating__helper-text { color: var(--co-semantic-status-info); }
|
|
100
|
+
.co-rating__helper--info .co-rating__helper-text { color: var(--co-semantic-text-info, var(--co-semantic-status-info)); }
|
|
@@ -48,16 +48,16 @@ export class CoRating {
|
|
|
48
48
|
const iconSize = this.size === 'large' ? 28 : 20;
|
|
49
49
|
const active = this.hoverValue || this.value;
|
|
50
50
|
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: 'd100ef9f45fab43561f8d6786f19543b9c3b95ba', class: {
|
|
52
52
|
'co-rating': true,
|
|
53
53
|
'co-rating--disabled': this.disabled,
|
|
54
54
|
'co-rating--readonly': this.readOnly,
|
|
55
55
|
[`co-rating--${this.size}`]: true,
|
|
56
|
-
} }, this.label && h("label", { key: '
|
|
56
|
+
} }, this.label && h("label", { key: '4943fe6704fb1e2456378c988bcb60c5a9376c59', class: "co-rating__label" }, this.label), h("div", { key: 'fa5b3ff7a54490ee5bc513a31978c21daf49bd52', class: "co-rating__stars", onMouseLeave: this.handleMouseLeave }, stars.map(star => (h("button", { class: {
|
|
57
57
|
'co-rating__star': true,
|
|
58
58
|
'co-rating__star--active': star <= active,
|
|
59
59
|
'co-rating__star--hover': this.hoverValue > 0 && star <= this.hoverValue,
|
|
60
|
-
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '
|
|
60
|
+
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: 'b1aaa3ce09b9454204655a648ccd6f84836c011c', class: `co-rating__helper co-rating__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'ef3a4c165a52e568cee28d0ffcbb9aca2d7ff4cf', name: this.statusIcon, size: 14, weight: "fill", class: "co-rating__helper-icon" }), h("span", { key: '15ad0f44daaa0fa73a678155f014fa768da6217a', class: "co-rating__helper-text" }, this.helperText)))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "co-rating"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -137,7 +137,10 @@
|
|
|
137
137
|
cursor: not-allowed;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
141
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
142
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
143
|
+
.co-ref-field--error { border-color: var(--co-semantic-border-error, var(--co-semantic-status-error)); }
|
|
141
144
|
.co-ref-field--success { border-color: var(--co-semantic-status-success); }
|
|
142
145
|
.co-ref-field--warning { border-color: var(--co-color-status-review); }
|
|
143
146
|
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
dot-only chips) defines the height, so the chip never exceeds the field's
|
|
336
339
|
inner content area and the trigger height stays constant. */
|
|
337
340
|
padding: 0 var(--co-spacing-sm2);
|
|
338
|
-
|
|
341
|
+
/* surface-control = gray-100 en claro y gira en oscuro: con la primitiva, la etiqueta
|
|
342
|
+
(text-default, blanca en oscuro) quedaba blanco sobre blanco (2026-09-27). */
|
|
343
|
+
background: var(--co-semantic-surface-control);
|
|
339
344
|
border-radius: var(--co-border-radius-full);
|
|
340
345
|
line-height: 1;
|
|
341
346
|
/* Cap at 160px, but never wider than the chips wrapper: in a narrow field
|
|
@@ -420,7 +425,7 @@
|
|
|
420
425
|
border: none;
|
|
421
426
|
background: transparent;
|
|
422
427
|
cursor: pointer;
|
|
423
|
-
color: var(--co-
|
|
428
|
+
color: var(--co-semantic-text-muted);
|
|
424
429
|
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
425
430
|
flex-shrink: 0;
|
|
426
431
|
}
|
|
@@ -429,13 +434,40 @@
|
|
|
429
434
|
color: var(--co-semantic-text-default);
|
|
430
435
|
}
|
|
431
436
|
|
|
437
|
+
/* `editable` + `multiple`: lápiz al inicio de cada chip (paridad V1), mismo trato que la ✕. */
|
|
438
|
+
.co-ref-field__chip-edit {
|
|
439
|
+
display: flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
padding: 0;
|
|
442
|
+
margin: 0;
|
|
443
|
+
border: none;
|
|
444
|
+
background: transparent;
|
|
445
|
+
cursor: pointer;
|
|
446
|
+
color: var(--co-semantic-text-muted);
|
|
447
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
448
|
+
flex-shrink: 0;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.co-ref-field__chip-edit:hover {
|
|
452
|
+
color: var(--co-semantic-text-default);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.co-ref-field__chip--fill .co-ref-field__chip-edit {
|
|
456
|
+
color: inherit;
|
|
457
|
+
opacity: 0.72;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.co-ref-field__chip--fill .co-ref-field__chip-edit:hover {
|
|
461
|
+
opacity: 1;
|
|
462
|
+
}
|
|
463
|
+
|
|
432
464
|
.co-ref-field__chip-overflow {
|
|
433
465
|
flex-shrink: 0;
|
|
434
466
|
display: inline-flex;
|
|
435
467
|
align-items: center;
|
|
436
468
|
justify-content: center;
|
|
437
469
|
padding: var(--co-spacing-xs) var(--co-spacing-sm);
|
|
438
|
-
background: var(--co-
|
|
470
|
+
background: var(--co-semantic-surface-hover);
|
|
439
471
|
border-radius: var(--co-border-radius-full);
|
|
440
472
|
font-size: var(--co-font-size-12);
|
|
441
473
|
font-weight: 600;
|
|
@@ -536,9 +568,11 @@
|
|
|
536
568
|
color: var(--co-semantic-text-muted);
|
|
537
569
|
}
|
|
538
570
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
.co-ref-field__helper--
|
|
571
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
572
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
573
|
+
.co-ref-field__helper--error { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
|
|
574
|
+
.co-ref-field__helper--success { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
|
|
575
|
+
.co-ref-field__helper--warning { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
|
|
542
576
|
|
|
543
577
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
544
578
|
Set --co-field-label-width on a container to align labels across fields. */
|
|
@@ -566,9 +600,10 @@
|
|
|
566
600
|
min-width: 0;
|
|
567
601
|
}
|
|
568
602
|
|
|
603
|
+
/* Asterisco de requerido: tinta --co-semantic-text-error (gira con el tema). */
|
|
569
604
|
.co-field-required {
|
|
570
605
|
margin-left: 2px;
|
|
571
|
-
color: var(--co-color-status-error);
|
|
606
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
572
607
|
}
|
|
573
608
|
|
|
574
609
|
.co-field-required__caption {
|
|
@@ -31,8 +31,8 @@ export class CoRefField {
|
|
|
31
31
|
this.disabled = false;
|
|
32
32
|
/** Muestra la × que vacía la selección cuando hay valor (default `true`); emite `coClear`. */
|
|
33
33
|
this.clearable = true;
|
|
34
|
-
/** Shows a pencil button on the single-value trigger
|
|
35
|
-
* `coEditSelected` with
|
|
34
|
+
/** Shows a pencil button on the single-value trigger (and on each chip when
|
|
35
|
+
* `multiple`) that emits `coEditSelected` with that record's id. The host owns policy
|
|
36
36
|
* (permissions, what opens) — the component only paints and emits. */
|
|
37
37
|
this.editable = false;
|
|
38
38
|
/** Accessible name / tooltip for the edit button. */
|
|
@@ -240,6 +240,11 @@ export class CoRefField {
|
|
|
240
240
|
if (selected)
|
|
241
241
|
this.coEditSelected.emit(selected._id);
|
|
242
242
|
};
|
|
243
|
+
this.handleEditChip = (id, e) => {
|
|
244
|
+
// Sin abrir el panel: el chip vive dentro del trigger clicable.
|
|
245
|
+
e.stopPropagation();
|
|
246
|
+
this.coEditSelected.emit(id);
|
|
247
|
+
};
|
|
243
248
|
this.handleRemoveChip = (id, e) => {
|
|
244
249
|
var _a;
|
|
245
250
|
e.stopPropagation();
|
|
@@ -427,7 +432,9 @@ export class CoRefField {
|
|
|
427
432
|
var _a;
|
|
428
433
|
const active = document.activeElement;
|
|
429
434
|
if (active === this.el || this.el.contains(active)) {
|
|
430
|
-
|
|
435
|
+
// Sin scroll: si el panel se cerró porque el campo salió de la vista de su scroller
|
|
436
|
+
// (co-popover), devolverle el foco llevaba al usuario de vuelta arriba del formulario.
|
|
437
|
+
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
431
438
|
}
|
|
432
439
|
}
|
|
433
440
|
/** Selección desde un panel proyectado (slot `panel`): mismo contrato que un
|
|
@@ -506,7 +513,7 @@ export class CoRefField {
|
|
|
506
513
|
'co-ref-field__chip--fill-light': fill && isLightColor(item.color),
|
|
507
514
|
'co-ref-field__chip--clipped': !fixed && i >= visibleCount,
|
|
508
515
|
[`co-ref-field__chip--${this.normalizedSize}`]: true,
|
|
509
|
-
}, style: fill ? { backgroundColor: item.color } : undefined, onRemove: (e) => this.handleRemoveChip(item._id, e) }, item.image || item.avatar ? (this.renderItemAvatar(item)) : item.color && !fill ? (h("span", { class: "co-ref-field__chip-dot", style: { backgroundColor: item.color } })) : null));
|
|
516
|
+
}, style: fill ? { backgroundColor: item.color } : undefined, onRemove: (e) => this.handleRemoveChip(item._id, e), onEdit: this.editable && !this.disabled ? (e) => this.handleEditChip(item._id, e) : undefined, editLabel: this.editLabel }, item.image || item.avatar ? (this.renderItemAvatar(item)) : item.color && !fill ? (h("span", { class: "co-ref-field__chip-dot", style: { backgroundColor: item.color } })) : null));
|
|
510
517
|
})), overflow > 0 && h("span", { class: "co-ref-field__chip-overflow" }, "+", overflow)));
|
|
511
518
|
}
|
|
512
519
|
/** Botones del footer. `slotted`: dentro de la co-option-list van por su
|
|
@@ -533,7 +540,7 @@ export class CoRefField {
|
|
|
533
540
|
}
|
|
534
541
|
// ── Main render ────────────────────────────────────────────
|
|
535
542
|
render() {
|
|
536
|
-
return (h("div", { key: '
|
|
543
|
+
return (h("div", { key: 'fad34cd2f0ec9272285f3e6a9f97000b96d18e6d', class: "co-ref-field" }, (this.label || this.secondaryLabel) && (h("div", { key: '9f58fb3ad9dbf3d367641ab8f6346a74b377d42a', class: "co-ref-field__labels" }, this.label && (h("label", { key: '7960d2be8de225ef03283aac808c667c505884dd', class: "co-ref-field__label" }, this.labelIcon && (h("co-icon", { key: '5171afeb59ca8cf75ccf4a18b0390d23972a73a9', class: "co-ref-field__label-icon", name: this.labelIcon, size: 16 })), this.label, h(RequiredMark, { key: '88eb7972e30150185ef563eecce2fb57f97a1eb3', required: this.required }))), this.secondaryLabel && (h("span", { key: '8751906f899790cead37c9e28d5015e1fa58a801', class: "co-ref-field__secondary-label" }, this.secondaryLabel)))), h("co-popover", { key: 'b7953165b080b55ef0d95cad89849b30e2c27bfe', open: this.isOpen, placement: "bottom-start", matchWidth: !this.panelWidth, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '07d22fe2182afa3899abb14845fbf0069cbd8b6f', slot: "trigger" }, this.renderTrigger()), this.isOpen && this.renderPanel()), this.helperText && (h("div", { key: '8842f7aecf18c770ceee88c368f3b50803178a6a', class: `co-ref-field__helper co-ref-field__helper--${this.status}` }, this.status !== 'default' && (h("co-icon", { key: '88925d75dad7a8853febedeeab60d5a83914396e', name: this.status === 'error' ? 'warning-circle' : this.status === 'success' ? 'check-circle' : 'info', size: 14 })), h("span", { key: '14577358ff94a20cb6ba9d91ab64388e48501632' }, this.helperText)))));
|
|
537
544
|
}
|
|
538
545
|
static get is() { return "co-ref-field"; }
|
|
539
546
|
static get encapsulation() { return "shadow"; }
|
|
@@ -698,7 +705,7 @@ export class CoRefField {
|
|
|
698
705
|
"optional": false,
|
|
699
706
|
"docs": {
|
|
700
707
|
"tags": [],
|
|
701
|
-
"text": "Shows a pencil button on the single-value trigger
|
|
708
|
+
"text": "Shows a pencil button on the single-value trigger (and on each chip when\n`multiple`) that emits `coEditSelected` with that record's id. The host owns policy\n(permissions, what opens) \u2014 the component only paints and emits."
|
|
702
709
|
},
|
|
703
710
|
"getter": false,
|
|
704
711
|
"setter": false,
|
|
@@ -1349,7 +1356,7 @@ export class CoRefField {
|
|
|
1349
1356
|
"references": {
|
|
1350
1357
|
"RefFieldOption": {
|
|
1351
1358
|
"location": "local",
|
|
1352
|
-
"path": "/Users/agox/
|
|
1359
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1353
1360
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1354
1361
|
}
|
|
1355
1362
|
}
|
|
@@ -1490,7 +1497,7 @@ export class CoRefField {
|
|
|
1490
1497
|
"references": {
|
|
1491
1498
|
"RefFieldOption": {
|
|
1492
1499
|
"location": "local",
|
|
1493
|
-
"path": "/Users/agox/
|
|
1500
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1494
1501
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1495
1502
|
}
|
|
1496
1503
|
}
|
|
@@ -1511,7 +1518,7 @@ export class CoRefField {
|
|
|
1511
1518
|
"references": {
|
|
1512
1519
|
"RefFieldOption": {
|
|
1513
1520
|
"location": "local",
|
|
1514
|
-
"path": "/Users/agox/
|
|
1521
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1515
1522
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1516
1523
|
}
|
|
1517
1524
|
}
|
|
@@ -1550,7 +1557,7 @@ export class CoRefField {
|
|
|
1550
1557
|
},
|
|
1551
1558
|
"RefFieldOption": {
|
|
1552
1559
|
"location": "local",
|
|
1553
|
-
"path": "/Users/agox/
|
|
1560
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1554
1561
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1555
1562
|
}
|
|
1556
1563
|
},
|