@prolibu-suite/cobalt-core 0.10.3 → 0.11.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 +4385 -389
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +7 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +72 -27
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +28 -6
- package/dist/cjs/co-color-area.cjs.entry.js +169 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +5 -5
- package/dist/cjs/co-command-search.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +3 -3
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1161 -0
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-emoji-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +49 -9
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +14 -8
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
- package/dist/cjs/co-menu.cjs.entry.js +81 -5
- package/dist/cjs/co-modal.cjs.entry.js +350 -7
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +8 -4
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +81 -6
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +26 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +79 -20
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +158 -29
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +203 -23
- package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
- package/dist/cjs/co-tab.cjs.entry.js +15 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-tile.cjs.entry.js +61 -0
- package/dist/cjs/co-time-field.cjs.entry.js +2 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +26 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +67 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +3 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
- package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
- package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
- package/dist/cjs/hsv-DpfSF3M2.js +95 -0
- package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
- package/dist/cjs/index-oMHzCXm6.js +144 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
- package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
- package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
- package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
- package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
- package/dist/cjs/submenu-RlaX6irw.js +65 -0
- package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-ee149fd2.entry.js → p-05000ef3.entry.js} +1 -1
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/{p-1dc55e43.entry.js → p-0a5cfed0.entry.js} +1 -1
- package/dist/cobalt/p-1289131f.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-136beb2c.entry.js} +1 -1
- package/dist/cobalt/{p-b437eff6.entry.js → p-1693b614.entry.js} +1 -1
- package/dist/cobalt/p-1bfb69ae.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-1f3d5313.entry.js} +1 -1
- package/dist/cobalt/{p-b821d9de.entry.js → p-22233b31.entry.js} +1 -1
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-26fa36f8.entry.js} +1 -1
- package/dist/cobalt/p-2794c500.entry.js +1 -0
- package/dist/cobalt/p-297b55cd.entry.js +1 -0
- package/dist/cobalt/{p-17244412.entry.js → p-2a2b0c7a.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-2e5702a0.entry.js} +1 -1
- package/dist/cobalt/p-3011c84f.entry.js +1 -0
- package/dist/cobalt/{p-4d65e713.entry.js → p-30760f77.entry.js} +1 -1
- package/dist/cobalt/{p-6dd220e0.entry.js → p-3b9a8e86.entry.js} +1 -1
- package/dist/cobalt/p-4111fefa.entry.js +1 -0
- package/dist/cobalt/{p-a32b20eb.entry.js → p-44edde81.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-45007758.entry.js} +1 -1
- package/dist/cobalt/p-48c23310.entry.js +1 -0
- package/dist/cobalt/p-4b327483.entry.js +1 -0
- package/dist/cobalt/p-4c6caa41.entry.js +1 -0
- package/dist/cobalt/{p-000a15b8.entry.js → p-5534a64f.entry.js} +1 -1
- package/dist/cobalt/p-5573985a.entry.js +1 -0
- package/dist/cobalt/p-57d250ad.entry.js +1 -0
- package/dist/cobalt/{p-826ee074.entry.js → p-59d3e8fc.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/p-5b2aa70e.entry.js +1 -0
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-5d6e02dd.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-608d251d.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-66fc1528.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-67ad9544.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-6c157ea2.entry.js} +1 -1
- package/dist/cobalt/{p-a2462d7a.entry.js → p-6d541199.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-7376f4ed.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-7569375a.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-7675cebe.entry.js} +1 -1
- package/dist/cobalt/p-78a20284.entry.js +1 -0
- package/dist/cobalt/{p-aa9400bf.entry.js → p-7f3523ce.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-86b6fd81.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-889563d5.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-8ab5b396.entry.js} +1 -1
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-8b2e4579.entry.js} +1 -1
- package/dist/cobalt/p-8cd3acaa.entry.js +1 -0
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-8f701eac.entry.js} +1 -1
- package/dist/cobalt/p-90fad0f9.entry.js +1 -0
- package/dist/cobalt/{p-76249983.entry.js → p-97a4fbba.entry.js} +1 -1
- package/dist/cobalt/p-9b46a8fe.entry.js +1 -0
- package/dist/cobalt/{p-ee2023da.entry.js → p-9bee9dc8.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-9cf10331.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9e406172.entry.js +1 -0
- package/dist/cobalt/p-B1JT7us1.js +1 -0
- package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/cobalt/p-BmdKHBZP.js +1 -0
- package/dist/cobalt/p-BtliEQAT.js +1 -0
- package/dist/cobalt/p-COJdaKBU.js +1 -0
- package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/cobalt/p-CYN5B3IQ.js +1 -0
- package/dist/cobalt/p-DJkaRtbb.js +2 -0
- package/dist/cobalt/p-DU-KOQ8L.js +1 -0
- package/dist/cobalt/p-DXLeDZvr.js +1 -0
- package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
- package/dist/cobalt/p-RVQJEYxa.js +1 -0
- package/dist/cobalt/{p-1861fe41.entry.js → p-a07dedd1.entry.js} +1 -1
- package/dist/cobalt/{p-08e42e00.entry.js → p-a336178b.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-a52ed6ff.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-a930cdd7.entry.js} +1 -1
- package/dist/cobalt/{p-eb82358d.entry.js → p-b1994bb4.entry.js} +1 -1
- package/dist/cobalt/p-b2b13da8.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-b5ec4286.entry.js} +1 -1
- package/dist/cobalt/p-b9401dd7.entry.js +1 -0
- package/dist/cobalt/p-b9dfb333.entry.js +1 -0
- package/dist/cobalt/p-bc3ba0cd.entry.js +1 -0
- package/dist/cobalt/{p-d375014b.entry.js → p-bc4fbfa6.entry.js} +1 -1
- package/dist/cobalt/{p-d0b2c418.entry.js → p-c109a1e1.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-c1caa112.entry.js} +1 -1
- package/dist/cobalt/p-c9990662.entry.js +1 -0
- package/dist/cobalt/p-cc4b51fa.entry.js +1 -0
- package/dist/cobalt/p-cc5989e9.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-ce2b2048.entry.js} +1 -1
- package/dist/cobalt/p-d1c378ff.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-d1f47915.entry.js} +1 -1
- package/dist/cobalt/{p-28764b8e.entry.js → p-d4979025.entry.js} +1 -1
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-d75d2f3d.entry.js +1 -0
- package/dist/cobalt/p-db42c4ab.entry.js +1 -0
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-e4ff2fcb.entry.js} +1 -1
- package/dist/cobalt/p-e6116149.entry.js +1 -0
- package/dist/cobalt/{p-0c004735.entry.js → p-e99ddf9c.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ea564148.entry.js} +1 -1
- package/dist/cobalt/{p-8471abe2.entry.js → p-ec7a6bf2.entry.js} +1 -1
- package/dist/cobalt/{p-fb2d1144.entry.js → p-ee42dca6.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-ee88ec40.entry.js} +1 -1
- package/dist/cobalt/p-eeb114da.entry.js +1 -0
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/p-f246946a.entry.js +1 -0
- package/dist/cobalt/{p-b90d41e4.entry.js → p-f5934cd9.entry.js} +1 -1
- package/dist/cobalt/p-f5e1873d.entry.js +1 -0
- package/dist/cobalt/p-f60bd4d6.entry.js +1 -0
- package/dist/cobalt/p-f813569c.entry.js +1 -0
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-f8c7941f.entry.js} +1 -1
- package/dist/cobalt/{p-44ea675f.entry.js → p-f8d3c71e.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-ffbe955a.entry.js} +1 -1
- package/dist/cobalt/p-xnrKkNWQ.js +1 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -2
- package/dist/collection/components/co-avatar/co-avatar.js +7 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +4 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +73 -6
- package/dist/collection/components/co-button/co-button.js +33 -11
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +11 -1
- package/dist/collection/components/co-calendar/co-calendar.js +82 -20
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +31 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-area/co-color-area.css +83 -0
- package/dist/collection/components/co-color-area/co-color-area.js +341 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
- package/dist/collection/components/co-color-slider/co-color-slider.js +353 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.js +5 -5
- package/dist/collection/components/co-data-table/co-data-table.js +3 -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.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +3 -3
- package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
- package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
- package/dist/collection/components/co-document-editor/co-document-editor.js +1542 -0
- package/dist/collection/components/co-document-editor/document-props.js +40 -0
- package/dist/collection/components/co-document-editor/header-tools.js +11 -0
- package/dist/collection/components/co-document-editor/image-bar.js +66 -0
- package/dist/collection/components/co-document-editor/page-styles.js +90 -0
- package/dist/collection/components/co-document-editor/zoom.js +45 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
- 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 +6 -6
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +138 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +407 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +95 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +120 -10
- package/dist/collection/components/co-input/co-input.css +122 -0
- package/dist/collection/components/co-input/co-input.js +37 -11
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +291 -0
- 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.css +60 -0
- package/dist/collection/components/co-menu/co-menu.js +143 -3
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +17 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +42 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +58 -4
- package/dist/collection/components/co-modal/co-modal.css +212 -1
- package/dist/collection/components/co-modal/co-modal.js +339 -9
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +64 -21
- package/dist/collection/components/co-option-list/co-option-list.js +43 -3
- package/dist/collection/components/co-overlay/co-overlay.js +7 -3
- 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.css +15 -2
- package/dist/collection/components/co-popover/co-popover.js +144 -5
- 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 +4 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.js +5 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +23 -90
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +123 -18
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +8 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +3 -3
- package/dist/collection/components/co-select/co-select.css +194 -10
- package/dist/collection/components/co-select/co-select.js +163 -32
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +10 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +19 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +148 -5
- package/dist/collection/components/co-slider/co-slider.js +240 -21
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +292 -0
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +36 -6
- package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +124 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- 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-tile/co-tile.css +63 -0
- package/dist/collection/components/co-tile/co-tile.js +162 -0
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.js +4 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +101 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +80 -8
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +28 -7
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +51 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
- package/dist/collection/components/co-tree-item/co-tree-item.css +226 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +353 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/color.js +9 -5
- package/dist/collection/utils/dragMove.js +95 -0
- package/dist/collection/utils/gradientBarI18n.js +24 -0
- package/dist/collection/utils/gradientStops.js +142 -0
- package/dist/collection/utils/hsv.js +114 -0
- package/dist/collection/utils/kbdI18n.js +29 -0
- package/dist/collection/utils/positioning.js +44 -18
- package/dist/collection/utils/rich-text-host.js +109 -0
- package/dist/collection/utils/richTextI18n.js +45 -0
- package/dist/collection/utils/submenu.js +23 -3
- package/dist/collection/utils/swatchGridI18n.js +14 -0
- package/dist/collection/utils/test/fake-block-layout.js +41 -0
- package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
- package/dist/collection/utils/test/shared-contract-css.js +9 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.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-badge.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-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.js +1 -1
- package/dist/components/co-carousel.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-area.d.ts +11 -0
- package/dist/components/co-color-area.js +1 -0
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-color-slider.d.ts +11 -0
- package/dist/components/co-color-slider.js +1 -0
- 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-document-editor.d.ts +11 -0
- package/dist/components/co-document-editor.js +1 -0
- 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.js +1 -1
- 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-gradient-bar.d.ts +11 -0
- package/dist/components/co-gradient-bar.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-kbd.d.ts +11 -0
- package/dist/components/co-kbd.js +1 -0
- 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-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.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-swatch-grid.d.ts +11 -0
- package/dist/components/co-swatch-grid.js +1 -0
- 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-tile.d.ts +11 -0
- package/dist/components/co-tile.js +1 -0
- package/dist/components/co-time-field.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-tree-item.d.ts +11 -0
- package/dist/components/co-tree-item.js +1 -0
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1JT7us1.js +1 -0
- package/dist/components/{p-Nt4JJxbL.js → p-B20o5exO.js} +1 -1
- package/dist/components/{p-DNJAIVfI.js → p-B3kKOgsA.js} +1 -1
- package/dist/components/{p-P4HlMBlL.js → p-BIDSDP05.js} +1 -1
- package/dist/components/p-BOqtnWTJ.js +1 -0
- package/dist/components/p-BQltjDw5.js +1 -0
- package/dist/components/p-BR0LYW9v.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/p-BZDl9aFl.js +1 -0
- package/dist/components/p-BcXdId8y.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/{p-NNxjElcX.js → p-BraiMwgs.js} +1 -1
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/p-Bymi-A7C.js +1 -0
- package/dist/components/p-C-f8wTqe.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-C1jZYtUS.js} +1 -1
- package/dist/components/{p-CT2enQ6h.js → p-C3G8oPgU.js} +1 -1
- package/dist/components/{p-cndRd_-U.js → p-CGH3E8uK.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-Du_CgT5E.js → p-CfJgypOl.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-ChwSnCFf.js} +1 -1
- package/dist/components/{p-Dc_Kbari.js → p-CpGEV0iM.js} +1 -1
- package/dist/components/{p-DvR45CLa.js → p-D9or2g4j.js} +1 -1
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DKXCr-hE.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-BGDqldEg.js → p-DfcPGitr.js} +1 -1
- package/dist/components/p-Dg-Ti_Bf.js +1 -0
- package/dist/components/p-Dh_eRYKu.js +1 -0
- package/dist/components/p-Dp650Gpp.js +1 -0
- package/dist/components/p-FA1kBmZ-.js +1 -0
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-d4rf3H8p.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-f2xwcrXa.js +1 -0
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-action-bar.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-audio-player.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +7 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +4 -4
- package/dist/esm/co-calendar_3.entry.js +72 -27
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +28 -6
- package/dist/esm/co-color-area.entry.js +167 -0
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-color-slider.entry.js +187 -0
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +5 -5
- package/dist/esm/co-command-search.entry.js +5 -5
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +3 -3
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +4 -4
- package/dist/esm/co-document-editor.entry.js +1159 -0
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +3 -3
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-gradient-bar.entry.js +218 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +49 -9
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +14 -8
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +3 -3
- package/dist/esm/co-menu-item.entry.js +39 -41
- package/dist/esm/co-menu.entry.js +81 -5
- package/dist/esm/co-modal.entry.js +350 -7
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +8 -4
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +81 -6
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +2 -2
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +5 -5
- package/dist/esm/co-rich-text-editor.entry.js +26 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +79 -20
- package/dist/esm/co-rich-text-viewer.entry.js +9 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +3 -3
- package/dist/esm/co-select.entry.js +158 -29
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +20 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +203 -23
- package/dist/esm/co-swatch-grid.entry.js +119 -0
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +113 -4
- package/dist/esm/co-tab.entry.js +15 -5
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-tile.entry.js +59 -0
- package/dist/esm/co-time-field.entry.js +2 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +26 -5
- package/dist/esm/co-toggle-button.entry.js +67 -6
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +3 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
- package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
- package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
- package/dist/esm/hsv-COJdaKBU.js +90 -0
- package/dist/esm/index-Cpo8HTwr.js +142 -0
- package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
- package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
- package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
- package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
- package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
- package/dist/esm/submenu-DU-KOQ8L.js +57 -0
- package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +4 -2
- package/dist/types/components/co-button/co-button.d.ts +6 -4
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +16 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +7 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +64 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +61 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +1 -1
- package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +276 -0
- package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
- package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
- package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
- package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
- package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
- package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +72 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +34 -2
- package/dist/types/components/co-input/co-input.d.ts +14 -5
- package/dist/types/components/co-kbd/co-kbd.d.ts +43 -0
- package/dist/types/components/co-menu/co-menu.d.ts +40 -1
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +17 -0
- package/dist/types/components/co-modal/co-modal.d.ts +111 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +8 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +38 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +2 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +17 -2
- package/dist/types/components/co-select/co-select.d.ts +47 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-slider/co-slider.d.ts +143 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +37 -0
- package/dist/types/components/co-tab/co-tab.d.ts +12 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +37 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tile/co-tile.d.ts +40 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +37 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +20 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +73 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components.d.ts +1748 -91
- package/dist/types/utils/color.d.ts +9 -1
- package/dist/types/utils/dragMove.d.ts +63 -0
- package/dist/types/utils/gradientBarI18n.d.ts +8 -0
- package/dist/types/utils/gradientStops.d.ts +63 -0
- package/dist/types/utils/hsv.d.ts +44 -0
- package/dist/types/utils/kbdI18n.d.ts +25 -0
- package/dist/types/utils/positioning.d.ts +24 -0
- package/dist/types/utils/rich-text-host.d.ts +41 -0
- package/dist/types/utils/richTextI18n.d.ts +15 -0
- package/dist/types/utils/submenu.d.ts +16 -2
- package/dist/types/utils/swatchGridI18n.d.ts +6 -0
- package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
- package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
- package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
- package/package.json +5 -5
- package/dist/cobalt/p-0678c797.entry.js +0 -1
- package/dist/cobalt/p-216a63ee.entry.js +0 -1
- package/dist/cobalt/p-39dc4ec8.entry.js +0 -1
- package/dist/cobalt/p-3d31c575.entry.js +0 -1
- package/dist/cobalt/p-410bee4d.entry.js +0 -1
- package/dist/cobalt/p-416795f5.entry.js +0 -1
- package/dist/cobalt/p-56551580.entry.js +0 -1
- package/dist/cobalt/p-58137c9e.entry.js +0 -1
- package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
- package/dist/cobalt/p-5c756787.entry.js +0 -1
- package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
- package/dist/cobalt/p-6a4f3179.entry.js +0 -1
- package/dist/cobalt/p-71cbc53c.entry.js +0 -1
- package/dist/cobalt/p-72e52af7.entry.js +0 -1
- package/dist/cobalt/p-8530ad16.entry.js +0 -1
- package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
- package/dist/cobalt/p-8e05b979.entry.js +0 -1
- package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
- package/dist/cobalt/p-8f2199ff.entry.js +0 -1
- package/dist/cobalt/p-9246e09c.entry.js +0 -1
- package/dist/cobalt/p-99a655f6.entry.js +0 -1
- package/dist/cobalt/p-BYKAgwq3.js +0 -1
- package/dist/cobalt/p-CJW9H3Gi.js +0 -1
- package/dist/cobalt/p-DFHRS9cJ.js +0 -1
- package/dist/cobalt/p-DH5lfRNj.js +0 -2
- package/dist/cobalt/p-a1b422ca.entry.js +0 -1
- package/dist/cobalt/p-ade07307.entry.js +0 -1
- package/dist/cobalt/p-b698188c.entry.js +0 -1
- package/dist/cobalt/p-bde32f8b.entry.js +0 -1
- package/dist/cobalt/p-db805569.entry.js +0 -1
- package/dist/cobalt/p-e3aae282.entry.js +0 -1
- package/dist/cobalt/p-e49a564c.entry.js +0 -1
- package/dist/cobalt/p-ef301976.entry.js +0 -1
- package/dist/cobalt/p-f4e1c3c3.entry.js +0 -1
- package/dist/cobalt/p-fMqVDypp.js +0 -1
- package/dist/components/p-2EOI1nrz.js +0 -1
- package/dist/components/p-7TncUlLN.js +0 -1
- package/dist/components/p-B4NCaKrR.js +0 -1
- package/dist/components/p-BJh68Jqe.js +0 -1
- package/dist/components/p-BrAFTkAn.js +0 -1
- package/dist/components/p-Bsh0JMGf.js +0 -1
- package/dist/components/p-CJW9H3Gi.js +0 -1
- package/dist/components/p-CWCYYQrF.js +0 -1
- package/dist/components/p-D7Lhxz7L.js +0 -1
- package/dist/components/p-DFHRS9cJ.js +0 -1
- package/dist/components/p-DRP8D9ro.js +0 -1
- package/dist/components/p-DTPYZwaZ.js +0 -1
- package/dist/components/p-Dcg4krSX.js +0 -1
|
@@ -418,7 +418,7 @@ export class CoAutocomplete {
|
|
|
418
418
|
"references": {
|
|
419
419
|
"AutocompleteOption": {
|
|
420
420
|
"location": "local",
|
|
421
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
421
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-autocomplete/co-autocomplete.tsx",
|
|
422
422
|
"id": "src/components/co-autocomplete/co-autocomplete.tsx::AutocompleteOption"
|
|
423
423
|
}
|
|
424
424
|
}
|
|
@@ -17,8 +17,11 @@
|
|
|
17
17
|
font-family: var(--co-font-family-primary);
|
|
18
18
|
/* Figma «Avatars» (Geist Medium, 500; p. ej. 4515:158897 / 1135:103818): las
|
|
19
19
|
iniciales van en Medium, no SemiBold — a 10-12px el 600 empasta la panza de
|
|
20
|
-
la R y se lee «sucio» (2026-09-17).
|
|
21
|
-
|
|
20
|
+
la R y se lee «sucio» (2026-09-17).
|
|
21
|
+
Task C12: el var() es solo un hook para que un consumidor lo pise (mismo
|
|
22
|
+
patrón que --co-avatar-border-color/--co-avatar-size en este archivo); su
|
|
23
|
+
fallback ES el default publicado (500). */
|
|
24
|
+
font-weight: var(--co-avatar-font-weight, 500);
|
|
22
25
|
line-height: 1;
|
|
23
26
|
letter-spacing: var(--co-font-letter-spacing-body);
|
|
24
27
|
overflow: hidden;
|
|
@@ -118,3 +121,9 @@ co-tooltip {
|
|
|
118
121
|
align-items: center;
|
|
119
122
|
line-height: 0;
|
|
120
123
|
}
|
|
124
|
+
|
|
125
|
+
/* Rounded = radio chico FIJO (Task C12), no la superelipse de --square: sin
|
|
126
|
+
máscara squircle, border-radius simple sobre la caja rectangular real. */
|
|
127
|
+
.co-avatar--rounded {
|
|
128
|
+
border-radius: var(--co-border-radius-xs);
|
|
129
|
+
}
|
|
@@ -24,7 +24,9 @@ export class CoAvatar {
|
|
|
24
24
|
this.icon = 'user';
|
|
25
25
|
/** Icon weight */
|
|
26
26
|
this.iconWeight = 'regular';
|
|
27
|
-
/** Shape of the avatar
|
|
27
|
+
/** Shape of the avatar. `rounded` (Task C12) = radio chico
|
|
28
|
+
* (`--co-border-radius-xs`), sin máscara squircle — esquinas de radio fijo,
|
|
29
|
+
* no la superelipse de `square`. */
|
|
28
30
|
this.shape = 'circle';
|
|
29
31
|
this.imgFailed = false;
|
|
30
32
|
this.handleImgError = () => {
|
|
@@ -51,6 +53,7 @@ export class CoAvatar {
|
|
|
51
53
|
[`co-avatar--${this.size}`]: true,
|
|
52
54
|
[`co-avatar--${this.type}`]: true,
|
|
53
55
|
'co-avatar--square': this.shape === 'square',
|
|
56
|
+
'co-avatar--rounded': this.shape === 'rounded',
|
|
54
57
|
'co-avatar--light': !!this.color && isLightColor(this.color),
|
|
55
58
|
}, style: Object.assign(Object.assign({ width: `var(--co-avatar-size, ${dim}px)`, height: `var(--co-avatar-size, ${dim}px)`, fontSize }, (this.color ? { background: this.color } : {})), (this.ringColor
|
|
56
59
|
? { '--co-avatar-border-color': this.ringColor, '--co-avatar-border-width': '2px' }
|
|
@@ -215,15 +218,15 @@ export class CoAvatar {
|
|
|
215
218
|
"type": "string",
|
|
216
219
|
"mutable": false,
|
|
217
220
|
"complexType": {
|
|
218
|
-
"original": "'circle' | 'square'",
|
|
219
|
-
"resolved": "\"circle\" | \"square\"",
|
|
221
|
+
"original": "'circle' | 'square' | 'rounded'",
|
|
222
|
+
"resolved": "\"circle\" | \"rounded\" | \"square\"",
|
|
220
223
|
"references": {}
|
|
221
224
|
},
|
|
222
225
|
"required": false,
|
|
223
226
|
"optional": false,
|
|
224
227
|
"docs": {
|
|
225
228
|
"tags": [],
|
|
226
|
-
"text": "Shape of the avatar"
|
|
229
|
+
"text": "Shape of the avatar. `rounded` (Task C12) = radio chico\n(`--co-border-radius-xs`), sin m\u00E1scara squircle \u2014 esquinas de radio fijo,\nno la superelipse de `square`."
|
|
227
230
|
},
|
|
228
231
|
"getter": false,
|
|
229
232
|
"setter": false,
|
|
@@ -87,7 +87,7 @@ export class CoAvatarGroup {
|
|
|
87
87
|
"references": {
|
|
88
88
|
"CoAvatarGroupItem": {
|
|
89
89
|
"location": "local",
|
|
90
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
90
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
|
|
91
91
|
"id": "src/components/co-avatar-group/co-avatar-group.tsx::CoAvatarGroupItem"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -17,7 +17,7 @@ export class CoBadge {
|
|
|
17
17
|
this.animated = false;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("span", { key: '
|
|
20
|
+
return (h("span", { key: 'be0a55884e7afcf9761712b0318ad46f54a82786', class: {
|
|
21
21
|
'co-badge': true,
|
|
22
22
|
[`co-badge--${this.size}`]: true,
|
|
23
23
|
[`co-badge--${this.color}`]: true,
|
|
@@ -250,17 +250,17 @@ export class CoBottomSheet {
|
|
|
250
250
|
(_a = this.bodyEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('touchmove', this.touchBlocker);
|
|
251
251
|
}
|
|
252
252
|
render() {
|
|
253
|
-
return (h("div", { key: '
|
|
253
|
+
return (h("div", { key: '9afac86d3b0bdab25d92b283b079304b2801fdcf', class: { 'co-bottom-sheet-root': true, 'co-bottom-sheet-root--open': this.open } }, h("div", { key: 'bc0152d32c577d2aafadcdcaae065aacb7442350', class: "co-bottom-sheet__backdrop", part: "backdrop", onClick: this.handleBackdropClick, ref: (el) => (this.backdropEl = el) }), h("section", { key: '457847247df72eb810149148e0a02a13152b86c1', class: { 'co-bottom-sheet': true, 'co-bottom-sheet--open': this.open }, part: "sheet", role: "dialog", "aria-modal": "true", "aria-labelledby": this.hasHeaderSlot
|
|
254
254
|
? 'co-bottom-sheet-header'
|
|
255
255
|
: this.heading
|
|
256
256
|
? 'co-bottom-sheet-heading'
|
|
257
|
-
: undefined, style: { '--co-bottom-sheet-max-height': this.maxHeight }, onTransitionEnd: this.handleTransitionEnd, ref: (el) => (this.sheetEl = el) }, h("div", { key: '
|
|
257
|
+
: undefined, style: { '--co-bottom-sheet-max-height': this.maxHeight }, onTransitionEnd: this.handleTransitionEnd, ref: (el) => (this.sheetEl = el) }, h("div", { key: 'b4acb6f614163fafe7c29c40664a646788cdb05b', class: "co-bottom-sheet__grip", onPointerDown: this.handleGripPointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel }, this.showHandle && (h("div", { key: 'f72127311b1e3bf8939eac0bc227b98f8418e6f7', class: "co-bottom-sheet__handle", part: "handle", "aria-hidden": "true" })), h("header", { key: 'ba1be5188eb0e6eb3a0add620be5da8a99e65978', class: {
|
|
258
258
|
'co-bottom-sheet__header': true,
|
|
259
259
|
'co-bottom-sheet__header--show': this.hasHeaderSlot || !!this.heading,
|
|
260
|
-
}, part: "header", id: "co-bottom-sheet-header" }, h("slot", { key: '
|
|
260
|
+
}, part: "header", id: "co-bottom-sheet-header" }, h("slot", { key: '53ab489d36588e8c7e604d16ae63b871a62cc833', name: "header", onSlotchange: this.handleHeaderSlotChange }, this.heading && (h("h2", { key: '4519555ec9333f9c0af56e86cc67f7bad914e1b5', class: "co-bottom-sheet__heading", id: "co-bottom-sheet-heading" }, this.heading))))), h("div", { key: '141df16f223b8a82fc1f412466669f999cbdba8a', class: "co-bottom-sheet__body", part: "body", onPointerDown: this.handleBodyPointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, ref: (el) => (this.bodyEl = el) }, h("slot", { key: '5299c10f8854ee5f32794608502777e08dc9cec7' })), h("footer", { key: 'b3ec3a0aa7779829783aea2d64fde9b2199ed73c', class: {
|
|
261
261
|
'co-bottom-sheet__footer': true,
|
|
262
262
|
'co-bottom-sheet__footer--show': this.hasFooter,
|
|
263
|
-
}, part: "footer" }, h("slot", { key: '
|
|
263
|
+
}, part: "footer" }, h("slot", { key: 'd97f14b88decd35ccfbb4cc7e4f63446ef30a4b5', name: "footer", onSlotchange: this.handleFooterSlotChange })))));
|
|
264
264
|
}
|
|
265
265
|
static get is() { return "co-bottom-sheet"; }
|
|
266
266
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class CoBreadcrumb {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
const data = this.parseItems();
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'c57f833d27edfc2848a8f72de1805968e9536b72', part: "breadcrumb", role: "navigation", "aria-label": "Breadcrumb" }, data
|
|
46
46
|
? data.map((it, i) => (h("co-breadcrumb-item", { key: i, label: it.label, value: it.value, icon: it.icon, separator: this.separator, current: i === data.length - 1 })))
|
|
47
47
|
: h("slot", { onSlotchange: this.handleSlotChange })));
|
|
48
48
|
}
|
|
@@ -29,10 +29,10 @@ export class CoBreadcrumbItem {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '6cb113e8326d6fa5fe9ee23dcd8083ab4664d343', part: "breadcrumb-item", class: {
|
|
33
33
|
'co-breadcrumb-item': true,
|
|
34
34
|
'co-breadcrumb-item--current': this.current,
|
|
35
|
-
} }, h("span", { key: '
|
|
35
|
+
} }, h("span", { key: '9031f0d3558c5ce7dcf298d6e2b04059dd463a34', class: "co-breadcrumb-item__sep", "aria-hidden": "true" }, h("co-icon", { key: '143800da5211dd7bdb1e3b06de8c90fbb8f94acf', name: this.separator, size: 13 })), h("span", { key: '23b11ae5ed8315fcf84ed83609b7d98c0142f50b', class: "co-breadcrumb-item__content", part: "content", role: "link", tabindex: "0", "aria-current": this.current ? 'page' : undefined, onClick: this.handleClick, onKeyDown: this.handleKeydown }, this.icon && (h("span", { key: 'e70f21819a4e9bc117282b062399960810256c1e', class: "co-breadcrumb-item__icon" }, h("co-icon", { key: 'ed942c739f1c67cd0b27facc2eabd1d016391719', name: this.icon, size: 16 }))), h("span", { key: '0b2c28119d1123196d313015e3020a82618b932f', class: "co-breadcrumb-item__label" }, this.label, h("slot", { key: 'c83fcd1764b279aed0b9c4a1c791b47d011d711f' })))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "co-breadcrumb-item"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
blurear y el 78% de negro colapsa a un gris lavado. */
|
|
40
40
|
background: var(--co-semantic-surface-primary);
|
|
41
41
|
color: var(--co-semantic-on-primary);
|
|
42
|
-
border-color
|
|
42
|
+
/* --co-button-border-color (Task C2): override transversal; el fallback es
|
|
43
|
+
el valor propio de la variante, así el default no cambia sin la var. */
|
|
44
|
+
border-color: var(--co-button-border-color, color-mix(in srgb, var(--co-semantic-on-primary) 28%, transparent));
|
|
43
45
|
}
|
|
44
46
|
/* Knobs (heredan a través del shadow, mismo mecanismo y nombres que
|
|
45
47
|
--co-icon-button-bg/-color/-border): un consumidor con spec propia cambia la
|
|
@@ -47,17 +49,20 @@
|
|
|
47
49
|
.co-button--secondary {
|
|
48
50
|
background: color-mix(in srgb, var(--co-button-bg, var(--co-semantic-surface-secondary)) 55%, transparent);
|
|
49
51
|
color: var(--co-button-color, var(--co-semantic-on-secondary));
|
|
50
|
-
|
|
52
|
+
/* --co-button-border-color (override transversal, todas las variantes) le
|
|
53
|
+
gana al knob propio de la variante (--co-button-border, 0.10.1); sin
|
|
54
|
+
ninguno de los dos, el borde del DS. */
|
|
55
|
+
border-color: var(--co-button-border-color, var(--co-button-border, var(--co-semantic-border-subtle)));
|
|
51
56
|
}
|
|
52
57
|
.co-button--stroke {
|
|
53
58
|
background: color-mix(in srgb, var(--co-semantic-surface-secondary) 25%, transparent);
|
|
54
59
|
color: var(--co-semantic-text-default);
|
|
55
|
-
border-color: var(--co-semantic-border-default);
|
|
60
|
+
border-color: var(--co-button-border-color, var(--co-semantic-border-default));
|
|
56
61
|
}
|
|
57
62
|
.co-button--ghost {
|
|
58
63
|
background: transparent;
|
|
59
64
|
color: var(--co-semantic-text-default);
|
|
60
|
-
border-color: transparent;
|
|
65
|
+
border-color: var(--co-button-border-color, transparent);
|
|
61
66
|
/* Ghost: no chrome, no frost until hover */
|
|
62
67
|
-webkit-backdrop-filter: none;
|
|
63
68
|
backdrop-filter: none;
|
|
@@ -65,12 +70,12 @@
|
|
|
65
70
|
.co-button--danger {
|
|
66
71
|
background: var(--co-semantic-status-error);
|
|
67
72
|
color: var(--co-color-base-blanco);
|
|
68
|
-
border-color: transparent;
|
|
73
|
+
border-color: var(--co-button-border-color, transparent);
|
|
69
74
|
}
|
|
70
75
|
.co-button--success {
|
|
71
76
|
background: var(--co-semantic-status-success);
|
|
72
77
|
color: var(--co-color-base-blanco);
|
|
73
|
-
border-color: transparent;
|
|
78
|
+
border-color: var(--co-button-border-color, transparent);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
/* ─── SIZES · ROUNDED (radius-full) ──────────────────────────
|
|
@@ -227,3 +232,65 @@
|
|
|
227
232
|
.co-button--secondary { background: var(--co-semantic-surface-secondary); }
|
|
228
233
|
.co-button--stroke { background: transparent; }
|
|
229
234
|
}
|
|
235
|
+
|
|
236
|
+
/* ═══ Task C2 (Fase 2 Cobalt) — size="sm", variant="soft", full-width,
|
|
237
|
+
--co-button-border-color / --co-button-icon-color. Todo lo de abajo es
|
|
238
|
+
aditivo: no reemplaza ni recalcula ninguna regla de arriba. ═══ */
|
|
239
|
+
|
|
240
|
+
/* ─── VARIANT · SOFT ──────────────────────────────────────────
|
|
241
|
+
Fondo sólido `--co-semantic-surface-control` (gray-100 en claro / gray-700
|
|
242
|
+
en oscuro — para eso existe el token; sin backdrop-filter), borde
|
|
243
|
+
transparente del mismo grosor que el default para no alterar el tamaño. */
|
|
244
|
+
.co-button--soft {
|
|
245
|
+
background: var(--co-semantic-surface-control);
|
|
246
|
+
color: var(--co-semantic-text-default);
|
|
247
|
+
border-color: var(--co-button-border-color, transparent);
|
|
248
|
+
-webkit-backdrop-filter: none;
|
|
249
|
+
backdrop-filter: none;
|
|
250
|
+
}
|
|
251
|
+
.co-button--soft:hover:not(:disabled) {
|
|
252
|
+
background: color-mix(in srgb, var(--co-semantic-surface-control), var(--co-semantic-surface-hover));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* ─── SIZE · SM (32px fijo) ────────────────────────────────────
|
|
256
|
+
Escala unificada de tallas nuevas del editor: xs=24 · s=28 · sm=32.
|
|
257
|
+
El radio en "rounded" conserva la fórmula de la talla "s" (radius-full
|
|
258
|
+
overrideable); en "square" usa border-radius-xs, igual que "square--s". */
|
|
259
|
+
.co-button--rounded.co-button--sm {
|
|
260
|
+
height: 32px;
|
|
261
|
+
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
262
|
+
gap: var(--co-spacing-sm);
|
|
263
|
+
font-size: var(--co-font-size-12);
|
|
264
|
+
font-weight: 500;
|
|
265
|
+
line-height: 1;
|
|
266
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
267
|
+
border-radius: var(--co-button-radius, var(--co-border-radius-full));
|
|
268
|
+
}
|
|
269
|
+
.co-button--square.co-button--sm {
|
|
270
|
+
height: 32px;
|
|
271
|
+
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
272
|
+
gap: var(--co-spacing-sm);
|
|
273
|
+
font-size: var(--co-font-size-12);
|
|
274
|
+
font-weight: 500;
|
|
275
|
+
line-height: 1;
|
|
276
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
277
|
+
border-radius: var(--co-border-radius-xs);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* ─── FULL WIDTH ──────────────────────────────────────────────
|
|
281
|
+
`full-width` (atributo reflejado de fullWidth): el host pasa de
|
|
282
|
+
inline-flex a block para poder ocupar el 100% del contenedor. */
|
|
283
|
+
:host([full-width]) {
|
|
284
|
+
display: block;
|
|
285
|
+
width: 100%;
|
|
286
|
+
}
|
|
287
|
+
:host([full-width]) .co-button {
|
|
288
|
+
width: 100%;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* ─── VARIABLE PÚBLICA · ICON COLOR ───────────────────────────
|
|
292
|
+
Los co-icon de iconLeft/iconRight se renderizan directo (no via slot),
|
|
293
|
+
así que este selector alcanza a los dos en cualquier variante/talla. */
|
|
294
|
+
co-icon {
|
|
295
|
+
color: var(--co-button-icon-color, inherit);
|
|
296
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
const ICON_SIZE = { l: 20, m: 18, s: 16, xs: 14 };
|
|
2
|
+
const ICON_SIZE = { l: 20, m: 18, s: 16, xs: 14, sm: 16 };
|
|
3
3
|
/**
|
|
4
4
|
* @slot - Button label text
|
|
5
5
|
*/
|
|
6
6
|
export class CoButton {
|
|
7
7
|
constructor() {
|
|
8
|
-
/** Visual style */
|
|
8
|
+
/** Visual style. "soft" (Task C2, Fase 2 Cobalt): fondo gray-100 sólido, sin backdrop-filter — pensado para toolbars/paneles del editor. */
|
|
9
9
|
this.variant = 'primary';
|
|
10
10
|
/** Shape: pill or straight corners */
|
|
11
11
|
this.shape = 'rounded';
|
|
12
|
-
/** Size */
|
|
12
|
+
/** Size. "sm" (Task C2, Fase 2 Cobalt): 32px fijo — escala unificada de tallas nuevas del editor (xs=24/s=28/sm=32). */
|
|
13
13
|
this.size = 'm';
|
|
14
|
+
/** Ocupa el 100% del ancho del contenedor (Task C2, Fase 2 Cobalt). Reflejado como atributo `full-width`. */
|
|
15
|
+
this.fullWidth = false;
|
|
14
16
|
/** Raised elevation — with variant="secondary" renders a white raised button (shadow-sm + inset hairline). */
|
|
15
17
|
this.elevated = false;
|
|
16
18
|
/**
|
|
@@ -55,7 +57,7 @@ export class CoButton {
|
|
|
55
57
|
customStyle.background = this.color;
|
|
56
58
|
if (this.textColor)
|
|
57
59
|
customStyle.color = this.textColor;
|
|
58
|
-
return (h("button", { key: '
|
|
60
|
+
return (h("button", { key: 'a095e308b3bea917ecfb4da4f78e9a6c9e3dfba2', class: {
|
|
59
61
|
'co-button': true,
|
|
60
62
|
[`co-button--${this.variant}`]: true,
|
|
61
63
|
[`co-button--${this.shape}`]: true,
|
|
@@ -65,7 +67,7 @@ export class CoButton {
|
|
|
65
67
|
'co-button--disabled': this.disabled,
|
|
66
68
|
}, style: Object.keys(customStyle).length ? customStyle : undefined, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabelText || undefined, onClick: this.handleClick, part: "button" }, this.iconLeft
|
|
67
69
|
? h("co-icon", { name: this.iconLeft, weight: this.iconWeight, size: iconSize })
|
|
68
|
-
: null, h("slot", { key: '
|
|
70
|
+
: null, h("slot", { key: '7a7dfff6e1dc249b423477263e9140183290bf18' }, this.label), this.iconRight
|
|
69
71
|
? h("co-icon", { name: this.iconRight, weight: this.iconWeight, size: iconSize })
|
|
70
72
|
: null));
|
|
71
73
|
}
|
|
@@ -87,15 +89,15 @@ export class CoButton {
|
|
|
87
89
|
"type": "string",
|
|
88
90
|
"mutable": false,
|
|
89
91
|
"complexType": {
|
|
90
|
-
"original": "'primary' | 'secondary' | 'stroke' | 'ghost' | 'danger' | 'success'",
|
|
91
|
-
"resolved": "\"danger\" | \"ghost\" | \"primary\" | \"secondary\" | \"stroke\" | \"success\"",
|
|
92
|
+
"original": "'primary' | 'secondary' | 'stroke' | 'ghost' | 'danger' | 'success' | 'soft'",
|
|
93
|
+
"resolved": "\"danger\" | \"ghost\" | \"primary\" | \"secondary\" | \"soft\" | \"stroke\" | \"success\"",
|
|
92
94
|
"references": {}
|
|
93
95
|
},
|
|
94
96
|
"required": false,
|
|
95
97
|
"optional": false,
|
|
96
98
|
"docs": {
|
|
97
99
|
"tags": [],
|
|
98
|
-
"text": "Visual style"
|
|
100
|
+
"text": "Visual style. \"soft\" (Task C2, Fase 2 Cobalt): fondo gray-100 s\u00F3lido, sin backdrop-filter \u2014 pensado para toolbars/paneles del editor."
|
|
99
101
|
},
|
|
100
102
|
"getter": false,
|
|
101
103
|
"setter": false,
|
|
@@ -127,15 +129,15 @@ export class CoButton {
|
|
|
127
129
|
"type": "string",
|
|
128
130
|
"mutable": false,
|
|
129
131
|
"complexType": {
|
|
130
|
-
"original": "'l' | 'm' | 's' | 'xs'",
|
|
131
|
-
"resolved": "\"l\" | \"m\" | \"s\" | \"xs\"",
|
|
132
|
+
"original": "'l' | 'm' | 's' | 'xs' | 'sm'",
|
|
133
|
+
"resolved": "\"l\" | \"m\" | \"s\" | \"sm\" | \"xs\"",
|
|
132
134
|
"references": {}
|
|
133
135
|
},
|
|
134
136
|
"required": false,
|
|
135
137
|
"optional": false,
|
|
136
138
|
"docs": {
|
|
137
139
|
"tags": [],
|
|
138
|
-
"text": "Size"
|
|
140
|
+
"text": "Size. \"sm\" (Task C2, Fase 2 Cobalt): 32px fijo \u2014 escala unificada de tallas nuevas del editor (xs=24/s=28/sm=32)."
|
|
139
141
|
},
|
|
140
142
|
"getter": false,
|
|
141
143
|
"setter": false,
|
|
@@ -143,6 +145,26 @@ export class CoButton {
|
|
|
143
145
|
"attribute": "size",
|
|
144
146
|
"defaultValue": "'m'"
|
|
145
147
|
},
|
|
148
|
+
"fullWidth": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "boolean",
|
|
153
|
+
"resolved": "boolean",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Ocupa el 100% del ancho del contenedor (Task C2, Fase 2 Cobalt). Reflejado como atributo `full-width`."
|
|
161
|
+
},
|
|
162
|
+
"getter": false,
|
|
163
|
+
"setter": false,
|
|
164
|
+
"reflect": true,
|
|
165
|
+
"attribute": "full-width",
|
|
166
|
+
"defaultValue": "false"
|
|
167
|
+
},
|
|
146
168
|
"elevated": {
|
|
147
169
|
"type": "boolean",
|
|
148
170
|
"mutable": false,
|
|
@@ -10,12 +10,12 @@ export class CoButtonGroup {
|
|
|
10
10
|
this.disabled = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: '5975d27cfd432bfd859212059c4bc79d2d8107d2', class: {
|
|
14
14
|
'co-button-group': true,
|
|
15
15
|
[`co-button-group--${this.direction}`]: true,
|
|
16
16
|
[`co-button-group--${this.variant}`]: true,
|
|
17
17
|
'co-button-group--disabled': this.disabled,
|
|
18
|
-
}, role: "group" }, h("slot", { key: '
|
|
18
|
+
}, role: "group" }, h("slot", { key: '90c9338e9d00c71ae09189ebd0e70d8fa11e3825' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "co-button-group"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fechas MARCADAS de co-calendar (feriados, hitos): se ven distintas pero siguen siendo
|
|
3
|
+
* seleccionables, a diferencia de `disabledDates`. Lógica pura para testear sin montar.
|
|
4
|
+
*/
|
|
5
|
+
const YMD = /^\d{4}-\d{2}-\d{2}$/;
|
|
6
|
+
/** Array, JSON (`'["2026-12-25"]'`) o CSV (`'2026-12-25, 2027-01-01'`) → string[]. */
|
|
7
|
+
export function normalizeStringArray(v) {
|
|
8
|
+
if (Array.isArray(v))
|
|
9
|
+
return v;
|
|
10
|
+
if (typeof v === 'string' && v.trim()) {
|
|
11
|
+
const t = v.trim();
|
|
12
|
+
try {
|
|
13
|
+
const parsed = JSON.parse(t);
|
|
14
|
+
if (Array.isArray(parsed))
|
|
15
|
+
return parsed.map(String);
|
|
16
|
+
}
|
|
17
|
+
catch (_a) {
|
|
18
|
+
/* not JSON — fall back to comma-split */
|
|
19
|
+
}
|
|
20
|
+
return t.split(',').map((s) => s.trim()).filter(Boolean);
|
|
21
|
+
}
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
/** Set de `YYYY-MM-DD` válidos para consultar por día en O(1). */
|
|
25
|
+
export function normalizeMarkedDates(v) {
|
|
26
|
+
return new Set(normalizeStringArray(v).map((s) => s.trim()).filter((s) => YMD.test(s)));
|
|
27
|
+
}
|
|
28
|
+
/** El texto de marca lo da el anfitrión (i18n suya): «25 de diciembre de 2026, Feriado». */
|
|
29
|
+
export function dayAriaLabel(base, marked, markedLabel) {
|
|
30
|
+
return marked && markedLabel ? `${base}, ${markedLabel}` : base;
|
|
31
|
+
}
|
|
32
|
+
/** `YYYY-MM` → { year, month } (mes 1–12) para anclar la vista; null si no es válido. */
|
|
33
|
+
export function parseViewMonth(v) {
|
|
34
|
+
const m = /^(\d{4})-(\d{2})$/.exec(String(v !== null && v !== void 0 ? v : '').trim());
|
|
35
|
+
if (!m)
|
|
36
|
+
return null;
|
|
37
|
+
const year = Number(m[1]);
|
|
38
|
+
const month = Number(m[2]);
|
|
39
|
+
return month >= 1 && month <= 12 ? { year, month } : null;
|
|
40
|
+
}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out), border-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
.co-calendar__day:hover:not(.co-calendar__day--disabled):not(.co-calendar__day--selected) {
|
|
180
|
+
.co-calendar__day:hover:not(.co-calendar__day--disabled):not(.co-calendar__day--selected):not(.co-calendar__day--marked) {
|
|
181
181
|
background: var(--co-semantic-surface-hover);
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -200,6 +200,16 @@
|
|
|
200
200
|
font-weight: 600;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
/* MARKED — fechas señaladas (feriados, hitos) que siguen siendo seleccionables.
|
|
204
|
+
* Va ANTES de selected/range: un día marcado Y elegido se lee como elegido.
|
|
205
|
+
* El color lo puede fijar el anfitrión con --co-calendar-marked-bg / -fg. */
|
|
206
|
+
.co-calendar__day--marked {
|
|
207
|
+
background: var(--co-calendar-marked-bg, var(--co-color-primary-rosado));
|
|
208
|
+
border-color: var(--co-calendar-marked-bg, var(--co-color-primary-rosado));
|
|
209
|
+
color: var(--co-calendar-marked-fg, var(--co-color-base-blanco));
|
|
210
|
+
font-weight: 600;
|
|
211
|
+
}
|
|
212
|
+
|
|
203
213
|
/* SELECTED — solid fill + inverse text. */
|
|
204
214
|
.co-calendar__day--selected {
|
|
205
215
|
background: var(--co-semantic-surface-primary);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { addDays, addMonths, compareYMD, getFullDateLabel, getMonthLabel, getMonthMatrix, getWeekdayLabels, isDisabled, isValidYMD, parseISO, startOfMonth, todayYMD, } from "@prolibu-suite/cobalt-date-utils";
|
|
3
3
|
import { getDateStrings } from "../../utils/dateI18n";
|
|
4
|
+
import { dayAriaLabel, normalizeMarkedDates, normalizeStringArray, parseViewMonth } from "./calendarMarks";
|
|
4
5
|
/**
|
|
5
6
|
* Accessible month calendar (single-date selection).
|
|
6
7
|
*
|
|
@@ -90,8 +91,19 @@ export class CoCalendar {
|
|
|
90
91
|
const a = parseISO(anchor);
|
|
91
92
|
this.viewYear = a.year;
|
|
92
93
|
this.viewMonth = a.month;
|
|
94
|
+
this.applyMonthProp();
|
|
93
95
|
this.focused = this.initialFocus();
|
|
94
96
|
}
|
|
97
|
+
onMonthChange() {
|
|
98
|
+
this.applyMonthProp();
|
|
99
|
+
}
|
|
100
|
+
applyMonthProp() {
|
|
101
|
+
const m = parseViewMonth(this.month);
|
|
102
|
+
if (!m)
|
|
103
|
+
return;
|
|
104
|
+
this.viewYear = m.year;
|
|
105
|
+
this.viewMonth = m.month;
|
|
106
|
+
}
|
|
95
107
|
onValueChange() {
|
|
96
108
|
if (!this.selectedValue)
|
|
97
109
|
return;
|
|
@@ -271,7 +283,10 @@ export class CoCalendar {
|
|
|
271
283
|
inRange: compareYMD(value, lo) > 0 && compareYMD(value, hi) < 0,
|
|
272
284
|
};
|
|
273
285
|
}
|
|
274
|
-
|
|
286
|
+
get markedSet() {
|
|
287
|
+
return normalizeMarkedDates(this.markedDates);
|
|
288
|
+
}
|
|
289
|
+
dayClass(value, inMonth, disabled, marked = false) {
|
|
275
290
|
const isToday = compareYMD(value, todayYMD()) === 0;
|
|
276
291
|
if (this.mode === 'range') {
|
|
277
292
|
const { isStart, isEnd, inRange } = this.rangeFlags(value);
|
|
@@ -284,6 +299,7 @@ export class CoCalendar {
|
|
|
284
299
|
'co-calendar__day--range-end': isEnd,
|
|
285
300
|
'co-calendar__day--in-range': inRange,
|
|
286
301
|
'co-calendar__day--disabled': disabled,
|
|
302
|
+
'co-calendar__day--marked': marked,
|
|
287
303
|
};
|
|
288
304
|
}
|
|
289
305
|
const selected = this.selectedValue;
|
|
@@ -294,6 +310,7 @@ export class CoCalendar {
|
|
|
294
310
|
'co-calendar__day--today': isToday && !isSelected,
|
|
295
311
|
'co-calendar__day--selected': isSelected,
|
|
296
312
|
'co-calendar__day--disabled': disabled,
|
|
313
|
+
'co-calendar__day--marked': marked,
|
|
297
314
|
};
|
|
298
315
|
}
|
|
299
316
|
headerTitle() {
|
|
@@ -312,8 +329,10 @@ export class CoCalendar {
|
|
|
312
329
|
// leía como una franja en blanco al pie del panel (reporte 2026-09-16). El
|
|
313
330
|
// teclado no la necesita: moveFocus ya cambia de mes al salir de él.
|
|
314
331
|
const matrix = getMonthMatrix(this.viewYear, this.viewMonth, this.firstDayOfWeek).filter((week) => week.some((cell) => cell.inMonth));
|
|
332
|
+
const markedSet = this.markedSet;
|
|
315
333
|
return (h("div", { class: "co-calendar__grid", part: "grid", role: "grid", "aria-label": monthLabel, onKeyDown: this.handleGridKeyDown }, h("div", { class: "co-calendar__row co-calendar__row--dow", role: "row" }, shortLabels.map((lbl, i) => (h("span", { class: "co-calendar__dow", role: "columnheader", "aria-label": longLabels[i] }, lbl)))), matrix.map((week) => (h("div", { class: "co-calendar__row", role: "row" }, week.map((cell) => {
|
|
316
334
|
const disabled = this.isDayDisabled(cell.value);
|
|
335
|
+
const marked = markedSet.has(cell.value);
|
|
317
336
|
const isFocused = compareYMD(cell.value, this.focused) === 0;
|
|
318
337
|
const isToday = compareYMD(cell.value, todayYMD()) === 0;
|
|
319
338
|
let isSelectedAria;
|
|
@@ -326,7 +345,7 @@ export class CoCalendar {
|
|
|
326
345
|
isSelectedAria = !!selected && compareYMD(cell.value, selected) === 0;
|
|
327
346
|
}
|
|
328
347
|
const dayNum = parseISO(cell.value).day;
|
|
329
|
-
return (h("button", { type: "button", role: "gridcell", "data-date": cell.value, class: this.dayClass(cell.value, cell.inMonth, disabled), tabIndex: isFocused ? 0 : -1, "aria-selected": isSelectedAria ? 'true' : 'false', "aria-current": isToday ? 'date' : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-label": getFullDateLabel(cell.value, this.locale), onClick: () => this.selectDay(cell.value), onMouseEnter: () => this.handleDayHover(cell.value), onMouseLeave: () => this.handleDayHover(null) }, dayNum));
|
|
348
|
+
return (h("button", { type: "button", role: "gridcell", "data-date": cell.value, class: this.dayClass(cell.value, cell.inMonth, disabled, marked), tabIndex: isFocused ? 0 : -1, "aria-selected": isSelectedAria ? 'true' : 'false', "aria-current": isToday ? 'date' : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-label": dayAriaLabel(getFullDateLabel(cell.value, this.locale), marked, this.markedLabel), onClick: () => this.selectDay(cell.value), onMouseEnter: () => this.handleDayHover(cell.value), onMouseLeave: () => this.handleDayHover(null) }, dayNum));
|
|
330
349
|
}))))));
|
|
331
350
|
}
|
|
332
351
|
renderMonths() {
|
|
@@ -367,7 +386,7 @@ export class CoCalendar {
|
|
|
367
386
|
render() {
|
|
368
387
|
var _a, _b;
|
|
369
388
|
const t = getDateStrings(this.locale);
|
|
370
|
-
return (h("div", { key: '
|
|
389
|
+
return (h("div", { key: 'd093188dc77cea7856a4126828167ccd0e97a28a', class: "co-calendar", part: "root" }, h("div", { key: '9b133e1e7c2538df80ae86d463ac80bd2262364c', class: "co-calendar__header", part: "header" }, h("button", { key: 'c7b5f9407556ab1c68815c2896ee3ea6d87866ee', type: "button", class: "co-calendar__nav", onClick: this.handlePrev, "aria-label": (_a = this.prevMonthLabel) !== null && _a !== void 0 ? _a : t.prevMonth }, h("co-icon", { key: 'e76e3550772f7456d44fca6229a92146f4849ffc', name: "caret-left", size: 16 })), h("button", { key: '7e8d2620e5d73f8ab17a0e6f163e4fc7859db0b9', type: "button", class: "co-calendar__title", "aria-live": "polite", onClick: this.toggleView }, this.headerTitle(), h("co-icon", { key: '0f113778ee2f22843627a0fb6f0550e7fd861774', name: "caret-down", size: 12, class: "co-calendar__title-caret" })), h("button", { key: 'e49b124dadf06b2a5bf7f25aab160a80f4d1a539', type: "button", class: "co-calendar__nav", onClick: this.handleNext, "aria-label": (_b = this.nextMonthLabel) !== null && _b !== void 0 ? _b : t.nextMonth }, h("co-icon", { key: 'e1993eddaa8a0c33179e453dadd4996f2d5fd4fc', name: "caret-right", size: 16 }))), this.view === 'days' && this.renderDays(t), this.view === 'months' && this.renderMonths(), this.view === 'years' && this.renderYears()));
|
|
371
390
|
}
|
|
372
391
|
static get is() { return "co-calendar"; }
|
|
373
392
|
static get encapsulation() { return "shadow"; }
|
|
@@ -517,6 +536,63 @@ export class CoCalendar {
|
|
|
517
536
|
"reflect": false,
|
|
518
537
|
"attribute": "disabled-dates"
|
|
519
538
|
},
|
|
539
|
+
"markedDates": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"mutable": false,
|
|
542
|
+
"complexType": {
|
|
543
|
+
"original": "string[] | string",
|
|
544
|
+
"resolved": "string | string[] | undefined",
|
|
545
|
+
"references": {}
|
|
546
|
+
},
|
|
547
|
+
"required": false,
|
|
548
|
+
"optional": true,
|
|
549
|
+
"docs": {
|
|
550
|
+
"tags": [],
|
|
551
|
+
"text": "Fechas `YYYY-MM-DD` que se MARCAN (feriados, hitos) sin deshabilitarlas: se pueden\nseleccionar igual. Array, JSON o CSV, como `disabledDates`. Color por la custom\nproperty `--co-calendar-marked-bg` (default: token de Cobalt)."
|
|
552
|
+
},
|
|
553
|
+
"getter": false,
|
|
554
|
+
"setter": false,
|
|
555
|
+
"reflect": false,
|
|
556
|
+
"attribute": "marked-dates"
|
|
557
|
+
},
|
|
558
|
+
"markedLabel": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"mutable": false,
|
|
561
|
+
"complexType": {
|
|
562
|
+
"original": "string",
|
|
563
|
+
"resolved": "string | undefined",
|
|
564
|
+
"references": {}
|
|
565
|
+
},
|
|
566
|
+
"required": false,
|
|
567
|
+
"optional": true,
|
|
568
|
+
"docs": {
|
|
569
|
+
"tags": [],
|
|
570
|
+
"text": "Texto accesible que se suma al d\u00EDa marcado (\u00ABFeriado\u00BB). Lo traduce el anfitri\u00F3n."
|
|
571
|
+
},
|
|
572
|
+
"getter": false,
|
|
573
|
+
"setter": false,
|
|
574
|
+
"reflect": false,
|
|
575
|
+
"attribute": "marked-label"
|
|
576
|
+
},
|
|
577
|
+
"month": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"mutable": false,
|
|
580
|
+
"complexType": {
|
|
581
|
+
"original": "string",
|
|
582
|
+
"resolved": "string | undefined",
|
|
583
|
+
"references": {}
|
|
584
|
+
},
|
|
585
|
+
"required": false,
|
|
586
|
+
"optional": true,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": "Mes que muestra la vista (`YYYY-MM`), por encima del ancla de la selecci\u00F3n. Para\nponer dos calendarios lado a lado (inicio y fin de un rango en meses distintos)."
|
|
590
|
+
},
|
|
591
|
+
"getter": false,
|
|
592
|
+
"setter": false,
|
|
593
|
+
"reflect": false,
|
|
594
|
+
"attribute": "month"
|
|
595
|
+
},
|
|
520
596
|
"disabledDaysOfWeek": {
|
|
521
597
|
"type": "string",
|
|
522
598
|
"mutable": false,
|
|
@@ -682,6 +758,9 @@ export class CoCalendar {
|
|
|
682
758
|
static get elementRef() { return "el"; }
|
|
683
759
|
static get watchers() {
|
|
684
760
|
return [{
|
|
761
|
+
"propName": "month",
|
|
762
|
+
"methodName": "onMonthChange"
|
|
763
|
+
}, {
|
|
685
764
|
"propName": "value",
|
|
686
765
|
"methodName": "onValueChange"
|
|
687
766
|
}];
|
|
@@ -696,23 +775,6 @@ function startOfWeek(value, firstDayOfWeek) {
|
|
|
696
775
|
const back = (dow - firstDayOfWeek + 7) % 7;
|
|
697
776
|
return addDays(value, -back);
|
|
698
777
|
}
|
|
699
|
-
function normalizeStringArray(v) {
|
|
700
|
-
if (Array.isArray(v))
|
|
701
|
-
return v;
|
|
702
|
-
if (typeof v === 'string' && v.trim()) {
|
|
703
|
-
const t = v.trim();
|
|
704
|
-
try {
|
|
705
|
-
const parsed = JSON.parse(t);
|
|
706
|
-
if (Array.isArray(parsed))
|
|
707
|
-
return parsed.map(String);
|
|
708
|
-
}
|
|
709
|
-
catch (_a) {
|
|
710
|
-
/* not JSON — fall back to comma-split */
|
|
711
|
-
}
|
|
712
|
-
return t.split(',').map((s) => s.trim()).filter(Boolean);
|
|
713
|
-
}
|
|
714
|
-
return [];
|
|
715
|
-
}
|
|
716
778
|
function normalizeNumberArray(v) {
|
|
717
779
|
if (Array.isArray(v))
|
|
718
780
|
return v;
|