@prolibu-suite/cobalt-core 0.4.0 → 0.6.0
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/README.md +3 -3
- package/custom-elements.json +370 -154
- package/dist/cjs/co-accordion.cjs.entry.js +4 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-autocomplete.cjs.entry.js +38 -73
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- package/dist/cjs/co-avatar.cjs.entry.js +2 -2
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +4 -4
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar-month.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar_3.cjs.entry.js +19 -14
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/co-chip_2.cjs.entry.js +485 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +51 -82
- package/dist/cjs/co-command-search.cjs.entry.js +20 -59
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +54 -5
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- 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-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-empty-state.cjs.entry.js +4 -4
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +5 -5
- package/dist/cjs/co-file-field.cjs.entry.js +7 -7
- 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 +2 -2
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +19 -3
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/co-lightbox.cjs.entry.js +6 -6
- 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 +2 -2
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +3 -3
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
- package/dist/cjs/co-popover.cjs.entry.js +12 -3
- package/dist/cjs/co-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- 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 +31 -135
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +4 -4
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +1 -1
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +7 -7
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +10 -8
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +2 -2
- 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 +10 -4
- package/dist/cjs/co-tab.cjs.entry.js +5 -5
- 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-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/co-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-video.cjs.entry.js +4 -4
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{fieldChip-DtYUP0VZ.js → fieldChip-D8YJCyQF.js} +1 -1
- package/dist/cjs/{index-NNvye1ul.js → index-DxEFsH_t.js} +9 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{requiredMark-DyjZzUCd.js → requiredMark-B3pKyqYI.js} +1 -1
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-69289e82.entry.js → p-002e5beb.entry.js} +1 -1
- package/dist/cobalt/{p-c23a2ff6.entry.js → p-02c5a9a9.entry.js} +1 -1
- package/dist/cobalt/{p-9310739f.entry.js → p-075eed3d.entry.js} +1 -1
- package/dist/cobalt/p-0c0621a7.entry.js +1 -0
- package/dist/cobalt/{p-20c68308.entry.js → p-0d6a562d.entry.js} +1 -1
- package/dist/cobalt/p-0d7536a8.entry.js +1 -0
- package/dist/cobalt/{p-f72f0e38.entry.js → p-13fc9c8a.entry.js} +1 -1
- package/dist/cobalt/{p-39a29bbb.entry.js → p-14d4c5c7.entry.js} +1 -1
- package/dist/cobalt/{p-96baec0e.entry.js → p-1681ce1d.entry.js} +1 -1
- package/dist/cobalt/{p-593fd213.entry.js → p-1726ce07.entry.js} +1 -1
- package/dist/cobalt/{p-7d9f2021.entry.js → p-20ba59a2.entry.js} +1 -1
- package/dist/cobalt/{p-35c63fdc.entry.js → p-2d1cbd7f.entry.js} +1 -1
- package/dist/cobalt/{p-7040e4c5.entry.js → p-373cd08e.entry.js} +1 -1
- package/dist/cobalt/{p-4aeefe3f.entry.js → p-3f06d373.entry.js} +1 -1
- package/dist/cobalt/{p-8fdf2163.entry.js → p-3f68fd2e.entry.js} +1 -1
- package/dist/cobalt/{p-ca108c6d.entry.js → p-47a2dd67.entry.js} +1 -1
- package/dist/cobalt/{p-328f0470.entry.js → p-495c9b99.entry.js} +1 -1
- package/dist/cobalt/p-4a075257.entry.js +1 -0
- package/dist/cobalt/{p-aa1ad9fa.entry.js → p-5647ca9d.entry.js} +1 -1
- package/dist/cobalt/{p-3d07e4a9.entry.js → p-5b31d45b.entry.js} +1 -1
- package/dist/cobalt/p-5c3101b5.entry.js +1 -0
- package/dist/cobalt/{p-0e1afdea.entry.js → p-5c43d30e.entry.js} +1 -1
- package/dist/cobalt/{p-c85a6a9e.entry.js → p-5e9a9caf.entry.js} +1 -1
- package/dist/cobalt/{p-b4dcc260.entry.js → p-5edd0d3f.entry.js} +1 -1
- package/dist/cobalt/{p-d7c9cf93.entry.js → p-627d2d1a.entry.js} +1 -1
- package/dist/cobalt/{p-e8e752f9.entry.js → p-6911a034.entry.js} +1 -1
- package/dist/cobalt/{p-1388eac6.entry.js → p-6ad1625a.entry.js} +1 -1
- package/dist/cobalt/{p-c682453a.entry.js → p-70f70e02.entry.js} +1 -1
- package/dist/cobalt/p-73b30ebb.entry.js +1 -0
- package/dist/cobalt/p-75dcaeb0.entry.js +1 -0
- package/dist/cobalt/p-771bc8fe.entry.js +1 -0
- package/dist/cobalt/p-7780ddb5.entry.js +1 -0
- package/dist/cobalt/{p-e55fb916.entry.js → p-77d01b39.entry.js} +1 -1
- package/dist/cobalt/p-7FZXeBK4.js +1 -0
- package/dist/cobalt/{p-860a685f.entry.js → p-809015dd.entry.js} +1 -1
- package/dist/cobalt/{p-d403d9c4.entry.js → p-8128e84a.entry.js} +1 -1
- package/dist/cobalt/p-81cfd951.entry.js +1 -0
- package/dist/cobalt/{p-dd03c00b.entry.js → p-85eed52c.entry.js} +1 -1
- package/dist/cobalt/p-86d4e016.entry.js +1 -0
- package/dist/cobalt/{p-3dd6b57b.entry.js → p-86e60cfa.entry.js} +1 -1
- package/dist/cobalt/p-8a9ed2da.entry.js +1 -0
- package/dist/cobalt/{p-fb86cdb9.entry.js → p-8dfb6886.entry.js} +1 -1
- package/dist/cobalt/{p-d4086c34.entry.js → p-8e823c15.entry.js} +1 -1
- package/dist/cobalt/p-8f194753.entry.js +1 -0
- package/dist/cobalt/{p-08519a7c.entry.js → p-9a587867.entry.js} +1 -1
- package/dist/cobalt/{p-376c43b8.entry.js → p-9c6ca902.entry.js} +1 -1
- package/dist/cobalt/{p-bae82095.entry.js → p-9c873a6a.entry.js} +1 -1
- package/dist/cobalt/{p-BxzuCRMr.js → p-BAA4ln31.js} +1 -1
- package/dist/cobalt/{p-b8200f7f.entry.js → p-a6900010.entry.js} +1 -1
- package/dist/cobalt/p-a9afbaa6.entry.js +1 -0
- package/dist/cobalt/{p-2d4e1ca8.entry.js → p-aa20ffca.entry.js} +1 -1
- package/dist/cobalt/{p-e93644cb.entry.js → p-ac5df270.entry.js} +1 -1
- package/dist/cobalt/{p-8ae5da0c.entry.js → p-af4cb263.entry.js} +1 -1
- package/dist/cobalt/p-b1197c08.entry.js +1 -0
- package/dist/cobalt/p-b4bed98b.entry.js +1 -0
- package/dist/cobalt/{p-1cecb9e1.entry.js → p-b8ec0cc1.entry.js} +1 -1
- package/dist/cobalt/p-ba66584f.entry.js +1 -0
- package/dist/cobalt/{p-ff6be242.entry.js → p-bb534985.entry.js} +1 -1
- package/dist/cobalt/{p-6f12e721.entry.js → p-c0f39ddd.entry.js} +1 -1
- package/dist/cobalt/{p-804d025f.entry.js → p-c1e53e4c.entry.js} +1 -1
- package/dist/cobalt/p-c2e2eee9.entry.js +1 -0
- package/dist/cobalt/{p-af0495d8.entry.js → p-c3462def.entry.js} +1 -1
- package/dist/cobalt/p-c6fedc59.entry.js +1 -0
- package/dist/cobalt/{p-f6b93f17.entry.js → p-c750b2d2.entry.js} +1 -1
- package/dist/cobalt/{p-363a5262.entry.js → p-cc0a4617.entry.js} +1 -1
- package/dist/cobalt/{p-1af6ef83.entry.js → p-cc8e2f16.entry.js} +1 -1
- package/dist/cobalt/{p-c857b9ff.entry.js → p-d9608046.entry.js} +1 -1
- package/dist/cobalt/{p-be3e61f4.entry.js → p-e1957078.entry.js} +1 -1
- package/dist/cobalt/{p-a0749d7b.entry.js → p-e2762263.entry.js} +1 -1
- package/dist/cobalt/{p-21916f82.entry.js → p-e33853fa.entry.js} +1 -1
- package/dist/cobalt/p-e420d5c9.entry.js +1 -0
- package/dist/cobalt/{p-304c3be1.entry.js → p-e4a539da.entry.js} +1 -1
- package/dist/cobalt/{p-0be124d5.entry.js → p-e7085f08.entry.js} +1 -1
- package/dist/cobalt/p-e710b9ea.entry.js +1 -0
- package/dist/cobalt/p-e9aaeaf7.entry.js +1 -0
- package/dist/cobalt/{p-79e49749.entry.js → p-f073b467.entry.js} +1 -1
- package/dist/cobalt/p-f0de4415.entry.js +1 -0
- package/dist/cobalt/p-f36e461f.entry.js +1 -0
- package/dist/cobalt/p-f6ac5301.entry.js +1 -0
- package/dist/cobalt/{p-58aed8d6.entry.js → p-f6b0c4a0.entry.js} +1 -1
- package/dist/cobalt/p-f86ccb38.entry.js +1 -0
- package/dist/cobalt/{p-d7cbb4c7.entry.js → p-fb251497.entry.js} +1 -1
- package/dist/cobalt/p-fd27c2bd.entry.js +1 -0
- package/dist/cobalt/p-tT-aZV0-.js +2 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/co-accordion/co-accordion.css +20 -8
- package/dist/collection/components/co-accordion/co-accordion.js +5 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +4 -751
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +41 -76
- package/dist/collection/components/co-avatar/co-avatar.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +2 -2
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +5 -1
- package/dist/collection/components/co-button/co-button.js +2 -2
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +12 -12
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +3 -3
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +6 -830
- package/dist/collection/components/co-combobox/co-combobox.js +73 -84
- package/dist/collection/components/co-command-search/co-command-search.css +2 -60
- package/dist/collection/components/co-command-search/co-command-search.js +23 -48
- package/dist/collection/components/co-data-table/co-data-table.css +42 -7
- package/dist/collection/components/co-data-table/co-data-table.js +108 -3
- 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 +4 -7
- 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.css +9 -9
- package/dist/collection/components/co-drawer/co-drawer.css +49 -13
- package/dist/collection/components/co-drawer/co-drawer.js +9 -4
- 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-empty-state/co-empty-state.css +1 -1
- 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-fab/co-fab.css +8 -1
- package/dist/collection/components/co-fab/co-fab.js +24 -5
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- 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.js +1 -1
- package/dist/collection/components/co-input/co-input.css +9 -6
- package/dist/collection/components/co-input/co-input.js +57 -0
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +2 -2
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- 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 +1 -1
- package/dist/collection/components/co-modal/co-modal.js +2 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +10 -11
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +796 -58
- package/dist/collection/components/co-option-list/co-option-list.js +45 -6
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +4 -7
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.js +11 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +1 -1
- 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 +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +6 -897
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1 -1
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2 -2
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +2 -2
- package/dist/collection/components/co-select/co-select.css +4 -7
- package/dist/collection/components/co-select/co-select.js +4 -4
- 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 +8 -6
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +8 -6
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +3 -1
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +39 -4
- package/dist/collection/components/co-tab/co-tab.js +6 -6
- package/dist/collection/components/co-tab-group/co-tab-group.css +11 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +10 -4
- 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-toast/co-toast.js +2 -2
- 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.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +2 -2
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-app-shell.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-bottom-sheet.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-group.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.js +1 -1
- package/dist/components/co-card.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-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-empty-state.js +1 -1
- package/dist/components/co-event-calendar.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-row.js +1 -1
- package/dist/components/co-segmented-bar.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-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-BHqdcGDh.js +1 -0
- package/dist/components/{p-B0buzt_E.js → p-BJTMFYax.js} +1 -1
- package/dist/components/{p-vLFwJ77w.js → p-Ba5lW0pA.js} +1 -1
- package/dist/components/p-Bsq90mo4.js +1 -0
- package/dist/components/{p-CybHxq25.js → p-CNIs9j-h.js} +1 -1
- package/dist/components/{p-Bx1OwdIV.js → p-COb8X_fE.js} +1 -1
- package/dist/components/{p-CzkeIavk.js → p-Cam92sWP.js} +1 -1
- package/dist/components/p-CmCsm4L-.js +1 -0
- package/dist/components/p-D3ts7oo9.js +1 -0
- package/dist/components/{p-CUvAZhuM.js → p-D4SOCy8I.js} +1 -1
- package/dist/components/{p-BnTTeIFH.js → p-Dh-h40mY.js} +1 -1
- package/dist/components/p-DrQh1Cb8.js +1 -0
- package/dist/components/{p-D7dk2gM7.js → p-DvL2TcDG.js} +1 -1
- package/dist/components/{p-BxiKVtk4.js → p-OKwHt2i9.js} +1 -1
- package/dist/components/{p-CBzpUqwG.js → p-QWi9AmnD.js} +1 -1
- package/dist/components/{p-B3igDRut.js → p-Xwo2HQmt.js} +1 -1
- package/dist/components/{p-DTS-dgEe.js → p-_k-j03K-.js} +1 -1
- package/dist/components/{p-HXlAaApx.js → p-eSq2ze8W.js} +1 -1
- package/dist/components/{p-C7tPadNy.js → p-lus32JrB.js} +1 -1
- package/dist/esm/co-accordion.entry.js +4 -4
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-autocomplete.entry.js +38 -73
- package/dist/esm/co-avatar-group.entry.js +3 -3
- package/dist/esm/co-avatar.entry.js +2 -2
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +4 -4
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +4 -4
- package/dist/esm/co-calendar-month.entry.js +2 -2
- package/dist/esm/co-calendar_3.entry.js +19 -14
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +4 -4
- package/dist/esm/co-checkbox.entry.js +4 -4
- package/dist/esm/co-chip_2.entry.js +482 -0
- package/dist/esm/co-color-picker.entry.js +4 -4
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +52 -83
- package/dist/esm/co-command-search.entry.js +21 -60
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +54 -5
- package/dist/esm/co-date-picker.entry.js +2 -2
- 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-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +4 -4
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +5 -5
- package/dist/esm/co-file-field.entry.js +7 -7
- 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 +2 -2
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +19 -3
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/co-lightbox.entry.js +6 -6
- 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 +2 -2
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +3 -3
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +4 -4
- package/dist/esm/co-popover.entry.js +12 -3
- package/dist/esm/co-progress-bar.entry.js +4 -4
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-radio-group.entry.js +4 -4
- 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 +31 -135
- package/dist/esm/co-rich-text-editor.entry.js +4 -4
- package/dist/esm/co-rich-text-toolbar.entry.js +1 -1
- package/dist/esm/co-rich-text-viewer.entry.js +1 -1
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +3 -3
- package/dist/esm/co-select.entry.js +7 -7
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +10 -8
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +2 -2
- 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 +10 -4
- package/dist/esm/co-tab.entry.js +5 -5
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +3 -3
- package/dist/esm/co-tooltip.entry.js +3 -3
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-video.entry.js +4 -4
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{fieldChip-BBu4ukje.js → fieldChip-ChXW__C5.js} +1 -1
- package/dist/esm/{index-Es9IUmmt.js → index-tT-aZV0-.js} +9 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{requiredMark-Bg25QWFn.js → requiredMark-C7-_2UhB.js} +1 -1
- package/dist/types/components/co-accordion/co-accordion.d.ts +3 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +12 -14
- package/dist/types/components/co-combobox/co-combobox.d.ts +29 -15
- package/dist/types/components/co-command-search/co-command-search.d.ts +13 -5
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +1 -1
- package/dist/types/components/co-data-table/co-data-table.d.ts +22 -0
- package/dist/types/components/co-fab/co-fab.d.ts +3 -1
- package/dist/types/components/co-input/co-input.d.ts +9 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +4 -0
- package/dist/types/components/co-popover/co-popover.d.ts +1 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +8 -30
- package/dist/types/components/co-sidebar-nav/co-sidebar-nav.d.ts +2 -0
- package/dist/types/components/co-tab/co-tab.d.ts +2 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -1
- package/dist/types/components.d.ts +123 -45
- package/package.json +4 -4
- package/dist/cjs/co-chip.cjs.entry.js +0 -91
- package/dist/cjs/co-option-list.cjs.entry.js +0 -379
- package/dist/cobalt/p-06c27cc5.entry.js +0 -1
- package/dist/cobalt/p-075f6ca4.entry.js +0 -1
- package/dist/cobalt/p-0810ee1e.entry.js +0 -1
- package/dist/cobalt/p-0b41e76e.entry.js +0 -1
- package/dist/cobalt/p-19f7ee64.entry.js +0 -1
- package/dist/cobalt/p-23c9208a.entry.js +0 -1
- package/dist/cobalt/p-311118cb.entry.js +0 -1
- package/dist/cobalt/p-48c5f311.entry.js +0 -1
- package/dist/cobalt/p-523cfd98.entry.js +0 -1
- package/dist/cobalt/p-5eecea26.entry.js +0 -1
- package/dist/cobalt/p-64a0b656.entry.js +0 -1
- package/dist/cobalt/p-6a3ed174.entry.js +0 -1
- package/dist/cobalt/p-755ecee1.entry.js +0 -1
- package/dist/cobalt/p-76b46336.entry.js +0 -1
- package/dist/cobalt/p-7b5dec05.entry.js +0 -1
- package/dist/cobalt/p-87289d32.entry.js +0 -1
- package/dist/cobalt/p-BUgUTjOB.js +0 -1
- package/dist/cobalt/p-Es9IUmmt.js +0 -2
- package/dist/cobalt/p-a71fd4f1.entry.js +0 -1
- package/dist/cobalt/p-b045d680.entry.js +0 -1
- package/dist/cobalt/p-b3c8fc9a.entry.js +0 -1
- package/dist/cobalt/p-b8f36f12.entry.js +0 -1
- package/dist/cobalt/p-ba6f0f90.entry.js +0 -1
- package/dist/cobalt/p-c1abc74b.entry.js +0 -1
- package/dist/cobalt/p-cf239452.entry.js +0 -1
- package/dist/cobalt/p-d2507f04.entry.js +0 -1
- package/dist/cobalt/p-d55652f2.entry.js +0 -1
- package/dist/cobalt/p-da211abf.entry.js +0 -1
- package/dist/cobalt/p-dcc7fc95.entry.js +0 -1
- package/dist/collection/components/co-command-search/commandSearchGroup.js +0 -17
- package/dist/components/p-BhSJcOUS.js +0 -1
- package/dist/components/p-CZKHHCdL.js +0 -1
- package/dist/components/p-K6LC1Hz4.js +0 -1
- package/dist/components/p-LAxCvyJl.js +0 -1
- package/dist/esm/co-chip.entry.js +0 -89
- package/dist/esm/co-option-list.entry.js +0 -377
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +0 -20
|
@@ -12,7 +12,7 @@ import { CheckboxOption } from "./components/co-checkbox-group/co-checkbox-group
|
|
|
12
12
|
import { ColorPreset } from "./components/co-color-picker/presets";
|
|
13
13
|
import { ColumnOption, ColumnSection } from "./components/co-column-picker/utils/column-picker-tree";
|
|
14
14
|
import { ComboboxOption } from "./components/co-combobox/co-combobox";
|
|
15
|
-
import { CommandItem } from "./components/co-command-search/
|
|
15
|
+
import { CommandItem } from "./components/co-command-search/co-command-search";
|
|
16
16
|
import { CoDataTableColumn } from "./components/co-data-table/co-data-table";
|
|
17
17
|
import { Placement } from "./utils/positioning";
|
|
18
18
|
import { DateRangeValue } from "./components/co-date-range-picker/co-date-range-picker";
|
|
@@ -36,7 +36,7 @@ export { CheckboxOption } from "./components/co-checkbox-group/co-checkbox-group
|
|
|
36
36
|
export { ColorPreset } from "./components/co-color-picker/presets";
|
|
37
37
|
export { ColumnOption, ColumnSection } from "./components/co-column-picker/utils/column-picker-tree";
|
|
38
38
|
export { ComboboxOption } from "./components/co-combobox/co-combobox";
|
|
39
|
-
export { CommandItem } from "./components/co-command-search/
|
|
39
|
+
export { CommandItem } from "./components/co-command-search/co-command-search";
|
|
40
40
|
export { CoDataTableColumn } from "./components/co-data-table/co-data-table";
|
|
41
41
|
export { Placement } from "./utils/positioning";
|
|
42
42
|
export { DateRangeValue } from "./components/co-date-range-picker/co-date-range-picker";
|
|
@@ -54,6 +54,10 @@ export { NavigateDetail } from "./components/co-sidebar-nav/co-sidebar-nav";
|
|
|
54
54
|
export { CoToastActionsLayout, CoToastVariant } from "./components/co-toast/co-toast";
|
|
55
55
|
export { TransferOption } from "./components/co-transfer-list/co-transfer-list";
|
|
56
56
|
export namespace Components {
|
|
57
|
+
/**
|
|
58
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
59
|
+
* the header text does nothing (it may contain interactive content).
|
|
60
|
+
*/
|
|
57
61
|
interface CoAccordion {
|
|
58
62
|
/**
|
|
59
63
|
* Hide the chevron / disable the toggle interaction.
|
|
@@ -96,11 +100,6 @@ export namespace Components {
|
|
|
96
100
|
* @default true
|
|
97
101
|
*/
|
|
98
102
|
"clearable": boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Debounce time in ms for coSearch
|
|
101
|
-
* @default 300
|
|
102
|
-
*/
|
|
103
|
-
"debounce": number;
|
|
104
103
|
/**
|
|
105
104
|
* @default false
|
|
106
105
|
*/
|
|
@@ -109,7 +108,7 @@ export namespace Components {
|
|
|
109
108
|
* Message when options are empty after search
|
|
110
109
|
* @default 'No results'
|
|
111
110
|
*/
|
|
112
|
-
"
|
|
111
|
+
"emptyMessage": string;
|
|
113
112
|
"helperText"?: string;
|
|
114
113
|
"iconLeft"?: string;
|
|
115
114
|
"label"?: string;
|
|
@@ -145,6 +144,11 @@ export namespace Components {
|
|
|
145
144
|
* @default false
|
|
146
145
|
*/
|
|
147
146
|
"required": boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Debounce time in ms for coSearch
|
|
149
|
+
* @default 300
|
|
150
|
+
*/
|
|
151
|
+
"searchDebounce": number;
|
|
148
152
|
"secondaryLabel"?: string;
|
|
149
153
|
/**
|
|
150
154
|
* Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48.
|
|
@@ -899,6 +903,11 @@ export namespace Components {
|
|
|
899
903
|
* @default false
|
|
900
904
|
*/
|
|
901
905
|
"disabled": boolean;
|
|
906
|
+
/**
|
|
907
|
+
* Message shown when the filtered list is empty.
|
|
908
|
+
* @default 'No results found'
|
|
909
|
+
*/
|
|
910
|
+
"emptyMessage": string;
|
|
902
911
|
/**
|
|
903
912
|
* Label for the primary footer button
|
|
904
913
|
* @default 'Ok'
|
|
@@ -1081,6 +1090,16 @@ export namespace Components {
|
|
|
1081
1090
|
* @default ''
|
|
1082
1091
|
*/
|
|
1083
1092
|
"emptyTitle": string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Fields with an active column filter (funnel filled + always visible). JSON string or array.
|
|
1095
|
+
* @default '[]'
|
|
1096
|
+
*/
|
|
1097
|
+
"filteredFields": string | string[];
|
|
1098
|
+
/**
|
|
1099
|
+
* Fields filtered by OTHER filter layers (funnel dimmed hint). JSON string or array.
|
|
1100
|
+
* @default '[]'
|
|
1101
|
+
*/
|
|
1102
|
+
"indirectFilteredFields": string | string[];
|
|
1084
1103
|
/**
|
|
1085
1104
|
* Show loading skeleton
|
|
1086
1105
|
* @default false
|
|
@@ -1771,6 +1790,10 @@ export namespace Components {
|
|
|
1771
1790
|
"view": 'month' | 'week' | 'day' | 'agenda';
|
|
1772
1791
|
}
|
|
1773
1792
|
interface CoFab {
|
|
1793
|
+
/**
|
|
1794
|
+
* Accessible label for icon-only FABs (falls back to `label`/`icon`).
|
|
1795
|
+
*/
|
|
1796
|
+
"ariaLabelText"?: string;
|
|
1774
1797
|
/**
|
|
1775
1798
|
* @default false
|
|
1776
1799
|
*/
|
|
@@ -1788,7 +1811,7 @@ export namespace Components {
|
|
|
1788
1811
|
/**
|
|
1789
1812
|
* @default 'm'
|
|
1790
1813
|
*/
|
|
1791
|
-
"size": 'l' | 'm' | 's';
|
|
1814
|
+
"size": 'xl' | 'l' | 'm' | 's';
|
|
1792
1815
|
/**
|
|
1793
1816
|
* @default 'primary'
|
|
1794
1817
|
*/
|
|
@@ -1994,6 +2017,11 @@ export namespace Components {
|
|
|
1994
2017
|
* Label for the integrated action button (Botón variant)
|
|
1995
2018
|
*/
|
|
1996
2019
|
"actionLabel"?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Focus the inner input as soon as the component finishes hydrating. Consumers can't reliably focus the shadow input themselves — Stencil's lazy hydration replaces the shadow content AFTER mount, so an early focus() lands on a node that gets thrown away. `componentDidLoad` runs after hydration, which is exactly the right moment.
|
|
2022
|
+
* @default false
|
|
2023
|
+
*/
|
|
2024
|
+
"autoFocus": boolean;
|
|
1997
2025
|
/**
|
|
1998
2026
|
* Autocomplete hint for the browser
|
|
1999
2027
|
*/
|
|
@@ -2057,6 +2085,10 @@ export namespace Components {
|
|
|
2057
2085
|
* Secondary label displayed on the right side
|
|
2058
2086
|
*/
|
|
2059
2087
|
"secondaryLabel"?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* Programmatically focus the inner input (post-hydration safe).
|
|
2090
|
+
*/
|
|
2091
|
+
"setFocus": () => Promise<void>;
|
|
2060
2092
|
/**
|
|
2061
2093
|
* Size variant: s (28px), sm (32px), md (40px, default), lg (48px). In the filled search-pill variant (`fill`) this drives the pill height instead (s ≈ 38px).
|
|
2062
2094
|
* @default 'md'
|
|
@@ -2524,6 +2556,11 @@ export namespace Components {
|
|
|
2524
2556
|
* host. Es 100% controlada: no muta `value`; emite y el host decide.
|
|
2525
2557
|
*/
|
|
2526
2558
|
interface CoOptionList {
|
|
2559
|
+
/**
|
|
2560
|
+
* Auto-resalta la primera fila navegable al montar y en cada cambio de items (paridad command-palette: tipear + Enter = primer resultado). Salta filas disabled vía nextActiveIndex.
|
|
2561
|
+
* @default false
|
|
2562
|
+
*/
|
|
2563
|
+
"autoHighlight": boolean;
|
|
2527
2564
|
/**
|
|
2528
2565
|
* @default 'circle'
|
|
2529
2566
|
*/
|
|
@@ -2937,10 +2974,6 @@ export namespace Components {
|
|
|
2937
2974
|
* @default true
|
|
2938
2975
|
*/
|
|
2939
2976
|
"clearable": boolean;
|
|
2940
|
-
/**
|
|
2941
|
-
* If set, shows a "Create" button in the panel footer.
|
|
2942
|
-
*/
|
|
2943
|
-
"createLabel"?: string;
|
|
2944
2977
|
/**
|
|
2945
2978
|
* @default false
|
|
2946
2979
|
*/
|
|
@@ -3530,10 +3563,10 @@ export namespace Components {
|
|
|
3530
3563
|
*/
|
|
3531
3564
|
"value": string;
|
|
3532
3565
|
/**
|
|
3533
|
-
* Visual variant: filled pill (default) or
|
|
3566
|
+
* Visual variant: filled pill (default), underline tab, or segmented-control pill
|
|
3534
3567
|
* @default 'pill'
|
|
3535
3568
|
*/
|
|
3536
|
-
"variant": 'pill' | 'underline';
|
|
3569
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
3537
3570
|
}
|
|
3538
3571
|
interface CoTabGroup {
|
|
3539
3572
|
/**
|
|
@@ -3544,7 +3577,7 @@ export namespace Components {
|
|
|
3544
3577
|
* Visual variant, propagated to slotted co-tab children
|
|
3545
3578
|
* @default 'pill'
|
|
3546
3579
|
*/
|
|
3547
|
-
"variant": 'pill' | 'underline';
|
|
3580
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
3548
3581
|
}
|
|
3549
3582
|
/**
|
|
3550
3583
|
* Free-text tags input — type a value and press Enter/Tab (or comma) to add it
|
|
@@ -4278,6 +4311,10 @@ declare global {
|
|
|
4278
4311
|
interface HTMLCoAccordionElementEventMap {
|
|
4279
4312
|
"coToggle": boolean;
|
|
4280
4313
|
}
|
|
4314
|
+
/**
|
|
4315
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
4316
|
+
* the header text does nothing (it may contain interactive content).
|
|
4317
|
+
*/
|
|
4281
4318
|
interface HTMLCoAccordionElement extends Components.CoAccordion, HTMLStencilElement {
|
|
4282
4319
|
addEventListener<K extends keyof HTMLCoAccordionElementEventMap>(type: K, listener: (this: HTMLCoAccordionElement, ev: CoAccordionCustomEvent<HTMLCoAccordionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4283
4320
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4314,7 +4351,7 @@ declare global {
|
|
|
4314
4351
|
};
|
|
4315
4352
|
interface HTMLCoAutocompleteElementEventMap {
|
|
4316
4353
|
"coSearch": string;
|
|
4317
|
-
"coChange": string | string[];
|
|
4354
|
+
"coChange": { value: string | string[]; item: { _id: string; label: string } | null };
|
|
4318
4355
|
"coClear": void;
|
|
4319
4356
|
}
|
|
4320
4357
|
interface HTMLCoAutocompleteElement extends Components.CoAutocomplete, HTMLStencilElement {
|
|
@@ -4605,7 +4642,7 @@ declare global {
|
|
|
4605
4642
|
new (): HTMLCoColumnPickerElement;
|
|
4606
4643
|
};
|
|
4607
4644
|
interface HTMLCoComboboxElementEventMap {
|
|
4608
|
-
"coChange": string[];
|
|
4645
|
+
"coChange": { value: string[] | string; item: { _id: string; label: string } | null };
|
|
4609
4646
|
"coOpen": void;
|
|
4610
4647
|
"coClose": void;
|
|
4611
4648
|
"coClear": void;
|
|
@@ -4629,7 +4666,7 @@ declare global {
|
|
|
4629
4666
|
interface HTMLCoCommandSearchElementEventMap {
|
|
4630
4667
|
"coSelect": string;
|
|
4631
4668
|
"coClose": void;
|
|
4632
|
-
"
|
|
4669
|
+
"coSearch": string;
|
|
4633
4670
|
"coScopeChange": string;
|
|
4634
4671
|
"coBackspaceEmpty": string;
|
|
4635
4672
|
"coChipRemove": number;
|
|
@@ -4660,6 +4697,7 @@ declare global {
|
|
|
4660
4697
|
"coSelectAll": { selected: boolean };
|
|
4661
4698
|
"coColumnResize": { field: string; width: number };
|
|
4662
4699
|
"coColumnPin": { field: string };
|
|
4700
|
+
"coHeaderFilter": { field: string; rect: { top: number; left: number; bottom: number; right: number; width: number; height: number } };
|
|
4663
4701
|
"coRowDblClick": { row: any; index: number };
|
|
4664
4702
|
"coRowClick": { row: any; index: number };
|
|
4665
4703
|
"coEmptyAction": void;
|
|
@@ -5491,7 +5529,6 @@ declare global {
|
|
|
5491
5529
|
"coLoadMore": void;
|
|
5492
5530
|
"coOpen": void;
|
|
5493
5531
|
"coClose": void;
|
|
5494
|
-
"coCreate": string;
|
|
5495
5532
|
"coRemove": string;
|
|
5496
5533
|
"coFooterPrimary": void;
|
|
5497
5534
|
"coFooterSecondary": void;
|
|
@@ -5995,6 +6032,10 @@ declare global {
|
|
|
5995
6032
|
declare namespace LocalJSX {
|
|
5996
6033
|
type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}` | `prop:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K | `prop:${K}`]?: never } | { [P in `prop:${K}`]: PropT } & { [P in K | `attr:${K}`]?: never };
|
|
5997
6034
|
|
|
6035
|
+
/**
|
|
6036
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
6037
|
+
* the header text does nothing (it may contain interactive content).
|
|
6038
|
+
*/
|
|
5998
6039
|
interface CoAccordion {
|
|
5999
6040
|
/**
|
|
6000
6041
|
* Hide the chevron / disable the toggle interaction.
|
|
@@ -6045,11 +6086,6 @@ declare namespace LocalJSX {
|
|
|
6045
6086
|
* @default true
|
|
6046
6087
|
*/
|
|
6047
6088
|
"clearable"?: boolean;
|
|
6048
|
-
/**
|
|
6049
|
-
* Debounce time in ms for coSearch
|
|
6050
|
-
* @default 300
|
|
6051
|
-
*/
|
|
6052
|
-
"debounce"?: number;
|
|
6053
6089
|
/**
|
|
6054
6090
|
* @default false
|
|
6055
6091
|
*/
|
|
@@ -6058,7 +6094,7 @@ declare namespace LocalJSX {
|
|
|
6058
6094
|
* Message when options are empty after search
|
|
6059
6095
|
* @default 'No results'
|
|
6060
6096
|
*/
|
|
6061
|
-
"
|
|
6097
|
+
"emptyMessage"?: string;
|
|
6062
6098
|
"helperText"?: string;
|
|
6063
6099
|
"iconLeft"?: string;
|
|
6064
6100
|
"label"?: string;
|
|
@@ -6080,7 +6116,7 @@ declare namespace LocalJSX {
|
|
|
6080
6116
|
* @default false
|
|
6081
6117
|
*/
|
|
6082
6118
|
"multiple"?: boolean;
|
|
6083
|
-
"onCoChange"?: (event: CoAutocompleteCustomEvent<string | string[]>) => void;
|
|
6119
|
+
"onCoChange"?: (event: CoAutocompleteCustomEvent<{ value: string | string[]; item: { _id: string; label: string } | null }>) => void;
|
|
6084
6120
|
"onCoClear"?: (event: CoAutocompleteCustomEvent<void>) => void;
|
|
6085
6121
|
/**
|
|
6086
6122
|
* Fired when the user types (after debounce). Host should fetch and set options.
|
|
@@ -6100,6 +6136,11 @@ declare namespace LocalJSX {
|
|
|
6100
6136
|
* @default false
|
|
6101
6137
|
*/
|
|
6102
6138
|
"required"?: boolean;
|
|
6139
|
+
/**
|
|
6140
|
+
* Debounce time in ms for coSearch
|
|
6141
|
+
* @default 300
|
|
6142
|
+
*/
|
|
6143
|
+
"searchDebounce"?: number;
|
|
6103
6144
|
"secondaryLabel"?: string;
|
|
6104
6145
|
/**
|
|
6105
6146
|
* Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48.
|
|
@@ -6928,6 +6969,11 @@ declare namespace LocalJSX {
|
|
|
6928
6969
|
* @default false
|
|
6929
6970
|
*/
|
|
6930
6971
|
"disabled"?: boolean;
|
|
6972
|
+
/**
|
|
6973
|
+
* Message shown when the filtered list is empty.
|
|
6974
|
+
* @default 'No results found'
|
|
6975
|
+
*/
|
|
6976
|
+
"emptyMessage"?: string;
|
|
6931
6977
|
/**
|
|
6932
6978
|
* Label for the primary footer button
|
|
6933
6979
|
* @default 'Ok'
|
|
@@ -6961,9 +7007,9 @@ declare namespace LocalJSX {
|
|
|
6961
7007
|
*/
|
|
6962
7008
|
"multiple"?: boolean;
|
|
6963
7009
|
/**
|
|
6964
|
-
* Emitted when the selection changes
|
|
7010
|
+
* Emitted when the selection changes. `item` is the picked option (the option-list's native `{ _id, label }` shape); `null` on clear.
|
|
6965
7011
|
*/
|
|
6966
|
-
"onCoChange"?: (event: CoComboboxCustomEvent<string[]>) => void;
|
|
7012
|
+
"onCoChange"?: (event: CoComboboxCustomEvent<{ value: string[] | string; item: { _id: string; label: string } | null }>) => void;
|
|
6967
7013
|
/**
|
|
6968
7014
|
* Emitted when the clear button is clicked
|
|
6969
7015
|
*/
|
|
@@ -7097,11 +7143,11 @@ declare namespace LocalJSX {
|
|
|
7097
7143
|
* Emitted when the "Más ▾" overflow tab is clicked.
|
|
7098
7144
|
*/
|
|
7099
7145
|
"onCoMoreTabs"?: (event: CoCommandSearchCustomEvent<void>) => void;
|
|
7100
|
-
"onCoQueryChange"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7101
7146
|
/**
|
|
7102
7147
|
* Emitted when an item with keepOpen=true is selected. Detail = item.value (scope model key).
|
|
7103
7148
|
*/
|
|
7104
7149
|
"onCoScopeChange"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7150
|
+
"onCoSearch"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7105
7151
|
"onCoSelect"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7106
7152
|
/**
|
|
7107
7153
|
* Emitted when a module tab is clicked. detail = tab value; '' when the active tab is re-clicked (deselect).
|
|
@@ -7157,6 +7203,16 @@ declare namespace LocalJSX {
|
|
|
7157
7203
|
* @default ''
|
|
7158
7204
|
*/
|
|
7159
7205
|
"emptyTitle"?: string;
|
|
7206
|
+
/**
|
|
7207
|
+
* Fields with an active column filter (funnel filled + always visible). JSON string or array.
|
|
7208
|
+
* @default '[]'
|
|
7209
|
+
*/
|
|
7210
|
+
"filteredFields"?: string | string[];
|
|
7211
|
+
/**
|
|
7212
|
+
* Fields filtered by OTHER filter layers (funnel dimmed hint). JSON string or array.
|
|
7213
|
+
* @default '[]'
|
|
7214
|
+
*/
|
|
7215
|
+
"indirectFilteredFields"?: string | string[];
|
|
7160
7216
|
/**
|
|
7161
7217
|
* Show loading skeleton
|
|
7162
7218
|
* @default false
|
|
@@ -7174,6 +7230,10 @@ declare namespace LocalJSX {
|
|
|
7174
7230
|
* Fired when the prop-driven empty-action button (`emptyActionLabel`) is clicked.
|
|
7175
7231
|
*/
|
|
7176
7232
|
"onCoEmptyAction"?: (event: CoDataTableCustomEvent<void>) => void;
|
|
7233
|
+
/**
|
|
7234
|
+
* Emitted when a column's filter icon is clicked (rect = icon bounding box for anchoring).
|
|
7235
|
+
*/
|
|
7236
|
+
"onCoHeaderFilter"?: (event: CoDataTableCustomEvent<{ field: string; rect: { top: number; left: number; bottom: number; right: number; width: number; height: number } }>) => void;
|
|
7177
7237
|
/**
|
|
7178
7238
|
* Emitted when a row is clicked
|
|
7179
7239
|
*/
|
|
@@ -7991,6 +8051,10 @@ declare namespace LocalJSX {
|
|
|
7991
8051
|
"view"?: 'month' | 'week' | 'day' | 'agenda';
|
|
7992
8052
|
}
|
|
7993
8053
|
interface CoFab {
|
|
8054
|
+
/**
|
|
8055
|
+
* Accessible label for icon-only FABs (falls back to `label`/`icon`).
|
|
8056
|
+
*/
|
|
8057
|
+
"ariaLabelText"?: string;
|
|
7994
8058
|
/**
|
|
7995
8059
|
* @default false
|
|
7996
8060
|
*/
|
|
@@ -8009,7 +8073,7 @@ declare namespace LocalJSX {
|
|
|
8009
8073
|
/**
|
|
8010
8074
|
* @default 'm'
|
|
8011
8075
|
*/
|
|
8012
|
-
"size"?: 'l' | 'm' | 's';
|
|
8076
|
+
"size"?: 'xl' | 'l' | 'm' | 's';
|
|
8013
8077
|
/**
|
|
8014
8078
|
* @default 'primary'
|
|
8015
8079
|
*/
|
|
@@ -8239,6 +8303,11 @@ declare namespace LocalJSX {
|
|
|
8239
8303
|
* Label for the integrated action button (Botón variant)
|
|
8240
8304
|
*/
|
|
8241
8305
|
"actionLabel"?: string;
|
|
8306
|
+
/**
|
|
8307
|
+
* Focus the inner input as soon as the component finishes hydrating. Consumers can't reliably focus the shadow input themselves — Stencil's lazy hydration replaces the shadow content AFTER mount, so an early focus() lands on a node that gets thrown away. `componentDidLoad` runs after hydration, which is exactly the right moment.
|
|
8308
|
+
* @default false
|
|
8309
|
+
*/
|
|
8310
|
+
"autoFocus"?: boolean;
|
|
8242
8311
|
/**
|
|
8243
8312
|
* Autocomplete hint for the browser
|
|
8244
8313
|
*/
|
|
@@ -8849,6 +8918,11 @@ declare namespace LocalJSX {
|
|
|
8849
8918
|
* host. Es 100% controlada: no muta `value`; emite y el host decide.
|
|
8850
8919
|
*/
|
|
8851
8920
|
interface CoOptionList {
|
|
8921
|
+
/**
|
|
8922
|
+
* Auto-resalta la primera fila navegable al montar y en cada cambio de items (paridad command-palette: tipear + Enter = primer resultado). Salta filas disabled vía nextActiveIndex.
|
|
8923
|
+
* @default false
|
|
8924
|
+
*/
|
|
8925
|
+
"autoHighlight"?: boolean;
|
|
8852
8926
|
/**
|
|
8853
8927
|
* @default 'circle'
|
|
8854
8928
|
*/
|
|
@@ -9279,10 +9353,6 @@ declare namespace LocalJSX {
|
|
|
9279
9353
|
* @default true
|
|
9280
9354
|
*/
|
|
9281
9355
|
"clearable"?: boolean;
|
|
9282
|
-
/**
|
|
9283
|
-
* If set, shows a "Create" button in the panel footer.
|
|
9284
|
-
*/
|
|
9285
|
-
"createLabel"?: string;
|
|
9286
9356
|
/**
|
|
9287
9357
|
* @default false
|
|
9288
9358
|
*/
|
|
@@ -9330,7 +9400,6 @@ declare namespace LocalJSX {
|
|
|
9330
9400
|
"onCoChange"?: (event: CoRefFieldCustomEvent<{ value: string | string[]; item: RefFieldOption }>) => void;
|
|
9331
9401
|
"onCoClear"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9332
9402
|
"onCoClose"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9333
|
-
"onCoCreate"?: (event: CoRefFieldCustomEvent<string>) => void;
|
|
9334
9403
|
"onCoFooterPrimary"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9335
9404
|
"onCoFooterSecondary"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9336
9405
|
"onCoLoadMore"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
@@ -9930,10 +9999,10 @@ declare namespace LocalJSX {
|
|
|
9930
9999
|
*/
|
|
9931
10000
|
"value"?: string;
|
|
9932
10001
|
/**
|
|
9933
|
-
* Visual variant: filled pill (default) or
|
|
10002
|
+
* Visual variant: filled pill (default), underline tab, or segmented-control pill
|
|
9934
10003
|
* @default 'pill'
|
|
9935
10004
|
*/
|
|
9936
|
-
"variant"?: 'pill' | 'underline';
|
|
10005
|
+
"variant"?: 'pill' | 'underline' | 'segmented';
|
|
9937
10006
|
}
|
|
9938
10007
|
interface CoTabGroup {
|
|
9939
10008
|
/**
|
|
@@ -9948,7 +10017,7 @@ declare namespace LocalJSX {
|
|
|
9948
10017
|
* Visual variant, propagated to slotted co-tab children
|
|
9949
10018
|
* @default 'pill'
|
|
9950
10019
|
*/
|
|
9951
|
-
"variant"?: 'pill' | 'underline';
|
|
10020
|
+
"variant"?: 'pill' | 'underline' | 'segmented';
|
|
9952
10021
|
}
|
|
9953
10022
|
/**
|
|
9954
10023
|
* Free-text tags input — type a value and press Enter/Tab (or comma) to add it
|
|
@@ -10511,8 +10580,8 @@ declare namespace LocalJSX {
|
|
|
10511
10580
|
"multiple": boolean;
|
|
10512
10581
|
"loading": boolean;
|
|
10513
10582
|
"minChars": number;
|
|
10514
|
-
"
|
|
10515
|
-
"
|
|
10583
|
+
"searchDebounce": number;
|
|
10584
|
+
"emptyMessage": string;
|
|
10516
10585
|
}
|
|
10517
10586
|
interface CoAvatarAttributes {
|
|
10518
10587
|
"type": 'text' | 'icon' | 'image';
|
|
@@ -10702,6 +10771,7 @@ declare namespace LocalJSX {
|
|
|
10702
10771
|
"footerPrimaryLabel": string;
|
|
10703
10772
|
"footerSecondaryLabel": string;
|
|
10704
10773
|
"options": ComboboxOption[] | string[] | string;
|
|
10774
|
+
"emptyMessage": string;
|
|
10705
10775
|
"value": string[] | string;
|
|
10706
10776
|
"multiple": boolean;
|
|
10707
10777
|
"size": 's' | 'sm' | 'md' | 'lg';
|
|
@@ -10737,6 +10807,8 @@ declare namespace LocalJSX {
|
|
|
10737
10807
|
"emptyActionIcon": string;
|
|
10738
10808
|
"sortField": string;
|
|
10739
10809
|
"sortOrder": 'asc' | 'desc' | '';
|
|
10810
|
+
"filteredFields": string | string[];
|
|
10811
|
+
"indirectFilteredFields": string | string[];
|
|
10740
10812
|
"selectable": boolean;
|
|
10741
10813
|
"selectedKeys": string | string[];
|
|
10742
10814
|
"resizable": boolean;
|
|
@@ -10903,7 +10975,8 @@ declare namespace LocalJSX {
|
|
|
10903
10975
|
"icon": string;
|
|
10904
10976
|
"label": string;
|
|
10905
10977
|
"variant": 'primary' | 'secondary' | 'stroke';
|
|
10906
|
-
"size": 'l' | 'm' | 's';
|
|
10978
|
+
"size": 'xl' | 'l' | 'm' | 's';
|
|
10979
|
+
"ariaLabelText": string;
|
|
10907
10980
|
"disabled": boolean;
|
|
10908
10981
|
"position": 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'none';
|
|
10909
10982
|
}
|
|
@@ -10968,6 +11041,7 @@ declare namespace LocalJSX {
|
|
|
10968
11041
|
"type": string;
|
|
10969
11042
|
"name": string;
|
|
10970
11043
|
"required": boolean;
|
|
11044
|
+
"autoFocus": boolean;
|
|
10971
11045
|
"autocomplete": string;
|
|
10972
11046
|
"status": 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
10973
11047
|
"size": 's' | 'sm' | 'md' | 'lg';
|
|
@@ -11094,6 +11168,7 @@ declare namespace LocalJSX {
|
|
|
11094
11168
|
"highlightMatches": boolean;
|
|
11095
11169
|
"highlightTerm": string;
|
|
11096
11170
|
"avatarShape": 'circle' | 'square';
|
|
11171
|
+
"autoHighlight": boolean;
|
|
11097
11172
|
}
|
|
11098
11173
|
interface CoOverlayAttributes {
|
|
11099
11174
|
"open": boolean;
|
|
@@ -11193,7 +11268,6 @@ declare namespace LocalJSX {
|
|
|
11193
11268
|
"searchPlaceholder": string;
|
|
11194
11269
|
"searchDebounce": number;
|
|
11195
11270
|
"emptyMessage": string;
|
|
11196
|
-
"createLabel": string;
|
|
11197
11271
|
"showFooter": boolean;
|
|
11198
11272
|
"footerPrimaryLabel": string;
|
|
11199
11273
|
"footerSecondaryLabel": string;
|
|
@@ -11317,7 +11391,7 @@ declare namespace LocalJSX {
|
|
|
11317
11391
|
"value": string;
|
|
11318
11392
|
"selected": boolean;
|
|
11319
11393
|
"size": 'large' | 'small';
|
|
11320
|
-
"variant": 'pill' | 'underline';
|
|
11394
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
11321
11395
|
"badge": string;
|
|
11322
11396
|
"iconLeft": string;
|
|
11323
11397
|
"iconRight": string;
|
|
@@ -11325,7 +11399,7 @@ declare namespace LocalJSX {
|
|
|
11325
11399
|
}
|
|
11326
11400
|
interface CoTabGroupAttributes {
|
|
11327
11401
|
"value": string;
|
|
11328
|
-
"variant": 'pill' | 'underline';
|
|
11402
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
11329
11403
|
}
|
|
11330
11404
|
interface CoTagsFieldAttributes {
|
|
11331
11405
|
"value": string[] | string;
|
|
@@ -11535,6 +11609,10 @@ export { LocalJSX as JSX };
|
|
|
11535
11609
|
declare module "@stencil/core" {
|
|
11536
11610
|
export namespace JSX {
|
|
11537
11611
|
interface IntrinsicElements {
|
|
11612
|
+
/**
|
|
11613
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
11614
|
+
* the header text does nothing (it may contain interactive content).
|
|
11615
|
+
*/
|
|
11538
11616
|
"co-accordion": LocalJSX.IntrinsicElements["co-accordion"] & JSXBase.HTMLAttributes<HTMLCoAccordionElement>;
|
|
11539
11617
|
/**
|
|
11540
11618
|
* App Shell — Main application layout with navbar, sidebar, and content area.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prolibu-suite/cobalt-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Cobalt Design System — Framework-agnostic Web Components built with Stencil",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@phosphor-icons/core": "^2.1.1",
|
|
51
51
|
"dompurify": "^3.2.6",
|
|
52
52
|
"overlayscrollbars": "^2.16.0",
|
|
53
|
+
"@prolibu-suite/cobalt-date-utils": "0.1.1",
|
|
54
|
+
"@prolibu-suite/cobalt-tokens": "0.2.0",
|
|
53
55
|
"@prolibu-suite/cobalt-calendar-utils": "0.1.0",
|
|
54
|
-
"@prolibu-suite/cobalt-
|
|
55
|
-
"@prolibu-suite/cobalt-rich-text": "0.1.2",
|
|
56
|
-
"@prolibu-suite/cobalt-date-utils": "0.1.1"
|
|
56
|
+
"@prolibu-suite/cobalt-rich-text": "0.1.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@stencil/core": "^4.43.4",
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-NNvye1ul.js');
|
|
4
|
-
|
|
5
|
-
const coChipCss = () => `:host{display:inline-flex;max-width:var(--co-chip-max-width, none)}.co-chip{display:inline-flex;align-items:center;justify-content:center;font-family:var(--co-font-family-primary);font-weight:400;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);white-space:nowrap;box-sizing:border-box;-webkit-font-smoothing:antialiased;max-width:100%;overflow:hidden;border:1px solid transparent;transition:background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;cursor:default;margin:0;padding:0}button.co-chip{cursor:pointer;outline:none}button.co-chip:focus-visible{box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.co-chip__value{color:var(--co-chip-value-color, var(--co-color-gray-500, #888888))}.co-chip--filled{background:var(--co-chip-bg, var(--co-semantic-surface-muted));color:var(--co-chip-color, var(--co-semantic-text-default));border-color:var(--co-chip-border, transparent)}.co-chip--filled.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-color-opacity-negro-8, rgba(0, 0, 0, 0.08))}.co-chip--filled.co-chip--clickable:active:not(.co-chip--disabled){opacity:0.85}.co-chip--filled.co-chip--primary{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary)}.co-chip--filled.co-chip--primary.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-semantic-surface-primary);opacity:0.85}.co-chip--filled.co-chip--success{background:var(--co-semantic-status-success);color:#fff}.co-chip--filled.co-chip--error{background:var(--co-semantic-status-error);color:#fff}.co-chip--filled.co-chip--warning{background:var(--co-color-status-review);color:#fff}.co-chip--filled.co-chip--info{background:var(--co-semantic-status-info);color:#fff}.co-chip--filled.co-chip--pending{background:var(--co-color-status-pending);color:#fff}.co-chip--filled.co-chip--progress{background:var(--co-color-status-progress);color:#fff}.co-chip--filled.co-chip--review{background:var(--co-color-status-review);color:#fff}.co-chip--filled.co-chip--submitted{background:var(--co-color-status-submitted);color:#fff}.co-chip--outlined{background:transparent;color:var(--co-semantic-text-default);border-color:var(--co-semantic-border-default)}.co-chip--outlined.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-semantic-surface-hover)}.co-chip--outlined.co-chip--clickable:active:not(.co-chip--disabled){background:var(--co-semantic-surface-muted)}.co-chip--outlined.co-chip--primary{color:var(--co-semantic-surface-primary);border-color:var(--co-semantic-surface-primary)}.co-chip--outlined.co-chip--success{color:var(--co-semantic-status-success);border-color:var(--co-semantic-status-success)}.co-chip--outlined.co-chip--error{color:var(--co-semantic-status-error);border-color:var(--co-semantic-status-error)}.co-chip--outlined.co-chip--warning{color:var(--co-color-status-review);border-color:var(--co-color-status-review)}.co-chip--outlined.co-chip--info{color:var(--co-semantic-status-info);border-color:var(--co-semantic-status-info)}.co-chip--filled.co-chip--selected{box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.3)}.co-chip--outlined.co-chip--selected{background:var(--co-semantic-surface-muted);border-width:2px}.co-chip--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}button.co-chip--disabled{pointer-events:auto;}.co-chip--large{font-size:var(--co-font-size-12)}.co-chip--large.co-chip--icon-none{padding:var(--co-spacing-sm) var(--co-spacing-sm2);gap:0}.co-chip--large.co-chip--icon-left{padding:var(--co-spacing-xs) var(--co-spacing-sm2) var(--co-spacing-xs) var(--co-spacing-sm);gap:var(--co-spacing-sm)}.co-chip--large.co-chip--icon-right{padding:var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-sm2);gap:var(--co-spacing-sm)}.co-chip--large.co-chip--icon-both{padding:var(--co-spacing-xs);gap:var(--co-spacing-sm)}.co-chip--small{font-size:var(--co-font-size-10)}.co-chip--small.co-chip--icon-none{padding:var(--co-spacing-xs) var(--co-spacing-sm);gap:0}.co-chip--small.co-chip--icon-left{padding:var(--co-spacing-xs) var(--co-spacing-sm) var(--co-spacing-xs) var(--co-spacing-xs);gap:var(--co-spacing-xs)}.co-chip--small.co-chip--icon-right{padding:var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-sm);gap:var(--co-spacing-xs)}.co-chip--small.co-chip--icon-both{padding:var(--co-spacing-xs);gap:var(--co-spacing-xs)}.co-chip--rounded{border-radius:var(--co-border-radius-full)}.co-chip--square{border-radius:var(--co-spacing-sm)}.co-chip__icon-left,.co-chip__icon-right,.co-chip__dot,.co-chip__trailing{display:inline-flex;flex-shrink:0;align-items:center}.co-chip__trailing{color:var(--co-chip-trailing-color, currentColor)}.co-chip--large .co-chip__icon-left,.co-chip--large .co-chip__icon-right,.co-chip--large .co-chip__dot{width:16px;height:16px}.co-chip--small .co-chip__icon-left,.co-chip--small .co-chip__icon-right,.co-chip--small .co-chip__dot{width:10px;height:10px}.co-chip__remove{display:inline-flex;flex-shrink:0;align-items:center;cursor:pointer;opacity:1;transition:opacity 0.1s ease;border:none;background:transparent;padding:0;color:inherit}.co-chip__remove:hover{opacity:0.7}.co-chip--large .co-chip__remove{width:16px;height:16px}.co-chip--small .co-chip__remove{width:10px;height:10px}::slotted(*){display:inline-flex;width:100%;height:100%}.co-chip.co-chip--filter{height:34px;padding:0 12px;gap:7px;font-size:13.5px;border-radius:var(--co-border-radius-full);background:var(--co-color-base-blanco, #fff);color:var(--co-color-base-negro, #1f1c1b);border-color:transparent;box-shadow:inset 0 0 0 1px var(--co-color-opacity-negro-16, rgba(0, 0, 0, 0.16))}.co-chip--filter .co-chip__icon-left{color:var(--co-color-gray-500, #888888)}.co-chip--filter .co-chip__trailing{color:var(--co-color-gray-400, #a0a0a0)}.co-chip--filter.co-chip--clickable:hover:not(.co-chip--disabled){box-shadow:inset 0 0 0 1px var(--co-color-opacity-negro-25, rgba(0, 0, 0, 0.25))}.co-chip--filter.co-chip--clickable:active:not(.co-chip--disabled){background:var(--co-color-gray-100, #f6f6f6)}.co-chip--filter.co-chip--selected{background:var(--co-color-gray-100, #f6f6f6)}`;
|
|
6
|
-
|
|
7
|
-
const CoChip = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.coRemove = index.createEvent(this, "coRemove", 7);
|
|
11
|
-
this.coClick = index.createEvent(this, "coClick", 7);
|
|
12
|
-
/** Shape: pill or straight corners */
|
|
13
|
-
this.shape = 'rounded';
|
|
14
|
-
/** Size: large (12px text), small (10px text) */
|
|
15
|
-
this.size = 'large';
|
|
16
|
-
/**
|
|
17
|
-
* Icon mode (for slot-based icons):
|
|
18
|
-
* - none = no icon slots
|
|
19
|
-
* - left = icon before label (Figma "1nd Icon")
|
|
20
|
-
* - both = icon before + icon after (Figma "2nd Icon")
|
|
21
|
-
*/
|
|
22
|
-
this.iconMode = 'none';
|
|
23
|
-
/** Visual variant.
|
|
24
|
-
* - filled/outlined = existing tag/chip looks (unchanged defaults).
|
|
25
|
-
* - filter = Cloud Drive filter-trigger pill (white pill, inset hairline
|
|
26
|
-
* ring, tinted leading icon, two-tone value, trailing caret). */
|
|
27
|
-
this.variant = 'filled';
|
|
28
|
-
/** Semantic color */
|
|
29
|
-
this.color = 'default';
|
|
30
|
-
/** Icon weight applied to prop-based iconLeft / iconRight / trailingIcon. */
|
|
31
|
-
this.iconWeight = 'regular';
|
|
32
|
-
/** Show dismiss/remove button and emit coRemove on click. Reflected so it
|
|
33
|
-
* survives lazy hydration when set via a framework wrapper. */
|
|
34
|
-
this.removable = false;
|
|
35
|
-
/** Show a leading colour dot (status/value colour). Reflected for hydration. */
|
|
36
|
-
this.dot = false;
|
|
37
|
-
/** Make the chip clickable (emits coClick) */
|
|
38
|
-
this.clickable = false;
|
|
39
|
-
/** Disabled state */
|
|
40
|
-
this.disabled = false;
|
|
41
|
-
/** Selected / active state */
|
|
42
|
-
this.selected = false;
|
|
43
|
-
this.handleClick = () => {
|
|
44
|
-
if (this.disabled)
|
|
45
|
-
return;
|
|
46
|
-
if (this.clickable)
|
|
47
|
-
this.coClick.emit();
|
|
48
|
-
};
|
|
49
|
-
this.handleRemove = (e) => {
|
|
50
|
-
e.stopPropagation();
|
|
51
|
-
if (this.disabled)
|
|
52
|
-
return;
|
|
53
|
-
this.coRemove.emit();
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
const hasLeftSlot = this.iconMode === 'left' || this.iconMode === 'both';
|
|
58
|
-
const hasRightSlot = this.iconMode === 'both' && !this.removable;
|
|
59
|
-
const iconSize = this.size === 'large' ? 16 : 10;
|
|
60
|
-
const removeIconSize = this.size === 'large' ? 16 : 10;
|
|
61
|
-
// Filter-variant trailing caret is a fixed 13px; otherwise match icon size.
|
|
62
|
-
const trailingIconSize = this.variant === 'filter' ? 13 : iconSize;
|
|
63
|
-
// Determine effective icon mode for CSS padding (the dot counts as a left icon).
|
|
64
|
-
const hasAnyLeft = hasLeftSlot || !!this.iconLeft || this.dot;
|
|
65
|
-
const hasAnyRight = hasRightSlot || !!this.iconRight || this.removable || !!this.trailingIcon;
|
|
66
|
-
let effectiveIconMode;
|
|
67
|
-
if (hasAnyLeft && hasAnyRight)
|
|
68
|
-
effectiveIconMode = 'both';
|
|
69
|
-
else if (hasAnyLeft)
|
|
70
|
-
effectiveIconMode = 'left';
|
|
71
|
-
else if (hasAnyRight)
|
|
72
|
-
effectiveIconMode = 'right';
|
|
73
|
-
else
|
|
74
|
-
effectiveIconMode = 'none';
|
|
75
|
-
const Tag = this.clickable ? 'button' : 'div';
|
|
76
|
-
return (index.h(Tag, { key: '2a0ec169b9c4ec0516d275d3787f7f02bcc4815f', class: {
|
|
77
|
-
'co-chip': true,
|
|
78
|
-
[`co-chip--${this.shape}`]: true,
|
|
79
|
-
[`co-chip--${this.size}`]: true,
|
|
80
|
-
[`co-chip--icon-${effectiveIconMode}`]: true,
|
|
81
|
-
[`co-chip--${this.variant}`]: true,
|
|
82
|
-
[`co-chip--${this.color}`]: this.color !== 'default',
|
|
83
|
-
'co-chip--clickable': this.clickable,
|
|
84
|
-
'co-chip--disabled': this.disabled,
|
|
85
|
-
'co-chip--selected': this.selected,
|
|
86
|
-
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (index.h("span", { key: '43dac38d1aba1dead22ac164926167c38e66a9fe', class: "co-chip__dot", part: "dot", style: this.dotColor ? { color: this.dotColor } : undefined }, index.h("co-icon", { key: '3797d8f1081f82ed4f44bb99ffe26087b45c3d3a', name: "circle", size: iconSize, weight: "fill" }))), this.iconLeft && !hasLeftSlot && (index.h("span", { key: '742a11aaefce99a0bbf1c1bd6c2c3ca8b31d63cd', class: "co-chip__icon-left", part: "icon-left" }, index.h("co-icon", { key: 'a9f2c057d7df6e51f5be5c757e26280780fe1ae9', name: this.iconLeft, size: iconSize, weight: this.iconWeight }))), hasLeftSlot && (index.h("span", { key: 'c8f56d8525efb0a095f0c21d9cf0626964484510', class: "co-chip__icon-left", part: "icon-left" }, index.h("slot", { key: '01fb166b21b09cdb5b8b86dca1ec2a9fc57f6848', name: "icon-left" }))), index.h("span", { key: 'd6201c5dded49a5bdc32110d8e11165aeac99eac', class: "co-chip__label" }, index.h("slot", { key: 'd947e19d407485bcfcedd6eacc4af81c3059166b' }, this.label), this.valueLabel != null && this.valueLabel !== '' && (index.h("span", { key: '53108c759b51c53fa649776166396a9f609d20d0', class: "co-chip__value", part: "value" }, `: ${this.valueLabel}`))), this.iconRight && !hasRightSlot && !this.removable && (index.h("span", { key: '493961698dc761c41cf6a6e24d20e61701f594fa', class: "co-chip__icon-right", part: "icon-right" }, index.h("co-icon", { key: 'c9f198139af0e17dedd3464d9ccdd7b6c6163aff', name: this.iconRight, size: iconSize, weight: this.iconWeight }))), hasRightSlot && (index.h("span", { key: 'ab0224fdb675c1706cda2395f57ddf6f17160185', class: "co-chip__icon-right", part: "icon-right" }, index.h("slot", { key: '3e1a2cc6cde7a2834f9c872925aa4a2ee2136a9f', name: "icon-right" }))), this.removable && (index.h("span", { key: '4eb54aae2e81bf76bd99cf1ba808403de8f98d10', class: "co-chip__remove", part: "remove", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleRemove, "aria-label": "Remove" }, index.h("co-icon", { key: 'e9736b8d92d01df66a670a67e7ef05920c6a527b', name: "x-circle", size: removeIconSize, weight: "fill" }))), this.trailingIcon && (index.h("span", { key: 'd56053da1f81ebfbd276f314c08f0ca9d8b722c8', class: "co-chip__trailing", part: "trailing" }, index.h("co-icon", { key: 'f6cf7398888677b48622415b0d1e65f2117a841a', name: this.trailingIcon, size: trailingIconSize, weight: this.iconWeight })))));
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
CoChip.style = coChipCss();
|
|
90
|
-
|
|
91
|
-
exports.co_chip = CoChip;
|