@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
|
@@ -14,10 +14,20 @@ export declare class CoModal {
|
|
|
14
14
|
closable: boolean;
|
|
15
15
|
/** Close when clicking the overlay backdrop */
|
|
16
16
|
closeOnOverlay: boolean;
|
|
17
|
+
/** Modal width: sm (400px), md (540px), lg (680px) */
|
|
18
|
+
size: 'sm' | 'md' | 'lg';
|
|
19
|
+
/** Hide body section and all border dividers (compact confirm dialogs) */
|
|
20
|
+
noDividers: boolean;
|
|
17
21
|
/** Emitted when the modal requests to close */
|
|
18
22
|
coClose: EventEmitter<void>;
|
|
23
|
+
/** Close animation finished. */
|
|
24
|
+
coAfterClose: EventEmitter<void>;
|
|
25
|
+
/** Open animation finished. */
|
|
26
|
+
coAfterOpen: EventEmitter<void>;
|
|
27
|
+
private modalEl?;
|
|
19
28
|
private handleOverlayClick;
|
|
20
29
|
private handleCloseClick;
|
|
21
30
|
private stopPropagation;
|
|
31
|
+
private handleTransitionEnd;
|
|
22
32
|
render(): any;
|
|
23
33
|
}
|
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class CoNumberField {
|
|
3
3
|
label?: string;
|
|
4
|
+
/** Whether the field is required (renders a required marker on the label). */
|
|
5
|
+
required: boolean;
|
|
4
6
|
secondaryLabel?: string;
|
|
5
7
|
helperText?: string;
|
|
8
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
9
|
+
layout: 'vertical' | 'horizontal';
|
|
6
10
|
status: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
7
|
-
value: number;
|
|
11
|
+
value: number | null;
|
|
8
12
|
min?: number;
|
|
9
13
|
max?: number;
|
|
10
14
|
step: number;
|
|
11
15
|
disabled: boolean;
|
|
12
16
|
placeholder: string;
|
|
17
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
18
|
+
/** Show clear button when the field has a value */
|
|
19
|
+
clearable: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Display format. With 'rate' | 'percent' the `value` stays a DECIMAL
|
|
22
|
+
* (e.g. 0.15) but the field shows/edits the PERCENT (15) with a "%" suffix.
|
|
23
|
+
* value/min/max/step are always in the underlying (decimal) unit.
|
|
24
|
+
* Reflected so it survives lazy hydration when set via the Vue wrapper.
|
|
25
|
+
*/
|
|
26
|
+
format?: 'rate' | 'percent';
|
|
13
27
|
focused: boolean;
|
|
14
28
|
el: HTMLElement;
|
|
15
|
-
coChange: EventEmitter<number>;
|
|
29
|
+
coChange: EventEmitter<number | null>;
|
|
30
|
+
/** Emitted when the clear button is clicked */
|
|
31
|
+
coClear: EventEmitter<void>;
|
|
16
32
|
private inputEl?;
|
|
33
|
+
/** True when there is no numeric value (cleared / empty). */
|
|
34
|
+
private get isEmpty();
|
|
35
|
+
/** Numeric value to step from, treating an empty field as min (or 0). */
|
|
36
|
+
private get current();
|
|
17
37
|
private get statusIcon();
|
|
18
38
|
private get canDecrement();
|
|
19
39
|
private get canIncrement();
|
|
20
40
|
private clamp;
|
|
41
|
+
/** Whether the value↔display conversion (×100) is active. */
|
|
42
|
+
private get scaled();
|
|
43
|
+
/** Stored decimal → shown number (0.15 → 15). toFixed avoids FP artifacts. */
|
|
44
|
+
private toDisplay;
|
|
45
|
+
/** Typed number → stored decimal (15 → 0.15). */
|
|
46
|
+
private fromDisplay;
|
|
21
47
|
private emitValue;
|
|
22
48
|
private handleDecrement;
|
|
23
49
|
private handleIncrement;
|
|
24
50
|
private handleInput;
|
|
51
|
+
private handleClear;
|
|
25
52
|
private handleBlur;
|
|
26
53
|
private handleFocus;
|
|
27
54
|
private handleKeyDown;
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class CoOverlay {
|
|
3
|
+
el: HTMLElement;
|
|
3
4
|
/** Whether the overlay is visible */
|
|
4
5
|
open: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Opt-in accessible focus trap. When true, opening the overlay records the
|
|
8
|
+
* previously-focused element, moves focus into the overlay, cycles Tab /
|
|
9
|
+
* Shift+Tab within the slotted content, and restores focus on close.
|
|
10
|
+
* Default false → existing consumers are unchanged.
|
|
11
|
+
*/
|
|
12
|
+
trapFocus: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Opt-in: emit `coClose` when Escape is pressed while open.
|
|
15
|
+
* Default false → existing consumers are unchanged.
|
|
16
|
+
*/
|
|
17
|
+
closeOnEscape: boolean;
|
|
5
18
|
/** Emitted when the overlay backdrop is clicked */
|
|
6
19
|
coClose: EventEmitter<void>;
|
|
20
|
+
/** Slide/fade-out animation finished (overlay fully closed). */
|
|
21
|
+
coAfterClose: EventEmitter<void>;
|
|
22
|
+
/** Slide/fade-in animation finished (overlay fully open). */
|
|
23
|
+
coAfterOpen: EventEmitter<void>;
|
|
24
|
+
/** Whether THIS instance currently holds a scroll lock (prevents double-count). */
|
|
25
|
+
private hasLock;
|
|
26
|
+
/** The scrim element, promoted to the top layer via the Popover API. */
|
|
27
|
+
private overlayEl?;
|
|
28
|
+
/** Element focused before the trap engaged, restored on close. */
|
|
29
|
+
private returnFocusEl?;
|
|
30
|
+
onOpenChange(isOpen: boolean): void;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
private acquireLock;
|
|
34
|
+
private releaseLock;
|
|
35
|
+
/**
|
|
36
|
+
* Promote the scrim to the browser top layer so it covers the whole viewport
|
|
37
|
+
* regardless of ancestor `filter`/`mask`/`transform` (which would otherwise
|
|
38
|
+
* make `position: fixed` resolve against that ancestor, confining the scrim).
|
|
39
|
+
* The Popover API promotes WITHOUT moving the DOM node, so slots and Stencil
|
|
40
|
+
* reconciliation are untouched. No-ops gracefully where unsupported.
|
|
41
|
+
*/
|
|
42
|
+
private syncPopover;
|
|
43
|
+
/** Record the current focus and move it into the overlay (guarded by trapFocus). */
|
|
44
|
+
private captureAndFocus;
|
|
45
|
+
/** Restore focus to the element that had it before the trap engaged. */
|
|
46
|
+
private restoreFocus;
|
|
47
|
+
/** Deepest active element, descending through nested shadow roots. */
|
|
48
|
+
private deepActiveElement;
|
|
49
|
+
handleKeydown(e: KeyboardEvent): void;
|
|
50
|
+
private trapTab;
|
|
7
51
|
private handleClick;
|
|
52
|
+
private handleTransitionEnd;
|
|
8
53
|
render(): any;
|
|
9
54
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** CSS selector matching natively tabbable elements. */
|
|
2
|
+
export declare const FOCUSABLE_SELECTOR: string;
|
|
3
|
+
/**
|
|
4
|
+
* Decide which focusable index a Tab / Shift+Tab keystroke should move to.
|
|
5
|
+
*
|
|
6
|
+
* @param count number of focusable elements inside the trap
|
|
7
|
+
* @param activeIndex index of the currently focused element, or -1 when focus
|
|
8
|
+
* is outside the trap (e.g. it escaped to the body)
|
|
9
|
+
* @param shiftKey whether Shift is held (backward tabbing)
|
|
10
|
+
* @returns the index to focus, or -1 when there is nothing to trap
|
|
11
|
+
*
|
|
12
|
+
* Pure — no DOM — so the wrap-around edge cases stay unit-testable.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveTabIndex(count: number, activeIndex: number, shiftKey: boolean): number;
|
|
15
|
+
/**
|
|
16
|
+
* Collect the tabbable elements slotted into the overlay's light DOM, skipping
|
|
17
|
+
* hidden / aria-hidden ones. (Focusables nested inside further shadow roots are
|
|
18
|
+
* out of scope — the common dialog/modal content lives in the slotted subtree.)
|
|
19
|
+
*/
|
|
20
|
+
export declare function getFocusableElements(root: ParentNode): HTMLElement[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type AfterEvent = 'after-open' | 'after-close' | null;
|
|
2
|
+
/** Decide which after-animation event a `transitionend` should emit.
|
|
3
|
+
* `watched` is the authoritative CSS property (so multi-prop transitions
|
|
4
|
+
* — e.g. transform + opacity — fire the after-event exactly once). */
|
|
5
|
+
export declare function afterEventFor(propertyName: string, isOpen: boolean, watched: string): AfterEvent;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Phone input with country code indicator. Composes a country selector
|
|
4
|
+
* (flag + dial code) alongside a free-form phone number input.
|
|
5
|
+
*
|
|
6
|
+
* Value format: free string — the component stores `"{dialCode}{number}"`
|
|
7
|
+
* concatenated. The host may parse/normalize as needed.
|
|
8
|
+
*
|
|
9
|
+
* @event coChange - Emits the full phone string on every change.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CoPhoneField {
|
|
12
|
+
host: HTMLElement;
|
|
13
|
+
/** Field label. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Placeholder for the number input. */
|
|
16
|
+
placeholder: string;
|
|
17
|
+
/** Current full value (dialCode + number). */
|
|
18
|
+
value: string;
|
|
19
|
+
/** Disable the entire field. */
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
/** Required indicator. */
|
|
22
|
+
required: boolean;
|
|
23
|
+
/** Validation status. */
|
|
24
|
+
status: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
25
|
+
/** Helper/error text below the field. */
|
|
26
|
+
helperText?: string;
|
|
27
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
28
|
+
layout: 'vertical' | 'horizontal';
|
|
29
|
+
/** Field size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48. */
|
|
30
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
31
|
+
/** Default country ISO2 code (e.g. "CO", "US"). Optional — if not set, starts empty. */
|
|
32
|
+
defaultCountry: string;
|
|
33
|
+
/** Emits the full phone string on change. */
|
|
34
|
+
coChange: EventEmitter<string>;
|
|
35
|
+
private selectedIso2;
|
|
36
|
+
private numberPart;
|
|
37
|
+
private isOpen;
|
|
38
|
+
private searchQuery;
|
|
39
|
+
private get selectedEntry();
|
|
40
|
+
private get filteredCountries();
|
|
41
|
+
/** Country name with the matched substring wrapped for highlighting. */
|
|
42
|
+
private renderName;
|
|
43
|
+
onValueChange(newVal: string): void;
|
|
44
|
+
onDefaultCountryChange(iso2: string): void;
|
|
45
|
+
componentWillLoad(): void;
|
|
46
|
+
private get hasCountry();
|
|
47
|
+
private get statusIcon();
|
|
48
|
+
private findDialCodeInValue;
|
|
49
|
+
private emitValue;
|
|
50
|
+
private handleCountrySelect;
|
|
51
|
+
private handleNumberInput;
|
|
52
|
+
private handleToggleDropdown;
|
|
53
|
+
private handleSearchInput;
|
|
54
|
+
private handleOutsideClick;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
render(): any;
|
|
58
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DialCode {
|
|
2
|
+
iso2: string;
|
|
3
|
+
dialCode: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Dial codes sorted by name. Covers the full ITU-T E.164 assignment.
|
|
8
|
+
* The iso2 key matches country-flag-icons' 3x2/{ISO2} naming.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DIAL_CODES: DialCode[];
|
|
11
|
+
/** ISO2 code → DialCode entry lookup. */
|
|
12
|
+
export declare const DIAL_CODE_MAP: Record<string, DialCode>;
|
|
13
|
+
/** Convert ISO2 country code to Unicode flag emoji. */
|
|
14
|
+
export declare function iso2ToEmoji(iso2: string): string;
|
|
@@ -36,6 +36,15 @@ export declare class CoPopover {
|
|
|
36
36
|
private handleDocumentClickManual;
|
|
37
37
|
private handleDocumentKeydownManual;
|
|
38
38
|
private updatePosition;
|
|
39
|
+
/**
|
|
40
|
+
* Promote the panel to the browser top layer (Popover API) so an ancestor's
|
|
41
|
+
* filter / mask / overflow / transform can't clip it. Mirrors co-overlay.
|
|
42
|
+
* The API promotes WITHOUT moving the DOM node — slots, inherited custom
|
|
43
|
+
* properties, composedPath() outside-click and nested popovers all keep
|
|
44
|
+
* working. No-ops where unsupported (graceful fallback to in-place fixed
|
|
45
|
+
* positioning + offset-ancestor compensation, see updatePosition).
|
|
46
|
+
*/
|
|
47
|
+
private promotePanel;
|
|
39
48
|
private scheduleUpdate;
|
|
40
49
|
private addScrollListeners;
|
|
41
50
|
private cleanupListeners;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A circular progress indicator with status colors and optional label.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CoProgressCircle {
|
|
5
|
+
/** Progress value 0-100 */
|
|
6
|
+
value: number;
|
|
7
|
+
/** Status / color variant */
|
|
8
|
+
status: 'default' | 'success' | 'warning' | 'error';
|
|
9
|
+
/** Diameter of the circle in px */
|
|
10
|
+
size: number;
|
|
11
|
+
/** Stroke width in px */
|
|
12
|
+
strokeWidth: number;
|
|
13
|
+
/** Show percentage label inside */
|
|
14
|
+
showLabel: boolean;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -14,6 +14,8 @@ export declare class CoRadioGroup {
|
|
|
14
14
|
secondaryLabel?: string;
|
|
15
15
|
/** Helper text displayed below the options */
|
|
16
16
|
helperText?: string;
|
|
17
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
18
|
+
layout: 'vertical' | 'horizontal';
|
|
17
19
|
/** Validation status */
|
|
18
20
|
status: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
19
21
|
/** Currently selected value */
|
|
@@ -5,7 +5,11 @@ export interface RefFieldOption {
|
|
|
5
5
|
description?: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
color?: string;
|
|
8
|
+
/** Initials/short text for the avatar bubble (fallback when no image). */
|
|
8
9
|
avatar?: string;
|
|
10
|
+
/** Image URL for the avatar (e.g. a user's profile picture). Falls back to
|
|
11
|
+
* `avatar` initials + `color` if absent or it fails to load. */
|
|
12
|
+
image?: string;
|
|
9
13
|
}
|
|
10
14
|
export interface RefFieldDisplayItem {
|
|
11
15
|
_id: string;
|
|
@@ -13,10 +17,15 @@ export interface RefFieldDisplayItem {
|
|
|
13
17
|
description?: string;
|
|
14
18
|
color?: string;
|
|
15
19
|
avatar?: string;
|
|
20
|
+
image?: string;
|
|
16
21
|
}
|
|
17
22
|
export declare class CoRefField {
|
|
18
23
|
label?: string;
|
|
24
|
+
/** Whether the field is required (renders a required marker on the label). */
|
|
25
|
+
required: boolean;
|
|
19
26
|
secondaryLabel?: string;
|
|
27
|
+
/** Phosphor icon name rendered before the label text. */
|
|
28
|
+
labelIcon?: string;
|
|
20
29
|
placeholder: string;
|
|
21
30
|
disabled: boolean;
|
|
22
31
|
clearable: boolean;
|
|
@@ -24,6 +33,17 @@ export declare class CoRefField {
|
|
|
24
33
|
status: 'default' | 'error' | 'success' | 'warning';
|
|
25
34
|
helperText?: string;
|
|
26
35
|
iconLeft?: string;
|
|
36
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
37
|
+
layout: 'vertical' | 'horizontal';
|
|
38
|
+
/**
|
|
39
|
+
* Size of the trigger (mirrors co-input): s 28 / sm 32 / md 40 / lg 48.
|
|
40
|
+
*
|
|
41
|
+
* `'default'` is a deprecated alias of `'md'`, kept for backwards
|
|
42
|
+
* compatibility with the old `'default' | 'sm'` scale — use `'md'` instead.
|
|
43
|
+
*/
|
|
44
|
+
size: 's' | 'sm' | 'md' | 'lg' | 'default';
|
|
45
|
+
/** Common-scale size with the legacy `'default'` alias normalized to `'md'`. */
|
|
46
|
+
private get normalizedSize();
|
|
27
47
|
/** Selected value: single ID string or JSON array of IDs. */
|
|
28
48
|
value: string;
|
|
29
49
|
/** JSON array of options to display: RefFieldOption[] */
|
|
@@ -46,8 +66,21 @@ export declare class CoRefField {
|
|
|
46
66
|
footerPrimaryLabel: string;
|
|
47
67
|
/** Label for the secondary footer button. */
|
|
48
68
|
footerSecondaryLabel: string;
|
|
49
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Max chips visible in multiple mode before the "+N" badge.
|
|
71
|
+
* `0` (default) = responsive: the trigger stays single-line and shows as
|
|
72
|
+
* many chips as actually fit its current width (ResizeObserver-driven);
|
|
73
|
+
* the badge counts the rest. Set `> 0` to force a fixed cap instead.
|
|
74
|
+
*/
|
|
50
75
|
maxChips: number;
|
|
76
|
+
/** Panel color theme. 'auto' follows trigger, 'dark' forces dark panel, 'light' forces light. */
|
|
77
|
+
panelTheme: 'auto' | 'dark' | 'light';
|
|
78
|
+
/**
|
|
79
|
+
* Shape of the leading avatar (selected value + option rows). Defaults to
|
|
80
|
+
* 'circle' (people refs); use 'square' for company/workspace refs — it renders
|
|
81
|
+
* a smooth squircle. The avatar border can be themed via --co-avatar-border-color.
|
|
82
|
+
*/
|
|
83
|
+
avatarShape: 'circle' | 'square';
|
|
51
84
|
coChange: EventEmitter<{
|
|
52
85
|
value: string | string[];
|
|
53
86
|
item: RefFieldOption;
|
|
@@ -64,9 +97,22 @@ export declare class CoRefField {
|
|
|
64
97
|
el: HTMLElement;
|
|
65
98
|
isOpen: boolean;
|
|
66
99
|
searchText: string;
|
|
100
|
+
/** How many trailing chips don't fit the trigger width (responsive mode). */
|
|
101
|
+
overflowCount: number;
|
|
67
102
|
private searchInputEl?;
|
|
68
103
|
private optionsEl?;
|
|
104
|
+
private osInstance?;
|
|
69
105
|
private debounceTimer?;
|
|
106
|
+
private chipsEl?;
|
|
107
|
+
private observedChipsEl?;
|
|
108
|
+
private lastChipsKey;
|
|
109
|
+
private resizeObserver?;
|
|
110
|
+
/** Selection captured when the panel opens — the dropdown partitions
|
|
111
|
+
* selected-first against THIS set so options don't jump while toggling. */
|
|
112
|
+
private sortSnapshot;
|
|
113
|
+
/** Display items for the selection captured at open (value order), used to
|
|
114
|
+
* prepend selected items the current options page doesn't contain. */
|
|
115
|
+
private openDisplaySnapshot;
|
|
70
116
|
private get parsedOptions();
|
|
71
117
|
private get parsedSelectedDisplay();
|
|
72
118
|
/**
|
|
@@ -77,7 +123,16 @@ export declare class CoRefField {
|
|
|
77
123
|
private get parsedValue();
|
|
78
124
|
private get hasMore();
|
|
79
125
|
private get remainingCount();
|
|
126
|
+
componentWillLoad(): void;
|
|
127
|
+
connectedCallback(): void;
|
|
128
|
+
componentDidRender(): void;
|
|
80
129
|
disconnectedCallback(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Counts how many trailing chips overflow the single-line chips wrapper
|
|
132
|
+
* (they're kept in the DOM, clipped + visibility:hidden) so the "+N" badge
|
|
133
|
+
* reflects the REAL available width. Skipped when `maxChips > 0` (fixed cap).
|
|
134
|
+
*/
|
|
135
|
+
private calcOverflow;
|
|
81
136
|
onOpenChange(isOpen: boolean): void;
|
|
82
137
|
private handlePopoverOpen;
|
|
83
138
|
private handlePopoverClose;
|
|
@@ -91,8 +146,21 @@ export declare class CoRefField {
|
|
|
91
146
|
private handleFooterPrimary;
|
|
92
147
|
private handleFooterSecondary;
|
|
93
148
|
private renderTrigger;
|
|
149
|
+
/**
|
|
150
|
+
* Leading visual for a selected value / option. Prefers a real avatar
|
|
151
|
+
* (image with initials+color fallback, via <co-avatar>), then a color dot.
|
|
152
|
+
* `size`: 'xxs' (24px) for the selected value, 'xs' (32px) for option rows.
|
|
153
|
+
*/
|
|
154
|
+
private renderItemAvatar;
|
|
94
155
|
private renderSingleValue;
|
|
95
156
|
private renderMultipleValue;
|
|
157
|
+
/**
|
|
158
|
+
* Options in display order: the selection captured at open comes FIRST
|
|
159
|
+
* (in chip/value order, including selected items the current page doesn't
|
|
160
|
+
* contain — synthesized from their display item), then the rest in server
|
|
161
|
+
* order. While searching, only real results render (still selected-first).
|
|
162
|
+
*/
|
|
163
|
+
private get orderedOptions();
|
|
96
164
|
private renderPanel;
|
|
97
165
|
render(): any;
|
|
98
166
|
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { Editor, RichTextOutput, RichTextPreset, ToolbarVariant } from '@prolibu-suite/cobalt-rich-text';
|
|
3
|
+
/**
|
|
4
|
+
* Rich text editor backed by Tiptap v3.
|
|
5
|
+
*
|
|
6
|
+
* Uses `shadow: false, scoped: false` (the co-data-table pattern) because
|
|
7
|
+
* ProseMirror builds its editable DOM imperatively — Stencil's scoped CSS would
|
|
8
|
+
* never reach it. All styles live in light DOM via BEM + `--co-*` tokens.
|
|
9
|
+
*
|
|
10
|
+
* @part wrapper - Outer container
|
|
11
|
+
* @part toolbar - Formatting toolbar
|
|
12
|
+
* @part content - Editable ProseMirror surface
|
|
13
|
+
* @part label - Field label
|
|
14
|
+
* @part helper - Helper text row
|
|
15
|
+
*/
|
|
16
|
+
export declare class CoRichTextEditor {
|
|
17
|
+
el: HTMLElement;
|
|
18
|
+
/** ProseMirror document as a JSON string. `null`/empty = empty editor. */
|
|
19
|
+
value: string | null;
|
|
20
|
+
/** Preset controlling allowed nodes/marks, toolbar and sanitization. */
|
|
21
|
+
preset: RichTextPreset;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
secondaryLabel?: string;
|
|
25
|
+
helperText?: string;
|
|
26
|
+
status: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
required: boolean;
|
|
30
|
+
maxLength?: number;
|
|
31
|
+
showCharacterCount: boolean;
|
|
32
|
+
autofocus: boolean;
|
|
33
|
+
/** Toolbar layout. `auto` uses the preset default. */
|
|
34
|
+
toolbar: ToolbarVariant;
|
|
35
|
+
/** Feature overrides (JSON string for HTML attr, or object via JS property). */
|
|
36
|
+
features?: string | object;
|
|
37
|
+
/**
|
|
38
|
+
* Extra Tiptap extensions appended to the preset (JS property only).
|
|
39
|
+
* Registered at editor creation — required for new schema nodes (images,
|
|
40
|
+
* tables, embeds, …) that `getEditorInstance()` cannot add afterwards.
|
|
41
|
+
*/
|
|
42
|
+
customExtensions?: object[];
|
|
43
|
+
/** Host image upload handler (JS property): `(file) => Promise<url>`. */
|
|
44
|
+
imageUpload?: (file: File) => Promise<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Font families available in the bubble menu font selector.
|
|
47
|
+
* JS property: `Array<{ label: string; value: string }>`.
|
|
48
|
+
* HTML attribute: JSON string of the same array.
|
|
49
|
+
* If not provided, a default list of system fonts is used.
|
|
50
|
+
*/
|
|
51
|
+
fontFamilies?: string | {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
/**
|
|
56
|
+
* Account/imported fonts shown in a separate "Imported fonts" section.
|
|
57
|
+
* JS property: `Array<{ label: string; value: string }>`.
|
|
58
|
+
* HTML attribute: JSON string of the same array.
|
|
59
|
+
*/
|
|
60
|
+
accountFonts?: string | {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}[];
|
|
64
|
+
/** Whether account fonts are currently loading. */
|
|
65
|
+
fontsLoading?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Async callback that loads account/imported fonts.
|
|
68
|
+
* Called once when the font dropdown opens for the first time.
|
|
69
|
+
* Must return `Array<{ label: string; value: string; url?: string }>`.
|
|
70
|
+
* If `url` is provided, the font is registered via FontFace API.
|
|
71
|
+
* JS property only — cannot be set via HTML attribute.
|
|
72
|
+
*/
|
|
73
|
+
fontLoader?: () => Promise<{
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
url?: string;
|
|
77
|
+
}[]>;
|
|
78
|
+
/** BCP-47 locale for UI strings (e.g. 'en', 'es-CO', 'pt-BR'). Default English. */
|
|
79
|
+
locale: string;
|
|
80
|
+
/** Emitted on every keystroke. */
|
|
81
|
+
coInput: EventEmitter<RichTextOutput>;
|
|
82
|
+
/** Emitted on blur (committed value). */
|
|
83
|
+
coChange: EventEmitter<RichTextOutput>;
|
|
84
|
+
coFocus: EventEmitter<void>;
|
|
85
|
+
coBlur: EventEmitter<void>;
|
|
86
|
+
coClear: EventEmitter<void>;
|
|
87
|
+
/** Emitted once the editor is mounted and ready. */
|
|
88
|
+
coReady: EventEmitter<void>;
|
|
89
|
+
/** Emitted when the font dropdown opens — host should load account fonts. */
|
|
90
|
+
coFontPopupShow: EventEmitter<void>;
|
|
91
|
+
/** Emitted when the font dropdown closes. */
|
|
92
|
+
coFontPopupHide: EventEmitter<void>;
|
|
93
|
+
ready: boolean;
|
|
94
|
+
hasFocus: boolean;
|
|
95
|
+
/** Character count — updated imperatively to avoid re-renders on every keystroke. */
|
|
96
|
+
private charCount;
|
|
97
|
+
private charCountEl?;
|
|
98
|
+
private editor?;
|
|
99
|
+
private contentEl?;
|
|
100
|
+
private toolbarEl?;
|
|
101
|
+
private bubbleEl?;
|
|
102
|
+
private bubbleLinkFormEl?;
|
|
103
|
+
private bubbleLinkInputEl?;
|
|
104
|
+
private bubbleLinkUnlinkEl?;
|
|
105
|
+
private bubbleDragged;
|
|
106
|
+
private bubbleDragOffset;
|
|
107
|
+
private bubbleDragPos;
|
|
108
|
+
private bubbleDragMoveHandler?;
|
|
109
|
+
private bubbleDragEndHandler?;
|
|
110
|
+
private bubbleOutsideClickHandler?;
|
|
111
|
+
/** Position lock — prevents floating-ui from repositioning the bubble during toolbar interactions. */
|
|
112
|
+
private bubblePositionLocked;
|
|
113
|
+
private bubbleLockPos;
|
|
114
|
+
private bubbleLockTimer?;
|
|
115
|
+
private bubbleStyleObserver?;
|
|
116
|
+
private applyingBubbleLock;
|
|
117
|
+
/** Cached render function for font dropdown (re-invoked when accountFonts changes). */
|
|
118
|
+
private _fontDropdownRenderFn?;
|
|
119
|
+
private _fontDropdownSearchInput?;
|
|
120
|
+
/** Account fonts loaded via fontLoader callback. */
|
|
121
|
+
private _loadedAccountFonts;
|
|
122
|
+
private _fontLoaderCalled;
|
|
123
|
+
private _fontLoaderLoading;
|
|
124
|
+
/** Last emitted JSON string — guards the value Watch against feedback loops. */
|
|
125
|
+
private lastEmittedJson;
|
|
126
|
+
/** Last emitted HTML string — parents often send HTML back via value prop. */
|
|
127
|
+
private lastEmittedHtml;
|
|
128
|
+
/** True while applying an external value (suppresses emit). */
|
|
129
|
+
private applyingExternal;
|
|
130
|
+
private rt;
|
|
131
|
+
private blurTimeout?;
|
|
132
|
+
/** Image layout floating toolbar. */
|
|
133
|
+
private imgLayoutEl?;
|
|
134
|
+
private imgLayoutVisible;
|
|
135
|
+
componentDidLoad(): Promise<void>;
|
|
136
|
+
disconnectedCallback(): void;
|
|
137
|
+
componentDidRender(): void;
|
|
138
|
+
onAccountFontsChange(): void;
|
|
139
|
+
onValueChange(next: string | null): void;
|
|
140
|
+
onEditableChange(): void;
|
|
141
|
+
getJSON(): Promise<object | null>;
|
|
142
|
+
getHtml(): Promise<string>;
|
|
143
|
+
getText(): Promise<string>;
|
|
144
|
+
clear(): Promise<void>;
|
|
145
|
+
focusEditor(): Promise<void>;
|
|
146
|
+
setContent(content: string | object): Promise<void>;
|
|
147
|
+
getEditorInstance(): Promise<Editor | null>;
|
|
148
|
+
/** Whether the image node is enabled (mirrors presets.ts `wantImage` logic). */
|
|
149
|
+
private get imagesEnabled();
|
|
150
|
+
private get parsedFeatures();
|
|
151
|
+
private parseValue;
|
|
152
|
+
private sanitizeHtml;
|
|
153
|
+
private buildOutput;
|
|
154
|
+
private handleUpdate;
|
|
155
|
+
private handleFocus;
|
|
156
|
+
private handleBlur;
|
|
157
|
+
/** Lock the bubble position so floating-ui doesn't reposition it. */
|
|
158
|
+
private lockBubblePosition;
|
|
159
|
+
/** Apply fixed position to the bubble, overriding floating-ui. */
|
|
160
|
+
private applyBubbleFixedPosition;
|
|
161
|
+
/** Watch for floating-ui style changes and override them when locked/dragged. */
|
|
162
|
+
private setupBubbleStyleObserver;
|
|
163
|
+
/**
|
|
164
|
+
* Hide/show the selection bubble while a toolbar dropdown is open. Uses a
|
|
165
|
+
* class with `!important` so it wins over the BubbleMenu plugin's inline
|
|
166
|
+
* display/visibility writes. When unsuppressed, the plugin's own state
|
|
167
|
+
* (selection still active) reveals it again on the next update.
|
|
168
|
+
*/
|
|
169
|
+
private suppressBubble;
|
|
170
|
+
/** Close all open sub-dropdowns inside the bubble. */
|
|
171
|
+
private closeBubbleDropdowns;
|
|
172
|
+
private refreshCharCount;
|
|
173
|
+
private syncToolbar;
|
|
174
|
+
private get resolvedToolbar();
|
|
175
|
+
private static readonly DEFAULT_FONTS;
|
|
176
|
+
private get resolvedFontFamilies();
|
|
177
|
+
private get resolvedAccountFonts();
|
|
178
|
+
/** Register a font via FontFace API so it can be previewed. */
|
|
179
|
+
private static readonly _registeredFonts;
|
|
180
|
+
private registerFontFace;
|
|
181
|
+
/** Load account fonts via the fontLoader callback (called once). */
|
|
182
|
+
private loadFontsViaCallback;
|
|
183
|
+
private get helperIcon();
|
|
184
|
+
/**
|
|
185
|
+
* Create the bubble menu element imperatively. BubbleMenu v3 manages
|
|
186
|
+
* the element via remove()/appendChild(), which conflicts with Stencil's
|
|
187
|
+
* virtual DOM reconciliation. By creating it outside the VDOM, Stencil
|
|
188
|
+
* won't recreate or interfere with the element.
|
|
189
|
+
*/
|
|
190
|
+
private createBubbleElement;
|
|
191
|
+
/** Helper: create a separator span */
|
|
192
|
+
private createSep;
|
|
193
|
+
/**
|
|
194
|
+
* Position a dropdown above or below the trigger depending on available
|
|
195
|
+
* viewport space. Sets `data-position="above"|"below"` so CSS can flip.
|
|
196
|
+
*/
|
|
197
|
+
private positionDropdown;
|
|
198
|
+
private positionPanelNearBubble;
|
|
199
|
+
/** Helper: create a toggle button for the bubble */
|
|
200
|
+
private createBubbleBtn;
|
|
201
|
+
/** Creates the font family dropdown with search for the bubble menu. */
|
|
202
|
+
private createBubbleFontFamilySelect;
|
|
203
|
+
/** Creates a compact dropdown-select for the bubble menu. */
|
|
204
|
+
private createBubbleSelect;
|
|
205
|
+
/** Creates a compact color picker button for the bubble menu. */
|
|
206
|
+
private createBubbleColorPicker;
|
|
207
|
+
/** Close all bubble popups EXCEPT the given element. */
|
|
208
|
+
private closeAllBubblePopups;
|
|
209
|
+
private addDragHeader;
|
|
210
|
+
/** Generic draggable panel factory. */
|
|
211
|
+
private createBubblePanel;
|
|
212
|
+
/** Font size panel with visual preview and custom input. */
|
|
213
|
+
private createBubbleFontSizePanel;
|
|
214
|
+
/** Font weight panel with two-column layout and visual preview. */
|
|
215
|
+
private createBubbleFontWeightPanel;
|
|
216
|
+
/** Line height panel with custom input. */
|
|
217
|
+
private createBubbleLineHeightPanel;
|
|
218
|
+
/** Letter spacing panel with custom input. */
|
|
219
|
+
private createBubbleLetterSpacingPanel;
|
|
220
|
+
/** Background color panel for overflow menu. */
|
|
221
|
+
private createBubbleBgColorPanel;
|
|
222
|
+
/** Overflow menu (three-dots ⋮) with dynamic table context section. */
|
|
223
|
+
private createBubbleOverflowMenu;
|
|
224
|
+
private toggleBubbleLinkForm;
|
|
225
|
+
private submitBubbleLinkImperative;
|
|
226
|
+
private updateBubbleActiveStates;
|
|
227
|
+
private static readonly IMG_LAYOUT_ICONS;
|
|
228
|
+
private createImageLayoutBar;
|
|
229
|
+
private setImageLayout;
|
|
230
|
+
private getSelectedImageInfo;
|
|
231
|
+
/**
|
|
232
|
+
* Tag every image container with its layout mode (`data-image-layout`) so the
|
|
233
|
+
* stylesheet's responsive rules apply, and clear any stray inline positioning
|
|
234
|
+
* left over from legacy absolute-positioned content. Layout is CSS-only now
|
|
235
|
+
* (it reflows and collapses on mobile); we only set the attribute here.
|
|
236
|
+
*
|
|
237
|
+
* Runs on every transaction. The resize NodeView's `onUpdate` returns `true`,
|
|
238
|
+
* so ProseMirror never reflects attribute changes to the DOM — we must read
|
|
239
|
+
* from state and write the attribute imperatively to the container.
|
|
240
|
+
*/
|
|
241
|
+
private syncImageLayouts;
|
|
242
|
+
/** Reposition only the layout bar (used during drag for performance). */
|
|
243
|
+
private updateImageLayoutBarPosition;
|
|
244
|
+
private updateImageLayoutBar;
|
|
245
|
+
render(): any;
|
|
246
|
+
}
|