@prolibu-suite/cobalt-core 0.2.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 +19263 -11548
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +10 -7
- package/dist/cjs/co-avatar-group.cjs.entry.js +77 -0
- package/dist/cjs/co-avatar.cjs.entry.js +12 -5
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +325 -0
- 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 +12 -6
- package/dist/cjs/co-calendar-month.cjs.entry.js +381 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +41 -11
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/co-checkbox.cjs.entry.js +18 -6
- package/dist/cjs/co-chip.cjs.entry.js +19 -11
- package/dist/cjs/co-color-picker.cjs.entry.js +7 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +7 -7
- package/dist/cjs/co-command-search.cjs.entry.js +151 -12
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +44 -23
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +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 +318 -0
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- 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 +24 -8
- package/dist/cjs/co-icon.cjs.entry.js +33 -25
- package/dist/cjs/co-input.cjs.entry.js +36 -7
- package/dist/cjs/co-json-field.cjs.entry.js +10 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +25 -0
- package/dist/cjs/co-list-item.cjs.entry.js +60 -4
- package/dist/cjs/co-loader.cjs.entry.js +2 -2
- 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 +26 -11
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +41 -5
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +18 -6
- package/dist/cjs/co-option-list.cjs.entry.js +379 -0
- package/dist/cjs/co-overlay.cjs.entry.js +243 -3
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +6 -4
- package/dist/cjs/co-popover.cjs.entry.js +45 -14
- package/dist/cjs/co-progress-bar.cjs.entry.js +8 -4
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +36 -13
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +1879 -33
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +995 -71
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +55 -19
- 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 +8 -8
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +29 -9
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +15 -3
- package/dist/cjs/co-tab.cjs.entry.js +8 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +19 -13
- package/dist/cjs/co-textarea.cjs.entry.js +11 -7
- 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 +51 -16
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-video.cjs.entry.js +839 -0
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/fieldChip-DtYUP0VZ.js +7 -0
- package/dist/{esm/index-BjAqSidM.js → cjs/index-4y1Dm145.js} +14436 -6178
- package/dist/cjs/{index-DoFnrUVH.js → index-NNvye1ul.js} +105 -21
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/overlayAfterClose-BdeXrhVY.js +12 -0
- package/dist/{esm/sanitizer-DcK0GGZC.js → cjs/purify.es-DX41ZWS2.js} +3 -107
- package/dist/cjs/{requiredMark-DA6y-4rp.js → requiredMark-DyjZzUCd.js} +1 -1
- package/dist/cjs/richTextI18n-B7ktXg3M.js +382 -0
- package/dist/cjs/toolbar-config-3PlT-3zm.js +216 -0
- package/dist/cjs/tz-Dgom0W69.js +127 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-06c27cc5.entry.js +1 -0
- package/dist/cobalt/{p-136bdbd2.entry.js → p-075f6ca4.entry.js} +1 -1
- package/dist/cobalt/p-0810ee1e.entry.js +1 -0
- package/dist/cobalt/p-08519a7c.entry.js +1 -0
- package/dist/cobalt/p-0b41e76e.entry.js +1 -0
- package/dist/cobalt/p-0be124d5.entry.js +1 -0
- package/dist/cobalt/{p-e8b58332.entry.js → p-0e1afdea.entry.js} +1 -1
- package/dist/cobalt/p-1388eac6.entry.js +1 -0
- package/dist/cobalt/{p-7f818368.entry.js → p-19f7ee64.entry.js} +1 -1
- package/dist/cobalt/p-1af6ef83.entry.js +1 -0
- package/dist/cobalt/{p-f2c5cb74.entry.js → p-1cecb9e1.entry.js} +1 -1
- package/dist/cobalt/{p-273afd93.entry.js → p-20c68308.entry.js} +1 -1
- package/dist/cobalt/p-21916f82.entry.js +1 -0
- package/dist/cobalt/p-23c9208a.entry.js +1 -0
- package/dist/cobalt/p-2d4e1ca8.entry.js +1 -0
- package/dist/cobalt/{p-def448e4.entry.js → p-304c3be1.entry.js} +1 -1
- package/dist/cobalt/p-311118cb.entry.js +1 -0
- package/dist/cobalt/{p-2b4d8535.entry.js → p-328f0470.entry.js} +1 -1
- package/dist/cobalt/p-35c63fdc.entry.js +1 -0
- package/dist/cobalt/{p-f97ad9ad.entry.js → p-363a5262.entry.js} +1 -1
- package/dist/cobalt/p-376c43b8.entry.js +1 -0
- package/dist/cobalt/p-39a29bbb.entry.js +1 -0
- package/dist/cobalt/p-3d07e4a9.entry.js +1 -0
- package/dist/cobalt/{p-1e0282b8.entry.js → p-3dd6b57b.entry.js} +1 -1
- package/dist/cobalt/{p-7ef766c6.entry.js → p-48c5f311.entry.js} +1 -1
- package/dist/cobalt/{p-fe9e85b6.entry.js → p-4aeefe3f.entry.js} +1 -1
- package/dist/cobalt/p-523cfd98.entry.js +1 -0
- package/dist/cobalt/{p-c87285b6.entry.js → p-58aed8d6.entry.js} +1 -1
- package/dist/cobalt/p-593fd213.entry.js +1 -0
- package/dist/cobalt/p-5eecea26.entry.js +1 -0
- 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-6f12e721.entry.js +1 -0
- package/dist/cobalt/{p-3f9b3fcb.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-79e49749.entry.js +1 -0
- package/dist/cobalt/p-7b5dec05.entry.js +1 -0
- package/dist/cobalt/p-7d9f2021.entry.js +1 -0
- package/dist/cobalt/p-804d025f.entry.js +1 -0
- package/dist/cobalt/p-860a685f.entry.js +1 -0
- package/dist/cobalt/p-87289d32.entry.js +1 -0
- package/dist/cobalt/{p-b758c2e6.entry.js → p-8ae5da0c.entry.js} +1 -1
- package/dist/cobalt/{p-ff2690e5.entry.js → p-8fdf2163.entry.js} +1 -1
- package/dist/cobalt/p-9310739f.entry.js +1 -0
- package/dist/cobalt/{p-522fcdb7.entry.js → p-96baec0e.entry.js} +1 -1
- package/dist/cobalt/p-B-ckjCUA.js +1 -0
- package/dist/cobalt/p-B2QLgWrz.js +2 -0
- package/dist/cobalt/p-B6JZk8fL.js +1 -0
- package/dist/cobalt/p-BUgUTjOB.js +1 -0
- package/dist/cobalt/p-Bgxofdfb.js +1 -0
- package/dist/cobalt/p-BxzuCRMr.js +1 -0
- package/dist/cobalt/p-Ch1jfwZ2.js +1 -0
- package/dist/cobalt/p-ChibIpZv.js +1 -0
- package/dist/cobalt/p-Es9IUmmt.js +2 -0
- package/dist/cobalt/p-a0749d7b.entry.js +1 -0
- package/dist/cobalt/p-a71fd4f1.entry.js +1 -0
- package/dist/cobalt/p-aa1ad9fa.entry.js +1 -0
- package/dist/cobalt/p-af0495d8.entry.js +1 -0
- package/dist/cobalt/p-b045d680.entry.js +1 -0
- package/dist/cobalt/p-b3c8fc9a.entry.js +1 -0
- 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-ba6f0f90.entry.js +1 -0
- package/dist/cobalt/p-bae82095.entry.js +1 -0
- package/dist/cobalt/p-be3e61f4.entry.js +1 -0
- package/dist/cobalt/p-c1abc74b.entry.js +1 -0
- package/dist/cobalt/{p-bb07da22.entry.js → p-c23a2ff6.entry.js} +1 -1
- package/dist/cobalt/p-c682453a.entry.js +1 -0
- package/dist/cobalt/{p-97c20011.entry.js → p-c857b9ff.entry.js} +1 -1
- package/dist/cobalt/{p-54f26e95.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-aa63812a.entry.js → p-d4086c34.entry.js} +1 -1
- package/dist/cobalt/p-d55652f2.entry.js +1 -0
- package/dist/cobalt/p-d7c9cf93.entry.js +1 -0
- package/dist/cobalt/p-d7cbb4c7.entry.js +1 -0
- 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-e93644cb.entry.js +1 -0
- package/dist/cobalt/{p-f0e8fa7d.entry.js → p-f6b93f17.entry.js} +1 -1
- package/dist/cobalt/p-f72f0e38.entry.js +1 -0
- package/dist/cobalt/{p-beb9c11d.entry.js → p-fb86cdb9.entry.js} +1 -1
- package/dist/cobalt/p-ff6be242.entry.js +1 -0
- package/dist/cobalt/{p-CyYF8IJE.js → p-tPYikBRJ.js} +1 -1
- package/dist/collection/collection-manifest.json +18 -3
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +79 -6
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +28 -1
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +27 -4
- package/dist/collection/components/co-avatar/co-avatar.css +38 -1
- package/dist/collection/components/co-avatar/co-avatar.js +48 -3
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +86 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +224 -0
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +136 -0
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +507 -0
- 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 +63 -7
- package/dist/collection/components/co-button/co-button.js +72 -7
- 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.css +231 -0
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +594 -0
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-checkbox/co-checkbox.css +70 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +58 -7
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +7 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +3 -3
- package/dist/collection/components/co-chip/co-chip.css +82 -7
- package/dist/collection/components/co-chip/co-chip.js +102 -17
- package/dist/collection/components/co-color-picker/co-color-picker.css +35 -1
- package/dist/collection/components/co-color-picker/co-color-picker.js +24 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +7 -47
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.css +163 -1
- package/dist/collection/components/co-command-search/co-command-search.js +355 -14
- package/dist/collection/components/co-command-search/commandSearchGroup.js +17 -0
- package/dist/collection/components/co-command-search/commandSearchLogic.js +27 -0
- package/dist/collection/components/co-data-table/co-data-table.css +42 -2
- package/dist/collection/components/co-data-table/co-data-table.js +116 -23
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +7 -1
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +7 -1
- package/dist/collection/components/co-drawer/co-drawer.css +21 -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.css +146 -0
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +620 -0
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +7 -1
- 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 +7 -37
- package/dist/collection/components/co-icon/iconLoader.js +39 -0
- package/dist/collection/components/co-icon-button/co-icon-button.css +26 -8
- package/dist/collection/components/co-icon-button/co-icon-button.js +82 -8
- package/dist/collection/components/co-input/co-input.css +65 -1
- package/dist/collection/components/co-input/co-input.js +54 -5
- package/dist/collection/components/co-json-field/co-json-field.css +25 -1
- package/dist/collection/components/co-json-field/co-json-field.js +27 -3
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.css +50 -0
- package/dist/collection/components/co-list-footer/co-list-footer.js +149 -0
- package/dist/collection/components/co-list-item/co-list-item.css +7 -0
- package/dist/collection/components/co-list-item/co-list-item.js +65 -2
- package/dist/collection/components/co-loader/co-loader.css +9 -0
- 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 +44 -8
- package/dist/collection/components/co-menu-item/co-menu-item.js +84 -10
- package/dist/collection/components/co-modal/co-modal.css +59 -2
- package/dist/collection/components/co-modal/co-modal.js +99 -6
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +19 -1
- package/dist/collection/components/co-number-field/co-number-field.js +34 -3
- 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.css +15 -1
- package/dist/collection/components/co-overlay/co-overlay.js +266 -1
- package/dist/collection/components/co-overlay/focusTrap.js +53 -0
- package/dist/collection/components/co-overlay/overlayAfterClose.js +8 -0
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +30 -2
- package/dist/collection/components/co-phone-field/co-phone-field.js +23 -1
- package/dist/collection/components/co-popover/co-popover.css +9 -0
- package/dist/collection/components/co-popover/co-popover.js +43 -12
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +22 -0
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +26 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +64 -6
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1125 -41
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2008 -53
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +791 -9
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +1071 -71
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +46 -41
- 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.css +7 -1
- package/dist/collection/components/co-select/co-select.js +5 -5
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +99 -12
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +28 -8
- package/dist/collection/components/co-skeleton/co-skeleton.css +28 -0
- package/dist/collection/components/co-skeleton/co-skeleton.js +97 -0
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +9 -1
- 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.css +39 -1
- package/dist/collection/components/co-tags-field/co-tags-field.js +36 -10
- package/dist/collection/components/co-textarea/co-textarea.css +26 -1
- package/dist/collection/components/co-textarea/co-textarea.js +28 -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 +64 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +47 -4
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +32 -12
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +34 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +8 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +69 -14
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +497 -0
- package/dist/collection/components/co-video/co-video.js +1772 -0
- package/dist/collection/utils/fieldChip.js +2 -0
- package/dist/collection/utils/icon-config.js +12 -0
- package/dist/collection/utils/richTextI18n.js +378 -0
- package/dist/collection/utils/sheetGesture.js +53 -0
- 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.d.ts +11 -0
- package/dist/components/co-avatar-group.js +1 -0
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.d.ts +11 -0
- package/dist/components/co-bottom-sheet.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-calendar-month.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-event-calendar.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-list-footer.js +1 -0
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-loader.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.d.ts +11 -0
- package/dist/components/co-skeleton.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-B0buzt_E.js +1 -0
- package/dist/components/p-B2QLgWrz.js +2 -0
- package/dist/components/p-B3igDRut.js +1 -0
- package/dist/components/p-Bgxofdfb.js +1 -0
- package/dist/components/p-BhSJcOUS.js +1 -0
- package/dist/components/{p-DObrQi5F.js → p-BnTTeIFH.js} +1 -1
- package/dist/components/{p-C9tHLXKS.js → p-Bx1OwdIV.js} +1 -1
- package/dist/components/p-BxiKVtk4.js +1 -0
- package/dist/components/p-C7tPadNy.js +1 -0
- package/dist/components/p-CBzpUqwG.js +1 -0
- package/dist/components/p-CUvAZhuM.js +1 -0
- package/dist/components/p-CZKHHCdL.js +1 -0
- package/dist/components/p-ChibIpZv.js +1 -0
- package/dist/components/p-CybHxq25.js +1 -0
- package/dist/components/p-CzkeIavk.js +1 -0
- package/dist/components/p-D7dk2gM7.js +1 -0
- package/dist/components/p-DTS-dgEe.js +1 -0
- package/dist/components/p-DvhR3H61.js +1 -0
- package/dist/components/{p-OGpfa9Yd.js → p-DzoNGEDU.js} +1 -1
- package/dist/components/{p-BeWXpX8I.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 +4 -4
- package/dist/esm/co-autocomplete.entry.js +10 -7
- package/dist/esm/co-avatar-group.entry.js +75 -0
- package/dist/esm/co-avatar.entry.js +12 -5
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +323 -0
- 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 +12 -6
- package/dist/esm/co-calendar-month.entry.js +379 -0
- package/dist/esm/co-calendar_3.entry.js +42 -12
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +5 -5
- package/dist/esm/co-checkbox.entry.js +18 -6
- package/dist/esm/co-chip.entry.js +19 -11
- package/dist/esm/co-color-picker.entry.js +7 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +7 -7
- package/dist/esm/co-command-search.entry.js +151 -12
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +44 -23
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +4 -4
- 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 +316 -0
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- 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 +24 -8
- package/dist/esm/co-icon.entry.js +33 -25
- package/dist/esm/co-input.entry.js +36 -7
- package/dist/esm/co-json-field.entry.js +10 -6
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +23 -0
- package/dist/esm/co-list-item.entry.js +60 -4
- package/dist/esm/co-loader.entry.js +2 -2
- 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 +26 -11
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +41 -5
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +18 -6
- package/dist/esm/co-option-list.entry.js +377 -0
- package/dist/esm/co-overlay.entry.js +243 -3
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +6 -4
- package/dist/esm/co-popover.entry.js +45 -14
- package/dist/esm/co-progress-bar.entry.js +8 -4
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +36 -13
- package/dist/esm/co-rich-text-editor.entry.js +1879 -33
- package/dist/esm/co-rich-text-toolbar.entry.js +995 -71
- package/dist/esm/co-rich-text-viewer.entry.js +55 -19
- 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 +8 -8
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +29 -9
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +24 -0
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +15 -3
- package/dist/esm/co-tab.entry.js +8 -5
- package/dist/esm/co-tags-field.entry.js +19 -13
- package/dist/esm/co-textarea.entry.js +11 -7
- 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 +51 -16
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-video.entry.js +837 -0
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{dates-CyYF8IJE.js → dates-tPYikBRJ.js} +1 -1
- package/dist/esm/fieldChip-BBu4ukje.js +5 -0
- package/dist/{cjs/index-CaEJnpZe.js → esm/index-Cyrxk8Qq.js} +14437 -6194
- package/dist/esm/{index-BKmfyPZK.js → index-Es9IUmmt.js} +105 -21
- package/dist/esm/loader.js +3 -3
- package/dist/esm/overlayAfterClose-Ch1jfwZ2.js +10 -0
- package/dist/{cjs/sanitizer-CjHZAkOm.js → esm/purify.es-B2QLgWrz.js} +1 -110
- package/dist/esm/{requiredMark-DFvtYtkE.js → requiredMark-Bg25QWFn.js} +1 -1
- package/dist/esm/richTextI18n-B-ckjCUA.js +380 -0
- package/dist/esm/toolbar-config-ChibIpZv.js +212 -0
- package/dist/esm/tz-B6JZk8fL.js +119 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +2 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +4 -0
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +33 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +81 -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 +7 -1
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +83 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +10 -2
- package/dist/types/components/co-chip/co-chip.d.ts +22 -5
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
- package/dist/types/components/co-command-search/co-command-search.d.ts +39 -6
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +20 -0
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +17 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +15 -2
- 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-event-calendar/co-event-calendar.d.ts +110 -0
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +11 -0
- package/dist/types/components/co-icon/co-icon.d.ts +1 -1
- package/dist/types/components/co-icon/iconLoader.d.ts +6 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +18 -1
- package/dist/types/components/co-input/co-input.d.ts +13 -1
- package/dist/types/components/co-json-field/co-json-field.d.ts +3 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +26 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +11 -0
- 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 +26 -2
- package/dist/types/components/co-number-field/co-number-field.d.ts +13 -0
- 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-overlay/co-overlay.d.ts +45 -0
- package/dist/types/components/co-overlay/focusTrap.d.ts +20 -0
- package/dist/types/components/co-overlay/overlayAfterClose.d.ts +5 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +2 -0
- package/dist/types/components/co-popover/co-popover.d.ts +9 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +2 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +17 -2
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +161 -9
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +119 -13
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +1 -14
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +32 -0
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -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-tags-field/co-tags-field.d.ts +2 -0
- package/dist/types/components/co-textarea/co-textarea.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/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-video/co-video.d.ts +203 -0
- package/dist/types/components.d.ts +3184 -221
- package/dist/types/utils/fieldChip.d.ts +37 -0
- package/dist/types/utils/icon-config.d.ts +11 -0
- package/dist/types/utils/richTextI18n.d.ts +130 -0
- package/dist/types/utils/sheetGesture.d.ts +31 -0
- package/package.json +5 -4
- package/dist/cobalt/p-01fc77c4.entry.js +0 -1
- package/dist/cobalt/p-0a6d8061.entry.js +0 -1
- package/dist/cobalt/p-0bf288cd.entry.js +0 -1
- package/dist/cobalt/p-15708d32.entry.js +0 -1
- package/dist/cobalt/p-1578b019.entry.js +0 -1
- package/dist/cobalt/p-23d48581.entry.js +0 -1
- package/dist/cobalt/p-2718ff27.entry.js +0 -1
- package/dist/cobalt/p-3190d715.entry.js +0 -1
- package/dist/cobalt/p-41228dce.entry.js +0 -1
- package/dist/cobalt/p-44672953.entry.js +0 -1
- package/dist/cobalt/p-53ce9023.entry.js +0 -1
- package/dist/cobalt/p-5d01bd4d.entry.js +0 -1
- package/dist/cobalt/p-5e7141aa.entry.js +0 -1
- package/dist/cobalt/p-5f905739.entry.js +0 -1
- package/dist/cobalt/p-6404bd21.entry.js +0 -1
- package/dist/cobalt/p-654bbc2a.entry.js +0 -1
- package/dist/cobalt/p-6678ac0a.entry.js +0 -1
- package/dist/cobalt/p-66a912dd.entry.js +0 -1
- package/dist/cobalt/p-6759ee1c.entry.js +0 -1
- package/dist/cobalt/p-69a40bfd.entry.js +0 -1
- package/dist/cobalt/p-6a6a62cb.entry.js +0 -1
- package/dist/cobalt/p-6d43b6cd.entry.js +0 -1
- package/dist/cobalt/p-759c3dd0.entry.js +0 -1
- package/dist/cobalt/p-782f729f.entry.js +0 -1
- package/dist/cobalt/p-83b89bf8.entry.js +0 -1
- package/dist/cobalt/p-88dc561a.entry.js +0 -1
- package/dist/cobalt/p-8c27aff7.entry.js +0 -1
- package/dist/cobalt/p-95d14878.entry.js +0 -1
- package/dist/cobalt/p-996179f7.entry.js +0 -1
- package/dist/cobalt/p-9c533830.entry.js +0 -1
- package/dist/cobalt/p-9d89bf47.entry.js +0 -1
- package/dist/cobalt/p-BKmfyPZK.js +0 -2
- package/dist/cobalt/p-BchB6Hdr.js +0 -1
- package/dist/cobalt/p-DcK0GGZC.js +0 -2
- package/dist/cobalt/p-Qqq8fysz.js +0 -1
- package/dist/cobalt/p-aa17c70b.entry.js +0 -1
- package/dist/cobalt/p-ad4c1b41.entry.js +0 -1
- package/dist/cobalt/p-ae4d3207.entry.js +0 -1
- package/dist/cobalt/p-af64da37.entry.js +0 -1
- package/dist/cobalt/p-c6a242e4.entry.js +0 -1
- package/dist/cobalt/p-cd57e8b4.entry.js +0 -1
- package/dist/cobalt/p-ce3a535f.entry.js +0 -1
- package/dist/cobalt/p-d17e1444.entry.js +0 -1
- package/dist/cobalt/p-d958566a.entry.js +0 -1
- package/dist/cobalt/p-dd873bf8.entry.js +0 -1
- package/dist/cobalt/p-e4de8865.entry.js +0 -1
- package/dist/cobalt/p-eba0bf7f.entry.js +0 -1
- package/dist/cobalt/p-f8728b21.entry.js +0 -1
- package/dist/cobalt/p-fad3605d.entry.js +0 -1
- package/dist/components/p-BXdfh__-.js +0 -1
- package/dist/components/p-BchB6Hdr.js +0 -1
- package/dist/components/p-BiW0ubLs.js +0 -1
- package/dist/components/p-CaMgu2_g.js +0 -1
- package/dist/components/p-DBhNS7JD.js +0 -1
- package/dist/components/p-DPi_U-Kl.js +0 -1
- package/dist/components/p-DcK0GGZC.js +0 -2
- package/dist/components/p-MiSJXuBx.js +0 -1
- package/dist/components/p-Sgn-2g8m.js +0 -1
- package/dist/components/p-jDjfGZJp.js +0 -1
- package/dist/components/p-o8hrDIKe.js +0 -1
|
@@ -10,6 +10,8 @@ export class CoAutocomplete {
|
|
|
10
10
|
this.clearable = true;
|
|
11
11
|
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
12
12
|
this.layout = 'vertical';
|
|
13
|
+
/** Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48. */
|
|
14
|
+
this.size = 'md';
|
|
13
15
|
this.status = 'default';
|
|
14
16
|
/** Pre-loaded or server-returned options */
|
|
15
17
|
this.options = '[]';
|
|
@@ -176,16 +178,17 @@ export class CoAutocomplete {
|
|
|
176
178
|
render() {
|
|
177
179
|
const options = this.parsedOptions;
|
|
178
180
|
const selected = this.selectedValues;
|
|
179
|
-
return (h("div", { key: '
|
|
181
|
+
return (h("div", { key: 'dfab9ff6344118bbaa21bc911671f701ca321d14', class: {
|
|
180
182
|
'co-autocomplete': true,
|
|
181
183
|
'co-autocomplete--open': this.isOpen,
|
|
182
184
|
'co-autocomplete--disabled': this.disabled,
|
|
183
185
|
'co-autocomplete--focused': this.focused,
|
|
186
|
+
[`co-autocomplete--${this.size}`]: true,
|
|
184
187
|
[`co-autocomplete--${this.status}`]: this.status !== 'default',
|
|
185
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
188
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '2870599c3af0b8a7ee0ced25f54f3dff7118506e', class: "co-autocomplete__labels" }, this.label && h("label", { key: '2bd76cb15d591d71430ff0ac592b8c2910fdb4ce', class: "co-autocomplete__label" }, this.label, h(RequiredMark, { key: '766aac3940792e1b04b48e44c76d02f754ded4c3', required: this.required })), this.secondaryLabel && h("span", { key: '7f0baeed0eaf6b877e4ee7177e27d8553b6ed82a', class: "co-autocomplete__secondary-label" }, this.secondaryLabel))), h("div", { key: 'faff4ef114f15478992548784a11127f2d14ba27', class: "co-autocomplete__field" }, this.iconLeft && h("co-icon", { key: '8638177d1a8a17e68849c2ffffc386ad76b6365d', name: this.iconLeft, size: 16, class: "co-autocomplete__icon" }), this.multiple && selected.length > 0 && (h("div", { key: '59ba38d7a3b44d1502e6668920850098b140e2a3', class: "co-autocomplete__chips" }, selected.map(val => {
|
|
186
189
|
const opt = this.parsedOptions.find(o => o.value === val);
|
|
187
190
|
return (h("co-chip", { label: opt ? opt.label : val, size: "small", removable: true, onCoRemove: () => this.handleChipRemove(val) }));
|
|
188
|
-
}))), h("input", { key: '
|
|
191
|
+
}))), h("input", { key: '0196cedcbccae1f159b3b3cf4575964a37398d6a', ref: el => (this.inputEl = el), class: "co-autocomplete__input", type: "text", value: this.query, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus }), this.loading && h("div", { key: 'b9ab823198d9268c6fb97f60ddb91f508006d27c', class: "co-autocomplete__spinner" }), this.clearable && (this.hasValue || this.query) && !this.disabled && (h("button", { key: 'e13078152b14056cd0640f90c26e68e1b2faa65a', class: "co-autocomplete__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '8db7105cb2865347cb0340b5c1f2a5b5f9da13d3', name: "x-circle", size: 16, weight: "fill" })))), this.isOpen && (h("div", { key: '101741284b39462d6f080c35dbec305e911674a9', class: "co-autocomplete__dropdown" }, this.loading && options.length === 0 ? (h("div", { class: "co-autocomplete__loading" }, h("co-loader", { size: "sm" }))) : options.length === 0 ? (h("div", { class: "co-autocomplete__empty" }, this.emptyText)) : (h("div", { class: "co-autocomplete__options", ref: el => (this.optionsEl = el), onScroll: this.handleOptionsScroll }, (() => {
|
|
189
192
|
const { totalHeight, startIdx, endIdx, offsetY } = this.getVirtualSlice(options);
|
|
190
193
|
return (h("div", { class: "co-autocomplete__virtual-spacer", style: { height: `${totalHeight}px`, position: 'relative' } }, h("div", { style: { position: 'absolute', top: `${offsetY}px`, left: '0', right: '0' } }, options.slice(startIdx, endIdx).map(opt => {
|
|
191
194
|
const isSelected = selected.includes(opt.value);
|
|
@@ -196,7 +199,7 @@ export class CoAutocomplete {
|
|
|
196
199
|
'co-autocomplete__option--disabled': isDisabled,
|
|
197
200
|
}, onClick: () => !isDisabled && this.handleOptionClick(opt.value) }, opt.icon && h("co-icon", { name: opt.icon, size: 20, class: "co-autocomplete__option-icon" }), h("span", { class: "co-autocomplete__option-label" }, opt.label), isSelected && h("co-icon", { name: "check", size: 16, class: "co-autocomplete__option-check" })));
|
|
198
201
|
}))));
|
|
199
|
-
})())))), this.helperText && (h("div", { key: '
|
|
202
|
+
})())))), this.helperText && (h("div", { key: '10718ee7ba24570057e2f130ef950b304c510c02', class: `co-autocomplete__helper co-autocomplete__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'e8d88e8278f9ea3b28f6b5767991e484d6fc7eb6', name: this.statusIcon, size: 14, weight: "fill", class: "co-autocomplete__helper-icon" }), h("span", { key: '0a9a6ef20def10b8efe92c55d3e66f1acd34525f', class: "co-autocomplete__helper-text" }, this.helperText)))));
|
|
200
203
|
}
|
|
201
204
|
static get is() { return "co-autocomplete"; }
|
|
202
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -388,6 +391,26 @@ export class CoAutocomplete {
|
|
|
388
391
|
"attribute": "layout",
|
|
389
392
|
"defaultValue": "'vertical'"
|
|
390
393
|
},
|
|
394
|
+
"size": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "'s' | 'sm' | 'md' | 'lg'",
|
|
399
|
+
"resolved": "\"lg\" | \"md\" | \"s\" | \"sm\"",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": false,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [],
|
|
406
|
+
"text": "Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48."
|
|
407
|
+
},
|
|
408
|
+
"getter": false,
|
|
409
|
+
"setter": false,
|
|
410
|
+
"reflect": true,
|
|
411
|
+
"attribute": "size",
|
|
412
|
+
"defaultValue": "'md'"
|
|
413
|
+
},
|
|
391
414
|
"status": {
|
|
392
415
|
"type": "string",
|
|
393
416
|
"mutable": false,
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: inline-flex;
|
|
3
|
+
/* Squircle (superellipse, n≈5) used to mask square avatars so their corners
|
|
4
|
+
are smooth/continuous — Figma "corner smoothing" — instead of a plain
|
|
5
|
+
border-radius arc. Normalized 0–100 box, scales to any size via mask-size. */
|
|
6
|
+
--co-avatar-squircle: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M100 50L99.94 68.06L99.75 73.81L99.44 77.94L99.01 81.26L98.44 84.05L97.74 86.46L96.91 88.57L95.94 90.43L94.81 92.07L93.53 93.53L92.07 94.81L90.43 95.94L88.57 96.91L86.46 97.74L84.05 98.44L81.26 99.01L77.94 99.44L73.81 99.75L68.06 99.94L50 100L31.94 99.94L26.19 99.75L22.06 99.44L18.74 99.01L15.95 98.44L13.54 97.74L11.43 96.91L9.57 95.94L7.93 94.81L6.47 93.53L5.19 92.07L4.06 90.43L3.09 88.57L2.26 86.46L1.56 84.05L0.99 81.26L0.56 77.94L0.25 73.81L0.06 68.06L0 50L0.06 31.94L0.25 26.19L0.56 22.06L0.99 18.74L1.56 15.95L2.26 13.54L3.09 11.43L4.06 9.57L5.19 7.93L6.47 6.47L7.93 5.19L9.57 4.06L11.43 3.09L13.54 2.26L15.95 1.56L18.74 0.99L22.06 0.56L26.19 0.25L31.94 0.06L50 0L68.06 0.06L73.81 0.25L77.94 0.56L81.26 0.99L84.05 1.56L86.46 2.26L88.57 3.09L90.43 4.06L92.07 5.19L93.53 6.47L94.81 7.93L95.94 9.57L96.91 11.43L97.74 13.54L98.44 15.95L99.01 18.74L99.44 22.06L99.75 26.19L99.94 31.94Z' fill='%23fff'/></svg>");
|
|
3
7
|
}
|
|
4
8
|
|
|
5
9
|
.co-avatar {
|
|
10
|
+
position: relative; /* anchors the optional border ring (::after) */
|
|
6
11
|
display: inline-flex;
|
|
7
12
|
align-items: center;
|
|
8
13
|
justify-content: center;
|
|
@@ -19,6 +24,18 @@
|
|
|
19
24
|
-webkit-font-smoothing: antialiased;
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
/* Optional border that hugs the avatar shape. Off by default (transparent);
|
|
28
|
+
a host enables it by setting --co-avatar-border-color (custom properties
|
|
29
|
+
inherit through the shadow boundary, so it can be driven from outside). */
|
|
30
|
+
.co-avatar::after {
|
|
31
|
+
content: '';
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 0;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
border-radius: inherit;
|
|
36
|
+
box-shadow: inset 0 0 0 var(--co-avatar-border-width, 1px) var(--co-avatar-border-color, transparent);
|
|
37
|
+
}
|
|
38
|
+
|
|
22
39
|
.co-avatar__text {
|
|
23
40
|
text-transform: uppercase;
|
|
24
41
|
}
|
|
@@ -30,8 +47,28 @@
|
|
|
30
47
|
display: block;
|
|
31
48
|
}
|
|
32
49
|
|
|
50
|
+
/* Square = smooth "squircle" corners (Figma corner-smoothing). The shape comes
|
|
51
|
+
from the mask, so border-radius is reset to 0. */
|
|
33
52
|
.co-avatar--square {
|
|
34
|
-
border-radius:
|
|
53
|
+
border-radius: 0;
|
|
54
|
+
-webkit-mask: var(--co-avatar-squircle) center / 100% 100% no-repeat;
|
|
55
|
+
mask: var(--co-avatar-squircle) center / 100% 100% no-repeat;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* The square border must follow the squircle (not the rectangular box): paint
|
|
59
|
+
the border colour and clip it to a ring = full squircle minus an inset one. */
|
|
60
|
+
.co-avatar--square::after {
|
|
61
|
+
--co-avatar-bw: var(--co-avatar-border-width, 1px);
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
background: var(--co-avatar-border-color, transparent);
|
|
64
|
+
-webkit-mask:
|
|
65
|
+
var(--co-avatar-squircle) center / 100% 100% no-repeat,
|
|
66
|
+
var(--co-avatar-squircle) center / calc(100% - 2 * var(--co-avatar-bw)) calc(100% - 2 * var(--co-avatar-bw)) no-repeat;
|
|
67
|
+
-webkit-mask-composite: xor;
|
|
68
|
+
mask:
|
|
69
|
+
var(--co-avatar-squircle) center / 100% 100% no-repeat,
|
|
70
|
+
var(--co-avatar-squircle) center / calc(100% - 2 * var(--co-avatar-bw)) calc(100% - 2 * var(--co-avatar-bw)) no-repeat;
|
|
71
|
+
mask-composite: exclude;
|
|
35
72
|
}
|
|
36
73
|
|
|
37
74
|
.co-avatar--light {
|
|
@@ -32,18 +32,25 @@ export class CoAvatar {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
var _a, _b, _c;
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
36
36
|
const dim = (_a = SIZE_MAP[this.size]) !== null && _a !== void 0 ? _a : 56;
|
|
37
37
|
const iconSize = (_b = ICON_SIZE_MAP[this.size]) !== null && _b !== void 0 ? _b : 24;
|
|
38
38
|
const fontSize = (_c = FONT_SIZE_MAP[this.size]) !== null && _c !== void 0 ? _c : 'var(--co-font-size-18)';
|
|
39
39
|
const showImage = this.type === 'image' && this.src && !this.imgFailed;
|
|
40
|
-
|
|
40
|
+
const ariaLabel = this.type === 'text'
|
|
41
|
+
? this.text
|
|
42
|
+
: this.type === 'image'
|
|
43
|
+
? (_e = (_d = this.alt) !== null && _d !== void 0 ? _d : this.text) !== null && _e !== void 0 ? _e : this.icon
|
|
44
|
+
: this.icon;
|
|
45
|
+
return (h("div", { key: '279ce6f51cbc3b2c11c0660f5a0f98e03a2db4fb', class: {
|
|
41
46
|
'co-avatar': true,
|
|
42
47
|
[`co-avatar--${this.size}`]: true,
|
|
43
48
|
[`co-avatar--${this.type}`]: true,
|
|
44
49
|
'co-avatar--square': this.shape === 'square',
|
|
45
50
|
'co-avatar--light': !!this.color && isLightColor(this.color),
|
|
46
|
-
}, style: Object.assign({ width:
|
|
51
|
+
}, style: Object.assign(Object.assign({ width: `var(--co-avatar-size, ${dim}px)`, height: `var(--co-avatar-size, ${dim}px)`, fontSize }, (this.color ? { background: this.color } : {})), (this.ringColor
|
|
52
|
+
? { '--co-avatar-border-color': this.ringColor, '--co-avatar-border-width': '2px' }
|
|
53
|
+
: {})), part: "avatar", role: "img", "aria-label": ariaLabel }, showImage ? (h("img", { class: "co-avatar__img", src: this.src, alt: (_g = (_f = this.alt) !== null && _f !== void 0 ? _f : this.text) !== null && _g !== void 0 ? _g : '', onError: this.handleImgError })) : this.type === 'icon' ? (h("co-icon", { name: this.icon, weight: this.iconWeight, size: iconSize })) : (h("span", { class: "co-avatar__text" }, this.text))));
|
|
47
54
|
}
|
|
48
55
|
static get is() { return "co-avatar"; }
|
|
49
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -137,6 +144,25 @@ export class CoAvatar {
|
|
|
137
144
|
"reflect": false,
|
|
138
145
|
"attribute": "src"
|
|
139
146
|
},
|
|
147
|
+
"alt": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string | undefined",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Alternative text for the image (type=\"image\"); falls back to text when unset"
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"attribute": "alt"
|
|
165
|
+
},
|
|
140
166
|
"icon": {
|
|
141
167
|
"type": "string",
|
|
142
168
|
"mutable": false,
|
|
@@ -215,6 +241,25 @@ export class CoAvatar {
|
|
|
215
241
|
"setter": false,
|
|
216
242
|
"reflect": false,
|
|
217
243
|
"attribute": "color"
|
|
244
|
+
},
|
|
245
|
+
"ringColor": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "string",
|
|
250
|
+
"resolved": "string | undefined",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": true,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": "Optional 2px ring color (hex/CSS). Drives the inset ::after ring."
|
|
258
|
+
},
|
|
259
|
+
"getter": false,
|
|
260
|
+
"setter": false,
|
|
261
|
+
"reflect": true,
|
|
262
|
+
"attribute": "ring-color"
|
|
218
263
|
}
|
|
219
264
|
};
|
|
220
265
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* co-avatar-group — overlapping stack of co-avatar with a "+N" overflow badge */
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.co-avatar-group {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Interactive = the whole stack is one focusable <button> (opens a manager). */
|
|
13
|
+
.co-avatar-group--interactive {
|
|
14
|
+
appearance: none;
|
|
15
|
+
-webkit-appearance: none;
|
|
16
|
+
background: none;
|
|
17
|
+
border: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
font: inherit;
|
|
21
|
+
color: inherit;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
border-radius: var(--co-border-radius-full);
|
|
24
|
+
outline: none;
|
|
25
|
+
transition: opacity 0.12s ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.co-avatar-group--interactive:hover {
|
|
29
|
+
opacity: 0.88;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.co-avatar-group--interactive:focus-visible {
|
|
33
|
+
box-shadow: 0 0 0 2px var(--co-semantic-surface-page), 0 0 0 4px var(--co-semantic-border-focus);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Per-avatar tooltip wrapper — a transparent flex item so the stack lays out
|
|
37
|
+
exactly as if the avatars were direct children. `line-height: 0` (inherited
|
|
38
|
+
into co-tooltip's inline-block trigger) removes the baseline strut that would
|
|
39
|
+
otherwise push each avatar off-center vertically. */
|
|
40
|
+
.co-avatar-group__slot {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
line-height: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Each subsequent item slides under the previous one (overlap). Tunable from
|
|
47
|
+
the outside via --co-avatar-group-overlap (custom props inherit through the
|
|
48
|
+
shadow boundary). */
|
|
49
|
+
.co-avatar-group > *:not(:first-child) {
|
|
50
|
+
margin-left: calc(-1 * var(--co-avatar-group-overlap, var(--co-spacing-sm)));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Separation ring so overlapping discs read as distinct. box-shadow overlays
|
|
54
|
+
without affecting layout; the ring colour matches the page surface so the
|
|
55
|
+
front avatar appears to "cut out" of the one behind it. co-avatar exposes its
|
|
56
|
+
disc as part="avatar", which `::part` reaches across its shadow boundary. */
|
|
57
|
+
.co-avatar-group__avatar::part(avatar),
|
|
58
|
+
.co-avatar-group__overflow {
|
|
59
|
+
box-shadow: 0 0 0 var(--co-avatar-group-ring-width, 2px) var(--co-semantic-surface-page);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* The avatars are slotted into co-tooltip's inline-block trigger; align them to
|
|
63
|
+
the middle of that line box so the photo/text discs sit on one row. */
|
|
64
|
+
.co-avatar-group__avatar,
|
|
65
|
+
.co-avatar-group__overflow {
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.co-avatar-group__overflow {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
border-radius: var(--co-border-radius-full);
|
|
75
|
+
/* Solid (opaque) neutral disc — a translucent surface would let the avatar
|
|
76
|
+
behind it bleed through where they overlap. surface-muted adapts to dark. */
|
|
77
|
+
background: var(--co-semantic-surface-muted);
|
|
78
|
+
color: var(--co-semantic-text-secondary);
|
|
79
|
+
font-family: var(--co-font-family-primary);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
user-select: none;
|
|
85
|
+
-webkit-font-smoothing: antialiased;
|
|
86
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/** Disc dimensions per size — kept in sync with `co-avatar`'s SIZE_MAP. */
|
|
3
|
+
const SIZE_MAP = {
|
|
4
|
+
xl: 80, lg: 64, md: 56, sm: 48, xs: 32, xxs: 24,
|
|
5
|
+
};
|
|
6
|
+
/** Font size per size for the "+N" overflow badge — mirrors `co-avatar`. */
|
|
7
|
+
const FONT_SIZE_MAP = {
|
|
8
|
+
xl: 'var(--co-font-size-26)',
|
|
9
|
+
lg: 'var(--co-font-size-22)',
|
|
10
|
+
md: 'var(--co-font-size-18)',
|
|
11
|
+
sm: 'var(--co-font-size-16)',
|
|
12
|
+
xs: 'var(--co-font-size-12)',
|
|
13
|
+
xxs: 'var(--co-font-size-10)',
|
|
14
|
+
};
|
|
15
|
+
export class CoAvatarGroup {
|
|
16
|
+
constructor() {
|
|
17
|
+
/** Avatar descriptors rendered as an overlapping stack. */
|
|
18
|
+
this.items = [];
|
|
19
|
+
/** Max avatars shown before the remainder collapses into a "+N" badge. `0` = show all. */
|
|
20
|
+
this.max = 4;
|
|
21
|
+
/** Size forwarded to every avatar (and the overflow badge). */
|
|
22
|
+
this.size = 'xs';
|
|
23
|
+
/** Shape forwarded to every avatar that doesn't set its own. */
|
|
24
|
+
this.shape = 'circle';
|
|
25
|
+
/** Make the whole group a focusable button (role=button, keyboard, coClick). */
|
|
26
|
+
this.interactive = false;
|
|
27
|
+
this.activate = () => {
|
|
28
|
+
this.coClick.emit();
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
accessibleLabel(items) {
|
|
32
|
+
if (this.label)
|
|
33
|
+
return this.label;
|
|
34
|
+
return items.map((it) => it.name || it.text).filter(Boolean).join(', ');
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
const items = Array.isArray(this.items) ? this.items : [];
|
|
39
|
+
const max = this.max > 0 ? this.max : items.length;
|
|
40
|
+
const visible = items.slice(0, max);
|
|
41
|
+
const extra = Math.max(0, items.length - max);
|
|
42
|
+
const dim = (_a = SIZE_MAP[this.size]) !== null && _a !== void 0 ? _a : SIZE_MAP.xs;
|
|
43
|
+
const fontSize = (_b = FONT_SIZE_MAP[this.size]) !== null && _b !== void 0 ? _b : FONT_SIZE_MAP.xs;
|
|
44
|
+
const overflowLabel = items
|
|
45
|
+
.slice(max)
|
|
46
|
+
.map((it) => it.name || it.text)
|
|
47
|
+
.filter(Boolean)
|
|
48
|
+
.join(', ');
|
|
49
|
+
// A native <button> when interactive: focusable + Enter/Space click for free
|
|
50
|
+
// (and its click bubbles to a wrapping co-popover trigger, which opens it).
|
|
51
|
+
const Tag = this.interactive ? 'button' : 'div';
|
|
52
|
+
const interactiveAttrs = this.interactive
|
|
53
|
+
? {
|
|
54
|
+
type: 'button',
|
|
55
|
+
'aria-label': this.accessibleLabel(items),
|
|
56
|
+
onClick: this.activate,
|
|
57
|
+
}
|
|
58
|
+
: { role: 'group' };
|
|
59
|
+
return (h(Tag, Object.assign({ key: 'a85fa472bfcf9e7a22ab68c14dff8c79cce33526', class: {
|
|
60
|
+
'co-avatar-group': true,
|
|
61
|
+
'co-avatar-group--interactive': this.interactive,
|
|
62
|
+
} }, interactiveAttrs), visible.map((it, i) => {
|
|
63
|
+
var _a, _b, _c;
|
|
64
|
+
return (h("co-tooltip", { key: i, class: "co-avatar-group__slot", content: it.name || it.text || '', placement: "bottom" }, h("co-avatar", { class: "co-avatar-group__avatar", type: (_a = it.type) !== null && _a !== void 0 ? _a : (it.src ? 'image' : it.icon ? 'icon' : 'text'), size: this.size, shape: (_b = it.shape) !== null && _b !== void 0 ? _b : this.shape, text: it.text, src: it.src, icon: (_c = it.icon) !== null && _c !== void 0 ? _c : 'user', color: it.color, "ring-color": it.ringColor })));
|
|
65
|
+
}), extra > 0 && (h("co-tooltip", { key: 'd6f5867903da085b23395cbad94381241297f539', class: "co-avatar-group__slot", content: overflowLabel, placement: "bottom" }, h("div", { key: 'a362b8e4262735c4adb7b917d501ccc3d760bdae', class: "co-avatar-group__overflow", style: { width: `${dim}px`, height: `${dim}px`, fontSize }, role: "img", "aria-label": `+${extra}` }, "+", extra)))));
|
|
66
|
+
}
|
|
67
|
+
static get is() { return "co-avatar-group"; }
|
|
68
|
+
static get encapsulation() { return "shadow"; }
|
|
69
|
+
static get originalStyleUrls() {
|
|
70
|
+
return {
|
|
71
|
+
"$": ["co-avatar-group.css"]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static get styleUrls() {
|
|
75
|
+
return {
|
|
76
|
+
"$": ["co-avatar-group.css"]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get properties() {
|
|
80
|
+
return {
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "unknown",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "CoAvatarGroupItem[]",
|
|
86
|
+
"resolved": "CoAvatarGroupItem[]",
|
|
87
|
+
"references": {
|
|
88
|
+
"CoAvatarGroupItem": {
|
|
89
|
+
"location": "local",
|
|
90
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
|
|
91
|
+
"id": "src/components/co-avatar-group/co-avatar-group.tsx::CoAvatarGroupItem"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": "Avatar descriptors rendered as an overlapping stack."
|
|
100
|
+
},
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
103
|
+
"defaultValue": "[]"
|
|
104
|
+
},
|
|
105
|
+
"max": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "number",
|
|
110
|
+
"resolved": "number",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "Max avatars shown before the remainder collapses into a \"+N\" badge. `0` = show all."
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"attribute": "max",
|
|
123
|
+
"defaultValue": "4"
|
|
124
|
+
},
|
|
125
|
+
"size": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs'",
|
|
130
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\" | \"xxs\"",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Size forwarded to every avatar (and the overflow badge)."
|
|
138
|
+
},
|
|
139
|
+
"getter": false,
|
|
140
|
+
"setter": false,
|
|
141
|
+
"reflect": false,
|
|
142
|
+
"attribute": "size",
|
|
143
|
+
"defaultValue": "'xs'"
|
|
144
|
+
},
|
|
145
|
+
"shape": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "'circle' | 'square'",
|
|
150
|
+
"resolved": "\"circle\" | \"square\"",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Shape forwarded to every avatar that doesn't set its own."
|
|
158
|
+
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"attribute": "shape",
|
|
163
|
+
"defaultValue": "'circle'"
|
|
164
|
+
},
|
|
165
|
+
"interactive": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "boolean",
|
|
170
|
+
"resolved": "boolean",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Make the whole group a focusable button (role=button, keyboard, coClick)."
|
|
178
|
+
},
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false,
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"attribute": "interactive",
|
|
183
|
+
"defaultValue": "false"
|
|
184
|
+
},
|
|
185
|
+
"label": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "string",
|
|
190
|
+
"resolved": "string | undefined",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": true,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Accessible label override; when absent it's composed from the items' names."
|
|
198
|
+
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"attribute": "label"
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
static get events() {
|
|
207
|
+
return [{
|
|
208
|
+
"method": "coClick",
|
|
209
|
+
"name": "coClick",
|
|
210
|
+
"bubbles": false,
|
|
211
|
+
"cancelable": true,
|
|
212
|
+
"composed": true,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Emitted on click / Enter / Space when `interactive`. Does NOT bubble."
|
|
216
|
+
},
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "void",
|
|
219
|
+
"resolved": "void",
|
|
220
|
+
"references": {}
|
|
221
|
+
}
|
|
222
|
+
}];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -10,7 +10,7 @@ export class CoBadge {
|
|
|
10
10
|
this.color = 'default';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("span", { key: '
|
|
13
|
+
return (h("span", { key: '17fe27e556bbcf5773feb6faf07533c01cc6f62e', class: {
|
|
14
14
|
'co-badge': true,
|
|
15
15
|
[`co-badge--${this.size}`]: true,
|
|
16
16
|
[`co-badge--${this.color}`]: true,
|