@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
|
@@ -30,8 +30,16 @@ export class CoInput {
|
|
|
30
30
|
this.required = false;
|
|
31
31
|
/** Validation status */
|
|
32
32
|
this.status = 'default';
|
|
33
|
-
/** Size variant: s (28px), sm (32px), md (40px, default), lg (48px)
|
|
33
|
+
/** Size variant: s (28px), sm (32px), md (40px, default), lg (48px).
|
|
34
|
+
* In the filled search-pill variant (`fill`) this drives the pill height
|
|
35
|
+
* instead (s ≈ 38px). */
|
|
34
36
|
this.size = 'md';
|
|
37
|
+
/** Filled search-pill variant. When true the field renders as a minimal gray
|
|
38
|
+
* pill (background gray-100, no border/box-shadow, 10px radius) with a search
|
|
39
|
+
* glyph on the left and a plain-`x` clear — the floating label, helper text and
|
|
40
|
+
* status chrome are suppressed. When false (default) the field renders
|
|
41
|
+
* IDENTICALLY to the standard text field. */
|
|
42
|
+
this.fill = false;
|
|
35
43
|
this.hasFocus = false;
|
|
36
44
|
this.handleInput = (e) => {
|
|
37
45
|
const target = e.target;
|
|
@@ -91,9 +99,30 @@ export class CoInput {
|
|
|
91
99
|
default: return null;
|
|
92
100
|
}
|
|
93
101
|
}
|
|
102
|
+
/** Filled search-pill variant (fill=true). Minimal chrome: icon-left + native
|
|
103
|
+
* input + plain-x clear. No labels, helper text, status icons, chips or action.
|
|
104
|
+
* The default field render path is left untouched. */
|
|
105
|
+
renderFill() {
|
|
106
|
+
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
107
|
+
const leftIcon = this.iconLeft || 'magnifying-glass';
|
|
108
|
+
return (h("div", { class: {
|
|
109
|
+
'co-input': true,
|
|
110
|
+
'co-input--fill': true,
|
|
111
|
+
[`co-input--${this.size}`]: true,
|
|
112
|
+
'co-input--disabled': this.disabled,
|
|
113
|
+
'co-input--focused': this.hasFocus,
|
|
114
|
+
'co-input--filled': this.hasValue,
|
|
115
|
+
}, part: "wrapper" }, h("div", { class: "co-input__field-row" }, h("div", { class: "co-input__field", part: "field" }, h("co-icon", { name: leftIcon, size: 17, class: "co-input__icon co-input__icon--left" }), h("div", { class: "co-input__input-wrapper" }, h("input", { ref: (el) => (this.inputEl = el), class: "co-input__native", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autoComplete: this.autocomplete, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { class: {
|
|
116
|
+
'co-input__clear': true,
|
|
117
|
+
'co-input__clear--hidden': !showClear,
|
|
118
|
+
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", { name: "x", size: 14 })))))));
|
|
119
|
+
}
|
|
94
120
|
render() {
|
|
121
|
+
if (this.fill) {
|
|
122
|
+
return this.renderFill();
|
|
123
|
+
}
|
|
95
124
|
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
96
|
-
return (h("div", {
|
|
125
|
+
return (h("div", { class: {
|
|
97
126
|
'co-input': true,
|
|
98
127
|
[`co-input--${this.layout}`]: true,
|
|
99
128
|
[`co-input--${this.size}`]: true,
|
|
@@ -102,10 +131,10 @@ export class CoInput {
|
|
|
102
131
|
'co-input--filled': this.hasValue,
|
|
103
132
|
[`co-input--${this.status}`]: this.status !== 'default',
|
|
104
133
|
'co-input--has-action': this.hasAction,
|
|
105
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", {
|
|
134
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { class: "co-input__labels" }, this.label && h("label", { class: "co-input__label", part: "label" }, this.label, h(RequiredMark, { required: this.required })), this.secondaryLabel && (h("span", { class: "co-input__secondary-label", part: "secondary-label" }, this.secondaryLabel)))), h("div", { class: "co-input__field-row" }, h("div", { class: "co-input__field", part: "field" }, this.iconLeft && (h("co-icon", { name: this.iconLeft, size: 16, class: "co-input__icon co-input__icon--left" })), h("slot", { name: "chips" }), h("div", { class: "co-input__input-wrapper" }, h("input", { ref: (el) => (this.inputEl = el), class: "co-input__native", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autoComplete: this.autocomplete, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { class: {
|
|
106
135
|
'co-input__clear': true,
|
|
107
136
|
'co-input__clear--hidden': !showClear,
|
|
108
|
-
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", {
|
|
137
|
+
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), this.iconRight && (h("co-icon", { name: this.iconRight, size: 16, class: "co-input__icon co-input__icon--right" })), this.statusFieldIcon && (h("co-icon", { name: this.statusFieldIcon, size: 16, class: "co-input__status-icon" })), h("slot", { name: "suffix" }), h("slot", null), h("slot", { name: "action" })), this.hasAction && (h("button", { class: "co-input__action", type: "button", onClick: this.handleAction, disabled: this.disabled, part: "action" }, this.actionIcon && (h("co-icon", { name: this.actionIcon, size: 16, class: "co-input__action-icon" })), this.actionLabel && (h("span", { class: "co-input__action-label" }, this.actionLabel))))), this.helperText && (h("div", { class: `co-input__helper co-input__helper--${this.status}`, part: "helper" }, this.helperIcon && (h("co-icon", { name: this.helperIcon, size: 14, class: "co-input__helper-icon" })), h("span", { class: "co-input__helper-text" }, this.helperText)))));
|
|
109
138
|
}
|
|
110
139
|
static get is() { return "co-input"; }
|
|
111
140
|
static get encapsulation() { return "shadow"; }
|
|
@@ -446,7 +475,7 @@ export class CoInput {
|
|
|
446
475
|
"optional": false,
|
|
447
476
|
"docs": {
|
|
448
477
|
"tags": [],
|
|
449
|
-
"text": "Size variant: s (28px), sm (32px), md (40px, default), lg (48px)"
|
|
478
|
+
"text": "Size variant: s (28px), sm (32px), md (40px, default), lg (48px).\nIn the filled search-pill variant (`fill`) this drives the pill height\ninstead (s \u2248 38px)."
|
|
450
479
|
},
|
|
451
480
|
"getter": false,
|
|
452
481
|
"setter": false,
|
|
@@ -454,6 +483,26 @@ export class CoInput {
|
|
|
454
483
|
"attribute": "size",
|
|
455
484
|
"defaultValue": "'md'"
|
|
456
485
|
},
|
|
486
|
+
"fill": {
|
|
487
|
+
"type": "boolean",
|
|
488
|
+
"mutable": false,
|
|
489
|
+
"complexType": {
|
|
490
|
+
"original": "boolean",
|
|
491
|
+
"resolved": "boolean",
|
|
492
|
+
"references": {}
|
|
493
|
+
},
|
|
494
|
+
"required": false,
|
|
495
|
+
"optional": false,
|
|
496
|
+
"docs": {
|
|
497
|
+
"tags": [],
|
|
498
|
+
"text": "Filled search-pill variant. When true the field renders as a minimal gray\npill (background gray-100, no border/box-shadow, 10px radius) with a search\nglyph on the left and a plain-`x` clear \u2014 the floating label, helper text and\nstatus chrome are suppressed. When false (default) the field renders\nIDENTICALLY to the standard text field."
|
|
499
|
+
},
|
|
500
|
+
"getter": false,
|
|
501
|
+
"setter": false,
|
|
502
|
+
"reflect": false,
|
|
503
|
+
"attribute": "fill",
|
|
504
|
+
"defaultValue": "false"
|
|
505
|
+
},
|
|
457
506
|
"actionLabel": {
|
|
458
507
|
"type": "string",
|
|
459
508
|
"mutable": false,
|
|
@@ -97,17 +97,17 @@ export class CoJsonField {
|
|
|
97
97
|
render() {
|
|
98
98
|
const helper = this.internalInvalid ? this.invalidMessage : this.helperText;
|
|
99
99
|
const statusClass = this.status !== 'default' ? `co-json-field--${this.status}` : '';
|
|
100
|
-
return (h("div", { key: '
|
|
100
|
+
return (h("div", { key: '3694e74443cabde9c86e37a38d2ab93f49e2a239', class: {
|
|
101
101
|
'co-json-field': true,
|
|
102
102
|
'co-json-field--disabled': this.disabled,
|
|
103
103
|
'co-json-field--focused': this.hasFocus,
|
|
104
104
|
'co-json-field--invalid': this.isInvalid,
|
|
105
105
|
[`co-json-field--${this.size}`]: true,
|
|
106
106
|
[statusClass]: !!statusClass,
|
|
107
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
107
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '806b6b2e0aa1fc4cade79fec7111e7afa4f23faf', class: "co-json-field__labels" }, h("label", { key: 'c01947ab92bb4849469e70b3077fa0af5fa953bd', class: "co-json-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'f91fd778dba0cdb233872dcace643112e0d3c4de', required: this.required })))), h("div", { key: '4070579d2d8fe149c19163133d7ea549f965725e', class: "co-json-field__field", part: "field" }, h("textarea", { key: '91e21766aae9f39e76c003720207bebfb087af4f', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && h("input", { key: '87736d190c59a59a46ae0a341f28135892f109d0', type: "hidden", name: this.name, value: this.draft }), helper && (h("div", { key: '304a65252877ae80e52278bea82128a8f7df3c90', class: {
|
|
108
108
|
'co-json-field__helper': true,
|
|
109
109
|
'co-json-field__helper--error': this.isInvalid,
|
|
110
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
110
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '1771161363b23da8aac7f1c70ab56b32f208f5cd', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), h("span", { key: 'ce965e666a8107027249647a256c4e46d72d2db4', class: "co-json-field__helper-text" }, helper)))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "co-json-field"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -286,17 +286,17 @@ export class CoLightbox {
|
|
|
286
286
|
const counter = s.counter
|
|
287
287
|
.replace('{i}', String(this.index + 1))
|
|
288
288
|
.replace('{n}', String(imgs.length));
|
|
289
|
-
return (h("div", { key: '
|
|
289
|
+
return (h("div", { key: '52c5a63a5b289a012b4abe1c36836443e411e6f7', class: { 'co-lightbox': true, 'co-lightbox--open': this.open }, part: "overlay", role: "dialog", "aria-modal": "true", "aria-label": img === null || img === void 0 ? void 0 : img.alt, onClick: this.requestClose }, img && (h("div", { key: 'aaa047087d36959105b86c7dde558155f3c68a69', class: "co-lightbox__toolbar", part: "toolbar", onClick: this.stop }, h("span", { key: '32fb4ca4e93b26f24817db3c0aa2751be1de60d6', class: "co-lightbox__caption", title: img.alt }, img.alt), h("div", { key: '33c8ab802bd2d23e43adb02bb0428d302a07db74', class: "co-lightbox__zoom" }, h("button", { key: '9dc29e565c5dda21e746b6811a45ce6d4d4452d7', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomOut, title: s.zoomOut, onClick: () => this.zoomAt(this.scale / WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: 'fccd37212da128bcb4d1dae7278d305e376fbdbb', name: "minus", size: 16 })), h("button", { key: 'c3119bb1829926d9426d5420504f9b48b600160c', class: "co-lightbox__btn co-lightbox__zoom-value", type: "button", "aria-label": s.zoomReset, title: s.zoomReset, onClick: () => this.resetView() }, Math.round(this.scale * 100), "%"), h("button", { key: 'cf38c2ad754af4d4faa9fb7ba824344578939c82', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomIn, title: s.zoomIn, onClick: () => this.zoomAt(this.scale * WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: '017e7627ed2563c76e6b5dcf8dddee16ee37b9ec', name: "plus", size: 16 }))), h("button", { key: '2f57b78ea0d5ad1cde4d10e874681dfc1279c333', class: "co-lightbox__btn", type: "button", "aria-label": s.openOriginal, title: s.openOriginal, onClick: this.openOriginal }, h("co-icon", { key: 'f3de0f4b04e07966784efd3e87775f1add854578', name: "arrow-square-out", size: 16 })), h("button", { key: '459a464214f1b75ee1e7f9ec810f35e0d0ba426b', class: "co-lightbox__btn", part: "close", type: "button", "aria-label": s.close, title: s.close, ref: (el) => (this.closeBtnEl = el), onClick: this.requestClose }, h("co-icon", { key: '6208dfb164d75cbecb490b3237bc2350c224d7c3', name: "x", size: 16 })))), img && (h("div", { key: '1ba614d572e39b9e6f08a5810d129bca7b7b4f9b', class: "co-lightbox__stage", ref: (el) => (this.stageEl = el), onWheel: this.handleWheel }, h("img", { key: 'a61b425df6441845abbfaa3ae308bb16b7ac8813', class: {
|
|
290
290
|
'co-lightbox__img': true,
|
|
291
291
|
'co-lightbox__img--zoomed': this.scale > MIN_SCALE,
|
|
292
292
|
'co-lightbox__img--dragging': this.dragging,
|
|
293
|
-
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (h("button", { key: '
|
|
293
|
+
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (h("button", { key: '8578fbfa008878324b15f2d7ade346f86f465bea', class: "co-lightbox__nav co-lightbox__nav--prev", part: "prev", type: "button", "aria-label": s.prevImage, title: s.prevImage, onClick: (e) => {
|
|
294
294
|
e.stopPropagation();
|
|
295
295
|
this.goTo(-1);
|
|
296
|
-
} }, h("co-icon", { key: '
|
|
296
|
+
} }, h("co-icon", { key: 'e2ea791a38889d458c30155c3c6f65ea734ff1c8', name: "caret-left", size: 24 }))), img && multi && (h("button", { key: '1e3232f6fc181eb9444ee5ea7bdfe688ede28b55', class: "co-lightbox__nav co-lightbox__nav--next", part: "next", type: "button", "aria-label": s.nextImage, title: s.nextImage, onClick: (e) => {
|
|
297
297
|
e.stopPropagation();
|
|
298
298
|
this.goTo(1);
|
|
299
|
-
} }, h("co-icon", { key: '
|
|
299
|
+
} }, h("co-icon", { key: 'e591fcabe8c3f3c81c276c95d40e5dc6189bd4e0', name: "caret-right", size: 24 }))), img && multi && (h("div", { key: 'fd55eb538aa57b89ddf17598a1c58cfc8bbcc04b', class: "co-lightbox__counter", part: "counter", onClick: this.stop }, counter))));
|
|
300
300
|
}
|
|
301
301
|
static get is() { return "co-lightbox"; }
|
|
302
302
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class CoListFooter {
|
|
|
17
17
|
this.handleSecondary = () => this.coSecondary.emit();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '89ebd30358e2c8b1e1461adb9a294862719dac2f', class: "co-list-footer", part: "footer" }, this.secondaryLabel && (h("button", { key: '877ee7f795c35c5b2845b606c40518a98f691d00', class: "co-list-footer__btn co-list-footer__btn--secondary", type: "button", onClick: this.handleSecondary }, this.secondaryIcon && h("co-icon", { key: '2ecba284a7ac5b1789900a6ab6f66d3e1692d894', name: this.secondaryIcon, size: 16 }), h("span", { key: '5a864d3d85e7a10fb66afd67805527d04cf496ae' }, this.secondaryLabel))), this.primaryLabel && (h("button", { key: '65281886aee6037f7386e6c92a0e9e158945b496', class: "co-list-footer__btn co-list-footer__btn--primary", type: "button", onClick: this.handlePrimary }, this.primaryIcon && h("co-icon", { key: 'cafc1fbda58a3b3d0dbbe9202e872bd1a96cfbf6', name: this.primaryIcon, size: 16 }), h("span", { key: 'd230a2a1edfe02c75c555f635be0dae8015cdfb9' }, this.primaryLabel))), h("slot", { key: '5f1bec4894b87226198d6154dd9c5f5e86272d4b' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "co-list-footer"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,21 +70,21 @@ export class CoListItem {
|
|
|
70
70
|
requestAnimationFrame(this.measureTruncation);
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: '1c6124749c2bc07f1f5118adf3a906d0316db256', class: {
|
|
74
74
|
'co-list-item': true,
|
|
75
75
|
'co-list-item--selected': this.selected,
|
|
76
76
|
'co-list-item--disabled': this.disabled,
|
|
77
77
|
'co-list-item--dense': this.dense,
|
|
78
78
|
'co-list-item--has-description': !!this.description,
|
|
79
|
-
}, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '
|
|
79
|
+
}, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: 'd452e5ce3b962eebd63fb99d858192e56390e4fe', class: "co-list-item__prefix" }, this.icon && h("co-icon", { key: '1f2451697758c49bcce76c417ecdd1069a3b923c', name: this.icon, size: 18 }), h("slot", { key: '0366ddc338f487ebfda19c8455009ec7d547a768', name: "prefix" })), h("div", { key: '38e01734e0b6a16f7020eae8d6cf1731c59b3c64', class: "co-list-item__content" }, this.label && (h("co-tooltip", { key: '353d8e6ca59dbd957473cd8b60d51d9652c79780', block: true, class: "co-list-item__tip", content: this.label, placement: "top", disabled: !this.labelTruncated }, h("span", { key: '6d12b514cec487ec071a968787f1a0d94847be13', class: "co-list-item__label", ref: (el) => {
|
|
80
80
|
this.labelEl = el;
|
|
81
81
|
if (el && this.ro)
|
|
82
82
|
this.ro.observe(el);
|
|
83
|
-
} }, this.label))), this.description && (h("co-tooltip", { key: '
|
|
83
|
+
} }, this.label))), this.description && (h("co-tooltip", { key: 'c08d96031518a7c96ab0d6bb71b147f3aa769d50', block: true, class: "co-list-item__tip", content: this.description, placement: "top", disabled: !this.descTruncated }, h("span", { key: '33e4c5c76a1d066d408b07ff5dbe13e0dbea691a', class: "co-list-item__description", ref: (el) => {
|
|
84
84
|
this.descEl = el;
|
|
85
85
|
if (el && this.ro)
|
|
86
86
|
this.ro.observe(el);
|
|
87
|
-
} }, this.description))), h("slot", { key: '
|
|
87
|
+
} }, this.description))), h("slot", { key: '2e35ea5289301048d967b4b9bf11743101927118' })), h("span", { key: 'cd33f25a15fb3ad3a747fad14cccb3141967cc4b', class: "co-list-item__suffix" }, h("slot", { key: '25b6881aacf68e7b0e927d367ce9492a642d8224', name: "suffix" }))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "co-list-item"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.co-media-thumb {
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: var(--co-color-gray-100, #f6f6f6);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.co-media-thumb__img {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ─── VIDEO OVERLAY ─────────────────────────────────────────── */
|
|
21
|
+
.co-media-thumb__scrim {
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset: 0;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
background: rgba(31, 28, 27, 0.28);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.co-media-thumb__play {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 44px;
|
|
35
|
+
height: 44px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
background: rgba(255, 255, 255, 0.92);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.co-media-thumb__play-icon {
|
|
41
|
+
display: block;
|
|
42
|
+
margin-left: 2px; /* optical centering of the triangle */
|
|
43
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* An image / video preview region. Renders a cover image when `src` is set,
|
|
4
|
+
* an optional dark scrim + play button when `video` is true, and a default
|
|
5
|
+
* slot fallback (for a type-icon box) when there is no `src`.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Fallback content shown when `src` is not set (e.g. a type-icon box).
|
|
8
|
+
*/
|
|
9
|
+
export class CoMediaThumb {
|
|
10
|
+
constructor() {
|
|
11
|
+
/** Show the video overlay (dark scrim + centered play button). */
|
|
12
|
+
this.video = false;
|
|
13
|
+
/** Height of the region. Accepts a CSS length or a bare number (→ px). */
|
|
14
|
+
this.height = '132px';
|
|
15
|
+
/** Corner radius in px. */
|
|
16
|
+
this.radius = 10;
|
|
17
|
+
}
|
|
18
|
+
toCss(value) {
|
|
19
|
+
if (typeof value === 'number')
|
|
20
|
+
return `${value}px`;
|
|
21
|
+
const v = String(value).trim();
|
|
22
|
+
return /^-?\d*\.?\d+$/.test(v) ? `${v}px` : v;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
var _a;
|
|
26
|
+
return (h("div", { key: '003a31fad075f90eb6097f3a9c4844d7bb15285f', class: {
|
|
27
|
+
'co-media-thumb': true,
|
|
28
|
+
'co-media-thumb--video': this.video,
|
|
29
|
+
}, part: "thumb", style: {
|
|
30
|
+
height: this.toCss(this.height),
|
|
31
|
+
borderRadius: `${this.radius}px`,
|
|
32
|
+
} }, this.src ? (h("img", { class: "co-media-thumb__img", src: this.src, alt: (_a = this.alt) !== null && _a !== void 0 ? _a : '', part: "img" })) : (h("slot", null)), this.video && (h("div", { key: '11419e55099d3098081d33de77b372f545be8be2', class: "co-media-thumb__scrim", part: "scrim" }, h("div", { key: 'bd9249783989b073dfb21ac973bedbfc43ea655c', class: "co-media-thumb__play", part: "play" }, h("svg", { key: '6610a414fd2ad05f11aa810dd0703e7fab30ec8d', class: "co-media-thumb__play-icon", width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", "aria-hidden": "true" }, h("path", { key: 'b005c7540600ad137f159392f94c437eaf91c0d8', d: "M2 2l12 7-12 7z", fill: "var(--co-color-base-negro, #1f1c1b)" })))))));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "co-media-thumb"; }
|
|
35
|
+
static get encapsulation() { return "shadow"; }
|
|
36
|
+
static get originalStyleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["co-media-thumb.css"]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static get styleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["co-media-thumb.css"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get properties() {
|
|
47
|
+
return {
|
|
48
|
+
"src": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string | undefined",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": true,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "Image source URL. When set, a cover image is rendered."
|
|
61
|
+
},
|
|
62
|
+
"getter": false,
|
|
63
|
+
"setter": false,
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"attribute": "src"
|
|
66
|
+
},
|
|
67
|
+
"video": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Show the video overlay (dark scrim + centered play button)."
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"reflect": false,
|
|
84
|
+
"attribute": "video",
|
|
85
|
+
"defaultValue": "false"
|
|
86
|
+
},
|
|
87
|
+
"height": {
|
|
88
|
+
"type": "any",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string | number",
|
|
92
|
+
"resolved": "number | string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": "Height of the region. Accepts a CSS length or a bare number (\u2192 px)."
|
|
100
|
+
},
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"attribute": "height",
|
|
105
|
+
"defaultValue": "'132px'"
|
|
106
|
+
},
|
|
107
|
+
"radius": {
|
|
108
|
+
"type": "number",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "number",
|
|
112
|
+
"resolved": "number",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "Corner radius in px."
|
|
120
|
+
},
|
|
121
|
+
"getter": false,
|
|
122
|
+
"setter": false,
|
|
123
|
+
"reflect": false,
|
|
124
|
+
"attribute": "radius",
|
|
125
|
+
"defaultValue": "10"
|
|
126
|
+
},
|
|
127
|
+
"alt": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string | undefined",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": true,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Alternative text for the image."
|
|
140
|
+
},
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"attribute": "alt"
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
.co-menu {
|
|
6
6
|
/* surface-secondary = base-blanco. NOT surface-primary (that's base-negro). */
|
|
7
7
|
background: var(--co-semantic-surface-secondary, #fff);
|
|
8
|
-
border: 1px solid var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
9
8
|
border-radius: var(--co-border-radius-sm, 12px);
|
|
9
|
+
/* shadow-lg drop shadow + a 1px inset hairline ring (replaces the old 1px
|
|
10
|
+
border so it never adds to the panel box). */
|
|
10
11
|
box-shadow:
|
|
11
|
-
0 4px 12px rgba(0, 0, 0, 0.08),
|
|
12
|
-
0 1px
|
|
13
|
-
padding
|
|
12
|
+
var(--co-shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04)),
|
|
13
|
+
inset 0 0 0 1px var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08));
|
|
14
|
+
/* Tunable panel padding — default 4px; design (Header "Nuevo" menu) uses 6px. */
|
|
15
|
+
padding: var(--co-menu-padding, var(--co-spacing-xs, 4px));
|
|
14
16
|
min-width: 200px;
|
|
15
17
|
display: flex;
|
|
16
18
|
flex-direction: column;
|
|
@@ -111,7 +111,7 @@ export class CoMenu {
|
|
|
111
111
|
(_b = (_a = items[next]) === null || _a === void 0 ? void 0 : _a.focusItem) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h("co-popover", { key: '
|
|
114
|
+
return (h("co-popover", { key: '69e82f6a6eec310ca8ab45d1716eee124f4127f9', placement: this.placement, offset: this.offset, open: this.open, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("slot", { key: 'f03a749106eb2c3b566c5179fb7b43c88c6887ed', name: "trigger", slot: "trigger" }), h("div", { key: 'a133998147e906f1b96c79baccb345e6cc3aad57', class: "co-menu", role: "menu", style: this.width ? { width: this.width, minWidth: this.width } : undefined }, h("slot", { key: 'bdc28c804d63632df5849b82904741074fc161ef' }))));
|
|
115
115
|
}
|
|
116
116
|
static get is() { return "co-menu"; }
|
|
117
117
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,6 +213,25 @@ export class CoMenu {
|
|
|
213
213
|
"reflect": true,
|
|
214
214
|
"attribute": "open",
|
|
215
215
|
"defaultValue": "false"
|
|
216
|
+
},
|
|
217
|
+
"width": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "string",
|
|
222
|
+
"resolved": "string | undefined",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": true,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Fixes the panel to an exact width (e.g. `'210px'`). When unset, the panel\nkeeps its intrinsic auto width (min-width 200px). Also tune padding with the\n`--co-menu-padding` CSS var (default 4px; design uses 6px)."
|
|
230
|
+
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"attribute": "width"
|
|
216
235
|
}
|
|
217
236
|
};
|
|
218
237
|
}
|
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class CoMenuDivider {
|
|
7
7
|
render() {
|
|
8
|
-
return h("hr", { key: '
|
|
8
|
+
return h("hr", { key: 'dd21fada7235dda4e64c2a3a003b26c4dd65501e', class: "co-menu-divider", role: "separator" });
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "co-menu-divider"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
width: 100%;
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
|
-
gap
|
|
14
|
-
|
|
13
|
+
/* Tunable metrics — defaults reproduce the original 8px gap / 8px 12px pad /
|
|
14
|
+
36px row. Header rows use gap 10 + pad "0 10" + height 38; sort/type rows
|
|
15
|
+
use pad "0 10" + height 36. */
|
|
16
|
+
gap: var(--co-menu-item-gap, var(--co-spacing-sm, 8px));
|
|
17
|
+
padding: var(--co-menu-item-padding, var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px));
|
|
15
18
|
background: transparent;
|
|
16
19
|
border: 0;
|
|
17
20
|
border-radius: var(--co-border-radius-xs, 8px);
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
text-align: left;
|
|
22
25
|
cursor: pointer;
|
|
23
26
|
transition: background 0.1s ease, color 0.1s ease;
|
|
24
|
-
min-height: 36px;
|
|
27
|
+
min-height: var(--co-menu-item-height, 36px);
|
|
25
28
|
box-sizing: border-box;
|
|
26
29
|
}
|
|
27
30
|
|
|
@@ -30,6 +33,11 @@
|
|
|
30
33
|
min-height: 32px;
|
|
31
34
|
}
|
|
32
35
|
|
|
36
|
+
/* At-rest selected highlight. Declared before :hover so hover still wins. */
|
|
37
|
+
.co-menu-item--selected {
|
|
38
|
+
background: var(--co-color-gray-100, #f6f6f6);
|
|
39
|
+
}
|
|
40
|
+
|
|
33
41
|
.co-menu-item:hover,
|
|
34
42
|
.co-menu-item--submenu-open {
|
|
35
43
|
background: var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04));
|
|
@@ -57,7 +65,17 @@
|
|
|
57
65
|
display: inline-flex;
|
|
58
66
|
align-items: center;
|
|
59
67
|
flex-shrink: 0;
|
|
60
|
-
color
|
|
68
|
+
/* Default follows text color; Header rows override to gray-600. */
|
|
69
|
+
color: var(--co-menu-item-icon-color, currentColor);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Trailing check (single-select menus). After the flex:1 label, so it sits at
|
|
73
|
+
the row's trailing edge. */
|
|
74
|
+
.co-menu-item__check {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
color: var(--co-semantic-text-default);
|
|
61
79
|
}
|
|
62
80
|
|
|
63
81
|
.co-menu-item__label {
|
|
@@ -86,12 +104,12 @@
|
|
|
86
104
|
.co-menu-item__submenu {
|
|
87
105
|
/* surface-secondary = base-blanco. NOT surface-primary (that's base-negro). */
|
|
88
106
|
background: var(--co-semantic-surface-secondary, #fff);
|
|
89
|
-
border: 1px solid var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
90
107
|
border-radius: var(--co-border-radius-sm, 12px);
|
|
108
|
+
/* Match the co-menu panel: shadow-lg + 1px inset hairline ring. */
|
|
91
109
|
box-shadow:
|
|
92
|
-
0 4px 12px rgba(0, 0, 0, 0.08),
|
|
93
|
-
0 1px
|
|
94
|
-
padding: var(--co-spacing-xs, 4px);
|
|
110
|
+
var(--co-shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04)),
|
|
111
|
+
inset 0 0 0 1px var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08));
|
|
112
|
+
padding: var(--co-menu-padding, var(--co-spacing-xs, 4px));
|
|
95
113
|
min-width: 180px;
|
|
96
114
|
display: flex;
|
|
97
115
|
flex-direction: column;
|