@prolibu-suite/cobalt-core 0.9.1 → 0.9.2
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 +411 -18
- package/dist/cjs/co-avatar_2.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +10 -11
- package/dist/cjs/co-calendar_3.cjs.entry.js +37 -2
- package/dist/cjs/co-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/co-emoji-picker.cjs.entry.js +2808 -0
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
- package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-fab.cjs.entry.js +2 -2
- package/dist/cjs/co-file-field.cjs.entry.js +5 -5
- package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
- package/dist/cjs/co-helper-text.cjs.entry.js +2 -2
- package/dist/cjs/co-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/co-icon.cjs.entry.js +2 -2
- package/dist/cjs/co-json-field.cjs.entry.js +3 -3
- package/dist/cjs/co-lightbox.cjs.entry.js +4 -4
- package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
- package/dist/cjs/co-list-item.cjs.entry.js +4 -4
- package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +1 -1
- package/dist/cjs/co-modal.cjs.entry.js +9 -3
- package/dist/cjs/co-navbar.cjs.entry.js +2 -2
- package/dist/cjs/co-number-field.cjs.entry.js +2 -2
- package/dist/cjs/co-overlay.cjs.entry.js +1 -1
- package/dist/cjs/co-page-header.cjs.entry.js +1 -1
- package/dist/cjs/co-phone-field.cjs.entry.js +1 -1
- package/dist/cjs/co-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +3 -3
- package/dist/cjs/co-rating.cjs.entry.js +3 -3
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/co-row.cjs.entry.js +2 -2
- package/dist/cjs/co-separator.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +2 -2
- package/dist/cjs/co-switch.cjs.entry.js +3 -3
- package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/co-tab.cjs.entry.js +2 -2
- package/dist/cjs/co-tags-field.cjs.entry.js +5 -5
- package/dist/cjs/co-textarea.cjs.entry.js +4 -4
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/co-video.cjs.entry.js +2 -2
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/emojiNames.es-BjpSEJ0c.js +1925 -0
- package/dist/cjs/emojiNames.pt-DWupaZMJ.js +1925 -0
- package/dist/cjs/index-DK-2Lzmf.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/slotContent-Bm9RcM_Q.js +34 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-07904986.entry.js +1 -0
- package/dist/cobalt/p-09799193.entry.js +1 -0
- package/dist/cobalt/{p-a811464d.entry.js → p-0ccb672b.entry.js} +1 -1
- package/dist/cobalt/{p-4fe9a3ae.entry.js → p-0e91e5c4.entry.js} +1 -1
- package/dist/cobalt/{p-90e292de.entry.js → p-18af9e44.entry.js} +1 -1
- package/dist/cobalt/{p-136440fc.entry.js → p-18d34b01.entry.js} +1 -1
- package/dist/cobalt/{p-a0a6bfa3.entry.js → p-1c68bc41.entry.js} +1 -1
- package/dist/cobalt/{p-f945a1bd.entry.js → p-2114c036.entry.js} +1 -1
- package/dist/cobalt/{p-44fb4a3f.entry.js → p-23a103a0.entry.js} +1 -1
- package/dist/cobalt/{p-b892b312.entry.js → p-23b3ff3f.entry.js} +1 -1
- package/dist/cobalt/{p-b107063c.entry.js → p-33ea4a90.entry.js} +1 -1
- package/dist/cobalt/p-3495fda1.entry.js +1 -0
- package/dist/cobalt/{p-c3fd7b22.entry.js → p-36197363.entry.js} +1 -1
- package/dist/cobalt/p-3f0eed59.entry.js +1 -0
- package/dist/cobalt/{p-40ce8a3d.entry.js → p-4b083da4.entry.js} +1 -1
- package/dist/cobalt/p-4c7e3984.entry.js +1 -0
- package/dist/cobalt/p-4f754c9a.entry.js +1 -0
- package/dist/cobalt/p-54ae807d.entry.js +1 -0
- package/dist/cobalt/{p-3a229bba.entry.js → p-55566b37.entry.js} +1 -1
- package/dist/cobalt/{p-b5b97c9b.entry.js → p-77719335.entry.js} +1 -1
- package/dist/cobalt/{p-9c89cb01.entry.js → p-7c88163e.entry.js} +1 -1
- package/dist/cobalt/{p-e085b4ff.entry.js → p-7e53e9c8.entry.js} +1 -1
- package/dist/cobalt/{p-6c35b5cc.entry.js → p-8345b25f.entry.js} +1 -1
- package/dist/cobalt/{p-9c9f5b26.entry.js → p-89e38c5e.entry.js} +1 -1
- package/dist/cobalt/{p-4299cfa5.entry.js → p-8f38e24d.entry.js} +1 -1
- package/dist/cobalt/{p-905ba0dd.entry.js → p-95efe661.entry.js} +1 -1
- package/dist/cobalt/{p-909c0113.entry.js → p-983af614.entry.js} +1 -1
- package/dist/cobalt/p-B6oiFdUY.js +1 -0
- package/dist/cobalt/p-CBX_oabB.js +1 -0
- package/dist/cobalt/p-a02db338.entry.js +1 -0
- package/dist/cobalt/{p-a3669301.entry.js → p-a51d8775.entry.js} +1 -1
- package/dist/cobalt/{p-43d31055.entry.js → p-a9096b5c.entry.js} +1 -1
- package/dist/cobalt/{p-2637efc5.entry.js → p-ac466658.entry.js} +1 -1
- package/dist/cobalt/{p-75b7ed13.entry.js → p-ac91259e.entry.js} +1 -1
- package/dist/cobalt/{p-3ef0f849.entry.js → p-b0319a2d.entry.js} +1 -1
- package/dist/cobalt/{p-e4ef25b0.entry.js → p-b8581787.entry.js} +1 -1
- package/dist/cobalt/{p-fdc6ec11.entry.js → p-c1e7fb32.entry.js} +1 -1
- package/dist/cobalt/{p-a3c6b974.entry.js → p-c5684c79.entry.js} +1 -1
- package/dist/cobalt/{p-c1880595.entry.js → p-d15d3a97.entry.js} +1 -1
- package/dist/cobalt/p-d40a465f.entry.js +1 -0
- package/dist/cobalt/{p-138b8bc1.entry.js → p-d629fb4e.entry.js} +1 -1
- package/dist/cobalt/{p-929a4f19.entry.js → p-dca4cd5f.entry.js} +1 -1
- package/dist/cobalt/{p-3d338881.entry.js → p-dea43204.entry.js} +1 -1
- package/dist/cobalt/{p-b22981fd.entry.js → p-dfcf667d.entry.js} +1 -1
- package/dist/cobalt/{p-2c0099a4.entry.js → p-e5495539.entry.js} +1 -1
- package/dist/cobalt/{p-5c1767db.entry.js → p-ef5e1167.entry.js} +1 -1
- package/dist/cobalt/{p-37c17bd8.entry.js → p-fb3a095b.entry.js} +1 -1
- package/dist/cobalt/p-reaWaY4g.js +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +10 -11
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-combobox/co-combobox.js +1 -1
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-drawer/co-drawer.css +5 -2
- package/dist/collection/components/co-drawer/co-drawer.js +43 -1
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.css +290 -0
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +682 -0
- package/dist/collection/components/co-emoji-picker/emojiData.js +1953 -0
- package/dist/collection/components/co-emoji-picker/emojiNames.es.js +1922 -0
- package/dist/collection/components/co-emoji-picker/emojiNames.pt.js +1922 -0
- package/dist/collection/components/co-emoji-picker/emojiPickerLogic.js +375 -0
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +25 -0
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-modal/co-modal.css +3 -1
- package/dist/collection/components/co-modal/co-modal.js +13 -2
- 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.js +2 -2
- 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 +1 -1
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.js +1 -1
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.js +1 -1
- 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 +1 -1
- 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.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/emojiI18n.js +92 -0
- package/dist/collection/utils/slotContent.js +30 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-audio-player.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-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.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-date-time-picker.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-emoji-picker.d.ts +11 -0
- package/dist/components/co-emoji-picker.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-event-popover.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-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/{p-BOmAHbix.js → p-AvSaw4Ua.js} +1 -1
- package/dist/components/p-B3TkpLNh.js +1 -0
- package/dist/components/p-B6oiFdUY.js +1 -0
- package/dist/components/{p-BEiPCCVl.js → p-B7hvddnu.js} +1 -1
- package/dist/components/{p-njonLO8t.js → p-BGD3oQ73.js} +1 -1
- package/dist/components/{p-xjzIZcgZ.js → p-BT5tSgZa.js} +1 -1
- package/dist/components/{p-CXdIxtbK.js → p-BsQQ7Mki.js} +1 -1
- package/dist/components/p-CBX_oabB.js +1 -0
- package/dist/components/{p-ClAsHpYv.js → p-CklsvHeL.js} +1 -1
- package/dist/components/{p-DWt_rL1l.js → p-CyMaOb1j.js} +1 -1
- package/dist/components/{p-DEYpoVxc.js → p-D5QJpmqf.js} +1 -1
- package/dist/components/{p-Bhuk55S0.js → p-D6OUW6oW.js} +1 -1
- package/dist/components/p-DTvb412h.js +1 -0
- package/dist/components/{p-DmyELlI1.js → p-DkmKOF60.js} +1 -1
- package/dist/components/{p-DUYGgqjB.js → p-DolCkNsL.js} +1 -1
- package/dist/components/{p-CnBjUP_M.js → p-KWTokD0C.js} +1 -1
- package/dist/components/{p-BCZ-tPBT.js → p-Q6caHt79.js} +1 -1
- package/dist/components/{p-BUYgHlPz.js → p-WWlZiln1.js} +1 -1
- package/dist/components/{p-C4So28aS.js → p-_131DL6m.js} +1 -1
- package/dist/components/{p-BYnSPxpp.js → p-gI62K3Be.js} +1 -1
- package/dist/components/{p-8wvfrEY4.js → p-mom5kiBa.js} +1 -1
- package/dist/components/p-nwy6X1QT.js +1 -0
- package/dist/components/p-reaWaY4g.js +1 -0
- package/dist/esm/co-avatar_2.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +10 -11
- package/dist/esm/co-calendar_3.entry.js +37 -2
- package/dist/esm/co-chip_2.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +2806 -0
- package/dist/esm/co-empty-state.entry.js +2 -2
- package/dist/esm/co-event-calendar.entry.js +2 -2
- package/dist/esm/co-event-popover.entry.js +1 -1
- package/dist/esm/co-fab.entry.js +2 -2
- package/dist/esm/co-file-field.entry.js +5 -5
- package/dist/esm/co-file-type-tile.entry.js +2 -2
- package/dist/esm/co-helper-text.entry.js +2 -2
- package/dist/esm/co-icon-button.entry.js +2 -2
- package/dist/esm/co-icon.entry.js +2 -2
- package/dist/esm/co-json-field.entry.js +3 -3
- package/dist/esm/co-lightbox.entry.js +4 -4
- package/dist/esm/co-list-footer.entry.js +1 -1
- package/dist/esm/co-list-item.entry.js +4 -4
- package/dist/esm/co-media-thumb.entry.js +2 -2
- package/dist/esm/co-menu-divider.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +1 -1
- package/dist/esm/co-modal.entry.js +9 -3
- package/dist/esm/co-navbar.entry.js +2 -2
- package/dist/esm/co-number-field.entry.js +2 -2
- package/dist/esm/co-overlay.entry.js +1 -1
- package/dist/esm/co-page-header.entry.js +1 -1
- package/dist/esm/co-phone-field.entry.js +1 -1
- package/dist/esm/co-progress-bar.entry.js +2 -2
- package/dist/esm/co-progress-circle.entry.js +2 -2
- package/dist/esm/co-provider-logo_2.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +3 -3
- package/dist/esm/co-rating.entry.js +3 -3
- package/dist/esm/co-rich-text-editor.entry.js +3 -3
- package/dist/esm/co-row.entry.js +2 -2
- package/dist/esm/co-separator.entry.js +1 -1
- package/dist/esm/co-sidebar.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +2 -2
- package/dist/esm/co-switch.entry.js +3 -3
- package/dist/esm/co-tab-group.entry.js +2 -2
- package/dist/esm/co-tab.entry.js +2 -2
- package/dist/esm/co-tags-field.entry.js +5 -5
- package/dist/esm/co-textarea.entry.js +4 -4
- package/dist/esm/co-toggle-button-group.entry.js +2 -2
- package/dist/esm/co-toggle-button.entry.js +2 -2
- package/dist/esm/co-video.entry.js +2 -2
- package/dist/esm/cobalt.js +1 -1
- package/dist/esm/emojiNames.es-reaWaY4g.js +1923 -0
- package/dist/esm/emojiNames.pt-B6oiFdUY.js +1923 -0
- package/dist/esm/index-CrtiywTB.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/slotContent-CBX_oabB.js +32 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +0 -1
- package/dist/types/components/co-drawer/co-drawer.d.ts +23 -0
- package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +145 -0
- package/dist/types/components/co-emoji-picker/emojiData.d.ts +24 -0
- package/dist/types/components/co-emoji-picker/emojiNames.es.d.ts +12 -0
- package/dist/types/components/co-emoji-picker/emojiNames.pt.d.ts +12 -0
- package/dist/types/components/co-emoji-picker/emojiPickerLogic.d.ts +149 -0
- package/dist/types/components/co-modal/co-modal.d.ts +2 -0
- package/dist/types/components.d.ts +195 -0
- package/dist/types/utils/emojiI18n.d.ts +22 -0
- package/dist/types/utils/slotContent.d.ts +19 -0
- package/package.json +4 -4
- package/dist/cobalt/p-02f4b71a.entry.js +0 -1
- package/dist/cobalt/p-2f778a5a.entry.js +0 -1
- package/dist/cobalt/p-315586b0.entry.js +0 -1
- package/dist/cobalt/p-6556465f.entry.js +0 -1
- package/dist/cobalt/p-7fbd3359.entry.js +0 -1
- package/dist/cobalt/p-82c8f07b.entry.js +0 -1
- package/dist/cobalt/p-c3bb7e1f.entry.js +0 -1
- package/dist/cobalt/p-e742e978.entry.js +0 -1
- package/dist/components/p-4t5Fputx.js +0 -1
- package/dist/components/p-CRABrJmD.js +0 -1
- package/dist/components/p-aiNhl9Xd.js +0 -1
|
@@ -61,7 +61,7 @@ const CoSkeleton = class {
|
|
|
61
61
|
const style = { width: this.width };
|
|
62
62
|
if (this.height)
|
|
63
63
|
style.height = this.height;
|
|
64
|
-
return (h("div", { key: '
|
|
64
|
+
return (h("div", { key: '73b02d1b6b08093d3a6126cffe84c7174ceac5e1', class: { 'co-skeleton': true, [`co-skeleton--${this.variant}`]: true }, part: "skeleton", style: style, "aria-hidden": "true" }));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
CoSkeleton.style = coSkeletonCss();
|
|
@@ -22,15 +22,15 @@ const CoRadio = class {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '1726b4dd23985c0cae5ce04d795924e069511ccb', class: {
|
|
26
26
|
'co-radio-row': true,
|
|
27
27
|
'co-radio-row--disabled': this.disabled,
|
|
28
|
-
}, onClick: this.handleClick }, h("button", { key: '
|
|
28
|
+
}, onClick: this.handleClick }, h("button", { key: '2164e458b160a853127a50af15560c6ff94bb3e5', role: "radio", "aria-checked": String(this.checked), "aria-label": this.label || '', class: {
|
|
29
29
|
'co-radio': true,
|
|
30
30
|
[`co-radio--${this.size}`]: true,
|
|
31
31
|
'co-radio--checked': this.checked,
|
|
32
32
|
'co-radio--disabled': this.disabled,
|
|
33
|
-
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '
|
|
33
|
+
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: 'ac519d76a29d186bcbfa8b5e100272f3ccb305ef', class: "co-radio__label", part: "label" }, this.label))));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
CoRadio.style = coRadioCss();
|
|
@@ -41,16 +41,16 @@ const CoRating = class {
|
|
|
41
41
|
const iconSize = this.size === 'large' ? 28 : 20;
|
|
42
42
|
const active = this.hoverValue || this.value;
|
|
43
43
|
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '781b724e9eee1223d988d0669983b33c0e0867c2', class: {
|
|
45
45
|
'co-rating': true,
|
|
46
46
|
'co-rating--disabled': this.disabled,
|
|
47
47
|
'co-rating--readonly': this.readOnly,
|
|
48
48
|
[`co-rating--${this.size}`]: true,
|
|
49
|
-
} }, this.label && h("label", { key: '
|
|
49
|
+
} }, this.label && h("label", { key: '77788be712df1d8ad302969a408c02b47ba5fd61', class: "co-rating__label" }, this.label), h("div", { key: '5f3bbad8e8f1a7a2e79eabb0e8e9bd3a3effeba9', class: "co-rating__stars", onMouseLeave: this.handleMouseLeave }, stars.map(star => (h("button", { class: {
|
|
50
50
|
'co-rating__star': true,
|
|
51
51
|
'co-rating__star--active': star <= active,
|
|
52
52
|
'co-rating__star--hover': this.hoverValue > 0 && star <= this.hoverValue,
|
|
53
|
-
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '
|
|
53
|
+
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: 'e8d0f15c83777dc5d3c3bd1db3d9c16a9c120f56', class: `co-rating__helper co-rating__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'cd3f94380d0165845fab30aba00700304082b566', name: this.statusIcon, size: 14, weight: "fill", class: "co-rating__helper-icon" }), h("span", { key: 'b4e9e93a4a8d7c02016ea3f53735b48cef5a3754', class: "co-rating__helper-text" }, this.helperText)))));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
CoRating.style = coRatingCss();
|
|
@@ -2028,7 +2028,7 @@ const CoRichTextEditor = class {
|
|
|
2028
2028
|
render() {
|
|
2029
2029
|
const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
|
|
2030
2030
|
const showCount = this.showCharacterCount || this.maxLength != null;
|
|
2031
|
-
return (h("div", { key: '
|
|
2031
|
+
return (h("div", { key: '27f9e0072f0f8066a193bd6d0ce89dcb3f554477', class: {
|
|
2032
2032
|
'co-rich-text-editor': true,
|
|
2033
2033
|
'co-rich-text-editor--focused': this.hasFocus,
|
|
2034
2034
|
'co-rich-text-editor--disabled': this.disabled,
|
|
@@ -2036,10 +2036,10 @@ const CoRichTextEditor = class {
|
|
|
2036
2036
|
'co-rich-text-editor--loading': !this.ready,
|
|
2037
2037
|
[`co-rich-text-editor--${this.status}`]: this.status !== 'default',
|
|
2038
2038
|
'co-rich-text-editor--flat': this.variant === 'flat',
|
|
2039
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
2039
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'c45d77264e26bb840952a488b6d6b5e7f9806886', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: 'aee6d4babf7db51bfdc56b79cb66093a3c405a1d', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: '7accfc51bf56f8e58ba1662cad7b6cf3c32f4111', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: 'a728ccc17bd1295278c7dc07d1b5254f954b0fbf', class: "co-rich-text-editor__frame" }, showToolbar && (h("co-rich-text-toolbar", { key: 'fa79e86fc7e11e9663e848189ba831d46f34166e', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
|
|
2040
2040
|
e.stopPropagation();
|
|
2041
2041
|
this.coAttachmentsSelected.emit(e.detail);
|
|
2042
|
-
}, ref: (el) => (this.toolbarEl = el) })), h("div", { key: '
|
|
2042
|
+
}, ref: (el) => (this.toolbarEl = el) })), h("div", { key: '2e3724a1692a91bb98e054bb71a4802a057db3f2', class: "co-rich-text-editor__box" }, h("div", { key: 'c1ebc7ba2ffab04ae55acabe19b09a1c641729e6', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) }))), h("div", { key: '13340aec99b0250e59e0fdc7fa71484907bd6674', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '9b6ca8c34a4df7a55bced0df8a8816097c7db1b0', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: '29858116e3978fc15da5f6de79334741c494b513', name: this.helperIcon, size: 14 }), h("span", { key: 'dd863ec791e6b082512bdc92453e623dd1b5df0a' }, this.helperText))), showCount && (h("span", { key: '42ce76f53ad1447027fff7aaf9b0605b42804edb', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
|
|
2043
2043
|
}
|
|
2044
2044
|
get el() { return getElement(this); }
|
|
2045
2045
|
static get watchers() { return {
|
package/dist/esm/co-row.entry.js
CHANGED
|
@@ -11,11 +11,11 @@ const CoRow = class {
|
|
|
11
11
|
this.size = 'sm';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("div", { key: '
|
|
14
|
+
return (h("div", { key: '70696fccf41033a652d645d1729c6a1623a29dba', class: {
|
|
15
15
|
'co-row': true,
|
|
16
16
|
[`co-row--${this.position}`]: true,
|
|
17
17
|
[`co-row--${this.size}`]: true,
|
|
18
|
-
}, part: "row" }, h("div", { key: '
|
|
18
|
+
}, part: "row" }, h("div", { key: '9340e93c22c524dcfefaa045a33708d6716d2e71', class: "co-row__prefix" }, h("slot", { key: '25849a63e71d4b0135bb4f0cd4fb7a770d6ad891', name: "prefix" })), h("div", { key: 'a3334d91df254818ea3a930064e9aff841156453', class: "co-row__content" }, h("slot", { key: '6a5715653ce606e9b305e3ac028f0516b0fe1e53' })), h("div", { key: '14108da97477a0b126aa4e0d5ca9a88589ff581c', class: "co-row__suffix" }, h("slot", { key: '2739761ef763685df0a7a72414ebde1098edf45a', name: "suffix" }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
CoRow.style = coRowCss();
|
|
@@ -61,7 +61,7 @@ const CoSeparator = class {
|
|
|
61
61
|
style['--co-separator-inset-end'] = '0px';
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
return (h("hr", { key: '
|
|
64
|
+
return (h("hr", { key: '0dc126dcca1c3c1a9b7c81f826ea6dc88e5fe8cf', class: {
|
|
65
65
|
'co-separator': true,
|
|
66
66
|
'co-separator--vertical': this.vertical,
|
|
67
67
|
'co-separator--dark': this.dark,
|
|
@@ -10,10 +10,10 @@ const CoSidebar = class {
|
|
|
10
10
|
this.mode = 'full';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("nav", { key: '
|
|
13
|
+
return (h("nav", { key: 'fca10c02609e09fc438ce161abd1d78c09c69069', class: {
|
|
14
14
|
'co-sidebar': true,
|
|
15
15
|
[`co-sidebar--${this.mode}`]: true,
|
|
16
|
-
}, part: "sidebar" }, h("div", { key: '
|
|
16
|
+
}, part: "sidebar" }, h("div", { key: '1544927cf558bb7531a0f7b4c0b8c65639221c20', class: "co-sidebar__header", part: "header" }, h("slot", { key: 'be023481e358dca947923cf2832326b4c9226d81', name: "header" })), h("div", { key: 'd949188bc503b24fd01324c70ff422ac0ec63515', class: "co-sidebar__body", part: "body" }, h("slot", { key: '49bfd3625171421229664033cdb18f7117938c7d' })), h("div", { key: '511cf30ca3a8102d50c6351c7d56a4ac5f05da9e', class: "co-sidebar__footer", part: "footer" }, h("slot", { key: 'f299146e4692b337dbd3fe2dfbb1fe7d4bd52fb4', name: "footer" }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
CoSidebar.style = coSidebarCss();
|
|
@@ -78,12 +78,12 @@ const CoSlider = class {
|
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
const pct = this.percentage;
|
|
81
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: 'f82f6a02b6aa537469b2cf09296e313bd2e3580a', class: {
|
|
82
82
|
'co-slider': true,
|
|
83
83
|
'co-slider--disabled': this.disabled,
|
|
84
84
|
'co-slider--dragging': this.dragging,
|
|
85
85
|
[`co-slider--${this.status}`]: this.status !== 'default',
|
|
86
|
-
} }, (this.label || this.secondaryLabel || this.showValue) && (h("div", { key: '
|
|
86
|
+
} }, (this.label || this.secondaryLabel || this.showValue) && (h("div", { key: '161e77eb5a416d015741a0ff2d5ff1f542d1d90b', class: "co-slider__labels" }, h("div", { key: '95c0753a65a5cd74c3d07cd671b43e5c2bb4bb9a', class: "co-slider__labels-left" }, this.label && h("label", { key: 'eb490ec9892724486017891173cbd67c601a31ea', class: "co-slider__label" }, this.label), this.secondaryLabel && h("span", { key: '26c67f92cd5c9cfc1b241405758f4b8f22755027', class: "co-slider__secondary-label" }, this.secondaryLabel)), this.showValue && h("span", { key: 'af025c1f222f3107d63e303a432a42086889768f', class: "co-slider__value" }, this.value))), h("div", { key: 'f80d84c22398217d91a746a2acf87fe3017aafc1', class: "co-slider__track-wrapper", ref: el => (this.trackEl = el), onPointerDown: this.handlePointerDown }, h("div", { key: 'c97e2b09211935a2e7a330e136ddb2ab4f2a6a99', class: "co-slider__track" }, h("div", { key: '6eae65d3c54756f9ec2415afa5247264b5b234bc', class: "co-slider__fill", style: { width: `${pct}%` } })), h("div", { key: 'c7be4df591f311cc9563c0e83446d30c34861f7b', class: "co-slider__thumb", style: { left: `${pct}%` } })), this.showMarks && (h("div", { key: 'c6136669a27ea7ecd0f59b41e870a7ae97fa0e23', class: "co-slider__marks" }, h("span", { key: 'b66409d99e858e3d1b7bad094ed8cac1b3adc103', class: "co-slider__mark" }, this.min), h("span", { key: '3bd6b1b89600d3f32097b780cc5f2c4a34787e4a', class: "co-slider__mark" }, this.max))), h("input", { key: 'db4cb887608ace24b68df88a72749995548c61b5', class: "co-slider__native", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.handleInputChange, "aria-label": this.label || 'Slider' }), this.helperText && (h("div", { key: '4e497982df811e9929a6a33ac6a442faa2f9bc77', class: `co-slider__helper co-slider__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '8b07a87a0dcb8ce622884f0d26f8605442c4696f', name: this.statusIcon, size: 14, weight: "fill", class: "co-slider__helper-icon" }), h("span", { key: '3287eabd8005685c8247202c891cf0b3939178cc', class: "co-slider__helper-text" }, this.helperText)))));
|
|
87
87
|
}
|
|
88
88
|
get el() { return getElement(this); }
|
|
89
89
|
};
|
|
@@ -34,16 +34,16 @@ const CoSwitch = class {
|
|
|
34
34
|
render() {
|
|
35
35
|
const hasLabels = this.label || this.secondaryLabel;
|
|
36
36
|
const hasHelper = !!this.helperText;
|
|
37
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '41dd889ef58fd3d7a6b2317d8784791d8083e26a', class: {
|
|
38
38
|
'co-switch-wrapper': true,
|
|
39
39
|
'co-switch-wrapper--disabled': this.disabled,
|
|
40
40
|
[`co-switch-wrapper--${this.status}`]: this.status !== 'default',
|
|
41
|
-
} }, h("div", { key: '
|
|
41
|
+
} }, h("div", { key: 'e3a421799c7112db888f9707fd6fc83c6eb04549', class: "co-switch-wrapper__row", onClick: this.handleClick }, h("button", { key: 'bb053dd1564d84af742676d37b385db37c7d6643', role: "switch", "aria-checked": String(this.checked), "aria-label": this.label || '', class: {
|
|
42
42
|
'co-switch': true,
|
|
43
43
|
'co-switch--on': this.checked,
|
|
44
44
|
'co-switch--off': !this.checked,
|
|
45
45
|
'co-switch--disabled': this.disabled,
|
|
46
|
-
}, disabled: this.disabled, part: "track" }, h("span", { key: '
|
|
46
|
+
}, disabled: this.disabled, part: "track" }, h("span", { key: '0432985aef597b86de60864b9b45595beece935c', class: "co-switch__thumb", part: "thumb" })), hasLabels && (h("div", { key: '1af63ce6265cc677c7a415fe8955bd68ec0b9fe6', class: "co-switch-wrapper__labels" }, this.label && h("span", { key: 'f9813aaeb56fc6b754d76b7bebf1f2a0d9282b94', class: "co-switch-wrapper__label", part: "label" }, this.label, h(RequiredMark, { key: '6039ff298e3d0c55064cd1ea7650b00411bd03b0', required: this.required })), this.secondaryLabel && (h("span", { key: '21a42e2ef46ee5d84c2558c40f8c536ede49212b', class: "co-switch-wrapper__secondary-label", part: "secondary-label" }, this.secondaryLabel))))), hasHelper && (h("div", { key: 'db03ce9ca2516535d9c04e8375a592df2971ffe0', class: `co-switch-wrapper__helper co-switch-wrapper__helper--${this.status}` }, this.statusIcon && (h("co-icon", { key: 'ef34308ef4d0976c89a2ad6cc4ecb7615165d022', name: this.statusIcon, size: 14, weight: "fill", class: "co-switch-wrapper__helper-icon" })), h("span", { key: '65e07eef8ee79d1fea4808a03f012b46959322a9', class: "co-switch-wrapper__helper-text" }, this.helperText)))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
CoSwitch.style = coSwitchCss();
|
|
@@ -54,10 +54,10 @@ const CoTabGroup = class {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'b358bcbc4623e89d4c8182fec57aa09431f5bf5b', class: {
|
|
58
58
|
'co-tab-group': true,
|
|
59
59
|
[`co-tab-group--${this.variant}`]: true,
|
|
60
|
-
}, role: "tablist", part: "tab-group", onWheel: this.onWheel }, h("slot", { key: '
|
|
60
|
+
}, role: "tablist", part: "tab-group", onWheel: this.onWheel }, h("slot", { key: '19257745a3473078f4c8200eba3a1edf9ff37594', onSlotchange: this.onSlotChange })));
|
|
61
61
|
}
|
|
62
62
|
get el() { return getElement(this); }
|
|
63
63
|
static get watchers() { return {
|
package/dist/esm/co-tab.entry.js
CHANGED
|
@@ -26,13 +26,13 @@ const CoTab = class {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const iconSize = this.variant === 'underline' ? 16 : this.size === 'large' ? 18 : 14;
|
|
29
|
-
return (h("button", { key: '
|
|
29
|
+
return (h("button", { key: '50b55fc41a8edcb9647e47c5a3fa28eea836c420', class: {
|
|
30
30
|
'co-tab': true,
|
|
31
31
|
[`co-tab--${this.size}`]: true,
|
|
32
32
|
[`co-tab--${this.variant}`]: true,
|
|
33
33
|
'co-tab--selected': this.selected,
|
|
34
34
|
'co-tab--disabled': this.disabled,
|
|
35
|
-
}, type: "button", role: "tab", "aria-selected": this.selected ? 'true' : 'false', disabled: this.disabled, part: "tab", onClick: this.handleClick }, this.iconLeft && (h("co-icon", { key: '
|
|
35
|
+
}, type: "button", role: "tab", "aria-selected": this.selected ? 'true' : 'false', disabled: this.disabled, part: "tab", onClick: this.handleClick }, this.iconLeft && (h("co-icon", { key: '4612c89b1ca388c0b155767d2756953df1c1ccaa', name: this.iconLeft, size: iconSize })), h("span", { key: '832a5daf1f7a40233c4d972dd28b7d8c5688a470' }, this.label), this.badge && (h("span", { key: 'ac9d188902b8c906117d50751c2d58da16f095ca', class: "co-tab__badge", part: "badge" }, this.badge)), this.iconRight && (h("co-icon", { key: 'f2b32323ce754284d0a6468203e9c5c803a37761', name: this.iconRight, size: iconSize }))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
CoTab.style = coTabCss();
|
|
@@ -174,14 +174,14 @@ const CoTagsField = class {
|
|
|
174
174
|
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
175
175
|
const helper = this.isInvalid ? this.errorMessage : this.helperText;
|
|
176
176
|
const showInput = !this.readonly && !this.atCapacity;
|
|
177
|
-
return (h("div", { key: '
|
|
177
|
+
return (h("div", { key: '2e0ef9e89f150a136193f4963463ad884a4b3eb7', class: {
|
|
178
178
|
'co-tags-field': true,
|
|
179
179
|
'co-tags-field--disabled': this.disabled,
|
|
180
180
|
'co-tags-field--focused': this.hasFocus,
|
|
181
181
|
'co-tags-field--filled': this.hasValue,
|
|
182
182
|
'co-tags-field--invalid': this.isInvalid,
|
|
183
183
|
[`co-tags-field--${this.size}`]: true,
|
|
184
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
184
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '7026f6e9256dc97bde2dc5784437c2901b349b34', class: "co-tags-field__labels" }, h("label", { key: 'ee209adce424a052f92745178ceda6de8a9d24ff', class: "co-tags-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'b80ec58705dd3f8e2351e506104acffee7db4998', required: this.required })))), h("div", { key: 'b29f0fa6a8a795ed541a655bda54f55ada8ec7f8', class: "co-tags-field__field-row" }, h("div", { key: '1f932a0c350bd8e7bb1ae8d84396d7a84b4cde43', class: "co-tags-field__field", part: "field", onClick: this.handleFieldClick }, h("div", { key: 'f066e81827d30d3293c6ef49c72b780d95eac4d0', class: "co-tags-field__input-wrapper" }, tags.map((tag, index) => this.editingIndex === index ? (h("input", { key: `edit-${index}`, ref: (el) => (this.editEl = el), class: "co-tags-field__edit", type: "text", value: this.editingDraft, onInput: (e) => (this.editingDraft = e.target.value), onKeyDown: this.handleEditKeyDown, onBlur: () => this.saveEdit() })) : (
|
|
185
185
|
// Shared field-chip (utils/fieldChip.tsx) per the Figma
|
|
186
186
|
// "Tipo=Chips" spec — same look as co-ref-field's chips.
|
|
187
187
|
h(FieldChip, { key: `chip-${index}-${tag}`, baseClass: "co-tags-field__chip", label: tag, title: tag, onChipDblClick: () => this.startEdit(index), onRemove: !this.disabled && !this.readonly
|
|
@@ -189,13 +189,13 @@ const CoTagsField = class {
|
|
|
189
189
|
e.stopPropagation();
|
|
190
190
|
this.removeTag(index);
|
|
191
191
|
}
|
|
192
|
-
: undefined }))), showInput && (h("input", { key: '
|
|
192
|
+
: undefined }))), showInput && (h("input", { key: '23d2b229eefdf70cac665b1f54c4706bdd4f7eae', ref: (el) => (this.inputEl = el), class: "co-tags-field__native", type: "text", autocomplete: "off", value: this.draft, placeholder: tags.length === 0 ? this.placeholder : '', disabled: this.disabled, required: this.required && tags.length === 0, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'Tags' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" }))), this.clearable && (h("button", { key: '16e425b88e60e91b17df0552ca7d8e8fc8519ba5', class: {
|
|
193
193
|
'co-tags-field__clear': true,
|
|
194
194
|
'co-tags-field__clear--hidden': !showClear,
|
|
195
|
-
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClearAll, "aria-label": "Clear all", part: "clear" }, h("co-icon", { key: '
|
|
195
|
+
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClearAll, "aria-label": "Clear all", part: "clear" }, h("co-icon", { key: '92add95993cd8013019f754ff3207793128ca51e', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: '029a5b91a03ca2ca8653378d87489996d5f492fe', type: "hidden", name: this.name, value: JSON.stringify(tags) }), helper && (h("div", { key: 'fed6f3bd7df1414a0e5f97eb48ea7eb0f5e3953e', class: {
|
|
196
196
|
'co-tags-field__helper': true,
|
|
197
197
|
'co-tags-field__helper--error': this.isInvalid,
|
|
198
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
198
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'a952b7423a78bd2858b6b221ca1ceb4691e413cf', name: "warning-circle", size: 14, class: "co-tags-field__helper-icon" })), h("span", { key: 'ee650cda04dab278333db5f01061cb5bb3589024', class: "co-tags-field__helper-text" }, helper)))));
|
|
199
199
|
}
|
|
200
200
|
get el() { return getElement(this); }
|
|
201
201
|
static get watchers() { return {
|
|
@@ -73,7 +73,7 @@ const CoTextarea = class {
|
|
|
73
73
|
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
74
74
|
const isOverLimit = this.maxLength != null && this.charCount > this.maxLength;
|
|
75
75
|
const statusClass = this.status !== 'default' ? `co-textarea--${this.status}` : '';
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: 'f2ccc7aee2d49eb7d30a1b3126d8f43449d5a507', class: {
|
|
77
77
|
'co-textarea': true,
|
|
78
78
|
'co-textarea--disabled': this.disabled,
|
|
79
79
|
'co-textarea--focused': this.hasFocus,
|
|
@@ -82,13 +82,13 @@ const CoTextarea = class {
|
|
|
82
82
|
[`co-textarea--${this.size}`]: true,
|
|
83
83
|
[statusClass]: !!statusClass,
|
|
84
84
|
'co-textarea--flat': this.variant === 'flat',
|
|
85
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
85
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'afd5a0b21e688ebf95f66f80e8cdb115b1ef731d', class: "co-textarea__labels" }, this.label && (h("label", { key: 'bcc7f15e3e0eaaf98f3b19fa8d98fb6804d70f3e', class: "co-textarea__label", part: "label" }, this.label, h(RequiredMark, { key: 'bbb2aaae400435e7fa5b3ffc0813b4461dd06ef2', required: this.required }))), this.secondaryLabel && (h("span", { key: '260d96d2700e783b33e85934f815cc93483a5dc5', class: "co-textarea__secondary-label" }, this.secondaryLabel)))), h("div", { key: '15e0df28e0dc7556f03fb250dd41219cfc91f990', class: "co-textarea__field", part: "field" }, h("textarea", { key: '1a768ee4e3238a7b5f766d7fd874268c37689efa', ref: (el) => (this.textareaEl = el), class: {
|
|
86
86
|
'co-textarea__native': true,
|
|
87
87
|
[`co-textarea__native--resize-${this.resize}`]: true,
|
|
88
|
-
}, rows: this.rows, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.status === 'error' || isOverLimit ? 'true' : 'false', onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" }), showClear && (h("button", { key: '
|
|
88
|
+
}, rows: this.rows, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.status === 'error' || isOverLimit ? 'true' : 'false', onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" }), showClear && (h("button", { key: 'dca996eb57a14cc72e2c11e71f70a71e369b004d', class: "co-textarea__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '34af750ee1b162b83a62579f69bffe01ee843220', name: "x-circle", size: 16, weight: "fill" })))), (this.helperText || this.maxLength != null) && (h("div", { key: '5ee0bfd1a9a51b1e35ec0bf1103bea87e4585d49', class: "co-textarea__footer" }, this.helperText && (h("div", { key: 'c79cdcf441072b79a4adaf75f6dee59ae8f9d96c', class: {
|
|
89
89
|
'co-textarea__helper': true,
|
|
90
90
|
'co-textarea__helper--error': this.status === 'error',
|
|
91
|
-
}, part: "helper" }, this.status === 'error' && (h("co-icon", { key: '
|
|
91
|
+
}, part: "helper" }, this.status === 'error' && (h("co-icon", { key: '9bad2a6c50361bcd1451af88ba5ca1cc6d703ca7', name: "warning-circle", size: 14, class: "co-textarea__helper-icon" })), h("span", { key: 'f6857823bb264d208bde50dfba615b677027129e', class: "co-textarea__helper-text" }, this.helperText))), this.maxLength != null && (h("span", { key: 'cb68c0f5d640f01d9bf3aa2163daa84f55d97442', class: {
|
|
92
92
|
'co-textarea__counter': true,
|
|
93
93
|
'co-textarea__counter--over': isOverLimit,
|
|
94
94
|
}, part: "counter" }, this.charCount, "/", this.maxLength))))));
|
|
@@ -70,13 +70,13 @@ const CoToggleButtonGroup = class {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: '1b6e22dee9634178aea0d3dc3a0f411ec91cc5aa', class: {
|
|
74
74
|
'co-toggle-button-group': true,
|
|
75
75
|
[`co-toggle-button-group--${this.direction}`]: true,
|
|
76
76
|
[`co-toggle-button-group--${this.variant}`]: true,
|
|
77
77
|
'co-toggle-button-group--disabled': this.disabled,
|
|
78
78
|
'co-toggle-button-group--full': this.fullWidth,
|
|
79
|
-
}, role: "group" }, h("slot", { key: '
|
|
79
|
+
}, role: "group" }, h("slot", { key: 'a86ecce7e4e3ade114cee1e6f023df88c0a6df4c' })));
|
|
80
80
|
}
|
|
81
81
|
get el() { return getElement(this); }
|
|
82
82
|
static get watchers() { return {
|
|
@@ -23,13 +23,13 @@ const CoToggleButton = class {
|
|
|
23
23
|
render() {
|
|
24
24
|
const iconSize = this.variant === 'track' ? 18 : this.size === 'l' ? 20 : this.size === 'xs' ? 14 : 16;
|
|
25
25
|
const iconWeight = this.selected && this.selectedIconWeight ? this.selectedIconWeight : undefined;
|
|
26
|
-
return (h("button", { key: '
|
|
26
|
+
return (h("button", { key: '01e466c86b14cbd508881c85a833e30281345a30', class: {
|
|
27
27
|
'co-toggle-button': true,
|
|
28
28
|
'co-toggle-button--selected': this.selected,
|
|
29
29
|
[`co-toggle-button--${this.size}`]: true,
|
|
30
30
|
'co-toggle-button--disabled': this.disabled,
|
|
31
31
|
'co-toggle-button--icon-only': !this.label && (!!this.iconLeft || !!this.iconRight),
|
|
32
|
-
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: '
|
|
32
|
+
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: '395d8fb745fbcc903ce45bc5bba9b13b06f2ff7f', name: "leading" }), this.iconLeft && h("co-icon", { key: '372b60a45fc545e525162ff3760896ab77da36eb', name: this.iconLeft, size: iconSize, weight: iconWeight }), this.label && h("span", { key: '6e37705d4e3911fc2333ba2929dbd0c06aeddbfa', class: "co-toggle-button__label" }, this.label), this.iconRight && h("co-icon", { key: 'a6390c8abc9d2e889485d9bf3a3f441af85fb13c', name: this.iconRight, size: iconSize, weight: iconWeight })));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
CoToggleButton.style = coToggleButtonCss();
|
|
@@ -801,14 +801,14 @@ const CoVideo = class {
|
|
|
801
801
|
// ═══════════════════════════════════════════════════
|
|
802
802
|
render() {
|
|
803
803
|
const aspectClass = `co-video--${this.aspectRatio.replace(':', '-')}`;
|
|
804
|
-
return (h(Host, { key: '
|
|
804
|
+
return (h(Host, { key: '144618baaec004b7463e60aba02101b72b25aba2' }, h("div", { key: 'ea68f39191f31f9ee58537e24f0feac63b31fd9d', class: {
|
|
805
805
|
'co-video': true,
|
|
806
806
|
[aspectClass]: true,
|
|
807
807
|
[`co-video--rounded-${this.rounded}`]: true,
|
|
808
808
|
'co-video--disabled': this.disabled,
|
|
809
809
|
'co-video--fullscreen': this.isFullscreen,
|
|
810
810
|
'co-video--playing': this.isPlaying,
|
|
811
|
-
}, part: "container", ref: el => (this.containerEl = el), role: "region", "aria-label": this.t.player, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseMove: this.handleContainerMouseMove, onMouseLeave: this.handleContainerMouseLeave, onTouchStart: this.handleContainerTouchStart }, h("video", { key: '
|
|
811
|
+
}, part: "container", ref: el => (this.containerEl = el), role: "region", "aria-label": this.t.player, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseMove: this.handleContainerMouseMove, onMouseLeave: this.handleContainerMouseLeave, onTouchStart: this.handleContainerTouchStart }, h("video", { key: '548fab677d588d471e69ce2572990498085ed369', ref: el => (this.videoEl = el), class: "co-video__native", part: "video", src: this.src || undefined, poster: undefined, preload: this.preload, loop: this.loop, playsinline: true, tabindex: -1, controlsList: this.allowDownload ? undefined : 'nodownload' }), this.renderPoster(), this.renderLoader(), this.renderBigPlayButton(), this.renderError(), h("div", { key: 'cabe6a6d5b1c18cb92034fffd6464873eef25a7c', class: "co-video__click-area", onClick: this.handleVideoAreaClick }), this.renderControls())));
|
|
812
812
|
}
|
|
813
813
|
get el() { return getElement(this); }
|
|
814
814
|
static get watchers() { return {
|