@prolibu-suite/cobalt-core 0.1.2 → 0.2.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 +15359 -5571
- package/dist/cjs/co-accordion.cjs.entry.js +19 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/co-autocomplete.cjs.entry.js +51 -6
- package/dist/cjs/co-avatar.cjs.entry.js +40 -7
- package/dist/cjs/co-badge.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +1 -1
- package/dist/cjs/co-button.cjs.entry.js +10 -5
- package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
- package/dist/cjs/co-card.cjs.entry.js +21 -4
- package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
- package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/co-chip.cjs.entry.js +3 -3
- package/dist/cjs/co-color-picker.cjs.entry.js +109 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
- package/dist/cjs/co-combobox.cjs.entry.js +51 -15
- package/dist/cjs/co-command-search.cjs.entry.js +14 -7
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +17 -5
- package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
- package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
- package/dist/cjs/co-date-range.cjs.entry.js +13 -259
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +498 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/co-icon.cjs.entry.js +7 -4
- package/dist/cjs/co-input.cjs.entry.js +13 -8
- package/dist/cjs/co-json-field.cjs.entry.js +109 -0
- package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
- package/dist/cjs/co-list-item.cjs.entry.js +14 -4
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +13 -3
- package/dist/cjs/co-navbar.cjs.entry.js +4 -4
- package/dist/cjs/co-number-field.cjs.entry.js +47 -11
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +376 -0
- package/dist/cjs/co-popover.cjs.entry.js +4 -4
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
- package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
- 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 +191 -21
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +235 -0
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +184 -0
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +82 -0
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +119 -18
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +30 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +9 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +205 -0
- package/dist/cjs/co-textarea.cjs.entry.js +92 -0
- package/dist/cjs/co-toast.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-tooltip.cjs.entry.js +12 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
- package/dist/cjs/dates-D8D-aS5d.js +432 -0
- package/dist/cjs/index-CaEJnpZe.js +27213 -0
- package/dist/cjs/{index-BEovErzl.js → index-DoFnrUVH.js} +79 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
- package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
- package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
- package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
- package/dist/cjs/requiredMark-DA6y-4rp.js +16 -0
- package/dist/cjs/sanitizer-CjHZAkOm.js +1883 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-1021f612.entry.js → p-01fc77c4.entry.js} +1 -1
- package/dist/cobalt/p-0a6d8061.entry.js +1 -0
- package/dist/cobalt/{p-ff6a647c.entry.js → p-0bf288cd.entry.js} +1 -1
- package/dist/cobalt/p-136bdbd2.entry.js +1 -0
- package/dist/cobalt/{p-1b7d6808.entry.js → p-15708d32.entry.js} +1 -1
- package/dist/cobalt/{p-cc93ab05.entry.js → p-1578b019.entry.js} +1 -1
- package/dist/cobalt/{p-1b5c723a.entry.js → p-1e0282b8.entry.js} +1 -1
- package/dist/cobalt/p-23d48581.entry.js +1 -0
- package/dist/cobalt/p-2718ff27.entry.js +1 -0
- package/dist/cobalt/p-273afd93.entry.js +1 -0
- package/dist/cobalt/{p-c9b0e73f.entry.js → p-2b4d8535.entry.js} +1 -1
- package/dist/cobalt/p-3190d715.entry.js +1 -0
- package/dist/cobalt/p-3f9b3fcb.entry.js +1 -0
- package/dist/cobalt/p-41228dce.entry.js +1 -0
- package/dist/cobalt/{p-5a13e3a0.entry.js → p-44672953.entry.js} +1 -1
- package/dist/cobalt/{p-4cf6d1f4.entry.js → p-522fcdb7.entry.js} +1 -1
- package/dist/cobalt/p-53ce9023.entry.js +1 -0
- package/dist/cobalt/{p-4d8ff00a.entry.js → p-54f26e95.entry.js} +1 -1
- package/dist/cobalt/p-5d01bd4d.entry.js +1 -0
- package/dist/cobalt/p-5e7141aa.entry.js +1 -0
- package/dist/cobalt/p-5f905739.entry.js +1 -0
- package/dist/cobalt/{p-fb047df8.entry.js → p-6404bd21.entry.js} +1 -1
- package/dist/cobalt/p-654bbc2a.entry.js +1 -0
- package/dist/cobalt/p-6678ac0a.entry.js +1 -0
- package/dist/cobalt/{p-e808916c.entry.js → p-66a912dd.entry.js} +1 -1
- package/dist/cobalt/p-6759ee1c.entry.js +1 -0
- package/dist/cobalt/p-69a40bfd.entry.js +1 -0
- package/dist/cobalt/p-6a6a62cb.entry.js +1 -0
- package/dist/cobalt/p-6d43b6cd.entry.js +1 -0
- package/dist/cobalt/p-759c3dd0.entry.js +1 -0
- package/dist/cobalt/p-782f729f.entry.js +1 -0
- package/dist/cobalt/{p-ebd1555e.entry.js → p-7ef766c6.entry.js} +1 -1
- package/dist/cobalt/p-7f818368.entry.js +1 -0
- package/dist/cobalt/p-83b89bf8.entry.js +1 -0
- package/dist/cobalt/p-88dc561a.entry.js +1 -0
- package/dist/cobalt/{p-4905b51d.entry.js → p-8c27aff7.entry.js} +1 -1
- package/dist/cobalt/{p-a7fa4484.entry.js → p-95d14878.entry.js} +1 -1
- package/dist/cobalt/{p-1d7da33f.entry.js → p-97c20011.entry.js} +1 -1
- package/dist/cobalt/p-996179f7.entry.js +1 -0
- package/dist/cobalt/p-9c533830.entry.js +1 -0
- package/dist/cobalt/p-9d89bf47.entry.js +1 -0
- package/dist/cobalt/p-BKmfyPZK.js +2 -0
- package/dist/cobalt/p-BchB6Hdr.js +1 -0
- package/dist/cobalt/p-C1DCLOEl.js +1 -0
- package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
- package/dist/cobalt/p-CQY6Ul7q.js +1 -0
- package/dist/cobalt/p-CyYF8IJE.js +1 -0
- package/dist/cobalt/p-DcK0GGZC.js +2 -0
- package/dist/cobalt/p-DqyWGweA.js +1 -0
- package/dist/cobalt/p-Qqq8fysz.js +1 -0
- package/dist/cobalt/p-aa17c70b.entry.js +1 -0
- package/dist/cobalt/{p-416bb5ae.entry.js → p-aa63812a.entry.js} +1 -1
- package/dist/cobalt/p-ad4c1b41.entry.js +1 -0
- package/dist/cobalt/p-ae4d3207.entry.js +1 -0
- package/dist/cobalt/p-af64da37.entry.js +1 -0
- package/dist/cobalt/p-b758c2e6.entry.js +1 -0
- package/dist/cobalt/p-bb07da22.entry.js +1 -0
- package/dist/cobalt/p-beb9c11d.entry.js +1 -0
- package/dist/cobalt/p-c6a242e4.entry.js +1 -0
- package/dist/cobalt/p-c87285b6.entry.js +1 -0
- package/dist/cobalt/p-cd57e8b4.entry.js +1 -0
- package/dist/cobalt/{p-4ffba5a3.entry.js → p-ce3a535f.entry.js} +1 -1
- package/dist/cobalt/p-d17e1444.entry.js +1 -0
- package/dist/cobalt/p-d958566a.entry.js +1 -0
- package/dist/cobalt/p-dd873bf8.entry.js +1 -0
- package/dist/cobalt/p-def448e4.entry.js +1 -0
- package/dist/cobalt/p-e4de8865.entry.js +1 -0
- package/dist/cobalt/{p-3b2f7959.entry.js → p-e8b58332.entry.js} +1 -1
- package/dist/cobalt/p-eba0bf7f.entry.js +1 -0
- package/dist/cobalt/p-f0e8fa7d.entry.js +1 -0
- package/dist/cobalt/{p-e50c4c6f.entry.js → p-f2c5cb74.entry.js} +1 -1
- package/dist/cobalt/p-f8728b21.entry.js +1 -0
- package/dist/cobalt/{p-697df797.entry.js → p-f97ad9ad.entry.js} +1 -1
- package/dist/cobalt/p-fad3605d.entry.js +1 -0
- package/dist/cobalt/{p-319937c3.entry.js → p-fe9e85b6.entry.js} +1 -1
- package/dist/cobalt/p-ff2690e5.entry.js +1 -0
- package/dist/cobalt/p-ox7HzCZn.js +10 -0
- package/dist/collection/collection-manifest.json +17 -1
- package/dist/collection/components/co-accordion/co-accordion.css +19 -1
- package/dist/collection/components/co-accordion/co-accordion.js +46 -4
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +725 -7
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +88 -4
- package/dist/collection/components/co-avatar/co-avatar.css +7 -0
- package/dist/collection/components/co-avatar/co-avatar.js +35 -6
- package/dist/collection/components/co-button/co-button.css +8 -5
- package/dist/collection/components/co-button/co-button.js +46 -3
- package/dist/collection/components/co-calendar/co-calendar.css +236 -0
- package/dist/collection/components/co-calendar/co-calendar.js +728 -0
- package/dist/collection/components/co-card/co-card.css +28 -5
- package/dist/collection/components/co-card/co-card.js +47 -4
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +26 -0
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +224 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +333 -0
- package/dist/collection/components/co-color-picker/presets.js +19 -0
- package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
- package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
- package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
- package/dist/collection/components/co-combobox/co-combobox.css +788 -21
- package/dist/collection/components/co-combobox/co-combobox.js +130 -15
- package/dist/collection/components/co-command-search/co-command-search.css +4 -0
- package/dist/collection/components/co-command-search/co-command-search.js +12 -5
- package/dist/collection/components/co-data-table/co-data-table.css +1 -1
- package/dist/collection/components/co-data-table/co-data-table.js +15 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +239 -0
- package/dist/collection/components/co-date-field/co-date-field.js +746 -0
- package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
- package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
- package/dist/collection/components/co-date-range/co-date-range.css +3 -254
- package/dist/collection/components/co-date-range/co-date-range.js +29 -433
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +251 -0
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
- package/dist/collection/components/co-drawer/co-drawer.css +19 -0
- package/dist/collection/components/co-drawer/co-drawer.js +46 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +389 -0
- package/dist/collection/components/co-file-field/co-file-field.js +841 -0
- package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +6 -3
- package/dist/collection/components/co-icon-button/co-icon-button.css +10 -0
- package/dist/collection/components/co-icon-button/co-icon-button.js +4 -4
- package/dist/collection/components/co-input/co-input.css +56 -10
- package/dist/collection/components/co-input/co-input.js +34 -9
- package/dist/collection/components/co-json-field/co-json-field.css +169 -0
- package/dist/collection/components/co-json-field/co-json-field.js +453 -0
- package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
- package/dist/collection/components/co-list-item/co-list-item.css +5 -0
- package/dist/collection/components/co-list-item/co-list-item.js +12 -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 +17 -3
- package/dist/collection/components/co-modal/co-modal.js +51 -1
- package/dist/collection/components/co-navbar/co-navbar.css +1 -1
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +70 -0
- package/dist/collection/components/co-number-field/co-number-field.js +143 -13
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +265 -0
- package/dist/collection/components/co-phone-field/co-phone-field.js +392 -0
- package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
- package/dist/collection/components/co-popover/co-popover.js +2 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
- package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +816 -54
- 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 +238 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +868 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +55 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +289 -0
- 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 +232 -0
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +845 -7
- package/dist/collection/components/co-select/co-select.js +240 -17
- 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 +29 -4
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +17 -0
- package/dist/collection/components/co-switch/co-switch.js +27 -4
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
- package/dist/collection/components/co-tags-field/co-tags-field.css +272 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +590 -0
- package/dist/collection/components/co-textarea/co-textarea.css +261 -0
- package/dist/collection/components/co-textarea/co-textarea.js +484 -0
- package/dist/collection/components/co-toast/co-toast.js +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +6 -4
- 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.css +16 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +16 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +9 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
- package/dist/collection/utils/dateI18n.js +101 -0
- package/dist/collection/utils/fileI18n.js +76 -0
- package/dist/collection/utils/icon-config.js +22 -0
- package/dist/collection/utils/lightboxI18n.js +42 -0
- package/dist/collection/utils/normalizeText.js +94 -0
- package/dist/collection/utils/overlayScroll.js +20 -0
- package/dist/collection/utils/positioning.js +40 -25
- package/dist/collection/utils/requiredMark.js +11 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar.d.ts +11 -0
- package/dist/components/co-calendar.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-color-picker.js +1 -0
- package/dist/components/co-column-picker.d.ts +11 -0
- package/dist/components/co-column-picker.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-date-field.js +1 -0
- package/dist/components/co-date-picker.d.ts +11 -0
- package/dist/components/co-date-picker.js +1 -0
- package/dist/components/co-date-range-picker.d.ts +11 -0
- package/dist/components/co-date-range-picker.js +1 -0
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.d.ts +11 -0
- package/dist/components/co-file-field.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.d.ts +11 -0
- package/dist/components/co-json-field.js +1 -0
- package/dist/components/co-lightbox.d.ts +11 -0
- package/dist/components/co-lightbox.js +1 -0
- package/dist/components/co-list-item.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-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.d.ts +11 -0
- package/dist/components/co-phone-field.js +1 -0
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.d.ts +11 -0
- package/dist/components/co-progress-circle.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-rich-text-editor.js +1 -0
- package/dist/components/co-rich-text-toolbar.d.ts +11 -0
- package/dist/components/co-rich-text-toolbar.js +1 -0
- package/dist/components/co-rich-text-viewer.d.ts +11 -0
- package/dist/components/co-rich-text-viewer.js +1 -0
- 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-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.d.ts +11 -0
- package/dist/components/co-tags-field.js +1 -0
- package/dist/components/co-textarea.d.ts +11 -0
- package/dist/components/co-textarea.js +1 -0
- 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/index.js +1 -1
- package/dist/components/{p-FBICWTuN.js → p-BXdfh__-.js} +1 -1
- package/dist/components/p-BchB6Hdr.js +1 -0
- package/dist/components/p-BeWXpX8I.js +1 -0
- package/dist/components/p-BiW0ubLs.js +1 -0
- package/dist/components/p-C1DCLOEl.js +1 -0
- package/dist/components/p-C2mZ7x_Y.js +1 -0
- package/dist/components/p-C9tHLXKS.js +1 -0
- package/dist/components/p-CQY6Ul7q.js +1 -0
- package/dist/components/p-CWneqh4n.js +1 -0
- package/dist/components/{p-B18FTYLq.js → p-CaMgu2_g.js} +1 -1
- package/dist/components/p-CyYF8IJE.js +1 -0
- package/dist/components/p-DBhNS7JD.js +1 -0
- package/dist/components/p-DObrQi5F.js +1 -0
- package/dist/components/p-DPi_U-Kl.js +1 -0
- package/dist/components/p-DcK0GGZC.js +2 -0
- package/dist/components/p-DqyWGweA.js +1 -0
- package/dist/components/{p-cpdUXBiS.js → p-MiSJXuBx.js} +1 -1
- package/dist/components/p-Sgn-2g8m.js +1 -0
- package/dist/components/{p-Cr8Yc0zj.js → p-jDjfGZJp.js} +1 -1
- package/dist/components/p-o8hrDIKe.js +1 -0
- package/dist/components/p-ox7HzCZn.js +10 -0
- package/dist/esm/co-accordion.entry.js +19 -4
- package/dist/esm/co-app-shell.entry.js +1 -1
- package/dist/esm/co-autocomplete.entry.js +51 -6
- package/dist/esm/co-avatar.entry.js +39 -6
- package/dist/esm/co-badge.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +1 -1
- package/dist/esm/co-button.entry.js +10 -5
- package/dist/esm/co-calendar_3.entry.js +688 -0
- package/dist/esm/co-card.entry.js +21 -4
- package/dist/esm/co-checkbox-group.entry.js +7 -5
- package/dist/esm/co-checkbox.entry.js +4 -4
- package/dist/esm/co-chip.entry.js +3 -3
- package/dist/esm/co-color-picker.entry.js +107 -0
- package/dist/esm/co-column-picker.entry.js +441 -0
- package/dist/esm/co-combobox.entry.js +51 -15
- package/dist/esm/co-command-search.entry.js +14 -7
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +17 -5
- package/dist/esm/co-date-picker.entry.js +175 -0
- package/dist/esm/co-date-range-picker.entry.js +376 -0
- package/dist/esm/co-date-range.entry.js +13 -259
- package/dist/esm/co-empty-state.entry.js +2 -2
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +496 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +4 -4
- package/dist/esm/co-icon.entry.js +7 -4
- package/dist/esm/co-input.entry.js +13 -8
- package/dist/esm/co-json-field.entry.js +107 -0
- package/dist/esm/co-lightbox.entry.js +342 -0
- package/dist/esm/co-list-item.entry.js +14 -4
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +13 -3
- package/dist/esm/co-navbar.entry.js +4 -4
- package/dist/esm/co-number-field.entry.js +47 -11
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +374 -0
- package/dist/esm/co-popover.entry.js +4 -4
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +36 -0
- package/dist/esm/co-radio-group.entry.js +7 -5
- 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 +191 -21
- package/dist/esm/co-rich-text-editor.entry.js +233 -0
- package/dist/esm/co-rich-text-toolbar.entry.js +182 -0
- package/dist/esm/co-rich-text-viewer.entry.js +80 -0
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-select.entry.js +119 -18
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +30 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +9 -6
- package/dist/esm/co-tab-group.entry.js +2 -2
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +203 -0
- package/dist/esm/co-textarea.entry.js +90 -0
- package/dist/esm/co-toast.entry.js +2 -2
- package/dist/esm/co-toggle-button-group.entry.js +7 -4
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-tooltip.entry.js +12 -6
- package/dist/esm/co-transfer-list.entry.js +20 -6
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
- package/dist/esm/dates-CyYF8IJE.js +416 -0
- package/dist/esm/{index-B0lqrhFo.js → index-BKmfyPZK.js} +79 -11
- package/dist/esm/index-BjAqSidM.js +27200 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
- package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
- package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
- package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
- package/dist/esm/requiredMark-DFvtYtkE.js +14 -0
- package/dist/esm/sanitizer-DcK0GGZC.js +1880 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +11 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +6 -2
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
- package/dist/types/components/co-card/co-card.d.ts +10 -2
- package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +48 -0
- package/dist/types/components/co-color-picker/presets.d.ts +10 -0
- package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
- package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
- package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
- package/dist/types/components/co-command-search/co-command-search.d.ts +2 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +1 -0
- package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
- package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +1 -1
- package/dist/types/components/co-input/co-input.d.ts +4 -1
- package/dist/types/components/co-json-field/co-json-field.d.ts +66 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +1 -0
- package/dist/types/components/co-modal/co-modal.d.ts +4 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +16 -2
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +56 -0
- package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
- package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
- package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +54 -1
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +94 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +42 -0
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +32 -0
- package/dist/types/components/co-select/co-select.d.ts +31 -1
- package/dist/types/components/co-switch/co-switch.d.ts +2 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +82 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +65 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
- package/dist/types/components.d.ts +3796 -422
- package/dist/types/utils/dateI18n.d.ts +39 -0
- package/dist/types/utils/fileI18n.d.ts +34 -0
- package/dist/types/utils/icon-config.d.ts +20 -0
- package/dist/types/utils/lightboxI18n.d.ts +12 -0
- package/dist/types/utils/normalizeText.d.ts +41 -0
- package/dist/types/utils/overlayScroll.d.ts +17 -0
- package/dist/types/utils/positioning.d.ts +7 -14
- package/dist/types/utils/requiredMark.d.ts +13 -0
- package/package.json +9 -1
- package/dist/cjs/co-drawer.cjs.entry.js +0 -75
- package/dist/cjs/color-YhUkm10t.js +0 -32
- package/dist/cobalt/p-08afdc51.entry.js +0 -1
- package/dist/cobalt/p-1d3338b6.entry.js +0 -1
- package/dist/cobalt/p-1d91ec93.entry.js +0 -1
- package/dist/cobalt/p-230a23f3.entry.js +0 -1
- package/dist/cobalt/p-31bc842d.entry.js +0 -1
- package/dist/cobalt/p-37c1f700.entry.js +0 -1
- package/dist/cobalt/p-4dd7499c.entry.js +0 -1
- package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
- package/dist/cobalt/p-6793c51e.entry.js +0 -1
- package/dist/cobalt/p-689e38b3.entry.js +0 -1
- package/dist/cobalt/p-7028880b.entry.js +0 -1
- package/dist/cobalt/p-72113ec2.entry.js +0 -1
- package/dist/cobalt/p-8e54e74d.entry.js +0 -1
- package/dist/cobalt/p-92c39eed.entry.js +0 -1
- package/dist/cobalt/p-9887b828.entry.js +0 -1
- package/dist/cobalt/p-9a5c6600.entry.js +0 -1
- package/dist/cobalt/p-Am-OlB8h.js +0 -1
- package/dist/cobalt/p-B0lqrhFo.js +0 -2
- package/dist/cobalt/p-BG4WRR22.js +0 -1
- package/dist/cobalt/p-a1b248ad.entry.js +0 -1
- package/dist/cobalt/p-a470b764.entry.js +0 -1
- package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
- package/dist/cobalt/p-b6840df4.entry.js +0 -1
- package/dist/cobalt/p-b89d54d9.entry.js +0 -1
- package/dist/cobalt/p-ba84631a.entry.js +0 -1
- package/dist/cobalt/p-c7517f86.entry.js +0 -1
- package/dist/cobalt/p-ca41eec2.entry.js +0 -1
- package/dist/cobalt/p-d29c77cb.entry.js +0 -1
- package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
- package/dist/cobalt/p-da55678f.entry.js +0 -1
- package/dist/cobalt/p-dc5598d1.entry.js +0 -1
- package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
- package/dist/cobalt/p-ebd68f56.entry.js +0 -1
- package/dist/cobalt/p-f051f44d.entry.js +0 -1
- package/dist/cobalt/p-fe1447a3.entry.js +0 -1
- package/dist/components/p-Am-OlB8h.js +0 -1
- package/dist/components/p-BG4WRR22.js +0 -1
- package/dist/components/p-wwWquAtm.js +0 -1
- package/dist/esm/co-drawer.entry.js +0 -73
- package/dist/esm/color-BG4WRR22.js +0 -30
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { RequiredMark } from "../../utils/requiredMark";
|
|
3
|
+
import { initOverlayScroll } from "../../utils/overlayScroll";
|
|
2
4
|
export class CoAutocomplete {
|
|
3
5
|
constructor() {
|
|
6
|
+
/** Whether the field is required (renders a required marker on the label). */
|
|
7
|
+
this.required = false;
|
|
4
8
|
this.placeholder = 'Search…';
|
|
5
9
|
this.disabled = false;
|
|
6
10
|
this.clearable = true;
|
|
11
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
12
|
+
this.layout = 'vertical';
|
|
7
13
|
this.status = 'default';
|
|
8
14
|
/** Pre-loaded or server-returned options */
|
|
9
15
|
this.options = '[]';
|
|
@@ -112,10 +118,29 @@ export class CoAutocomplete {
|
|
|
112
118
|
};
|
|
113
119
|
return map[this.status] || null;
|
|
114
120
|
}
|
|
121
|
+
componentWillLoad() {
|
|
122
|
+
this.syncQueryFromValue();
|
|
123
|
+
}
|
|
115
124
|
onOptionsChange() {
|
|
116
125
|
// Whenever host provides new options, open if query has enough chars
|
|
117
126
|
if (this.query.length >= this.minChars)
|
|
118
127
|
this.isOpen = true;
|
|
128
|
+
// Sync query only if not actively typing (handles async option loading)
|
|
129
|
+
if (!this.focused) {
|
|
130
|
+
this.syncQueryFromValue();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
onValueChange() {
|
|
134
|
+
this.syncQueryFromValue();
|
|
135
|
+
}
|
|
136
|
+
syncQueryFromValue() {
|
|
137
|
+
if (!this.multiple && typeof this.value === 'string' && this.value) {
|
|
138
|
+
const opt = this.parsedOptions.find(o => o.value === this.value);
|
|
139
|
+
this.query = opt ? opt.label : this.value;
|
|
140
|
+
}
|
|
141
|
+
else if (!this.multiple && !this.value) {
|
|
142
|
+
this.query = '';
|
|
143
|
+
}
|
|
119
144
|
}
|
|
120
145
|
handleDocumentClick(e) {
|
|
121
146
|
if (!this.el.contains(e.target)) {
|
|
@@ -132,19 +157,35 @@ export class CoAutocomplete {
|
|
|
132
157
|
const offsetY = startIdx * ITEM_HEIGHT;
|
|
133
158
|
return { totalHeight, startIdx, endIdx, offsetY };
|
|
134
159
|
}
|
|
160
|
+
// OverlayScrollbars: init when the dropdown is open, tear down when it closes.
|
|
161
|
+
// Virtual scroll keeps working — scrollTop is read from the OS viewport.
|
|
162
|
+
componentDidRender() {
|
|
163
|
+
if (this.isOpen && this.optionsEl && !this.osInstance) {
|
|
164
|
+
this.osInstance = initOverlayScroll(this.optionsEl, (vp) => { this.scrollTop = vp.scrollTop; });
|
|
165
|
+
}
|
|
166
|
+
else if (!this.isOpen && this.osInstance) {
|
|
167
|
+
this.osInstance.destroy();
|
|
168
|
+
this.osInstance = undefined;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
disconnectedCallback() {
|
|
172
|
+
var _a;
|
|
173
|
+
(_a = this.osInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
174
|
+
this.osInstance = undefined;
|
|
175
|
+
}
|
|
135
176
|
render() {
|
|
136
177
|
const options = this.parsedOptions;
|
|
137
178
|
const selected = this.selectedValues;
|
|
138
|
-
return (h("div", { key: '
|
|
179
|
+
return (h("div", { key: 'ce31954b886934fec694f6c08e8fd0ec358aa8e6', class: {
|
|
139
180
|
'co-autocomplete': true,
|
|
140
181
|
'co-autocomplete--open': this.isOpen,
|
|
141
182
|
'co-autocomplete--disabled': this.disabled,
|
|
142
183
|
'co-autocomplete--focused': this.focused,
|
|
143
184
|
[`co-autocomplete--${this.status}`]: this.status !== 'default',
|
|
144
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
185
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: 'b71d3070d2bcce5adf61e1e88d06909b416ee4be', class: "co-autocomplete__labels" }, this.label && h("label", { key: 'add95254b2680cbb8f97a9b5b396ad4d89e1068e', class: "co-autocomplete__label" }, this.label, h(RequiredMark, { key: 'e92fe73557be2f133615b1271d5c5607a568ce42', required: this.required })), this.secondaryLabel && h("span", { key: 'b1000110ba12d6ebd8e59de414053bb4181c2ae8', class: "co-autocomplete__secondary-label" }, this.secondaryLabel))), h("div", { key: 'd47ff0409a8b2f061fd4b1327c86a6eb7ab4d5a0', class: "co-autocomplete__field" }, this.iconLeft && h("co-icon", { key: '490f639278ac1d92f8e5da2526941ae1eca155d6', name: this.iconLeft, size: 16, class: "co-autocomplete__icon" }), this.multiple && selected.length > 0 && (h("div", { key: '72c1e36ff8f609803a04183b500b73fd66638b5e', class: "co-autocomplete__chips" }, selected.map(val => {
|
|
145
186
|
const opt = this.parsedOptions.find(o => o.value === val);
|
|
146
187
|
return (h("co-chip", { label: opt ? opt.label : val, size: "small", removable: true, onCoRemove: () => this.handleChipRemove(val) }));
|
|
147
|
-
}))), h("input", { key: '
|
|
188
|
+
}))), h("input", { key: '88baf2b40c8507295f650798bc010d559ee3bd4c', 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: 'f8f1913882e0974fa5a1d10181ef74a1f64e4186', class: "co-autocomplete__spinner" }), this.clearable && (this.hasValue || this.query) && !this.disabled && (h("button", { key: '69bd3289badc18d1db76a883d7714403946ea754', class: "co-autocomplete__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: 'a5efa91bb9ce0e4d0eac8825a81dddc6ad91021e', name: "x-circle", size: 16, weight: "fill" })))), this.isOpen && (h("div", { key: 'b466e95c24e6ae654708998c3bc7d5f6fadcda46', 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 }, (() => {
|
|
148
189
|
const { totalHeight, startIdx, endIdx, offsetY } = this.getVirtualSlice(options);
|
|
149
190
|
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 => {
|
|
150
191
|
const isSelected = selected.includes(opt.value);
|
|
@@ -155,7 +196,7 @@ export class CoAutocomplete {
|
|
|
155
196
|
'co-autocomplete__option--disabled': isDisabled,
|
|
156
197
|
}, 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" })));
|
|
157
198
|
}))));
|
|
158
|
-
})())))), this.helperText && (h("div", { key: '
|
|
199
|
+
})())))), this.helperText && (h("div", { key: '5f6a00e92f6415c3ceaf04daf0cc9453b25c8090', class: `co-autocomplete__helper co-autocomplete__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '46ec66a06fd5d05b7aa715a23abe65586aacfdf3', name: this.statusIcon, size: 14, weight: "fill", class: "co-autocomplete__helper-icon" }), h("span", { key: 'fb8a087ea50ccb8a3adc4d1f2a117d185915b417', class: "co-autocomplete__helper-text" }, this.helperText)))));
|
|
159
200
|
}
|
|
160
201
|
static get is() { return "co-autocomplete"; }
|
|
161
202
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,6 +231,26 @@ export class CoAutocomplete {
|
|
|
190
231
|
"reflect": false,
|
|
191
232
|
"attribute": "label"
|
|
192
233
|
},
|
|
234
|
+
"required": {
|
|
235
|
+
"type": "boolean",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "boolean",
|
|
239
|
+
"resolved": "boolean",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "Whether the field is required (renders a required marker on the label)."
|
|
247
|
+
},
|
|
248
|
+
"getter": false,
|
|
249
|
+
"setter": false,
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"attribute": "required",
|
|
252
|
+
"defaultValue": "false"
|
|
253
|
+
},
|
|
193
254
|
"secondaryLabel": {
|
|
194
255
|
"type": "string",
|
|
195
256
|
"mutable": false,
|
|
@@ -307,6 +368,26 @@ export class CoAutocomplete {
|
|
|
307
368
|
"reflect": false,
|
|
308
369
|
"attribute": "helper-text"
|
|
309
370
|
},
|
|
371
|
+
"layout": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "'vertical' | 'horizontal'",
|
|
376
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Label layout: vertical (label above) or horizontal (label beside)"
|
|
384
|
+
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
387
|
+
"reflect": true,
|
|
388
|
+
"attribute": "layout",
|
|
389
|
+
"defaultValue": "'vertical'"
|
|
390
|
+
},
|
|
310
391
|
"status": {
|
|
311
392
|
"type": "string",
|
|
312
393
|
"mutable": false,
|
|
@@ -536,6 +617,9 @@ export class CoAutocomplete {
|
|
|
536
617
|
return [{
|
|
537
618
|
"propName": "options",
|
|
538
619
|
"methodName": "onOptionsChange"
|
|
620
|
+
}, {
|
|
621
|
+
"propName": "value",
|
|
622
|
+
"methodName": "onValueChange"
|
|
539
623
|
}];
|
|
540
624
|
}
|
|
541
625
|
static get listeners() {
|
|
@@ -16,7 +16,7 @@ const FONT_SIZE_MAP = {
|
|
|
16
16
|
};
|
|
17
17
|
export class CoAvatar {
|
|
18
18
|
constructor() {
|
|
19
|
-
/** Display type: text shows initials, icon shows a Phosphor icon */
|
|
19
|
+
/** Display type: text shows initials, icon shows a Phosphor icon, image shows a picture */
|
|
20
20
|
this.type = 'text';
|
|
21
21
|
/** Size of the avatar */
|
|
22
22
|
this.size = 'md';
|
|
@@ -26,19 +26,24 @@ export class CoAvatar {
|
|
|
26
26
|
this.iconWeight = 'regular';
|
|
27
27
|
/** Shape of the avatar */
|
|
28
28
|
this.shape = 'circle';
|
|
29
|
+
this.imgFailed = false;
|
|
30
|
+
this.handleImgError = () => {
|
|
31
|
+
this.imgFailed = true;
|
|
32
|
+
};
|
|
29
33
|
}
|
|
30
34
|
render() {
|
|
31
35
|
var _a, _b, _c;
|
|
32
36
|
const dim = (_a = SIZE_MAP[this.size]) !== null && _a !== void 0 ? _a : 56;
|
|
33
37
|
const iconSize = (_b = ICON_SIZE_MAP[this.size]) !== null && _b !== void 0 ? _b : 24;
|
|
34
38
|
const fontSize = (_c = FONT_SIZE_MAP[this.size]) !== null && _c !== void 0 ? _c : 'var(--co-font-size-18)';
|
|
35
|
-
|
|
39
|
+
const showImage = this.type === 'image' && this.src && !this.imgFailed;
|
|
40
|
+
return (h("div", { key: '8d537f60b1cefc91c98b0bfd5bdbfc9af8415868', class: {
|
|
36
41
|
'co-avatar': true,
|
|
37
42
|
[`co-avatar--${this.size}`]: true,
|
|
38
43
|
[`co-avatar--${this.type}`]: true,
|
|
39
44
|
'co-avatar--square': this.shape === 'square',
|
|
40
45
|
'co-avatar--light': !!this.color && isLightColor(this.color),
|
|
41
|
-
}, style: Object.assign({ width: `${dim}px`, height: `${dim}px`, fontSize }, (this.color ? { background: this.color } : {})), part: "avatar", role: "img", "aria-label": this.type === 'text' ? this.text : this.icon }, this.type === 'icon' ? (h("co-icon", { name: this.icon, weight: this.iconWeight, size: iconSize })) : (h("span", { class: "co-avatar__text" }, this.text))));
|
|
46
|
+
}, style: Object.assign({ width: `${dim}px`, height: `${dim}px`, fontSize }, (this.color ? { background: this.color } : {})), part: "avatar", role: "img", "aria-label": this.type === 'text' ? this.text : this.icon }, showImage ? (h("img", { class: "co-avatar__img", src: this.src, alt: this.text || '', 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))));
|
|
42
47
|
}
|
|
43
48
|
static get is() { return "co-avatar"; }
|
|
44
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,15 +63,15 @@ export class CoAvatar {
|
|
|
58
63
|
"type": "string",
|
|
59
64
|
"mutable": false,
|
|
60
65
|
"complexType": {
|
|
61
|
-
"original": "'text' | 'icon'",
|
|
62
|
-
"resolved": "\"icon\" | \"text\"",
|
|
66
|
+
"original": "'text' | 'icon' | 'image'",
|
|
67
|
+
"resolved": "\"icon\" | \"image\" | \"text\"",
|
|
63
68
|
"references": {}
|
|
64
69
|
},
|
|
65
70
|
"required": false,
|
|
66
71
|
"optional": false,
|
|
67
72
|
"docs": {
|
|
68
73
|
"tags": [],
|
|
69
|
-
"text": "Display type: text shows initials, icon shows a Phosphor icon"
|
|
74
|
+
"text": "Display type: text shows initials, icon shows a Phosphor icon, image shows a picture"
|
|
70
75
|
},
|
|
71
76
|
"getter": false,
|
|
72
77
|
"setter": false,
|
|
@@ -113,6 +118,25 @@ export class CoAvatar {
|
|
|
113
118
|
"reflect": false,
|
|
114
119
|
"attribute": "text"
|
|
115
120
|
},
|
|
121
|
+
"src": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "string",
|
|
126
|
+
"resolved": "string | undefined",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": true,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": "Image URL (type=\"image\")"
|
|
134
|
+
},
|
|
135
|
+
"getter": false,
|
|
136
|
+
"setter": false,
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"attribute": "src"
|
|
139
|
+
},
|
|
116
140
|
"icon": {
|
|
117
141
|
"type": "string",
|
|
118
142
|
"mutable": false,
|
|
@@ -194,4 +218,9 @@ export class CoAvatar {
|
|
|
194
218
|
}
|
|
195
219
|
};
|
|
196
220
|
}
|
|
221
|
+
static get states() {
|
|
222
|
+
return {
|
|
223
|
+
"imgFailed": {}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
197
226
|
}
|
|
@@ -38,30 +38,33 @@
|
|
|
38
38
|
color: var(--co-semantic-text-default);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/* ─── SIZES · ROUNDED (radius-full) ──────────────────────────
|
|
41
|
+
/* ─── SIZES · ROUNDED (radius-full) ──────────────────────────
|
|
42
|
+
Radius is overridable via --co-button-radius so a container can re-shape
|
|
43
|
+
default (rounded) buttons without setting shape="square" per button —
|
|
44
|
+
e.g. co-modal makes its footer buttons square. */
|
|
42
45
|
.co-button--rounded.co-button--l {
|
|
43
46
|
padding: var(--co-spacing-xl) var(--co-spacing-2xl);
|
|
44
47
|
gap: var(--co-spacing-md);
|
|
45
48
|
font-size: var(--co-font-size-18);
|
|
46
|
-
border-radius: var(--co-border-radius-full);
|
|
49
|
+
border-radius: var(--co-button-radius, var(--co-border-radius-full));
|
|
47
50
|
}
|
|
48
51
|
.co-button--rounded.co-button--m {
|
|
49
52
|
padding: var(--co-spacing-lg) var(--co-spacing-xl);
|
|
50
53
|
gap: var(--co-spacing-md);
|
|
51
54
|
font-size: var(--co-font-size-16);
|
|
52
|
-
border-radius: var(--co-border-radius-full);
|
|
55
|
+
border-radius: var(--co-button-radius, var(--co-border-radius-full));
|
|
53
56
|
}
|
|
54
57
|
.co-button--rounded.co-button--s {
|
|
55
58
|
padding: var(--co-spacing-md) var(--co-spacing-lg);
|
|
56
59
|
gap: var(--co-spacing-sm2);
|
|
57
60
|
font-size: var(--co-font-size-14);
|
|
58
|
-
border-radius: var(--co-border-radius-full);
|
|
61
|
+
border-radius: var(--co-button-radius, var(--co-border-radius-full));
|
|
59
62
|
}
|
|
60
63
|
.co-button--rounded.co-button--xs {
|
|
61
64
|
padding: var(--co-spacing-md) var(--co-spacing-lg);
|
|
62
65
|
gap: var(--co-spacing-sm2);
|
|
63
66
|
font-size: var(--co-font-size-12);
|
|
64
|
-
border-radius: var(--co-border-radius-full);
|
|
67
|
+
border-radius: var(--co-button-radius, var(--co-border-radius-full));
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
/* ─── SIZES · SQUARE ────────────────────────────────────────── */
|
|
@@ -37,15 +37,20 @@ export class CoButton {
|
|
|
37
37
|
render() {
|
|
38
38
|
var _a;
|
|
39
39
|
const iconSize = (_a = ICON_SIZE[this.size]) !== null && _a !== void 0 ? _a : 18;
|
|
40
|
-
|
|
40
|
+
const customStyle = {};
|
|
41
|
+
if (this.color)
|
|
42
|
+
customStyle.background = this.color;
|
|
43
|
+
if (this.textColor)
|
|
44
|
+
customStyle.color = this.textColor;
|
|
45
|
+
return (h("button", { key: 'e4851bcf865f7588c2732939375d66764fcf43fe', class: {
|
|
41
46
|
'co-button': true,
|
|
42
47
|
[`co-button--${this.variant}`]: true,
|
|
43
48
|
[`co-button--${this.shape}`]: true,
|
|
44
49
|
[`co-button--${this.size}`]: true,
|
|
45
50
|
'co-button--disabled': this.disabled,
|
|
46
|
-
}, type: this.type, disabled: this.disabled, onClick: this.handleClick, part: "button" }, this.iconLeft
|
|
51
|
+
}, style: Object.keys(customStyle).length ? customStyle : undefined, type: this.type, disabled: this.disabled, onClick: this.handleClick, part: "button" }, this.iconLeft
|
|
47
52
|
? h("co-icon", { name: this.iconLeft, weight: this.iconWeight, size: iconSize })
|
|
48
|
-
: null, h("slot", { key: '
|
|
53
|
+
: null, h("slot", { key: '83c41e8362c71147f909e1e82fd199233dcf8892' }, this.label), this.iconRight
|
|
49
54
|
? h("co-icon", { name: this.iconRight, weight: this.iconWeight, size: iconSize })
|
|
50
55
|
: null));
|
|
51
56
|
}
|
|
@@ -239,6 +244,44 @@ export class CoButton {
|
|
|
239
244
|
"reflect": false,
|
|
240
245
|
"attribute": "type",
|
|
241
246
|
"defaultValue": "'button'"
|
|
247
|
+
},
|
|
248
|
+
"color": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "string",
|
|
253
|
+
"resolved": "string | undefined",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": true,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Custom background color (CSS value or token, e.g. \"var(--co-color-secondary-rojo-100)\")"
|
|
261
|
+
},
|
|
262
|
+
"getter": false,
|
|
263
|
+
"setter": false,
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"attribute": "color"
|
|
266
|
+
},
|
|
267
|
+
"textColor": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string | undefined",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Custom text/icon color (CSS value or token, e.g. \"var(--co-color-base-blanco)\")"
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"attribute": "text-color"
|
|
242
285
|
}
|
|
243
286
|
};
|
|
244
287
|
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
font-family: var(--co-font-family-primary);
|
|
4
|
+
/* Day-cell size. Bumped to 44px on touch via [data-touch] (mobile, Fase 7). */
|
|
5
|
+
--co-calendar-day-size: 36px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([data-touch]) {
|
|
9
|
+
--co-calendar-day-size: 44px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.co-calendar {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: var(--co-spacing-sm);
|
|
16
|
+
width: max-content;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* ── Header ──────────────────────────────────────────────── */
|
|
20
|
+
.co-calendar__header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
padding: 0 var(--co-spacing-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.co-calendar__month {
|
|
28
|
+
font-size: var(--co-font-size-14);
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
color: var(--co-semantic-text-default);
|
|
31
|
+
text-transform: capitalize;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Clickable title (switches day → month → year views). */
|
|
35
|
+
.co-calendar__title {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: var(--co-spacing-xxs);
|
|
39
|
+
background: none;
|
|
40
|
+
border: 0;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
font-size: var(--co-font-size-14);
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
color: var(--co-semantic-text-default);
|
|
46
|
+
text-transform: capitalize;
|
|
47
|
+
padding: var(--co-spacing-xxs) var(--co-spacing-sm);
|
|
48
|
+
border-radius: var(--co-border-radius-xs);
|
|
49
|
+
}
|
|
50
|
+
.co-calendar__title:hover {
|
|
51
|
+
background: var(--co-semantic-surface-hover);
|
|
52
|
+
}
|
|
53
|
+
.co-calendar__title:focus-visible {
|
|
54
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
55
|
+
outline-offset: 1px;
|
|
56
|
+
}
|
|
57
|
+
.co-calendar__title-caret {
|
|
58
|
+
color: var(--co-semantic-text-muted);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Month / year picker grid. */
|
|
62
|
+
.co-calendar__panel {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: repeat(3, 1fr);
|
|
65
|
+
gap: var(--co-spacing-xs);
|
|
66
|
+
width: calc(var(--co-calendar-day-size) * 7 + 12px);
|
|
67
|
+
padding-top: var(--co-spacing-xs);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.co-calendar__cell {
|
|
71
|
+
height: calc(var(--co-calendar-day-size) + 8px);
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
background: none;
|
|
76
|
+
border: 1px solid transparent;
|
|
77
|
+
border-radius: var(--co-border-radius-xs);
|
|
78
|
+
font-family: inherit;
|
|
79
|
+
font-size: var(--co-font-size-14);
|
|
80
|
+
color: var(--co-semantic-text-default);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
text-transform: capitalize;
|
|
83
|
+
transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
|
|
84
|
+
}
|
|
85
|
+
.co-calendar__cell:hover:not(.co-calendar__cell--disabled):not(.co-calendar__cell--selected) {
|
|
86
|
+
background: var(--co-semantic-surface-hover);
|
|
87
|
+
}
|
|
88
|
+
.co-calendar__cell:focus-visible {
|
|
89
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
90
|
+
outline-offset: 1px;
|
|
91
|
+
}
|
|
92
|
+
.co-calendar__cell--muted {
|
|
93
|
+
color: var(--co-semantic-text-muted);
|
|
94
|
+
}
|
|
95
|
+
.co-calendar__cell--today {
|
|
96
|
+
border-color: var(--co-color-primary-azul);
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
}
|
|
99
|
+
.co-calendar__cell--selected {
|
|
100
|
+
background: var(--co-color-primary-azul);
|
|
101
|
+
border-color: var(--co-color-primary-azul);
|
|
102
|
+
color: var(--co-color-base-blanco, #fff);
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
}
|
|
105
|
+
.co-calendar__cell--disabled {
|
|
106
|
+
color: var(--co-semantic-text-disabled);
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.co-calendar__nav {
|
|
111
|
+
background: none;
|
|
112
|
+
border: 0;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
padding: var(--co-spacing-xs);
|
|
115
|
+
border-radius: var(--co-border-radius-xxs);
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
color: var(--co-semantic-text-default);
|
|
119
|
+
}
|
|
120
|
+
.co-calendar__nav:hover {
|
|
121
|
+
background: var(--co-semantic-surface-hover);
|
|
122
|
+
}
|
|
123
|
+
.co-calendar__nav:focus-visible {
|
|
124
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
125
|
+
outline-offset: 1px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ── Grid ────────────────────────────────────────────────── */
|
|
129
|
+
.co-calendar__grid {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 2px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.co-calendar__row {
|
|
136
|
+
display: grid;
|
|
137
|
+
grid-template-columns: repeat(7, var(--co-calendar-day-size));
|
|
138
|
+
gap: 2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.co-calendar__row--dow {
|
|
142
|
+
margin-bottom: 2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.co-calendar__dow {
|
|
146
|
+
height: 24px;
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
font-size: var(--co-font-size-10, 10px);
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
color: var(--co-semantic-text-muted);
|
|
153
|
+
text-transform: uppercase;
|
|
154
|
+
letter-spacing: 0.04em;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ── Day cell ────────────────────────────────────────────── */
|
|
158
|
+
.co-calendar__day {
|
|
159
|
+
width: var(--co-calendar-day-size);
|
|
160
|
+
height: var(--co-calendar-day-size);
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
background: none;
|
|
165
|
+
border: 1px solid transparent;
|
|
166
|
+
border-radius: var(--co-border-radius-xs);
|
|
167
|
+
font-size: var(--co-font-size-14);
|
|
168
|
+
font-family: inherit;
|
|
169
|
+
color: var(--co-semantic-text-default);
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.co-calendar__day:hover:not(.co-calendar__day--disabled):not(.co-calendar__day--selected) {
|
|
175
|
+
background: var(--co-semantic-surface-hover);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.co-calendar__day:focus-visible {
|
|
179
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
180
|
+
outline-offset: 1px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Outside-month days are muted but still navigable. */
|
|
184
|
+
.co-calendar__day--outside {
|
|
185
|
+
color: var(--co-semantic-text-muted);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* TODAY — a subtle ring only. Deliberately distinct from `selected` so the two
|
|
190
|
+
* never read the same (hard requirement).
|
|
191
|
+
*/
|
|
192
|
+
.co-calendar__day--today {
|
|
193
|
+
border-color: var(--co-color-primary-azul);
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* SELECTED — solid fill + inverse text. */
|
|
198
|
+
.co-calendar__day--selected {
|
|
199
|
+
background: var(--co-color-primary-azul);
|
|
200
|
+
border-color: var(--co-color-primary-azul);
|
|
201
|
+
color: var(--co-color-base-blanco, #fff);
|
|
202
|
+
font-weight: 600;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.co-calendar__day--disabled {
|
|
206
|
+
color: var(--co-semantic-text-disabled);
|
|
207
|
+
cursor: not-allowed;
|
|
208
|
+
pointer-events: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* ── Range states ────────────────────────────────────────── */
|
|
212
|
+
/* Middle of the range (incl. hover preview): soft tinted band. */
|
|
213
|
+
.co-calendar__day--in-range {
|
|
214
|
+
background: var(--co-semantic-surface-hover);
|
|
215
|
+
border-radius: 0;
|
|
216
|
+
color: var(--co-semantic-text-default);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Endpoints: solid fill + inverse text (same language as `selected`). */
|
|
220
|
+
.co-calendar__day--range-start,
|
|
221
|
+
.co-calendar__day--range-end {
|
|
222
|
+
background: var(--co-color-primary-azul);
|
|
223
|
+
border-color: var(--co-color-primary-azul);
|
|
224
|
+
color: var(--co-color-base-blanco, #fff);
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Connect the endpoints visually to the band when a range spans both. */
|
|
229
|
+
.co-calendar__day--range-start:not(.co-calendar__day--range-end) {
|
|
230
|
+
border-top-right-radius: 0;
|
|
231
|
+
border-bottom-right-radius: 0;
|
|
232
|
+
}
|
|
233
|
+
.co-calendar__day--range-end:not(.co-calendar__day--range-start) {
|
|
234
|
+
border-top-left-radius: 0;
|
|
235
|
+
border-bottom-left-radius: 0;
|
|
236
|
+
}
|