@prolibu-suite/cobalt-core 0.9.6 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1125 -89
- package/dist/cjs/co-accordion.cjs.entry.js +5 -5
- package/dist/cjs/co-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-audio-player.cjs.entry.js +83 -13
- package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +72 -0
- package/dist/cjs/co-badge.cjs.entry.js +11 -3
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +1 -1
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/co-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +1 -1
- package/dist/cjs/co-button.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +55 -20
- package/dist/cjs/co-calendar_3.cjs.entry.js +27 -15
- package/dist/cjs/co-card.cjs.entry.js +1 -1
- package/dist/cjs/co-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/co-carousel.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/co-chip_2.cjs.entry.js +68 -13
- package/dist/cjs/co-color-picker.cjs.entry.js +1078 -27
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +2 -2
- 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 +83 -5
- package/dist/cjs/co-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +101 -130
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-emoji-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-empty-state.cjs.entry.js +4 -4
- package/dist/cjs/co-event-calendar.cjs.entry.js +4 -4
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +102 -106
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +6 -6
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +32 -6
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/co-lightbox.cjs.entry.js +204 -21
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +85 -4
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +10 -4
- package/dist/cjs/co-navbar.cjs.entry.js +4 -4
- package/dist/cjs/co-number-field.cjs.entry.js +272 -9
- package/dist/cjs/co-overlay.cjs.entry.js +6 -4
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +58 -21
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +47 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +104 -13
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +11 -8
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +7 -3
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +4 -3
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-select.cjs.entry.js +6 -6
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-time-field.cjs.entry.js +325 -0
- package/dist/cjs/co-toast.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +4 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/{co-avatar_2.cjs.entry.js → co-tooltip.cjs.entry.js} +48 -84
- package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/co-video.cjs.entry.js +32 -7
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/color-CML2Cfdh.js +142 -0
- package/dist/cjs/{dateI18n-wblvKRq_.js → dateI18n-BK2qHqoC.js} +36 -0
- package/dist/cjs/{fieldChip-BLzo9MEV.js → fieldChip-B6YIGU1V.js} +1 -1
- package/dist/cjs/fileI18n-6sdbKvo6.js +88 -0
- package/dist/cjs/{index-DFZ5YhIT.js → index-BYwrR87Z.js} +28 -10
- package/dist/cjs/{index-DK-2Lzmf.js → index-MDAnKsze.js} +35 -27
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{positioning-DCj_AJ2T.js → positioning-CyatXeT_.js} +32 -13
- package/dist/cjs/{requiredMark-C1xcrzSZ.js → requiredMark-D-t-IPN0.js} +1 -1
- package/dist/cjs/{toolbar-config-BQfWTW6P.js → toolbar-config-BSGas-Wl.js} +10 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-bfc2a849.entry.js → p-000a15b8.entry.js} +1 -1
- package/dist/cobalt/{p-f83b48fd.entry.js → p-011dc80b.entry.js} +1 -1
- package/dist/cobalt/{p-316c62c0.entry.js → p-0678c797.entry.js} +1 -1
- package/dist/cobalt/{p-43bd298d.entry.js → p-08e42e00.entry.js} +1 -1
- package/dist/cobalt/{p-0e91e5c4.entry.js → p-148d4aa6.entry.js} +1 -1
- package/dist/cobalt/{p-07d570a6.entry.js → p-16954cea.entry.js} +1 -1
- package/dist/cobalt/{p-d40a465f.entry.js → p-16f8cee6.entry.js} +1 -1
- package/dist/cobalt/{p-85a61e28.entry.js → p-17244412.entry.js} +1 -1
- package/dist/cobalt/{p-da546d08.entry.js → p-1dc55e43.entry.js} +1 -1
- package/dist/cobalt/p-239c5c5f.entry.js +1 -0
- package/dist/cobalt/{p-4c7e3984.entry.js → p-23ab0cc5.entry.js} +1 -1
- package/dist/cobalt/{p-fabe5fb2.entry.js → p-2636b7eb.entry.js} +1 -1
- package/dist/cobalt/{p-88a0659f.entry.js → p-27a7e549.entry.js} +1 -1
- package/dist/cobalt/{p-dca4cd5f.entry.js → p-28764b8e.entry.js} +1 -1
- package/dist/cobalt/{p-18d34b01.entry.js → p-290066ef.entry.js} +1 -1
- package/dist/cobalt/p-2a30c143.entry.js +1 -0
- package/dist/cobalt/p-2f0f3bb1.entry.js +1 -0
- package/dist/cobalt/{p-89e38c5e.entry.js → p-2f9cbbd5.entry.js} +1 -1
- package/dist/cobalt/p-2fba312b.entry.js +1 -0
- package/dist/cobalt/p-354d5089.entry.js +1 -0
- package/dist/cobalt/{p-60cb66f5.entry.js → p-37f5036b.entry.js} +1 -1
- package/dist/cobalt/{p-ac91259e.entry.js → p-383a998e.entry.js} +1 -1
- package/dist/cobalt/{p-ef5e1167.entry.js → p-3c4f7026.entry.js} +1 -1
- package/dist/cobalt/p-410bee4d.entry.js +1 -0
- package/dist/cobalt/p-416795f5.entry.js +1 -0
- package/dist/cobalt/{p-6795a258.entry.js → p-44c4e4a3.entry.js} +1 -1
- package/dist/cobalt/{p-4b083da4.entry.js → p-44ea675f.entry.js} +1 -1
- package/dist/cobalt/{p-2828ecf6.entry.js → p-4592ca00.entry.js} +1 -1
- package/dist/cobalt/{p-342e1da4.entry.js → p-4d65e713.entry.js} +1 -1
- package/dist/cobalt/p-56551580.entry.js +1 -0
- package/dist/cobalt/p-58137c9e.entry.js +1 -0
- package/dist/cobalt/{p-4f754c9a.entry.js → p-58d9b650.entry.js} +1 -1
- package/dist/cobalt/p-59963937.entry.js +1 -0
- package/dist/cobalt/p-5a3e4c81.entry.js +1 -0
- package/dist/cobalt/p-5adf117c.entry.js +1 -0
- package/dist/cobalt/{p-23b3ff3f.entry.js → p-5ca394b1.entry.js} +1 -1
- package/dist/cobalt/p-5e4973a6.entry.js +1 -0
- package/dist/cobalt/{p-2d329ac8.entry.js → p-623cc195.entry.js} +1 -1
- package/dist/cobalt/{p-8e667eb6.entry.js → p-66b11b38.entry.js} +1 -1
- package/dist/cobalt/{p-7e53e9c8.entry.js → p-6c82a892.entry.js} +1 -1
- package/dist/cobalt/{p-a6357340.entry.js → p-76249983.entry.js} +1 -1
- package/dist/cobalt/{p-568cfe8d.entry.js → p-789c4b3e.entry.js} +1 -1
- package/dist/cobalt/p-7e8e6907.entry.js +1 -0
- package/dist/cobalt/{p-a9b29cc2.entry.js → p-826ee074.entry.js} +1 -1
- package/dist/cobalt/{p-1c68bc41.entry.js → p-8471abe2.entry.js} +1 -1
- package/dist/cobalt/p-8f2199ff.entry.js +1 -0
- package/dist/cobalt/{p-c8dba82f.entry.js → p-91e73a92.entry.js} +1 -1
- package/dist/cobalt/p-9246e09c.entry.js +1 -0
- package/dist/cobalt/{p-c1e7fb32.entry.js → p-93fe45fd.entry.js} +1 -1
- package/dist/cobalt/{p-8f38e24d.entry.js → p-95cfcb34.entry.js} +1 -1
- package/dist/cobalt/{p-36197363.entry.js → p-996f4e38.entry.js} +1 -1
- package/dist/cobalt/{p-c5684c79.entry.js → p-9cf738ed.entry.js} +1 -1
- package/dist/cobalt/p-BRbgGqLw.js +1 -0
- package/dist/cobalt/{p-BL0sCfMH.js → p-Bryf3-Js.js} +1 -1
- package/dist/cobalt/p-DFHRS9cJ.js +1 -0
- package/dist/cobalt/{p-CrtiywTB.js → p-DH5lfRNj.js} +1 -1
- package/dist/{components/p-WeuPA9Rw.js → cobalt/p-DOL2zACE.js} +1 -1
- package/dist/cobalt/p-D_zA1Pv4.js +1 -0
- package/dist/cobalt/p-a2462d7a.entry.js +1 -0
- package/dist/cobalt/p-a325ea0c.entry.js +1 -0
- package/dist/cobalt/{p-fef5db54.entry.js → p-a32b20eb.entry.js} +1 -1
- package/dist/cobalt/p-aa9400bf.entry.js +1 -0
- package/dist/cobalt/{p-8eb485c8.entry.js → p-aaca6dab.entry.js} +1 -1
- package/dist/cobalt/p-b0c4fc71.entry.js +1 -0
- package/dist/cobalt/p-b5bba7fe.entry.js +1 -0
- package/dist/cobalt/{p-fb3a095b.entry.js → p-b821d9de.entry.js} +1 -1
- package/dist/cobalt/{p-b0319a2d.entry.js → p-b90d41e4.entry.js} +1 -1
- package/dist/cobalt/{p-ac466658.entry.js → p-be34e447.entry.js} +1 -1
- package/dist/cobalt/{p-1ddbc48b.entry.js → p-c124e82b.entry.js} +1 -1
- package/dist/cobalt/{p-95efe661.entry.js → p-c2ebf0ec.entry.js} +1 -1
- package/dist/cobalt/{p-54ae807d.entry.js → p-c465d619.entry.js} +1 -1
- package/dist/cobalt/p-c7d7d7f7.entry.js +1 -0
- package/dist/cobalt/{p-ab45d9bd.entry.js → p-c91d4fc6.entry.js} +1 -1
- package/dist/cobalt/{p-e5495539.entry.js → p-d0b2c418.entry.js} +1 -1
- package/dist/cobalt/{p-ce35c898.entry.js → p-d29bb0fa.entry.js} +1 -1
- package/dist/cobalt/{p-33ea4a90.entry.js → p-d3344187.entry.js} +1 -1
- package/dist/cobalt/p-d375014b.entry.js +1 -0
- package/dist/cobalt/p-d9d9e8ae.entry.js +1 -0
- package/dist/cobalt/{p-7c5e846a.entry.js → p-db805569.entry.js} +1 -1
- package/dist/cobalt/p-e371ec7a.entry.js +1 -0
- package/dist/cobalt/p-e3aae282.entry.js +1 -0
- package/dist/cobalt/{p-d15d3a97.entry.js → p-e4264532.entry.js} +1 -1
- package/dist/cobalt/{p-3f0eed59.entry.js → p-e49a564c.entry.js} +1 -1
- package/dist/cobalt/p-e8a2f993.entry.js +1 -0
- package/dist/cobalt/p-eadfd661.entry.js +1 -0
- package/dist/cobalt/p-eb82358d.entry.js +1 -0
- package/dist/cobalt/{p-2114c036.entry.js → p-eb8691f2.entry.js} +1 -1
- package/dist/cobalt/{p-e8878cf9.entry.js → p-ee2023da.entry.js} +1 -1
- package/dist/cobalt/p-ee9a623d.entry.js +1 -0
- package/dist/cobalt/p-ef301976.entry.js +1 -0
- package/dist/cobalt/p-f4e1c3c3.entry.js +1 -0
- package/dist/cobalt/{p-e364b8a5.entry.js → p-f57dffca.entry.js} +1 -1
- package/dist/cobalt/p-f6691108.entry.js +1 -0
- package/dist/cobalt/p-fMqVDypp.js +1 -0
- package/dist/cobalt/p-fb2d1144.entry.js +1 -0
- package/dist/cobalt/{p-0c463d9a.entry.js → p-fd150cc6.entry.js} +1 -1
- package/dist/cobalt/p-gKnOhsd2.js +1 -0
- package/dist/cobalt/p-jYd9gu_c.js +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/co-accordion/co-accordion.css +2 -2
- package/dist/collection/components/co-accordion/co-accordion.js +4 -4
- package/dist/collection/components/co-action-bar/co-action-bar.css +9 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +107 -41
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +138 -12
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.css +18 -0
- package/dist/collection/components/co-badge/co-badge.js +29 -1
- package/dist/collection/components/co-button/co-button.css +10 -7
- package/dist/collection/components/co-checkbox/co-checkbox.css +12 -3
- package/dist/collection/components/co-checkbox/co-checkbox.js +25 -6
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +1 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-color-picker/co-color-picker.css +252 -5
- package/dist/collection/components/co-color-picker/co-color-picker.js +962 -15
- package/dist/collection/components/co-color-picker/presets.js +113 -15
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +1 -1
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.css +63 -2
- package/dist/collection/components/co-data-table/co-data-table.js +59 -4
- package/dist/collection/components/co-data-table/headerTruncationLogic.js +34 -0
- 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.js +4 -4
- 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.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +128 -32
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +142 -138
- package/dist/collection/components/co-drawer/co-drawer.css +99 -36
- package/dist/collection/components/co-drawer/co-drawer.js +19 -7
- 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 +28 -0
- 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.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +55 -2
- package/dist/collection/components/co-file-field/co-file-field.js +41 -13
- package/dist/collection/components/co-file-field/co-file-field.utils.js +51 -4
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- 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 +40 -2
- package/dist/collection/components/co-icon-button/co-icon-button.js +43 -4
- package/dist/collection/components/co-input/co-input.css +33 -0
- package/dist/collection/components/co-input/co-input.js +42 -7
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +23 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +209 -20
- 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.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +9 -0
- package/dist/collection/components/co-menu-item/co-menu-item.js +67 -3
- package/dist/collection/components/co-modal/co-modal.css +112 -37
- package/dist/collection/components/co-modal/co-modal.js +35 -2
- package/dist/collection/components/co-navbar/co-navbar.css +4 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +22 -0
- package/dist/collection/components/co-number-field/co-number-field.js +216 -9
- package/dist/collection/components/co-option-list/co-option-list.css +25 -4
- package/dist/collection/components/co-option-list/co-option-list.js +56 -4
- package/dist/collection/components/co-option-list/optionListLogic.js +31 -8
- package/dist/collection/components/co-overlay/co-overlay.js +5 -3
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +18 -3
- package/dist/collection/components/co-popover/co-popover.js +83 -20
- 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.js +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +40 -0
- package/dist/collection/components/co-ref-field/co-ref-field.js +207 -11
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +14 -1
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +9 -6
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +7 -3
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +3 -2
- 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.js +24 -5
- 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 +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +1 -1
- package/dist/collection/components/co-skeleton/co-skeleton.css +18 -0
- package/dist/collection/components/co-skeleton/co-skeleton.js +83 -1
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +3 -3
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-time-field/co-time-field.css +111 -0
- package/dist/collection/components/co-time-field/co-time-field.js +536 -0
- package/dist/collection/components/co-toast/co-toast.css +13 -7
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +20 -14
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +14 -4
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +12 -1
- package/dist/collection/components/co-tooltip/co-tooltip.js +49 -16
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-video/co-video.js +34 -9
- package/dist/collection/utils/amountText.js +95 -0
- package/dist/collection/utils/color.js +109 -3
- package/dist/collection/utils/colorPickerI18n.js +55 -0
- package/dist/collection/utils/dateI18n.js +36 -0
- package/dist/collection/utils/fileI18n.js +3 -0
- package/dist/collection/utils/positioning.js +37 -4
- package/dist/collection/utils/submenu.js +35 -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-badge.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-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-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-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-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-time-field.d.ts +11 -0
- package/dist/components/co-time-field.js +1 -0
- 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-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-7TncUlLN.js +1 -0
- package/dist/components/p-B4NCaKrR.js +1 -0
- package/dist/components/p-B9xitpGU.js +1 -0
- package/dist/components/{p-Dabi98BI.js → p-BGDqldEg.js} +1 -1
- package/dist/components/p-BRbgGqLw.js +1 -0
- package/dist/components/{p-BL0sCfMH.js → p-Bryf3-Js.js} +1 -1
- package/dist/components/{p-D6OUW6oW.js → p-CBTGN490.js} +1 -1
- package/dist/components/{p-P8wvwhM2.js → p-CFFDmGPS.js} +1 -1
- package/dist/components/p-CLsAo0-A.js +1 -0
- package/dist/components/{p-CA_JAK9s.js → p-CT2enQ6h.js} +1 -1
- package/dist/components/p-D2ldYZo1.js +1 -0
- package/dist/components/{p-CuZXTvDM.js → p-D3mVYO-G.js} +1 -1
- package/dist/components/p-DDV_bRcU.js +1 -0
- package/dist/components/p-DFHRS9cJ.js +1 -0
- package/dist/components/{p-Dj1EZ5qD.js → p-DNJAIVfI.js} +1 -1
- package/dist/{cobalt/p-WeuPA9Rw.js → components/p-DOL2zACE.js} +1 -1
- package/dist/components/p-DRP8D9ro.js +1 -0
- package/dist/components/p-DSnJWzQw.js +1 -0
- package/dist/components/p-DTi2O4O8.js +1 -0
- package/dist/components/p-De7w9k6_.js +1 -0
- package/dist/components/{p-D5EdMieb.js → p-DoHLTC0n.js} +1 -1
- package/dist/components/{p-Bxk96Zgc.js → p-Du_CgT5E.js} +1 -1
- package/dist/components/p-DxtNejr2.js +1 -0
- package/dist/components/{p-BHYtxTzM.js → p-HxVRXXXC.js} +1 -1
- package/dist/components/{p-B0Dc-I_C.js → p-NNxjElcX.js} +1 -1
- package/dist/components/p-gKnOhsd2.js +1 -0
- package/dist/components/p-jYd9gu_c.js +1 -0
- package/dist/components/{p-D4qzGifz.js → p-vby0ITbe.js} +1 -1
- package/dist/components/p-wjt4IAGZ.js +1 -0
- package/dist/components/p-zuhal3IZ.js +1 -0
- package/dist/esm/co-accordion.entry.js +5 -5
- package/dist/esm/co-action-bar.entry.js +2 -2
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-audio-player.entry.js +83 -13
- package/dist/esm/co-autocomplete.entry.js +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +70 -0
- package/dist/esm/co-badge.entry.js +11 -3
- package/dist/esm/co-bottom-sheet.entry.js +1 -1
- package/dist/esm/co-breadcrumb-item.entry.js +1 -1
- package/dist/esm/co-breadcrumb.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +1 -1
- package/dist/esm/co-button.entry.js +2 -2
- package/dist/esm/co-calendar-month_2.entry.js +37 -2
- package/dist/esm/co-calendar_3.entry.js +27 -15
- package/dist/esm/co-card.entry.js +1 -1
- package/dist/esm/co-carousel-item.entry.js +1 -1
- package/dist/esm/co-carousel.entry.js +2 -2
- package/dist/esm/co-checkbox-group.entry.js +2 -2
- package/dist/esm/co-checkbox.entry.js +6 -6
- package/dist/esm/co-chip_2.entry.js +68 -13
- package/dist/esm/co-color-picker.entry.js +1078 -27
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +2 -2
- 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 +83 -5
- package/dist/esm/co-date-picker.entry.js +3 -3
- package/dist/esm/co-date-range-picker.entry.js +3 -3
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +101 -130
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +4 -4
- package/dist/esm/co-empty-state.entry.js +4 -4
- package/dist/esm/co-event-calendar.entry.js +4 -4
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +95 -99
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +6 -6
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +32 -6
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/co-lightbox.entry.js +204 -21
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +85 -4
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +10 -4
- package/dist/esm/co-navbar.entry.js +4 -4
- package/dist/esm/co-number-field.entry.js +272 -9
- package/dist/esm/co-overlay.entry.js +6 -4
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +58 -21
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +47 -3
- package/dist/esm/co-radio-group.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +104 -13
- package/dist/esm/co-rich-text-editor.entry.js +11 -8
- package/dist/esm/co-rich-text-toolbar.entry.js +7 -3
- package/dist/esm/co-rich-text-viewer.entry.js +4 -3
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +1 -1
- package/dist/esm/co-select.entry.js +6 -6
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +2 -2
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +3 -3
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-time-field.entry.js +323 -0
- package/dist/esm/co-toast.entry.js +2 -2
- package/dist/esm/co-toggle-button-group.entry.js +4 -4
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/{co-avatar_2.entry.js → co-tooltip.entry.js} +49 -84
- package/dist/esm/co-transfer-list.entry.js +1 -1
- package/dist/esm/co-video.entry.js +32 -7
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/color-BRbgGqLw.js +136 -0
- package/dist/esm/{dateI18n-CnNpoKwg.js → dateI18n-jYd9gu_c.js} +36 -0
- package/dist/esm/{fieldChip-DsAfq1e0.js → fieldChip-uyggU8VV.js} +1 -1
- package/dist/esm/fileI18n-gKnOhsd2.js +84 -0
- package/dist/esm/{index-RuXxdKzC.js → index-68iUQp5j.js} +28 -10
- package/dist/esm/{index-CrtiywTB.js → index-DH5lfRNj.js} +35 -27
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{positioning-BMdapAL8.js → positioning-DFHRS9cJ.js} +32 -13
- package/dist/esm/{requiredMark-DCD-ZA51.js → requiredMark-BCJUuZvC.js} +1 -1
- package/dist/esm/{toolbar-config-WeuPA9Rw.js → toolbar-config-DOL2zACE.js} +10 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +6 -0
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +25 -0
- package/dist/types/components/co-badge/co-badge.d.ts +7 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +5 -1
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +360 -4
- package/dist/types/components/co-color-picker/presets.d.ts +107 -4
- package/dist/types/components/co-data-table/co-data-table.d.ts +15 -0
- package/dist/types/components/co-data-table/headerTruncationLogic.d.ts +24 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +43 -21
- package/dist/types/components/co-drawer/co-drawer.d.ts +4 -3
- package/dist/types/components/co-file-field/co-file-field.d.ts +14 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -1
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +9 -0
- package/dist/types/components/co-input/co-input.d.ts +9 -1
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +60 -4
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +16 -0
- package/dist/types/components/co-modal/co-modal.d.ts +10 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +42 -1
- package/dist/types/components/co-option-list/co-option-list.d.ts +16 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +23 -6
- package/dist/types/components/co-overlay/co-overlay.d.ts +4 -2
- package/dist/types/components/co-popover/co-popover.d.ts +16 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +38 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +1 -1
- package/dist/types/components/co-select/co-select.d.ts +6 -0
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -0
- package/dist/types/components/co-time-field/co-time-field.d.ts +60 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +5 -0
- package/dist/types/components/co-video/co-video.d.ts +4 -0
- package/dist/types/components.d.ts +530 -90
- package/dist/types/utils/amountText.d.ts +34 -0
- package/dist/types/utils/color.d.ts +44 -1
- package/dist/types/utils/colorPickerI18n.d.ts +26 -0
- package/dist/types/utils/dateI18n.d.ts +12 -0
- package/dist/types/utils/fileI18n.d.ts +1 -0
- package/dist/types/utils/positioning.d.ts +10 -0
- package/dist/types/utils/submenu.d.ts +44 -0
- package/package.json +3 -3
- package/dist/cjs/color-YhUkm10t.js +0 -32
- package/dist/cjs/time-LBHtzLHe.js +0 -42
- package/dist/cobalt/p-07904986.entry.js +0 -1
- package/dist/cobalt/p-09799193.entry.js +0 -1
- package/dist/cobalt/p-17ae943c.entry.js +0 -1
- package/dist/cobalt/p-23a103a0.entry.js +0 -1
- package/dist/cobalt/p-2f88d151.entry.js +0 -1
- package/dist/cobalt/p-3495fda1.entry.js +0 -1
- package/dist/cobalt/p-409f28bb.entry.js +0 -1
- package/dist/cobalt/p-682b3313.entry.js +0 -1
- package/dist/cobalt/p-6bf814f9.entry.js +0 -1
- package/dist/cobalt/p-7532c739.entry.js +0 -1
- package/dist/cobalt/p-76420ac1.entry.js +0 -1
- package/dist/cobalt/p-7c88163e.entry.js +0 -1
- package/dist/cobalt/p-7cf4b4ae.entry.js +0 -1
- package/dist/cobalt/p-7ea87b75.entry.js +0 -1
- package/dist/cobalt/p-8183f56f.entry.js +0 -1
- package/dist/cobalt/p-8345b25f.entry.js +0 -1
- package/dist/cobalt/p-93c68029.entry.js +0 -1
- package/dist/cobalt/p-983af614.entry.js +0 -1
- package/dist/cobalt/p-BG4WRR22.js +0 -1
- package/dist/cobalt/p-BMdapAL8.js +0 -1
- package/dist/cobalt/p-CF8OB_TM.js +0 -1
- package/dist/cobalt/p-CnNpoKwg.js +0 -1
- package/dist/cobalt/p-T4la7ly_.js +0 -1
- package/dist/cobalt/p-a2d31248.entry.js +0 -1
- package/dist/cobalt/p-a6b5cadd.entry.js +0 -1
- package/dist/cobalt/p-a8c64cc3.entry.js +0 -1
- package/dist/cobalt/p-b8581787.entry.js +0 -1
- package/dist/cobalt/p-bcedbd73.entry.js +0 -1
- package/dist/cobalt/p-da18b5f4.entry.js +0 -1
- package/dist/cobalt/p-dea43204.entry.js +0 -1
- package/dist/cobalt/p-dfcf667d.entry.js +0 -1
- package/dist/cobalt/p-dfd25f1d.entry.js +0 -1
- package/dist/cobalt/p-e6882ddd.entry.js +0 -1
- package/dist/cobalt/p-e84eda2e.entry.js +0 -1
- package/dist/cobalt/p-f25967fb.entry.js +0 -1
- package/dist/cobalt/p-f5f1b463.entry.js +0 -1
- package/dist/cobalt/p-fd39f410.entry.js +0 -1
- package/dist/cobalt/p-mAGnZXRn.js +0 -1
- package/dist/components/p-BMdapAL8.js +0 -1
- package/dist/components/p-BTQEg3UO.js +0 -1
- package/dist/components/p-Bbny3WUc.js +0 -1
- package/dist/components/p-Bz0QZqnB.js +0 -1
- package/dist/components/p-CF8OB_TM.js +0 -1
- package/dist/components/p-CR0izsJC.js +0 -1
- package/dist/components/p-CnNpoKwg.js +0 -1
- package/dist/components/p-DI1ek0EB.js +0 -1
- package/dist/components/p-DP0bbhfN.js +0 -1
- package/dist/components/p-D_9BRkj6.js +0 -1
- package/dist/components/p-DbipMAyT.js +0 -1
- package/dist/components/p-DgUBcJIS.js +0 -1
- package/dist/components/p-DolCkNsL.js +0 -1
- package/dist/components/p-hfGFsvaD.js +0 -1
- package/dist/esm/color-BG4WRR22.js +0 -30
- package/dist/esm/time-CF8OB_TM.js +0 -37
|
@@ -1,19 +1,117 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Normaliza lo que llega por la prop `presets` a la forma interna, dejando
|
|
3
|
+
* anotado si la `key` vino declarada o se sintetizó.
|
|
4
|
+
*
|
|
5
|
+
* `ColorPreset.key` es OPCIONAL porque el tipo es superficie pública (lo
|
|
6
|
+
* re-exporta `components.d.ts`): exigirla rompería a todo host que hoy pasa
|
|
7
|
+
* `[{ name, value }]`. Puertas adentro la damos por garantizada, así que se
|
|
8
|
+
* rellena acá. Un hex suelto no tiene identidad traducible: su propio hex
|
|
9
|
+
* ES su identidad.
|
|
10
|
+
*
|
|
11
|
+
* Vive acá y no en el componente porque es el ÚNICO lugar que sintetiza keys, y
|
|
12
|
+
* `splitPaletteGroups` —su consumidor— depende de esa marca: separarlos deja el
|
|
13
|
+
* invariante a un import de distancia de romperse en silencio.
|
|
14
|
+
*/
|
|
15
|
+
export const resolvePreset = (p) => {
|
|
16
|
+
var _a;
|
|
17
|
+
if (typeof p === 'string')
|
|
18
|
+
return { key: p, name: p, value: p, synthesizedKey: true };
|
|
19
|
+
// La key declarada se conserva tal cual; si no vino, la cadena de siempre.
|
|
20
|
+
if (p.key != null)
|
|
21
|
+
return { key: p.key, name: p.name, value: p.value };
|
|
22
|
+
return { key: (_a = p.name) !== null && _a !== void 0 ? _a : p.value, name: p.name, value: p.value, synthesizedKey: true };
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Paleta por default: 5 neutros + los 12 de marca (base.json).
|
|
26
|
+
* Los nombres vienen en inglés; el consumidor los traduce POR `key` — nunca
|
|
27
|
+
* duplicando la lista de valores, que fue lo que hizo derivar a FieldColor.vue.
|
|
28
|
+
*
|
|
29
|
+
* Sin blanco puro a propósito (spec §2): una etiqueta blanca desaparece sobre
|
|
30
|
+
* el fondo blanco. Los encabezados de documento lo pasan por la prop `presets`.
|
|
31
|
+
*
|
|
32
|
+
* Los hex son literales porque son DATA del picker, no estilo.
|
|
5
33
|
*/
|
|
6
34
|
export const DEFAULT_PRESETS = [
|
|
7
|
-
{ name: '
|
|
8
|
-
{ name: '
|
|
9
|
-
{ name: '
|
|
10
|
-
{ name: '
|
|
11
|
-
{ name: '
|
|
12
|
-
{ name: '
|
|
13
|
-
{ name: '
|
|
14
|
-
{
|
|
15
|
-
{
|
|
16
|
-
{ name: '
|
|
17
|
-
{ name: '
|
|
18
|
-
{ name: '
|
|
35
|
+
{ key: 'black', name: 'Black', value: '#1F1C1B' },
|
|
36
|
+
{ key: 'gray', name: 'Gray', value: '#585858' },
|
|
37
|
+
{ key: 'silver', name: 'Silver', value: '#C4C4C4' },
|
|
38
|
+
{ key: 'smoke', name: 'Smoke', value: '#E3E3E3' },
|
|
39
|
+
{ key: 'bone', name: 'Bone', value: '#F7F6F0' },
|
|
40
|
+
{ key: 'green', name: 'Green', value: '#02A270' },
|
|
41
|
+
{ key: 'olive', name: 'Olive', value: '#AAB43C' },
|
|
42
|
+
{ key: 'yellow', name: 'Yellow', value: '#FDBF00' },
|
|
43
|
+
{ key: 'orange', name: 'Orange', value: '#F0821E' },
|
|
44
|
+
{ key: 'red', name: 'Red', value: '#EB1E1E' },
|
|
45
|
+
{ key: 'pink', name: 'Pink', value: '#F32A73' },
|
|
46
|
+
{ key: 'burgundy', name: 'Burgundy', value: '#811137' },
|
|
47
|
+
{ key: 'violet', name: 'Violet', value: '#5F4BD7' },
|
|
48
|
+
{ key: 'electricBlue', name: 'Electric blue', value: '#000AFF' },
|
|
49
|
+
{ key: 'blue', name: 'Blue', value: '#2563EB' },
|
|
50
|
+
{ key: 'lightBlue', name: 'Light blue', value: '#00BEE6' },
|
|
51
|
+
{ key: 'teal', name: 'Teal', value: '#00AFAF' },
|
|
19
52
|
];
|
|
53
|
+
/**
|
|
54
|
+
* Los 5 primeros son neutros. Frontera ÚNICA: la grilla agrupa por acá y el
|
|
55
|
+
* seed sortea del resto. No repetir el `5` a mano en ningún otro lado.
|
|
56
|
+
*/
|
|
57
|
+
export const NEUTRAL_PRESET_KEYS = ['black', 'gray', 'silver', 'smoke', 'bone'];
|
|
58
|
+
/**
|
|
59
|
+
* Sólo las de marca, derivadas de la frontera. El seed aleatorio al CREAR un
|
|
60
|
+
* registro sortea de acá: nacer con una etiqueta gris es peor que el estado
|
|
61
|
+
* anterior.
|
|
62
|
+
*/
|
|
63
|
+
export const BRAND_PRESET_KEYS = DEFAULT_PRESETS
|
|
64
|
+
.filter((p) => !NEUTRAL_PRESET_KEYS.includes(p.key))
|
|
65
|
+
.map((p) => p.key);
|
|
66
|
+
// Índices de membresía, armados UNA vez a nivel de módulo: `splitPaletteGroups`
|
|
67
|
+
// corre en un getter que el render lee en cada pasada.
|
|
68
|
+
const NEUTRAL_KEYS = new Set(NEUTRAL_PRESET_KEYS);
|
|
69
|
+
const BRAND_KEYS = new Set(BRAND_PRESET_KEYS);
|
|
70
|
+
/**
|
|
71
|
+
* Parte una lista de presets en [neutros, marca], o devuelve `null` si no hay
|
|
72
|
+
* una partición que signifique algo.
|
|
73
|
+
*
|
|
74
|
+
* Se decide por MEMBRESÍA de `key`, nunca por identidad de referencia contra
|
|
75
|
+
* `DEFAULT_PRESETS`. La identidad es frágil por definición —dos arrays con el
|
|
76
|
+
* mismo contenido se comportan distinto— y ya costó un bug real: `FieldColor.vue`
|
|
77
|
+
* re-serializa la paleta para colgarle los nombres traducidos, así que llegaba
|
|
78
|
+
* como un array nuevo, caía en la rama "custom" y los `role="group"` +
|
|
79
|
+
* `aria-label` del spec §4 no se renderizaban NUNCA en la aplicación. La a11y
|
|
80
|
+
* existía sólo en los tests, que sí pasaban la paleta por identidad.
|
|
81
|
+
*
|
|
82
|
+
* Devuelve `null` en tres casos, y los tres terminan en un grupo único SIN
|
|
83
|
+
* rótulo:
|
|
84
|
+
* - alguna `key` la sintetizamos nosotros (`synthesizedKey`): el host no declaró
|
|
85
|
+
* nuestra paleta, y como doce de las keys son nombres de color CSS, mirar sólo
|
|
86
|
+
* el texto haría pasar por paleta nuestra a unos strings sueltos;
|
|
87
|
+
* - alguna `key` declarada es desconocida (paleta custom del host): no hay nada
|
|
88
|
+
* semántico que declarar;
|
|
89
|
+
* - falta alguno de los dos lados: un grupo solo no particiona nada, así que
|
|
90
|
+
* rotularlo anunciaría al lector de pantalla una frontera que no existe.
|
|
91
|
+
*
|
|
92
|
+
* ORDEN (decisión explícita): cuando la paleta se reconoce, se re-emite en orden
|
|
93
|
+
* canónico —neutros primero, marca después—, conservando el orden relativo del
|
|
94
|
+
* host DENTRO de cada lado. No es evitable: dos grupos contiguos no se pueden
|
|
95
|
+
* renderizar respetando un orden intercalado. Entre perder la agrupación
|
|
96
|
+
* semántica (spec §4) y perder un orden que el host no pudo curar sin adoptar
|
|
97
|
+
* antes nuestro vocabulario de keys, gana la agrupación. `flatPresets` y
|
|
98
|
+
* `focusedIndex` derivan de `presetGroups`, así que las flechas recorren el
|
|
99
|
+
* orden RENDERIZADO y no se desincronizan.
|
|
100
|
+
*/
|
|
101
|
+
export function splitPaletteGroups(presets) {
|
|
102
|
+
const neutrals = [];
|
|
103
|
+
const brand = [];
|
|
104
|
+
for (const p of presets) {
|
|
105
|
+
if (p.synthesizedKey)
|
|
106
|
+
return null;
|
|
107
|
+
if (NEUTRAL_KEYS.has(p.key))
|
|
108
|
+
neutrals.push(p);
|
|
109
|
+
else if (BRAND_KEYS.has(p.key))
|
|
110
|
+
brand.push(p);
|
|
111
|
+
else
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
if (!neutrals.length || !brand.length)
|
|
115
|
+
return null;
|
|
116
|
+
return { neutrals, brand };
|
|
117
|
+
}
|
|
@@ -165,13 +165,13 @@ export class CoColumnPicker {
|
|
|
165
165
|
return (h("div", { class: "co-column-picker__empty" }, h("co-icon", { name: "magnifying-glass", size: 40, class: "co-column-picker__empty-icon" }), h("span", null, this.emptyText)));
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h("div", { key: '
|
|
168
|
+
return (h("div", { key: 'bf11db2386df7088dfcec622ee02ce527fcef54f', class: {
|
|
169
169
|
'co-column-picker': true,
|
|
170
170
|
'co-column-picker--open': this.isOpen,
|
|
171
171
|
'co-column-picker--disabled': this.disabled,
|
|
172
172
|
'co-column-picker--focused': this.focused,
|
|
173
173
|
[`co-column-picker--${this.status}`]: this.status !== 'default',
|
|
174
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
174
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '27543398ce1e3fc9e0f08ee2e4d59167e4e79894', class: "co-column-picker__labels" }, this.label && h("label", { key: '7051f1b7c44c7f0da7ae0e741a14cbe8a3f3ba26', class: "co-column-picker__label" }, this.label), this.secondaryLabel && h("span", { key: '17d011a13a7f5f7c1c44f3738f15b3438180fc7b', class: "co-column-picker__secondary-label" }, this.secondaryLabel))), this.renderField(), this.isOpen && (h("div", { key: '4dcb6cb4289630a8238e53010aec69ec0cfc2e2a', class: "co-column-picker__dropdown" }, this.showSearch && (h("div", { key: '0233bff4eeb82fe7fdf91aad530c97fc6dcac06f', class: "co-column-picker__search" }, h("co-icon", { key: '64d1e6fc90c2380e509ca750854a40e416a902c1', name: "magnifying-glass", size: 14, class: "co-column-picker__search-icon" }), h("input", { key: '60e75c92d5fa2991542063e5add78d8b1c79861b', ref: el => (this.searchInputEl = el), class: "co-column-picker__search-input", type: "text", value: this.query, placeholder: this.placeholder, onInput: this.handleSearchInput, onClick: (e) => e.stopPropagation() }), this.query && (h("button", { key: 'c894d1f8cd91368d9662e63f288384a111b7ffe0', class: "co-column-picker__search-clear", type: "button", onClick: this.handleSearchClear }, h("co-icon", { key: 'ea9d732d1c828fb3146046418d6b5d8dbc5c3c1b', name: "x", size: 14 }))))), this.showToolbar && this.multiple && (h("div", { key: '1aa8fde242c2b5d531411d67ef7ea96da4b0dbef', class: "co-column-picker__toolbar" }, h("button", { key: 'ce0bf82e65376e0eef1d83ee2e977617116e53ea', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleSelectAll }, this.selectAllText), h("button", { key: '7e418708aa8234f8e60ffd64d1ef7aad5baa5c98', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleDeselectAll }, this.clearText), h("span", { key: '5f1d2021e7b7ac9d51b4fb4f530a52204558818b', class: "co-column-picker__toolbar-sep" }), h("button", { key: '67a4b15e8b7ca43942866b502c2e28da9edb48d2', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleExpandAll }, this.expandText), h("button", { key: 'c832eff1b36989819ad1b89c30c55398877c33b3', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleCollapseAll }, this.collapseText), h("span", { key: '1b0644a54e796cb85280850375dcade772a35648', style: { flex: '1' } }), this.selectedValues.length > 0 && h("span", { key: '4292ea60a8c533dc67c57b029dee1c19403d68ed', class: "co-column-picker__toolbar-counter" }, this.selectedValues.length, " ", this.selectedText))), h("div", { key: '9b06012caa39e9704698a77981b994d31c1d60e3', class: "co-column-picker__scroll", style: { maxHeight: `${this.maxHeight}px` } }, this.renderTree()))), this.helperText && (h("div", { key: 'c6c169d84d6b495101741df8012307cee8ada693', class: `co-column-picker__helper co-column-picker__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'e5e6d35e4b5356dbe1880742fe3c35ee9d845ae6', name: this.statusIcon, size: 14, weight: "fill", class: "co-column-picker__helper-icon" }), h("span", { key: 'e3a626266f8f68277ae8dbfa2d4194a57855af8d', class: "co-column-picker__helper-text" }, this.helperText)))));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "co-column-picker"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -531,7 +531,7 @@ export class CoCombobox {
|
|
|
531
531
|
"references": {
|
|
532
532
|
"ComboboxOption": {
|
|
533
533
|
"location": "local",
|
|
534
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
534
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-combobox/co-combobox.tsx",
|
|
535
535
|
"id": "src/components/co-combobox/co-combobox.tsx::ComboboxOption"
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -246,7 +246,7 @@ export class CoCommandSearch {
|
|
|
246
246
|
"references": {
|
|
247
247
|
"CommandItem": {
|
|
248
248
|
"location": "local",
|
|
249
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
249
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-command-search/co-command-search.tsx",
|
|
250
250
|
"id": "src/components/co-command-search/co-command-search.tsx::CommandItem"
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -153,8 +153,18 @@ co-data-table {
|
|
|
153
153
|
color: var(--co-semantic-text-muted);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
/* Wrapper co-tooltip[block] del label: toma el track flex que antes ocupaba el
|
|
157
|
+
label (min-width:0 = deja truncar; sus hermanos pin/sort/funnel llevan
|
|
158
|
+
flex-shrink:0). El tooltip sale del host (tsx), gateado por truncado. */
|
|
159
|
+
.co-data-table__th-tip {
|
|
157
160
|
flex: 1;
|
|
161
|
+
min-width: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Dentro del trigger del tooltip el label ya no es flex item: block explícito
|
|
165
|
+
o el ellipsis (overflow/text-overflow solo aplican a cajas block) no engancha. */
|
|
166
|
+
.co-data-table__th-label {
|
|
167
|
+
display: block;
|
|
158
168
|
overflow: hidden;
|
|
159
169
|
text-overflow: ellipsis;
|
|
160
170
|
}
|
|
@@ -208,6 +218,16 @@ co-data-table {
|
|
|
208
218
|
line-height: 0; /* el co-checkbox inline mete baseline-gap y estira el header a 43 */
|
|
209
219
|
}
|
|
210
220
|
|
|
221
|
+
/* Sin separador entre la casilla y la primera columna: la selección no es una
|
|
222
|
+
columna de datos y su borde derecho dibujaba un recuadro alrededor del check
|
|
223
|
+
(pedido de diseño 2026-09-16). Doble clase para ganarle al `border-right` de
|
|
224
|
+
las reglas base .co-data-table__th / .co-data-table__td, que van DESPUÉS en
|
|
225
|
+
este archivo. */
|
|
226
|
+
.co-data-table__th.co-data-table__th--checkbox,
|
|
227
|
+
.co-data-table__td.co-data-table__td--checkbox {
|
|
228
|
+
border-right: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
211
231
|
/* ─── STICKY COLUMNS ───────────────────────────────────────── */
|
|
212
232
|
.co-data-table__th--sticky,
|
|
213
233
|
.co-data-table__td--sticky {
|
|
@@ -268,6 +288,42 @@ co-data-table {
|
|
|
268
288
|
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
269
289
|
}
|
|
270
290
|
|
|
291
|
+
/* Tinte de hover/selected de las celdas sticky: un overlay ANIMABLE.
|
|
292
|
+
La fila pinta su tinte translúcido en el <tr> y lo transiciona
|
|
293
|
+
(background-color, duration-fast). Una celda sticky lleva base opaca —no
|
|
294
|
+
puede dejar ver lo que scrollea debajo—, así que el tinte va compuesto
|
|
295
|
+
ENCIMA de esa base. Componerlo con `background-image` (gradiente) no es
|
|
296
|
+
animable: la columna fijada prendía y apagaba de golpe mientras el resto de
|
|
297
|
+
la fila se desvanecía (2026-09-07). `::before` con opacity/background-color
|
|
298
|
+
y la MISMA transición que la fila. z-index -1 dentro del stacking context
|
|
299
|
+
de la celda (position:sticky + z-index) = encima de su base opaca, debajo
|
|
300
|
+
de su contenido. Los tokens espejan los de .co-data-table__row de abajo. */
|
|
301
|
+
.co-data-table__td--sticky::before {
|
|
302
|
+
content: '';
|
|
303
|
+
position: absolute;
|
|
304
|
+
inset: 0;
|
|
305
|
+
z-index: -1;
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
background-color: var(--co-semantic-surface-hover);
|
|
308
|
+
opacity: 0;
|
|
309
|
+
transition:
|
|
310
|
+
opacity var(--co-motion-duration-fast) var(--co-motion-ease-out),
|
|
311
|
+
background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.co-data-table__row:hover .co-data-table__td--sticky::before {
|
|
315
|
+
opacity: 1;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.co-data-table__row--selected .co-data-table__td--sticky::before {
|
|
319
|
+
opacity: 1;
|
|
320
|
+
background-color: var(--co-color-opacity-negro-4);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.co-data-table__row--selected:hover .co-data-table__td--sticky::before {
|
|
324
|
+
background-color: var(--co-color-opacity-negro-8);
|
|
325
|
+
}
|
|
326
|
+
|
|
271
327
|
/* ─── RESIZE HANDLE ─────────────────────────────────────────── */
|
|
272
328
|
.co-data-table__resize-handle {
|
|
273
329
|
position: absolute;
|
|
@@ -319,7 +375,12 @@ co-data-table {
|
|
|
319
375
|
wrapper, never on the cell itself. */
|
|
320
376
|
height: 48px;
|
|
321
377
|
padding: 0 var(--co-spacing-md);
|
|
322
|
-
|
|
378
|
+
/* Transparente, NUNCA `inherit`: el hover/selected es un tinte translúcido
|
|
379
|
+
pintado en el <tr>. Con `inherit` cada celda normal lo repintaba encima
|
|
380
|
+
(doble tinte, ~15%) mientras las sticky —base opaca + un gradiente del
|
|
381
|
+
mismo tinte— quedaban al 8%: la columna fijada se veía más clara que el
|
|
382
|
+
resto de la fila en hover. Guard: co-data-table-cell-background-guard.test.ts */
|
|
383
|
+
background: transparent;
|
|
323
384
|
border-bottom: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
324
385
|
border-right: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
325
386
|
vertical-align: middle;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { measureTruncatedHeaders } from "./headerTruncationLogic";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
import { edgeAutoScrollSpeed, resizeWidth } from "../../utils/columnResize";
|
|
3
4
|
/**
|
|
@@ -50,6 +51,9 @@ export class CoDataTable {
|
|
|
50
51
|
this.parsedFilteredFields = [];
|
|
51
52
|
this.parsedIndirectFields = [];
|
|
52
53
|
this.columnWidths = new Map();
|
|
54
|
+
/** Columnas cambiadas → re-medir tras el render (un cambio de texto con el
|
|
55
|
+
* mismo ancho no dispara el ResizeObserver). */
|
|
56
|
+
this.headerMeasurePending = false;
|
|
53
57
|
this.resizingColumn = null;
|
|
54
58
|
this.resizeStartX = 0;
|
|
55
59
|
this.resizeStartWidth = 0;
|
|
@@ -71,6 +75,7 @@ export class CoDataTable {
|
|
|
71
75
|
}
|
|
72
76
|
/* ─── WATCHERS ──────────────────────────────────────────── */
|
|
73
77
|
parseColumns() {
|
|
78
|
+
this.headerMeasurePending = true;
|
|
74
79
|
try {
|
|
75
80
|
const cols = typeof this.columns === 'string' ? JSON.parse(this.columns) : this.columns;
|
|
76
81
|
this.parsedColumns = cols;
|
|
@@ -119,13 +124,39 @@ export class CoDataTable {
|
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
componentWillLoad() {
|
|
127
|
+
// Recursos por instancia acá y no en inicializadores de campo: la instancia
|
|
128
|
+
// envuelta de @stencil/vitest los omite (ver nota en co-data-table.spec.tsx).
|
|
129
|
+
this.headerLabelEls = new Map();
|
|
130
|
+
this.truncatedHeaders = {};
|
|
122
131
|
this.parseColumns();
|
|
123
132
|
this.parseRows();
|
|
124
133
|
this.parseSelectedKeys();
|
|
125
134
|
this.parseFilteredFields();
|
|
126
135
|
this.parseIndirectFields();
|
|
127
136
|
}
|
|
137
|
+
componentDidLoad() {
|
|
138
|
+
// Tooltip del header SOLO cuando el label trunca (patrón co-list-item). El
|
|
139
|
+
// estado tiene que estar correcto ANTES del hover: Stencil re-renderiza en
|
|
140
|
+
// rAF, así que una medida en el pointerenter del <th> llega después de que
|
|
141
|
+
// co-tooltip leyó `disabled` al agendar su show (verificado headless
|
|
142
|
+
// 2026-09-07). Un ResizeObserver re-mide cuando el label cambia de ancho
|
|
143
|
+
// (resize de columna, panel que se muestra, viewport) — y en la carga.
|
|
144
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
145
|
+
this.headerResizeObserver = new ResizeObserver(() => this.measureHeaderTruncation());
|
|
146
|
+
this.headerLabelEls.forEach((el) => this.headerResizeObserver.observe(el));
|
|
147
|
+
}
|
|
148
|
+
this.measureHeaderTruncation();
|
|
149
|
+
}
|
|
150
|
+
disconnectedCallback() {
|
|
151
|
+
var _a;
|
|
152
|
+
(_a = this.headerResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
153
|
+
this.headerResizeObserver = undefined;
|
|
154
|
+
}
|
|
128
155
|
componentDidRender() {
|
|
156
|
+
if (this.headerMeasurePending) {
|
|
157
|
+
this.headerMeasurePending = false;
|
|
158
|
+
this.measureHeaderTruncation();
|
|
159
|
+
}
|
|
129
160
|
// Auto-scroll parity: the resize tick grew the column (async @State render)
|
|
130
161
|
// and owes the container the same px of scroll. Here the DOM already has
|
|
131
162
|
// the new table width, so the advance can't clamp — width and scroll land
|
|
@@ -277,6 +308,29 @@ export class CoDataTable {
|
|
|
277
308
|
handleRowDblClick(row, index) {
|
|
278
309
|
this.coRowDblClick.emit({ row, index });
|
|
279
310
|
}
|
|
311
|
+
/** Escritura guardada: misma referencia = sin re-render de la tabla. */
|
|
312
|
+
measureHeaderTruncation() {
|
|
313
|
+
const next = measureTruncatedHeaders(this.truncatedHeaders, this.headerLabelEls);
|
|
314
|
+
if (next !== this.truncatedHeaders)
|
|
315
|
+
this.truncatedHeaders = next;
|
|
316
|
+
}
|
|
317
|
+
/** ref del label: registra/observa al montar, limpia al desmontar (ref null). */
|
|
318
|
+
registerHeaderLabel(field, el) {
|
|
319
|
+
var _a, _b, _c;
|
|
320
|
+
const prev = this.headerLabelEls.get(field);
|
|
321
|
+
if (el) {
|
|
322
|
+
if (prev === el)
|
|
323
|
+
return;
|
|
324
|
+
if (prev)
|
|
325
|
+
(_a = this.headerResizeObserver) === null || _a === void 0 ? void 0 : _a.unobserve(prev);
|
|
326
|
+
this.headerLabelEls.set(field, el);
|
|
327
|
+
(_b = this.headerResizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|
|
328
|
+
}
|
|
329
|
+
else if (prev) {
|
|
330
|
+
(_c = this.headerResizeObserver) === null || _c === void 0 ? void 0 : _c.unobserve(prev);
|
|
331
|
+
this.headerLabelEls.delete(field);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
280
334
|
handleColumnPin(field, e) {
|
|
281
335
|
e.stopPropagation();
|
|
282
336
|
this.coColumnPin.emit({ field });
|
|
@@ -386,7 +440,7 @@ export class CoDataTable {
|
|
|
386
440
|
: undefined }, h("span", { class: "co-data-table__th-content" }, h("span", { class: {
|
|
387
441
|
'co-data-table__pin-icon': true,
|
|
388
442
|
'co-data-table__pin-icon--active': !!col.sticky,
|
|
389
|
-
}, title: col.sticky ? 'Unpin column' : 'Pin column', onClick: (e) => this.handleColumnPin(col.field, e) }, h("co-icon", { name: "push-pin", size: 14, weight: col.sticky ? 'fill' : 'regular' })), col.sortable ? (h("button", { type: "button", class: "co-data-table__sort-button", "aria-label": `Sort by ${col.label}`, onClick: () => this.handleSort(col.field) }, h("span", { class: "co-data-table__th-label" }, col.label), this.renderSortIcon(col))) : (h("span", { class: "co-data-table__th-label" }, col.label)), col.filterable && (h("span", { class: {
|
|
443
|
+
}, title: col.sticky ? 'Unpin column' : 'Pin column', onClick: (e) => this.handleColumnPin(col.field, e) }, h("co-icon", { name: "push-pin", size: 14, weight: col.sticky ? 'fill' : 'regular' })), col.sortable ? (h("button", { type: "button", class: "co-data-table__sort-button", "aria-label": `Sort by ${col.label}`, onClick: () => this.handleSort(col.field) }, h("co-tooltip", { block: true, class: "co-data-table__th-tip", content: col.label, placement: "top", disabled: !this.truncatedHeaders[col.field] }, h("span", { class: "co-data-table__th-label", ref: (el) => this.registerHeaderLabel(col.field, el) }, col.label)), this.renderSortIcon(col))) : (h("co-tooltip", { block: true, class: "co-data-table__th-tip", content: col.label, placement: "top", disabled: !this.truncatedHeaders[col.field] }, h("span", { class: "co-data-table__th-label", ref: (el) => this.registerHeaderLabel(col.field, el) }, col.label))), col.filterable && (h("span", { class: {
|
|
390
444
|
'co-data-table__filter-icon': true,
|
|
391
445
|
'co-data-table__filter-icon--active': this.parsedFilteredFields.includes(col.field),
|
|
392
446
|
'co-data-table__filter-icon--indirect': !this.parsedFilteredFields.includes(col.field) && this.parsedIndirectFields.includes(col.field),
|
|
@@ -421,12 +475,12 @@ export class CoDataTable {
|
|
|
421
475
|
: h("slot", { name: "empty-action" }))));
|
|
422
476
|
}
|
|
423
477
|
render() {
|
|
424
|
-
return (h("div", { key: '
|
|
478
|
+
return (h("div", { key: '6f71533676a2c66ae46b1ee9940b405744cef174', class: {
|
|
425
479
|
'co-data-table': true,
|
|
426
480
|
'co-data-table--resizing': this.resizingColumn !== null,
|
|
427
481
|
'co-data-table--loading': this.loading,
|
|
428
482
|
'co-data-table--empty': !this.loading && this.parsedRows.length === 0,
|
|
429
|
-
} }, h("div", { key: '
|
|
483
|
+
} }, h("div", { key: '8176dca34858e32ba2ce008ac44cf444ea952f08', class: "co-data-table__scroll" }, h("table", { key: 'f285815728244a7161d91dbed6ca87b158db4de6', class: "co-data-table__table", style: { width: `${this.getTableWidth()}px`, minWidth: '100%' } }, this.renderColgroup(), this.renderHeader(), h("slot", { key: '97f4ed9020a7bdb8b262313a10451e9aff754a8e' }), this.loading ? this.renderSkeletonBody() : null)), this.renderEmpty()));
|
|
430
484
|
}
|
|
431
485
|
static get is() { return "co-data-table"; }
|
|
432
486
|
static get originalStyleUrls() {
|
|
@@ -450,7 +504,7 @@ export class CoDataTable {
|
|
|
450
504
|
"references": {
|
|
451
505
|
"CoDataTableColumn": {
|
|
452
506
|
"location": "local",
|
|
453
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
507
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-data-table/co-data-table.tsx",
|
|
454
508
|
"id": "src/components/co-data-table/co-data-table.tsx::CoDataTableColumn"
|
|
455
509
|
}
|
|
456
510
|
}
|
|
@@ -815,6 +869,7 @@ export class CoDataTable {
|
|
|
815
869
|
"parsedFilteredFields": {},
|
|
816
870
|
"parsedIndirectFields": {},
|
|
817
871
|
"columnWidths": {},
|
|
872
|
+
"truncatedHeaders": {},
|
|
818
873
|
"resizingColumn": {},
|
|
819
874
|
"resizeStartX": {},
|
|
820
875
|
"resizeStartWidth": {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lógica pura del tooltip de header truncado (sin DOM real: testeable en vitest).
|
|
3
|
+
* Misma regla que co-list-item y `useEllipsisTooltip` de suite-v2: +1px de
|
|
4
|
+
* tolerancia porque el navegador redondea a enteros y 1px de más NO es corte.
|
|
5
|
+
*/
|
|
6
|
+
export function isEllipsisTruncated(node) {
|
|
7
|
+
return !!node && node.scrollWidth > node.clientWidth + 1;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Próximo mapa field → truncado. Devuelve el MISMO objeto si nada cambió (un
|
|
11
|
+
* @State de Stencil se compara por referencia: escribir siempre re-renderiza la
|
|
12
|
+
* tabla entera en cada hover de header).
|
|
13
|
+
*/
|
|
14
|
+
export function nextTruncatedHeaders(prev, field, truncated) {
|
|
15
|
+
if (!!prev[field] === truncated)
|
|
16
|
+
return prev;
|
|
17
|
+
return Object.assign(Object.assign({}, prev), { [field]: truncated });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mide TODOS los labels registrados (field → nodo) en una pasada y devuelve el
|
|
21
|
+
* próximo mapa; la MISMA referencia si ningún field cambió. Un field que ya no
|
|
22
|
+
* está registrado (columna quitada) desaparece del mapa.
|
|
23
|
+
*/
|
|
24
|
+
export function measureTruncatedHeaders(prev, labels) {
|
|
25
|
+
let changed = Object.keys(prev).some((field) => !labels.has(field));
|
|
26
|
+
const next = {};
|
|
27
|
+
labels.forEach((node, field) => {
|
|
28
|
+
const truncated = isEllipsisTruncated(node);
|
|
29
|
+
next[field] = truncated;
|
|
30
|
+
if (!!prev[field] !== truncated)
|
|
31
|
+
changed = true;
|
|
32
|
+
});
|
|
33
|
+
return changed ? next : prev;
|
|
34
|
+
}
|
|
@@ -84,17 +84,17 @@ export class CoDataTablePagination {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const pages = this.getVisiblePages();
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '7bb75d863d77c1ee257994eb81557f4efd320cf3', class: "co-pagination", part: "pagination" }, h("div", { key: '593441b0dc0178fd73a333636764e29fe60efa49', class: "co-pagination__section" }, h("span", { key: '453dc30bbfbd9eb899c8bd2e7aa112e9f183a8d8', class: "co-pagination__label" }, this.jumpToPageLabel), h("input", { key: 'a806c23c5515f81d4751a69950f3ff944a41c9b9', type: "text", class: "co-pagination__jump-input", value: this.jumpToValue || String(this.page), onInput: (e) => {
|
|
88
88
|
this.jumpToValue = e.target.value;
|
|
89
89
|
}, onKeyDown: (e) => this.handleJumpToPage(e), onFocus: (e) => {
|
|
90
90
|
e.target.select();
|
|
91
|
-
}, part: "jump-input" })), h("div", { key: '
|
|
91
|
+
}, part: "jump-input" })), h("div", { key: '9eadd04de3cab8260445a2eb133734c3c3aa7cf6', class: "co-pagination__section co-pagination__section--page-size" }, h("div", { key: 'e3dd5337ee92d9fa715fb27b1ff689b4e6fd4559', class: "co-pagination__page-size-trigger", onClick: () => { this.showPageSizeDropdown = !this.showPageSizeDropdown; } }, h("span", { key: '8699129db80a836d122b150d357f3c6d72b21683', class: "co-pagination__page-size-value" }, this.pageSize), h("span", { key: 'cfc74fc55c23887dc2d13efa379458d8ef9dd947', class: "co-pagination__label" }, this.perPageLabel), h("co-icon", { key: '700821528fd851f6c8cbafb07ffe3ba95838d977', name: "caret-down", size: 14 })), this.showPageSizeDropdown && (h("div", { key: 'd0cd76772f54b3a5853d8158dd72d5972a9ef5e8', class: "co-pagination__page-size-dropdown", part: "dropdown" }, this.parsedPageSizes.map(size => (h("button", { class: {
|
|
92
92
|
'co-pagination__page-size-option': true,
|
|
93
93
|
'co-pagination__page-size-option--active': size === this.pageSize,
|
|
94
|
-
}, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '
|
|
94
|
+
}, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '1389c60c3985201af55ba9ba609e020e6fb43c86', class: "co-pagination__spacer" }), h("div", { key: '6254c6c322e1ca929c6f2654ec80887efad30615', class: "co-pagination__section" }, h("span", { key: 'aeb3619ad97e67f866cc982745efb56aafc25f87', class: "co-pagination__count" }, this.totalCount.toLocaleString(), " ", this.recordsLabel)), h("div", { key: 'fae17e08dd1383aaf71587b7efe504d575e198c6', class: "co-pagination__section co-pagination__nav" }, h("button", { key: '912bfea50023f5e039364a5f4e3dc1d7bb2f05e7', class: "co-pagination__nav-btn", disabled: this.page <= 1, onClick: () => this.goToPage(this.page - 1), part: "prev-btn" }, this.previousLabel), pages.map(p => p === '...' ? (h("span", { class: "co-pagination__ellipsis" }, "\u2026")) : (h("button", { class: {
|
|
95
95
|
'co-pagination__page-btn': true,
|
|
96
96
|
'co-pagination__page-btn--active': p === this.page,
|
|
97
|
-
}, onClick: () => this.goToPage(p) }, p))), h("button", { key: '
|
|
97
|
+
}, onClick: () => this.goToPage(p) }, p))), h("button", { key: '7c933d5a710cb5509b360d23fa0512df1a7a8bc4', class: "co-pagination__nav-btn", disabled: this.page >= this.totalPages, onClick: () => this.goToPage(this.page + 1), part: "next-btn" }, this.nextLabel))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "co-data-table-pagination"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -162,20 +162,20 @@ export class CoDateField {
|
|
|
162
162
|
// should still fall back to the localized default placeholder.
|
|
163
163
|
const placeholder = this.placeholder || t.setDate;
|
|
164
164
|
const helper = this.isInvalid ? this.errorMessage : this.helperText;
|
|
165
|
-
return (h("div", { key: '
|
|
165
|
+
return (h("div", { key: '0153dfa52a577f005fdcf86035611a0cecf56ecc', class: {
|
|
166
166
|
'co-date-field': true,
|
|
167
167
|
'co-date-field--disabled': this.disabled,
|
|
168
168
|
'co-date-field--focused': this.hasFocus,
|
|
169
169
|
'co-date-field--filled': this.hasValue,
|
|
170
170
|
'co-date-field--invalid': this.isInvalid,
|
|
171
171
|
[`co-date-field--${this.size}`]: true,
|
|
172
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
172
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '477602a3cb3c1440b10d612c194f7d2ae5e03456', class: "co-date-field__labels" }, h("label", { key: '3f0b5d1243e703f70e827a48200355bf028ae4ca', class: "co-date-field__label", part: "label" }, this.label, h(RequiredMark, { key: '47d3b8f98cd50e63412d3ae6ed9f4e300210a60b', required: this.required })))), h("div", { key: '4f3b093f9c159e8476f6285402a5f8349bc55112', class: "co-date-field__field-row" }, h("div", { key: '37bff398a2377f38d34b6a1c6e15b1e0e2de783e', class: "co-date-field__field", part: "field" }, h("co-icon", { key: 'fe82197dcc67464415c3f49e565009acfe7b40b2', name: "calendar", size: 16, class: "co-date-field__icon" }), h("div", { key: '069847b02a6028e2ad0bc3c4a0d3817c899c2fbf', class: "co-date-field__input-wrapper" }, h("input", { key: '4669fc7cf06aff450707bf7975fd1141efdd8304', ref: (el) => (this.inputEl = el), class: "co-date-field__native", type: "text", inputMode: "numeric", autocomplete: "off", value: this.draft, placeholder: placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? t.dateLabel : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { key: 'fd52945af291236aecf4068625f8872b09e7d22f', class: {
|
|
173
173
|
'co-date-field__clear': true,
|
|
174
174
|
'co-date-field__clear--hidden': !showClear,
|
|
175
|
-
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: '
|
|
175
|
+
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: 'b4552bb9b1c77ffb156684464f14579530c00508', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: '00e95a4ebc29f4d6b9a6dae1dc14456dcb7af21f', type: "hidden", name: this.name, value: (_b = this.value) !== null && _b !== void 0 ? _b : '' }), helper && (h("div", { key: '6c0b2272a6ba4139ad7bbd5e8755ef599f2ebe03', class: {
|
|
176
176
|
'co-date-field__helper': true,
|
|
177
177
|
'co-date-field__helper--error': this.isInvalid,
|
|
178
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
178
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'e9340bf5490100f6b1a93fa7af1950253ae442e7', name: "warning-circle", size: 14, class: "co-date-field__helper-icon" })), h("span", { key: '5bd1d55005d6df5ef159bbd6e60b14c69b0314cc', class: "co-date-field__helper-text" }, helper)))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "co-date-field"; }
|
|
181
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class CoDateRange {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("co-date-range-picker", { key: '
|
|
36
|
+
return (h("co-date-range-picker", { key: '2d03e6fa36f8f44830beb798a1a3096b93f3478d', value: this.value, label: this.label, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, presets: this.presets, helperText: this.helperText, locale: this.locale, applyLabel: this.applyLabel, clearLabel: this.clearLabel, onCoApply: this.handleApply, onCoClear: () => this.coClear.emit() }));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "co-date-range"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1039,7 +1039,7 @@ export class CoDateRangePicker {
|
|
|
1039
1039
|
"references": {
|
|
1040
1040
|
"DateRangeValue": {
|
|
1041
1041
|
"location": "local",
|
|
1042
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1042
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1043
1043
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
@@ -1060,7 +1060,7 @@ export class CoDateRangePicker {
|
|
|
1060
1060
|
"references": {
|
|
1061
1061
|
"DateRangeValue": {
|
|
1062
1062
|
"location": "local",
|
|
1063
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1063
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1064
1064
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|