@prolibu-suite/cobalt-core 0.3.0 → 0.4.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/custom-elements.json +6407 -3168
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +9 -4
- 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 +37 -0
- package/dist/cjs/co-breadcrumb.cjs.entry.js +55 -0
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +10 -4
- package/dist/cjs/co-calendar-month.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar_3.cjs.entry.js +40 -10
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +18 -6
- package/dist/cjs/co-chip.cjs.entry.js +12 -7
- 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 +2 -2
- package/dist/cjs/co-command-search.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +23 -16
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +81 -0
- package/dist/cjs/co-drop-zone.cjs.entry.js +63 -0
- package/dist/cjs/co-empty-state.cjs.entry.js +13 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +7 -7
- package/dist/cjs/co-file-type-tile.cjs.entry.js +78 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +23 -7
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +36 -7
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- 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 +34 -0
- package/dist/cjs/co-media-thumb.cjs.entry.js +36 -0
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +11 -3
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +29 -5
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +4 -4
- package/dist/cjs/co-option-list.cjs.entry.js +379 -0
- package/dist/cjs/{co-loader_2.cjs.entry.js → co-overlay.cjs.entry.js} +2 -32
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-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 +4 -4
- 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 +2 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +58 -0
- package/dist/cjs/co-select.cjs.entry.js +6 -6
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +3 -3
- 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 +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +15 -3
- package/dist/cjs/co-tab.cjs.entry.js +8 -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 +10 -4
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +16 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +9 -5
- 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 +3 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{fieldChip-CDIMz_Y6.js → fieldChip-DtYUP0VZ.js} +1 -1
- package/dist/cjs/{index-5NdsiFjZ.js → index-4y1Dm145.js} +64 -11
- package/dist/cjs/{index-BumlM92r.js → index-NNvye1ul.js} +68 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{requiredMark-CqMGt1H1.js → requiredMark-DyjZzUCd.js} +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-635b03d5.entry.js → p-06c27cc5.entry.js} +1 -1
- package/dist/cobalt/p-075f6ca4.entry.js +1 -0
- package/dist/cobalt/{p-0a506c9d.entry.js → p-0810ee1e.entry.js} +1 -1
- package/dist/cobalt/p-08519a7c.entry.js +1 -0
- package/dist/cobalt/p-0b41e76e.entry.js +1 -0
- package/dist/cobalt/{p-d809bd44.entry.js → p-0be124d5.entry.js} +1 -1
- package/dist/cobalt/{p-8d59f5ad.entry.js → p-0e1afdea.entry.js} +1 -1
- package/dist/cobalt/{p-e53861e4.entry.js → p-1388eac6.entry.js} +1 -1
- package/dist/cobalt/{p-8dc1dab8.entry.js → p-19f7ee64.entry.js} +1 -1
- package/dist/cobalt/{p-29be61a9.entry.js → p-1af6ef83.entry.js} +1 -1
- package/dist/cobalt/{p-58a53421.entry.js → p-1cecb9e1.entry.js} +1 -1
- package/dist/cobalt/{p-ef7d4ae3.entry.js → p-20c68308.entry.js} +1 -1
- package/dist/cobalt/p-21916f82.entry.js +1 -0
- package/dist/cobalt/{p-3e187456.entry.js → p-23c9208a.entry.js} +1 -1
- package/dist/cobalt/{p-c10697e1.entry.js → p-2d4e1ca8.entry.js} +1 -1
- package/dist/cobalt/{p-377c2ccc.entry.js → p-304c3be1.entry.js} +1 -1
- package/dist/cobalt/{p-9abbd436.entry.js → p-311118cb.entry.js} +1 -1
- package/dist/cobalt/p-328f0470.entry.js +1 -0
- package/dist/cobalt/p-35c63fdc.entry.js +1 -0
- package/dist/cobalt/{p-70b14b05.entry.js → p-363a5262.entry.js} +1 -1
- package/dist/cobalt/p-376c43b8.entry.js +1 -0
- package/dist/cobalt/{p-afb7e19e.entry.js → p-39a29bbb.entry.js} +1 -1
- package/dist/cobalt/{p-1a07c23c.entry.js → p-3d07e4a9.entry.js} +1 -1
- package/dist/cobalt/{p-cb235aa7.entry.js → p-3dd6b57b.entry.js} +1 -1
- package/dist/cobalt/{p-9a088515.entry.js → p-48c5f311.entry.js} +1 -1
- package/dist/cobalt/{p-37595103.entry.js → p-4aeefe3f.entry.js} +1 -1
- package/dist/cobalt/p-523cfd98.entry.js +1 -0
- package/dist/cobalt/{p-9a04ca90.entry.js → p-58aed8d6.entry.js} +1 -1
- package/dist/cobalt/{p-93046365.entry.js → p-593fd213.entry.js} +1 -1
- package/dist/cobalt/{p-64ddee92.entry.js → p-5eecea26.entry.js} +1 -1
- package/dist/cobalt/p-64a0b656.entry.js +1 -0
- package/dist/cobalt/p-69289e82.entry.js +1 -0
- package/dist/cobalt/p-6a3ed174.entry.js +1 -0
- package/dist/cobalt/{p-1531d3c9.entry.js → p-6f12e721.entry.js} +1 -1
- package/dist/cobalt/{p-4871690e.entry.js → p-7040e4c5.entry.js} +1 -1
- package/dist/cobalt/p-755ecee1.entry.js +1 -0
- package/dist/cobalt/p-76b46336.entry.js +1 -0
- package/dist/cobalt/{p-65af5017.entry.js → p-79e49749.entry.js} +1 -1
- package/dist/cobalt/p-7b5dec05.entry.js +1 -0
- package/dist/cobalt/p-7d9f2021.entry.js +1 -0
- package/dist/cobalt/{p-51a53177.entry.js → p-804d025f.entry.js} +1 -1
- package/dist/cobalt/{p-0bb55163.entry.js → p-860a685f.entry.js} +1 -1
- package/dist/cobalt/p-87289d32.entry.js +1 -0
- package/dist/cobalt/{p-b6f20268.entry.js → p-8ae5da0c.entry.js} +1 -1
- package/dist/cobalt/p-8fdf2163.entry.js +1 -0
- package/dist/cobalt/p-9310739f.entry.js +1 -0
- package/dist/cobalt/{p-31ab9a46.entry.js → p-96baec0e.entry.js} +1 -1
- package/dist/cobalt/p-BUgUTjOB.js +1 -0
- package/dist/cobalt/{p-CegCk7FL.js → p-Bgxofdfb.js} +1 -1
- package/dist/cobalt/{p-BZJ7NCm5.js → p-BxzuCRMr.js} +1 -1
- package/dist/cobalt/p-Es9IUmmt.js +2 -0
- package/dist/cobalt/{p-8d7fdb9d.entry.js → p-a0749d7b.entry.js} +1 -1
- package/dist/cobalt/{p-1dc9c49e.entry.js → p-a71fd4f1.entry.js} +1 -1
- package/dist/cobalt/{p-52de17da.entry.js → p-aa1ad9fa.entry.js} +1 -1
- package/dist/cobalt/p-af0495d8.entry.js +1 -0
- package/dist/cobalt/{p-260101ab.entry.js → p-b045d680.entry.js} +1 -1
- package/dist/cobalt/{p-5890e4d1.entry.js → p-b3c8fc9a.entry.js} +1 -1
- package/dist/cobalt/p-b4dcc260.entry.js +1 -0
- package/dist/cobalt/p-b8200f7f.entry.js +1 -0
- package/dist/cobalt/p-b8f36f12.entry.js +1 -0
- package/dist/cobalt/{p-62274eba.entry.js → p-ba6f0f90.entry.js} +1 -1
- package/dist/cobalt/{p-279bf91c.entry.js → p-bae82095.entry.js} +1 -1
- package/dist/cobalt/{p-cfb36943.entry.js → p-be3e61f4.entry.js} +1 -1
- package/dist/cobalt/p-c1abc74b.entry.js +1 -0
- package/dist/cobalt/{p-ba90e871.entry.js → p-c23a2ff6.entry.js} +1 -1
- package/dist/cobalt/{p-f4063c41.entry.js → p-c682453a.entry.js} +1 -1
- package/dist/cobalt/{p-790d384e.entry.js → p-c857b9ff.entry.js} +1 -1
- package/dist/cobalt/{p-4504f7b0.entry.js → p-c85a6a9e.entry.js} +1 -1
- package/dist/cobalt/p-ca108c6d.entry.js +1 -0
- package/dist/cobalt/p-cf239452.entry.js +1 -0
- package/dist/cobalt/p-d2507f04.entry.js +1 -0
- package/dist/cobalt/p-d403d9c4.entry.js +1 -0
- package/dist/cobalt/{p-2f86e1e0.entry.js → p-d4086c34.entry.js} +1 -1
- package/dist/cobalt/p-d55652f2.entry.js +1 -0
- package/dist/cobalt/{p-12e2c2c4.entry.js → p-d7c9cf93.entry.js} +1 -1
- package/dist/cobalt/{p-1f747e45.entry.js → p-d7cbb4c7.entry.js} +1 -1
- package/dist/cobalt/p-da211abf.entry.js +1 -0
- package/dist/cobalt/p-dcc7fc95.entry.js +1 -0
- package/dist/cobalt/p-dd03c00b.entry.js +1 -0
- package/dist/cobalt/p-e55fb916.entry.js +1 -0
- package/dist/cobalt/p-e8e752f9.entry.js +1 -0
- package/dist/cobalt/{p-3863ea91.entry.js → p-e93644cb.entry.js} +1 -1
- package/dist/cobalt/{p-6e808b3a.entry.js → p-f6b93f17.entry.js} +1 -1
- package/dist/cobalt/{p-6d1217c3.entry.js → p-f72f0e38.entry.js} +1 -1
- package/dist/cobalt/{p-8e1dc062.entry.js → p-fb86cdb9.entry.js} +1 -1
- package/dist/cobalt/p-ff6be242.entry.js +1 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-avatar/co-avatar.js +27 -3
- 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.css +6 -0
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +111 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.css +66 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +169 -0
- package/dist/collection/components/co-button/co-button.css +23 -0
- package/dist/collection/components/co-button/co-button.js +48 -2
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- 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.css +63 -0
- package/dist/collection/components/co-checkbox/co-checkbox.js +58 -7
- package/dist/collection/components/co-chip/co-chip.css +56 -1
- package/dist/collection/components/co-chip/co-chip.js +52 -9
- 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-command-search/co-command-search.js +4 -4
- package/dist/collection/components/co-data-table/co-data-table.css +5 -1
- package/dist/collection/components/co-data-table/co-data-table.js +93 -14
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-drawer/co-drawer.css +20 -3
- package/dist/collection/components/co-drawer/co-drawer.js +52 -2
- package/dist/collection/components/co-drive-card/co-drive-card.css +285 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +329 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.css +49 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +197 -0
- package/dist/collection/components/co-empty-state/co-empty-state.css +38 -0
- package/dist/collection/components/co-empty-state/co-empty-state.js +72 -1
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- 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.css +14 -0
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +164 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +11 -4
- package/dist/collection/components/co-icon-button/co-icon-button.js +80 -25
- package/dist/collection/components/co-input/co-input.css +58 -0
- package/dist/collection/components/co-input/co-input.js +54 -5
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- 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.css +43 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +148 -0
- package/dist/collection/components/co-menu/co-menu.css +6 -4
- package/dist/collection/components/co-menu/co-menu.js +20 -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 +26 -8
- package/dist/collection/components/co-menu-item/co-menu-item.js +69 -2
- package/dist/collection/components/co-modal/co-modal.css +17 -0
- package/dist/collection/components/co-modal/co-modal.js +59 -6
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +228 -0
- package/dist/collection/components/co-option-list/co-option-list.js +860 -0
- package/dist/collection/components/co-option-list/optionListLogic.js +100 -0
- 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.js +1 -1
- package/dist/collection/components/co-popover/co-popover.js +2 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- 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.js +2 -2
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.css +36 -0
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +176 -0
- 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.js +2 -2
- 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.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +54 -3
- package/dist/collection/components/co-tab/co-tab.js +45 -3
- package/dist/collection/components/co-tab-group/co-tab-group.css +8 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +35 -1
- 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.css +56 -2
- package/dist/collection/components/co-toast/co-toast.js +27 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +38 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +46 -3
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +34 -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.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.d.ts +11 -0
- package/dist/components/co-breadcrumb-item.js +1 -0
- package/dist/components/co-breadcrumb.d.ts +11 -0
- package/dist/components/co-breadcrumb.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-drive-card.js +1 -0
- package/dist/components/co-drop-zone.d.ts +11 -0
- package/dist/components/co-drop-zone.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-file-type-tile.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-media-thumb.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-option-list.js +1 -0
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.d.ts +11 -0
- package/dist/components/co-segmented-bar.js +1 -0
- 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-D3Y_ti3Q.js → p-B0buzt_E.js} +1 -1
- package/dist/components/p-B3igDRut.js +1 -0
- package/dist/components/{p-CegCk7FL.js → p-Bgxofdfb.js} +1 -1
- package/dist/components/p-BhSJcOUS.js +1 -0
- package/dist/components/{p-DKh8ZK4U.js → p-BnTTeIFH.js} +1 -1
- package/dist/components/{p-DeZxp9vb.js → p-Bx1OwdIV.js} +1 -1
- package/dist/components/{p-C_ULDaks.js → p-BxiKVtk4.js} +1 -1
- package/dist/components/{p-DxCFMMfY.js → p-C7tPadNy.js} +1 -1
- package/dist/components/p-CBzpUqwG.js +1 -0
- package/dist/components/{p-BNKz39GA.js → p-CUvAZhuM.js} +1 -1
- package/dist/components/{p-tloAgDin.js → p-CZKHHCdL.js} +1 -1
- package/dist/components/{p-BB2OaYKF.js → p-CybHxq25.js} +1 -1
- package/dist/components/{p-BFeE_fiq.js → p-CzkeIavk.js} +1 -1
- package/dist/components/p-D7dk2gM7.js +1 -0
- package/dist/components/p-DTS-dgEe.js +1 -0
- package/dist/components/{p-B7vGYFbO.js → p-HXlAaApx.js} +1 -1
- package/dist/components/p-K6LC1Hz4.js +1 -0
- package/dist/components/p-LAxCvyJl.js +1 -0
- package/dist/components/p-vLFwJ77w.js +1 -0
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-autocomplete.entry.js +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +9 -4
- 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 +35 -0
- package/dist/esm/co-breadcrumb.entry.js +53 -0
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +10 -4
- package/dist/esm/co-calendar-month.entry.js +2 -2
- package/dist/esm/co-calendar_3.entry.js +40 -10
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +18 -6
- package/dist/esm/co-chip.entry.js +12 -7
- 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 +2 -2
- package/dist/esm/co-command-search.entry.js +5 -5
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +23 -16
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-drive-card.entry.js +79 -0
- package/dist/esm/co-drop-zone.entry.js +61 -0
- package/dist/esm/co-empty-state.entry.js +13 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +7 -7
- package/dist/esm/co-file-type-tile.entry.js +76 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +23 -7
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +36 -7
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/co-lightbox.entry.js +5 -5
- 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 +32 -0
- package/dist/esm/co-media-thumb.entry.js +34 -0
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +11 -3
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +29 -5
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +4 -4
- package/dist/esm/co-option-list.entry.js +377 -0
- package/dist/esm/{co-loader_2.entry.js → co-overlay.entry.js} +3 -32
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +3 -3
- package/dist/esm/co-progress-bar.entry.js +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +56 -0
- package/dist/esm/co-select.entry.js +6 -6
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +3 -3
- 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 +5 -5
- package/dist/esm/co-tab-group.entry.js +15 -3
- package/dist/esm/co-tab.entry.js +8 -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 +10 -4
- package/dist/esm/co-toggle-button-group.entry.js +16 -4
- package/dist/esm/co-toggle-button.entry.js +9 -5
- 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 +3 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{fieldChip-GPikjpYw.js → fieldChip-BBu4ukje.js} +1 -1
- package/dist/esm/{index-w_Wxgclf.js → index-Cyrxk8Qq.js} +64 -11
- package/dist/esm/{index-CYsftTKf.js → index-Es9IUmmt.js} +68 -8
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{requiredMark-CEbXKHcU.js → requiredMark-Bg25QWFn.js} +1 -1
- package/dist/types/components/co-avatar/co-avatar.d.ts +2 -0
- package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +27 -0
- package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +33 -0
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +10 -2
- package/dist/types/components/co-chip/co-chip.d.ts +15 -3
- package/dist/types/components/co-data-table/co-data-table.d.ts +13 -1
- package/dist/types/components/co-drawer/co-drawer.d.ts +12 -0
- package/dist/types/components/co-drive-card/co-drive-card.d.ts +52 -0
- package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +38 -0
- package/dist/types/components/co-empty-state/co-empty-state.d.ts +6 -0
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +11 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +18 -3
- package/dist/types/components/co-input/co-input.d.ts +13 -1
- package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +21 -0
- package/dist/types/components/co-menu/co-menu.d.ts +4 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +10 -1
- package/dist/types/components/co-modal/co-modal.d.ts +20 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +101 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +69 -0
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +32 -0
- package/dist/types/components/co-tab/co-tab.d.ts +4 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +3 -0
- package/dist/types/components/co-toast/co-toast.d.ts +7 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +6 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +5 -0
- package/dist/types/components.d.ts +1361 -55
- package/package.json +4 -4
- package/dist/cobalt/p-0e8c0d87.entry.js +0 -1
- package/dist/cobalt/p-136ad468.entry.js +0 -1
- package/dist/cobalt/p-14b59277.entry.js +0 -1
- package/dist/cobalt/p-1774d211.entry.js +0 -1
- package/dist/cobalt/p-180e1106.entry.js +0 -1
- package/dist/cobalt/p-201eaf35.entry.js +0 -1
- package/dist/cobalt/p-2d2ce434.entry.js +0 -1
- package/dist/cobalt/p-3a257cb0.entry.js +0 -1
- package/dist/cobalt/p-4431faac.entry.js +0 -1
- package/dist/cobalt/p-456fa86f.entry.js +0 -1
- package/dist/cobalt/p-4c01d984.entry.js +0 -1
- package/dist/cobalt/p-69d4c0c8.entry.js +0 -1
- package/dist/cobalt/p-6c480916.entry.js +0 -1
- package/dist/cobalt/p-8012e152.entry.js +0 -1
- package/dist/cobalt/p-80b27203.entry.js +0 -1
- package/dist/cobalt/p-867c1465.entry.js +0 -1
- package/dist/cobalt/p-86a143d7.entry.js +0 -1
- package/dist/cobalt/p-929e647f.entry.js +0 -1
- package/dist/cobalt/p-92bd9b29.entry.js +0 -1
- package/dist/cobalt/p-98ab5f3f.entry.js +0 -1
- package/dist/cobalt/p-9d69c067.entry.js +0 -1
- package/dist/cobalt/p-CYsftTKf.js +0 -2
- package/dist/cobalt/p-c4f59532.entry.js +0 -1
- package/dist/cobalt/p-e54dd404.entry.js +0 -1
- package/dist/cobalt/p-eb18fdbf.entry.js +0 -1
- package/dist/cobalt/p-eb73052a.entry.js +0 -1
- package/dist/cobalt/p-oImf-7fN.js +0 -1
- package/dist/components/p-Ba4v1NXo.js +0 -1
- package/dist/components/p-EPZfLt5l.js +0 -1
- package/dist/components/p-FMnqPWcM.js +0 -1
- package/dist/components/p-Hzh9U2cM.js +0 -1
- package/dist/components/p-WZ06pT2Y.js +0 -1
|
@@ -17,6 +17,12 @@ export class CoMenuItem {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
/** Tighter row metrics (32px instead of 36px). */
|
|
19
19
|
this.dense = false;
|
|
20
|
+
/** Marks the row as selected — paints an at-rest gray-100 background. Used by
|
|
21
|
+
* single-select menus (sort/type). */
|
|
22
|
+
this.selected = false;
|
|
23
|
+
/** Renders a trailing check (size 15) after the label. Pair with `selected`
|
|
24
|
+
* to mark the chosen option in a single-select menu. */
|
|
25
|
+
this.trailingCheck = false;
|
|
20
26
|
/** Visually disabled — pointer events ignored, opacity reduced. */
|
|
21
27
|
this.disabled = false;
|
|
22
28
|
/** `danger` shifts text + icon to the destructive color. Use for Delete, etc. */
|
|
@@ -120,14 +126,16 @@ export class CoMenuItem {
|
|
|
120
126
|
this.closeTimer = window.setTimeout(() => { this.submenuOpen = false; }, 260);
|
|
121
127
|
}
|
|
122
128
|
render() {
|
|
129
|
+
var _a;
|
|
123
130
|
const row = (h("button", { ref: (el) => (this.rowEl = el), class: {
|
|
124
131
|
'co-menu-item': true,
|
|
125
132
|
'co-menu-item--dense': this.dense,
|
|
133
|
+
'co-menu-item--selected': this.selected,
|
|
126
134
|
'co-menu-item--disabled': this.disabled,
|
|
127
135
|
'co-menu-item--danger': this.variant === 'danger',
|
|
128
136
|
'co-menu-item--submenu': this.hasSubmenu,
|
|
129
137
|
'co-menu-item--submenu-open': this.hasSubmenu && this.submenuOpen,
|
|
130
|
-
}, type: "button", role: "menuitem", "aria-haspopup": this.hasSubmenu ? 'menu' : undefined, "aria-expanded": this.hasSubmenu ? (this.submenuOpen ? 'true' : 'false') : undefined, disabled: this.disabled, onClick: this.handleClick, onKeyDown: this.handleKeydown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this.icon && (h("span", { class: "co-menu-item__icon" }, h("co-icon", { name: this.icon, size: 16 }))), h("span", { class: "co-menu-item__label" }, this.label, h("slot", { name: "label" })), h("span", { class: "co-menu-item__suffix" }, h("slot", { name: "suffix" }), this.hasSubmenu && h("co-icon", { name: "caret-right", size: 14 }))));
|
|
138
|
+
}, type: "button", role: "menuitem", "aria-haspopup": this.hasSubmenu ? 'menu' : undefined, "aria-expanded": this.hasSubmenu ? (this.submenuOpen ? 'true' : 'false') : undefined, disabled: this.disabled, onClick: this.handleClick, onKeyDown: this.handleKeydown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this.icon && (h("span", { class: "co-menu-item__icon" }, h("co-icon", { name: this.icon, size: (_a = this.iconSize) !== null && _a !== void 0 ? _a : 16 }))), h("span", { class: "co-menu-item__label" }, this.label, h("slot", { name: "label" })), this.trailingCheck && (h("span", { class: "co-menu-item__check" }, h("co-icon", { name: "check", size: 15 }))), h("span", { class: "co-menu-item__suffix" }, h("slot", { name: "suffix" }), this.hasSubmenu && h("co-icon", { name: "caret-right", size: 14 }))));
|
|
131
139
|
if (!this.hasSubmenu) {
|
|
132
140
|
// Leaf — the default slot is unused for leaves; ignore it.
|
|
133
141
|
return h("div", { class: "co-menu-item__wrap" }, row);
|
|
@@ -162,13 +170,32 @@ export class CoMenuItem {
|
|
|
162
170
|
"optional": true,
|
|
163
171
|
"docs": {
|
|
164
172
|
"tags": [],
|
|
165
|
-
"text": "Icon name (Phosphor) rendered before the label."
|
|
173
|
+
"text": "Icon name (Phosphor) rendered before the label. Optional \u2014 rows may be\nlabel-only."
|
|
166
174
|
},
|
|
167
175
|
"getter": false,
|
|
168
176
|
"setter": false,
|
|
169
177
|
"reflect": false,
|
|
170
178
|
"attribute": "icon"
|
|
171
179
|
},
|
|
180
|
+
"iconSize": {
|
|
181
|
+
"type": "number",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "number",
|
|
185
|
+
"resolved": "number | undefined",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": true,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": "Overrides the leading icon size (px). Defaults to 16."
|
|
193
|
+
},
|
|
194
|
+
"getter": false,
|
|
195
|
+
"setter": false,
|
|
196
|
+
"reflect": false,
|
|
197
|
+
"attribute": "icon-size"
|
|
198
|
+
},
|
|
172
199
|
"label": {
|
|
173
200
|
"type": "string",
|
|
174
201
|
"mutable": false,
|
|
@@ -208,6 +235,46 @@ export class CoMenuItem {
|
|
|
208
235
|
"attribute": "dense",
|
|
209
236
|
"defaultValue": "false"
|
|
210
237
|
},
|
|
238
|
+
"selected": {
|
|
239
|
+
"type": "boolean",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "boolean",
|
|
243
|
+
"resolved": "boolean",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Marks the row as selected \u2014 paints an at-rest gray-100 background. Used by\nsingle-select menus (sort/type)."
|
|
251
|
+
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"attribute": "selected",
|
|
256
|
+
"defaultValue": "false"
|
|
257
|
+
},
|
|
258
|
+
"trailingCheck": {
|
|
259
|
+
"type": "boolean",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "boolean",
|
|
263
|
+
"resolved": "boolean",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Renders a trailing check (size 15) after the label. Pair with `selected`\nto mark the chosen option in a single-select menu."
|
|
271
|
+
},
|
|
272
|
+
"getter": false,
|
|
273
|
+
"setter": false,
|
|
274
|
+
"reflect": false,
|
|
275
|
+
"attribute": "trailing-check",
|
|
276
|
+
"defaultValue": "false"
|
|
277
|
+
},
|
|
211
278
|
"disabled": {
|
|
212
279
|
"type": "boolean",
|
|
213
280
|
"mutable": false,
|
|
@@ -60,6 +60,23 @@
|
|
|
60
60
|
.co-modal--sm { max-width: 400px; }
|
|
61
61
|
.co-modal--lg { max-width: 680px; }
|
|
62
62
|
|
|
63
|
+
/* Media/document viewer. `height` is set (not just max-height) so the body has
|
|
64
|
+
a definite box to grow into — a <video> or <iframe> would otherwise collapse
|
|
65
|
+
to its intrinsic height and leave the panel half empty. */
|
|
66
|
+
.co-modal--full {
|
|
67
|
+
max-width: min(1400px, 95vw);
|
|
68
|
+
width: 95vw;
|
|
69
|
+
height: 92vh;
|
|
70
|
+
max-height: 92vh;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.co-modal--full .co-modal__body {
|
|
74
|
+
flex: 1;
|
|
75
|
+
min-height: 0; /* let the flex child shrink; without it the body overflows the panel */
|
|
76
|
+
padding: 0; /* the viewer fills edge-to-edge */
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
}
|
|
79
|
+
|
|
63
80
|
.co-modal--open {
|
|
64
81
|
transform: none;
|
|
65
82
|
opacity: 1;
|
|
@@ -14,7 +14,24 @@ export class CoModal {
|
|
|
14
14
|
this.closable = true;
|
|
15
15
|
/** Close when clicking the overlay backdrop */
|
|
16
16
|
this.closeOnOverlay = true;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Opt-in: close when Escape is pressed. Default false → existing consumers
|
|
19
|
+
* are unchanged.
|
|
20
|
+
*
|
|
21
|
+
* Handled here rather than by forwarding co-overlay's own `closeOnEscape`:
|
|
22
|
+
* co-overlay emits the SAME `coClose` for a backdrop click and for Escape,
|
|
23
|
+
* and this component gates that event on `closeOnOverlay`. Forwarding would
|
|
24
|
+
* therefore swallow Escape whenever `closeOnOverlay` is false.
|
|
25
|
+
*/
|
|
26
|
+
this.closeOnEscape = false;
|
|
27
|
+
/**
|
|
28
|
+
* Modal width: sm (400px), md (540px), lg (680px),
|
|
29
|
+
* full (min(1400px, 95vw) × 92vh — media/document viewers).
|
|
30
|
+
*
|
|
31
|
+
* `full` also drops the body padding and lets the body grow, so a slotted
|
|
32
|
+
* <video>/<iframe> fills the panel edge-to-edge instead of sitting in a
|
|
33
|
+
* content-height box.
|
|
34
|
+
*/
|
|
18
35
|
this.size = 'md';
|
|
19
36
|
/** Hide body section and all border dividers (compact confirm dialogs) */
|
|
20
37
|
this.noDividers = false;
|
|
@@ -38,14 +55,21 @@ export class CoModal {
|
|
|
38
55
|
this.coAfterClose.emit();
|
|
39
56
|
};
|
|
40
57
|
}
|
|
58
|
+
handleKeydown(e) {
|
|
59
|
+
if (!this.open || !this.closeOnEscape)
|
|
60
|
+
return;
|
|
61
|
+
if (e.key === 'Escape')
|
|
62
|
+
this.coClose.emit();
|
|
63
|
+
}
|
|
41
64
|
render() {
|
|
42
|
-
return (h("co-overlay", { key: '
|
|
65
|
+
return (h("co-overlay", { key: 'db9ac94c8fd2fe2e348fdee437aee9ddccdf85cb', open: this.open, onCoClose: this.handleOverlayClick }, h("div", { key: 'b2f0c174b09e2582c9e17ef18133b3e9057ace74', class: "co-modal__frame" }, h("div", { key: 'a3ae4c2a30d52b3c651ca80387f49f9344d9e89c', class: {
|
|
43
66
|
'co-modal': true,
|
|
44
67
|
'co-modal--open': this.open,
|
|
45
68
|
'co-modal--sm': this.size === 'sm',
|
|
46
69
|
'co-modal--lg': this.size === 'lg',
|
|
70
|
+
'co-modal--full': this.size === 'full',
|
|
47
71
|
'co-modal--no-dividers': this.noDividers,
|
|
48
|
-
}, part: "modal", ref: (el) => (this.modalEl = el), role: "dialog", "aria-modal": "true", "aria-labelledby": "modal-heading", onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '
|
|
72
|
+
}, part: "modal", ref: (el) => (this.modalEl = el), role: "dialog", "aria-modal": "true", "aria-labelledby": "modal-heading", onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: 'e90b7e7aa085ff53675586e66ee0ac5473a69cbc', class: "co-modal__header", part: "header" }, h("div", { key: 'e7ffccb3b8658e213d92f1a7873eebf6de42ef7d', class: "co-modal__header-text" }, h("h2", { key: '431e22f5bd933ee3052750e7e9abb7911fe24d9a', class: "co-modal__heading", id: "modal-heading" }, this.heading), this.description && (h("p", { key: 'f8e83dafce7ef899e5931902b568807063ea9ae3', class: "co-modal__description" }, this.description))), this.closable && (h("button", { key: '938dbc0df49067f359aa431ba0d16b89ad41a751', class: "co-modal__close", type: "button", "aria-label": "Close", onClick: this.handleCloseClick }, h("co-icon", { key: 'f1421d7d4441fff67259e21cf2a0107b6a57f746', name: "x", size: 20 })))), !this.noDividers && (h("div", { key: 'faf612d93e95232b46ebfb45089768bf09366a80', class: "co-modal__body", part: "body" }, h("slot", { key: '3c4dd9d1f3613a2f308cbc714426739a3aa6523d' }))), h("div", { key: '35546891b1847627de68a8f012e23fbfbdc1760b', class: "co-modal__footer", part: "footer" }, h("slot", { key: '263bd761b09998b9cc1f5f53d7dee87ccb5f4367', name: "footer" }))))));
|
|
49
73
|
}
|
|
50
74
|
static get is() { return "co-modal"; }
|
|
51
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,19 +184,39 @@ export class CoModal {
|
|
|
160
184
|
"attribute": "close-on-overlay",
|
|
161
185
|
"defaultValue": "true"
|
|
162
186
|
},
|
|
187
|
+
"closeOnEscape": {
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "boolean",
|
|
192
|
+
"resolved": "boolean",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Opt-in: close when Escape is pressed. Default false \u2192 existing consumers\nare unchanged.\n\nHandled here rather than by forwarding co-overlay's own `closeOnEscape`:\nco-overlay emits the SAME `coClose` for a backdrop click and for Escape,\nand this component gates that event on `closeOnOverlay`. Forwarding would\ntherefore swallow Escape whenever `closeOnOverlay` is false."
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"attribute": "close-on-escape",
|
|
205
|
+
"defaultValue": "false"
|
|
206
|
+
},
|
|
163
207
|
"size": {
|
|
164
208
|
"type": "string",
|
|
165
209
|
"mutable": false,
|
|
166
210
|
"complexType": {
|
|
167
|
-
"original": "'sm' | 'md' | 'lg'",
|
|
168
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
211
|
+
"original": "'sm' | 'md' | 'lg' | 'full'",
|
|
212
|
+
"resolved": "\"full\" | \"lg\" | \"md\" | \"sm\"",
|
|
169
213
|
"references": {}
|
|
170
214
|
},
|
|
171
215
|
"required": false,
|
|
172
216
|
"optional": false,
|
|
173
217
|
"docs": {
|
|
174
218
|
"tags": [],
|
|
175
|
-
"text": "Modal width: sm (400px), md (540px), lg (680px)"
|
|
219
|
+
"text": "Modal width: sm (400px), md (540px), lg (680px),\nfull (min(1400px, 95vw) \u00D7 92vh \u2014 media/document viewers).\n\n`full` also drops the body padding and lets the body grow, so a slotted\n<video>/<iframe> fills the panel edge-to-edge instead of sitting in a\ncontent-height box."
|
|
176
220
|
},
|
|
177
221
|
"getter": false,
|
|
178
222
|
"setter": false,
|
|
@@ -250,4 +294,13 @@ export class CoModal {
|
|
|
250
294
|
}
|
|
251
295
|
}];
|
|
252
296
|
}
|
|
297
|
+
static get listeners() {
|
|
298
|
+
return [{
|
|
299
|
+
"name": "keydown",
|
|
300
|
+
"method": "handleKeydown",
|
|
301
|
+
"target": "document",
|
|
302
|
+
"capture": false,
|
|
303
|
+
"passive": false
|
|
304
|
+
}];
|
|
305
|
+
}
|
|
253
306
|
}
|
|
@@ -14,12 +14,12 @@ export class CoNavbar {
|
|
|
14
14
|
this.rounded = false;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: 'ed73dbf77742c009fbd37602925a43f217044027', class: {
|
|
18
18
|
'co-navbar': true,
|
|
19
19
|
[`co-navbar--${this.variant}`]: true,
|
|
20
20
|
[`co-navbar--${this.size}`]: true,
|
|
21
21
|
'co-navbar--rounded': this.rounded,
|
|
22
|
-
}, part: "navbar", role: "toolbar" }, h("slot", { key: '
|
|
22
|
+
}, part: "navbar", role: "toolbar" }, h("slot", { key: '60235bb4ac473f67371094a735701fe40362db66' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "co-navbar"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -124,13 +124,13 @@ export class CoNumberField {
|
|
|
124
124
|
this.coChange.emit(clamped);
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: 'b9d2918682c1943728aa412b5abb4e17c842d9bd', class: {
|
|
128
128
|
'co-number-field': true,
|
|
129
129
|
'co-number-field--disabled': this.disabled,
|
|
130
130
|
'co-number-field--focused': this.focused,
|
|
131
131
|
[`co-number-field--${this.size}`]: true,
|
|
132
132
|
[`co-number-field--${this.status}`]: this.status !== 'default',
|
|
133
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
133
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: 'baa117f0cfeba73015fe6a396b7001c83db76079', class: "co-number-field__labels" }, this.label && h("label", { key: '2593906b02ca0935ab1b3e8bcf51d8867a2b416a', class: "co-number-field__label" }, this.label, h(RequiredMark, { key: '40cc658fedb70c38e92e07cf1cd0b8a628fd6ca6', required: this.required })), this.secondaryLabel && h("span", { key: 'b495275c3f9108442d6a4cc1d36b23b510e9f151', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: 'ac482c099f7952d26142b4e8aacac74fad2cd469', class: "co-number-field__row" }, h("button", { key: '617f9d33a8371bce87c9d8e56df88aef77dcc724', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '3242ac9dbbbcfeca024812b69d5f17a00fe4928a', name: "minus", size: 16 })), h("input", { key: 'beaab19de433dcc7b6ffd13678b68f2b229d8311', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal", value: this.isEmpty ? '' : String(this.toDisplay(this.value)), placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown }), this.scaled && !this.isEmpty && (h("span", { key: '5426965b700dccf1387071138d8dae113cf4fdf4', class: "co-number-field__affix", "aria-hidden": "true" }, "%")), this.clearable && !this.isEmpty && !this.disabled && (h("button", { key: 'f6f2e6a7f9a5a77fc96a8223a0eaad7880599e55', class: "co-number-field__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '1c29c52af8720ffd2dbd5c5aa960107ad16c7613', name: "x-circle", size: 16, weight: "fill" }))), h("button", { key: '3a1265f41fcf4ca88b25e88f3921d0087aeede99', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: 'ac97bb8ee26e535b2c278e647b2edb1d3dbaac1b', name: "plus", size: 16 }))), this.helperText && (h("div", { key: '714e6fcd1f7ac625ec6702d97f72487b0448e8ed', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '69cf83620410820ca2eaf3e473a0f815c812c69e', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: 'e185964aaa4a7410e5f5e78da88bd6b78de072b4', class: "co-number-field__helper-text" }, this.helperText)))));
|
|
134
134
|
}
|
|
135
135
|
static get is() { return "co-number-field"; }
|
|
136
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
font-family: var(--co-font-family-primary);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.co-option-list {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--co-spacing-sm);
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ── Search ──────────────────────────────────────────────── */
|
|
14
|
+
.co-option-list__search {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--co-spacing-sm);
|
|
18
|
+
padding: var(--co-spacing-sm) var(--co-spacing-md);
|
|
19
|
+
border: 1px solid var(--co-semantic-border-default);
|
|
20
|
+
border-radius: var(--co-border-radius-xs);
|
|
21
|
+
color: var(--co-semantic-text-muted);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.co-option-list__search:focus-within {
|
|
25
|
+
border-color: var(--co-semantic-border-focus);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.co-option-list__search-input {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
border: 0;
|
|
32
|
+
outline: none;
|
|
33
|
+
background: transparent;
|
|
34
|
+
font-family: var(--co-font-family-primary);
|
|
35
|
+
font-size: var(--co-font-size-14);
|
|
36
|
+
color: var(--co-semantic-text-default);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.co-option-list__search-input::placeholder {
|
|
40
|
+
color: var(--co-semantic-text-muted);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ── Options container ───────────────────────────────────── */
|
|
44
|
+
.co-option-list__options {
|
|
45
|
+
max-height: 240px;
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
overflow-x: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.co-option-list__inner {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Rows ────────────────────────────────────────────────── */
|
|
57
|
+
.co-option-list__option {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--co-spacing-sm);
|
|
61
|
+
min-width: 0;
|
|
62
|
+
padding: var(--co-spacing-sm);
|
|
63
|
+
border-radius: var(--co-border-radius-xxs);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
font-size: var(--co-font-size-14);
|
|
66
|
+
color: var(--co-semantic-text-default);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.co-option-list__option--active {
|
|
70
|
+
background: var(--co-semantic-surface-hover);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.co-option-list__option--selected .co-option-list__label {
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.co-option-list__option--disabled {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.co-option-list__avatar,
|
|
83
|
+
.co-option-list__icon {
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.co-option-list__dot {
|
|
88
|
+
flex-shrink: 0;
|
|
89
|
+
width: 10px;
|
|
90
|
+
height: 10px;
|
|
91
|
+
border-radius: var(--co-border-radius-full);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.co-option-list__text {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
gap: var(--co-spacing-xxs);
|
|
98
|
+
flex: 1;
|
|
99
|
+
min-width: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.co-option-list__title {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: var(--co-spacing-xs);
|
|
106
|
+
min-width: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.co-option-list__label {
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.co-option-list__suffix {
|
|
117
|
+
color: var(--co-semantic-text-secondary);
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
flex-shrink: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.co-option-list__badge {
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
padding: 0 var(--co-spacing-xs);
|
|
127
|
+
border-radius: var(--co-border-radius-full);
|
|
128
|
+
background: var(--co-semantic-surface-hover);
|
|
129
|
+
color: var(--co-semantic-on-primary);
|
|
130
|
+
font-size: var(--co-font-size-10);
|
|
131
|
+
font-weight: 600;
|
|
132
|
+
line-height: 16px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.co-option-list__desc {
|
|
136
|
+
font-size: var(--co-font-size-12);
|
|
137
|
+
color: var(--co-semantic-text-muted);
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
text-overflow: ellipsis;
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.co-option-list__match {
|
|
144
|
+
color: var(--co-color-primary-azul);
|
|
145
|
+
font-weight: 700;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.co-option-list__check {
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
color: var(--co-color-primary-verde);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.co-option-list__row-action {
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
border: 0;
|
|
158
|
+
background: transparent;
|
|
159
|
+
padding: 0;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
color: var(--co-semantic-text-muted);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.co-option-list__row-action:hover {
|
|
165
|
+
color: var(--co-semantic-text-default);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ── Group headers ───────────────────────────────────────── */
|
|
169
|
+
.co-option-list__group {
|
|
170
|
+
padding: var(--co-spacing-sm) var(--co-spacing-sm) var(--co-spacing-xs);
|
|
171
|
+
font-size: var(--co-font-size-11, 11px);
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
text-transform: uppercase;
|
|
174
|
+
letter-spacing: 0.04em;
|
|
175
|
+
color: var(--co-semantic-text-muted);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ── Clear row ───────────────────────────────────────────── */
|
|
179
|
+
.co-option-list__clear-row {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: var(--co-spacing-sm);
|
|
183
|
+
width: 100%;
|
|
184
|
+
border: 0;
|
|
185
|
+
background: transparent;
|
|
186
|
+
padding: var(--co-spacing-sm);
|
|
187
|
+
border-radius: var(--co-border-radius-xxs);
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
text-align: left;
|
|
190
|
+
font-family: var(--co-font-family-primary);
|
|
191
|
+
font-size: var(--co-font-size-14);
|
|
192
|
+
color: var(--co-semantic-text-secondary);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.co-option-list__clear-row:hover {
|
|
196
|
+
background: var(--co-semantic-surface-hover);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* ── States ──────────────────────────────────────────────── */
|
|
200
|
+
.co-option-list__loading,
|
|
201
|
+
.co-option-list__loading-more {
|
|
202
|
+
display: flex;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
padding: var(--co-spacing-sm);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.co-option-list__empty {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
gap: var(--co-spacing-sm);
|
|
211
|
+
padding: var(--co-spacing-md) var(--co-spacing-sm);
|
|
212
|
+
font-size: var(--co-font-size-12);
|
|
213
|
+
color: var(--co-semantic-text-muted);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.co-option-list__more {
|
|
217
|
+
padding: var(--co-spacing-xs) var(--co-spacing-sm);
|
|
218
|
+
font-size: var(--co-font-size-12);
|
|
219
|
+
color: var(--co-semantic-text-muted);
|
|
220
|
+
text-align: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Focus visible en filas navegadas por teclado (a11y baseline) */
|
|
224
|
+
.co-option-list__option:focus-visible,
|
|
225
|
+
.co-option-list__clear-row:focus-visible {
|
|
226
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
227
|
+
outline-offset: -2px;
|
|
228
|
+
}
|