@prolibu-suite/cobalt-core 0.1.2 → 0.3.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 +21351 -7087
- package/dist/cjs/co-accordion.cjs.entry.js +19 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +54 -6
- package/dist/cjs/co-avatar-group.cjs.entry.js +77 -0
- package/dist/cjs/co-avatar.cjs.entry.js +42 -7
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +325 -0
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +12 -7
- package/dist/cjs/co-calendar-month.cjs.entry.js +381 -0
- 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 +5 -5
- package/dist/cjs/co-chip.cjs.entry.js +11 -8
- package/dist/cjs/co-color-picker.cjs.entry.js +111 -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 +159 -13
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +38 -12
- 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-event-calendar.cjs.entry.js +318 -0
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +498 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +6 -6
- package/dist/cjs/co-icon.cjs.entry.js +36 -25
- package/dist/cjs/co-input.cjs.entry.js +13 -8
- package/dist/cjs/co-json-field.cjs.entry.js +113 -0
- package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
- package/dist/cjs/co-list-footer.cjs.entry.js +25 -0
- package/dist/cjs/co-list-item.cjs.entry.js +70 -4
- package/dist/cjs/co-loader_2.cjs.entry.js +293 -0
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +17 -10
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +25 -3
- package/dist/cjs/co-navbar.cjs.entry.js +4 -4
- package/dist/cjs/co-number-field.cjs.entry.js +60 -12
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +378 -0
- package/dist/cjs/co-popover.cjs.entry.js +46 -15
- package/dist/cjs/co-progress-bar.cjs.entry.js +8 -4
- 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 +214 -21
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +2081 -0
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +1108 -0
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +118 -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 +55 -10
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +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 +211 -0
- package/dist/cjs/co-textarea.cjs.entry.js +96 -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 +56 -15
- package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
- package/dist/cjs/co-video.cjs.entry.js +839 -0
- 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/fieldChip-CDIMz_Y6.js +7 -0
- package/dist/cjs/index-5NdsiFjZ.js +35405 -0
- package/dist/cjs/{index-BEovErzl.js → index-BumlM92r.js} +115 -23
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
- package/dist/cjs/overlayAfterClose-BdeXrhVY.js +12 -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/purify.es-DX41ZWS2.js +1776 -0
- package/dist/cjs/requiredMark-CqMGt1H1.js +16 -0
- package/dist/cjs/richTextI18n-B7ktXg3M.js +382 -0
- package/dist/cjs/toolbar-config-3PlT-3zm.js +216 -0
- package/dist/cjs/tz-Dgom0W69.js +127 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-0a506c9d.entry.js +1 -0
- package/dist/cobalt/p-0bb55163.entry.js +1 -0
- package/dist/cobalt/{p-fb047df8.entry.js → p-0e8c0d87.entry.js} +1 -1
- package/dist/cobalt/p-12e2c2c4.entry.js +1 -0
- package/dist/cobalt/p-136ad468.entry.js +1 -0
- package/dist/cobalt/p-14b59277.entry.js +1 -0
- package/dist/cobalt/p-1531d3c9.entry.js +1 -0
- package/dist/cobalt/p-1774d211.entry.js +1 -0
- package/dist/cobalt/{p-c7517f86.entry.js → p-180e1106.entry.js} +1 -1
- package/dist/cobalt/p-1a07c23c.entry.js +1 -0
- package/dist/cobalt/p-1dc9c49e.entry.js +1 -0
- package/dist/cobalt/p-1f747e45.entry.js +1 -0
- package/dist/cobalt/{p-d29c77cb.entry.js → p-201eaf35.entry.js} +1 -1
- package/dist/cobalt/p-260101ab.entry.js +1 -0
- package/dist/cobalt/p-279bf91c.entry.js +1 -0
- package/dist/cobalt/p-29be61a9.entry.js +1 -0
- package/dist/cobalt/p-2d2ce434.entry.js +1 -0
- package/dist/cobalt/{p-416bb5ae.entry.js → p-2f86e1e0.entry.js} +1 -1
- package/dist/cobalt/{p-4cf6d1f4.entry.js → p-31ab9a46.entry.js} +1 -1
- package/dist/cobalt/{p-319937c3.entry.js → p-37595103.entry.js} +1 -1
- package/dist/cobalt/p-377c2ccc.entry.js +1 -0
- package/dist/cobalt/p-3863ea91.entry.js +1 -0
- package/dist/cobalt/p-3a257cb0.entry.js +1 -0
- package/dist/cobalt/p-3e187456.entry.js +1 -0
- package/dist/cobalt/p-4431faac.entry.js +1 -0
- package/dist/cobalt/{p-4d8ff00a.entry.js → p-4504f7b0.entry.js} +1 -1
- package/dist/cobalt/p-456fa86f.entry.js +1 -0
- package/dist/cobalt/p-4871690e.entry.js +1 -0
- package/dist/cobalt/p-4c01d984.entry.js +1 -0
- package/dist/cobalt/p-51a53177.entry.js +1 -0
- package/dist/cobalt/p-52de17da.entry.js +1 -0
- package/dist/cobalt/p-5890e4d1.entry.js +1 -0
- package/dist/cobalt/{p-e50c4c6f.entry.js → p-58a53421.entry.js} +1 -1
- package/dist/cobalt/p-62274eba.entry.js +1 -0
- package/dist/cobalt/p-635b03d5.entry.js +1 -0
- package/dist/cobalt/p-64ddee92.entry.js +1 -0
- package/dist/cobalt/p-65af5017.entry.js +1 -0
- package/dist/cobalt/p-69d4c0c8.entry.js +1 -0
- package/dist/cobalt/p-6c480916.entry.js +1 -0
- package/dist/cobalt/p-6d1217c3.entry.js +1 -0
- package/dist/cobalt/p-6e808b3a.entry.js +1 -0
- package/dist/cobalt/{p-697df797.entry.js → p-70b14b05.entry.js} +1 -1
- package/dist/cobalt/{p-1d7da33f.entry.js → p-790d384e.entry.js} +1 -1
- package/dist/cobalt/p-8012e152.entry.js +1 -0
- package/dist/cobalt/p-80b27203.entry.js +1 -0
- package/dist/cobalt/p-867c1465.entry.js +1 -0
- package/dist/cobalt/p-86a143d7.entry.js +1 -0
- package/dist/cobalt/{p-3b2f7959.entry.js → p-8d59f5ad.entry.js} +1 -1
- package/dist/cobalt/p-8d7fdb9d.entry.js +1 -0
- package/dist/cobalt/p-8dc1dab8.entry.js +1 -0
- package/dist/cobalt/p-8e1dc062.entry.js +1 -0
- package/dist/cobalt/p-929e647f.entry.js +1 -0
- package/dist/cobalt/p-92bd9b29.entry.js +1 -0
- package/dist/cobalt/p-93046365.entry.js +1 -0
- package/dist/cobalt/p-98ab5f3f.entry.js +1 -0
- package/dist/cobalt/p-9a04ca90.entry.js +1 -0
- package/dist/cobalt/{p-ebd1555e.entry.js → p-9a088515.entry.js} +1 -1
- package/dist/cobalt/p-9abbd436.entry.js +1 -0
- package/dist/cobalt/p-9d69c067.entry.js +1 -0
- package/dist/cobalt/p-B-ckjCUA.js +1 -0
- package/dist/cobalt/p-B2QLgWrz.js +2 -0
- package/dist/cobalt/p-B6JZk8fL.js +1 -0
- package/dist/cobalt/p-BZJ7NCm5.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-CYsftTKf.js +2 -0
- package/dist/cobalt/p-CegCk7FL.js +1 -0
- package/dist/cobalt/p-Ch1jfwZ2.js +1 -0
- package/dist/cobalt/p-ChibIpZv.js +1 -0
- package/dist/cobalt/p-DqyWGweA.js +1 -0
- package/dist/cobalt/p-afb7e19e.entry.js +1 -0
- package/dist/cobalt/p-b6f20268.entry.js +1 -0
- package/dist/cobalt/p-ba90e871.entry.js +1 -0
- package/dist/cobalt/p-c10697e1.entry.js +1 -0
- package/dist/cobalt/p-c4f59532.entry.js +1 -0
- package/dist/cobalt/{p-1b5c723a.entry.js → p-cb235aa7.entry.js} +1 -1
- package/dist/cobalt/p-cfb36943.entry.js +1 -0
- package/dist/cobalt/p-d809bd44.entry.js +1 -0
- package/dist/cobalt/p-e53861e4.entry.js +1 -0
- package/dist/cobalt/p-e54dd404.entry.js +1 -0
- package/dist/cobalt/{p-1021f612.entry.js → p-eb18fdbf.entry.js} +1 -1
- package/dist/cobalt/{p-a7fa4484.entry.js → p-eb73052a.entry.js} +1 -1
- package/dist/cobalt/p-ef7d4ae3.entry.js +1 -0
- package/dist/cobalt/p-f4063c41.entry.js +1 -0
- package/dist/cobalt/p-oImf-7fN.js +1 -0
- package/dist/cobalt/p-ox7HzCZn.js +10 -0
- package/dist/cobalt/p-tPYikBRJ.js +1 -0
- package/dist/collection/collection-manifest.json +27 -4
- 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-app-shell/co-app-shell.css +79 -6
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +753 -8
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +111 -4
- package/dist/collection/components/co-avatar/co-avatar.css +45 -1
- package/dist/collection/components/co-avatar/co-avatar.js +56 -6
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +86 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +224 -0
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +136 -0
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +507 -0
- package/dist/collection/components/co-button/co-button.css +48 -12
- package/dist/collection/components/co-button/co-button.js +70 -8
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- 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-calendar-month/co-calendar-month.css +231 -0
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +594 -0
- package/dist/collection/components/co-card/co-card.css +28 -5
- package/dist/collection/components/co-card/co-card.js +47 -4
- package/dist/collection/components/co-checkbox/co-checkbox.css +7 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +33 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
- package/dist/collection/components/co-chip/co-chip.css +27 -7
- package/dist/collection/components/co-chip/co-chip.js +52 -10
- package/dist/collection/components/co-color-picker/co-color-picker.css +258 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +355 -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 +778 -51
- package/dist/collection/components/co-combobox/co-combobox.js +130 -15
- package/dist/collection/components/co-command-search/co-command-search.css +167 -1
- package/dist/collection/components/co-command-search/co-command-search.js +362 -14
- package/dist/collection/components/co-command-search/commandSearchGroup.js +17 -0
- package/dist/collection/components/co-command-search/commandSearchLogic.js +27 -0
- package/dist/collection/components/co-data-table/co-data-table.css +37 -1
- package/dist/collection/components/co-data-table/co-data-table.js +38 -12
- 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 +245 -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 +257 -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 +20 -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-event-calendar/co-event-calendar.css +146 -0
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +620 -0
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +395 -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 +7 -34
- package/dist/collection/components/co-icon/iconLoader.js +39 -0
- package/dist/collection/components/co-icon-button/co-icon-button.css +27 -6
- package/dist/collection/components/co-icon-button/co-icon-button.js +26 -7
- package/dist/collection/components/co-input/co-input.css +63 -11
- package/dist/collection/components/co-input/co-input.js +34 -9
- package/dist/collection/components/co-json-field/co-json-field.css +193 -0
- package/dist/collection/components/co-json-field/co-json-field.js +477 -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-footer/co-list-footer.css +50 -0
- package/dist/collection/components/co-list-footer/co-list-footer.js +149 -0
- package/dist/collection/components/co-list-item/co-list-item.css +12 -0
- package/dist/collection/components/co-list-item/co-list-item.js +75 -2
- package/dist/collection/components/co-loader/co-loader.css +9 -0
- 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-menu-item/co-menu-item.css +18 -0
- package/dist/collection/components/co-menu-item/co-menu-item.js +15 -8
- package/dist/collection/components/co-modal/co-modal.css +59 -5
- package/dist/collection/components/co-modal/co-modal.js +91 -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 +89 -1
- package/dist/collection/components/co-number-field/co-number-field.js +175 -14
- package/dist/collection/components/co-overlay/co-overlay.css +15 -1
- package/dist/collection/components/co-overlay/co-overlay.js +266 -1
- package/dist/collection/components/co-overlay/focusTrap.js +53 -0
- package/dist/collection/components/co-overlay/overlayAfterClose.js +8 -0
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +293 -0
- package/dist/collection/components/co-phone-field/co-phone-field.js +414 -0
- package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
- package/dist/collection/components/co-popover/co-popover.css +9 -0
- package/dist/collection/components/co-popover/co-popover.js +43 -12
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +22 -0
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +26 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.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 +876 -56
- 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 +1322 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2823 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +837 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +1289 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +156 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +237 -0
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +852 -8
- 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.css +99 -12
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +54 -9
- package/dist/collection/components/co-skeleton/co-skeleton.css +28 -0
- package/dist/collection/components/co-skeleton/co-skeleton.js +97 -0
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +26 -1
- 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 +310 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +616 -0
- package/dist/collection/components/co-textarea/co-textarea.css +286 -0
- package/dist/collection/components/co-textarea/co-textarea.js +508 -0
- package/dist/collection/components/co-toast/co-toast.js +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +30 -6
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +3 -3
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +32 -12
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +24 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +73 -12
- 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/components/co-video/co-video.css +497 -0
- package/dist/collection/components/co-video/co-video.js +1772 -0
- package/dist/collection/utils/dateI18n.js +101 -0
- package/dist/collection/utils/fieldChip.js +2 -0
- package/dist/collection/utils/fileI18n.js +76 -0
- package/dist/collection/utils/icon-config.js +34 -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/collection/utils/richTextI18n.js +378 -0
- package/dist/collection/utils/sheetGesture.js +53 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.d.ts +11 -0
- package/dist/components/co-avatar-group.js +1 -0
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.d.ts +11 -0
- package/dist/components/co-bottom-sheet.js +1 -0
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.d.ts +11 -0
- package/dist/components/co-calendar-month.js +1 -0
- package/dist/components/co-calendar.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-event-calendar.d.ts +11 -0
- package/dist/components/co-event-calendar.js +1 -0
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.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-footer.d.ts +11 -0
- package/dist/components/co-list-footer.js +1 -0
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-loader.js +1 -1
- package/dist/components/co-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-skeleton.d.ts +11 -0
- package/dist/components/co-skeleton.js +1 -0
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.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/co-video.d.ts +11 -0
- package/dist/components/co-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-B2QLgWrz.js +2 -0
- package/dist/components/p-B7vGYFbO.js +1 -0
- package/dist/components/p-BB2OaYKF.js +1 -0
- package/dist/components/p-BFeE_fiq.js +1 -0
- package/dist/components/p-BNKz39GA.js +1 -0
- package/dist/components/p-Ba4v1NXo.js +1 -0
- package/dist/components/p-C1DCLOEl.js +1 -0
- package/dist/components/p-C2mZ7x_Y.js +1 -0
- package/dist/components/p-CQY6Ul7q.js +1 -0
- package/dist/components/p-CWneqh4n.js +1 -0
- package/dist/components/p-C_ULDaks.js +1 -0
- package/dist/components/p-CegCk7FL.js +1 -0
- package/dist/components/p-ChibIpZv.js +1 -0
- package/dist/components/p-CyYF8IJE.js +1 -0
- package/dist/components/p-D3Y_ti3Q.js +1 -0
- package/dist/components/p-DKh8ZK4U.js +1 -0
- package/dist/components/p-DeZxp9vb.js +1 -0
- package/dist/components/p-DqyWGweA.js +1 -0
- package/dist/components/p-DvhR3H61.js +1 -0
- package/dist/components/p-DxCFMMfY.js +1 -0
- package/dist/components/{p-OGpfa9Yd.js → p-DzoNGEDU.js} +1 -1
- package/dist/components/p-EPZfLt5l.js +1 -0
- package/dist/components/p-FMnqPWcM.js +1 -0
- package/dist/components/p-Hzh9U2cM.js +1 -0
- package/dist/components/p-WZ06pT2Y.js +1 -0
- package/dist/components/p-ox7HzCZn.js +10 -0
- package/dist/components/p-tloAgDin.js +1 -0
- package/dist/esm/co-accordion.entry.js +19 -4
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +54 -6
- package/dist/esm/co-avatar-group.entry.js +75 -0
- package/dist/esm/co-avatar.entry.js +41 -6
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +323 -0
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +12 -7
- package/dist/esm/co-calendar-month.entry.js +379 -0
- 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 +5 -5
- package/dist/esm/co-chip.entry.js +11 -8
- package/dist/esm/co-color-picker.entry.js +109 -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 +159 -13
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +38 -12
- 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-event-calendar.entry.js +316 -0
- 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 +6 -6
- package/dist/esm/co-icon.entry.js +36 -25
- package/dist/esm/co-input.entry.js +13 -8
- package/dist/esm/co-json-field.entry.js +111 -0
- package/dist/esm/co-lightbox.entry.js +342 -0
- package/dist/esm/co-list-footer.entry.js +23 -0
- package/dist/esm/co-list-item.entry.js +70 -4
- package/dist/esm/co-loader_2.entry.js +290 -0
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +17 -10
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +25 -3
- package/dist/esm/co-navbar.entry.js +4 -4
- package/dist/esm/co-number-field.entry.js +60 -12
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +376 -0
- package/dist/esm/co-popover.entry.js +46 -15
- package/dist/esm/co-progress-bar.entry.js +8 -4
- 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 +214 -21
- package/dist/esm/co-rich-text-editor.entry.js +2079 -0
- package/dist/esm/co-rich-text-toolbar.entry.js +1106 -0
- package/dist/esm/co-rich-text-viewer.entry.js +116 -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 +55 -10
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +24 -0
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +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 +209 -0
- package/dist/esm/co-textarea.entry.js +94 -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 +56 -15
- package/dist/esm/co-transfer-list.entry.js +20 -6
- package/dist/esm/co-video.entry.js +837 -0
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
- package/dist/esm/dates-tPYikBRJ.js +416 -0
- package/dist/esm/fieldChip-GPikjpYw.js +5 -0
- package/dist/esm/{index-B0lqrhFo.js → index-CYsftTKf.js} +115 -23
- package/dist/esm/index-w_Wxgclf.js +35403 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
- package/dist/esm/overlayAfterClose-Ch1jfwZ2.js +10 -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/purify.es-B2QLgWrz.js +1774 -0
- package/dist/esm/requiredMark-CEbXKHcU.js +14 -0
- package/dist/esm/richTextI18n-B-ckjCUA.js +380 -0
- package/dist/esm/toolbar-config-ChibIpZv.js +212 -0
- package/dist/esm/tz-B6JZk8fL.js +119 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +13 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +8 -2
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +33 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +81 -0
- package/dist/types/components/co-button/co-button.d.ts +7 -1
- package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +83 -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-chip/co-chip.d.ts +7 -2
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +50 -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 +41 -6
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +20 -0
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +17 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +3 -1
- 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-event-calendar/co-event-calendar.d.ts +110 -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/co-icon.d.ts +1 -1
- package/dist/types/components/co-icon/iconLoader.d.ts +6 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +3 -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 +69 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +26 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +12 -0
- package/dist/types/components/co-modal/co-modal.d.ts +10 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +29 -2
- package/dist/types/components/co-overlay/co-overlay.d.ts +45 -0
- package/dist/types/components/co-overlay/focusTrap.d.ts +20 -0
- package/dist/types/components/co-overlay/overlayAfterClose.d.ts +5 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +58 -0
- package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
- package/dist/types/components/co-popover/co-popover.d.ts +9 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +2 -0
- package/dist/types/components/co-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 +69 -1
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +246 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +148 -0
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +19 -0
- package/dist/types/components/co-select/co-select.d.ts +31 -1
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -0
- package/dist/types/components/co-switch/co-switch.d.ts +2 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +84 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +68 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
- package/dist/types/components/co-video/co-video.d.ts +203 -0
- package/dist/types/components.d.ts +5422 -391
- package/dist/types/utils/dateI18n.d.ts +39 -0
- package/dist/types/utils/fieldChip.d.ts +37 -0
- package/dist/types/utils/fileI18n.d.ts +34 -0
- package/dist/types/utils/icon-config.d.ts +31 -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/dist/types/utils/richTextI18n.d.ts +130 -0
- package/dist/types/utils/sheetGesture.d.ts +31 -0
- package/package.json +10 -1
- package/dist/cjs/co-drawer.cjs.entry.js +0 -75
- package/dist/cjs/co-loader.cjs.entry.js +0 -34
- package/dist/cjs/co-overlay.cjs.entry.js +0 -23
- package/dist/cjs/color-YhUkm10t.js +0 -32
- package/dist/cobalt/p-08afdc51.entry.js +0 -1
- package/dist/cobalt/p-1b7d6808.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-4905b51d.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-4ffba5a3.entry.js +0 -1
- package/dist/cobalt/p-5a13e3a0.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-c9b0e73f.entry.js +0 -1
- package/dist/cobalt/p-ca41eec2.entry.js +0 -1
- package/dist/cobalt/p-cc93ab05.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-e808916c.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/cobalt/p-ff6a647c.entry.js +0 -1
- package/dist/components/p-Am-OlB8h.js +0 -1
- package/dist/components/p-B18FTYLq.js +0 -1
- package/dist/components/p-BG4WRR22.js +0 -1
- package/dist/components/p-Cr8Yc0zj.js +0 -1
- package/dist/components/p-FBICWTuN.js +0 -1
- package/dist/components/p-cpdUXBiS.js +0 -1
- package/dist/components/p-wwWquAtm.js +0 -1
- package/dist/esm/co-drawer.entry.js +0 -73
- package/dist/esm/co-loader.entry.js +0 -32
- package/dist/esm/co-overlay.entry.js +0 -21
- package/dist/esm/color-BG4WRR22.js +0 -30
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { Placement } from '../../utils/positioning';
|
|
3
|
+
export interface DateRangeValue {
|
|
4
|
+
from: string | null;
|
|
5
|
+
to: string | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Date range picker: two manual date fields (Desde/Hasta) + a range calendar +
|
|
9
|
+
* quick presets, inside a popover with a Cancel/Clear/Apply footer.
|
|
10
|
+
*
|
|
11
|
+
* Value is a JSON string `{"from":"YYYY-MM-DD","to":"YYYY-MM-DD"}` (or '' when
|
|
12
|
+
* unset) so it survives JSX attribute serialization. The trigger shows the
|
|
13
|
+
* COMMITTED range; the popover edits a draft that only commits on Apply (or, if
|
|
14
|
+
* `applyOnSelect`, debounced once both ends are chosen — for table filters).
|
|
15
|
+
*/
|
|
16
|
+
export declare class CoDateRangePicker {
|
|
17
|
+
el: HTMLElement;
|
|
18
|
+
/** JSON `{from,to}` or '' (empty). */
|
|
19
|
+
value: string;
|
|
20
|
+
min?: string;
|
|
21
|
+
max?: string;
|
|
22
|
+
locale: string;
|
|
23
|
+
displayFormat: string;
|
|
24
|
+
firstDayOfWeek: number;
|
|
25
|
+
/** Show the quick-preset column. */
|
|
26
|
+
presets: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Which presets to show, from the built-in catalog: today, yesterday,
|
|
29
|
+
* last7Days, last14Days, last30Days, last90Days, thisWeek, thisMonth,
|
|
30
|
+
* lastMonth, thisYear, lastYear, custom. Labels come from `locale`; dates are
|
|
31
|
+
* computed tz-safe. Accepts a string[] or JSON/comma string. Defaults to a
|
|
32
|
+
* sensible set when omitted.
|
|
33
|
+
*/
|
|
34
|
+
presetIds?: string[] | string;
|
|
35
|
+
/** Allow from === to. */
|
|
36
|
+
allowSameDay: boolean;
|
|
37
|
+
/** Minimum span (inclusive days). */
|
|
38
|
+
minRangeDays?: number;
|
|
39
|
+
/** Maximum span (inclusive days). */
|
|
40
|
+
maxRangeDays?: number;
|
|
41
|
+
clearable: boolean;
|
|
42
|
+
/** Commit (emit coApply) as soon as a full valid range is picked, debounced. */
|
|
43
|
+
applyOnSelect: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
readonly: boolean;
|
|
46
|
+
invalid: boolean;
|
|
47
|
+
errorMessage?: string;
|
|
48
|
+
helperText?: string;
|
|
49
|
+
label?: string;
|
|
50
|
+
/** Whether the field is required (renders a required marker on the label). */
|
|
51
|
+
required: boolean;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
54
|
+
layout: 'vertical' | 'horizontal';
|
|
55
|
+
/** Trigger size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48. */
|
|
56
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
57
|
+
placement: Placement;
|
|
58
|
+
open: boolean;
|
|
59
|
+
applyLabel?: string;
|
|
60
|
+
cancelLabel?: string;
|
|
61
|
+
clearLabel?: string;
|
|
62
|
+
fromLabel?: string;
|
|
63
|
+
toLabel?: string;
|
|
64
|
+
/** Max viewport width (px) that renders the picker as a bottom sheet. */
|
|
65
|
+
mobileBreakpoint: number;
|
|
66
|
+
coRangeStartChange: EventEmitter<string | null>;
|
|
67
|
+
coRangeEndChange: EventEmitter<string | null>;
|
|
68
|
+
coRangeChange: EventEmitter<DateRangeValue>;
|
|
69
|
+
coApply: EventEmitter<DateRangeValue>;
|
|
70
|
+
coCancel: EventEmitter<void>;
|
|
71
|
+
coClear: EventEmitter<void>;
|
|
72
|
+
coOpen: EventEmitter<void>;
|
|
73
|
+
coClose: EventEmitter<void>;
|
|
74
|
+
/** Working range while the popover is open (commits on Apply). */
|
|
75
|
+
draftFrom: string | null;
|
|
76
|
+
draftTo: string | null;
|
|
77
|
+
/** True when the viewport is at/under `mobileBreakpoint`. */
|
|
78
|
+
isMobile: boolean;
|
|
79
|
+
private applyTimer?;
|
|
80
|
+
private mql?;
|
|
81
|
+
private mqlHandler;
|
|
82
|
+
componentWillLoad(): void;
|
|
83
|
+
connectedCallback(): void;
|
|
84
|
+
disconnectedCallback(): void;
|
|
85
|
+
onValueChange(): void;
|
|
86
|
+
private parseValue;
|
|
87
|
+
private get committed();
|
|
88
|
+
private inclusiveDays;
|
|
89
|
+
private get canApply();
|
|
90
|
+
private syncDraftFromValue;
|
|
91
|
+
private onPopoverOpen;
|
|
92
|
+
private onPopoverClose;
|
|
93
|
+
private onRootKeyDown;
|
|
94
|
+
private updateDraft;
|
|
95
|
+
private onCalendarRange;
|
|
96
|
+
private onFromChange;
|
|
97
|
+
private onToChange;
|
|
98
|
+
private scheduleApply;
|
|
99
|
+
/** Open the mobile bottom sheet (desktop opens via co-popover's trigger click). */
|
|
100
|
+
private openSheet;
|
|
101
|
+
private handleApply;
|
|
102
|
+
private handleCancel;
|
|
103
|
+
private handleClear;
|
|
104
|
+
private applyPreset;
|
|
105
|
+
private get hasCommitted();
|
|
106
|
+
private triggerText;
|
|
107
|
+
private presetItems;
|
|
108
|
+
private renderTriggerChildren;
|
|
109
|
+
private renderPanel;
|
|
110
|
+
private renderHelper;
|
|
111
|
+
render(): any;
|
|
112
|
+
}
|
|
@@ -15,6 +15,10 @@ export declare class CoDrawer {
|
|
|
15
15
|
size: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
16
16
|
/** Drawer title (used when `header` slot is empty) */
|
|
17
17
|
heading: string;
|
|
18
|
+
/** Optional description shown below the heading */
|
|
19
|
+
description: string;
|
|
20
|
+
/** Optional Phosphor icon name shown before the heading */
|
|
21
|
+
icon: string;
|
|
18
22
|
/** Show close (X) button in header */
|
|
19
23
|
closable: boolean;
|
|
20
24
|
/** Close when clicking the backdrop */
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type CoCalendarEvent, type NormalizedEvent } from '@prolibu-suite/cobalt-calendar-utils';
|
|
3
|
+
/**
|
|
4
|
+
* co-event-calendar — the public entry point of the Cobalt Calendars family.
|
|
5
|
+
*
|
|
6
|
+
* Owns view state, the visible anchor date, event normalization and the toolbar,
|
|
7
|
+
* and delegates rendering to the active view (Phase 1: month). All hard math
|
|
8
|
+
* lives in `@prolibu-suite/cobalt-calendar-utils`. Events are CONTROLLED: the
|
|
9
|
+
* calendar emits requests (`coEventDrop`, `coDateSelect`) and the host applies
|
|
10
|
+
* them by updating the `events` prop — leaving it unchanged on failure is the
|
|
11
|
+
* revert.
|
|
12
|
+
*
|
|
13
|
+
* Instants are ISO-8601 strings WITH offset/Z (timed) or "YYYY-MM-DD" (all-day);
|
|
14
|
+
* the calendar never exposes Date objects. `timeZone` controls wall-clock render.
|
|
15
|
+
*
|
|
16
|
+
* @part toolbar - The header toolbar
|
|
17
|
+
* @part body - The active view container
|
|
18
|
+
*/
|
|
19
|
+
export declare class CoEventCalendar {
|
|
20
|
+
/** Active view. Phase 1 ships `month`; week/day/agenda land in later phases. */
|
|
21
|
+
view: 'month' | 'week' | 'day' | 'agenda';
|
|
22
|
+
/** Anchor date "YYYY-MM-DD" controlling the visible period. Persisted by host. */
|
|
23
|
+
date?: string;
|
|
24
|
+
/** Events: an array or a JSON string (raw-HTML use). */
|
|
25
|
+
events: CoCalendarEvent[] | string;
|
|
26
|
+
/** BCP-47 locale for labels. */
|
|
27
|
+
locale: string;
|
|
28
|
+
/** IANA timezone for wall-clock rendering. Defaults to the browser zone. */
|
|
29
|
+
timeZone?: string;
|
|
30
|
+
/** Master interaction gate (per-event `editable` can still lock individuals). */
|
|
31
|
+
editable: boolean;
|
|
32
|
+
/** Allow empty-day selection to request a create. */
|
|
33
|
+
selectable: boolean;
|
|
34
|
+
/** Max event lanes per day before "+N more". */
|
|
35
|
+
dayMaxEvents: number;
|
|
36
|
+
/** Earliest interactable day "YYYY-MM-DD" (past-block). */
|
|
37
|
+
minDate?: string;
|
|
38
|
+
/** Latest interactable day "YYYY-MM-DD". */
|
|
39
|
+
maxDate?: string;
|
|
40
|
+
/** First day of week, 0=Sun..6=Sat. */
|
|
41
|
+
firstDayOfWeek: number;
|
|
42
|
+
/** Views offered in the switcher. Defaults to the implemented set. */
|
|
43
|
+
availableViews: string[] | string;
|
|
44
|
+
/** Optional status→{backgroundColor,borderColor} map (object or JSON string). */
|
|
45
|
+
statusColors?: Record<string, {
|
|
46
|
+
backgroundColor?: string;
|
|
47
|
+
borderColor?: string;
|
|
48
|
+
}> | string;
|
|
49
|
+
/** Default minutes for a timed event missing an end. */
|
|
50
|
+
defaultDurationMinutes: number;
|
|
51
|
+
/** Internal anchor (YYYY-MM-DD) — mirrors `date`, defaults to today. */
|
|
52
|
+
anchor: string;
|
|
53
|
+
/** An event chip was activated. */
|
|
54
|
+
coEventClick: EventEmitter<{
|
|
55
|
+
event: NormalizedEvent;
|
|
56
|
+
}>;
|
|
57
|
+
/** A date/range was selected (create request). */
|
|
58
|
+
coDateSelect: EventEmitter<{
|
|
59
|
+
start: string;
|
|
60
|
+
end: string;
|
|
61
|
+
allDay: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
/** An event was dragged to a new time (move). `revert` is a host convenience. */
|
|
64
|
+
coEventDrop: EventEmitter<{
|
|
65
|
+
event: NormalizedEvent;
|
|
66
|
+
start: string;
|
|
67
|
+
end: string;
|
|
68
|
+
oldStart: string;
|
|
69
|
+
oldEnd: string;
|
|
70
|
+
allDay: boolean;
|
|
71
|
+
revert: () => void;
|
|
72
|
+
}>;
|
|
73
|
+
/** The visible period changed → host should refetch and persist the view pref. */
|
|
74
|
+
coDatesSet: EventEmitter<{
|
|
75
|
+
view: string;
|
|
76
|
+
start: string;
|
|
77
|
+
end: string;
|
|
78
|
+
activeDate: string;
|
|
79
|
+
}>;
|
|
80
|
+
/** The active view changed. */
|
|
81
|
+
coViewChange: EventEmitter<{
|
|
82
|
+
view: string;
|
|
83
|
+
}>;
|
|
84
|
+
/** "+N more" was activated for a day. */
|
|
85
|
+
coMoreClick: EventEmitter<{
|
|
86
|
+
date: string;
|
|
87
|
+
events: NormalizedEvent[];
|
|
88
|
+
}>;
|
|
89
|
+
componentWillLoad(): void;
|
|
90
|
+
componentDidLoad(): void;
|
|
91
|
+
onDateChange(value?: string): void;
|
|
92
|
+
private get tz();
|
|
93
|
+
private get normalized();
|
|
94
|
+
private get viewsList();
|
|
95
|
+
/** Visible [start, end) of the current month view, as date strings. */
|
|
96
|
+
private visibleRange;
|
|
97
|
+
private emitDatesSet;
|
|
98
|
+
private setAnchor;
|
|
99
|
+
private goToday;
|
|
100
|
+
private goPrev;
|
|
101
|
+
private goNext;
|
|
102
|
+
private step;
|
|
103
|
+
private switchView;
|
|
104
|
+
private handleDaySelect;
|
|
105
|
+
private handleEventClick;
|
|
106
|
+
private handleEventDrop;
|
|
107
|
+
private handleMoreClick;
|
|
108
|
+
private title;
|
|
109
|
+
render(): any;
|
|
110
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export interface FileItem {
|
|
3
|
+
/** Server reference id (once uploaded). */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** Optimistic local id while uploading. */
|
|
6
|
+
tempId?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
url?: string;
|
|
10
|
+
thumbnail?: string;
|
|
11
|
+
/** Server file code (enables host-side deletion of the File record). */
|
|
12
|
+
fileCode?: string;
|
|
13
|
+
/** 0–100 when the host reports determinate progress. */
|
|
14
|
+
progress?: number;
|
|
15
|
+
status: 'uploading' | 'done' | 'error';
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Host-driven file selector — renders a drop-zone + previews + a file list with
|
|
20
|
+
* upload progress, but performs NO upload itself. When the user picks/drops
|
|
21
|
+
* files it emits `coFilesSelected` carrying the raw `File` objects (via the
|
|
22
|
+
* in-memory CustomEvent detail, never a serialized attribute); the host uploads
|
|
23
|
+
* them and feeds the resulting state back through the controlled `files` prop.
|
|
24
|
+
* This mirrors `co-ref-field` (the WC emits intent, the host does the I/O).
|
|
25
|
+
*
|
|
26
|
+
* @part wrapper - Root container
|
|
27
|
+
* @part label - The field label
|
|
28
|
+
* @part dropzone - The drag-and-drop / browse area
|
|
29
|
+
* @part upload-button - The pill CTA button inside the dropzone
|
|
30
|
+
* @part actions - Container of the host-provided `actions` slot
|
|
31
|
+
* @part uploaded-title - The "Uploaded files (n)" heading
|
|
32
|
+
* @part previews - The image previews grid
|
|
33
|
+
* @part preview - A single image preview card
|
|
34
|
+
* @part list - The uploaded/in-progress file list
|
|
35
|
+
* @part row - A single file row
|
|
36
|
+
* @part drag-handle - The reorder handle of a row
|
|
37
|
+
* @part helper - The helper/error text row
|
|
38
|
+
*
|
|
39
|
+
* @slot actions - Extra host actions rendered inside the dropzone (e.g. paste
|
|
40
|
+
* from clipboard, pick from cloud drive).
|
|
41
|
+
*/
|
|
42
|
+
export declare class CoFileField {
|
|
43
|
+
el: HTMLElement;
|
|
44
|
+
label?: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
readonly: boolean;
|
|
47
|
+
required: boolean;
|
|
48
|
+
multiple: boolean;
|
|
49
|
+
/** Accepted formats: comma list of extensions/mime (e.g. ".pdf,.png" or a JSON array). */
|
|
50
|
+
accept?: string;
|
|
51
|
+
/** Max number of files (multiple mode). */
|
|
52
|
+
maxFiles: number;
|
|
53
|
+
/** Max bytes per file. */
|
|
54
|
+
maxBytes?: number;
|
|
55
|
+
/** External validation status (e.g. from a form controller). */
|
|
56
|
+
status: 'default' | 'error' | 'success' | 'warning';
|
|
57
|
+
/** Helper text shown below the field. */
|
|
58
|
+
helperText?: string;
|
|
59
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
60
|
+
layout: 'vertical' | 'horizontal';
|
|
61
|
+
/** BCP-47 locale for the built-in UI strings (es/en/pt). */
|
|
62
|
+
locale?: string;
|
|
63
|
+
/** Override for the dropzone CTA button text. */
|
|
64
|
+
uploadButtonText?: string;
|
|
65
|
+
/** Main drag-and-drop hint in the dropzone (defaults to the locale string). */
|
|
66
|
+
dropText?: string;
|
|
67
|
+
/** Override for the uploaded-files heading (count is appended). */
|
|
68
|
+
uploadedTitle?: string;
|
|
69
|
+
/** Allow drag-reordering of the uploaded list (multiple mode). */
|
|
70
|
+
reorderable: boolean;
|
|
71
|
+
/** Controlled file list, JSON array of {@link FileItem} (owned by the host). */
|
|
72
|
+
files: string;
|
|
73
|
+
/** Emitted when the user picks/drops valid files. Detail carries the raw Files. */
|
|
74
|
+
coFilesSelected: EventEmitter<{
|
|
75
|
+
files: File[];
|
|
76
|
+
tempIds: string[];
|
|
77
|
+
}>;
|
|
78
|
+
/** Emitted to remove a file (id or tempId). */
|
|
79
|
+
coRemove: EventEmitter<string>;
|
|
80
|
+
/** Emitted to clear all files. */
|
|
81
|
+
coClear: EventEmitter<void>;
|
|
82
|
+
/** Emitted after a drag-reorder with the full ordered list of keys (id ?? tempId). */
|
|
83
|
+
coReorder: EventEmitter<string[]>;
|
|
84
|
+
/** Emitted when a file URL is copied to the clipboard. */
|
|
85
|
+
coCopy: EventEmitter<{
|
|
86
|
+
id: string;
|
|
87
|
+
url: string;
|
|
88
|
+
}>;
|
|
89
|
+
/** Emitted when an image preview is opened. */
|
|
90
|
+
coPreviewOpen: EventEmitter<{
|
|
91
|
+
id: string;
|
|
92
|
+
url: string;
|
|
93
|
+
}>;
|
|
94
|
+
dragOver: boolean;
|
|
95
|
+
localError: string;
|
|
96
|
+
copiedKey: string;
|
|
97
|
+
/** Row key armed for dragging (handle pressed). */
|
|
98
|
+
armedKey: string;
|
|
99
|
+
/** Row key currently being dragged. */
|
|
100
|
+
dragKey: string;
|
|
101
|
+
/** Row key currently hovered as drop target. */
|
|
102
|
+
overKey: string;
|
|
103
|
+
failedPreviews: Set<string>;
|
|
104
|
+
private inputEl?;
|
|
105
|
+
private tempSeq;
|
|
106
|
+
private copiedTimer?;
|
|
107
|
+
private lastFilesStr;
|
|
108
|
+
private lastParsed;
|
|
109
|
+
private lightboxEl?;
|
|
110
|
+
connectedCallback(): void;
|
|
111
|
+
disconnectedCallback(): void;
|
|
112
|
+
private get parsedFiles();
|
|
113
|
+
private get strings();
|
|
114
|
+
private get acceptList();
|
|
115
|
+
private get isInvalid();
|
|
116
|
+
private get inputAccept();
|
|
117
|
+
private extOf;
|
|
118
|
+
private validate;
|
|
119
|
+
private handleFiles;
|
|
120
|
+
/** True when the event originates from the host's `actions` slot content. */
|
|
121
|
+
private fromActionsSlot;
|
|
122
|
+
private handleDragOver;
|
|
123
|
+
private handleDragLeave;
|
|
124
|
+
private handleDrop;
|
|
125
|
+
private handleBrowse;
|
|
126
|
+
private handleInputChange;
|
|
127
|
+
private keyFor;
|
|
128
|
+
private handleCopy;
|
|
129
|
+
/**
|
|
130
|
+
* Opens the clicked image in a co-lightbox with the SAME gallery the
|
|
131
|
+
* previews grid shows. The lightbox is created imperatively on
|
|
132
|
+
* `document.body`: an open co-drawer keeps `transform: translateX(0)`,
|
|
133
|
+
* which would trap a `position: fixed` overlay rendered inline here.
|
|
134
|
+
*/
|
|
135
|
+
private handlePreviewOpen;
|
|
136
|
+
private closeLightbox;
|
|
137
|
+
private handlePreviewError;
|
|
138
|
+
private disarmDrag;
|
|
139
|
+
private handleRowDragStart;
|
|
140
|
+
private handleRowDragOver;
|
|
141
|
+
private handleRowDrop;
|
|
142
|
+
private handleRowDragEnd;
|
|
143
|
+
private resetDragState;
|
|
144
|
+
private capacityHint;
|
|
145
|
+
render(): any;
|
|
146
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FileItem } from './co-file-field';
|
|
2
|
+
/** Format bytes like the Figma spec: "59.25 KB" (base 1024, up to 2 decimals). */
|
|
3
|
+
export declare function formatBytes(bytes: number | undefined): string;
|
|
4
|
+
/**
|
|
5
|
+
* Left-truncate long file names ("....nshot from 2024-07-12.png"), keeping the
|
|
6
|
+
* tail where the date/extension lives — same convention as the V1 selector.
|
|
7
|
+
* The CSS rtl+ellipsis trick is avoided on purpose: bidi reorders leading
|
|
8
|
+
* digits/punctuation, and file names start with digits all the time.
|
|
9
|
+
*/
|
|
10
|
+
export declare function truncateLeft(name: string, max?: number): string;
|
|
11
|
+
/** An item renders in the previews grid when it's a stored image we can show. */
|
|
12
|
+
export declare function isImage(item: FileItem): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Best lightbox source: the original `url` only when it is itself an image —
|
|
15
|
+
* a PDF that entered the grid via its server-generated thumbnail must open
|
|
16
|
+
* the thumbnail (an `<img>` can't render the PDF).
|
|
17
|
+
*/
|
|
18
|
+
export declare function previewSrc(item: FileItem): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type IconWeight = 'regular' | 'thin' | 'light' | 'bold' | 'fill' | 'duotone';
|
|
2
|
+
/**
|
|
3
|
+
* Devuelve (y cachea) la PROMESA del SVG para `(weight, name)`. Las llamadas
|
|
4
|
+
* concurrentes para el mismo icono comparten un único fetch.
|
|
5
|
+
*/
|
|
6
|
+
export declare function loadSvg(name: string, weight: IconWeight): Promise<string>;
|
|
@@ -3,7 +3,7 @@ export declare class CoIconButton {
|
|
|
3
3
|
* filled = dark background (negro), outlined = light background (blanco + border)
|
|
4
4
|
* Matches Figma: Secundario → filled, Primario → outlined
|
|
5
5
|
*/
|
|
6
|
-
variant: 'filled' | 'outlined';
|
|
6
|
+
variant: 'filled' | 'outlined' | 'ghost';
|
|
7
7
|
/** Shape: pill or straight corners */
|
|
8
8
|
shape: 'rounded' | 'square';
|
|
9
9
|
/**
|
|
@@ -19,5 +19,7 @@ export declare class CoIconButton {
|
|
|
19
19
|
icon?: string;
|
|
20
20
|
/** Icon weight */
|
|
21
21
|
iconWeight: 'regular' | 'thin' | 'light' | 'bold' | 'fill' | 'duotone';
|
|
22
|
+
/** Override the size-derived glyph px (e.g. 24). Falls back to the size default. */
|
|
23
|
+
iconSize?: number;
|
|
22
24
|
render(): any;
|
|
23
25
|
}
|
|
@@ -13,7 +13,8 @@ export declare class CoInput {
|
|
|
13
13
|
label?: string;
|
|
14
14
|
/** Secondary label displayed on the right side */
|
|
15
15
|
secondaryLabel?: string;
|
|
16
|
-
/** Placeholder text
|
|
16
|
+
/** Placeholder text. Empty by default — a literal "Placeholder" leaking into
|
|
17
|
+
* product UIs when the consumer forgets the prop is worse than no hint. */
|
|
17
18
|
placeholder: string;
|
|
18
19
|
/** Current value */
|
|
19
20
|
value: string;
|
|
@@ -41,6 +42,8 @@ export declare class CoInput {
|
|
|
41
42
|
autocomplete?: string;
|
|
42
43
|
/** Validation status */
|
|
43
44
|
status: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
45
|
+
/** Size variant: s (28px), sm (32px), md (40px, default), lg (48px) */
|
|
46
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
44
47
|
/** Label for the integrated action button (Botón variant) */
|
|
45
48
|
actionLabel?: string;
|
|
46
49
|
/** Phosphor icon name for the integrated action button */
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Multiline JSON / arbitrary-object editor — a `<textarea>` with inline JSON
|
|
4
|
+
* validation. It is the renderer for schema fields whose type is `mixed`
|
|
5
|
+
* (free-form object value). The committed `value` is the raw JSON *text*; the
|
|
6
|
+
* consuming form renderer is responsible for parsing it to an object (keeping
|
|
7
|
+
* this component framework-agnostic and string-only, like `co-ref-field`).
|
|
8
|
+
*
|
|
9
|
+
* Emits `coInput` on every keystroke, `coChange` with the committed text on blur
|
|
10
|
+
* (so half-typed invalid JSON never reaches the form), and `coValidity` whenever
|
|
11
|
+
* the parse status changes.
|
|
12
|
+
*
|
|
13
|
+
* Visually mirrors `co-input` / `co-date-field`.
|
|
14
|
+
*
|
|
15
|
+
* @part wrapper - Root container
|
|
16
|
+
* @part label - The field label
|
|
17
|
+
* @part field - The bordered textarea wrapper
|
|
18
|
+
* @part input - The native textarea
|
|
19
|
+
* @part helper - The helper/error text row
|
|
20
|
+
*/
|
|
21
|
+
export declare class CoJsonField {
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
/** Committed JSON text. */
|
|
24
|
+
value: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
readonly: boolean;
|
|
31
|
+
rows: number;
|
|
32
|
+
/** External validation status (e.g. from a form controller). */
|
|
33
|
+
status: 'default' | 'error' | 'success' | 'warning';
|
|
34
|
+
/** Helper text shown below the field. */
|
|
35
|
+
helperText?: string;
|
|
36
|
+
/** Message shown when the typed JSON cannot be parsed. */
|
|
37
|
+
invalidMessage: string;
|
|
38
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
39
|
+
layout: 'vertical' | 'horizontal';
|
|
40
|
+
/** Field size (mirrors co-input paddings; mono font scales 12/13/13/14).
|
|
41
|
+
* Vertical extent still comes from `rows`. */
|
|
42
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
43
|
+
/** Emitted on every keystroke with the raw text. */
|
|
44
|
+
coInput: EventEmitter<string>;
|
|
45
|
+
/** Emitted with the committed text on blur. */
|
|
46
|
+
coChange: EventEmitter<string>;
|
|
47
|
+
/** Emitted whenever the internal JSON parse status changes. */
|
|
48
|
+
coValidity: EventEmitter<{
|
|
49
|
+
valid: boolean;
|
|
50
|
+
message?: string;
|
|
51
|
+
}>;
|
|
52
|
+
coFocus: EventEmitter<void>;
|
|
53
|
+
coBlur: EventEmitter<void>;
|
|
54
|
+
/** Raw text in the textarea. */
|
|
55
|
+
draft: string;
|
|
56
|
+
/** Internal JSON parse-failure flag. */
|
|
57
|
+
internalInvalid: boolean;
|
|
58
|
+
hasFocus: boolean;
|
|
59
|
+
componentWillLoad(): void;
|
|
60
|
+
onValueChange(): void;
|
|
61
|
+
private get isInvalid();
|
|
62
|
+
/** Re-evaluate JSON validity; emit coValidity when it changes. */
|
|
63
|
+
private validate;
|
|
64
|
+
private tryParse;
|
|
65
|
+
private handleInput;
|
|
66
|
+
private handleFocus;
|
|
67
|
+
private handleBlur;
|
|
68
|
+
render(): any;
|
|
69
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export interface LightboxImage {
|
|
3
|
+
/** Full-size image URL. */
|
|
4
|
+
src: string;
|
|
5
|
+
/** Optional smaller preview (unused while rendering, kept for hosts). */
|
|
6
|
+
thumbnail?: string;
|
|
7
|
+
/** Caption / aria text (usually the file name). */
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fullscreen image viewer — dark scrim, zoom (wheel / buttons / double-click,
|
|
12
|
+
* anchored at the cursor), drag-to-pan while zoomed, and prev/next carousel
|
|
13
|
+
* when more than one image is provided. Keyboard: Escape closes, arrows
|
|
14
|
+
* navigate, +/- zoom, 0 resets.
|
|
15
|
+
*
|
|
16
|
+
* Controlled like co-modal: the host owns `open` and reacts to `coClose`.
|
|
17
|
+
*
|
|
18
|
+
* CAVEAT: the root is `position: fixed`, so an ancestor with `transform`,
|
|
19
|
+
* `filter` or `will-change: transform` (e.g. an OPEN co-drawer) becomes its
|
|
20
|
+
* containing block and traps the overlay. When opening from inside such a
|
|
21
|
+
* context, create the element imperatively on `document.body` instead of
|
|
22
|
+
* rendering it declaratively (this is what co-file-field does).
|
|
23
|
+
*
|
|
24
|
+
* @part overlay - Fullscreen scrim container
|
|
25
|
+
* @part toolbar - Top bar (caption + zoom controls + actions)
|
|
26
|
+
* @part image - The active image element
|
|
27
|
+
* @part prev - Previous-image arrow button
|
|
28
|
+
* @part next - Next-image arrow button
|
|
29
|
+
* @part counter - The "i / n" indicator
|
|
30
|
+
* @part close - The close button
|
|
31
|
+
*/
|
|
32
|
+
export declare class CoLightbox {
|
|
33
|
+
el: HTMLElement;
|
|
34
|
+
/** JSON array of {@link LightboxImage} (controlled by the host). */
|
|
35
|
+
images: string;
|
|
36
|
+
/** Index shown when the viewer opens. */
|
|
37
|
+
startIndex: number;
|
|
38
|
+
/** Whether the viewer is visible. */
|
|
39
|
+
open: boolean;
|
|
40
|
+
/** BCP-47 locale for the built-in aria strings (es/en/pt). */
|
|
41
|
+
locale?: string;
|
|
42
|
+
/** Emitted when the viewer requests to close (backdrop, X, Escape). */
|
|
43
|
+
coClose: EventEmitter<void>;
|
|
44
|
+
/** Emitted when the active image changes (prev/next/keyboard). */
|
|
45
|
+
coChange: EventEmitter<number>;
|
|
46
|
+
index: number;
|
|
47
|
+
scale: number;
|
|
48
|
+
tx: number;
|
|
49
|
+
ty: number;
|
|
50
|
+
dragging: boolean;
|
|
51
|
+
private stageEl?;
|
|
52
|
+
private imgEl?;
|
|
53
|
+
private closeBtnEl?;
|
|
54
|
+
private lastImagesStr;
|
|
55
|
+
private lastParsed;
|
|
56
|
+
private dragStart;
|
|
57
|
+
/** Element to give focus back to when the viewer closes. */
|
|
58
|
+
private previouslyFocused?;
|
|
59
|
+
/** Focus the close button on the render that follows opening. */
|
|
60
|
+
private pendingFocus;
|
|
61
|
+
private get parsedImages();
|
|
62
|
+
componentWillLoad(): void;
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
componentDidRender(): void;
|
|
66
|
+
onOpenChange(open: boolean): void;
|
|
67
|
+
onStartIndexChange(v: number): void;
|
|
68
|
+
onImagesChange(): void;
|
|
69
|
+
private attachKeyListener;
|
|
70
|
+
private detachKeyListener;
|
|
71
|
+
private handleKey;
|
|
72
|
+
/** Minimal focus trap: Tab cycles through the viewer's own buttons. */
|
|
73
|
+
private trapTab;
|
|
74
|
+
private clampIndex;
|
|
75
|
+
private resetView;
|
|
76
|
+
private requestClose;
|
|
77
|
+
private goTo;
|
|
78
|
+
private preloadNeighbors;
|
|
79
|
+
/** Pan is clamped so the scaled image can't be dragged fully off-stage. */
|
|
80
|
+
private clampPan;
|
|
81
|
+
/**
|
|
82
|
+
* Zoom keeping the stage point (px,py — relative to the stage center) fixed:
|
|
83
|
+
* t' = p − (p − t)·(s'/s), with transform-origin at the center.
|
|
84
|
+
*/
|
|
85
|
+
private zoomAt;
|
|
86
|
+
private stagePoint;
|
|
87
|
+
private handleWheel;
|
|
88
|
+
private handleDblClick;
|
|
89
|
+
private handlePointerDown;
|
|
90
|
+
private handlePointerMove;
|
|
91
|
+
private handlePointerUp;
|
|
92
|
+
private openOriginal;
|
|
93
|
+
private stop;
|
|
94
|
+
render(): any;
|
|
95
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Action footer for dropdown / list panels (co-popover, co-combobox, …).
|
|
4
|
+
* Renders one or two full-width action buttons in the standard footer design,
|
|
5
|
+
* separated from the content above by top padding. Use the props for the common
|
|
6
|
+
* primary/secondary actions, or the default slot for fully custom content.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Custom footer content (rendered after the prop buttons).
|
|
9
|
+
*/
|
|
10
|
+
export declare class CoListFooter {
|
|
11
|
+
/** Primary (filled) action label. Omit to hide the primary button. */
|
|
12
|
+
primaryLabel?: string;
|
|
13
|
+
/** Primary action leading icon (Phosphor). Set to '' to hide the icon. */
|
|
14
|
+
primaryIcon: string;
|
|
15
|
+
/** Secondary (outlined) action label. Omit to hide the secondary button. */
|
|
16
|
+
secondaryLabel?: string;
|
|
17
|
+
/** Secondary action leading icon (Phosphor). Set to '' to hide the icon. */
|
|
18
|
+
secondaryIcon: string;
|
|
19
|
+
/** Emitted when the primary action is clicked. */
|
|
20
|
+
coPrimary: EventEmitter<void>;
|
|
21
|
+
/** Emitted when the secondary action is clicked. */
|
|
22
|
+
coSecondary: EventEmitter<void>;
|
|
23
|
+
private handlePrimary;
|
|
24
|
+
private handleSecondary;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -21,6 +21,18 @@ export declare class CoListItem {
|
|
|
21
21
|
dense: boolean;
|
|
22
22
|
/** Emitted when item is clicked */
|
|
23
23
|
coSelect: EventEmitter<void>;
|
|
24
|
+
el: HTMLElement;
|
|
25
|
+
/** Whether the label / description is currently ellipsis-truncated (drives the tooltip). */
|
|
26
|
+
private labelTruncated;
|
|
27
|
+
private descTruncated;
|
|
28
|
+
private labelEl?;
|
|
29
|
+
private descEl?;
|
|
30
|
+
private ro?;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
onTextChange(): void;
|
|
34
|
+
private measureTruncation;
|
|
24
35
|
private handleClick;
|
|
36
|
+
private handleKeyDown;
|
|
25
37
|
render(): any;
|
|
26
38
|
}
|