@prolibu-suite/cobalt-core 0.4.0 → 0.5.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 +317 -153
- 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 +3 -3
- 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 +3 -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-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-6a3ed174.entry.js → p-7a3fb93b.entry.js} +1 -1
- 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-82ce1178.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-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.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-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-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-LAxCvyJl.js → p-ivjj-BP8.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 +3 -3
- 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 +3 -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-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 +108 -45
- package/package.json +3 -3
- 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-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/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
|
*/
|
|
@@ -2524,6 +2547,11 @@ export namespace Components {
|
|
|
2524
2547
|
* host. Es 100% controlada: no muta `value`; emite y el host decide.
|
|
2525
2548
|
*/
|
|
2526
2549
|
interface CoOptionList {
|
|
2550
|
+
/**
|
|
2551
|
+
* 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.
|
|
2552
|
+
* @default false
|
|
2553
|
+
*/
|
|
2554
|
+
"autoHighlight": boolean;
|
|
2527
2555
|
/**
|
|
2528
2556
|
* @default 'circle'
|
|
2529
2557
|
*/
|
|
@@ -2937,10 +2965,6 @@ export namespace Components {
|
|
|
2937
2965
|
* @default true
|
|
2938
2966
|
*/
|
|
2939
2967
|
"clearable": boolean;
|
|
2940
|
-
/**
|
|
2941
|
-
* If set, shows a "Create" button in the panel footer.
|
|
2942
|
-
*/
|
|
2943
|
-
"createLabel"?: string;
|
|
2944
2968
|
/**
|
|
2945
2969
|
* @default false
|
|
2946
2970
|
*/
|
|
@@ -3530,10 +3554,10 @@ export namespace Components {
|
|
|
3530
3554
|
*/
|
|
3531
3555
|
"value": string;
|
|
3532
3556
|
/**
|
|
3533
|
-
* Visual variant: filled pill (default) or
|
|
3557
|
+
* Visual variant: filled pill (default), underline tab, or segmented-control pill
|
|
3534
3558
|
* @default 'pill'
|
|
3535
3559
|
*/
|
|
3536
|
-
"variant": 'pill' | 'underline';
|
|
3560
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
3537
3561
|
}
|
|
3538
3562
|
interface CoTabGroup {
|
|
3539
3563
|
/**
|
|
@@ -3544,7 +3568,7 @@ export namespace Components {
|
|
|
3544
3568
|
* Visual variant, propagated to slotted co-tab children
|
|
3545
3569
|
* @default 'pill'
|
|
3546
3570
|
*/
|
|
3547
|
-
"variant": 'pill' | 'underline';
|
|
3571
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
3548
3572
|
}
|
|
3549
3573
|
/**
|
|
3550
3574
|
* Free-text tags input — type a value and press Enter/Tab (or comma) to add it
|
|
@@ -4278,6 +4302,10 @@ declare global {
|
|
|
4278
4302
|
interface HTMLCoAccordionElementEventMap {
|
|
4279
4303
|
"coToggle": boolean;
|
|
4280
4304
|
}
|
|
4305
|
+
/**
|
|
4306
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
4307
|
+
* the header text does nothing (it may contain interactive content).
|
|
4308
|
+
*/
|
|
4281
4309
|
interface HTMLCoAccordionElement extends Components.CoAccordion, HTMLStencilElement {
|
|
4282
4310
|
addEventListener<K extends keyof HTMLCoAccordionElementEventMap>(type: K, listener: (this: HTMLCoAccordionElement, ev: CoAccordionCustomEvent<HTMLCoAccordionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4283
4311
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4314,7 +4342,7 @@ declare global {
|
|
|
4314
4342
|
};
|
|
4315
4343
|
interface HTMLCoAutocompleteElementEventMap {
|
|
4316
4344
|
"coSearch": string;
|
|
4317
|
-
"coChange": string | string[];
|
|
4345
|
+
"coChange": { value: string | string[]; item: { _id: string; label: string } | null };
|
|
4318
4346
|
"coClear": void;
|
|
4319
4347
|
}
|
|
4320
4348
|
interface HTMLCoAutocompleteElement extends Components.CoAutocomplete, HTMLStencilElement {
|
|
@@ -4605,7 +4633,7 @@ declare global {
|
|
|
4605
4633
|
new (): HTMLCoColumnPickerElement;
|
|
4606
4634
|
};
|
|
4607
4635
|
interface HTMLCoComboboxElementEventMap {
|
|
4608
|
-
"coChange": string[];
|
|
4636
|
+
"coChange": { value: string[] | string; item: { _id: string; label: string } | null };
|
|
4609
4637
|
"coOpen": void;
|
|
4610
4638
|
"coClose": void;
|
|
4611
4639
|
"coClear": void;
|
|
@@ -4629,7 +4657,7 @@ declare global {
|
|
|
4629
4657
|
interface HTMLCoCommandSearchElementEventMap {
|
|
4630
4658
|
"coSelect": string;
|
|
4631
4659
|
"coClose": void;
|
|
4632
|
-
"
|
|
4660
|
+
"coSearch": string;
|
|
4633
4661
|
"coScopeChange": string;
|
|
4634
4662
|
"coBackspaceEmpty": string;
|
|
4635
4663
|
"coChipRemove": number;
|
|
@@ -4660,6 +4688,7 @@ declare global {
|
|
|
4660
4688
|
"coSelectAll": { selected: boolean };
|
|
4661
4689
|
"coColumnResize": { field: string; width: number };
|
|
4662
4690
|
"coColumnPin": { field: string };
|
|
4691
|
+
"coHeaderFilter": { field: string; rect: { top: number; left: number; bottom: number; right: number; width: number; height: number } };
|
|
4663
4692
|
"coRowDblClick": { row: any; index: number };
|
|
4664
4693
|
"coRowClick": { row: any; index: number };
|
|
4665
4694
|
"coEmptyAction": void;
|
|
@@ -5491,7 +5520,6 @@ declare global {
|
|
|
5491
5520
|
"coLoadMore": void;
|
|
5492
5521
|
"coOpen": void;
|
|
5493
5522
|
"coClose": void;
|
|
5494
|
-
"coCreate": string;
|
|
5495
5523
|
"coRemove": string;
|
|
5496
5524
|
"coFooterPrimary": void;
|
|
5497
5525
|
"coFooterSecondary": void;
|
|
@@ -5995,6 +6023,10 @@ declare global {
|
|
|
5995
6023
|
declare namespace LocalJSX {
|
|
5996
6024
|
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
6025
|
|
|
6026
|
+
/**
|
|
6027
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
6028
|
+
* the header text does nothing (it may contain interactive content).
|
|
6029
|
+
*/
|
|
5998
6030
|
interface CoAccordion {
|
|
5999
6031
|
/**
|
|
6000
6032
|
* Hide the chevron / disable the toggle interaction.
|
|
@@ -6045,11 +6077,6 @@ declare namespace LocalJSX {
|
|
|
6045
6077
|
* @default true
|
|
6046
6078
|
*/
|
|
6047
6079
|
"clearable"?: boolean;
|
|
6048
|
-
/**
|
|
6049
|
-
* Debounce time in ms for coSearch
|
|
6050
|
-
* @default 300
|
|
6051
|
-
*/
|
|
6052
|
-
"debounce"?: number;
|
|
6053
6080
|
/**
|
|
6054
6081
|
* @default false
|
|
6055
6082
|
*/
|
|
@@ -6058,7 +6085,7 @@ declare namespace LocalJSX {
|
|
|
6058
6085
|
* Message when options are empty after search
|
|
6059
6086
|
* @default 'No results'
|
|
6060
6087
|
*/
|
|
6061
|
-
"
|
|
6088
|
+
"emptyMessage"?: string;
|
|
6062
6089
|
"helperText"?: string;
|
|
6063
6090
|
"iconLeft"?: string;
|
|
6064
6091
|
"label"?: string;
|
|
@@ -6080,7 +6107,7 @@ declare namespace LocalJSX {
|
|
|
6080
6107
|
* @default false
|
|
6081
6108
|
*/
|
|
6082
6109
|
"multiple"?: boolean;
|
|
6083
|
-
"onCoChange"?: (event: CoAutocompleteCustomEvent<string | string[]>) => void;
|
|
6110
|
+
"onCoChange"?: (event: CoAutocompleteCustomEvent<{ value: string | string[]; item: { _id: string; label: string } | null }>) => void;
|
|
6084
6111
|
"onCoClear"?: (event: CoAutocompleteCustomEvent<void>) => void;
|
|
6085
6112
|
/**
|
|
6086
6113
|
* Fired when the user types (after debounce). Host should fetch and set options.
|
|
@@ -6100,6 +6127,11 @@ declare namespace LocalJSX {
|
|
|
6100
6127
|
* @default false
|
|
6101
6128
|
*/
|
|
6102
6129
|
"required"?: boolean;
|
|
6130
|
+
/**
|
|
6131
|
+
* Debounce time in ms for coSearch
|
|
6132
|
+
* @default 300
|
|
6133
|
+
*/
|
|
6134
|
+
"searchDebounce"?: number;
|
|
6103
6135
|
"secondaryLabel"?: string;
|
|
6104
6136
|
/**
|
|
6105
6137
|
* Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48.
|
|
@@ -6928,6 +6960,11 @@ declare namespace LocalJSX {
|
|
|
6928
6960
|
* @default false
|
|
6929
6961
|
*/
|
|
6930
6962
|
"disabled"?: boolean;
|
|
6963
|
+
/**
|
|
6964
|
+
* Message shown when the filtered list is empty.
|
|
6965
|
+
* @default 'No results found'
|
|
6966
|
+
*/
|
|
6967
|
+
"emptyMessage"?: string;
|
|
6931
6968
|
/**
|
|
6932
6969
|
* Label for the primary footer button
|
|
6933
6970
|
* @default 'Ok'
|
|
@@ -6961,9 +6998,9 @@ declare namespace LocalJSX {
|
|
|
6961
6998
|
*/
|
|
6962
6999
|
"multiple"?: boolean;
|
|
6963
7000
|
/**
|
|
6964
|
-
* Emitted when the selection changes
|
|
7001
|
+
* Emitted when the selection changes. `item` is the picked option (the option-list's native `{ _id, label }` shape); `null` on clear.
|
|
6965
7002
|
*/
|
|
6966
|
-
"onCoChange"?: (event: CoComboboxCustomEvent<string[]>) => void;
|
|
7003
|
+
"onCoChange"?: (event: CoComboboxCustomEvent<{ value: string[] | string; item: { _id: string; label: string } | null }>) => void;
|
|
6967
7004
|
/**
|
|
6968
7005
|
* Emitted when the clear button is clicked
|
|
6969
7006
|
*/
|
|
@@ -7097,11 +7134,11 @@ declare namespace LocalJSX {
|
|
|
7097
7134
|
* Emitted when the "Más ▾" overflow tab is clicked.
|
|
7098
7135
|
*/
|
|
7099
7136
|
"onCoMoreTabs"?: (event: CoCommandSearchCustomEvent<void>) => void;
|
|
7100
|
-
"onCoQueryChange"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7101
7137
|
/**
|
|
7102
7138
|
* Emitted when an item with keepOpen=true is selected. Detail = item.value (scope model key).
|
|
7103
7139
|
*/
|
|
7104
7140
|
"onCoScopeChange"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7141
|
+
"onCoSearch"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7105
7142
|
"onCoSelect"?: (event: CoCommandSearchCustomEvent<string>) => void;
|
|
7106
7143
|
/**
|
|
7107
7144
|
* Emitted when a module tab is clicked. detail = tab value; '' when the active tab is re-clicked (deselect).
|
|
@@ -7157,6 +7194,16 @@ declare namespace LocalJSX {
|
|
|
7157
7194
|
* @default ''
|
|
7158
7195
|
*/
|
|
7159
7196
|
"emptyTitle"?: string;
|
|
7197
|
+
/**
|
|
7198
|
+
* Fields with an active column filter (funnel filled + always visible). JSON string or array.
|
|
7199
|
+
* @default '[]'
|
|
7200
|
+
*/
|
|
7201
|
+
"filteredFields"?: string | string[];
|
|
7202
|
+
/**
|
|
7203
|
+
* Fields filtered by OTHER filter layers (funnel dimmed hint). JSON string or array.
|
|
7204
|
+
* @default '[]'
|
|
7205
|
+
*/
|
|
7206
|
+
"indirectFilteredFields"?: string | string[];
|
|
7160
7207
|
/**
|
|
7161
7208
|
* Show loading skeleton
|
|
7162
7209
|
* @default false
|
|
@@ -7174,6 +7221,10 @@ declare namespace LocalJSX {
|
|
|
7174
7221
|
* Fired when the prop-driven empty-action button (`emptyActionLabel`) is clicked.
|
|
7175
7222
|
*/
|
|
7176
7223
|
"onCoEmptyAction"?: (event: CoDataTableCustomEvent<void>) => void;
|
|
7224
|
+
/**
|
|
7225
|
+
* Emitted when a column's filter icon is clicked (rect = icon bounding box for anchoring).
|
|
7226
|
+
*/
|
|
7227
|
+
"onCoHeaderFilter"?: (event: CoDataTableCustomEvent<{ field: string; rect: { top: number; left: number; bottom: number; right: number; width: number; height: number } }>) => void;
|
|
7177
7228
|
/**
|
|
7178
7229
|
* Emitted when a row is clicked
|
|
7179
7230
|
*/
|
|
@@ -7991,6 +8042,10 @@ declare namespace LocalJSX {
|
|
|
7991
8042
|
"view"?: 'month' | 'week' | 'day' | 'agenda';
|
|
7992
8043
|
}
|
|
7993
8044
|
interface CoFab {
|
|
8045
|
+
/**
|
|
8046
|
+
* Accessible label for icon-only FABs (falls back to `label`/`icon`).
|
|
8047
|
+
*/
|
|
8048
|
+
"ariaLabelText"?: string;
|
|
7994
8049
|
/**
|
|
7995
8050
|
* @default false
|
|
7996
8051
|
*/
|
|
@@ -8009,7 +8064,7 @@ declare namespace LocalJSX {
|
|
|
8009
8064
|
/**
|
|
8010
8065
|
* @default 'm'
|
|
8011
8066
|
*/
|
|
8012
|
-
"size"?: 'l' | 'm' | 's';
|
|
8067
|
+
"size"?: 'xl' | 'l' | 'm' | 's';
|
|
8013
8068
|
/**
|
|
8014
8069
|
* @default 'primary'
|
|
8015
8070
|
*/
|
|
@@ -8849,6 +8904,11 @@ declare namespace LocalJSX {
|
|
|
8849
8904
|
* host. Es 100% controlada: no muta `value`; emite y el host decide.
|
|
8850
8905
|
*/
|
|
8851
8906
|
interface CoOptionList {
|
|
8907
|
+
/**
|
|
8908
|
+
* 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.
|
|
8909
|
+
* @default false
|
|
8910
|
+
*/
|
|
8911
|
+
"autoHighlight"?: boolean;
|
|
8852
8912
|
/**
|
|
8853
8913
|
* @default 'circle'
|
|
8854
8914
|
*/
|
|
@@ -9279,10 +9339,6 @@ declare namespace LocalJSX {
|
|
|
9279
9339
|
* @default true
|
|
9280
9340
|
*/
|
|
9281
9341
|
"clearable"?: boolean;
|
|
9282
|
-
/**
|
|
9283
|
-
* If set, shows a "Create" button in the panel footer.
|
|
9284
|
-
*/
|
|
9285
|
-
"createLabel"?: string;
|
|
9286
9342
|
/**
|
|
9287
9343
|
* @default false
|
|
9288
9344
|
*/
|
|
@@ -9330,7 +9386,6 @@ declare namespace LocalJSX {
|
|
|
9330
9386
|
"onCoChange"?: (event: CoRefFieldCustomEvent<{ value: string | string[]; item: RefFieldOption }>) => void;
|
|
9331
9387
|
"onCoClear"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9332
9388
|
"onCoClose"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9333
|
-
"onCoCreate"?: (event: CoRefFieldCustomEvent<string>) => void;
|
|
9334
9389
|
"onCoFooterPrimary"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9335
9390
|
"onCoFooterSecondary"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
9336
9391
|
"onCoLoadMore"?: (event: CoRefFieldCustomEvent<void>) => void;
|
|
@@ -9930,10 +9985,10 @@ declare namespace LocalJSX {
|
|
|
9930
9985
|
*/
|
|
9931
9986
|
"value"?: string;
|
|
9932
9987
|
/**
|
|
9933
|
-
* Visual variant: filled pill (default) or
|
|
9988
|
+
* Visual variant: filled pill (default), underline tab, or segmented-control pill
|
|
9934
9989
|
* @default 'pill'
|
|
9935
9990
|
*/
|
|
9936
|
-
"variant"?: 'pill' | 'underline';
|
|
9991
|
+
"variant"?: 'pill' | 'underline' | 'segmented';
|
|
9937
9992
|
}
|
|
9938
9993
|
interface CoTabGroup {
|
|
9939
9994
|
/**
|
|
@@ -9948,7 +10003,7 @@ declare namespace LocalJSX {
|
|
|
9948
10003
|
* Visual variant, propagated to slotted co-tab children
|
|
9949
10004
|
* @default 'pill'
|
|
9950
10005
|
*/
|
|
9951
|
-
"variant"?: 'pill' | 'underline';
|
|
10006
|
+
"variant"?: 'pill' | 'underline' | 'segmented';
|
|
9952
10007
|
}
|
|
9953
10008
|
/**
|
|
9954
10009
|
* Free-text tags input — type a value and press Enter/Tab (or comma) to add it
|
|
@@ -10511,8 +10566,8 @@ declare namespace LocalJSX {
|
|
|
10511
10566
|
"multiple": boolean;
|
|
10512
10567
|
"loading": boolean;
|
|
10513
10568
|
"minChars": number;
|
|
10514
|
-
"
|
|
10515
|
-
"
|
|
10569
|
+
"searchDebounce": number;
|
|
10570
|
+
"emptyMessage": string;
|
|
10516
10571
|
}
|
|
10517
10572
|
interface CoAvatarAttributes {
|
|
10518
10573
|
"type": 'text' | 'icon' | 'image';
|
|
@@ -10702,6 +10757,7 @@ declare namespace LocalJSX {
|
|
|
10702
10757
|
"footerPrimaryLabel": string;
|
|
10703
10758
|
"footerSecondaryLabel": string;
|
|
10704
10759
|
"options": ComboboxOption[] | string[] | string;
|
|
10760
|
+
"emptyMessage": string;
|
|
10705
10761
|
"value": string[] | string;
|
|
10706
10762
|
"multiple": boolean;
|
|
10707
10763
|
"size": 's' | 'sm' | 'md' | 'lg';
|
|
@@ -10737,6 +10793,8 @@ declare namespace LocalJSX {
|
|
|
10737
10793
|
"emptyActionIcon": string;
|
|
10738
10794
|
"sortField": string;
|
|
10739
10795
|
"sortOrder": 'asc' | 'desc' | '';
|
|
10796
|
+
"filteredFields": string | string[];
|
|
10797
|
+
"indirectFilteredFields": string | string[];
|
|
10740
10798
|
"selectable": boolean;
|
|
10741
10799
|
"selectedKeys": string | string[];
|
|
10742
10800
|
"resizable": boolean;
|
|
@@ -10903,7 +10961,8 @@ declare namespace LocalJSX {
|
|
|
10903
10961
|
"icon": string;
|
|
10904
10962
|
"label": string;
|
|
10905
10963
|
"variant": 'primary' | 'secondary' | 'stroke';
|
|
10906
|
-
"size": 'l' | 'm' | 's';
|
|
10964
|
+
"size": 'xl' | 'l' | 'm' | 's';
|
|
10965
|
+
"ariaLabelText": string;
|
|
10907
10966
|
"disabled": boolean;
|
|
10908
10967
|
"position": 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'none';
|
|
10909
10968
|
}
|
|
@@ -11094,6 +11153,7 @@ declare namespace LocalJSX {
|
|
|
11094
11153
|
"highlightMatches": boolean;
|
|
11095
11154
|
"highlightTerm": string;
|
|
11096
11155
|
"avatarShape": 'circle' | 'square';
|
|
11156
|
+
"autoHighlight": boolean;
|
|
11097
11157
|
}
|
|
11098
11158
|
interface CoOverlayAttributes {
|
|
11099
11159
|
"open": boolean;
|
|
@@ -11193,7 +11253,6 @@ declare namespace LocalJSX {
|
|
|
11193
11253
|
"searchPlaceholder": string;
|
|
11194
11254
|
"searchDebounce": number;
|
|
11195
11255
|
"emptyMessage": string;
|
|
11196
|
-
"createLabel": string;
|
|
11197
11256
|
"showFooter": boolean;
|
|
11198
11257
|
"footerPrimaryLabel": string;
|
|
11199
11258
|
"footerSecondaryLabel": string;
|
|
@@ -11317,7 +11376,7 @@ declare namespace LocalJSX {
|
|
|
11317
11376
|
"value": string;
|
|
11318
11377
|
"selected": boolean;
|
|
11319
11378
|
"size": 'large' | 'small';
|
|
11320
|
-
"variant": 'pill' | 'underline';
|
|
11379
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
11321
11380
|
"badge": string;
|
|
11322
11381
|
"iconLeft": string;
|
|
11323
11382
|
"iconRight": string;
|
|
@@ -11325,7 +11384,7 @@ declare namespace LocalJSX {
|
|
|
11325
11384
|
}
|
|
11326
11385
|
interface CoTabGroupAttributes {
|
|
11327
11386
|
"value": string;
|
|
11328
|
-
"variant": 'pill' | 'underline';
|
|
11387
|
+
"variant": 'pill' | 'underline' | 'segmented';
|
|
11329
11388
|
}
|
|
11330
11389
|
interface CoTagsFieldAttributes {
|
|
11331
11390
|
"value": string[] | string;
|
|
@@ -11535,6 +11594,10 @@ export { LocalJSX as JSX };
|
|
|
11535
11594
|
declare module "@stencil/core" {
|
|
11536
11595
|
export namespace JSX {
|
|
11537
11596
|
interface IntrinsicElements {
|
|
11597
|
+
/**
|
|
11598
|
+
* Collapsible section. The caret button is the ONLY toggle trigger — clicking
|
|
11599
|
+
* the header text does nothing (it may contain interactive content).
|
|
11600
|
+
*/
|
|
11538
11601
|
"co-accordion": LocalJSX.IntrinsicElements["co-accordion"] & JSXBase.HTMLAttributes<HTMLCoAccordionElement>;
|
|
11539
11602
|
/**
|
|
11540
11603
|
* 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.5.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",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"dompurify": "^3.2.6",
|
|
52
52
|
"overlayscrollbars": "^2.16.0",
|
|
53
53
|
"@prolibu-suite/cobalt-calendar-utils": "0.1.0",
|
|
54
|
-
"@prolibu-suite/cobalt-
|
|
54
|
+
"@prolibu-suite/cobalt-date-utils": "0.1.1",
|
|
55
55
|
"@prolibu-suite/cobalt-rich-text": "0.1.2",
|
|
56
|
-
"@prolibu-suite/cobalt-
|
|
56
|
+
"@prolibu-suite/cobalt-tokens": "0.2.0"
|
|
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;
|